/* ============================================================
   Pro-Data · Лендинг вебинара «Бюджет на ИИ в 2027 году»
   Цвета и шрифты — по брендбуку Pro-Data
   ============================================================ */

/* ---------- Шрифты (локальные файлы, без Google Fonts) ---------- */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/golos-text-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/golos-text-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/golos-text-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/golos-text-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/onest-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/onest-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
  --navy: #104860;          /* основной тёмный */
  --navy-deep: #0a3547;
  --navy-mid: #12516c;
  --teal: #2AB4BC;          /* акцент, кнопки */
  --teal-dark: #1499A0;     /* наведение, подписи */
  --teal-ink: #11868d;      /* бирюзовый текст на светлом фоне */
  --teal-soft: #e1f4f6;
  --light: #F7F9F9;
  --white: #ffffff;
  --ink: #16303d;           /* основной текст на светлом */
  --muted: #5a6d76;
  --line: #e3eaec;
  --error: #e0524d;

  --font-head: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(64px, 6vw, 88px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--navy); color: var(--white); }
.section--gradient { background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%); color: var(--white); }

/* Тонкие диагональные линии, как в макете */
.pattern { position: relative; isolation: isolate; }
.pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
}
.section--dark.pattern::before, .section--gradient::before { border-radius: inherit; }

.h2 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1.18; color: var(--navy); }
.section--dark .h2, .section--gradient .h2 { color: var(--white); }
.h2--xl { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.1; }
.accent { color: var(--teal); }
.nowrap { white-space: nowrap; }
/* без висячих одиночных слов в последней строке */
h1, h2, h3, .stat-card__note { text-wrap: balance; }
p, li, label, .checkbox__text { text-wrap: pretty; }
.br-lg { display: none; }
@media (min-width: 992px) { .br-lg { display: inline; } }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--white); --btn-bg-hover: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 0; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }
.btn--teal { box-shadow: 0 8px 24px -10px rgba(42,180,188,.6); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bg-hover: #e9f7f8; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bg-hover: var(--teal-soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--sm { min-height: 42px; padding: 9px 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.logo { display: inline-flex; color: var(--white); line-height: 0; }
.logo__svg { height: 34px; width: auto; }

/* ---------- Закреплённая шапка (только телефоны, см. адаптив) ---------- */
.sticky-bar { display: none; }

/* ---------- 1. Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 52%, var(--navy-mid) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.03) 0 1px, transparent 1px 72px);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 0; align-items: end;
  min-height: min(800px, 100svh); padding-top: 128px;
}
.hero__content { align-self: center; padding-bottom: 80px; max-width: 760px; padding-right: 24px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 11px; margin-bottom: 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #cfeff1; background: rgba(42,180,188,.08); border: 1px solid rgba(42,180,188,.45); border-radius: 999px;
}
.badge__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #ff5a5f; flex: none; }
.badge__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,90,95,.55);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; margin-bottom: 22px; }
.hero__lead { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 580px; margin-bottom: 30px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 34px; }
.hero__facts li { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--teal); }
.hero__facts strong { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.35; }
.hero__facts span { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.7); }

.hero__speaker { position: relative; z-index: 0; margin: 0; align-self: end; }
/* мягкое свечение за спикером — всегда точно за фото, на любой ширине экрана */
.hero__speaker::before {
  content: ""; position: absolute; z-index: -1; left: -45%; right: -45%; top: -10%; bottom: -20%;
  background: radial-gradient(closest-side, #166583 0%, #166583 45%, rgba(22,101,131,0) 100%);
  pointer-events: none;
}
.hero__speaker picture { display: block; }

/* Плашка спикера для телефонов */
.hero__host { display: none; align-items: center; gap: 14px; margin-bottom: 26px; padding: 10px 16px 10px 10px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.hero__host img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.hero__host p { display: flex; flex-direction: column; min-width: 0; }
.hero__host strong { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.3; }
.hero__host span { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.72); }
.hero__photo {
  width: 100%;
  /* мягко растворяем края фото в фоне */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 80%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 18%, #000 100%);
  mask-composite: intersect;
}
.name-card {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: max-content; white-space: nowrap;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--teal-dark); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
}
.name-card strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.25; }
.name-card span { font-size: 13px; color: rgba(255,255,255,.85); }

/* ---------- 2. Почему сейчас ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why__text .h2 { margin-bottom: 16px; }
.why__text p { font-size: 17px; line-height: 1.7; color: #3c515b; max-width: 600px; }

.stat-card {
  padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius-lg); color: var(--white);
  background: linear-gradient(150deg, #11506a 0%, var(--navy) 45%, var(--navy-deep) 100%);
  box-shadow: 0 30px 60px -30px rgba(16,72,96,.55);
  overflow: hidden;
}
.stat-card__value { font-family: var(--font-head); font-weight: 600; font-size: clamp(72px, 7vw, 100px); line-height: .9; letter-spacing: -.04em; color: var(--teal); margin-bottom: 14px; }
.stat-card__label { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.9); margin-bottom: 22px; }
.stat-card__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); margin-bottom: 24px; overflow: hidden; }
.stat-card__bar span { display: block; height: 100%; min-width: 18px; border-radius: inherit; background: var(--teal); }
.stat-card__note { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.35; margin-bottom: 14px; }
.stat-card__source { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.55); }

/* ---------- 3. Кому будет полезно ---------- */
.audience .h2 { margin-bottom: clamp(24px, 2.6vw, 36px); }
.audience__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.audience-card {
  display: flex; flex-direction: column;
  padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.audience-card:hover { border-color: rgba(42,180,188,.5); box-shadow: 0 18px 40px -24px rgba(16,72,96,.35); transform: translateY(-2px); }
.icon-box { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--teal-soft); }
.icon-box svg { width: 23px; height: 23px; fill: none; stroke: var(--teal-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* заголовок всегда занимает 2 строки — описания во всех карточках начинаются на одном уровне */
.audience-card h3 { margin-top: 24px; min-height: 2.6em; font-size: 18px; line-height: 1.3; color: var(--navy); margin-bottom: 8px; }
.audience-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
/* Если браузер умеет subgrid — строки иконок, заголовков и описаний общие для всех карточек ряда:
   высота строки заголовка подстраивается под самый длинный заголовок, без лишних пустот */
@supports (grid-template-rows: subgrid) {
  .audience-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .audience-card h3 { min-height: 0; }
}

/* ---------- 4. Что разберём ---------- */
.program__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.program__intro { position: sticky; top: 40px; }
.program__intro .h2 { margin-bottom: 16px; }
.program__intro p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 380px; }
.program__list { counter-reset: none; }
.program__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.program__list li:first-child { padding-top: 4px; }
.program__list li:last-child { border-bottom: 0; }
/* высота строки номера = высоте строки текста, поэтому они стоят ровно на одной линии */
.program__num { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--teal); font-variant-numeric: tabular-nums; }
.program__list p { font-family: var(--font-head); font-weight: 500; font-size: 18px; line-height: 26px; }

/* ---------- 5. Спикеры ---------- */
.speakers .h2 { margin-bottom: clamp(24px, 2.6vw, 36px); }
.speakers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.speaker-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: start; padding: 26px; border-radius: var(--radius-lg); background: var(--light); }
.speaker-card__body { display: flex; flex-direction: column; align-items: flex-start; }
.speaker-card__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--teal); }
.tag { display: inline-block; padding: 3px 10px; margin-bottom: 10px; font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--teal-dark); border-radius: 999px; }
.speaker-card h3 { font-size: 21px; line-height: 1.2; color: var(--navy); margin-bottom: 4px; }
.speaker-card__role { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--teal-ink); margin-bottom: 12px; }
.speaker-card p:last-child { font-size: 15px; line-height: 1.6; color: #4b5f68; }

/* ---------- 6. Форма ---------- */
.register { position: relative; overflow: hidden; }
.register::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255,255,255,.03) 0 1px, transparent 1px 72px);
}
.register__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.register__intro .h2 { margin-bottom: 16px; }
.register__intro p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 480px; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.92); }

.form-card { padding: clamp(24px, 2.6vw, 34px); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); scroll-margin-top: 24px; }
.form-card__title { font-size: 21px; line-height: 1.25; color: var(--navy); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; margin-bottom: 16px; }

.field { position: relative; }
.field input, .field select {
  width: 100%; height: 54px; padding: 22px 15px 7px;
  font: 400 16px/1.2 var(--font-body); color: var(--ink);
  background: var(--white); border: 1.5px solid #d6e0e3; border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { padding-right: 40px; cursor: pointer; }
.field--select::after {
  content: ""; position: absolute; right: 18px; top: 22px; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field label {
  position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px);
  font-size: 16px; line-height: 1.3; color: #7b8c94; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top; transition: transform .15s ease, color .15s ease;
}
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42,180,188,.16); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label { transform: translateY(-10px) scale(.78); color: var(--teal-ink); }
.field input:not(:focus):not(:placeholder-shown) + label,
.field select:not(:focus):valid + label { color: #7b8c94; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field.is-invalid input:focus, .field.is-invalid select:focus { box-shadow: 0 0 0 4px rgba(224,82,77,.14); }
.field__error { min-height: 0; font-size: 13px; line-height: 1.35; color: var(--error); }
.field__error:not(:empty) { margin-top: 6px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.consent { margin-bottom: 18px; }
.checkbox { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.45; color: #4b5f68; }
.checkbox input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.checkbox__box { flex: none; width: 20px; height: 20px; margin-top: 0; border: 1.5px solid #c3d0d4; border-radius: 5px; background: var(--white); transition: background-color .15s ease, border-color .15s ease; position: relative; }
.checkbox__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s ease; }
.checkbox input:checked + .checkbox__box { background: var(--teal); border-color: var(--teal); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 3px solid var(--teal); outline-offset: 2px; }
.consent.is-invalid .checkbox__box { border-color: var(--error); }
.checkbox__text a { color: var(--teal-ink); }

.turnstile:not(:empty) { margin-bottom: 16px; }

.btn__spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { font-size: 14px; line-height: 1.45; color: var(--error); text-align: center; }
.form-error:not(:empty) { margin-top: 12px; }

.form-success { text-align: center; padding: 16px 0 8px; outline: none; }
.form-success__icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--teal-soft); margin-bottom: 18px; }
.form-success__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--teal-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 26px; color: var(--navy); margin-bottom: 10px; }
.form-success p { font-size: 16px; line-height: 1.6; color: #4b5f68; max-width: 420px; margin: 0 auto 8px; }
.form-success__hint { font-weight: 500; color: var(--navy) !important; margin-top: 14px !important; }
.form-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---------- Подвал ---------- */
.site-footer { background: #0a3344; color: rgba(255,255,255,.75); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; min-height: 92px; padding-top: 22px; padding-bottom: 22px; }
.site-footer .logo__svg { height: 30px; }
.site-footer p { font-size: 14px; line-height: 1.5; }
.site-footer p a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.site-footer p a:hover { border-color: var(--teal); }

/* ============================================================
   Адаптив
   ============================================================ */

/* Ноутбуки */
@media (max-width: 1199px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); }
  .audience-card { padding: 26px 22px; }
  .speaker-card { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 24px; }
  .register__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; }
  .speaker-card__photo { width: 96px; height: 96px; }
}

/* Планшеты */
@media (max-width: 991px) {
  body { font-size: 16px; }
  .site-header__inner { min-height: 80px; }
  .logo__svg { height: 34px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; min-height: 0; padding-top: 120px; }
  .hero__content { padding-bottom: 72px; }
  .hero__lead { font-size: 17px; }
  .hero__facts { flex-direction: column; gap: 14px; }
  .name-card { bottom: 48px; padding: 12px 16px; }
  .name-card strong { font-size: 17px; }
  .name-card span { font-size: 13px; }

  .why__grid { grid-template-columns: 1fr; }
  .why__text p { font-size: 17px; max-width: none; }

  .audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .program__grid { grid-template-columns: 1fr; gap: 28px; }
  .program__intro { position: static; }
  .program__intro p { max-width: none; margin-bottom: 26px; }

  .speakers__grid { grid-template-columns: 1fr; gap: 16px; }
  .speaker-card { grid-template-columns: 104px minmax(0, 1fr); }
  .speaker-card__photo { width: 104px; height: 104px; }

  .register__grid { grid-template-columns: 1fr; gap: 36px; }
  .register__intro p { max-width: 600px; }
}

/* Узкие планшеты и крупные телефоны */
@media (max-width: 767px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: 104px; gap: 0; }
  .hero__content { padding-bottom: 56px; padding-right: 0; }
  .hero__facts { gap: 12px; margin-bottom: 26px; }
  .hero__speaker { display: none; }   /* большое фото — только на планшетах и компьютерах */
  .hero__host { display: flex; }

  /* Кнопка в верхней шапке на первом экране не нужна — есть большая кнопка ниже */
  .site-header .btn { display: none; }

  /* Закреплённая шапка: появляется, когда кнопка первого экрана уходит вверх */
  .sticky-bar {
    display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
    visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s;
  }
  .sticky-bar.is-visible { visibility: visible; pointer-events: auto; transition: visibility 0s; }
  .sticky-bar::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(10,53,71,.9);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 30px -20px rgba(0,0,0,.7);
    opacity: 0; transform: translateY(-100%);
    transition: opacity .3s ease, transform .3s ease;
  }
  .sticky-bar.is-visible::before { opacity: 1; transform: none; }
  .sticky-bar__inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .sticky-bar .logo { opacity: 0; transition: opacity .3s ease; }
  .sticky-bar.is-visible .logo { opacity: 1; }
  .sticky-bar .logo__svg { height: 26px; }
  .sticky-bar__cta { opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, background-color .2s ease; will-change: transform; }
  .sticky-bar.is-visible .sticky-bar__cta { opacity: 1; transform: none; }
  .sticky-bar__cta.is-white { --btn-bg: var(--white); --btn-fg: var(--navy); box-shadow: none; }

  .program__list li { grid-template-columns: 48px minmax(0, 1fr); padding: 18px 0; }
  .program__num { font-size: 18px; line-height: 25px; }
  .program__list p { font-size: 17px; line-height: 25px; }

  .speaker-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
}

/* Телефоны */
@media (max-width: 575px) {
  :root { --gutter: 20px; }
  .site-header__inner { min-height: 72px; }
  .logo__svg { height: 30px; }
  .btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

  .badge { font-size: 11.5px; letter-spacing: .1em; margin-bottom: 20px; }
  .hero__title { margin-bottom: 18px; }
  .hero__lead { font-size: 16px; margin-bottom: 26px; }
  .hero__facts strong { font-size: 16px; }
  .hero .btn--white { width: 100%; }

  .why__text p { font-size: 16px; }
  .stat-card__label { font-size: 16px; }

  .audience__grid { grid-template-columns: 1fr; gap: 12px; }
  .audience-card { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .icon-box { width: 48px; height: 48px; grid-row: span 2; margin-bottom: 0; }
  .icon-box svg { width: 24px; height: 24px; }
  .audience-card h3 { margin-top: 0; min-height: 0; font-size: 18px; margin-bottom: 4px; }
  .audience-card p { font-size: 15px; }

  .program .btn, .register .btn--block { width: 100%; }
  .program__list li { grid-template-columns: 42px minmax(0, 1fr); }
  .program__num { font-size: 17px; line-height: 23px; }
  .program__list p { font-size: 16px; line-height: 23px; }

  .speaker-card__photo { width: 104px; height: 104px; }
  .speaker-card h3 { font-size: 22px; }
  .speaker-card p:last-child { font-size: 15px; }

  .register__intro p { font-size: 17px; }
  /* на телефонах три плашки — ровной сеткой из трёх одинаковых плиток */
  .pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pills li { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 6px; border-radius: 10px; font-size: 13px; line-height: 1.3; }
  .form-card { border-radius: 16px; margin: 0 -4px; }
  .form-card__title { font-size: 21px; margin-bottom: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Очень узкие телефоны (iPhone SE 1-го поколения и т. п.) */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 30px; }
  .h2 { font-size: 27px; }
  .h2--xl { font-size: 30px; }
  .badge { font-size: 10.5px; letter-spacing: .08em; padding: 6px 12px 6px 10px; }
  .stat-card__value { font-size: 64px; }
  .form-card { padding: 20px 16px; }
  .pills li { font-size: 12px; }
}
