/* Фитнес Академия Перфекто — публичный сайт.
   Палитра из референса: Cyan #00D5DF (основной), Coral #FF6B5C (действие),
   Молочный #F7F7F5 (фон), Графит #2B2F36 (тёмные вставки и текст).
   Шрифты Perfecto: Geometria (текст и заголовки) + Bebas (цифры и даты). */

@font-face { font-family: 'Geometria'; font-weight: 400; font-display: swap; src: url('../fonts/Geometria.woff') format('woff'); }
@font-face { font-family: 'Geometria'; font-weight: 500; font-display: swap; src: url('../fonts/Geometria-Medium.woff') format('woff'); }
@font-face { font-family: 'Geometria'; font-weight: 700; font-display: swap; src: url('../fonts/Geometria-Bold.woff') format('woff'); }
@font-face { font-family: 'Bebas'; font-weight: 400; font-display: swap; src: url('../fonts/BebasNeueCyrillic.woff2') format('woff2'); }

:root {
  --cyan: #00D5DF;
  --cyan-ink: #0097A0;          /* бирюзовый для текста на светлом фоне */
  --cyan-soft: #E3F9FA;
  --coral: #FF6B5C;
  --coral-hover: #F2553F;
  --coral-ink: #D94632;
  --coral-soft: #FFEDEA;
  --milk: #F7F7F5;
  --sand: #EEEAE2;
  --white: #FFFFFF;
  --graphite: #2B2F36;
  --graphite-2: #353A42;
  --graphite-3: #444A54;
  --ink: #1F2328;
  --text: #3A3F47;
  --muted: #6C727C;
  --line: #E6E6E1;
  --line-dark: rgba(255, 255, 255, .1);

  --font: 'Geometria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Bebas', 'Arial Narrow', sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(31, 35, 40, .04), 0 8px 24px rgba(31, 35, 40, .06);
  --shadow-hover: 0 2px 4px rgba(31, 35, 40, .05), 0 16px 40px rgba(31, 35, 40, .1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
/* страховка от горизонтального сдвига на мобиле (overflow:clip не ломает sticky-шапку/меню) */
body { overflow-x: clip; }
body {
  margin: 0; background: var(--milk); color: var(--text);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- типографика */
.h1, .h2, .h3, .h4, .h5, .hero-title { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.h4 { font-size: 20px; line-height: 1.3; display: block; }
.h5 { font-size: 17px; line-height: 1.35; display: block; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 640px; margin-top: 16px; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.55; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 12px; }
.eyebrow--cyan { color: var(--cyan); }

.ic { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2; white-space: normal; text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ic { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 92, .28); }
.btn-coral:hover { background: var(--coral-hover); }
.btn-orange { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 92, .3); }
.btn-orange:hover { color: #fff; }
.btn-outline { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral-ink); }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--coral-ink); }
.text-link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(43, 47, 54, .82); color: #fff; }
.chip--light { background: var(--cyan-soft); color: var(--cyan-ink); }
.chip--coral { background: var(--coral-soft); color: var(--coral-ink); }
.badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------- шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(31, 35, 40, .05); }
.header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { flex: none; display: block; }
.logo img { height: 52px; width: auto; }
.nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color .2s, background .2s; }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--cyan-ink); }
.ic-chevron { width: 16px; height: 16px; transition: transform .2s; }
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-sub a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.nav-sub a:hover { background: var(--milk); color: var(--cyan-ink); }
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .ic-chevron { transform: rotate(180deg); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.header-phone .ic { color: var(--cyan-ink); }
.header-phone:hover { color: var(--cyan-ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: var(--ink); }
.burger .ic { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- первый экран */
.hero { position: relative; overflow: hidden; background: var(--graphite); color: #fff; padding: clamp(48px, 7vw, 96px) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(0, 213, 223, .22), rgba(0, 213, 223, 0)); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-title { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; color: #fff; letter-spacing: -.02em; }
.hero-title span { display: block; color: var(--cyan); }
.hero-subtitle { margin-top: 20px; font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.35; color: #fff; }
.hero-text { margin-top: 14px; max-width: 540px; color: rgba(255, 255, 255, .72); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn-lg { padding: 0 24px; }
.hero-faces { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: center; padding: 24px 0; }
.hero-face { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-face img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.hero-face:hover img { transform: scale(1.04); }
.hero-face--1 { transform: translateY(-28px); }
.hero-face--2 { transform: translateY(28px); }
.hero-face--3 { transform: translateY(-36px); }
.hero-face figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 14px 14px; font-size: 13px; line-height: 1.35;
  background: linear-gradient(to top, rgba(20, 22, 26, .92), rgba(20, 22, 26, 0));
}
.hero-face figcaption b { display: block; font-size: 15px; color: #fff; }
.hero-face figcaption span { color: rgba(255, 255, 255, .7); }
.hero-badge {
  position: absolute; right: -8px; bottom: -7%; padding: 14px 18px; border-radius: 16px; transform: rotate(-4deg);
  background: var(--cyan); color: var(--graphite); font-weight: 700; font-size: 15px; line-height: 1.15; text-transform: uppercase; box-shadow: 0 12px 30px rgba(0, 213, 223, .3);
}
.hero-badge b { display: block; font-family: var(--font-num); font-weight: 400; font-size: 30px; letter-spacing: .02em; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
}
.hero-facts li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px 32px 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero-facts .ic { width: 28px; height: 28px; color: var(--cyan); }
.hero-facts b { display: block; color: #fff; font-size: 16px; }

/* ---------------------------------------------------------------- секции */
.section { padding: var(--section) 0; }
.section--tight { padding-top: calc(var(--section) * .5); }
.section--white { background: var(--white); }
.section--dark { background: var(--graphite); color: rgba(255, 255, 255, .72); }
.section--dark .h2, .section--dark .h4 { color: #fff; }
.section--dark .section-link { color: var(--cyan); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--coral-ink); white-space: nowrap; }
.section-link .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.section-link:hover .ic { transform: translateX(4px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* направления */
.direction-card {
  position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center;
  padding: 16px 56px 16px 16px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.direction-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.direction-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--cyan-soft); }
.direction-media img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.direction-body { display: grid; gap: 6px; }
.round-arrow {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral); color: #fff; transition: transform .25s var(--ease);
}
.round-arrow .ic { width: 18px; height: 18px; }
.direction-card:hover .round-arrow { transform: translateX(4px); }

/* программы */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.program-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.program-media { position: relative; background: var(--graphite); }
.program-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.program-media .chip { position: absolute; left: 16px; bottom: 16px; }
.program-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px; }
.program-body h3 a:hover { color: var(--cyan-ink); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 17px; height: 17px; color: var(--cyan-ink); }
.program-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 18px; color: var(--ink); white-space: nowrap; }
.price s { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.program-card--featured { grid-column: span 1; }

/* почему мы */
.adv-card { padding: 28px; border-radius: var(--radius-lg); background: var(--graphite-2); border: 1px solid var(--line-dark); transition: border-color .25s, transform .25s var(--ease); }
.adv-card:hover { border-color: rgba(0, 213, 223, .45); transform: translateY(-3px); }
.adv-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: rgba(0, 213, 223, .12); color: var(--cyan); }
.adv-icon .ic { width: 28px; height: 28px; }
.adv-card p { margin-top: 10px; font-size: 15px; line-height: 1.55; }

/* этапы */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; display: grid; gap: 16px; align-content: start; padding: 28px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.step + .step::before {
  content: ""; position: absolute; left: -24px; top: 52px; width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--coral) 0 6px, transparent 6px 10px);
}
.step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--font-num); font-size: 26px; letter-spacing: .04em; padding-top: 3px; }
.step p { margin-top: 6px; }

/* преподаватели — крупные портреты */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card { display: flex; flex-direction: column; }
.teacher-photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); }
.teacher-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.teacher-card:hover .teacher-photo img { transform: scale(1.04); }
.teacher-info { padding: 20px 4px 0; }
.teacher-pos { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.teacher-disc { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.teacher-disc span { color: var(--cyan-ink); font-weight: 700; }
.teacher-exp { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.teacher-exp .ic { width: 18px; height: 18px; color: var(--coral); }

/* отзывы */
.reviews-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px * 4) / 5); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review-video { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); text-align: left; scroll-snap-align: start; }
.review-video img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform .5s var(--ease); }
.review-video:hover img { transform: scale(1.04); }
.review-video .play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--coral); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s var(--ease);
}
.review-video .play .ic { width: 26px; height: 26px; margin-left: 3px; }
.review-video:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.review-video-cap { position: absolute; inset: auto 0 0; padding: 48px 16px 16px; color: rgba(255, 255, 255, .75); font-size: 13px; background: linear-gradient(to top, rgba(20, 22, 26, .9), rgba(20, 22, 26, 0)); }
.review-video-cap b { display: block; color: #fff; font-size: 16px; }
.review-text { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); scroll-snap-align: start; }
.review-text blockquote { font-size: 16px; line-height: 1.6; color: var(--ink); }
.review-text footer { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.review-text footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-text footer b { display: block; color: var(--ink); }
.stars { display: flex; gap: 2px; color: #FFB547; }
.ic-star { width: 18px; height: 18px; }

/* материалы */
.material-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
.material-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.material-media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--cyan-soft), #F1FBFC); color: var(--cyan-ink); }
.material-media img { width: 58%; height: 86%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 131, 140, .18)); transition: transform .4s var(--ease); }
.material-card:hover .material-media img { transform: translateY(-4px) rotate(-2deg); }
.ic-material { width: 44px; height: 44px; stroke-width: 1.5; }
.material-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 22px; }
.material-body .btn { align-self: flex-start; margin-top: auto; }

/* статьи */
.article-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--milk); transition: transform .25s var(--ease), box-shadow .25s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.article-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #EDEDE8, #F7F7F5); }
.article-media { overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s var(--ease); }
.article-card:hover .article-media img { transform: scale(1.04); }
.article-ph { display: grid; place-items: center; height: 100%; color: var(--line); }
.article-ph .ic { width: 56px; height: 56px; color: #D5D5CE; }
.article-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 26px; }
.article-card:hover .h5 { color: var(--cyan-ink); }
.article-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta-read { display: inline-flex; align-items: center; gap: 5px; }
.meta-read .ic-clock { width: 15px; height: 15px; }
.article-meta--lg .meta-read .ic-clock { width: 16px; height: 16px; }

/* старты */
.starts { display: grid; gap: 12px; }
.start-row { display: grid; grid-template-columns: 88px minmax(0, 2fr) auto minmax(0, 1.4fr) auto; gap: 24px; align-items: center; padding: 18px 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.start-date { display: grid; justify-items: center; line-height: 1; color: var(--coral-ink); }
.start-date b { font-family: var(--font-num); font-weight: 400; font-size: 44px; }
.start-date span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.start-main { display: grid; gap: 4px; }
.start-main b { color: var(--ink); font-size: 17px; line-height: 1.35; }

/* финальный призыв */
.cta { position: relative; overflow: hidden; padding: var(--section) 0; background: var(--graphite); color: rgba(255, 255, 255, .75); isolation: isolate; }
.cta::after { content: ""; position: absolute; z-index: -1; left: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 107, 92, .18), rgba(255, 107, 92, 0)); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.cta .h2 { color: #fff; max-width: 560px; }
.cta-copy > p { margin-top: 16px; max-width: 520px; }
.cta-points { display: grid; gap: 12px; margin-top: 28px; }
.cta-points li { display: flex; gap: 12px; align-items: center; color: #fff; }
.cta-points .ic { color: var(--cyan); }

/* ---------------------------------------------------------------- формы */
.lead-form { display: grid; gap: 16px; }
.lead-form--dark { padding: 32px; border-radius: var(--radius-lg); background: var(--graphite-2); border: 1px solid var(--line-dark); }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 500; color: var(--ink); }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.lead-form--dark .field span { color: rgba(255, 255, 255, .85); }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font: 400 16px var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #A5A9B0; }
.field input:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(0, 213, 223, .18); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.lead-form--dark .field input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.lead-form--dark .field input::placeholder { color: rgba(255, 255, 255, .4); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--coral); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.lead-form--dark .consent { color: rgba(255, 255, 255, .6); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.is-error { color: var(--coral-ink); }
.lead-form--dark .form-status.is-error { color: #FF9B90; }
.form-status.is-ok { color: var(--cyan-ink); font-weight: 700; }
.lead-form--dark .form-status.is-ok { color: var(--cyan); }
.lead-form.is-sent .field, .lead-form.is-sent .consent, .lead-form.is-sent button, .lead-form.is-sent .field-set { display: none; }
.lead-form.is-sent .form-status { font-size: 17px; }

/* ---------------------------------------------------------------- форма консультации (/obuchenie/) */
.section--milk { background: var(--milk); }
.consult-form { max-width: 720px; margin-top: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(31, 35, 40, .05); }
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-set { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.field-set legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.field-set legend em { font-style: normal; color: var(--muted); font-weight: 400; }
.req { font-style: normal; color: var(--coral); margin-left: 2px; font-weight: 700; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-chip span { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.radio-chip input:hover + span { border-color: var(--cyan-ink); }
.radio-chip input:focus-visible + span { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.radio-chip input:checked + span { border-color: var(--cyan-ink); background: var(--cyan-soft); color: var(--cyan-ink); }
.consult-form button[type="submit"] { justify-self: start; }
@media (max-width: 560px) { .consult-grid { grid-template-columns: 1fr; } .consult-form button[type="submit"] { width: 100%; } }

/* ---------------------------------------------------------------- модальные окна */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, .6); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 36px; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: pop .25s var(--ease); }
.modal-dialog .h3 { margin-bottom: 8px; }
.modal-dialog .muted { margin-bottom: 22px; }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.modal-close:hover { background: var(--milk); color: var(--ink); }
.modal-video .modal-dialog { max-width: 420px; padding: 0; background: #000; overflow: hidden; }
.modal-video video { width: 100%; max-height: calc(100vh - 32px); }
.modal-video .modal-close { z-index: 2; color: #fff; background: rgba(0, 0, 0, .4); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- заглушки разделов */
.stub { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.stub-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--cyan-ink); }
.stub-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border-left: 4px solid var(--cyan); }
.stub-note .ic { width: 28px; height: 28px; color: var(--cyan-ink); }
.stub-note b { display: block; color: var(--ink); font-size: 17px; }
.stub-note span { font-size: 15px; color: var(--muted); }
.stub-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stub-form { padding: 32px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.stub-form .muted { margin: 6px 0 20px; }

/* ---------------------------------------------------------------- подвал */
.site-footer { background: #23262C; color: rgba(255, 255, 255, .62); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; max-width: 300px; line-height: 1.55; }
.logo-light img { height: 64px; width: auto; }
.footer-title { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--cyan); }
.footer-contacts { display: grid; gap: 12px; align-content: start; }
.footer-contacts p { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--cyan); }
.footer-phone { font-size: 22px; font-weight: 700; color: #fff; }
.footer-socials { margin-top: 24px; }
.footer-socials-label { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.socials { display: flex; gap: 10px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, color .2s; }
.social:hover { background: var(--cyan); color: var(--graphite); }
.social--soon { opacity: .5; cursor: default; }
.social--soon:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.footer-msgr { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.footer-msgr a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.footer-msgr-soon { color: rgba(255, 255, 255, .55); text-decoration: underline dotted; cursor: default; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom span { margin-right: auto; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 1520px) {
  .header-phone span { display: none; }
}
@media (max-width: 1180px) {
  .nav-link { padding: 10px 9px; font-size: 14px; }
  .reviews-rail { grid-auto-columns: calc((100% - 24px * 3) / 4); }
}
@media (max-width: 1024px) {
  .burger { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 76px 0 0; z-index: 49; display: flex; flex-direction: column; gap: 24px; padding: 16px var(--gutter) 32px;
    background: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { justify-content: space-between; width: 100%; padding: 16px 0; font-size: 18px; }
  .nav-sub { position: static; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub.is-open .nav-sub { display: block; }
  .has-sub:hover .ic-chevron { transform: none; }
  .has-sub.is-open .ic-chevron { transform: rotate(180deg); }
  .nav-mobile-extra { display: grid; gap: 16px; }
  .nav-phone { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 700; color: var(--ink); }
  .hero-grid, .cta-grid, .stub-grid { grid-template-columns: 1fr; }
  .hero-faces { min-height: 0; max-width: 620px; }
  .grid-4, .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step + .step::before { display: none; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .reviews-rail { grid-auto-columns: calc((100% - 24px * 2) / 3); }
  .start-row { grid-template-columns: 72px 1fr auto; }
  .start-row .start-note { grid-column: 2 / 3; }
  .start-row .chip { grid-column: 3; grid-row: 1; }
  .start-row .btn { grid-column: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { height: 64px; gap: 12px; }
  .nav { inset: 64px 0 0; }
  .logo img { height: 42px; }
  .header-actions { margin-left: auto; gap: 4px; }
  .header-phone { width: 44px; height: 44px; justify-content: center; }
  .header-phone .ic { width: 22px; height: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-faces { gap: 8px; }
  .hero-face { border-radius: var(--radius); }
  .hero-face figcaption { padding: 28px 8px 8px; font-size: 11px; }
  .hero-face figcaption b { font-size: 12px; }
  .hero-face figcaption span { display: none; }
  .hero-face--1 { transform: translateY(-16px); }
  .hero-face--2 { transform: translateY(10px); }
  .hero-badge { right: 0; bottom: -6px; padding: 10px 12px; font-size: 12px; }
  .hero-badge b { font-size: 22px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 18px 0; border-left: 0; }
  .hero-facts li + li { border-top: 1px solid var(--line-dark); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .grid-3, .grid-4, .programs-grid, .steps { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .teacher-info { padding-top: 14px; }
  .teacher-info .h4 { font-size: 17px; }
  .teacher-disc, .teacher-exp { display: none; }
  .teacher-pos { font-size: 13px; }
  .direction-card { grid-template-columns: 96px 1fr; }
  .reviews-rail { grid-auto-columns: 62%; gap: 14px; }
  .start-row { grid-template-columns: 60px 1fr; gap: 12px 16px; padding: 16px; }
  .start-row .chip, .start-row .start-note, .start-row .btn { grid-column: 2; grid-row: auto; justify-self: start; }
  .start-date b { font-size: 36px; }
  .lead-form--dark, .stub-form { padding: 22px; }
  .modal-dialog { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================================================================ разделы: Обучение и База знаний */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.page-head .crumbs { margin-bottom: 24px; }
.page-head .h1 { max-width: 880px; }
.lead--strong { font-weight: 700; color: var(--ink); }
.lead p + p { margin-top: 12px; }
.section--flush { padding-top: 0; }
.section--flush-top { padding-top: 0; }
.catalog-title { margin-bottom: 20px; }
.narrow-text { max-width: 860px; }

.filters-bar { display: grid; gap: 12px; margin-bottom: 32px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { min-width: 72px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 15px; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.filter:hover { border-color: var(--cyan-ink); color: var(--cyan-ink); }
.filter.is-active { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.filter-empty { margin-top: 8px; padding: 28px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.filter-empty .row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.filter-empty .btn { margin-top: 14px; }
[data-filter-items] > [hidden] { display: none !important; }

/* ================================================================ /obuchenie/: герой на фоне, фильтр-селекты, «Как выбрать» плашками, форма на фоне */
.edu-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(400px, 40vw, 560px); display: flex; align-items: center; padding: clamp(40px, 5vw, 72px) 0; color: #fff; background: #1E2126 url(/static/img/edu-hero.jpg) center 28% / cover no-repeat; }
/* закреплённый фон (параллакс) при скролле — только на десктопе (на мобиле fixed глючит) */
@media (hover: hover) and (min-width: 1025px) { .edu-hero { background-attachment: fixed; } }
.edu-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.edu-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to right, rgba(18,21,25,.93) 0%, rgba(18,21,25,.82) 46%, rgba(18,21,25,.5) 100%),
  linear-gradient(to top, rgba(18,21,25,.55), rgba(18,21,25,.1)); }
/* герой в ширину сетки (контейнер), тексты по левому краю */
.edu-hero .crumbs { margin-bottom: 22px; color: rgba(255,255,255,.7); }
.edu-hero .crumbs a { color: rgba(255,255,255,.7); }
.edu-hero .crumbs a:hover { color: #fff; }
.edu-hero .h1 { max-width: 820px; color: #fff; }
.edu-hero-lead { margin-top: 18px; max-width: 680px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: #fff; }
.edu-hero-text { margin-top: 14px; max-width: 640px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); }

/* фильтр: плашка с заголовком + множественный выбор (дропдауны с чекбоксами) + кнопка «Подобрать» */
.filters-panel { margin-bottom: clamp(32px, 4vw, 48px); padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.6vw, 32px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.filters-title { margin: 0 0 20px; }
.filters-bar--ms { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 0; padding: 0; background: none; box-shadow: none; }
.filters-bar--ms .filter-field { flex: 1 1 280px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.filters-bar--ms .filter-label { flex: none; min-width: 0; }
.ms { position: relative; flex: 1; min-width: 0; }
.ms-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: 600 15px var(--font); color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ms-toggle:hover { border-color: var(--cyan-ink); }
.ms.is-open .ms-toggle, .ms.is-filled .ms-toggle { border-color: var(--cyan-ink); }
.ms-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .2s var(--ease); flex: none; }
.ms.is-open .ms-chevron { transform: rotate(180deg); }
.ms-panel { position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 100%; display: grid; gap: 2px; padding: 8px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(31,35,40,.14); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.ms.is-open .ms-panel { opacity: 1; visibility: visible; transform: none; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background .15s; }
.ms-opt:hover { background: var(--milk); }
.ms-opt input { flex: none; width: 18px; height: 18px; accent-color: var(--cyan-ink); cursor: pointer; }
.ms-opt--all { margin-bottom: 4px; padding-bottom: 11px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.filters-submit { flex: none; min-height: 52px; }
@media (max-width: 760px) {
  .filters-bar--ms { flex-direction: column; align-items: stretch; gap: 14px; }
  .filters-bar--ms .filter-field { flex: 1 1 auto; }
  .filters-submit { width: 100%; }
}

.how-sub { margin-top: 16px; margin-bottom: 36px; max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.how-tile { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.how-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--cyan-soft); color: var(--cyan-ink); }
.how-ic .ic { width: 26px; height: 26px; }
.how-title { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.how-tile p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.how-link { font-weight: 700; color: var(--cyan-ink); text-decoration: none; }
.how-link:hover { text-decoration: underline; }
.footer-tz { display: inline-block; margin-top: 4px; font-size: 12px; opacity: .72; }
.loc-tz { font-size: 13px; margin-top: 4px; }
.how-note { margin-top: 28px; max-width: 760px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 920px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how-grid { grid-template-columns: 1fr; } }

/* «Как выбрать программу» — тёплый фон в тон молочному (чуть глубже, чтобы отделить блок) */

.edu-consult { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #1E2126; }
.edu-consult-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.edu-consult::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(18,21,25,.86), rgba(18,21,25,.9)); }
.edu-consult .h2 { color: #fff; }
.edu-consult-lead { max-width: 640px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); }
/* кнопки «способа связи» по высоте инпутов (имя/телефон выше): равняем низ колонок и отступы */
.consult-row { align-items: end; }
.consult-row .field-set { gap: 6px; }
.consult-row .field-set .radio-chip span { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
/* legend не участвует в grid-gap fieldset, поэтому ряд чипов поднимается на 6px
   выше инпутов — компенсируем зазором над рядом, чтобы чипы встали вровень */
.consult-row .field-set .radio-row { gap: 10px; margin-top: 6px; }
/* форма на всю ширину сетки, полупрозрачное «стекло» на тёмном фоне */
.edu-consult .consult-form { max-width: none; margin-top: 28px; gap: clamp(20px, 2.4vw, 28px); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* строка 1: имя | телефон | способ связи */
.consult-row { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
/* строка 2: цель обучения — плашки на всю ширину */
.consult-interest .radio-row--wide { display: flex; flex-wrap: wrap; gap: 10px; }
.consult-interest .radio-row--wide .radio-chip { flex: 1 1 200px; }
.consult-interest .radio-row--wide .radio-chip span { display: block; width: 100%; text-align: center; }
.consult-promo { max-width: 340px; margin-top: 16px; }
/* строка 3: кнопка + согласия */
.consult-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.consult-foot .consult-consents { flex: 1 1 260px; display: grid; gap: 8px; }
.consult-foot .form-status { flex-basis: 100%; margin: 0; }
@media (max-width: 760px) { .consult-row { grid-template-columns: 1fr; } .consult-foot .btn { width: 100%; } }
.edu-consult .field span, .edu-consult .field-set legend { color: rgba(255,255,255,.88); }
.edu-consult .field-set legend em { color: rgba(255,255,255,.55); }
.edu-consult .field input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.edu-consult .field input::placeholder { color: rgba(255,255,255,.45); }
.edu-consult .field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,213,223,.2); }
.edu-consult .radio-chip span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.9); }
.edu-consult .radio-chip input:hover + span { border-color: var(--cyan); }
.edu-consult .radio-chip input:checked + span { background: rgba(0,213,223,.16); border-color: var(--cyan); color: #fff; }
.edu-consult .consent { color: rgba(255,255,255,.66); }
.edu-consult .consent a { color: rgba(255,255,255,.88); }
.edu-consult .form-status.is-ok { color: var(--cyan); }

/* ================================================================ /kontakty/ */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { padding: 28px 26px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.contact-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--cyan-soft); color: var(--cyan-ink); }
.contact-ic .ic { width: 26px; height: 26px; }
.contact-label { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-values { display: grid; gap: 6px; }
.contact-value { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.3; transition: color .2s; }
.contact-value:hover { color: var(--cyan-ink); }
.contact-msgrs { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-msgr { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); transition: border-color .2s, color .2s, background .2s; }
.contact-msgr .ic { width: 22px; height: 22px; }
.contact-msgr:hover { border-color: var(--cyan-ink); color: var(--cyan-ink); background: var(--cyan-soft); }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-loc-text { display: grid; gap: 32px; }
.loc-item .h3 { margin: 0 0 10px; }
.loc-strong { font-weight: 700; color: var(--ink); }
.loc-item p { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--text); }
.loc-item p.muted { color: var(--muted); font-size: 15px; }
.contact-loc-map { display: grid; gap: 16px; position: sticky; top: 96px; }
.map-facade, .map-frame { width: 100%; height: clamp(300px, 42vw, 440px); border-radius: var(--radius-lg); border: 0; }
.map-facade { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #2B3340, #1E2531); color: #fff; box-shadow: 0 0 0 1px var(--line); }
.map-facade::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0); background-size: 22px 22px; opacity: .5; }
.map-facade-pin { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.map-facade-pin .ic { width: 28px; height: 28px; }
.map-facade-text { position: relative; font-size: 15px; font-weight: 700; }
.map-facade:hover .map-facade-pin { transform: scale(1.06); }
.map-facade:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 2px; }
.map-gis { justify-self: start; }
/* карта: ч/б + метка с логотипом по центру */
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.map-frame { filter: grayscale(1) contrast(1.04); }
.map-wrap .map-frame { border-radius: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 4px rgba(255,255,255,.55); pointer-events: none; }
.map-pin img { display: block; width: 42px; height: auto; }
@media (max-width: 860px) { .contact-loc { grid-template-columns: 1fr; } .contact-loc-map { position: static; } .map-gis { width: 100%; } }
.contact-progs { margin-top: 24px; }

/* контакты: герой на фоне */
.contacts-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(400px, 40vw, 560px); display: flex; align-items: center; padding: clamp(40px, 5vw, 72px) 0; color: #fff; background: #1E2126 url(/static/img/contacts-hero.jpg) center 28% / cover no-repeat; }
/* закреплённый фон (параллакс) при скролле — только на десктопе */
@media (hover: hover) and (min-width: 1025px) { .contacts-hero { background-attachment: fixed; } }
.contacts-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to right, rgba(18,21,25,.93) 0%, rgba(18,21,25,.8) 50%, rgba(18,21,25,.52) 100%),
  linear-gradient(to top, rgba(18,21,25,.5), rgba(18,21,25,.12)); }
.contacts-hero .crumbs { margin-bottom: 20px; color: rgba(255,255,255,.7); }
.contacts-hero .crumbs a { color: rgba(255,255,255,.7); }
.contacts-hero .crumbs a:hover { color: #fff; }
.contacts-hero .h1 { max-width: 900px; color: #fff; }
.contacts-hero-lead { margin-top: 16px; max-width: 680px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); }
/* кнопки маршрута */
.route-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.map-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-size: 15px; font-weight: 700; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.map-btn:hover { border-color: var(--cyan-ink); box-shadow: 0 6px 18px rgba(31,35,40,.08); transform: translateY(-1px); }
.svc-logo { width: 22px; height: 22px; flex: none; }
.svc-2gis { height: 20px; width: auto; flex: none; display: block; }
@media (max-width: 420px) { .route-btns { width: 100%; } .map-btn { flex: 1 1 auto; justify-content: center; } }
/* режим работы — строки */
.loc-hours { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--text); }
.loc-hours + .loc-hours { margin-top: 2px; }
/* блок «По вопросам обучения» — на фоне, по сетке слева (не центрируем) */
.contact-cta-inner { position: relative; }
.contact-cta-inner .lead { max-width: 680px; }
.contact-cta-note { margin-top: 10px; max-width: 680px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }
.contact-cta .contact-progs { margin-top: 26px; }
/* CTA выше, чтобы не обрезало голову на фото */
.contact-cta { padding-top: clamp(64px, 8vw, 128px); padding-bottom: clamp(64px, 8vw, 128px); }
.contact-cta .edu-consult-bg { object-position: center 22%; }

/* ================================================================ блог и статья */
.blog-grid { align-items: stretch; }
/* карточки блога — как карточки программ на главной (белый фон) */
.article-card { background: var(--white); }
.blog-grid .article-card .h4, .blog-grid .article-card .h5 { font-size: 19px; line-height: 1.3; }

/* хиро блога — на фоне, как в других разделах */
.blog-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(400px, 40vw, 560px); display: flex; align-items: center; padding: clamp(40px, 5vw, 72px) 0; color: #fff; background: #1E2126 url(/static/img/blog-hero.jpg) center 22% / cover no-repeat; }
.blog-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to right, rgba(18,21,25,.93) 0%, rgba(18,21,25,.8) 50%, rgba(18,21,25,.5) 100%),
  linear-gradient(to top, rgba(18,21,25,.5), rgba(18,21,25,.12)); }
@media (hover: hover) and (min-width: 1025px) { .blog-hero { background-attachment: fixed; } }
.blog-hero .crumbs, .blog-hero .crumbs a { color: rgba(255,255,255,.7); }
.blog-hero .crumbs a:hover { color: #fff; }
.blog-hero .h1 { max-width: 900px; color: #fff; }
.blog-hero-lead { margin-top: 16px; max-width: 700px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; color: #fff; }
.blog-hero-text { margin-top: 12px; max-width: 680px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); }

/* единый hero раздела (База знаний, Преподаватели) — как в блоге/обучении */
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(400px, 40vw, 560px); display: flex; align-items: center; padding: clamp(40px, 5vw, 72px) 0; color: #fff; background-color: #1E2126; background-size: cover; background-repeat: no-repeat; background-position: center 34%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to right, rgba(18,21,25,.93) 0%, rgba(18,21,25,.8) 50%, rgba(18,21,25,.5) 100%),
  linear-gradient(to top, rgba(18,21,25,.5), rgba(18,21,25,.12)); }
@media (hover: hover) and (min-width: 1025px) { .page-hero { background-attachment: fixed; } }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255,255,255,.7); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .h1 { max-width: 900px; color: #fff; }
.page-hero-lead { margin-top: 16px; max-width: 720px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 700; color: #fff; }
.page-hero-text { margin-top: 12px; max-width: 700px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); }
.page-hero--kb { background-image: url(/static/img/kb-hero.jpg); background-position: right center; }
.page-hero--sv { background-image: url(/static/img/sved-hero.jpg); background-position: right center; }
.page-hero--reviews { background-image: url(/static/img/reviews-hero.jpg); background-position: right center; }
/* hero с собственной обложкой (страница гайда) — картинка как фон через <img> */
.page-hero--cover { background-image: none; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* На узких экранах фото в hero обрезается некрасиво (части тел) — затемняем фон почти в сплошной,
   оставляя лёгкую текстуру. Текст читается, обрезанных фрагментов не видно. */
@media (max-width: 640px) {
  .page-hero::before, .edu-hero::before {
    background:
      linear-gradient(to right, rgba(18,21,25,.95) 0%, rgba(18,21,25,.93) 100%),
      linear-gradient(to top, rgba(18,21,25,.55), rgba(18,21,25,.4)) !important;
  }
  .page-hero-bg, .edu-hero-bg { opacity: .16; }
  /* фото-фоны блочных hero/баннеров курса — тоже приглушаем на мобиле */
  .cta-card-bg, .demo-access-bg, .practice-sec-bg, .levels-bg, .kbp-bg, .article-hero-bg, .article-cta-bg { opacity: .2; }
}
/* единая высота hero во всех разделах задаётся базовым .page-hero */

/* Страница гайда/материала как лендинг: широкий hero + плашки-тезисы */
.mat-hero-wide .mat-hero-chip { display: inline-flex; margin-bottom: 14px; }
.mat-hero-wide .page-hero-text { margin-top: 14px; }
.mat-hero-wide .page-hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .mat-note { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.72); }
.page-hero .mat-facts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero .mat-facts span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13.5px; font-weight: 700; color: #fff; }

/* Секции-тезисы материала идут друг за другом (full-width) */
.mat-intro-sec { padding-bottom: 0; }
.mat-intro { max-width: 820px; }
.mat-intro p { font-size: 17px; line-height: 1.7; color: var(--text); }
.mat-sec-t { margin-bottom: 18px; }
.mat-sec-text { max-width: 820px; }
.mat-sec-text p { line-height: 1.7; margin: 12px 0; }
.mat-sec .prose + .mat-subtiles, .mat-sec .prose + .mat-chips,
.mat-sec .mat-subtiles + .prose, .mat-sec .mat-chips + .prose { margin-top: 22px; }

/* Подзаголовки ### — плитками */
.mat-subtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 4px 0; }
.mat-subtile { position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-lg); background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(8,10,14,.07); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mat-subtile-num { position: absolute; top: 2px; right: 18px; font-size: clamp(74px, 8vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: rgba(31, 35, 40, .06); pointer-events: none; user-select: none; }
.mat-subtile-t { position: relative; margin-bottom: 10px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mat-subtile .prose { position: relative; }
.mat-subtile .prose p { font-size: 15px; line-height: 1.6; margin: 8px 0; }
@media (max-width: 760px) { .mat-subtiles { grid-template-columns: 1fr; } }
/* блок демо-версии (связанный): заголовок, текст+фичи+CTA | визуал, снизу — результат */
.mat-demo-head { max-width: 900px; margin-bottom: clamp(24px, 3vw, 40px); }
.mat-demo-head .eyebrow { margin-bottom: 12px; }
.mat-demo-head .mat-sec-t { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.mat-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 56px); align-items: end; }
.mat-demo-lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.demo-feats { display: flex; flex-direction: column; gap: 22px; margin: 28px 0 32px; }
.demo-feat { display: flex; align-items: flex-start; gap: 16px; }
.demo-feat-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cyan-soft); color: var(--cyan-ink); }
.demo-feat-ic .ic { width: 24px; height: 24px; }
.demo-feat-l { font-size: 17px; font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.demo-feat-d { font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 430px; }
.mat-demo-shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(8,10,14,.18); }
.mat-demo-shot img { display: block; width: 100%; height: auto; }
.btn-dark { background: #1E2126; color: #fff; }
.btn-dark:hover { background: #14171b; color: #fff; }
.btn-dark .ic { display: inline-flex; width: 18px; height: 18px; }
/* плашка «Ваш персональный результат» */
.demo-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(20px, 3vw, 48px); margin-top: clamp(26px, 3.2vw, 44px); padding: clamp(26px, 2.8vw, 40px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(8,10,14,.07); }
.demo-result-t { font-size: clamp(19px, 2vw, 23px); font-weight: 700; color: var(--ink); margin: 4px 0 8px; }
.demo-result-d { font-size: 15px; line-height: 1.6; color: var(--muted); }
.demo-bars { display: flex; flex-direction: column; gap: 14px; }
.demo-bar { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 4px 12px; }
.demo-bar-l { grid-column: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.demo-bar-v { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-bar-track { grid-column: 1; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.demo-bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--cyan-ink); }
.demo-bar-fill.w60 { width: 60%; } .demo-bar-fill.w70 { width: 70%; } .demo-bar-fill.w85 { width: 85%; } .demo-bar-fill.w90 { width: 90%; }
@media (max-width: 920px) { .mat-demo { grid-template-columns: 1fr; gap: 30px; } .demo-result { grid-template-columns: 1fr; gap: 24px; } }

/* блок «Как это работает» (Принимайте решения): текст+карточки | фото с карточками */
.mat-how { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 60px); align-items: end; }
.mat-how-text .eyebrow { margin-bottom: 12px; }
.mat-how-text .mat-sec-t { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.mat-how-lead { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.how-feats { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.how-feat { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; border-radius: 16px; background: var(--white); box-shadow: 0 6px 20px rgba(8,10,14,.05); }
.how-feat-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan-ink); }
.how-feat-ic .ic { width: 23px; height: 23px; }
.how-feat-l { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.how-feat-d { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mat-how-foot p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }
.mat-how-shot { margin: 0; align-self: end; }
.mat-how-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
@media (max-width: 920px) { .mat-how { grid-template-columns: 1fr; gap: 28px; } }

/* блок «Кому пригодится»: текст + 3 карточки-аудитории | фото */
.mat-aud { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 3.5vw, 52px); align-items: center; }
.mat-aud-text { display: flex; flex-direction: column; }
.mat-aud-text .eyebrow { margin-bottom: 12px; }
.mat-aud-text .mat-sec-t { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.mat-aud-text .prose p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.aud-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 3.5vw, 44px); }
.aud-card { padding: 22px 20px; border-radius: 16px; background: var(--white); box-shadow: 0 6px 20px rgba(8,10,14,.05); }
.aud-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan-ink); margin-bottom: 14px; }
.aud-ic .ic { width: 23px; height: 23px; }
.aud-t { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0 0 8px; }
.aud-d { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mat-aud-photo { margin: 0; }
.mat-aud-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 920px) { .mat-aud { grid-template-columns: 1fr; } .mat-aud-photo { order: -1; max-width: 560px; } }
@media (max-width: 640px) { .aud-cards { grid-template-columns: 1fr; } }

/* блок «Зачем тренеру знать границы»: текст | фото с карточками-вопросами */
.mat-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 3.5vw, 56px); align-items: center; }
.mat-split-text .eyebrow { margin-bottom: 12px; }
.mat-split-text .mat-sec-t { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; }
.mat-split-text .prose p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.mat-split-photo { margin: 0; }
.mat-split-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 920px) { .mat-split { grid-template-columns: 1fr; } }

/* блок «4 вопроса» (фрагмент): вопросы-карточки | фото, снизу — логика */
.mat-fourq .h2 { max-width: 860px; margin-bottom: 0; }
.fourq-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 3.5vw, 48px); align-items: stretch; margin-top: clamp(26px, 3vw, 40px); }
.fourq-cards { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.fourq-card { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border-radius: 16px; background: var(--white); box-shadow: 0 6px 20px rgba(8,10,14,.05); }
.fourq-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,107,92,.12); color: var(--coral); font-weight: 800; font-size: 15px; }
.fourq-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.fourq-photo { margin: 0; }
.fourq-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.fourq-logic { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 40px); padding: clamp(22px, 2.6vw, 34px) clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: rgba(255,107,92,.07); }
.fourq-logic-label { font-size: 16px; line-height: 1.4; color: var(--muted); max-width: 150px; }
.fourq-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fourq-step { display: flex; align-items: center; gap: 14px; }
.fourq-step-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--coral); box-shadow: 0 6px 16px rgba(255,107,92,.2); }
.fourq-step-ic .ic { width: 23px; height: 23px; }
.fourq-step-t { margin: 0; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.fourq-step-t b { display: block; font-size: 15px; }
.fourq-arrow { display: inline-grid; place-items: center; color: var(--coral); }
.fourq-arrow .ic { width: 22px; height: 22px; }
@media (max-width: 920px) { .fourq-main { grid-template-columns: 1fr; } .fourq-photo { order: -1; } .fourq-logic { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 560px) { .fourq-cards { grid-template-columns: 1fr; } }

/* фрагмент-блок с чипами-фичами (функциональная тренировка): текст+чипы | фото */
.ffrag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.ffrag-text .eyebrow { margin-bottom: 12px; }
.ffrag-text .mat-sec-t { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; }
.ffrag-text .prose p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.ffrag-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.ffrag-chip { display: flex; flex-direction: column; gap: 10px; }
.ffrag-chip-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,107,92,.1); color: var(--coral); }
.ffrag-chip-ic .ic { width: 24px; height: 24px; }
.ffrag-chip-l { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ffrag-photo { margin: 0; }
.ffrag-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 920px) { .ffrag { grid-template-columns: 1fr; } .ffrag-photo { order: -1; } }
@media (max-width: 480px) { .ffrag-chips { grid-template-columns: 1fr 1fr; } }

/* блок «Где брать первых клиентов»: текст+4 карточки-источника | фото */
.mat-src-head { max-width: 780px; margin-bottom: clamp(24px, 3vw, 38px); }
.mat-src-head .eyebrow { margin-bottom: 12px; }
.mat-src-head .mat-sec-t { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; }
.mat-src-lead { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0; }
.mat-src { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.src-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.src-card { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border-radius: 16px; background: var(--white); box-shadow: 0 6px 20px rgba(8,10,14,.05); }
.src-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,107,92,.1); color: var(--coral); }
.src-ic .ic { width: 23px; height: 23px; }
.src-tx { min-width: 0; }
.src-t { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.src-d { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mat-src-photo { margin: 0; }
.mat-src-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) { .mat-src { grid-template-columns: 1fr; } .mat-src-photo { order: -1; max-width: 560px; } }
@media (max-width: 560px) { .src-cards { grid-template-columns: 1fr; } }

/* блок «Работа в клубе, самостоятельно или онлайн»: 4 карточки фото+иконка+текст */
.mat-work-sec .mat-sec-t { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.mat-work-lead { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 clamp(26px, 3vw, 40px); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: 0 8px 26px rgba(8,10,14,.07); }
.work-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.work-body { flex: 1; padding: 24px 22px; }
.work-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan-ink); margin-bottom: 14px; }
.work-ic .ic { width: 23px; height: 23px; }
.work-t { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.3; }
.work-d { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 920px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* блок «Что вы получите после прохождения»: 3 карточки материалов + бонус */
.mat-gain-head { max-width: 640px; }
.mat-gain-head .eyebrow { margin-bottom: 12px; }
.mat-gain-head .mat-sec-t { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; }
.mat-gain-lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.gain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 3vw, 40px); }
.gain-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(8,10,14,.07); color: var(--ink); }
.gain-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--cyan-soft); color: var(--cyan-ink); margin-bottom: 10px; }
.gain-ic .ic { width: 26px; height: 26px; }
.gain-t { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.gain-d { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.gain-bonus { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 32px); margin-top: 20px; padding: clamp(24px, 2.6vw, 38px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(8,10,14,.07); }
.gain-bonus-ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--cyan-soft); color: var(--cyan-ink); }
.gain-bonus-ic .ic { width: 30px; height: 30px; }
.gain-bonus-t { font-size: clamp(19px, 2vw, 22px); font-weight: 700; color: var(--ink); margin: 4px 0 6px; }
.gain-bonus-d { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 760px; }
@media (max-width: 860px) { .gain-grid { grid-template-columns: 1fr; } .gain-bonus { flex-direction: column; align-items: flex-start; } }

/* Буллеты — отдельными плашечками (чистая карточка с галочкой) */
.mat-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 6px 0; }
.mat-chip { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: var(--white); box-shadow: 0 6px 20px rgba(8,10,14,.05); }
.mat-chip-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-ink); }
.mat-chip-ic .ic { width: 20px; height: 20px; }
.mat-chip-tx { min-width: 0; }
.mat-chip-tx p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.mat-chip strong { color: var(--ink); }
@media (max-width: 640px) { .mat-chips { grid-template-columns: 1fr; } }
.page-hero--teachers { background-image: url(/static/img/teachers-hero.jpg); background-position: right 38%; }
@media (min-width: 1500px) { .page-hero--teachers { background-position: right 30%; } }
/* Об Академии — hero: симметричные вертикальные отступы + мягкое появление */
.page-hero--about { background-image: url(/static/img/about-hero-photo.jpg); background-position: center center; padding-top: clamp(52px, 6vw, 96px); padding-bottom: clamp(52px, 6vw, 96px); }
.page-hero-actions { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero--about .page-hero-inner > * { opacity: 0; animation: hero-rise .7s var(--ease, cubic-bezier(.22,1,.36,1)) forwards; }
  .page-hero--about .crumbs { animation-delay: .05s; }
  .page-hero--about .h1 { animation-delay: .14s; }
  .page-hero--about .page-hero-lead { animation-delay: .22s; }
  .page-hero--about .page-hero-text { animation-delay: .30s; }
  .page-hero--about .page-hero-actions { animation-delay: .40s; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Видимое чередование фонов (тёплый песочный тон как на «Обучении»).
   Специфичность .section.section--sand — чтобы перебить общий сброс
   `.section, .section--white { background: transparent }` ниже по файлу. */
.section.section--sand { background: var(--sand); }

/* «Академия внутри…» — статичная бенто-композиция вместо карусели */
.media-bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: clamp(140px, 15vw, 205px); gap: 16px; margin-top: 40px; }
.media-cell { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease, cubic-bezier(.22,1,.36,1)); }
.media-cell:hover img { transform: scale(1.04); }
.media-cell--tall { grid-row: span 2; }
.media-cell--wide { grid-column: span 2; }
@media (max-width: 760px) {
  .media-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(120px, 34vw, 170px); }
  .media-cell--tall { grid-row: span 2; }
  .media-cell--wide { grid-column: span 2; grid-row: auto; }
}

/* Секции с тёмным фоном-изображением, закреплённым при скролле (parallax) */
.section.bg-fixed { position: relative; isolation: isolate; color: #fff; background-color: #1E2126; background-size: cover; background-position: center; background-repeat: no-repeat; }
.bg-fixed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(18,21,25,.68), rgba(18,21,25,.82)); }
@media (hover: hover) and (min-width: 1025px) { .section.bg-fixed { background-attachment: fixed; } }
.bg-fixed .h2 { color: #fff; }
.bg-fixed .how-sub { color: rgba(255,255,255,.78); }
.bg-fixed-lead { max-width: 640px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); }
.section.bg-fixed--approach { background-image: url(/static/img/edu-hero.jpg); }
.bg-fixed--approach::before { background: linear-gradient(rgba(18,21,25,.55), rgba(18,21,25,.7)); }
.section.bg-fixed--license { background-image: url(/static/img/kb-hero.jpg); background-position: center; }

/* «Как мы подходим к обучению» — лёгкие «стеклянные» карточки с тихой фоновой цифрой */
.approach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.approach-card { position: relative; overflow: hidden; padding: clamp(26px, 2.6vw, 38px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 16px 40px rgba(8,10,14,.28); }
.approach-num { position: absolute; top: 2px; right: 18px; font-size: clamp(74px, 8vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: rgba(31, 35, 40, .06); pointer-events: none; user-select: none; }
.approach-ic { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 15px; background: var(--cyan-soft); color: var(--cyan-ink); }
.approach-ic .ic { width: 26px; height: 26px; }
.approach-title { position: relative; margin-bottom: 10px; font-size: 20px; font-weight: 700; color: var(--ink); }
.approach-card p { position: relative; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 680px) { .approach-grid { grid-template-columns: 1fr; } }
/* Отзывы «Об Академии» — колонка из 2 текстовых + 2 видео рядом (равная высота) */
.about-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.about-reviews-texts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.about-reviews > .rev-card--video { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.about-reviews > .rev-card--video .rev-media { flex: 1 1 0; min-height: 0; }
.about-reviews > .rev-card--video .rev-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 12%; }
.about-reviews > .rev-card--video:hover .rev-media img { transform: scale(1.04); }
.about-reviews > .rev-card--video .rev-body { flex: none; }
.about-reviews > .rev-card--video .play { top: 62%; }
.about-reviews > .rev-card--video:hover .play { transform: translate(-50%,-50%) scale(1.08); }
@media (max-width: 920px) {
  .about-reviews { grid-template-columns: 1fr 1fr; }
  .about-reviews-texts { grid-column: 1 / -1; flex-direction: row; }
  .about-reviews-texts .rev-card--text { flex: 1; }
}
@media (max-width: 620px) {
  .about-reviews { grid-template-columns: 1fr; }
  .about-reviews-texts { flex-direction: column; }
  /* в одну колонку — обычная видео-карточка (фото в потоке) */
  .about-reviews > .rev-card--video { height: auto; }
  .about-reviews > .rev-card--video .rev-media img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 4; object-position: center 12%; }
  .about-reviews > .rev-card--video .play { top: 62%; }
}
.about-teachers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .about-teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .about-teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.section-more { margin-top: 36px; display: flex; justify-content: center; }
/* «Образовательная деятельность» — на тёмном фоне, слева текст+номер+кнопка, справа QR */
.license { display: flex; gap: clamp(32px, 5vw, 72px); align-items: center; justify-content: space-between; }
.license-body { flex: 1; min-width: 0; }
.license-body > p { margin-top: 12px; max-width: 600px; line-height: 1.6; color: rgba(255,255,255,.82); }
.license-no { display: flex; flex-direction: column; gap: 2px; width: fit-content; margin-top: 22px; padding: 14px 20px; border-radius: 12px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.license-no span { font-size: 13px; color: rgba(255,255,255,.65); }
.license-no b { font-size: 19px; color: #fff; letter-spacing: .01em; }
.license-btn { margin-top: 24px; }
.license-qr { flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.license-qr img { display: block; width: 168px; height: 168px; padding: 12px; border-radius: 16px; background: #fff; }
.license-qr figcaption { margin-top: 14px; max-width: 200px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .license { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .license-qr { align-items: flex-start; text-align: left; }
}

/* ---- страница «Об Академии» (редизайн по ТЗ) ---- */
.section-lead { max-width: 820px; margin-top: 14px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--muted); }
.ab-formula { display: flex; gap: 18px; align-items: center; margin-top: 32px; padding: clamp(20px, 2.4vw, 30px) clamp(22px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--cyan-soft); color: var(--ink); }
.ab-formula-ic { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--cyan-ink); }
.ab-formula-ic .ic { width: 26px; height: 26px; }
.ab-formula p { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }
.ab-formula b { color: var(--cyan-ink); font-weight: 700; }
@media (max-width: 560px) { .ab-formula { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* «Наши принципы» — строка из 5 колонок с иконками */
.ab-principles { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.ab-principle { position: relative; overflow: hidden; padding: clamp(24px, 2.2vw, 32px) clamp(18px, 1.6vw, 24px); border-radius: var(--radius-lg); background: var(--milk); box-shadow: 0 10px 28px rgba(31, 35, 40, .06); }
.ab-principle-num { position: absolute; top: 16px; right: 18px; font-size: 32px; font-weight: 800; line-height: 1; color: rgba(0, 213, 223, .22); }
.ab-principle-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px; background: var(--cyan-soft); color: var(--cyan-ink); }
.ab-principle-ic .ic { width: 26px; height: 26px; }
.ab-principle-t { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.ab-principle p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .ab-principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ab-principles { grid-template-columns: 1fr; } }

/* «Фитнес Академия сегодня» — тёмный финальный блок */
.section.ab-today { background: var(--graphite, #1A1D22); color: #fff; }
.ab-today .ab-today-title { color: #fff; max-width: 820px; margin-top: 10px; }
.ab-today-formats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); margin: 34px 0; }
.ab-today-card { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius-lg); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ab-today-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px; background: rgba(0,213,223,.15); color: var(--cyan); }
.ab-today-ic .ic { width: 26px; height: 26px; }
.ab-today-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #fff; }
.ab-today-card p { margin: 0; line-height: 1.6; color: rgba(255,255,255,.75); }
.ab-today-flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 10px 8px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ab-flow-step { flex: 1 1 0; min-width: 150px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px 18px; border-radius: 14px; background: rgba(0,213,223,.12); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.35; }
.ab-flow-arrow { flex: none; display: grid; place-items: center; color: var(--cyan); }
.ab-flow-arrow .ic { width: 20px; height: 20px; }
@media (max-width: 720px) { .ab-flow-step { flex-basis: 100%; } .ab-flow-arrow { transform: rotate(90deg); } }
.ab-today-note { margin-top: 18px; max-width: 760px; line-height: 1.6; color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .ab-today-formats { grid-template-columns: 1fr; } }

/* сетки карточек: 3 в ряд и «центрированный» вариант (без дырки) */
.approach-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .approach-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .approach-grid--3 { grid-template-columns: 1fr; } }
.approach-grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.approach-grid--center > .approach-card { flex: 1 1 300px; max-width: 360px; }

/* вводный блок: текст + слайдер «Фитнес Академия» */
.ab-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ab-intro-copy .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 700; color: var(--ink); }
.ab-intro-copy p { margin-top: 14px; line-height: 1.65; color: var(--muted); }
.ab-intro-actions { margin-top: 26px; }
.ab-slider { position: relative; }
/* сцена слайдера: кадры наложены стопкой, плавный кроссфейд + лёгкий зум (как в hero malina) */
.ab-slider-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(8,10,14,.28); background: var(--graphite-2, #22262c); }
.ab-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); }
.ab-slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.ab-slide.is-on { opacity: 1; z-index: 2; }
/* зум медленный (8с) и с бо́льшим размахом — кадр меняется на середине движения, без «доезда до конца» */
.ab-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.1); transition: transform 8s linear; }
.ab-slide.is-on img { transform: scale(1); }
/* первый кадр при загрузке анимируем отдельно — иначе зума на нём не видно */
.ab-slide.is-on:first-child img { animation: ab-hs-zoom 8s linear both; }
@keyframes ab-hs-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ab-slide img { transform: none !important; animation: none !important; } }
.ab-slider-arrows { position: absolute; right: 14px; bottom: 14px; z-index: 5; display: flex; gap: 8px; }
.ab-slider-arrows .rail-btn { background: rgba(255,255,255,.92); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.ab-slider-arrows .rail-btn:disabled { opacity: .4; }
@media (max-width: 860px) { .ab-intro-grid { grid-template-columns: 1fr; } }

/* история «Перфекто» — вертикальная шкала (слева год, справа текст) */
.ab-history { list-style: none; margin: 32px 0 0; padding: 0; }
.ab-history .hist-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding: 26px 0; border-top: 1px solid var(--line, rgba(31,35,40,.12)); }
.ab-history .hist-row:first-child { border-top: 0; padding-top: 6px; }
.hist-year { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.02em; color: var(--cyan-ink); line-height: 1; }
.hist-title { margin: 0 0 8px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: var(--ink); }
.hist-body p { line-height: 1.65; color: var(--muted); }
@media (max-width: 640px) { .ab-history .hist-row { grid-template-columns: 1fr; gap: 10px; } }

/* «Профессиональные границы» — текст + фото по сетке */
.ab-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.ab-split-text p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.ab-split-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 22px 54px rgba(8,10,14,.22); }
.ab-split-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
/* вариант без белого прямоугольника: нестандартная (наклонная) форма с прозрачным фоном */
.ab-split-photo--cutout { border-radius: 0; overflow: visible; box-shadow: none; background: none; }
.ab-split-photo--cutout img { height: auto; object-fit: contain; aspect-ratio: 1100 / 857; }
@media (max-width: 860px) { .ab-split { grid-template-columns: 1fr; } .ab-split-photo { order: -1; max-width: 620px; } }

/* «Кто создаёт обучение» — текст + слайдер преподавателей */
.ab-team { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ab-team-text p { margin-top: 14px; line-height: 1.7; color: var(--muted); }
.ab-team-slider { position: relative; }
/* паддинги внутри прокрутки — чтобы тень карточек не обрезалась краем overflow */
.ab-team-rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 18px 20px 22px; margin-left: -20px; }
.ab-team-rail::-webkit-scrollbar { display: none; }
.ab-team-track { display: flex; gap: 18px; }
.ab-tcard { flex: 0 0 clamp(190px, 44%, 240px); scroll-snap-align: start; }
.ab-tcard-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--graphite-2, #22262c); box-shadow: 0 10px 20px rgba(8,10,14,.14); }
.ab-tcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ab-tcard-name { margin: 12px 0 2px; font-size: 17px; font-weight: 700; color: var(--ink); }
.ab-tcard-role { font-size: 14px; line-height: 1.4; color: var(--muted); }
.ab-team-arrows { display: flex; gap: 10px; margin-top: 6px; justify-content: flex-end; }
.ab-team-arrows .rail-btn:disabled { opacity: .4; }
@media (max-width: 860px) { .ab-team { grid-template-columns: 1fr; } }

/* карточка «Руководитель по практике» (Григорий Яненко) */
.ab-practice-lead { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: center; margin: 32px 0 40px; padding: clamp(20px, 2vw, 28px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 20px 50px rgba(8,10,14,.30); }
.ab-practice-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--graphite-2, #22262c); }
.ab-practice-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ab-practice-name { margin: 12px 0 2px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--ink); }
.ab-practice-role { margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.ab-practice-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ab-practice-facts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.ab-practice-facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-soft); box-shadow: inset 0 0 0 3px var(--cyan-ink, #0ea5b7); }
@media (max-width: 680px) { .ab-practice-lead { grid-template-columns: 1fr; text-align: left; } .ab-practice-photo { max-width: 240px; } }

/* контекстные CTA */
.ab-cta { margin-top: 36px; display: flex; justify-content: center; }
.ab-cta--left { justify-content: flex-start; margin-top: 24px; }

/* лицензия: изображение документа вместо QR */
.license--doc { align-items: center; }
.license-figure { flex: none; margin: 0; width: clamp(240px, 26vw, 320px); display: flex; flex-direction: column; gap: 12px; }
.license-figure a { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.license-figure a:hover { transform: translateY(-3px); }
.license-figure img { display: block; width: 100%; height: auto; background: #fff; }
.license-figure figcaption { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .license--doc { flex-direction: column; } .license-figure { width: 100%; max-width: 320px; } }

/* хиро статьи — обложка фоном (без «широкой картинки над узким текстом») */
.article-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(44px, 6vw, 96px) 0 clamp(36px, 4vw, 64px); color: #fff; background: #1E2126; }
.article-hero--photo { padding-top: clamp(84px, 12vw, 188px); }
.article-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* закрепляем картинку hero статьи на десктопе (parallax как у других hero) */
@media (hover: hover) and (min-width: 1025px) {
  .article-hero--photo { isolation: isolate; }
  .article-hero--photo .article-hero-bg { top: 0; height: 100vh; will-change: transform; }
}
.article-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,21,25,.95) 8%, rgba(18,21,25,.62) 56%, rgba(18,21,25,.42) 100%); }
.article-hero .crumbs, .article-hero .crumbs a { color: rgba(255,255,255,.72); }
.article-hero .crumbs a:hover { color: #fff; }
.article-hero .article-chip { display: inline-flex; margin-bottom: 14px; }
.article-hero .h1 { color: #fff; }
.article-meta--lg { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.82); }

/* статья: контент + сайдбар-оглавление */
.article-body { font-size: 17px; max-width: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); }
.article-body h2[id] { scroll-margin-top: 96px; }
/* содержание (оглавление) — на мобиле карточка сверху */
.article-toc { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--milk); box-shadow: 0 0 0 1px var(--line); }
.article-toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.article-toc-list { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.article-toc-list li { line-height: 1.4; font-size: 15px; }
.article-toc-list a { color: var(--ink); text-decoration: none; transition: color .2s; }
.article-toc-list a:hover { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 981px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: clamp(40px, 4vw, 72px); }
  .article-main { grid-column: 1; grid-row: 1; min-width: 0; }
  /* сайдбар закрепляем при скролле: sticky на самом aside (его grid-строка во всю высоту контента) */
  .article-aside { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 92px; }
  .article-toc { padding: 0 0 0 20px; background: none; box-shadow: none; border-left: 2px solid var(--line); }
  .article-toc-list { padding-left: 0; list-style: none; gap: 11px; }
}

/* рубрики блога — табы на всю ширину сетки, без подписи «Рубрика» */
.filter-group--tabs { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.filter-group--tabs .filter { flex: 1 1 auto; min-height: 48px; }
@media (max-width: 560px) { .filter-group--tabs .filter { flex: 1 1 calc(50% - 10px); } }
.article-body > :first-child { margin-top: 0; }
/* CTA-плашка внутри статьи: фото-фон + оверлей, не на всю ширину */
.article-cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(72px, 10vw, 150px) clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); color: #fff; background: #1E2126; }
.article-cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.article-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(18,21,25,.92) 0%, rgba(18,21,25,.72) 100%); }
.article-cta-inner { position: relative; max-width: 620px; }
.article-cta .h3 { color: #fff; }
.article-cta p { margin-top: 8px; color: rgba(255,255,255,.82); }
.article-cta .btn { margin-top: 20px; }

/* «Читайте также» в адаптиве — карусель с подглядыванием следующей плашки (~22%) */
@media (max-width: 720px) {
  .related-carousel { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
  .related-carousel::-webkit-scrollbar { display: none; }
  .related-carousel > * { flex: 0 0 78%; scroll-snap-align: start; }
}

.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { padding: 5px 11px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-ink); font-size: 13px; font-weight: 700; }
.catalog-grid .program-card .h4 { font-size: 21px; }

.prose p { margin-top: 14px; font-size: 17px; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose .h3 { margin-top: 44px; margin-bottom: 4px; }
.prose .h4 { margin-top: 28px; }
.prose .h2 + p, .prose .h3 + p, .prose .h4 + p { margin-top: 12px; }
.prose strong { color: var(--ink); }
.list { display: grid; gap: 10px; margin-top: 16px; }
.list li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.55; }
.list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.list--num { counter-reset: n; }
.list--num li { counter-increment: n; padding-left: 40px; }
.list--num li::before { content: counter(n); top: 0; left: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--coral); color: #fff; font-family: var(--font-num); font-size: 17px; padding-top: 2px; }

.help-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--milk); border-left: 4px solid var(--coral); }
.section--flush-top .help-box { margin-top: 0; background: var(--white); box-shadow: var(--shadow); }
.help-box b { display: block; color: var(--ink); font-size: 18px; }
.help-box span { color: var(--muted); font-size: 15px; }

.kb-grid .material-card .h5 { font-size: 19px; }
/* каталог Базы знаний по 2 в ряд (как на главной) */
.kb-grid--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.kb-grid--2 > .material-card { height: 100%; }
.material-body .h5 a:hover { color: var(--cyan-ink); }
.material-media--cover { aspect-ratio: 4 / 3; background: var(--graphite); overflow: hidden; }
.material-media--cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: none; }
.material-topics { font-size: 13px; font-weight: 700; color: var(--coral-ink); }
.kb-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.soft-cta { padding: 32px; border-radius: var(--radius-lg); background: var(--graphite); color: rgba(255, 255, 255, .75); }
.soft-cta .h3 { color: #fff; }
.soft-cta p { margin: 12px 0 24px; }

/* страница материала */
.mat-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0; background: var(--white); }
.mat-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.mat-hero-copy .crumbs { margin-bottom: 20px; }
.mat-hero-copy .chip { margin-bottom: 16px; }
.mat-hero-copy .eyebrow { margin-bottom: 8px; }
.mat-hero-copy .lead { max-width: 620px; }
.mat-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mat-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.mat-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mat-facts span { padding: 6px 12px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-ink); font-size: 13px; font-weight: 700; }
.mat-visual { justify-self: center; width: 100%; max-width: 360px; }
.mat-visual img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(31, 35, 40, .22); transform: rotate(2deg); }
.mat-visual--icon { max-width: 320px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, var(--cyan-soft), rgba(227, 249, 250, 0)); }
.mat-visual--icon img { width: 78%; box-shadow: none; transform: none; filter: drop-shadow(0 18px 24px rgba(0, 131, 140, .22)); }
.btn-messenger { color: #fff; }
.btn-messenger--tg { background: #229ED9; box-shadow: 0 6px 18px rgba(34, 158, 217, .28); }
.btn-messenger--tg:hover { background: #1B8BC0; }
.btn-messenger--max { background: linear-gradient(135deg, #5B3DF5, #9A4DFF); box-shadow: 0 6px 18px rgba(91, 61, 245, .28); }
.btn-messenger--max:hover { filter: brightness(1.08); }
.mat-fragment .h2 { margin-bottom: 28px; max-width: 760px; }
.mat-fragment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: stretch; }
.mat-fragment-grid--solo { grid-template-columns: minmax(0, 860px); }
.fragment-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.mat-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mat-page { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-hover); }
.mat-page img { display: block; width: 100%; height: auto; transition: transform .45s var(--ease); }
.mat-page:hover img { transform: scale(1.03); }
.mat-page-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(10,11,13,.55); border: 1px solid rgba(255,255,255,.4); color: #fff; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s var(--ease); }
.mat-page:hover .mat-page-zoom, .mat-page:focus-visible .mat-page-zoom { opacity: 1; }
.mat-page-zoom .ic { width: 20px; height: 20px; }
/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); background: rgba(10,11,13,.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.96); transition: transform .25s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-close svg { width: 22px; height: 22px; }
.mat-final-box { max-width: 860px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--graphite); color: rgba(255, 255, 255, .75); text-align: center; }
.mat-final-box .h2 { color: #fff; }
.mat-final-box > p { max-width: 620px; margin: 14px auto 0; }
.mat-final-box .mat-cta { justify-content: center; }
.mat-final-box .mat-note { color: rgba(255, 255, 255, .5); }

@media (max-width: 1024px) {
  .kb-bottom, .mat-hero-grid, .mat-fragment-grid { grid-template-columns: minmax(0, 1fr); }
  .mat-visual { max-width: 280px; }
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .filters-bar { padding: 16px; }
  .filter-label { flex-basis: 100%; }
  .filter { min-height: 36px; padding: 0 14px; font-size: 14px; }
  .help-box { flex-direction: column; align-items: flex-start; }
  .kb-grid { grid-template-columns: 1fr; }
  .mat-cta .btn { width: 100%; }
  .mat-pages { gap: 12px; }
  .fragment-card { padding: 22px; }
}

/* ================================================================ заголовки как на perfecto42.com — Bebas */
.h1, .h2, .hero-title { font-family: var(--font-num); font-weight: 400; letter-spacing: .01em; }
.h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.02; }
.hero-title { font-size: clamp(56px, 7.6vw, 104px); line-height: .95; }
.prose .h2 { margin-top: 8px; }

/* шапка: 8 пунктов меню */
.header-row { gap: 20px; }
.nav-list { gap: 0; }
.nav-link { padding: 10px 9px; font-size: 14.5px; }
@media (max-width: 1320px) { .header-cta { display: none; } }
@media (max-width: 1180px) and (min-width: 1025px) { .nav-link { padding: 10px 6px; font-size: 13.5px; } }

/* ================================================================ Преподаватели */
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.tcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.tcard-photo { background: var(--graphite); overflow: hidden; }
.tcard-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.tcard:hover .tcard-photo img { transform: scale(1.03); }
.tcard-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 26px; }
.tcard-body .h4 { font-size: 22px; }
.tcard-role { font-size: 15px; line-height: 1.45; color: var(--muted); }
.tcard-line { font-size: 15px; line-height: 1.45; color: var(--ink); }
.tcard-line span { color: var(--cyan-ink); font-weight: 700; }
.tcard-exp { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.tcard-exp .ic { width: 18px; height: 18px; color: var(--coral); }
.tcard-bio { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.tcard .text-link { margin-top: auto; }
.help-box--big { background: var(--white); box-shadow: var(--shadow); }
.tprofile-photo img { transform: none; border-radius: var(--radius-lg); }
@media (max-width: 1024px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .tcard-photo img { aspect-ratio: 1 / 1; }
}

/* ================================================================ первый экран: колонки портретов как на masterclass.com */
.hero-title { font-size: clamp(44px, 5.2vw, 76px); line-height: .98; }
.hero-grid { align-items: center; }
.hero-faces { position: relative; display: block; min-height: 0; padding: 0; }
.hero-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; height: 620px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.hero-track { display: flex; flex-direction: column; animation: hero-up 44s linear infinite; will-change: transform; }
.hero-col--2 .hero-track { animation-name: hero-down; animation-duration: 52s; }
.hero-col--3 .hero-track { animation-duration: 48s; }
.hero-cols:hover .hero-track { animation-play-state: paused; }
/* отступ снизу у каждой карточки (а не gap): тогда половина ленты — ровно один цикл */
.hero-face { margin-bottom: 16px; transform: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.hero-face img { aspect-ratio: 3 / 4; }
@keyframes hero-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hero-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero-badge { right: -8px; bottom: 7%; z-index: 2; }
@media (max-width: 1024px) {
  .hero-cols { height: 520px; }
}
@media (max-width: 720px) {
  .hero-cols { height: 380px; gap: 8px; }
  .hero-face { margin-bottom: 8px; }
  .hero-face figcaption span { display: none; }
  .hero-badge { bottom: 4%; }
}

/* ================================================================ полноэкранный первый экран */
.hero { padding: 0; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); display: flex; }
.hero > .container { flex: 1; }
.hero-grid { position: relative; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; min-height: inherit; align-items: stretch; }
.hero-copy { align-self: center; padding: 56px 0 88px; }
.hero-title { font-size: clamp(48px, 5.6vw, 84px); }
.hero-subtitle { margin-top: 24px; }
.hero-text { font-size: 18px; }
.hero-actions { margin-top: 36px; }
/* колонки на всю высоту экрана и до правого края окна */
.hero-faces { align-self: stretch; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2)); }
.hero-cols {
  position: absolute; inset: 0; height: auto; gap: 20px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hero-face { margin-bottom: 20px; border-radius: 20px; }
.hero-face figcaption { padding: 56px 16px 16px; font-size: 13px; }
.hero-face figcaption b { font-size: 16px; }
/* мягкое затемнение между текстом и фото */
.hero-faces::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -1px; width: 80px; background: linear-gradient(to right, var(--graphite), rgba(43, 47, 54, 0)); pointer-events: none; }
.hero-badge { right: 32px; bottom: 9%; }
.hero-scroll { position: absolute; left: 0; bottom: 28px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; animation: hero-bob 2.4s ease-in-out infinite; }
.hero-scroll:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-scroll .ic { width: 20px; height: 20px; }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 1024px) {
  .hero { min-height: 0; display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { padding: 48px 0 0; }
  .hero-faces { position: relative; height: 520px; margin: 0 calc(-1 * var(--gutter)); }
  .hero-faces::before, .hero-scroll { display: none; }
}
@media (max-width: 720px) {
  .hero-faces { height: 400px; }
  .hero-cols { gap: 10px; padding: 0 var(--gutter); }
  .hero-face { margin-bottom: 10px; border-radius: 14px; }
  .hero-face figcaption { padding: 28px 8px 8px; font-size: 11px; }
  .hero-face figcaption b { font-size: 12px; }
  .hero-badge { right: 16px; bottom: 6%; }
}

/* заголовок в две строки + плашки формата */
.hero-title span { display: block; }
.hero-title-top { color: #fff; white-space: nowrap; }
.hero-title-accent { color: var(--cyan); }
.hero-title { font-size: clamp(44px, 5.4vw, 82px); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 16px; font-weight: 700; }
.hero-tags .ic { width: 18px; height: 18px; color: var(--cyan); }
.hero-text { margin-top: 22px; }

/* шапка: телефон — только иконкой, пункты меню не залезают на правый блок */
.header-phone span { display: none; }
.header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line); }
.header-phone:hover { border-color: var(--cyan-ink); }
@media (max-width: 1400px) { .header-cta { display: none; } }
@media (max-width: 720px) { .hero-tags li { font-size: 14px; padding: 8px 14px 8px 11px; } }

/* ================================================================ тёмная шапка — в тон первому экрану */
.site-header { background: rgba(35, 38, 44, .82); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header.is-scrolled { background: rgba(35, 38, 44, .94); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.nav-link { color: rgba(255, 255, 255, .86); }
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--cyan); }
.nav-sub { background: #2F333A; border-color: rgba(255, 255, 255, .08); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.nav-sub a { color: rgba(255, 255, 255, .86); }
.nav-sub a:hover { background: rgba(255, 255, 255, .06); color: var(--cyan); }
.header-phone { color: #fff; border-color: rgba(255, 255, 255, .2); }
.header-phone .ic { color: var(--cyan); }
.header-phone:hover { border-color: var(--cyan); color: var(--cyan); }
.burger { color: #fff; }
@media (max-width: 1024px) {
  /* ВАЖНО: на мобиле убираем backdrop-filter у шапки во ВСЕХ состояниях (в т.ч. .page-home
     .is-scrolled, line ~795). Иначе фильтр делает .site-header containing-block для
     position:fixed и мобильное меню (nav) сжимается до высоты шапки — «кривое» меню
     при открытии из закреплённой (проскролленной) шапки. Непрозрачный фон компенсирует blur. */
  .site-header,
  .site-header.is-scrolled,
  .page-home .site-header,
  .page-home .site-header.is-scrolled { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header.is-scrolled, .page-home .site-header.is-scrolled { background: rgba(35, 38, 44, .98); }
  .nav { background: #23262C; }
  .nav-item { border-bottom-color: rgba(255, 255, 255, .08); }
  .nav-phone { color: #fff; }
  /* при открытом меню шапка должна быть непрозрачной (blur убран) */
  body.is-locked .site-header { background: rgba(35, 38, 44, .98); }
}
.hero-title .hero-title-top { color: #fff; }

/* ================================================================ первый экран: стена портретов (masterclass.com) */
.hero--wall { position: relative; display: flex; align-items: flex-end; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding: 0; overflow: hidden; background: #1E2126; }
.hero--wall::before { display: none; }
.hero-wall { position: absolute; inset: -40px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; padding: 0 14px; }
.hero-wall .hero-track { display: flex; flex-direction: column; animation: hero-up 60s linear infinite; will-change: transform; }
.hero-wall .hero-col:nth-child(even) .hero-track { animation-name: hero-down; animation-duration: 70s; }
.hero-wall .hero-col:nth-child(3n) .hero-track { animation-duration: 54s; }
.hero-wall .hero-face { margin: 0 0 14px; border-radius: 14px; overflow: hidden; box-shadow: none; background: #2B2F36; }
.hero-wall .hero-face img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; filter: saturate(.9); }
/* затемнение снизу вверх + размытие нижней части, чтобы текст читался */
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(30, 33, 38, .55) 0%, rgba(30, 33, 38, 0) 18%),
    linear-gradient(to top, #1E2126 0%, rgba(30, 33, 38, .96) 30%, rgba(30, 33, 38, .6) 55%, rgba(30, 33, 38, .1) 78%, rgba(30, 33, 38, 0) 100%); }
.hero-shade::after { content: ""; position: absolute; inset: 40% 0 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 38vh; padding-bottom: clamp(48px, 7vh, 88px); }
.hero--wall .hero-title { font-size: clamp(48px, 6vw, 92px); line-height: .95; }
.hero--wall .hero-tags { justify-content: center; margin-top: 26px; }
.hero--wall .hero-tags li { padding: 10px 20px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.hero--wall .hero-text { max-width: 640px; margin: 22px auto 0; color: rgba(255, 255, 255, .78); }
.hero--wall .hero-actions { justify-content: center; margin-top: 32px; }
.hero--wall .hero-actions .btn-lg { padding: 0 32px; }
@media (max-width: 1600px) { .hero-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } .hero-wall .hero-col:nth-child(n+7) { display: none; } }
@media (max-width: 1200px) { .hero-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } .hero-wall .hero-col:nth-child(n+6) { display: none; } }
@media (max-width: 900px)  { .hero-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero-wall .hero-col:nth-child(n+5) { display: none; } }
@media (max-width: 600px) {
  .hero-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
  .hero-wall .hero-col:nth-child(n+4) { display: none; }
  .hero-wall .hero-face { margin-bottom: 8px; border-radius: 10px; }
  .hero-content { padding-top: 30vh; }
  .hero--wall .hero-actions .btn { width: 100%; }
}

/* ================================================================ кнопки без иконок */
.btn .ic { display: none; }
/* мессенджер-кнопки (Telegram/MAX) — иконки обязательны */
.btn-messenger .ic { display: inline-flex; width: 20px; height: 20px; }

/* ================================================================ кнопки: прямоугольные, без «таблеток» */
.btn { border-radius: 8px; letter-spacing: .01em; }
.btn-lg { min-height: 58px; }
.filter { border-radius: 8px; }
.hero-tags li, .hero--wall .hero-tags li { border-radius: 8px; }
.header-phone { border-radius: 8px; }

/* ================================================================ первый экран: текст слева, «Перфекто» крупно */
.hero-content { align-items: flex-start; text-align: left; padding-top: 34vh; }
.hero--wall .hero-title { display: flex; flex-direction: column; font-size: inherit; line-height: 1; }
.hero--wall .hero-title-top { font-size: clamp(22px, 2.3vw, 36px); letter-spacing: .12em; color: #fff; white-space: nowrap; }
.hero--wall .hero-title-accent { margin-top: 2px; font-size: clamp(76px, 11vw, 176px); line-height: .86; letter-spacing: .005em; color: var(--cyan); }
.hero-formats { display: flex; flex-wrap: wrap; align-items: center; margin-top: 22px; font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.hero-formats li + li::before { content: ""; display: inline-block; width: 1px; height: 16px; margin: 0 18px; vertical-align: -2px; background: rgba(255, 255, 255, .35); }
.hero--wall .hero-text { margin: 18px 0 0; max-width: 560px; }
.hero--wall .hero-actions { justify-content: flex-start; }
/* слева текст — затемняем левую часть сильнее */
.hero-shade { background:
    linear-gradient(to bottom, rgba(30, 33, 38, .55) 0%, rgba(30, 33, 38, 0) 18%),
    linear-gradient(to right, rgba(30, 33, 38, .92) 0%, rgba(30, 33, 38, .55) 38%, rgba(30, 33, 38, 0) 70%),
    linear-gradient(to top, #1E2126 0%, rgba(30, 33, 38, .9) 22%, rgba(30, 33, 38, .35) 50%, rgba(30, 33, 38, 0) 75%); }
.hero-shade::after { inset: 0 45% 0 0; -webkit-mask-image: linear-gradient(to right, #000 40%, transparent); mask-image: linear-gradient(to right, #000 40%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 720px) {
  .hero-content { padding-top: 26vh; }
  .hero-shade::after { inset: 35% 0 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
  .hero-formats { font-size: 12px; letter-spacing: .08em; }
  .hero-formats li + li::before { margin: 0 10px; }
}

/* ================================================================ главная: прозрачная шапка поверх первого экрана */
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .3s, border-color .3s, box-shadow .3s; }
.page-home .site-header.is-scrolled { background: rgba(35, 38, 44, .92); border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.page-home .hero--wall { min-height: 100vh; min-height: 100svh; }
/* верх первого экрана чуть темнее, чтобы меню читалось без подложки */
.page-home .hero-shade { background:
    linear-gradient(to bottom, rgba(30, 33, 38, .8) 0%, rgba(30, 33, 38, 0) 22%),
    linear-gradient(to right, rgba(30, 33, 38, .92) 0%, rgba(30, 33, 38, .55) 38%, rgba(30, 33, 38, 0) 70%),
    linear-gradient(to top, #1E2126 0%, rgba(30, 33, 38, .9) 22%, rgba(30, 33, 38, .35) 50%, rgba(30, 33, 38, 0) 75%); }
.page-home .hero-wall { inset: -20px 0 0; }
/* открытое мобильное меню — с подложкой */
@media (max-width: 1024px) { .page-home .site-header:has(.nav.is-open) { background: #23262C; } }

/* форматы — под кнопками */
.hero--wall .hero-text { margin-top: 24px; }
.hero--wall .hero-formats { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .72); }
@media (max-width: 720px) {
  .hero--wall .hero-formats { flex-wrap: nowrap; white-space: nowrap; font-size: 11px; letter-spacing: .05em; }
  .hero--wall .hero-formats li + li::before { margin: 0 9px; height: 12px; }
}

/* единый ритм первого экрана: заголовок → текст → кнопки → подпись */
.hero--wall { --hero-gap: 36px; }
.hero--wall .hero-text { margin-top: var(--hero-gap); }
.hero--wall .hero-actions { margin-top: var(--hero-gap); }
.hero--wall .hero-formats { margin-top: var(--hero-gap); }
@media (max-width: 720px) { .hero--wall { --hero-gap: 28px; } }

/* форматы — надзаголовком над «Фитнес Академия» */
.hero--wall .hero-formats { margin: 0 0 20px; font-size: 14px; letter-spacing: .12em; color: var(--cyan); }
.hero--wall .hero-formats li { display: inline-flex; align-items: center; }
.hero--wall .hero-formats li::before { content: ""; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--cyan); }
.hero--wall .hero-formats li + li { margin-left: 24px; }
.hero--wall .hero-formats li + li::before { width: 7px; height: 7px; margin: 0 10px 0 0; background: var(--cyan); vertical-align: 0; }
@media (max-width: 720px) {
  .hero--wall .hero-formats { margin-bottom: 14px; font-size: 11px; letter-spacing: .06em; }
  .hero--wall .hero-formats li::before, .hero--wall .hero-formats li + li::before { width: 5px; height: 5px; margin-right: 7px; }
  .hero--wall .hero-formats li + li { margin-left: 14px; }
}

/* ================================================================ аккуратные заголовки блоков */
.h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: .02em; }
.h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; letter-spacing: .015em; }
.section-head { align-items: center; }

/* ================================================================ ссылки на разделы — кнопки с рамкой */
.section-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1.5px solid rgba(31,35,40,.2); border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; transition: border-color .2s, color .2s, background .2s; }
.section-link:hover { border-color: var(--ink); color: var(--ink); }
.section--dark .section-link { border-color: rgba(255, 255, 255, .25); color: #fff; }
.section--dark .section-link:hover { border-color: #fff; color: #fff; }
.text-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.text-link .ic { display: none; }
.text-link:hover { text-decoration-color: var(--cyan-ink); }

/* ================================================================ ховер без «прыжков»: карточка стоит, меняется рамка и фото */
.program-card, .material-card, .article-card, .adv-card, .step, .tcard, .direction-card { transform: none !important; }
.program-card, .material-card, .article-card, .tcard { box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease); }
.program-card:hover, .material-card:hover, .article-card:hover, .tcard:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 12px 32px rgba(31, 35, 40, .08); }
.adv-card:hover { border-color: rgba(0, 213, 223, .5); }
.program-media, .material-media, .article-media, .tcard-photo { overflow: hidden; }
.program-media img, .article-media img { transition: transform .8s var(--ease); }
.program-card:hover .program-media img, .article-card:hover .article-media img { transform: scale(1.03); }
.material-card:hover .material-media img { transform: none; }

/* ================================================================ направления: крупное фото, текст поверх */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dir-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--graphite); isolation: isolate; }
.dir-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); z-index: -2; }
.dir-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(22, 24, 28, .92) 0%, rgba(22, 24, 28, .55) 38%, rgba(22, 24, 28, 0) 65%); }
.dir-card:hover img { transform: scale(1.04); }
.dir-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 28px; color: #fff; }
.dir-title { font-family: var(--font-num); font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: .02em; }
.dir-text { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 320px; }
.dir-more { justify-self: start; margin-top: 10px; padding: 9px 16px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 8px; font-size: 14px; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.dir-card:hover .dir-more { border-color: #fff; background: #fff; color: var(--ink); }
@media (max-width: 1024px) { .dir-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; } .dir-card { scroll-snap-align: start; } }
@media (max-width: 720px) { .dir-grid { grid-template-columns: minmax(0, 1fr); overflow: visible; } .dir-card { aspect-ratio: 4 / 3.6; } .section-head .section-link { min-height: 38px; } }

/* формы: две галочки согласия */
.lead-form .consent + .consent { margin-top: -6px; }
.hero--wall .hero-text { margin-top: 18px; }
@media (max-width: 720px) { .hero--wall .hero-text { margin-top: 14px; } }

/* ================================================================ кнопки: бирюзовые, ховер — оранжевая заливка «наплывом» (как на malina) */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-coral { background: var(--cyan); color: #14171B; box-shadow: 0 8px 22px rgba(0, 213, 223, .22); }
.btn-coral:hover { background: var(--cyan); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 92, .3); }
.btn-outline:hover, .btn-ghost-light:hover { border-color: var(--coral); color: #fff; }
.btn-ghost-light:hover { border-color: var(--coral); }
.section-link { position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease); }
.section-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.section-link:hover { border-color: var(--coral); color: #fff; }
.section--dark .section-link:hover { border-color: var(--coral); }
.section-link:hover::before { transform: scaleX(1); transform-origin: left; }
.dir-card:hover .dir-more { border-color: var(--coral); background: var(--coral); color: #fff; }
.btn[disabled]::before { display: none; }
@media (hover: none) { .btn::before, .section-link::before { display: none; } }

/* ================================================================ ховер: графитовая заливка «наплывом» */
.btn::before, .section-link::before { background: #16191E; }
.btn-coral:hover, .btn-coral:focus-visible { background: var(--cyan); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: #16191E; color: #fff; }
.section-link:hover, .section-link:focus-visible { border-color: #16191E; color: #fff; }
/* на тёмном фоне заливка белая */
.btn-ghost-light::before, .section--dark .section-link::before, .cta .btn-outline::before { background: #fff; }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible, .section--dark .section-link:hover, .section--dark .section-link:focus-visible { border-color: #fff; color: #16191E; }
.dir-card:hover .dir-more { border-color: #fff; background: #fff; color: #16191E; }

/* ================================================================ первый экран: единый ритм отступов */
.hero--wall { --hero-gap: 32px; }
.hero--wall .hero-formats { margin: 0 0 24px; }
.hero--wall .hero-title-accent { margin-top: 6px; }
.hero--wall .hero-text { margin-top: 24px; }
.hero--wall .hero-actions { margin-top: 32px; }
.hero-content { padding-bottom: clamp(56px, 9vh, 96px); }
@media (max-width: 720px) {
  .hero--wall .hero-formats { margin-bottom: 18px; }
  .hero--wall .hero-title-accent { margin-top: 4px; }
  .hero--wall .hero-text { margin-top: 18px; }
  .hero--wall .hero-actions { margin-top: 24px; }
  .hero-content { padding-bottom: 40px; }
}
/* поправка на поля шрифта Bebas: видимые интервалы 24 / 16 / 32 / 32 */
.hero--wall .hero-formats { margin-bottom: 19px; }
.hero--wall .hero-title-accent { margin-top: -2px; }
.hero--wall .hero-text { margin-top: 19px; }
@media (max-width: 720px) {
  .hero--wall .hero-formats { margin-bottom: 13px; }
  .hero--wall .hero-title-accent { margin-top: 2px; }
  .hero--wall .hero-text { margin-top: 18px; }
}

/* ================================================================ «журнальная» вёрстка главной */
:root { --container: 1360px; }
@media (min-width: 1200px) { :root { --gutter: 40px; } }
.ic-flip { transform: scaleX(-1); }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* программы — широкие карточки */
.prows { display: grid; gap: 24px; }
.prow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease); }
.prow:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 14px 36px rgba(31, 35, 40, .08); }
.prow:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.prow:nth-child(even) .prow-media { order: 2; }
.prow-media { position: relative; display: block; min-height: 340px; overflow: hidden; background: var(--graphite); }
.prow-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .9s var(--ease); }
.prow:hover .prow-media img { transform: scale(1.03); }
.prow-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.2vw, 48px); }
.prow-goal { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); }
.prow-title { font-family: var(--font-num); font-weight: 400; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.02; letter-spacing: .02em; color: var(--ink); }
.prow-title a:hover { color: var(--cyan-ink); }
.prow-text { font-size: 16px; line-height: 1.6; color: var(--text); max-width: 540px; }
.prow-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.prow-price { font-weight: 700; font-size: 22px; color: var(--ink); white-space: nowrap; }
.prow-price span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prow-price s { font-size: 15px; font-weight: 400; color: var(--muted); }

/* почему Перфекто — фото на всю ширину */
.why { position: relative; overflow: hidden; background: #16191E; color: rgba(255, 255, 255, .78); isolation: isolate; }
.why-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.why::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(22, 25, 30, .96) 0%, rgba(22, 25, 30, .88) 40%, rgba(22, 25, 30, .35) 75%, rgba(22, 25, 30, .15) 100%); }
.why-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.why-head .h2 { color: #fff; }
.why-head p { margin: 18px 0 28px; max-width: 420px; font-size: 17px; }
.why-head .section-link { border-color: rgba(255, 255, 255, .3); color: #fff; }
.why-head .section-link::before { background: #fff; }
.why-head .section-link:hover { border-color: #fff; color: #16191E; }
.why-list { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin-top: 8px; }
.why-item { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.why-num { display: block; font-family: var(--font-num); font-size: 34px; line-height: 1; color: var(--cyan); }
.why-title { margin-top: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; }
.why-item p { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.why-inner { grid-template-columns: minmax(0, 620px); }

/* преподаватели — лента до края экрана */
.trail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 0 8px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.trail::-webkit-scrollbar { display: none; }
.trail-track { display: flex; gap: 20px; width: max-content; padding-right: var(--gutter); }
.tslide { width: clamp(240px, 22vw, 330px); scroll-snap-align: start; }
.tslide-photo { overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); }
.tslide-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); }
.tslide:hover .tslide-photo img { transform: scale(1.03); }
.tslide-name { margin-top: 16px; font-size: 19px; font-weight: 700; color: var(--ink); }
.tslide-role { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.rail-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); transition: border-color .2s, background .2s, color .2s, opacity .2s; }
.rail-btn:hover { border-color: #16191E; background: #16191E; color: #fff; }
.rail-btn[disabled] { opacity: .35; pointer-events: none; }
.rail-btn .ic { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .prow, .prow:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .prow:nth-child(even) .prow-media { order: 0; }
  .prow-media { min-height: 0; aspect-ratio: 16 / 9; }
  .why::after { background: linear-gradient(to bottom, rgba(22, 25, 30, .7), rgba(22, 25, 30, .95)); }
}
@media (max-width: 720px) {
  .why-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .head-actions .rail-btn { display: none; }
  .tslide { width: 72vw; }
}

/* База знаний: картинки одной высоты */
.materials-grid .material-media, .kb-grid .material-media, .related-grid .material-media { aspect-ratio: 4 / 3; }
/* обложки-фото — в натуральных пропорциях 16:9 (не обрезаем, плашка ниже) */
.materials-grid .material-media--cover, .kb-grid .material-media--cover, .related-grid .material-media--cover { aspect-ratio: 16 / 9; }
.material-media--cover img { object-position: center; }
/* этапы обучения: цифры Bebas вместо оранжевых кружков */
.step { box-shadow: 0 0 0 1px var(--line); }
.step + .step::before { background: var(--line); height: 1px; }
.step-num { width: auto; height: auto; padding: 0; border-radius: 0; background: none; color: var(--cyan-ink); font-size: 44px; line-height: 1; place-items: start; }
@media (max-width: 720px) { .section-head { align-items: flex-start; } }

/* ================================================================ компактные «аккуратные» блоки (референс coursera.org) */
:root { --container: 1240px; --section: clamp(40px, 5vw, 64px); --radius-lg: 14px; --radius: 12px; }
@media (min-width: 1200px) { :root { --gutter: 32px; } }
.section--tight { padding-top: 0; }
#directions { padding-top: clamp(40px, 5vw, 64px); }
.section, .section--white { background: transparent; }
/* заголовки блоков — обычный шрифт, сдержанный размер */
.h2 { font-family: var(--font); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.01em; text-transform: none; }
.section-head { margin-bottom: 20px; align-items: center; }
.section-head .eyebrow { display: none; }
.section-link { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* направления — плитки */
.dtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dtile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 24px; border-radius: var(--radius-lg); background: #EEF9FA; border: 1px solid #D9F0F2; transition: border-color .2s, box-shadow .2s; }
.dtile:hover { border-color: var(--cyan-ink); box-shadow: 0 6px 20px rgba(0, 131, 140, .1); }
.dtile-body { display: grid; gap: 6px; }
.dtile-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.dtile-text { font-size: 14px; line-height: 1.45; color: var(--muted); }
.dtile img { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: top; }

/* программы — компактные карточки */
.programs-grid { gap: 16px; }
.program-card { border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
.program-card:hover { box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(31, 35, 40, .1); }
/* блог-карточки + карточки материалов/преподавателей — тот же мягкий ховер, что у карточек программ */
.article-card:hover, .material-card:hover, .tcard:hover { box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(31, 35, 40, .1); }
.tcard { box-shadow: 0 0 0 1px var(--line); }
.program-media img { aspect-ratio: 16 / 9; }
.program-body { padding: 18px 20px 20px; gap: 10px; }
.program-body .h4 { font-size: 17px; line-height: 1.35; }
.program-body .muted { font-size: 14px; }
.program-foot .btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.facts li { padding: 3px 9px; font-size: 12px; }

/* почему Перфекто — тёмная панель */
.why-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: #1E2228; color: rgba(255, 255, 255, .75); }
.why-panel-body { padding: clamp(28px, 3.5vw, 44px); }
.why-panel-title { font-size: clamp(22px, 2vw, 28px); font-weight: 700; color: #fff; }
.why-panel-lead { margin-top: 8px; font-size: 15px; }
.why-panel .why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 24px 0 28px; }
.why-panel .why-item { display: flex; gap: 12px; padding: 0; border: 0; }
.why-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 213, 223, .12); color: var(--cyan); }
.why-icon .ic { width: 20px; height: 20px; }
.why-panel .why-title { margin: 0; font-size: 15px; }
.why-panel .why-item p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; }
.why-panel-media { position: relative; min-height: 280px; }
.why-panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.section-link--light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.section-link--light::before { background: #fff; }
.section-link--light:hover { border-color: #fff; color: #16191E; }

/* этапы */
.steps { gap: 16px; }
.step { padding: 20px; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); gap: 10px; }
.step + .step::before { display: none; }
.step-num { font-size: 32px; }
.step .h5 { font-size: 16px; }
.step .muted { font-size: 14px; }

/* преподаватели — компактная сетка */
.tmini-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tmini { overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.tmini-photo img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top center; }
.tmini-body { padding: 12px 14px 16px; }
.tmini-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.tmini-role { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* отзывы */
.reviews-rail { gap: 16px; grid-auto-columns: calc((100% - 16px * 4) / 5); }
.review-video { border-radius: var(--radius-lg); }
.review-video .play { width: 52px; height: 52px; }

/* База знаний — тонированная панель со строками */
.panel { padding: 16px; border-radius: 18px; background: #EEF9FA; border: 1px solid #D9F0F2; }
.mrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mrow { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--white); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.mrow:hover { border-color: var(--cyan-ink); box-shadow: 0 6px 18px rgba(0, 131, 140, .08); }
.mrow-thumb { flex: none; width: 76px; height: 76px; overflow: hidden; border-radius: 10px; background: var(--graphite); }
.mrow-thumb--icon { background: #E3F9FA; display: grid; place-items: center; }
.mrow-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mrow-thumb--icon img { width: 70%; height: 70%; object-fit: contain; }
.mrow-body { display: grid; gap: 3px; min-width: 0; }
.mrow-kind { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-ink); }
.mrow-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.mrow-text { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* статьи */
.grid-3 { gap: 16px; }
.article-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); }
.article-body { padding: 16px 18px 20px; }

/* старты */
.start-row { box-shadow: 0 0 0 1px var(--line); border-radius: var(--radius); padding: 14px 20px; }
.start-date b { font-size: 36px; }

/* финальный призыв — скруглённая панель внутри контейнера */
.cta { background: transparent; padding: 0 0 var(--section); color: rgba(255, 255, 255, .75); }
.cta::after { display: none; }
.cta-grid { gap: 40px; padding: clamp(28px, 4vw, 48px); border-radius: 18px; background: #1E2228; }
.cta .h2 { color: #fff; }

@media (max-width: 1024px) {
  .dtiles { grid-template-columns: minmax(0, 1fr); }
  .why-panel { grid-template-columns: minmax(0, 1fr); }
  .why-panel-media { order: -1; min-height: 220px; }
  .tmini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mrows { grid-template-columns: minmax(0, 1fr); }
  .reviews-rail { grid-auto-columns: calc((100% - 16px * 2) / 3); }
}
@media (max-width: 720px) {
  .why-panel .why-list { grid-template-columns: minmax(0, 1fr); }
  .tmini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-rail { grid-auto-columns: 62%; }
  .dtile img { width: 72px; height: 72px; }
}
/* главная: одинаковые промежутки между блоками */
.page-home main > .section { padding-top: 0; padding-bottom: clamp(48px, 5vw, 72px); }
.page-home main > #directions { padding-top: clamp(48px, 5vw, 72px); }
/* панель заявки — по ширине контента */
.cta .cta-grid.container { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); padding: clamp(28px, 4vw, 48px); }
.start-date { color: var(--cyan-ink); }
@media (max-width: 720px) { .section-head { align-items: flex-start; text-align: left; } }

/* больше воздуха между блоками главной */
.page-home main > .section { padding-bottom: clamp(72px, 8vw, 120px); }
.page-home main > #directions { padding-top: clamp(72px, 8vw, 120px); }
.section-head { margin-bottom: 28px; }
/* направления: белые плитки с тонкой рамкой вместо бирюзовой подложки */
.dtile { background: var(--white); border-color: var(--line); }
.dtile:hover { border-color: var(--ink); box-shadow: 0 10px 28px rgba(31, 35, 40, .08); }
/* зазор между «Фитнес Академия» и «Перфекто» */
.hero--wall .hero-title-accent { margin-top: 12px; }
@media (max-width: 720px) { .hero--wall .hero-title-accent { margin-top: 8px; } }
.dtile img { width: 104px; height: 104px; object-position: center; }
@media (max-width: 720px) { .dtile img { width: 80px; height: 80px; } }
/* направления: мягкий ховер — чуть темнее рамка и лёгкая тень */
.dtile { transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.dtile:hover { border-color: #D4D4CE; box-shadow: 0 8px 24px rgba(31, 35, 40, .06); }
.dtile img { transition: transform .5s var(--ease); }
.dtile:hover img { transform: scale(1.04); }
/* фон окна за пределами страницы (прокрутка «с оттяжкой» в Safari/на тачпаде) — тёмный, как шапка и подвал */
html { background: #1E2126; }
/* направления: плавный ховер */
.dtile { transition: border-color .6s cubic-bezier(.22, .61, .36, 1), box-shadow .6s cubic-bezier(.22, .61, .36, 1); }
.dtile img { transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
.dtile:hover img { transform: scale(1.03); }
/* факты программ — коралловые чипы */
.facts li { background: var(--coral-soft); color: var(--coral-ink); font-weight: 700; }
/* «Подробнее» в карточках программ — контурная кнопка */
.program-foot .btn-coral { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.program-foot .btn-coral::before { background: var(--ink); }
.program-foot .btn-coral:hover { border-color: var(--ink); color: #fff; box-shadow: none; }

/* актуальные программы — слайдер */
.pslider { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -28px -12px; padding: 28px 12px; }
.pslider::-webkit-scrollbar { display: none; }
.pslider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px * 2) / 3); gap: 16px; }
.pslider .program-card { scroll-snap-align: start; }
@media (max-width: 1024px) { .pslider-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 720px) {
  .pslider-track { grid-auto-columns: 86%; }
  #programs .head-actions .rail-btn { display: none; }
}

/* ================================================================ «Почему Перфекто» — фото на всю ширину */
.why-wide { position: relative; overflow: hidden; isolation: isolate; margin-bottom: clamp(72px, 8vw, 120px); background: #16191E; color: rgba(255, 255, 255, .78); }
.why-wide-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.why-wide::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(22, 25, 30, .92) 0%, rgba(22, 25, 30, .7) 45%, rgba(22, 25, 30, .35) 100%),
              linear-gradient(to top, rgba(22, 25, 30, .9) 0%, rgba(22, 25, 30, 0) 55%); }
.why-wide-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; min-height: clamp(520px, 44vw, 640px); padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(40px, 4vw, 56px); }
.why-wide-head { max-width: 460px; }
.why-wide-head .h2 { color: #fff; }
.why-wide-head p { margin: 12px 0 24px; font-size: 16px; line-height: 1.6; }
.wide-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wide-item { padding: 20px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wide-title { margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.wide-item p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
@media (max-width: 1024px) { .wide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .wide-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .why-wide::after { background: linear-gradient(to bottom, rgba(22, 25, 30, .6), rgba(22, 25, 30, .92) 45%); }
  .why-wide-inner { gap: 32px; }
}

/* ================================================================ появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms), transform .8s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms); }
/* у карточек своя анимация ховера — после появления возвращаем её */
.reveal.is-in.program-card, .reveal.is-in.dtile, .reveal.is-in.mrow, .reveal.is-in.article-card {
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms), transform .8s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0ms),
              border-color .6s cubic-bezier(.22, .61, .36, 1), box-shadow .6s cubic-bezier(.22, .61, .36, 1); }
/* фон «Почему Перфекто» — лёгкий параллакс-зум при появлении */
.why-wide-bg { transform: scale(1.06); transition: transform 2.4s cubic-bezier(.22, .61, .36, 1); }
.why-wide:has(.why-wide-head.is-in) .why-wide-bg, .why-wide:not(:has(.reveal)) .why-wide-bg { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .why-wide-bg { transform: none; } }
/* на мобиле отключаем анимацию появления — убирает джанк/мелькание карточек и кнопок на слабых устройствах */
@media (max-width: 640px) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* «Почему Перфекто» — две бегущие ленты фото зон фитнес-центра */
.why-marquee { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; padding: 16px 0; }
.why-row { overflow: hidden; min-height: 0; }
.why-row-track { display: flex; gap: 16px; width: max-content; height: 100%; animation: why-left 90s linear infinite; will-change: transform; }
.why-row--2 .why-row-track { animation-name: why-right; animation-duration: 110s; }
.why-row-track img { height: 100%; width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
@keyframes why-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@keyframes why-right { from { transform: translateX(calc(-50% - 8px)); } to { transform: translateX(0); } }
.why-wide::after { background:
  linear-gradient(to right, rgba(22, 25, 30, .94) 0%, rgba(22, 25, 30, .78) 40%, rgba(22, 25, 30, .45) 100%),
  linear-gradient(to top, rgba(22, 25, 30, .92) 0%, rgba(22, 25, 30, .15) 55%); }
@media (max-width: 720px) {
  .why-marquee { gap: 10px; padding: 10px 0; }
  .why-row-track { gap: 10px; }
  .why-row-track img { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .why-row-track { animation: none; } }
/* одна лента на всю высоту блока, затемнение слабее — фото видно */
.why-marquee { grid-template-rows: 1fr; padding: 0; }
.why-row-track { gap: 12px; animation-duration: 80s; }
.why-row-track img { border-radius: 0; }
.why-wide::after { background:
  linear-gradient(to right, rgba(22, 25, 30, .9) 0%, rgba(22, 25, 30, .6) 38%, rgba(22, 25, 30, .1) 75%, rgba(22, 25, 30, 0) 100%),
  linear-gradient(to top, rgba(22, 25, 30, .88) 0%, rgba(22, 25, 30, .25) 38%, rgba(22, 25, 30, 0) 60%); }
@media (max-width: 720px) { .why-wide::after { background: linear-gradient(to bottom, rgba(22, 25, 30, .35), rgba(22, 25, 30, .92) 50%); } }

/* ================================================================ «Почему Перфекто» как на prokachestvostom.ru */
.about-block { padding-bottom: clamp(72px, 8vw, 120px); }
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: end; margin-bottom: 32px; }
.about-lead p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; }
.about-strip { overflow: hidden; }
.about-strip-track { display: flex; gap: 16px; width: max-content; animation: why-left 80s linear infinite; will-change: transform; }
.about-strip-track img { height: clamp(220px, 24vw, 340px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.about-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -64px; }
.about-card { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(31, 35, 40, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.about-card .why-icon { background: var(--cyan-soft); color: var(--cyan-ink); }
.about-card-title { margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--ink); }

.about-card p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1024px) {
  .about-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .about-strip-track { gap: 10px; }
  .about-strip-track img { border-radius: 18px; }
  .about-cards { grid-template-columns: minmax(0, 1fr); margin-top: -40px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .about-strip-track { animation: none; } }
.about-card { background: rgba(255, 255, 255, .93); }
.about-head { display: flex; grid-template-columns: none; align-items: flex-end; margin-bottom: 32px; }
.section-sub { margin-top: 8px; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 720px) { .about-head { align-items: flex-start; } }
/* преподаватели — слайдер по 4 */
.tslider-track { grid-auto-columns: calc((100% - 16px * 3) / 4); }
.tslider-track .tmini { scroll-snap-align: start; }
.tslider-track .tmini-photo img { aspect-ratio: 4 / 4.6; }
.tslider-track .tmini-body { padding: 16px 18px 20px; }
.tslider-track .tmini-name { font-size: 17px; }
.tslider-track .tmini-role { font-size: 13.5px; }
@media (max-width: 1024px) { .tslider-track { grid-auto-columns: calc((100% - 16px * 2) / 3); } }
@media (max-width: 720px) { .tslider-track { grid-auto-columns: 70%; } #teachers .head-actions .rail-btn { display: none; } }
.about-more { margin-top: 18px; }
.pslider { scroll-padding-inline: 12px; }
/* стрелки слайдеров и кнопки разделов — одной высоты */
.section-link, .rail-btn { height: 40px; min-height: 40px; }
.rail-btn { width: 40px; }

/* ================================================================ версия для слабовидящих */
.a11y-toggle.is-active { border-color: var(--cyan); background: rgba(0, 213, 223, .15); }
.a11y-panel { position: relative; z-index: 60; background: #fff; border-bottom: 2px solid #000; color: #000; font-family: Arial, Helvetica, sans-serif; }
.a11y-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.a11y-group { display: flex; align-items: center; gap: 6px; }
.a11y-label { margin-right: 4px; font-size: 16px; font-weight: 700; }
.a11y-opt, .a11y-off { min-width: 44px; height: 40px; padding: 0 12px; border: 2px solid #000; border-radius: 4px; background: #fff; color: #000; font: 700 16px Arial, sans-serif; }
.a11y-opt.is-active { outline: 3px solid #000; outline-offset: 2px; }
.a11y-opt--size-2 { font-size: 20px; } .a11y-opt--size-3 { font-size: 24px; }
.a11y-opt--scheme-bw { background: #fff; color: #000; }
.a11y-opt--scheme-wb { background: #000; color: #fff; }
.a11y-opt--scheme-blue { background: #9DD1FF; color: #063462; border-color: #063462; }
.a11y-off { margin-left: auto; }

/* общий режим: без анимаций, полупрозрачностей и декоративных фонов */
html.a11y *, html.a11y *::before, html.a11y *::after { animation: none !important; transition: none !important; text-shadow: none !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
html.a11y .reveal { opacity: 1 !important; transform: none !important; }
html.a11y body { font-family: Arial, Helvetica, sans-serif; }
html.a11y .h1, html.a11y .h2, html.a11y .hero-title, html.a11y .dir-title, html.a11y .step-num, html.a11y .start-date b { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0 !important; }
html.a11y .hero-wall, html.a11y .hero-shade, html.a11y .about-strip, html.a11y .why-marquee, html.a11y .hero-scroll { display: none !important; }
html.a11y .hero--wall { min-height: 0 !important; display: block; }
html.a11y .hero-content { padding-top: 48px !important; padding-bottom: 48px !important; }
html.a11y .page-home .site-header { position: sticky; }
html.a11y .about-cards { margin-top: 0; }
html.a11y .hero--wall .hero-title-accent { font-size: clamp(48px, 7vw, 96px); }
html.a11y .program-card:hover, html.a11y .dtile:hover { transform: none; }
/* размер шрифта — масштаб всей страницы, раскладка подстраивается */
html.a11y-size-2 body { zoom: 1.25; }
html.a11y-size-3 body { zoom: 1.5; }
html.a11y-size-2 .a11y-panel, html.a11y-size-3 .a11y-panel { zoom: .8; }
/* интервал */
html.a11y-spacing-2 body :is(p, li, a, span, h1, h2, h3, h4, button, label, blockquote) { letter-spacing: .12em !important; word-spacing: .2em !important; line-height: 1.8 !important; }
/* изображения */
html.a11y-images-off img:not(.logo img), html.a11y-images-off video, html.a11y-images-off .program-media, html.a11y-images-off .tmini-photo,
html.a11y-images-off .mrow-thumb, html.a11y-images-off .article-media, html.a11y-images-off .review-video img { display: none !important; }
html.a11y-images-off .review-video { min-height: 120px; }

/* цветовые схемы: --a-bg фон, --a-fg текст и рамки */
html.a11y-scheme-bw { --a-bg: #fff; --a-fg: #000; }
html.a11y-scheme-wb { --a-bg: #000; --a-fg: #fff; }
html.a11y-scheme-blue { --a-bg: #9DD1FF; --a-fg: #063462; }
html.a11y, html.a11y body, html.a11y body *:not(svg):not(svg *):not(img):not(video) {
  background-color: var(--a-bg) !important; background-image: none !important; color: var(--a-fg) !important; border-color: var(--a-fg) !important; }
html.a11y svg { color: var(--a-fg) !important; }
html.a11y .btn, html.a11y .section-link, html.a11y .rail-btn, html.a11y .filter, html.a11y .facts li, html.a11y .chip, html.a11y .dtile, html.a11y .program-card,
html.a11y .tmini, html.a11y .mrow, html.a11y .article-card, html.a11y .start-row, html.a11y .about-card, html.a11y .step, html.a11y .field input,
html.a11y .header-phone, html.a11y .cta-grid, html.a11y .panel, html.a11y .tcard, html.a11y .material-card { border: 2px solid var(--a-fg) !important; }
html.a11y a { text-decoration: underline !important; }
html.a11y .btn, html.a11y .section-link, html.a11y .nav-link, html.a11y .logo, html.a11y .dtile, html.a11y .mrow, html.a11y .article-card { text-decoration: none !important; }
html.a11y .btn::before, html.a11y .section-link::before, html.a11y .dir-card::after, html.a11y .why-wide::after { display: none !important; }
html.a11y .btn:hover, html.a11y .section-link:hover, html.a11y .filter.is-active, html.a11y .rail-btn:hover { background-color: var(--a-fg) !important; color: var(--a-bg) !important; }
html.a11y :focus-visible { outline: 3px solid var(--a-fg) !important; outline-offset: 3px; }
html.a11y-scheme-bw .logo img, html.a11y-scheme-blue .logo img { filter: brightness(0); }
html.a11y-scheme-wb .logo img { filter: brightness(0) invert(1); }
@media (max-width: 720px) { .a11y-off { margin-left: 0; } .a11y-label { width: 100%; } .a11y-group { flex-wrap: wrap; } }
/* масштаб — только содержимое и подвал, шапка остаётся читаемой и не ломается */
html.a11y-size-2 body, html.a11y-size-3 body { zoom: 1; }
html.a11y-size-2 main, html.a11y-size-2 .site-footer { zoom: 1.25; }
html.a11y-size-3 main, html.a11y-size-3 .site-footer { zoom: 1.5; }
html.a11y-size-2 .site-header .nav-link, html.a11y-size-3 .site-header .nav-link { font-size: 16px; }
html.a11y .hero-formats li::before { background: var(--a-fg) !important; }
/* кнопки выбора цвета всегда показывают свою схему */
html.a11y .a11y-panel .a11y-opt--scheme-bw { background-color: #fff !important; color: #000 !important; border-color: #000 !important; }
html.a11y .a11y-panel .a11y-opt--scheme-wb { background-color: #000 !important; color: #fff !important; border-color: #fff !important; outline-color: var(--a-fg); }
html.a11y .a11y-panel .a11y-opt--scheme-blue { background-color: #9DD1FF !important; color: #063462 !important; border-color: #063462 !important; }
html.a11y .a11y-opt.is-active { outline: 3px solid var(--a-fg); outline-offset: 2px; }
html.a11y .hero-content { padding-bottom: 24px !important; }
html.a11y-size-2 .a11y-panel, html.a11y-size-3 .a11y-panel { zoom: 1; }

/* ================================================================ преподаватели на главной: сетка 4, без слайдера */
.tgrid-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tgrid-home .tmini { overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease); }
.tgrid-home .tmini:hover { box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(31, 35, 40, .1); }
.tgrid-home .tmini-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top center; }
.tgrid-home .tmini-body { padding: 16px 18px 20px; }
.tgrid-home .tmini-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.tgrid-home .tmini-role { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .tgrid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tgrid-home { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ База знаний на главной: карточки-плитки */
.kb-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kb-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--white);
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.kb-card:hover { box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(31, 35, 40, .1); transform: translateY(-2px); }
.kb-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; }
.kb-ic .ic { width: 26px; height: 26px; }
.kb-kind { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kb-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.kb-text { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kb-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; }
.kb-more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.kb-card:hover .kb-more .ic { transform: translateX(3px); }
/* тон акцента по типу материала */
.kb-card--coral  .kb-ic { background: var(--coral-soft); color: var(--coral-ink); }  .kb-card--coral  .kb-kind, .kb-card--coral  .kb-more { color: var(--coral-ink); }
.kb-card--cyan   .kb-ic { background: var(--cyan-soft);  color: var(--cyan-ink); }   .kb-card--cyan   .kb-kind, .kb-card--cyan   .kb-more { color: var(--cyan-ink); }
.kb-card--violet .kb-ic { background: #EEE9FC; color: #6B4BD6; }   .kb-card--violet .kb-kind, .kb-card--violet .kb-more { color: #6B4BD6; }
.kb-card--green  .kb-ic { background: #E2F5EC; color: #1E8E5A; }   .kb-card--green  .kb-kind, .kb-card--green  .kb-more { color: #1E8E5A; }
.kb-card--amber  .kb-ic { background: #FBEEDD; color: #B5730E; }   .kb-card--amber  .kb-kind, .kb-card--amber  .kb-more { color: #B5730E; }
/* первый материал (практикум) — крупнее, на всю ширину слева */
.kb-card--feat { grid-column: span 2; grid-row: span 1; flex-direction: row; flex-wrap: wrap; align-content: center; gap: 6px 20px; padding: 28px; }
.kb-card--feat .kb-ic { width: 64px; height: 64px; }
.kb-card--feat .kb-ic .ic { width: 32px; height: 32px; }
.kb-card--feat .kb-kind { flex-basis: calc(100% - 84px); }
.kb-card--feat .kb-title { flex-basis: 100%; font-size: 22px; }
.kb-card--feat .kb-text { flex-basis: 100%; -webkit-line-clamp: 3; }
.kb-card--feat .kb-more { flex-basis: 100%; }
@media (max-width: 1024px) { .kb-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kb-card--feat { grid-column: span 2; } }
@media (max-width: 560px) { .kb-home-grid { grid-template-columns: minmax(0, 1fr); } .kb-card--feat { grid-column: span 1; flex-direction: column; } .kb-card--feat .kb-title { font-size: 19px; } }

/* ================================================================ ближайшие старты: таблица */
.starts-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line); background: var(--white); }
.starts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.starts-table th { padding: 14px 18px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #FAFAF8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.starts-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.starts-table tbody tr:last-child td { border-bottom: 0; }
.starts-table tbody tr:hover td { background: #FBFBFA; }
.st-date { font-weight: 700; color: var(--ink); white-space: nowrap; }
.st-prog { font-weight: 500; color: var(--ink); min-width: 220px; }
.st-place, .st-note { color: var(--muted); font-size: 14px; }
.st-act { text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .starts-table thead { display: none; }
  .starts-table, .starts-table tbody, .starts-table tr, .starts-table td { display: block; }
  .starts-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .starts-table tbody tr:last-child { border-bottom: 0; }
  .starts-table td { padding: 4px 0; border: 0; }
  .starts-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .st-date::before, .st-prog::before, .st-act::before { display: none; }
  .st-date { font-size: 18px; }
  .st-prog { font-size: 16px; margin: 2px 0 8px; }
  .st-act { text-align: left; margin-top: 10px; }
  .st-act .btn { width: 100%; }
}

/* ================================================================ форма заявки: фон-фото */
.cta { position: relative; }
.cta-grid { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.cta-grid::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to right, rgba(22, 25, 30, .96) 0%, rgba(22, 25, 30, .86) 45%, rgba(22, 25, 30, .66) 100%); }
.cta-copy, .cta-grid .lead-form { position: relative; z-index: 1; }

/* ================================================================ форма «Сделайте первый шаг»: фото + затемнение */
/* градиент — слоем фона поверх фото (гарантированное затемнение, без z-index) */
.cta--photo { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 100px) 0; background-color: #14171B;
  background-image: linear-gradient(to right, rgba(14,16,20,.42) 0%, rgba(14,16,20,.34) 30%, rgba(14,16,20,.80) 52%, rgba(14,16,20,.90) 72%, rgba(14,16,20,.94) 100%), url('/static/img/cta.jpg');
  background-size: cover; background-position: 22% center; background-repeat: no-repeat; }
.cta-photo-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); }
.cta-photo-panel { grid-column: 2; }
.cta-photo-panel .h2 { color: #fff; margin-top: 4px; max-width: 460px; }
.cta-photo-sub { margin-top: 12px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; max-width: 440px; }
.cta-photo-panel .cta-points { display: grid; gap: 10px; margin: 20px 0 24px; }
.cta-photo-panel .cta-points li { display: flex; gap: 10px; align-items: center; color: #fff; font-size: 15px; }
.cta-photo-panel .cta-points .ic { color: var(--cyan); width: 20px; height: 20px; flex: none; }
.cta-photo-panel .lead-form { background: rgba(20,23,27,.55); padding: 24px; border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); }
@media (max-width: 920px) {
  /* фото сверху баннером, форма ниже на тёмном */
  .cta--photo { padding: 40px 0 clamp(32px, 6vw, 56px);
    background-image: linear-gradient(to top, rgba(14,16,20,.97) 46%, rgba(14,16,20,.35) 78%, rgba(14,16,20,.15) 100%), url('/static/img/cta.jpg');
    background-position: 22% top; background-size: cover; }
  .cta-photo-grid { grid-template-columns: 1fr; padding-top: clamp(140px, 42vw, 240px); }
  .cta-photo-panel { grid-column: 1; }
}
@media (max-width: 480px) { .cta--photo { background-position: 30% 18%; } }

/* ================================================================ отзывы: ровная сетка из 4 */
.reviews-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reviews-grid .review-video { width: auto; }
.reviews-grid .review-video img { aspect-ratio: 3 / 4; }
.reviews-grid .review-text { height: 100%; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); } .reviews-grid .review-video img { aspect-ratio: 16 / 10; } }

/* ================================================================ блок демо-симулятора: фото на всю панель, слева полупрозрачное затемнение */
.sim3 { position: relative; overflow: hidden; border-radius: 22px; min-height: 460px; background: #14171B; color: #fff; isolation: isolate; }
.eyebrow--coral { color: #ff8f82; }
.sim3-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.sim3::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to right, rgba(18,21,25,.88) 0%, rgba(18,21,25,.76) 40%, rgba(18,21,25,.34) 66%, rgba(18,21,25,.06) 100%),
  linear-gradient(to top, rgba(18,21,25,.55) 0%, rgba(18,21,25,0) 42%); }
.sim3-copy { position: relative; z-index: 2; max-width: 600px; padding: clamp(28px, 3.2vw, 52px); }
.sim3-copy .h2 { color: #fff; margin-top: 6px; }
.sim3-intro { margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.86); }
.sim3-steps { display: grid; gap: 14px; margin: 24px 0; }
.sim3-step { padding-left: 16px; border-left: 2px solid var(--coral); }
.sim3-step b { display: block; color: #fff; font-size: 15px; }
.sim3-step span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78); }
.sim3-facts { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ff8f82; }
.sim3-btn { margin-top: 26px; }
/* мерцающие точки поверх фото симулятора (имитация live-трекинга позы) */
.sim3-dots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sim3-dots span { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 0 16px 5px rgba(255,255,255,.8); opacity: .55; animation: simDot 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes simDot {
  0%, 100% { opacity: .5;  transform: scale(.85); box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 0 12px 3px rgba(255,255,255,.6); }
  45%      { opacity: 1;   transform: scale(1.35); box-shadow: 0 0 0 4px rgba(255,255,255,.65), 0 0 28px 10px rgba(255,255,255,.95); }
}
@media (prefers-reduced-motion: reduce) { .sim3-dots span { animation: none; opacity: .7; } }
@media (max-width: 920px) { .sim3-dots { display: none; } }
@media (max-width: 920px) {
  .sim3 { display: flex; flex-direction: column; min-height: 0; }
  .sim3-bg { position: relative; z-index: 0; height: auto; aspect-ratio: 16 / 10; }
  .sim3::before { background: linear-gradient(to top, rgba(18,21,25,.98) 58%, rgba(18,21,25,.7) 72%, rgba(18,21,25,.2) 88%, rgba(18,21,25,0) 100%); }
  /* текст не заезжает на фото: начинается ниже картинки */
  .sim3-copy { max-width: none; margin-top: 0; padding-top: clamp(22px, 5vw, 32px); }
  .sim3-btn { width: 100%; }
}

/* материалы: подзаголовок-блок и сетка из 2 */
.section-sub--block { margin: -16px 0 24px; max-width: 680px; }
.kb-home-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .kb-home-grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* материалы: текст поверх фонового фото (гайды, памятки) */
.kbp-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px; overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 0 0 1px var(--line); }
.kbp-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.kbp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(16,19,24,.92) 6%, rgba(16,19,24,.66) 42%, rgba(16,19,24,.22) 78%, rgba(16,19,24,.08) 100%); }
.kbp-card:hover { box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(16,19,24,.22); }
.kbp-card:hover .kbp-bg { transform: scale(1.05); }
.kbp-kind { align-self: flex-start; margin-bottom: auto; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kbp-body { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.kbp-title { font-size: 21px; font-weight: 800; line-height: 1.25; }
.kbp-text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); }
.kbp-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14px; font-weight: 700; color: #fff; }
.kbp-more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.kbp-card:hover .kbp-more .ic { transform: translateX(3px); }
@media (max-width: 860px) {
  /* в адаптиве сильнее затемняем фото под текст */
  .kbp-card::before { background: linear-gradient(to top, rgba(16,19,24,.96) 10%, rgba(16,19,24,.82) 45%, rgba(16,19,24,.5) 78%, rgba(16,19,24,.34) 100%); }
}
@media (max-width: 720px) { .kbp-card { min-height: 240px; } }

/* ================================================================ шапка: «Заказать звонок», телефон только на мобильном */
.header-phone--mob { display: none; }
@media (max-width: 1024px) { .header-phone--mob { display: inline-flex; } }

/* ================================================================ правки главной 05.10 */
/* отступ между первым экраном и «Выберите программу» */
.page-home main > #programs { padding-top: clamp(64px, 7vw, 104px); }

/* блок практики: заголовок слева (2 строки), кнопка справа, текст шире */
.about-head { align-items: flex-start; gap: 24px 40px; }
.about-head-text { flex: 1; }
.about-head .section-sub { max-width: 760px; margin-top: 14px; }
.about-head .section-link { flex: none; margin-top: 6px; white-space: nowrap; }
@media (max-width: 720px) { .about-head .section-link { margin-top: 0; } }


/* отзывы: подпись под видео */
.reviews-grid { align-items: start; }
.review-vcard { margin: 0; }
.review-vcard .review-video { width: 100%; display: block; }
.review-vcard .review-video img { aspect-ratio: 3 / 4; }
.review-cap { padding: 14px 4px 0; }
.review-cap b { display: block; color: var(--ink); font-size: 16px; }
.review-cap span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 560px) { .review-vcard .review-video img { aspect-ratio: 16 / 10; } }

/* ================================================================ единая шапка блока (заголовок/подзаголовок + кнопка/стрелки) */
.bh { margin-bottom: 28px; }
.bh-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; }
.bh-row .h2 { margin: 0; }
.bh-sub { margin-top: 12px; max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.bh-actions { display: flex; align-items: center; gap: 10px; flex: none; }
@media (max-width: 720px) {
  .bh-row { flex-wrap: wrap; }
  .bh-actions { order: 3; width: 100%; }
}

/* ================================================================ отзывы: единый формат карточек (3 колонки) */
.reviews-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.rev-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.rev-head { margin-bottom: 8px; }
.rev-name { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.rev-course-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 5px; }
.rev-course { font-size: 13px; font-weight: 700; color: var(--coral-ink); }
.rev-fmt { padding: 3px 10px; font-size: 11px; letter-spacing: .03em; }
.rev-stars { display: block; color: #FFB400; font-size: 16px; letter-spacing: 2px; line-height: 1; }
.rev-card--text .rev-stars { margin-bottom: 12px; }
.rev-card--video .rev-stars { margin: 4px 0 0; }
/* видео-карточка */
.rev-card--video .rev-media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--graphite); border: 0; cursor: pointer; }
.rev-card--video .rev-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 22%; transition: transform .6s var(--ease); }
.rev-card--video:hover .rev-media img { transform: scale(1.04); }
.rev-card--video .play { position: absolute; left: 50%; top: 62%; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(10,11,13,.55); border: 1px solid rgba(255,255,255,.4); color: #fff; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.rev-card--video .play .ic { width: 26px; height: 26px; margin-left: 3px; }
.rev-card--video:hover .play { transform: translate(-50%,-50%) scale(1.06); border-color: rgba(255,255,255,.75); box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 12px 34px rgba(0,0,0,.35); }
.rev-card--video .rev-body { padding: 18px 20px 22px; }
.rev-cap { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text); }
/* письменная карточка */
.rev-card--text .rev-body { display: flex; flex-direction: column; flex: 1; padding: 24px 22px 10px; }
.rev-quote { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-ink); }
.rev-quote .ic { width: 22px; height: 22px; }
.rev-text { font-size: 15px; line-height: 1.6; color: var(--ink); }
.rev-text:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev-more { align-self: flex-start; margin-top: 12px; padding: 0; font-size: 14px; font-weight: 700; color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.rev-foot { margin-top: auto; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 1024px) { .reviews-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reviews-cards { grid-template-columns: minmax(0, 1fr); } }

/* отзывы: слева видео в полный рост, справа два письменных друг под другом */
.reviews-split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.reviews-split-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* Высоту задаёт правая колонка (два компактных отзыва), видео подстраивается под неё,
   поэтому нижняя граница блока ровная. Фото видео позиционируется абсолютно, чтобы
   не раздувать высоту карточки. */
.reviews-split { align-items: stretch; }
.reviews-split-video, .reviews-split .rev-card--video { height: 100%; }
.reviews-split .rev-card--video .rev-media { flex: 1 1 0; min-height: 0; }
.reviews-split .rev-card--video .rev-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center; }
.reviews-split .rev-card--video .rev-body { flex: none; }
/* кадрируем по верхней части (голова + корпус), чтобы не попадали субтитры снизу кадра */
.reviews-split .rev-card--video .rev-media img { object-position: center 12%; }
/* play чуть ниже центра — всегда на корпусе, не на лице (высота кадра плавает по ширине экрана) */
.reviews-split .rev-card--video .play { top: 62%; }
/* горизонтальная письменная карточка (меньше по высоте, шире) */
.reviews-split .rev-card--text { min-height: 0; }
.reviews-split .rev-card--text .rev-body { padding: 20px 24px 20px; }
.reviews-split .rev-card--text .rev-text:not(.is-open) { -webkit-line-clamp: 3; }
.reviews-split .rev-foot { padding: 16px 24px; }
@media (max-width: 860px) {
  .reviews-split { grid-template-columns: minmax(0, 1fr); }
  /* в одну колонку возвращаем обычную видео-карточку (фото в потоке, play по центру) */
  .reviews-split-video, .reviews-split .rev-card--video { height: auto; }
  .reviews-split .rev-card--video .rev-media { flex: none; display: block; position: relative; }
  .reviews-split .rev-card--video .rev-media img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 4; object-position: center 12%; }
  .reviews-split .rev-card--video .play { top: 62%; left: 50%; right: auto; bottom: auto; transform: translate(-50%,-50%); }
  .reviews-split .rev-card--video:hover .play { transform: translate(-50%,-50%) scale(1.08); }
}

/* ================================================================ отзывы: лица не обрезаем, без дешёвых иконок */
.rev-card--video .rev-media img { aspect-ratio: 3 / 4; object-position: center 12%; }
.reviews-cards { align-items: stretch; }
.rev-card--text .rev-body { padding-top: 24px; }

/* ================================================================ практические материалы: одноцветные иконки (без «радуги») */
.kb-card .kb-ic { background: var(--cyan-soft) !important; color: var(--cyan-ink) !important; }
.kb-card .kb-kind, .kb-card .kb-more { color: var(--cyan-ink) !important; }
.sim2-fic { display: inline-grid; place-items: center; color: var(--coral); }
.sim2-fic .ic { width: 26px; height: 26px; }

/* шапка блока: кнопка по нижней линии подзаголовка */
.bh--bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.bh--bottom .bh-text { flex: 1; min-width: 0; }
.bh--bottom .bh-sub { margin-top: 12px; max-width: 760px; }
.bh--bottom .section-link { flex: none; }
@media (max-width: 720px) { .bh--bottom { flex-wrap: wrap; } .bh--bottom .section-link { width: auto; } }

/* рейтинг-бейдж в шапке отзывов (референс perf.atom-dev.ru) */
.rev-badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.rev-badge:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-1px); }
.rev-badge-src { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rev-badge-src .ic { width: 15px; height: 15px; color: #FF3333; }
.rev-badge-rating { display: inline-flex; align-items: center; gap: 7px; padding-left: 14px; border-left: 1px solid var(--line); }
.rev-badge-rating b { font-size: 24px; font-weight: 800; line-height: 1; }
.rev-badge-rating .rev-stars { font-size: 14px; }
.rev-badge-count { font-size: 13px; color: var(--muted); }
.rev-badge-link { display: inline-flex; align-items: center; gap: 5px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--coral-ink); }
.rev-badge-link .ic { width: 15px; height: 15px; }
@media (max-width: 720px) { .rev-badge { flex-wrap: wrap; gap: 10px 12px; width: 100%; } .rev-badge-rating, .rev-badge-link { padding-left: 0; border-left: 0; } }

/* модалка отзыва */
.modal-dialog--review { max-width: 560px; }
.modal-dialog--review .rev-card { box-shadow: none; border-radius: 0; }
.modal-dialog--review .rev-card--text .rev-body { padding: 8px 0 24px; }
.modal-dialog--review .rev-text { -webkit-line-clamp: unset !important; display: block !important; }
.modal-dialog--review .rev-foot { padding: 22px 0 0; }

/* ================================================================ Сведения об образовательной организации (аккордеон) */
.sv-accordion { max-width: none; }
.sv-acc { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: box-shadow .2s; }
.sv-acc.is-open { box-shadow: var(--shadow); }
.sv-acc-h { margin: 0; }
.sv-acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(16px, 2vw, 22px); background: transparent; border: 0; cursor: pointer; text-align: left; font-family: inherit; font-size: clamp(16px, 1.5vw, 18px); font-weight: 700; color: var(--ink); line-height: 1.35; transition: color .2s; }
.sv-acc-btn:hover { color: var(--coral-ink); }
.sv-acc-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: -3px; border-radius: var(--radius); }
.sv-acc-chevron { flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform .25s var(--ease); }
.sv-acc.is-open .sv-acc-chevron { transform: rotate(180deg); color: var(--coral-ink); }
.sv-acc-panel { border-top: 1px solid var(--line); }
.sv-acc-inner { padding: 6px clamp(16px, 2vw, 22px) clamp(22px, 2.6vw, 28px); }
.sv-acc-inner > p { line-height: 1.65; color: var(--text); }

.sv-h { margin: 26px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.sv-acc-inner > .sv-h:first-child { margin-top: 14px; }
.sv-note { margin: 12px 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sv-list { margin: 12px 0; padding-left: 20px; }
.sv-list li { margin: 6px 0; line-height: 1.6; }
.course-modules .sv-list { list-style: disc; padding-left: 24px; }
.course-modules .sv-list li { padding-left: 4px; }
.course-modules .sv-list li::marker { color: var(--cyan-ink); }

.sv-dl { margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sv-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr); }
.sv-row + .sv-row { border-top: 1px solid var(--line); }
.sv-row dt { padding: 13px 16px; background: var(--milk); font-size: 14px; line-height: 1.5; color: var(--muted); }
.sv-row dd { padding: 13px 16px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
@media (max-width: 640px) {
  .sv-row { grid-template-columns: 1fr; }
  .sv-row dt { background: var(--white); font-weight: 700; color: var(--ink); padding-bottom: 2px; }
  .sv-row dd { padding-top: 4px; }
}

.sv-docs { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.sv-doc { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.sv-doc-ic { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--cyan-soft); color: var(--cyan-ink); }
.sv-doc-ic .ic { width: 22px; height: 22px; }
.sv-doc-main { flex: 1; min-width: 0; }
.sv-doc-name { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--ink); }
.sv-doc-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.sv-doc-actions { flex: none; display: flex; gap: 8px; }
.sv-doc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1.5px solid rgba(31, 35, 40, .2); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: border-color .2s, color .2s; }
.sv-doc-btn:hover { border-color: var(--coral); color: var(--coral-ink); }
.sv-doc-btn .ic { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .sv-doc { flex-wrap: wrap; }
  .sv-doc-actions { width: 100%; }
  .sv-doc-btn { flex: 1; justify-content: center; }
}

.sv-table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sv-table th, .sv-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.sv-table th { background: var(--milk); font-weight: 700; color: var(--ink); white-space: nowrap; }
.sv-table td { color: var(--ink); }
.sv-table tbody tr:last-child td { border-bottom: 0; }
.sv-table tbody tr:last-child { font-weight: 700; }

.sv-qr { margin: 18px 0; display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.sv-qr img { width: 150px; height: 150px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv-qr figcaption { margin-top: 10px; max-width: 210px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ================================================================ Раздел «Отзывы» — вкладки */
.rev-hero-badge { margin-bottom: 24px; }
/* ряд: табы слева, рейтинг-бейдж справа */
.rev-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.rev-bar .rev-tabs { margin: 0; border-bottom: 0; }
.rev-bar .rev-hero-badge { margin: 0 0 14px; }
@media (max-width: 680px) { .rev-bar { align-items: stretch; } .rev-bar .rev-hero-badge { margin: 0 0 14px; } }
.rev-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.rev-tab { padding: 12px 18px; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 2px solid transparent; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s, border-color .2s; }
.rev-tab:hover { color: var(--ink); }
.rev-tab.is-active { color: var(--coral-ink); border-bottom-color: var(--coral); }
.rev-tab:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; border-radius: 6px; }
.reviews-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.reviews-wall > .rev-card { height: 100%; }
.reviews-wall > .rev-card--text .rev-body { flex: 1 1 auto; }
.reviews-wall > .rev-card--text .rev-text { flex: 1 1 auto; }
@media (max-width: 960px) { .reviews-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reviews-wall { grid-template-columns: 1fr; } }
.rev-empty { padding: 24px 0; color: var(--muted); }
/* пагинация отзывов */
.rev-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.rev-pager-num, .rev-pager-arrow { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.rev-pager-arrow svg { width: 18px; height: 18px; }
.rev-pager-num:hover, .rev-pager-arrow:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.rev-pager-num.is-active { background: var(--coral); border-color: var(--coral); color: #fff; cursor: default; }
.rev-pager-arrow:disabled { opacity: .4; cursor: default; }

.rev-form-wrap { max-width: none; }

/* ---- отзывы: два блока (видео, текст), у каждого свой фильтр по курсу + «показать ещё» ---- */
.rev-filters { margin-bottom: 24px; }
.rev-filters .rev-tab { border-bottom-width: 2px; }
.rev-filters .rev-tab.is-active { color: var(--ink); border-bottom-color: var(--coral); }
.rev-block { margin-top: 48px; }
.rev-block:first-child { margin-top: 10px; }
.rev-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.rev-block-head .h3 { margin: 0; }
.rev-badge-wrap { margin-left: auto; }

/* сетка отзывов: 3 в ряд, карточки единого размера (строки равной высоты) */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; grid-auto-rows: 1fr; align-items: stretch; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }
.reviews-grid > .rev-card { height: 100%; }
/* текстовые: тело на всю высоту, текст растягивается, подвал прижат вниз → карточки ровные */
.reviews-grid .rev-card--text .rev-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.reviews-grid .rev-card--text .rev-text { flex: 1 1 auto; }
/* видео: фото фикс. пропорции, тело тянется, цитата обрезается до 4 строк */
.reviews-grid--video .rev-card--video { display: flex; flex-direction: column; }
.reviews-grid--video .rev-card--video .rev-body { flex: 1 1 auto; }
.reviews-grid--video .rev-cap { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rev-showmore-wrap { display: flex; justify-content: center; margin-top: 30px; }

.rev-form-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rev-submit { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.rev-submit .rev-form-note { margin-top: 0; text-align: right; max-width: 280px; }
@media (max-width: 700px) { .rev-submit { align-items: stretch; } .rev-submit .rev-form-note { text-align: left; max-width: none; } }
.review-form .rev-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.review-form .field--full { grid-column: 1 / -1; }
@media (max-width: 760px) { .review-form .rev-form-grid { grid-template-columns: 1fr; } }
.review-form select, .review-form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; font-size: 15px; color: var(--ink); }
.review-form textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.review-form select:focus, .review-form textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,92,.12); }
.rev-select-wrap { position: relative; display: block; }
.review-form .rev-select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.rev-select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.rev-form-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 24px; margin-top: 22px; }
.rev-consents { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rev-form-foot .btn { white-space: nowrap; }
@media (max-width: 700px) {
  .review-form .rev-form-grid { grid-template-columns: 1fr; }
  .rev-form-foot { flex-direction: column; align-items: stretch; }
  .rev-form-foot .btn { width: 100%; }
}
.star-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; font-size: 30px; line-height: 1; }
.star-rate input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-rate label { color: var(--line); cursor: pointer; transition: color .15s; }
.star-rate input:checked ~ label, .star-rate label:hover, .star-rate label:hover ~ label { color: #FFB400; }
.star-rate input:focus-visible + label { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* ================================================================ Онлайн-курс (лендинг) */
/* ===== Hero онлайн-курса — двухколоночная структура (копия слева, медиа-карточка справа) ===== */
.page-hero--course { background-image: none; background: var(--graphite); min-height: 0; padding: clamp(40px, 5vw, 84px) 0; display: block; overflow: hidden; }
.page-hero--course::before { display: none; }
.page-hero--course .pe-glow-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-hero--course .pe-glow-field::before, .page-hero--course .pe-glow-field::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(120px); }
.page-hero--course .pe-glow-field::before { top: -160px; right: -100px; background: var(--cyan); opacity: .1; }
.page-hero--course .pe-glow-field::after { bottom: -200px; left: -140px; background: var(--cyan); opacity: .06; }

.course-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 3.5vw, 60px); align-items: stretch; }
.course-hero-copy { min-width: 0; }
.course-hero-copy .crumbs { margin-bottom: 16px; }

.page-hero .course-eyebrow { display: block; margin-bottom: 0; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan); }
.course-hero-meta { display: flex; flex-wrap: nowrap; gap: 6px 0; margin: 14px 0 18px; font-size: 12px; color: rgba(255,255,255,.75); }
.course-hero-meta span { display: inline-flex; align-items: center; white-space: nowrap; }
.course-hero-meta span:not(:last-child)::after { content: ""; display: inline-block; flex: none; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
@media (max-width: 1024px) { .course-hero-meta { flex-wrap: wrap; font-size: 13px; } }
.course-hero-lead-primary { color: var(--cyan); }
.course-hero-early { margin-top: 14px; max-width: 560px; font-style: italic; font-size: 15px; font-weight: 700; color: #fff; }
.course-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .course-hero-actions { flex-direction: column; align-items: stretch; } .course-hero-actions .btn { width: 100%; } }

/* медиа-карточка справа — тянется по высоте копии (выше), кадр на девушке */
.course-hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; box-shadow: 0 26px 64px rgba(0,0,0,.45); }
.course-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block; }
.course-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,21,25,0) 42%, rgba(18,21,25,.82) 100%); }

/* счётчик до старта — панель поверх фото снизу */
.course-countdown { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; margin: 0; padding: 13px 15px; border-radius: 16px; background: rgba(14,17,21,.58); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.course-countdown-label { display: block; margin-bottom: 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan); }
.course-countdown-timer { display: flex; gap: 8px; }
.course-countdown-unit { flex: 1; min-width: 0; padding: 9px 6px 8px; text-align: center; border-radius: 11px; background: rgba(0,213,223,.12); border: 1px solid rgba(0,213,223,.32); }
.course-countdown-unit span { display: block; font-size: 26px; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(0,213,223,.55); }
.course-countdown-unit small { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .course-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .course-hero-media { min-height: 0; aspect-ratio: 4 / 3.6; order: 2; }
}
@media (max-width: 420px) { .course-countdown-unit span { font-size: 22px; } }
.page-course section[id] { scroll-margin-top: 132px; }
/* единый вертикальный ритм: фото-CTA не выбиваются из общего шага секций,
   блок под липким меню получает немного воздуха сверху */
.page-course .section.contact-cta { padding-top: var(--section); padding-bottom: var(--section); }
.page-course .section--tight { padding-top: clamp(32px, 4vw, 52px); }

/* липкое якорное меню */
.course-nav { position: sticky; top: 76px; z-index: 39; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
@media (max-width: 560px) { .course-nav { top: 64px; } }
.course-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.course-nav-links { display: flex; gap: 2px 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.course-nav-links::-webkit-scrollbar { display: none; }
.course-nav-links a { padding: 15px 2px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .2s; }
.course-nav-links a:hover { color: var(--coral-ink); }
.course-nav-phone { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.course-nav-phone .ic { width: 20px; height: 20px; color: var(--coral); }
@media (max-width: 720px) { .course-nav-phone span { display: none; } }

.course-adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.course-adv { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); border-left: 4px solid var(--coral); }
.course-adv-t { margin-bottom: 10px; font-size: 19px; font-weight: 700; color: var(--ink); }
.course-adv p { line-height: 1.6; color: var(--muted); }
.course-adv .text-link { margin-top: 14px; }
@media (max-width: 760px) { .course-adv-grid { grid-template-columns: 1fr; } }

/* Партнёрский блок «Курс записан совместно с X-fit» */
.course-partner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(28px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-partner-head .h2 { margin: 0; }
.course-partner-logo { display: block; margin-top: clamp(20px, 2.4vw, 30px); height: clamp(52px, 6vw, 76px); width: auto; }
.course-partner-body { color: var(--muted); }
.course-partner-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; }
.course-partner-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .course-partner { grid-template-columns: 1fr; gap: 22px; } }

/* Блок «Курс записан на базе фитнес-клуба «Перфекто»» — заголовок+лого и 2 плашки */
.course-base { padding: 0 0 clamp(28px, 3.4vw, 44px); }
.course-base-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.course-base-head .h2 { margin: 0; }
.course-base .course-partner-logo { margin-top: 0; flex: none; }
.course-base-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.base-card { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(31,35,40,.06); }
.base-card-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--milk); color: var(--ink); }
.base-card-ic .ic { width: 26px; height: 26px; }
.base-card-t { margin-bottom: 12px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.base-card p { line-height: 1.6; color: var(--muted); }
.base-card .text-link { margin-top: 16px; }
/* логотип фитнес-клуба внутри карточки «опыт фитнес-центра» (вместо заголовка блока) */
.base-card--partner { position: relative; }
.base-card--partner .course-partner-logo { position: absolute; top: clamp(20px, 2.4vw, 30px); right: clamp(20px, 2.4vw, 30px); margin: 0; height: clamp(40px, 4vw, 54px); width: auto; opacity: .92; }
.base-card--partner .base-card-t { max-width: calc(100% - 120px); }
/* сноска */
.fn-ref { color: var(--cyan-ink); font-weight: 700; }

/* ===== «Пока не готовы принять решение?» — стартовый набор ===== */
.starter { position: relative; isolation: isolate; background: var(--milk); overflow: hidden; }
.starter-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.starter .container { position: relative; z-index: 2; }
.starter-copy { min-width: 0; max-width: 540px; }
.starter-eyebrow { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan-ink); }
.starter-h { max-width: 560px; }
.starter-accent { color: var(--cyan-ink); }
.starter-lead { margin-top: 16px; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.starter-btn { margin-top: 26px; gap: 10px; }
.starter-inside-label { margin: 32px 0 16px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.starter-inside { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 13px; max-width: 460px; }
.starter-inside li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.4; color: var(--text); }
.starter-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-ink); }
.starter-check .ic { width: 13px; height: 13px; }
@media (max-width: 860px) { .starter-bg { display: none; } .starter-copy { max-width: 100%; } }
@media (max-width: 560px) { .starter-inside { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .course-base-head { flex-direction: column; align-items: flex-start; gap: 18px; } }
@media (max-width: 560px) { .course-base-cards { grid-template-columns: 1fr; } }

/* Отлепляем заголовки h2 от сетки карточек там, где нет подзаголовка */
.page-course .h2 + .how-grid,
.page-course .h2 + .ptiers,
.page-course .h2 + .sv-accordion { margin-top: clamp(28px, 3.5vw, 44px); }

/* ===== Иконка-ряд (Для кого курс) ===== */
.ir-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.ir-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2vw, 26px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.ir-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: var(--cyan-soft); color: var(--cyan-ink); }
.ir-ic .ic { width: 28px; height: 28px; }
.ir-title { font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.ir-line { display: block; width: 34px; height: 3px; border-radius: 3px; margin: 12px 0 14px; background: var(--cyan); }
.ir-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) { .ir-row { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 460px) { .ir-row { grid-template-columns: 1fr; } }

/* ===== Горизонтальный таймлайн (Как проходит обучение) ===== */
/* «Как проходит обучение» — этапы змейкой (4 колонки, 2-й ряд реверсом) */
.tl { position: relative; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; column-gap: clamp(16px, 2vw, 32px); row-gap: 56px; }
.tl-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* ряд 1: текст сверху, иконка снизу (прижата к линии в центре) */
.tl-step:nth-child(-n+4) { align-self: end; }
.tl-step:nth-child(-n+4) .tl-title { order: 0; margin: 0 0 6px; }
.tl-step:nth-child(-n+4) .tl-num { order: 1; margin: 0 0 14px; }
.tl-step:nth-child(-n+4) .tl-ic { order: 2; }
/* ряд 2: иконка сверху (у линии), текст снизу; порядок реверсом для змейки */
.tl-step:nth-child(n+5) { align-self: start; }
.tl-step:nth-child(5) { grid-column: 4; grid-row: 2; }
.tl-step:nth-child(6) { grid-column: 3; grid-row: 2; }
.tl-step:nth-child(7) { grid-column: 2; grid-row: 2; }
.tl-step:nth-child(8) { grid-column: 1; grid-row: 2; }
.tl-ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 2px solid var(--cyan); color: var(--cyan-ink); box-shadow: 0 8px 22px rgba(0, 213, 223, .18); }
.tl-ic .ic { width: 28px; height: 28px; }
.tl-num { margin: 14px 0 6px; font-size: 20px; font-weight: 800; color: var(--cyan-ink); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink); max-width: 230px; }
/* соединитель-змейка по центру: линия ряда 1 + вертикаль 4→5 + линия ряда 2 (тексты выше/ниже, не пробиваются) */
.tl::before { content: ""; position: absolute; z-index: 0; left: 12.5%; right: 12.5%; top: calc(50% - 62px); height: 124px; border-top: 2px solid var(--line); border-right: 2px solid var(--line); border-top-right-radius: 44px; }
.tl::after { content: ""; position: absolute; z-index: 0; left: 12.5%; right: 12.5%; top: calc(50% + 62px); height: 2px; background: var(--line); }
@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; row-gap: 28px; }
  .tl::before, .tl::after { display: none; }
  .tl-step { align-self: auto; align-items: flex-start; text-align: left; }
  .tl-step:nth-child(5), .tl-step:nth-child(6), .tl-step:nth-child(7), .tl-step:nth-child(8) { grid-column: auto; grid-row: auto; }
  .tl-step:nth-child(-n+4) .tl-title { order: 2; margin: 0; }
  .tl-step:nth-child(-n+4) .tl-num { order: 1; margin: 14px 0 6px; }
  .tl-step:nth-child(-n+4) .tl-ic { order: 0; }
  .tl-title { max-width: none; }
}
@media (max-width: 460px) { .tl { grid-template-columns: 1fr; } }

.course-ladder-eyebrow { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-ink); }

/* Блок «Куда развиваться» — фон 100% ширины, тезисы на ~половину слева */
.levels-sec { position: relative; isolation: isolate; overflow: hidden; background: var(--milk); }
.levels-bg { position: absolute; top: 0; right: 0; z-index: 0; width: 150%; max-width: none; height: auto; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 42%); mask-image: linear-gradient(to right, transparent 0, #000 42%); }
@media (max-width: 860px) { .levels-bg { display: none; } }
.levels-sec .container { position: relative; z-index: 1; }
.levels-copy { max-width: 620px; }
.levels-copy .course-ladder-eyebrow { margin-top: 14px; }
@media (max-width: 860px) { .levels-copy { max-width: 100%; } }

/* ===== Вертикальный таймлайн (Куда развиваться дальше) ===== */
.course-ladder { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.course-ladder .ladder-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.ladder-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan-soft); border: 2px solid var(--cyan); color: var(--cyan-ink); font-size: 22px; font-weight: 800; }
.course-ladder .ladder-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: -20px; width: 2px; background: var(--line); }
.ladder-card { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.ladder-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ladder-head .h5 { margin: 0; }
.ladder-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan-ink); }
.ladder-ic .ic { width: 22px; height: 22px; }
.ladder-card p { line-height: 1.6; color: var(--muted); }
.ladder-card p + p { margin-top: 12px; }
.ladder-step--featured .ladder-num { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.ladder-step--featured .ladder-card { box-shadow: 0 10px 30px rgba(0, 213, 223, .16), inset 0 0 0 2px var(--cyan); }
.ladder-step--featured .ladder-card p b { color: var(--cyan-ink); }
@media (max-width: 560px) { .course-ladder .ladder-step { grid-template-columns: 44px 1fr; gap: 14px; } .ladder-num { width: 44px; height: 44px; font-size: 18px; } .course-ladder .ladder-step:not(:last-child)::before { left: 21px; top: 44px; } }

/* Плитки «Для кого» / «Почему» — с цветным бейджем-иконкой (решение из гайдов) */
.course-tile { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.course-tile-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan-ink); }
.course-tile-ic .ic { width: 22px; height: 22px; }
.course-tile .how-title { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.course-tile p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.course-results { columns: 2; column-gap: 44px; margin: 24px 0 0; padding: 0; list-style: none; }
.course-results li { break-inside: avoid; position: relative; padding-left: 34px; margin: 0 0 16px; line-height: 1.55; }
.course-results li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan-soft); }
.course-results li::after { content: ""; position: absolute; left: 6.5px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--cyan-ink); border-bottom: 2px solid var(--cyan-ink); transform: rotate(-45deg); }
@media (max-width: 700px) { .course-results { columns: 1; } }
.course-note { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ===== «Что вы сможете» + карточка «Вы также получите» ===== */
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.results-copy { min-width: 0; }
.results-list { list-style: none; margin: 24px 0 0; padding: 0; }
.results-list li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--text); }
.results-list li:last-child { border-bottom: 0; }
.results-list li::before { content: ""; position: absolute; left: 3px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.page-course .gain-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background-color: #10151b; background-image: url(/static/img/gain-bg.jpg); background-size: cover; background-position: center; color: rgba(255,255,255,.72); box-shadow: 0 20px 50px rgba(8,10,14,.18); }
.page-course .gain-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(16,21,27,.35), rgba(16,21,27,.55)); }
.gain-eyebrow { margin-bottom: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan); }
.gain-title { margin-bottom: 14px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; text-transform: uppercase; color: #fff; }
.gain-lead { margin-bottom: 22px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
.gain-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gain-files li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.85); }
.gain-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,213,223,.14); color: var(--cyan); }
.gain-check .ic { width: 13px; height: 13px; }
.gain-note { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.62); }
.gain-note .ic { flex: none; width: 18px; height: 18px; color: var(--cyan); }
.gain-card .fn-ref { color: var(--cyan); }
.gain-note--fn { font-style: italic; color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }

/* ===== Интерактивная практика (светлый, фон-картинка справа) ===== */
.practice-sec { position: relative; isolation: isolate; overflow: hidden; background: var(--milk); }
.practice-sec .container { position: relative; z-index: 1; }
.practice-sec-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.practice-copy { position: relative; z-index: 1; max-width: none; }
.practice-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.practice-head .h2 { margin: 0; max-width: 840px; }
.practice-badge { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: var(--cyan-ink); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.practice-badge .ic { width: 15px; height: 15px; }
.practice-sub { margin-top: 16px; max-width: 680px; }
.practice-tasks { margin-top: clamp(22px, 2.6vw, 32px); max-width: 780px; background: rgba(255, 255, 255, .84); backdrop-filter: blur(3px); border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 34px); box-shadow: 0 12px 34px rgba(31, 35, 40, .08); }
.practice-lead { margin: 0 0 16px; font-weight: 700; color: var(--ink); }
.practice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.practice-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.4; color: var(--text); }
.practice-task-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-ink); }
.practice-task-ic .ic { width: 20px; height: 20px; }
.practice-note { margin-top: clamp(20px, 2.4vw, 30px); max-width: 780px; background: rgba(255, 255, 255, .84); backdrop-filter: blur(3px); border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 34px); box-shadow: 0 12px 34px rgba(31, 35, 40, .08); }
.practice-note p { margin: 0; line-height: 1.6; color: var(--text); }
.practice-note p + p { margin-top: 12px; }
.practice-note b { color: var(--ink); }
.practice-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 3.5vw, 44px); padding: clamp(24px, 3vw, 34px) clamp(26px, 3.5vw, 44px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(8,10,14,.06), inset 0 0 0 1px var(--line); }
.practice-cta-text { max-width: 640px; }
.practice-cta-q { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.practice-cta-text p:last-child { line-height: 1.6; color: var(--muted); }
.practice-cta .btn { flex: none; }
@media (max-width: 640px) { .practice-list { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .practice-copy { max-width: 100%; }
  .practice-bg { display: none; }
  .practice-cta { flex-direction: column; align-items: flex-start; }
}

.steps.course-steps { margin-top: 24px; }
.course-mod-res { margin-top: 12px; }
.course-modules .sv-acc-inner > p + p { margin-top: 10px; }
.course-faq .sv-acc-inner > p + p { margin-top: 12px; }
.course-mod-inside { margin-top: 16px; }
.course-mod-sub { margin: 20px 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.course-mod-sub + p { margin-top: 4px; }
.mod-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 16px; padding: 5px 12px; border-radius: 999px; background: var(--cyan-ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.mod-badge .ic { width: 13px; height: 13px; }
@media (max-width: 520px) { .mod-badge { margin-right: 10px; padding: 4px 9px; } }

/* Курс: демо-доступ / преподаватели / документы */
.demo-access-sec { position: relative; isolation: isolate; overflow: hidden; background: #f3ece2; }
.demo-access-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.demo-access-sec .container { min-height: clamp(400px, 40vw, 600px); display: flex; align-items: center; }
.demo-access { max-width: 600px; }
.demo-access .h2 { margin: 0; }
.demo-access-lead { margin-top: 14px; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.demo-access-label { margin-top: 24px; font-weight: 700; color: var(--ink); }
.demo-access-list { list-style: none; margin: 14px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.demo-access-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.demo-access-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-ink); }
.demo-access-ic .ic { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .demo-access-bg { object-position: 72% center; }
  .demo-access { max-width: 100%; background: rgba(255, 255, 255, .86); padding: clamp(22px, 4vw, 32px); border-radius: var(--radius-lg); backdrop-filter: blur(2px); }
  .demo-access-sec .container { min-height: 0; padding-top: clamp(32px, 6vw, 56px); padding-bottom: clamp(32px, 6vw, 56px); }
}
@media (max-width: 580px) { .demo-access-list { grid-template-columns: 1fr; } }

/* Преподаватели курса — светлая секция, фирменная бирюза + слайдер */
.course-teach-sec { background: var(--milk); }
.course-teach-sub { margin-top: 10px; color: var(--muted); }
.teach-roles-label { margin-top: 26px; font-weight: 700; color: var(--cyan-ink); }
.teach-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 30px); margin: 18px 0 clamp(34px, 4vw, 52px); }
.teach-role { display: flex; gap: 14px; }
.teach-role-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-ink); }
.teach-role-ic .ic { width: 22px; height: 22px; }
.teach-role-t { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.teach-role-tx p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.teach-slider-head { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 18px; }
.teach-track { grid-auto-columns: calc((100% - 22px * 3) / 4); gap: 22px; }
.tcourse { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); scroll-snap-align: start; }
.tcourse-photo img { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top center; }
.tcourse-body { padding: 16px 18px 20px; }
.tcourse-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.tcourse-role { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tcourse-role b { color: var(--ink); font-weight: 700; }
.teach-accent { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(30px, 3.4vw, 44px); padding: clamp(24px, 2.8vw, 34px) clamp(26px, 3vw, 40px); background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 12px 30px rgba(31, 35, 40, .08), inset 0 0 0 1px var(--line); }
.teach-accent-num { flex: none; font-size: clamp(44px, 5.2vw, 66px); font-weight: 800; color: var(--cyan-ink); line-height: 1; }
.teach-accent p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; color: var(--ink); }
.teach-accent b { color: var(--cyan-ink); }
@media (max-width: 980px) { .teach-roles { grid-template-columns: 1fr 1fr; } .teach-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .teach-roles { grid-template-columns: 1fr; } .teach-track { grid-auto-columns: 82%; } .teach-accent { flex-direction: column; align-items: flex-start; gap: 12px; } }

.rev-filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 24px; padding: 14px 20px; background: var(--cyan-soft); border-radius: var(--radius); font-size: 15px; color: var(--ink); }
.rev-filter-note b { color: var(--cyan-ink); }
.rev-filter-reset { margin-left: auto; font-weight: 700; color: var(--coral-ink); white-space: nowrap; }
.rev-filter-reset:hover { text-decoration: underline; }

.docs-grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 2.4vw, 32px); margin-top: 28px; }
.doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.doc-card--plus { border-color: var(--cyan); box-shadow: 0 10px 30px rgba(0, 213, 223, .12); }
.doc-card-body { display: grid; gap: 12px; align-content: start; }
.doc-tariff { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--milk); color: var(--muted); font-size: 13px; font-weight: 700; }
.doc-tariff--plus { background: var(--cyan-ink); color: #fff; }
.doc-card p { line-height: 1.6; color: var(--text); }
.doc-card b { color: var(--ink); }
.doc-note { color: var(--muted); }
.doc-shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(31, 35, 40, .1); }
.doc-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .doc-card { grid-template-columns: 1fr; } }
.course-modules, .course-faq { max-width: none; }

.ptiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ptier { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ptier-slot { display: flex; flex-direction: column; }
.ptier-slot > .ptier { padding-bottom: clamp(36px, 5vw, 60px); }
.ptier-note-base { margin: auto 0 0; padding-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ptier--featured { box-shadow: inset 0 0 0 2px var(--coral), 0 16px 40px rgba(31,35,40,.08); }
.ptier-name { font-size: 24px; font-weight: 800; color: var(--ink); }
.ptier-desc { margin: 10px 0 16px; color: var(--muted); line-height: 1.6; }
.ptier-list { margin: 0 0 20px; padding-left: 24px; list-style: disc; }
.ptier-list li { margin: 7px 0; line-height: 1.5; padding-left: 4px; }
.ptier-list li::marker { color: var(--cyan-ink); }
.pt-price { font-size: 15px; color: var(--muted); }
.pt-price b { margin-right: 8px; font-size: 30px; font-weight: 800; color: var(--ink); }
.pt-price s { font-size: 18px; color: var(--muted); }
.pt-price-note { margin: 2px 0 18px; font-size: 13px; font-weight: 700; color: var(--coral-ink); }
@media (max-width: 760px) { .ptiers { grid-template-columns: 1fr; } }

/* Бонусы за покупку — как блок промокода в гайде (gain-bonus) */
.course-bonuses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.course-bonuses .gain-bonus { margin-top: 0; }
.course-bonuses .gain-bonus-t { font-size: 17px; line-height: 1.35; }
@media (max-width: 760px) { .course-bonuses { grid-template-columns: 1fr; } }

.course-bonus { margin-top: 28px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--cyan-soft); }
.course-bonus b { color: var(--ink); }
.course-bonus .sv-list { margin: 10px 0 0; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--coral); color: #fff; display: none; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s; }
.to-top:hover { transform: translateY(-2px); }
.to-top.is-shown { display: grid; }
.to-top-ic { width: 22px; height: 22px; transform: rotate(-90deg); }

/* ================================================================ CTA-плашка с фоном (ширина сетки) */
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); color: #fff; background: #1E2126; padding: clamp(36px, 5vw, 76px) clamp(26px, 5vw, 68px); }
.cta-card-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(18,21,25,.8), rgba(18,21,25,.88)); }
.cta-card .h2 { color: #fff; }
.cta-card-lead { max-width: 680px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); }
.cta-card-inner > .btn { margin-top: 28px; }
.cta-card-inner .mat-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); }
.practice-sec .cta-card { margin-top: clamp(28px, 3.5vw, 44px); }

/* ===== иконки-фичи без подложки: голые линейные иконки (единый стиль, как на референсе) ===== */
/* помещаем в конец файла, чтобы перебить индивидуальные правила классов */
.why-icon, .about-card .why-icon, .approach-ic, .how-ic,
.ab-today-ic, .ab-principle-ic, .ab-formula-ic,
.adv-icon, .base-card-ic, .ir-ic, .gain-ic, .aud-ic, .src-ic, .work-ic,
.demo-feat-ic, .how-feat-ic, .course-tile-ic, .ladder-ic {
  background: none; display: inline-grid; place-items: start; width: fit-content; height: auto;
  border-radius: 0; box-shadow: none; color: var(--cyan-ink);
}
.why-icon .ic, .approach-ic .ic, .how-ic .ic,
.ab-today-ic .ic, .ab-principle-ic .ic, .ab-formula-ic .ic,
.adv-icon .ic, .base-card-ic .ic, .ir-ic .ic, .gain-ic .ic, .aud-ic .ic, .src-ic .ic, .work-ic .ic,
.demo-feat-ic .ic, .how-feat-ic .ic, .course-tile-ic .ic, .ladder-ic .ic {
  width: 40px; height: 40px;
}
.why-icon, .approach-ic, .how-ic, .ab-today-ic, .ab-principle-ic,
.adv-icon, .base-card-ic, .ir-ic, .gain-ic, .course-tile-ic, .ladder-ic { margin-bottom: 18px; }
.ab-formula-ic { margin-bottom: 0; margin-right: 4px; }
.why-icon .ic { width: 34px; height: 34px; }
.ab-today-ic { color: var(--cyan); }

/* «Следующий шаг» — завершающая плашка после блока «Что вы сможете» (белая подложка) */
.next-step { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 3.4vw, 46px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(31,35,40,.06); }
.next-step-text { max-width: 760px; }
.next-step-text .h2 { margin-bottom: 10px; }
.next-step-text p { line-height: 1.65; color: var(--muted); }
.next-step .btn { flex: none; }
@media (max-width: 760px) { .next-step { flex-direction: column; align-items: flex-start; } .next-step .btn { width: 100%; } }

/* «Как проходит обучение» — карточки шагов с пояснениями (номер + иконка + заголовок + описание) */
.proc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin-top: 36px; }
.proc-card { position: relative; overflow: hidden; padding: clamp(24px, 2.4vw, 34px); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 10px 30px rgba(31,35,40,.06); }
.proc-num { position: absolute; top: 4px; right: 18px; font-size: clamp(64px, 7vw, 92px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: rgba(31,35,40,.05); pointer-events: none; user-select: none; }
.proc-ic { position: relative; display: inline-grid; place-items: start; margin-bottom: 16px; color: var(--cyan-ink); }
.proc-ic .ic { width: 38px; height: 38px; }
.proc-title { position: relative; margin-bottom: 10px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.proc-desc { position: relative; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 920px) { .proc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .proc-grid { grid-template-columns: 1fr; } }

/* ======================= Конструктор курса: публичные блоки ======================= */
.course-crumbs { padding-top: 20px; }
.cb-hero { background: linear-gradient(180deg, var(--cyan-soft), var(--white)); }
.cb-hero .h1 { max-width: 920px; }
.cb-hero .eyebrow { margin-bottom: 14px; }
.cb-hero-sub { max-width: 740px; margin-top: 18px; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cb-chip { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.cb-hero .course-hero-actions { margin-top: 30px; }
.course-checklist-note { margin-top: 18px; }
.course-cta-sec { background: var(--graphite); color: #fff; }
.course-cta { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; text-align: center; }
.course-cta .h2 { color: #fff; }
.course-cta-text { color: rgba(255, 255, 255, .82); font-size: 17px; }
.course-cta-form { width: 100%; max-width: 460px; margin: 8px auto 0; text-align: left; }

/* Выбор мессенджера в модалке заявки (Канал привлечения) */
.lead-form [hidden] { display: none !important; }
.lead-msgr { display: grid; gap: 8px; }
.lead-msgr .field-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.msgr-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.msgr-opt { flex: 1 1 130px; margin: 0; }
.msgr-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.msgr-opt > span { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.msgr-opt > span .ic { width: 20px; height: 20px; }
.msgr-opt:hover > span { border-color: var(--cyan-ink); }
.msgr-opt input:checked + span { border-color: var(--cyan-ink); background: var(--cyan-soft); color: var(--cyan-ink); }
.msgr-opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.lead-msgr .hint { font-size: 12px; color: var(--muted); margin: 0; }

/* Отзывы: финальный CTA + перенос длинных вкладок по программам */
.rev-cta { text-align: center; max-width: 640px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
.rev-cta-text { color: var(--muted); font-size: 17px; }
.rev-tabs { flex-wrap: wrap; }
.rev-tab { white-space: normal; text-align: left; }

/* Отражение фонового изображения баннера по горизонтали */
.cta-card-bg--flip { transform: scaleX(-1); }

/* Плашка режима предпросмотра (админский предпросмотр перед публикацией) */
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: var(--graphite); color: #fff; font-size: 14px; line-height: 1.4; }
.preview-bar__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 213, 223, .25); }
.preview-bar__text { color: rgba(255, 255, 255, .92); }
.preview-bar__text b { color: #fff; }
@media (max-width: 640px) { .preview-bar { padding: 9px 16px; font-size: 13px; } }

/* ===== Мобильные фоны блоков: отдельная картинка, фокус, приглушение ===== */
.bgpic { display: contents; }
.bg--focus-left  { object-position: left center !important; }
.bg--focus-right { object-position: right center !important; }
.bg--focus-top   { object-position: center top !important; }
@media (max-width: 768px) {
  .bg--m-hide { display: none !important; }
  .bg--m-show { display: block !important; opacity: .2 !important; }
  .bg--m-dim  { display: block !important; opacity: .07 !important; }
}

/* ===== Экран «спасибо» в окне заявки (светлый, как само окно) ===== */
.lead-success { display: grid; gap: 12px; margin-top: 22px; }
.lead-success .lead-success-bot { width: 100%; justify-content: center; }

/* ===== Копируемая ссылка на подборку (фильтры Обучение/Отзывы) ===== */
.rev-copy-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
[data-copy-link] { gap: 8px; }
[data-copy-link] .ic { width: 16px; height: 16px; }
[data-copy-link].is-copied { color: var(--cyan-ink); border-color: var(--cyan-ink); }
.filters-copy { white-space: nowrap; }
@media (max-width: 560px) { .rev-copy-bar { justify-content: stretch; } .rev-copy-bar .btn { width: 100%; } }

/* ===== Уведомление об использовании cookie ===== */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex;
  align-items: center; gap: 14px 20px; flex-wrap: wrap; max-width: 920px; margin: 0 auto;
  padding: 16px 20px; background: var(--ink, #2B2F36); color: #fff;
  border-radius: var(--radius-lg, 16px); box-shadow: 0 12px 40px rgba(8, 10, 14, .28); }
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { margin: 0; flex: 1 1 300px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.cookie-bar__text a { color: #fff; text-decoration: underline; }
.cookie-bar__btn { flex: none; }
@media (max-width: 560px) { .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; } .cookie-bar__btn { width: 100%; } }
