/* Член НАП — Figma OFNpLgOOg6uJePv8J3X6lT frames 1:907 / 1:1087 */

/* Shared Figma page primitives (chunk 3). Tokens: --pg-* from base.css */
.pg-page {
  --pg-section-gap: 120px;

  position: relative;
  z-index: 1;
  background: #000;
  color: var(--pg-color-text);
  padding: 80px var(--pg-gutter) 120px;
  overflow: clip;
}

.pg-page > * {
  width: 100%;
  max-width: var(--pg-content-width);
  margin-inline: auto;
}

.pg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--pg-color-accent);
  border-radius: 200px;
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: var(--pg-font-weight-semibold);
  letter-spacing: -0.02em;
  line-height: normal;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.pg-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pg-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.pg-hero__title {
  margin: 0;
  max-width: 777px;
  font-family: var(--pg-font-display);
  font-size: 100px;
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
  text-transform: none;
}

.pg-hero__title--nap {
  max-width: 1255px;
}

.pg-hero__accent {
  color: var(--pg-color-accent);
}

.pg-hero__subtitle {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 18px;
  font-weight: var(--pg-font-weight-medium);
  letter-spacing: -0.03em;
  line-height: normal;
  color: var(--pg-color-text);
}

.pg-hero__panel,
.pg-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pg-hero__actions {
  flex-direction: row;
  justify-content: center;
  gap: 11px;
  margin-top: 100px;
}

.pg-hero__panel {
  gap: 20px;
  margin-top: 100px;
}

.pg-cta--ghost {
  width: var(--pg-cta-width);
  min-height: var(--pg-cta-height);
  justify-content: center;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.pg-cta--ghost:hover,
.pg-cta--ghost:focus-visible {
  background: #fff;
  color: var(--pg-color-cta-text);
}

.pg-stats {
  display: flex;
  gap: 20px;
  width: 100%;
}

.pg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1 1 0;
  min-height: 114px;
  padding: 20px 17px 19px 20px;
  border: 1.5px solid #fff;
  border-radius: 20px;
  box-sizing: border-box;
}

.pg-stat--featured {
  background: #fff;
  border-color: #fff;
}

.pg-stat__value {
  font-family: var(--pg-font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--pg-color-accent);
}

.pg-stat__label {
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: normal;
  color: var(--pg-color-text);
}

.pg-stat--featured .pg-stat__label {
  color: var(--pg-color-muted);
}

.pg-section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pg-section-head--center {
  align-items: center;
  text-align: center;
  max-width: 562px;
  margin-inline: auto;
}

.pg-section-head__title,
.pg-rows-section > .pg-section-head__title,
.pg-nap__principles > .pg-section-head__title,
.pg-nap__education > .pg-section-head__title {
  margin: 0;
  font-family: var(--pg-font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
}

.pg-section-head__title--center {
  text-align: center;
}

.pg-section-head__lead {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 18px;
  font-weight: var(--pg-font-weight-medium);
  letter-spacing: -0.03em;
  line-height: normal;
  color: var(--pg-color-text);
}

.pg-rows-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.pg-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pg-rows__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  padding-bottom: 20px;
  border-bottom: 1px solid #fff;
  margin-bottom: 16px;
}

.pg-rows__item:last-child {
  margin-bottom: 0;
}

.pg-rows__left {
  display: flex;
  align-items: center;
  gap: 100px;
  flex: 0 1 auto;
  min-width: 0;
}

.pg-rows__num {
  flex: 0 0 40px;
  font-family: var(--pg-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--pg-color-accent);
}

.pg-rows__num--mob { display: none; }

.pg-rows__title {
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: var(--pg-font-weight-semibold);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.pg-rows__text {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--pg-color-text);
  text-align: right;
}

@media (width <= 1099px) {
  .pg-page {
    padding: 80px var(--pg-gutter-mobile) 80px;
  }

  .pg-badge {
    font-size: 12px;
    letter-spacing: -0.02em;
  }

  .pg-hero__copy {
    gap: 17px;
  }

  .pg-hero__title {
    font-size: 40px;
    max-width: none;
  }

  .pg-hero__title--nap {
    font-size: 38px;
    width: 100vw;
    max-width: 393px;
  }

  .pg-hero__accent {
    color: #fff;
  }

  .pg-hero__subtitle {
    font-size: 16px;
    letter-spacing: -0.03em;
  }

  .pg-hero__panel,
  .pg-hero__actions {
    margin-top: 0;
  }

  .pg-hero__actions {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    margin-top: 40px;
  }

  .pg-hero__actions .pg-cta,
  .pg-hero__actions .pg-cta--ghost,
  .pg-hero__panel .pg-cta {
    width: 100%;
  }

  .pg-stats {
    flex-direction: column;
  }

  .pg-stat {
    min-height: 84px;
    width: 100%;
    gap: 12px;
  }

  .pg-stat__value {
    font-size: 32px;
  }

  .pg-section-head__title,
  .pg-rows-section > .pg-section-head__title,
  .pg-nap__principles > .pg-section-head__title,
  .pg-nap__education > .pg-section-head__title {
    font-size: 40px;
  }

  .pg-section-head__lead {
    font-size: 16px;
  }

  .pg-section-head--center {
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .pg-rows-section {
    gap: 40px;
  }

  .pg-rows__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    margin-bottom: 14px;
    padding-bottom: 16px;
    order: var(--m-order, 0);
  }

  .pg-rows__left {
    gap: 16px;
    width: 100%;
  }

  .pg-rows__num--desk { display: none; }
  .pg-rows__num--mob { display: block; }

  .pg-rows__title {
    white-space: normal;
  }

  .pg-rows__text {
    text-align: left;
    width: 100%;
  }
}

/* NAP page */
.pg-nap__hero {
  /* Desktop Figma: title block 365 + 100 gap + 47 CTAs */
}

.pg-nap__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 93px;
  margin-top: 90px;
  max-width: var(--pg-content-width);
}

.pg-nap__photo-wrap {
  flex: 0 0 595px;
  width: 595px;
  height: 854px;
}

.pg-nap__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pg-nap__intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 669px;
  max-width: 100%;
  padding-bottom: 0;
}

.pg-nap__name {
  margin: 20px 0 0;
  max-width: 562px;
  font-family: var(--pg-font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 0.9;
  color: #fff;
}

.pg-nap__bio {
  margin: 20px 0 0;
  max-width: 562px;
  font-family: var(--pg-font);
  font-size: 18px;
  font-weight: var(--pg-font-weight-medium);
  letter-spacing: -0.03em;
  line-height: normal;
  color: var(--pg-color-text);
}

.pg-nap__intro-copy .pg-stats {
  margin-top: 130px;
  flex-wrap: wrap;
  width: 100%;
}

.pg-stats--intro .pg-stat {
  flex: 0 0 324px;
  width: 324px;
  max-width: calc(50% - 10px);
}

.pg-nap__education {
  position: relative;
  margin-top: 120px;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  padding: 84px var(--pg-gutter) 73px; /* bg runs 73px past the cards (Figma 1:1043) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  /* Figma 1:907: bg 1:1043 (1440x810) starts 84px above the title, cards transparent over it */
  background:
    url("../../img/figma/nap-edu-bg.aebaf94c9825.png") top center / max(1440px, 100%) auto no-repeat,
    #000;
}

.pg-nap__education > .pg-section-head__title {
  max-width: 608px;
}

.pg-edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: var(--pg-content-width);
}

.pg-edu-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 20px 17px 19px 20px;
  border: 1.5px solid #fff;
  border-radius: 20px;
  background: transparent;
}

.pg-edu-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.pg-edu-card__num {
  font-family: var(--pg-font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.75; /* Figma trims the numeral to cap height (~33px) */
  color: var(--pg-color-accent);
}

.pg-edu-card__year {
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--pg-color-text);
}

.pg-edu-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}

.pg-edu-card__institution {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: var(--pg-font-weight-semibold);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.pg-edu-card__program {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--pg-color-text);
}

.pg-edu-card__degree {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: var(--pg-font-weight-semibold);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--pg-color-accent);
}

.pg-nap .pg-rows-section {
  margin-top: 120px;
}

/* Figma: cards end 120px above «Як проходить перевірка?»; 73px of that is the section bg tail */
.pg-nap__education + .pg-rows-section {
  margin-top: 47px;
}

.pg-rows--process .pg-rows__text {
  max-width: 696px;
}

.pg-nap__principles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin-top: 120px;
}

.pg-principles {
  display: flex;
  gap: 20px;
  width: 100%;
}

.pg-principle {
  box-sizing: border-box;
  flex: 1 1 0;
  min-height: 177px;
  padding: 20px 17px 19px 20px;
  border: 1.5px solid #fff;
  border-radius: 20px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.pg-principle--featured {
  background: #fff;
}

.pg-principle--center {
  text-align: center;
  align-items: center;
}

.pg-principle__title {
  margin: 0;
  font-family: var(--pg-font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--pg-color-accent);
}

.pg-principle__text {
  margin: 0;
  font-family: var(--pg-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--pg-color-text);
}

.pg-principle--featured .pg-principle__text {
  color: var(--pg-color-muted);
}

@media (width <= 1099px) {
  .pg-nap__hero {
    padding-top: 30px;
  }

  .pg-nap__intro {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    margin-top: 80px;
  }

  .pg-nap__intro-copy {
    display: contents;
  }

  .pg-nap__intro-copy .pg-badge {
    order: 1;
  }

  .pg-nap__name {
    order: 2;
    font-size: 40px;
    max-width: none;
  }

  .pg-nap__bio {
    order: 3;
    font-size: 16px;
    max-width: none;
  }

  .pg-nap__photo-wrap {
    flex: none;
    order: 4;
    width: 263px;
    height: 378px;
    margin: 20px auto 0;
  }

  .pg-nap__intro-copy .pg-stats {
    order: 5;
    margin-top: 0;
  }

  .pg-stats--intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .pg-stats--intro .pg-stat {
    width: auto;
    max-width: none;
    flex: none;
    min-height: 84px;
  }

  .pg-nap__education {
    margin-top: 80px;
    padding: 0 var(--pg-gutter-mobile) 40px;
    gap: 40px;
    /* Figma 1:1087: bg 1:1132 (1481px wide) starts 12px above the first card, below the 2-line title */
    background:
      url("../../img/figma/nap-edu-bg.aebaf94c9825.png") center 100px / 1481px auto no-repeat,
      #000;
  }

  .pg-edu-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 360px;
  }

  .pg-edu-card {
    min-height: 236px;
    padding: 14px;
  }

  .pg-edu-card__num {
    font-size: 30px;
  }

  .pg-edu-card__body {
    margin-top: 60px;
    gap: 14px;
  }

  .pg-nap .pg-rows-section,
  .pg-nap__principles {
    margin-top: 80px;
  }

  .pg-nap__education + .pg-rows-section {
    margin-top: 60px; /* Figma 1:1087: 100px from last card to the next title */
  }

  .pg-nap__principles {
    gap: 40px;
    align-items: stretch;
  }

  .pg-principles {
    flex-direction: column;
  }

  .pg-principle {
    min-height: 100px;
    width: 100%;
  }

  .pg-principle__title {
    font-size: 28px;
  }
}
