@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* системная настройка «уменьшить движение»: ни родной плавной прокрутки,
   ни нашей — переходы по разделам должны быть мгновенными */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
ol, ul { list-style: none; }

:root {
  --bg:        #F0F1F3;
  --bg-soft:   #dcdee2;
  --paper:     #FFFFFF;
  --dark:      #141617;
  --dark-soft: #1f2123;
  --text:      #141617;
  --text-mid:  rgba(20, 22, 23, 0.66);
  --text-dim:  rgba(20, 22, 23, 0.42);
  --line:      rgba(20, 22, 23, 0.14);
  --line-soft: rgba(20, 22, 23, 0.06);
  --on-dark:       #FFFFFF;
  --on-dark-mid:   rgba(255, 255, 255, 0.82);
  --on-dark-dim:   rgba(255, 255, 255, 0.48);
  --on-dark-line:  rgba(255, 255, 255, 0.18);

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --sans:    'Manrope', system-ui, -apple-system, sans-serif;

  --fs-h1:    clamp(36px, 5vw, 64px);
  --fs-body:  clamp(15px, 1.2vw, 18px);
  --fs-meta:  14px;
  --fs-label: 12px;
  --fs-micro: 11px;

  --container: 1280px;
  --pad-x:     clamp(24px, 5vw, 64px);
  --gap:       clamp(80px, 12vh, 140px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


.mini-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
.hero-cta:active,
.nav-cta:active,
.nav-cta-mobile:active,
.services-cta:active,
.reviews-more:active,
.portfolio-cta:active,
.courses-cta:active,
.final-cta-button:active {
  transform: scale(0.98);
}



.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--on-dark);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* высоту шапки раньше задавала кнопка «Записаться» (43px) — её убрали 14.10,
     держим ту же высоту, чтобы шапка не стала ниже */
  min-height: 43px;
}
/* справа от меню теперь пусто: невидимый противовес шириной с логотип,
   чтобы меню стояло ровно по центру страницы */
@media (min-width: 881px) {
  .nav-inner::after { content: ""; width: 40px; flex: none; }
}
.nav.is-scrolled {
  background: rgba(240, 241, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  color: var(--text);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0 auto;
}
.nav-link {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-link:hover { opacity: 1; border-bottom-color: currentColor; }
.nav-cta {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  border: 1px solid currentColor;
  padding: 11px 22px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              opacity 0.45s var(--ease), visibility 0.45s var(--ease);
  /* на первом экране кнопки нет — появляется, когда герой пролистан */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav.is-past-hero .nav-cta {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav.is-scrolled .nav-cta:hover { background: var(--text); color: var(--bg); }
.nav:not(.is-scrolled) .nav-cta:hover { background: var(--on-dark); color: var(--dark); }
.nav-cta-mobile { display: none; }


.nav-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  transition: opacity 0.3s var(--ease);
}
.nav-brand:hover { opacity: 0.7; }
.nav-brand .logo-mark { width: 40px; height: 32px; }
.logo-mark { display: block; }

.nav-toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav-toggle span {
  position: absolute; left: 7px; right: 7px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }



.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dark);
  /* якорь для плашки с именем: на десктопе она лежит поверх колонки с фото */
  position: relative;
}
.hero-left {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-right {
  padding: clamp(100px, 14vh, 160px) clamp(32px, 5vw, 80px) clamp(48px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--on-dark);
  background: var(--dark);
}
.hero-plate {
  position: absolute;
  left: 0;
  bottom: clamp(32px, 7vh, 72px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 17px clamp(20px, 2.2vw, 30px) 18px;
  background: var(--dark);
  color: var(--on-dark);
}
.hero-plate-name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-plate-role {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* фраза набрана тем же Oswald, что и имя: узкий светлый шрифт держит тишину
   первого экрана. Шрифт закреплён не за словами, а за главной строкой экрана */
.hero-claim {
  font-family: var(--display);
  font-weight: 300;
  /* при 6.4vw «А ПОДЧЁРКИВАЮ.» вылезала из колонки за край шапки; 5.2vw
     сажает правый край строки на край контейнера при 1440 */
  font-size: clamp(48px, 5.2vw, 84px);
  /* не 1.0: точки над Ё во второй строке врезаются в первую */
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 28px;
}
/* Оптическая выключка заголовка.
   Коробки всех элементов первого экрана стоят ровно на левой рейке, но Oswald держит
   внутри себя пустое поле слева от буквы: у «Н» — 7% кегля, у «А» — 2,75%. На имени
   в 13 px это меньше пикселя, а на заголовке в 62 px «Н» уезжает на 4 px вправо —
   и глаз честно видит, что фраза стоит не по сетке. Вторая строка при этом
   расходилась ещё и с первой, потому что начинается с другой буквы.
   Поэтому подтягиваем КАЖДУЮ строку на её собственное поле, в долях кегля:
   так чернила садятся на рейку на любом экране, без правок под каждую ширину.
   ❗Если строки перепишут — пересчитать по первой букве каждой строки. */
.claim-l1, .claim-l2 { display: block; }
.claim-l1 { margin-left: -0.055em; }     /* «Н»: поле 7,00% минус поле «L» имени */
.claim-l2 { margin-left: -0.013em; }     /* «А»: поле 2,75% минус то же */
.hero-tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--on-dark-mid);
  max-width: 460px;
  margin-bottom: 44px;
}
.hero-cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hero-cta:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }

.hero-action {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll { display: none; }



.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section-num {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.section-title {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}



.about { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.about-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text { display: flex; flex-direction: column; gap: 20px; max-width: 640px; margin-top: -6px; }
.about-text p {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  color: var(--text);
}
.about-text p strong { color: var(--text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.stats li {
  font-family: var(--sans);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  line-height: 1.5;
}
.stats span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 10px;
}



.services { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.services-note {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 640px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 64px);
}
.service-block { display: flex; flex-direction: column; }
.service-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 6px;
}
.service-sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.service-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: var(--fs-meta);
}
.s-name { color: var(--text); font-weight: 500; }
.s-meta { color: var(--text-mid); white-space: nowrap; font-size: var(--fs-meta); font-weight: 400; }

.services-cta,
.reviews-more,
.portfolio-cta {
  display: inline-block;
  margin-top: clamp(40px, 5vh, 60px);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
  transition: letter-spacing 0.3s var(--ease);
}
.services-cta:hover,
.reviews-more:hover,
.portfolio-cta:hover { letter-spacing: 0.26em; }



.portfolio { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.portfolio-stage { position: relative; }
.pf-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: rgba(20, 22, 23, 0.42);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease);
}
.pf-hint svg { display: block; }
.portfolio.is-end .pf-hint { opacity: 0; }
.portfolio-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(20,22,23,0.2) transparent;
}
.portfolio-grid::-webkit-scrollbar { height: 6px; }
.portfolio-grid::-webkit-scrollbar-track { background: transparent; }
.portfolio-grid::-webkit-scrollbar-thumb { background: var(--line); }
.portfolio-grid::-webkit-scrollbar-thumb:hover { background: var(--text-mid); }

.portfolio-grid figure {
  flex: 0 0 clamp(220px, 30vw, 360px);
  scroll-snap-align: start;
}
.pf-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.portfolio-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.portfolio-grid figure:hover img { transform: scale(1.04); }
.portfolio-grid figcaption {
  margin-top: 13px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-mid);
}
.portfolio-grid figcaption span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}



.courses { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.courses-lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
  margin-bottom: clamp(48px, 6vh, 72px);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.course-item {
  padding-top: 28px;
  border-top: 1px solid var(--text);
}

/* программа курса — переиспользует раскрывашки блока «Частые вопросы» */
.program { margin-top: clamp(56px, 7vh, 88px); max-width: 820px; }
/* программа курса — прикрыта строкой в стиле кнопок сайта */
.program-fold { border: none; }
.program-fold-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  position: relative;
  padding-bottom: 6px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  transition: color 0.2s ease;
}
.program-fold-summary::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -11px; bottom: -11px;
}
.program-fold-summary::-webkit-details-marker { display: none; }
.program-fold-summary:hover { color: var(--text-mid); }
.program-fold-arrow {
  flex: none;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.program-fold[open] .program-fold-arrow { transform: rotate(180deg); }
.program-fold-body { padding-top: clamp(28px, 3.5vh, 40px); }
.program-includes {
  margin-top: clamp(32px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program-includes li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: var(--fs-meta);
  line-height: 1.65;
  color: var(--text-mid);
}
.program-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 1px;
  background: var(--text);
}
.program-note {
  margin-top: 22px;
  font-family: var(--sans);
  font-size: var(--fs-meta);
  line-height: 1.65;
  color: var(--text-dim);
}
.course-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 14px;
}
.course-item > p {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.course-price {
  font-family: var(--sans);
  font-size: var(--fs-meta) !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text) !important;
  margin: 0 !important;
}
.courses-cta {
  display: inline-block;
  margin-top: clamp(32px, 4vh, 48px);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
}



.reviews { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.reviews-grid {
  column-count: 2;
  column-gap: clamp(20px, 2.4vw, 32px);
}
.testimonial.is-more { display: none; }
.reviews-grid.is-expanded .testimonial.is-more { display: flex; }
.reviews-more { margin-top: clamp(28px, 3.5vh, 40px); }
.testimonial {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 38px);
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 0.6;
  color: var(--text-dim);
  display: block;
  margin-bottom: -6px;
}
.testimonial p {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}
.testimonial footer {
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}



.contact { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; }
.contact-line {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line > span {
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-top: 3px;
  font-weight: 500;
}
.contact-line a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.contact-line a:hover { border-bottom-color: var(--text); }

.contact-map {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}



.faq { padding: var(--gap) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-group--first { margin-top: 0 !important; }
.faq-group {
  max-width: 820px;
  margin: clamp(44px, 5.5vh, 68px) 0 18px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text-mid); }
.faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  transition: transform 0.4s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  color: var(--text-mid);
  max-width: 640px;
  padding: 0 0 26px;
  animation: faqIn 0.4s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}



.final-cta {
  background: var(--dark);
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  text-align: center;
  color: var(--on-dark);
}
.final-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.final-cta-title {
  font-family: var(--display);
  font-weight: 200;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 24px;
}
.final-cta-text {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--on-dark-mid);
  max-width: 540px;
  margin: 0 auto 40px;
}
.final-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  background: var(--on-dark);
  border: 1px solid var(--on-dark);
  color: var(--dark);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.final-cta-button:hover { background: transparent; color: var(--on-dark); }



.footer {
  padding: 48px var(--pad-x) 40px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  transition: opacity 0.3s var(--ease);
}
.footer-brand:hover { opacity: 0.6; }
.footer-brand .logo-mark { width: 46px; height: 40px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  max-width: 520px;
  text-align: center;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.5;
  color: var(--text-dim);
}



@media (max-width: 880px) {
  /* Воздух между блоками считается от высоты экрана. На десктопе 12vh (~108px)
     читаются как editorial, но на узком телефоне тот же приём давал шов 206px —
     четверть кадра пустоты, конец блока и начало следующего не видны разом. */
  :root { --gap: 64px; }
  .nav-inner { justify-content: space-between; }
  /* мельче десктопной: рядом в шапке теперь стоит гамбургер */
  .nav-cta {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 12px 15px;
  }

  /* ── МЕНЮ НА ТЕЛЕФОНЕ ───────────────────────────────────────────────
     «Записаться» в шапке ОСТАЁТСЯ рядом с гамбургером: у мастера запись —
     главное действие, менять постоянно видимую кнопку на спрятанную нельзя.
     ❗backdrop-filter (даже blur(0)) делает элемент точкой отсчёта для
     position:fixed внутри него — иначе панель развернётся по шапке,
     а не по экрану. Фон шапки почти непрозрачный, размытие не теряем. */
  .nav { backdrop-filter: none; }
  .nav.is-scrolled { backdrop-filter: none; }

  .nav-toggle { display: block; margin-left: 14px; }
  /* .nav-menu ушло в position:fixed, в строке остались три элемента.
     Без этого space-between развешивал «Записаться» посередине шапки */
  .nav-cta { margin-left: auto; }
  /* меню открыто — полоски всегда белые, шапка под ними тёмная */
  .nav-toggle.is-open span { background: var(--on-dark); }
  /* ── ОПТИКА ПАНЕЛИ НА ТЕЛЕФОНЕ ──────────────────────────────────────
     Три разных по природе объекта: знак (чернила), кнопка (рамка), иконка
     (линии). Равнять их РАМКИ нельзя — будет только хуже; равняем оптику.
     Гамбургер — тихий рисунок 22×10px волоском 1,5px (крупнее 28×14 спорил
     с логотипом), но зона касания 40×40: её не видно, а пальцу попадать легче.
     Кнопкой правит палец, а не логотип: 44px — минимум под касание. */
  .nav-cta { padding: 13px 15px; }
  /* логотип был самым мелким знаком в панели, хотя он бренд:
     22px чернил против 44px кнопки. Поднимаем до ~28px */
  .nav-brand .logo-mark { width: 50px; height: 40px; }

  .nav-toggle { width: 40px; height: 40px; }
  .nav-inner { min-height: 44px; }
  .nav-toggle span { left: 9px; right: 9px; height: 1.5px; }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 23px; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  /* панель во весь экран. Гамбургер стоит в разметке ПОСЛЕ меню,
     поэтому остаётся поверх и закрывает его */
  .nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 var(--pad-x);
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

  /* маленькая «Записаться» в шапке прячется, пока меню открыто:
     в разметке она ПОСЛЕ меню и иначе всплыла бы поверх тёмной панели */
  .nav-menu.is-open ~ .nav-cta { opacity: 0; visibility: hidden; }
  /* Набор как у ярлыков на сайте: Manrope мелким капслоком с трекингом.
     Oswald тут не годится — им набраны имя и фраза на первом экране, и 36px того же
     шрифта в меню читались стеной капса, а не спокойным списком разделов */
  .nav-menu .nav-link {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--on-dark);
    opacity: 1;
    border: 0;
    /* шрифт мелкий, но по вертикали просторно: палец должен попадать */
    padding: 16px 0;
    /* трекинг добавляет пустоту ПОСЛЕ последней буквы — при центрировании
       строка кажется сдвинутой влево. Возвращаем её на место */
    padding-left: 0.22em;
  }
  /* «Записаться» из меню убрана: она есть в шапке рядом с гамбургером,
     а на первом экране стоит своя крупная. Третья такая же — уже обои */
  .nav-cta-mobile { display: none; }


  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 100svh;
    position: relative;
  }
  .hero-left {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .hero-photo { object-position: center 15%; }
  .hero-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,22,23,0) 0%, rgba(20,22,23,0.35) 35%, rgba(20,22,23,0.97) 100%);
  }
  .hero-right {
    position: relative;
    z-index: 1;
    background: transparent;
    justify-content: flex-end;
    padding: 100px 24px 56px;
    min-height: 100svh;
  }
  /* на телефоне фото — фон во весь экран: тёмному прямоугольнику негде встать,
     не задев лицо. Плашка становится строкой над заголовком, на затемнении */
  .hero-plate {
    position: static;
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
    gap: 5px;
  }
  .hero-plate-name { font-size: 13px; letter-spacing: 0.18em; }
  .hero-plate-role { font-size: 10px; letter-spacing: 0.2em; color: var(--on-dark-mid); }

  /* «А ПОДЧЁРКИВАЮ.» — самая длинная строка; при 13.5vw она вставала в колонку
     впритык и на узких айфонах уходила бы за край */
  .hero-claim { font-size: clamp(40px, 12.6vw, 66px); margin-bottom: 20px; }
  .hero-tagline { font-size: 15px; max-width: none; }
  /* тонкая кнопка живёт наведением, которого на телефоне нет — здесь заливка */
  .hero-cta {
    background: var(--on-dark);
    border-color: var(--on-dark);
    color: var(--dark);
    padding: 18px 30px;
    letter-spacing: 0.16em;
  }

  .hero-scroll {
    display: block;
    width: 20px;
    margin-top: 20px;
    color: var(--on-dark);
    animation: hero-scroll-bob 1.9s ease-in-out infinite;
  }
  .hero-scroll svg { display: block; width: 100%; height: auto; }

  .about-content { grid-template-columns: 1fr; gap: 32px; }
  .about-text { margin-top: 0; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stats span { font-size: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid figure { flex-basis: 78vw; }
  .courses-grid { grid-template-columns: 1fr; }
  .reviews-grid { column-count: 1; }
  .contact-content { grid-template-columns: 1fr; }
  .contact-line { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .contact-line > span { padding-top: 0; }
  .contact-map { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .portfolio-grid figure { flex-basis: 84vw; }
}



.cookie-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 200;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cookie {
  pointer-events: auto;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(20, 22, 23, 0.10);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
/* [hidden] как атрибут слабее класса .cookie{display:flex} — без этой строки
   плашка остаётся в потоке: невидимая, но ловит клики по кнопке героя */
.cookie[hidden] { display: none; }
/* пока плашка не показана (или уезжает) — она не должна ловить палец */
.cookie:not(.is-visible) { pointer-events: none; }

.cookie__text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mid);
}
.cookie__text a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}
.cookie__text a:hover { border-color: var(--text); }

.cookie__ok {
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--on-dark);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.cookie__ok:hover { background: transparent; color: var(--dark); }

@media (max-width: 880px) {
  .cookie-wrap {
    bottom: 16px;
    padding: 0 16px;
    justify-content: flex-end;
  }
  .cookie {
    max-width: 300px;
    padding: 18px 20px;
    gap: 14px;
  }
  .cookie__text { font-size: 12.5px; }
  .cookie__ok { padding: 11px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
}
@keyframes hero-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; opacity: 1; }
}



/* ── Куда написать: плашка выбора мессенджера ───────────────────────────── */
/* одна на весь сайт: любая кнопка с data-write открывает её */

.write {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-x);
}
.write[hidden] { display: none; }

.write__veil {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 23, 0.58);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.write.is-open .write__veil { opacity: 1; }

.write__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  background: var(--paper);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.write.is-open .write__card { opacity: 1; transform: none; }
.write__card:focus { outline: none; }

/* обводку показываем только тем, кто ходит с клавиатуры */
.write__option:focus { outline: none; }
.write__option:focus-visible { outline: 1px solid var(--line); outline-offset: 4px; }

.write__title {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-mid);
}

.write__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.write__option:last-of-type { border-bottom: 1px solid var(--line); }

.write__name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.write__arrow {
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.write__option:hover .write__arrow { transform: translateX(4px); color: var(--text); }

.write__close {
  display: block;
  margin: 24px auto 0;
  padding: 4px 8px;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.write__close:hover { color: var(--text); }

@media (max-width: 720px) {
  /* на телефоне — снизу, под большой палец */
  .write { align-items: flex-end; padding: 0; }
  .write__card {
    max-width: none;
    padding: 30px 24px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(24px);
  }
  .write__name { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .write__veil,
  .write__card { transition: none; }
  .write__card { transform: none; }
  .write__arrow { transition: none; }
}
