/* SkinExpert Челябинск — стили сайта. Цвета и шрифты — по брендбуку 1.0.
   Чтобы поменять оттенок, достаточно поправить значения в блоке :root. */

:root {
  --navy: #13235C;        /* текст, заголовки, тёмные блоки, кнопки */
  --cobalt: #1B37A6;      /* знак, ссылки, графика */
  --copper: #B5673E;      /* акцент: линии, цифры */
  --copper-dark: #9A5330; /* мелкие медные подписи на светлом */
  --copper-light: #DDA27C;/* медь на тёмном фоне */
  --ice: #EDF1F9;         /* плашки, вторые экраны */
  --snow: #FAFBFE;        /* основной фон */
  --white: #FFFFFF;
  --steel: #55648A;       /* второстепенный текст */
  --body: #3A4668;        /* длинный текст */
  --line: #D5DCEB;
  --line-strong: #A9B6D6;
  --on-dark: #CDD6EC;
  --on-dark-2: #A9B6D6;
  --dark-line: #2C3D7A;
  --error: #A3312A;

  --display: 'Prata', Georgia, 'Times New Roman', serif;
  --text: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --caps: 'Jost', 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--snow); color: var(--navy); font-family: var(--text); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--snow); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-family: var(--caps); font-size: 14px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--copper-dark); }
.lead { color: var(--body); max-width: 62ch; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 999px; border: 1px solid transparent; font: 500 17px/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--snow); }
.btn--dark:hover { background: var(--cobalt); color: var(--snow); }
.btn--line { background: transparent; border-color: var(--line-strong); color: var(--cobalt); }
.btn--line:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { min-height: 46px; padding: 0 24px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.round { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s ease, color .25s ease; }
.round:hover { background: var(--navy); color: var(--snow); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Шапка ---------- */
/* на служебных страницах — узкая полоса Нави; на главной поверх неё правила .top--over ниже */
.top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: rgba(19, 35, 92, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .2); }
.top .wrap { max-width: 1416px; padding-inline: clamp(20px, 6vw, 96px); }
.top__in { height: 64px; display: flex; align-items: center; gap: 32px; }
.top__logo { display: block; }
.top__logo img { display: block; width: auto; height: 28px; }
.top__nav { display: flex; gap: 36px; margin-left: auto; font-size: 15px; }
.top__nav a { color: rgba(255, 255, 255, .82); text-decoration: none; padding: 8px 0; }
.top__nav a:hover { color: #fff; }
.top__cta { margin-left: 0; }

/* ---------- Секции ---------- */
.sec { padding: var(--sec) 0; }
.sec--white { background: var(--white); border-block: 1px solid var(--line); }
.sec__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 44px; }


/* Спикер */

/* без скриптов карточки идут обычной лентой */
html:not(.js) .cards { height: auto; display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; }
html:not(.js) .card { position: static; transform: none; flex: 0 0 280px; }
html:not(.js) .cards__nav { display: none; }


/* Отзывы */
.reviews { display: flex; flex-wrap: wrap; gap: 24px; }
.review { flex: 1 1 280px; min-width: 0; padding: 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.review__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.review blockquote { font-size: 17px; line-height: 1.5; }
.review figcaption { font-size: 14px; color: var(--steel); }
.review figcaption strong { color: var(--navy); font-weight: 600; }



/* Подвал — в блоке версии 2 ниже */

/* Кнопка внизу экрана на телефоне */
.mcta { display: none; }

/* Уведомление о cookie: узкая полоса внизу, две текстовые кнопки; на телефоне — над панелью с кнопкой записи */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px clamp(20px, 6vw, 96px) calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(13, 24, 66, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.cookie p { flex: 1 1 240px; margin: 0; }
.cookie a { color: #fff; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 24px; }
.cookie__btn { min-height: 40px; padding: 0; border: 0; background: none; color: #fff; font: 500 15px/1 var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 5px; cursor: pointer; }
.cookie__btn:hover { text-decoration-color: #fff; }
.cookie__btn--quiet { color: rgba(255, 255, 255, .72); }

/* Страницы с документами: политика, согласие, 404 */
.doc { padding: clamp(48px, 7vw, 104px) 0 clamp(72px, 9vw, 136px); background: var(--snow); color: var(--body); }
.doc .wrap { max-width: calc(860px + 2 * clamp(20px, 6vw, 96px)); padding-inline: clamp(20px, 6vw, 96px); }
.doc h1 { margin: 0 0 14px; font: 400 clamp(34px, 4.4vw, 60px)/1.08 var(--display); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.doc h2 { margin: 48px 0 14px; font: 400 clamp(22px, 2vw, 28px)/1.25 var(--display); color: var(--navy); }
.doc p, .doc li { color: var(--body); line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 10px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--steel); }
.doc a { color: var(--cobalt); }
.doc__meta { font-size: 14px; color: var(--steel); }
.doc__todo { margin: 20px 0; padding: 12px 0 12px 16px; border-left: 2px solid var(--copper); color: var(--copper-dark); font-size: 15px; }
.doc table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); color: var(--body); }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 1px solid var(--line); }
.doc th { width: 34%; color: var(--steel); font-weight: 400; font-size: 14px; padding-top: 16px; }
.doc--404 { min-height: calc(100vh - 64px - 240px); min-height: calc(100svh - 64px - 240px); }
.doc--404 .doc__meta { margin-bottom: 14px; }
.doc .arrow-link--dark { color: var(--navy); }
.doc__links { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 36px !important; }

/* Появление блоков при прокрутке — только когда скрипт загрузился и движение не отключено */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card__plate img, .btn { transition: none; }
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 960px) {
  .top__nav { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__logo img { width: 168px; }
  .mcta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(250, 251, 254, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .3s ease; }
  .mcta.is-off, .mcta.is-sent { transform: translateY(110%); }
  .mcta .btn { min-height: 52px; }
  .foot { padding-bottom: 104px; }   /* под нижнюю панель с кнопкой */
  .btn { padding: 0 26px; }
}

/* =====================================================================
   Версия 2 (docs/SITE_V2_BRIEF.md, макет docs/maket_v2): шапка над первым экраном,
   первый экран, появление «слоями», нижняя панель на телефоне.
   Остальные блоки пока в стиле версии 1 — их переводим по одному.
   ===================================================================== */
:root {
  --ink: #0D1842;                         /* низ тёмного фона, подвал */
  --mist: #A9B6D6;                        /* подписи на тёмном */
  --hair: rgba(255, 255, 255, 0.2);       /* линейки на тёмном */
  --gut: clamp(20px, 6vw, 96px);          /* поля страницы */
  --edge: clamp(48px, 5.5vw, 88px);       /* высота волны на границе тёмного и светлого (плотнее — решение 09.10) */
  --out: cubic-bezier(.16, 1, .3, 1);     /* мягкое торможение */
  --rise: cubic-bezier(.6, .05, .25, 1);  /* подъём слоёв заставки — без рывка в начале */
}
.top--over .wrap, .hero .wrap { max-width: 1416px; padding-inline: var(--gut); }

/* ---------- Кнопки версии 2: прямоугольные, скругление 2 px ---------- */
.btn--light, .btn--frame { border-radius: 2px; font-size: 16px; }
.btn--light { background: #fff; color: var(--navy); padding: 0 34px; }
.btn--light:hover { background: var(--ice); color: var(--navy); transform: none; }
.btn--frame { min-height: 44px; padding: 0 22px; font-size: 15px; background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn--frame:hover { border-color: #fff; color: #fff; transform: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 14px; font: 500 16px/1 var(--text); color: #fff; text-decoration: none; }
.arrow-link:hover { color: #fff; }
.arrow-link i { flex: none; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.arrow-link i::before { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.arrow-link:hover i { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Шапка над первым экраном: прозрачная, после прокрутки — узкая полоса ---------- */
.top--over { position: absolute; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.top--over .top__in { height: 92px; gap: 32px; justify-content: flex-start; }
.top--over .top__logo img { width: auto; height: 34px; }
.top--over .top__nav { margin-left: auto; gap: 36px; }
.top--over .top__nav a { color: rgba(255, 255, 255, 0.82); }
.top--over .top__nav a:hover { color: #fff; }
.top--over .top__cta { display: inline-flex; margin-left: auto; }
.top--over .top__nav + .top__cta { margin-left: 0; }
.top--over.is-fixed { position: fixed; background: rgba(19, 35, 92, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.top--over.is-fixed .top__in { height: 64px; }
.top--over.is-fixed .top__logo img { height: 28px; }
.top--over.is-fixed .top__nav { display: none; }
.top--over.is-fixed .top__cta { margin-left: auto; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100vh; min-height: max(100svh, 640px); display: flex; flex-direction: column; overflow: hidden; padding-bottom: var(--edge); color: #fff;
  background: radial-gradient(90% 70% at 78% 42%, rgba(27, 55, 166, .55) 0%, rgba(27, 55, 166, 0) 62%), linear-gradient(180deg, var(--navy) 0%, var(--navy) 55%, var(--ink) 100%); }
/* фон-ткань на холсте; без скрипта вместо неё — три линии знака в SVG */
.weave { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -8px), 0); }
.js .weave { display: block; }
.js .hero__lines { display: none; }
.js .no-weave .hero__lines--wide { display: block; }
.js .no-weave .weave { display: none; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__lines--tall { display: none; }
.hero__lines path { fill: none; stroke-linecap: round; }
.hero__lines-far { filter: blur(26px); opacity: .32; }

.hero__body { position: relative; z-index: 2; margin-top: auto; padding-top: 150px; padding-bottom: clamp(36px, 6vh, 72px); width: 100%; }
.hero__slides { display: grid; align-items: end; }
.slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--out), visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--out), visibility 0s; }
.kicker { margin: 0 0 26px; font: 400 13px/1.3 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--copper-light); }
.slide__title { margin: 0; font: 400 clamp(44px, 6.5vw, 98px)/1 var(--display); letter-spacing: -.012em; color: #fff; text-wrap: wrap; }
.slide__title--promo { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; max-width: 15em; }
.slide__title .ln { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.slide__title--lines .ln { display: block; }
.slide__title .ln > span { display: inline-block; }
.hero__lead { max-width: 30em; margin: 30px 0 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .84); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; margin-top: 42px; }
/* сколько мест осталось: под кнопкой на компьютере, в строке «Участие» на телефоне */
.hero__seats { flex-basis: 100%; display: flex; align-items: center; gap: 10px; margin: -4px 0 0; font-size: 15px; color: rgba(255, 255, 255, .86); }
.hero__seats::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-light); flex: none; }
.hero-facts__seats { display: none !important; }
.terms__seats dd { color: #fff; }

/* метки слайдов: две короткие линии над строкой фактов справа */
html:not(.js) .hero__marks { display: none; }
.hero__marks { position: absolute; right: var(--gut); bottom: 14px; display: flex; }
.hero__marks button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__marks span { display: block; width: 30px; height: 2px; background: rgba(255, 255, 255, .32); transition: background-color .3s; }
.hero__marks button:hover span { background: rgba(255, 255, 255, .6); }
.hero__marks [aria-current="true"] span { background: #fff; }

.hero__foot { position: relative; z-index: 2; width: 100%; }
.hero-facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.hero-facts > div { padding: 24px 28px 30px 0; min-width: 0; }
.hero-facts > div + div { padding-left: 28px; border-left: 1px solid var(--hair); }
.hero-facts dt { font-size: 13px; color: var(--mist); margin-bottom: 8px; }
.hero-facts dd { margin: 0; font: 400 clamp(19px, 1.55vw, 22px)/1.2 var(--display); color: #fff; }
.hero-facts dd a { color: inherit; text-decoration: none; }
.hero-facts small { display: block; margin-top: 7px; font: 400 14.5px/1.4 var(--text); color: rgba(255, 255, 255, .78); }

/* граница тёмного и светлого: волна знака, две линии расходятся при прокрутке */
.hero .edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--edge); display: block; pointer-events: none; z-index: 1; }
.hero .edge path { vector-effect: non-scaling-stroke; }
.edge__l1 { transform: translateY(calc(var(--sy, 0) * -16px)); }
.edge__l2 { transform: translateY(calc(var(--sy, 0) * -34px)); }

/* ---------- Появление первого экрана. Классы на <html> ставит скрипт в <head>:
   .o3 — первый заход за сеанс («слои»), .o2 — следующие (короткое), .go — идёт появление ---------- */
.opening { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .go .slide.is-active .ln > span { transform: translateY(105%); animation: heroRise 1s var(--out) calc(var(--t0) + .05s) both; }
  .go .slide.is-active .ln:nth-child(2) > span { animation-delay: calc(var(--t0) + .14s); }
  .go .slide.is-active .ln:nth-child(n+3) > span { animation-delay: calc(var(--t0) + .2s); }
  .go .slide.is-active .kicker, .go .slide.is-active .hero__lead, .go .hero__cta, .go .hero__foot, .go .hero__marks, .go .top--over .top__in { opacity: 0; animation: heroShow .8s var(--out) both; }
  .go .top--over .top__in { animation-delay: calc(var(--t0) - .05s); }
  .go .slide.is-active .kicker { animation-delay: var(--t0); }
  .go .slide.is-active .hero__lead { animation-delay: calc(var(--t0) + .26s); }
  .go .hero__cta { animation-delay: calc(var(--t0) + .34s); }
  .go .hero__marks { animation-delay: calc(var(--t0) + .46s); }
  .go .hero__foot { animation-delay: calc(var(--t0) + .46s); }
  .go .hero .edge { opacity: 0; animation: heroShow 1s var(--out) calc(var(--t0) + .5s) both; }

  /* вариант 2 — при повторных заходах: фон проявляется слева направо, кнопка видна к 0,9 с */
  .o2 { --t0: .1s; }
  .o2.go .weave { clip-path: inset(0 100% 0 0); animation: heroWipe 1.8s var(--out) both; }

  /* вариант 3 — первый заход: логотип на светлом, три слоя поднимаются и собирают тёмную сцену */
  .o3 { --t0: 2.05s; }
  .o3.go .opening { display: block; position: fixed; inset: 0; z-index: 60; background: var(--snow); pointer-events: none; animation: openOut .5s linear 2.35s both; }
  .o3.go .opening__logo { position: absolute; inset: 0; display: grid; place-items: center; animation: heroShow .5s var(--out) both; }
  .o3.go .opening__logo img { width: min(62vw, 340px); height: auto; }
  .o3.go .opening__layers { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .o3.go .opening__layers path { transform: translateY(118%); animation: layerUp 1.5s var(--rise) both; }
  .o3.go .opening__layers path:nth-child(1) { animation-delay: .55s; }
  .o3.go .opening__layers path:nth-child(2) { animation-delay: .8s; }
  .o3.go .opening__layers path:nth-child(3) { animation-delay: 1.05s; }
  .o3.go .weave { clip-path: inset(0 100% 0 0); animation: heroWipe 2s var(--out) 2s both; }

  /* смена слайда: растворение и подъём строк из-под маски, 0,9 с */
  .slide.is-entering .ln > span { animation: heroRise .9s var(--out) both; }
  .slide.is-entering .ln:nth-child(2) > span { animation-delay: .06s; }
  .slide.is-entering .ln:nth-child(n+3) > span { animation-delay: .12s; }
  .slide.is-entering .kicker, .slide.is-entering .hero__lead { animation: heroShow .9s var(--out) both; }
  .slide.is-entering .hero__lead { animation-delay: .12s; }
}
@keyframes heroRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes heroShow { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: none; } }
@keyframes heroWipe { to { clip-path: inset(0); } }
@keyframes layerUp { to { transform: translateY(-16%); } }
@keyframes openOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

/* ---------- Нижняя панель на телефоне ---------- */
.mcta { background: rgba(13, 24, 66, .92); border-top: 1px solid var(--hair); }

/* ---------- Светлое полотно и разделы версии 2 ---------- */
/* одно полотно на программу, спикера и продукцию: Снег плавно переходит в Лёд и обратно, без полос */
.flow { position: relative; color: var(--body); background: linear-gradient(180deg, var(--snow) 0%, var(--snow) 24%, var(--ice) 44%, var(--ice) 60%, var(--snow) 82%, var(--snow) 100%); }
.block { padding-block: clamp(48px, 5vw, 88px); }   /* плотнее — решение владельца 09.10: каждый блок в один экран */
.block .wrap { max-width: 1416px; padding-inline: var(--gut); }
.block__head { margin: 0 0 clamp(24px, 2.6vw, 40px); max-width: 15em; font: 400 clamp(32px, 3.4vw, 54px)/1.06 var(--display); letter-spacing: -.012em; color: var(--navy); text-wrap: balance; }
.block__intro { max-width: 26em; margin: 0; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; color: var(--steel); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.split > * { min-width: 0; }

/* программа: темы с тонкими линейками и небольшими медными цифрами — это порядок дня */
.topics { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.topics li { counter-increment: t; display: grid; grid-template-columns: 54px 1fr; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.4; color: var(--navy); }
.topics li::before { content: counter(t); font: 400 19px/1 var(--display); color: var(--copper-dark); }
.topics li:last-child { border-bottom: 1px solid var(--line); }
.practice { display: grid; grid-template-columns: 54px 1fr; margin: 22px 0 0; }
.practice::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--copper); margin-top: 13px; }
.practice b { display: block; font: 400 clamp(20px, 1.6vw, 24px)/1.2 var(--display); color: var(--navy); }
.practice span span { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--steel); }

/* спикер: без своей полосы фона — полотно здесь само темнеет до Льда */
.speaker .split { grid-template-columns: 4fr 8fr; align-items: center; }
.speaker__photo { margin: 0; max-width: 400px; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: #DFE5F1; }
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker__name { margin: 0; font: 400 clamp(32px, 3.4vw, 54px)/1.06 var(--display); letter-spacing: -.012em; color: var(--navy); text-wrap: balance; }
.speaker__role { max-width: 24em; margin: 16px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--steel); }
.speaker__facts { list-style: none; margin: 28px 0 0; padding: 0; max-width: 30em; }
.speaker__facts li { padding: 12px 0; border-top: 1px solid #C9D2E6; font-size: 16px; color: var(--navy); }
.speaker__quote { margin: 32px 0 0; max-width: 28em; font: 400 clamp(20px, 1.8vw, 26px)/1.35 var(--display); color: var(--navy); }
.speaker__note { max-width: 26em; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #C9D2E6; font-size: 15.5px; line-height: 1.5; color: var(--steel); }

/* продукция: карточки в карусели на родной прокрутке с привязкой; карточка, видная не целиком, приглушена */
.goods__head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(24px, 2.6vw, 40px); }
.goods__head .block__head { margin: 0; }
.goods__head p { margin: 0 0 .6em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--steel); }
.rail { display: flex; gap: clamp(14px, 1.8vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--gut), calc((100vw - 1416px) / 2 + var(--gut))); scroll-padding-inline: max(var(--gut), calc((100vw - 1416px) / 2 + var(--gut))); }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: 6px; }
.card { flex: 0 0 clamp(220px, 19vw, 300px); min-width: 0; scroll-snap-align: start; transition: opacity .6s var(--out); }
.card__plate { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 2px; background: #fff; }
.card__plate img { width: 74%; height: auto; transition: scale 1.1s var(--out); }
.card:hover .card__plate img { scale: 1.05; }
.card__brand { margin: 14px 0 4px; font-size: 13.5px; color: var(--steel); }
.card__title { margin: 0; font: 400 clamp(19px, 1.5vw, 22px)/1.2 var(--display); color: var(--navy); }
.card__what { max-width: 22em; margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--steel); }
.js-rail .card:not(.is-near) { opacity: .45; }
.js-rail .card:not(.is-near) .card__plate img { scale: .94; }
.rail__nav { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.rail__btn { width: 48px; height: 48px; padding: 0; border: 1px solid #B9C4DE; border-radius: 50%; background: none; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.rail__btn::before { content: ''; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(-2px) rotate(-45deg); }
.rail__btn--prev::before { transform: translateX(2px) rotate(135deg); }
.rail__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.rail__btn[disabled] { opacity: .35; pointer-events: none; }
html:not(.js) .rail__btn, html:not(.js) .rail__bar { display: none; }   /* без скрипта лента листается сама, кнопки не нужны */
.rail__bar { flex: 1; max-width: 420px; height: 1px; position: relative; background: #C9D2E6; }
.rail__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 30%; background: var(--navy); transition: transform .3s linear, width .3s linear; }
.goods__more { margin-left: auto; }
.arrow-link--dark, .arrow-link--dark:hover { color: var(--navy); }
.arrow-link--dark:hover i { background: var(--navy); border-color: var(--navy); color: #fff; }
.arrow-link--side i::before { transform: translateX(-2px) rotate(-45deg); }

/* светлое полотно уходит в тёмный блок записи — волна знака */
.flow { padding-bottom: var(--edge); }
.flow__edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--edge); display: block; pointer-events: none; }
.flow__edge path { vector-effect: non-scaling-stroke; }

/* ---------- Запись: тёмный блок, слева условие и факты, справа форма без рамки ---------- */
.signup { position: relative; background: var(--navy); color: #fff; }
.signup__grid { grid-template-areas: 'head form' 'terms form'; grid-template-rows: auto 1fr; row-gap: 28px; }
.signup__head { grid-area: head; }
.signup__terms { grid-area: terms; align-self: start; }
.signup__form { grid-area: form; min-width: 0; }
.signup__title { margin: 0; font: 400 clamp(28px, 2.6vw, 40px)/1.1 var(--display); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.signup__intro { max-width: 26em; margin: 14px 0 0; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .8); }
.terms { margin: 0; border-top: 1px solid var(--hair); }
.terms div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 1.45; }
.terms dt { padding-top: 2px; font-size: 14px; color: var(--mist); }
.terms dd { margin: 0; }
.later { margin-top: 32px; }
.later__title { margin: 0 0 8px; font-size: 14px; color: var(--mist); }
.later li { display: flex; gap: 16px; padding: 6px 0; color: rgba(255, 255, 255, .85); }
.later li span:first-child { width: 110px; flex: none; color: #fff; }

.form { display: grid; gap: 18px; }
.form__title { margin: 0; font: 400 26px/1.25 var(--display); }
.form__error { margin: 0; padding: 12px 0 12px 16px; border-left: 2px solid var(--copper-light); color: #fff; font-size: 15px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { margin-bottom: 4px; font-size: 14px; color: var(--mist); }
.field input, .field select { width: 100%; height: 42px; padding: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .4); border-radius: 0; background: transparent; color: #fff; font: 400 17px/1.2 var(--text); -webkit-appearance: none; appearance: none; transition: border-color .25s, box-shadow .25s; }
.field select { padding-right: 24px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%23A9B6D6' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { color: var(--navy); }
.field input::placeholder { color: rgba(255, 255, 255, .4); }
.field input:focus, .field select:focus { outline: 0; border-bottom-color: var(--copper-light); box-shadow: 0 1px 0 var(--copper-light); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-bottom-color: #F2B8A8; }
.field__msg { margin-top: 6px; font-size: 13.5px; color: #F6C7B8; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .85); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: 2px; background: transparent; display: grid; place-items: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::after { content: ''; width: 11px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: #F2B8A8; box-shadow: 0 0 0 1px #F2B8A8; }
.check a { color: #fff; text-underline-offset: 3px; }
.check a:hover { color: var(--mist); }
.form__cond { margin: 0; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.signup .btn--light[disabled] { opacity: .6; cursor: progress; }
.done { display: grid; gap: 14px; align-content: start; padding-top: 8px; }
.done:focus { outline: 0; }
.done__title { margin: 0; font: 400 clamp(24px, 2.4vw, 30px)/1.3 var(--display); color: #fff; }
.done p { margin: 0; max-width: 26em; color: rgba(255, 255, 255, .8); }
.done .arrow-link { margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer; justify-self: start; }

/* тёмная запись переходит в светлый раздел волной знака */
.signup { padding-bottom: calc(clamp(48px, 5vw, 88px) + var(--edge)); }
.dark__edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--edge); display: block; pointer-events: none; }
.dark__edge path { vector-effect: non-scaling-stroke; }

/* о компании: светлый раздел, три опоры колонками через линейки, марки строкой текста */
.about { background: var(--snow); color: var(--body); }
.about__title { margin: 0 0 clamp(24px, 2.6vw, 40px); max-width: 20em; font: 400 clamp(28px, 3vw, 44px)/1.1 var(--display); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillars li { padding: 18px 24px 4px 0; }
.pillars li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pillars b { display: block; font: 400 clamp(22px, 1.9vw, 28px)/1.2 var(--display); color: var(--navy); }
.pillars span { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--steel); }
.about__brands { margin: clamp(28px, 3vw, 48px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); font: 400 clamp(20px, 1.8vw, 26px)/1.4 var(--display); color: var(--navy); }
.about__brands span { display: block; margin-bottom: 8px; font: 400 14px/1.4 var(--text); color: var(--steel); }

/* контакты: крупный телефон, строки через линейки, ссылки на карты; встроенной карты нет */
.contacts { background: var(--snow); color: var(--body); padding-top: 0; }
.contacts .wrap > .contacts__title { padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--line); }
.contacts__title { margin: 0 0 clamp(20px, 2vw, 32px); font: 400 clamp(28px, 3vw, 44px)/1.1 var(--display); color: var(--navy); }
.contacts__phone { display: inline-block; font: 400 clamp(28px, 2.4vw, 38px)/1.15 var(--display); color: var(--navy); text-decoration: none; white-space: nowrap; }
.contacts__phone:hover { color: var(--cobalt); }
.contacts__lead { max-width: 22em; margin: 16px 0 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: var(--steel); }
.terms--light { border-top-color: var(--line); }
.terms--light div { border-bottom-color: var(--line); color: var(--navy); }
.terms--light dt { color: var(--steel); }
.terms--light a { color: var(--navy); text-decoration: none; }
.terms--light a:hover { color: var(--cobalt); }
.contacts__links { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 36px; }

/* подвал: тёмный, спокойное завершение страницы */
.foot { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.55; padding-block: 44px 56px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 56px; }
.foot .wrap { max-width: 1416px; padding-inline: var(--gut); }
.foot p { margin: 0 0 6px; }
.foot__logo { display: block; width: auto; height: 30px; margin-bottom: 18px; }
.foot__legal { max-width: 34em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { color: rgba(255, 255, 255, .86); text-underline-offset: 3px; }
.foot a:hover { color: #fff; }

/* ---------- Невысокие экраны ноутбуков ---------- */
@media (min-width: 901px) and (max-height: 800px) {
  .top--over .top__in { height: 76px; }
  .hero__body { padding-top: 104px; padding-bottom: 26px; }
  .slide__title { font-size: min(6.5vw, 11vh); }
  .slide__title--promo { font-size: min(4.6vw, 8vh); }
  .kicker { margin-bottom: 16px; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 24px; }
  .hero-facts > div { padding-top: 16px; padding-bottom: 18px; }
  .hero { --edge: clamp(48px, 6vw, 84px); }
}

/* ---------- Планшет и телефон: своя композиция — лента сверху, текст под ней ---------- */
@media (max-width: 900px) {
  .top--over .top__nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .speaker .split { grid-template-columns: 1fr; }
  .speaker__photo { max-width: 420px; }
  .goods__head { grid-template-columns: 1fr; gap: 20px; }
  .card { flex-basis: min(74vw, 320px); }
  .rail__bar { display: none; }
  .rail__nav { flex-wrap: wrap; }
  .goods__more { margin-left: 0; flex-basis: 100%; margin-top: 10px; }
  .signup__grid { grid-template-areas: 'head' 'form' 'terms'; grid-template-rows: auto; }
  .block__head { margin-bottom: 24px; }
  .top--over .top__nav + .top__cta { margin-left: auto; }
  .hero__lines--wide { display: none; }
  .hero__lines--tall { display: block; inset: 0 0 auto auto; width: min(100%, 560px); height: auto; aspect-ratio: 390 / 258; overflow: visible; }
  .hero { min-height: 0; }
  .hero__body { margin-top: 0; padding-top: calc(min(100vw, 560px) * 258 / 390 + 6px); padding-bottom: 36px; }
  .hero__marks { top: calc(min(100vw, 560px) * 258 / 390 - 40px); bottom: auto; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (min-width: 641px) {
  .mcta { display: none !important; }
}
@media (max-width: 640px) {
  .top--over .top__in { height: 68px; gap: 14px; }
  .top--over .top__logo img { height: 26px; }
  .top--over .top__cta { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .top--over.is-fixed .top__in { height: 58px; }
  .top--over.is-fixed .top__logo img { height: 24px; }
  .hero__body { padding-bottom: 20px; }
  .kicker { font-size: 11px; letter-spacing: .17em; margin-bottom: 14px; }
  .slide__title { font-size: min(10.6vw, 46px); }
  .slide__title--promo { font-size: min(8.6vw, 36px); }
  .hero__lead { margin-top: 16px; font-size: 16.5px; line-height: 1.45; }
  .hero__cta { display: none; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 13px 0 14px !important; border-left: 0 !important; border-top: 0 !important; }
  .hero-facts > div + div { border-top: 1px solid var(--hair) !important; }
  .hero-facts dt { margin: 0; }
  .hero-facts dd { font-size: 19px; }
  .hero-facts small { margin-top: 3px; font-size: 14px; }
  .hero-facts__terms { order: 3; }   /* условие участия важнее спикера — оно на первом экране */
  .hero-facts__seats { display: block !important; margin-top: 3px; color: var(--copper-light) !important; }
  .hero-facts__speaker { order: 4; }
  .mcta .btn { min-height: 52px; }
  .has-mcta .cookie { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .cookie { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 4px 20px; font-size: 13.5px; }
  .cookie__btns { gap: 20px; }
  .cookie__btn { min-height: 36px; font-size: 14.5px; }
  .topics li, .practice { grid-template-columns: 40px 1fr; }
  .topics li { padding: 18px 0; }
  .row2 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillars li, .pillars li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .terms div { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .top--over .top__logo img { height: 22px; }
  .top--over .top__cta { padding: 0 12px; }
}
@media (max-width: 640px) and (max-height: 760px) {
  .hero__lead { display: none; }
  .hero-facts > div { padding: 8px 0 9px !important; }
  .hero__body { padding-top: calc(min(100vw, 560px) * 258 / 390 - 8px); }
  .kicker { margin-bottom: 10px; }
}
