/* Coca-Cola HoReCa Forum 2026 – стили.
   Шрифт: Montserrat на всём сайте (решение заказчика 24.11), начертания 400 и 700, подключается с Google Fonts в index.html и menu.html.
   Прежняя Helvetica от организаторов лежит в assets/fonts и не используется.
   woff2 для современных браузеров, woff – запасной формат. Если файл шрифта у гостя не загрузится, Windows подставит Arial, а macOS/iOS – системную Helvetica.
   Начертаний два, поэтому жирность только 400 и 700. Заголовок целиком одной жирности.
   Цвет (комментарий клиента 18.11): красный вместо бордо (с 24.11 – единый #AF0000); айвори для текстовых блоков, золото – тонкие линии.
   На красном мелкий текст белый (золотой на ярком красном плохо читается), светлое золото – для линий и крупных цифр. */
:root {
  /* Красный на сайте один: #AF0000 (решение заказчика 24.11). Имена переменных прежние, значение общее. */
  --red: #AF0000; --red-deep: #AF0000; --red-dark: #AF0000; --red-text: #AF0000;
  --gold: #C9A227; --gold-light: #FFE6AD; --gold-text: #7A5C0E;
  --ivory: #F6F1E7; --ivory-deep: #EDE5D4;
  /* фоны блоков чередуются (решение заказчика 24.11): слоновая кость – тёмно-красный – слоновая кость … */
  --cream: #FDF9E9; --red-block: #AF0000;
  --ink: #1C1C1C; --ink-muted: #4A443B;
  --font-display: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-text: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container: 1200px; --gutter: clamp(16px, 4vw, 48px); --section-y: clamp(56px, 8vw, 112px);
  --nav-h: 64px; --radius: 2px; --radius-arch: 999px 999px 2px 2px; --line-gold: 1px solid var(--gold);
  --ease-curtain: cubic-bezier(.7, 0, .2, 1); --ease: cubic-bezier(.22, .61, .36, 1); --dur-curtain: 1.4s; --dur-hover: .2s;
  color-scheme: light;
}
/* На красных поверхностях линии светло-золотые; на айвори-карточках внутри них – обычное золото. */
.nav, .section--red, .poster, .menupage, .footer { --gold: var(--gold-light); --line-gold: 1px solid var(--gold-light); }
.speaker, .menucard, .modal__card, .venue__map, .scheme__open { --gold: #C9A227; --line-gold: 1px solid #C9A227; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }   /* место под полосу прокрутки занято всегда: страница не дёргается, когда вступление запирает прокрутку */
body { margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--ivory); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html.curtain-closed, body.modal-open, body.nav-open { overflow: hidden; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: var(--nav-h); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.container--narrow { max-width: 860px; }
.container--menu { max-width: 980px; }

/* ===== Типографика ===== */
.eyebrow { font-family: var(--font-text); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4; }
.eyebrow--gold { color: #fff; }
.eyebrow--text { color: var(--gold-text); }
.eyebrow--red { color: var(--red-text); }
.eyebrow--muted { color: var(--ink-muted); letter-spacing: .18em; }
.eyebrow--company { color: var(--gold-text); font-size: 10.5px; letter-spacing: .16em; }
.eyebrow--badge { display: inline-block; background: var(--red); color: #fff; padding: 3px 8px; border-radius: var(--radius); font-size: 10px; }
.h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.005em; line-height: 1.05; text-transform: uppercase; color: var(--ink); text-align: center; }
.h2--light { color: #fff; }
.h2--left { text-align: left; }
.h3 { font-size: clamp(17px, 1.9vw, 21px); font-weight: 700; line-height: 1.25; color: var(--ink); }
.lead strong { color: var(--red-text); font-weight: inherit; }
.lead { font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; font-weight: 400; color: var(--ink); }
.rule { border: 0; border-top: var(--line-gold); margin: 0; }
.section__head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section__sub { color: var(--ink-muted); font-size: 14px; }
.section__sub--light { color: rgba(255,255,255,.88); }

/* Разделитель с ромбом: линии растут из центра при появлении */
.divider { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 9px; }
.divider i { flex: none; width: 72px; height: 1px; background: var(--gold); transform-origin: right; transform: scaleX(1); transition: transform 1s var(--ease) .3s; }
.divider i + b + i, .divider b + i { transform-origin: left; }
.divider--left { margin-top: 14px; }
.divider--left i { width: 48px; }
/* ширина задана явно: Safari считал блок без линий (по flex-basis), и ромб с линиями уезжал вправо от центра */
.divider--center { margin: 6px auto 0; width: 171px; max-width: 100%; justify-content: center; }
.js .reveal .divider i, .js .divider.reveal i { transform: scaleX(0); }
.js .reveal.in .divider i, .js .divider.reveal.in i { transform: scaleX(1); }

/* ===== Кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font: 700 12px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--gold); border-radius: var(--radius); transition: background var(--dur-hover), color var(--dur-hover), transform var(--dur-hover), box-shadow var(--dur-hover); position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn--gold { background: var(--gold-light); color: var(--ink); }
.btn--gold:hover { background: #fff; }
.btn--outline { color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: translateY(1px); }

/* ===== Занавес: бархатные шторы рисуются на canvas (js/app.js), как на приглашении форума: драпировка сверху, подхват шнуром с кистью ===== */
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; display: none; transition: opacity .6s ease; }
.js .curtain { display: block; }
.curtain.is-fading { opacity: 0; }
.curtain.is-hidden { display: none; }
.curtain__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background: repeating-linear-gradient(90deg, #3d0000 0, #AF0000 2.6%, #d2372d 4.6%, #AF0000 6.6%, #3d0000 9.2%); }
.curtain.is-drawn .curtain__canvas { background: none; }

/* ===== Навигация ===== */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100; height: var(--nav-h); background: var(--red-deep); border-bottom: 1px solid rgba(255,230,173,.4); color: #fff; transition: box-shadow .3s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--red-deep); }
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nav__inner { max-width: var(--container); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.nav__brand { display: flex; align-items: center; height: 100%; }
.nav__brand img { height: 32px; width: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav__list a { font: 700 12px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #fff; opacity: .85; padding: 8px 0; position: relative; transition: opacity var(--dur-hover); }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover, .nav__list a.is-active { opacity: 1; color: var(--gold-light); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__meta { display: none; }
/* Переключатель языка RU / KZ */
.nav__list { margin-left: auto; }
.lang { display: inline-flex; flex: none; border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; }
.lang button { font: 700 11px/1 var(--font-text); letter-spacing: .12em; color: #fff; background: transparent; border: 0; padding: 0 11px; min-height: 34px; cursor: pointer; opacity: .85; transition: background var(--dur-hover), opacity var(--dur-hover); }
.lang button + button { border-left: 1px solid var(--gold); }
.lang button:hover { opacity: 1; background: rgba(255,255,255,.14); }
.lang button.is-active { background: var(--gold-light); color: var(--red-deep); opacity: 1; cursor: default; }
.nav__brand { flex: none; }
@media (min-width: 1121px) {
  .nav__list a { white-space: nowrap; }
  html[lang="kk"] .nav__list { gap: clamp(12px, 1.5vw, 22px); }          /* казахские названия разделов длиннее русских */
  html[lang="kk"] .nav__list a { letter-spacing: .12em; }
}
@media (max-width: 1120px) { .lang { margin-left: auto; } .lang button { min-height: 40px; padding: 0 12px; } .nav__inner { gap: 12px; } }
@media (max-width: 480px) {     /* страница меню на телефоне: логотип, переключатель и «На главную» в одну строку */
  .nav__back { padding: 0 10px; letter-spacing: .06em; }
  .nav__brand + .lang button { padding: 0 9px; }
  .nav__inner:has(.nav__back) .nav__brand img { height: 28px; }
}
@media (max-width: 359px) { .nav__back { font-size: 10px; padding: 0 8px; letter-spacing: .02em; } .nav__inner:has(.nav__back) .nav__brand img { height: 22px; } .nav__inner:has(.nav__back) { gap: 8px; } }
.nav__brand + .lang { margin-left: auto; }     /* страница меню: переключатель и «На главную» прижаты вправо */
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--gold); background: transparent; border-radius: var(--radius); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--gold-light); transition: transform .3s var(--ease), opacity .2s; }
@media (max-width: 1120px) {
  .nav__burger { display: flex; }
  .nav__list { position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--red-deep); padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 32px; overflow: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .3s, visibility .35s; }
  .nav__list a { font: 700 24px/1.1 var(--font-display); letter-spacing: .01em; padding: 20px 0; border-bottom: 1px solid rgba(255,230,173,.4); opacity: 1; transform: translateY(10px); transition: transform .5s var(--ease), color .2s; }
  .nav__list a::after { display: none; }
  .nav.is-open .nav__list a { transform: none; }
  .nav.is-open .nav__list a:nth-child(2) { transition-delay: .04s; } .nav.is-open .nav__list a:nth-child(3) { transition-delay: .08s; } .nav.is-open .nav__list a:nth-child(4) { transition-delay: .12s; } .nav.is-open .nav__list a:nth-child(5) { transition-delay: .16s; } .nav.is-open .nav__list a:nth-child(6) { transition-delay: .2s; } .nav.is-open .nav__list a:nth-child(7) { transition-delay: .24s; }
  .nav__meta { display: block; margin-top: 28px; font: 700 11px/1.6 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
  .nav.is-open .nav__list { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero { --hero-bg: #FDF9E9; position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--ink); overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 56px) max(var(--gutter), env(safe-area-inset-left, 0px)) 64px max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--hero-bg); }   /* слоновая кость RGB 253-249-233 – цвет, который задал заказчик */
/* прожектор за курсором: готовый круг, двигается только transform (без перерисовки) */
.hero__spot { position: absolute; left: 0; top: 0; width: 840px; height: 840px; margin: -420px 0 0 -420px; border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 68%); transform: translate3d(50vw, 300px, 0); }
.stage-lit .hero__spot { opacity: 1; }
/* золотые рамки сцены */
.hero::after { content: ""; position: absolute; inset: 0 clamp(16px, 9vw, 150px); border-left: 1px solid rgba(255,230,173,.5); border-right: 1px solid rgba(255,230,173,.5); pointer-events: none; z-index: 0; }
.hero__dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mote { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #C9A227; opacity: 0; animation: mote var(--d) linear var(--delay) infinite; }
@keyframes mote { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 18% { opacity: var(--o); } 82% { opacity: var(--o); } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0); } }
/* лучи софитов: мягкий конус рисуется один раз коническим градиентом и стоит неподвижно (постоянное движение заставляло пересобирать кадр 60 раз в секунду) */
.beam { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease .3s; transform-origin: 9% -6%;
  background: conic-gradient(from 146deg at 9% -6%, rgba(201,162,39,0) 0deg, rgba(201,162,39,.10) 6deg, rgba(201,162,39,.10) 9deg, rgba(201,162,39,0) 17deg, rgba(201,162,39,0) 360deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 50%, transparent 86%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 50%, transparent 86%);
  transform: rotate(1deg); }
.beam--r { transform: scaleX(-1) rotate(1deg); }
.stage-lit .beam { opacity: 1; }
/* первый экран ушёл из вида или вкладка скрыта: фоновые анимации стоят */
.hero.is-away .mote { animation-play-state: paused; }
.wing { position: absolute; top: 0; bottom: 0; width: clamp(16px, 9vw, 150px); z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 16%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35)), repeating-linear-gradient(90deg, #3d0000 0, #AF0000 9px, #d2372d 17px, #AF0000 25px, #3d0000 34px);
  box-shadow: inset 0 -60px 100px rgba(0,0,0,.4); }
.wing--l { left: 0; }
/* на телефоне кулис по бокам нет: экран узкий, после раскрытия занавеса сцена открыта целиком */
@media (max-width: 880px) { .wing, .hero::after { display: none; } }
.wing--r { right: 0; }
/* неподвижные бархатные шторы первого экрана (рисует js/app.js). Когда они есть, плоские кулисы и золотые линии рамы не нужны */
.hero__drapes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; display: none; }
.has-drapes .hero__drapes { display: block; }
.has-drapes .hero .wing, .has-drapes .hero::after { display: none; }
/* на узком экране шторы висят в полях страницы, поэтому поля первого экрана шире обычных: карточки и отсчёт не заходят на ткань */
@media (max-width: 880px) { .has-drapes .hero { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.hero__inner { position: relative; z-index: 3; display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 760px; }
/* Логотип. Класс is-final ставит js, когда цилиндр готов. */
/* --lw – ширина логотипа на поверхности цилиндра, --rk – радиус цилиндра в долях этой ширины.
   Чем меньше --rk, тем большую часть окружности занимает логотип (при .4 – около 143° из 180°) и тем меньше разрыв между логотипами.
   Цилиндр невидим: есть только логотипы, изогнутые по его поверхности. */
.logo3d { --lw: min(76vw, 410px); --rk: .4; --R: calc(var(--lw) * var(--rk)); --n: 18; --arc: calc(var(--R) * 3.14159); --w: calc(var(--arc) / var(--n)); --H: calc(var(--lw) / 1.106);
  position: relative; z-index: 2; display: block; width: var(--lw); aspect-ratio: 1200 / 1085; max-width: 100%; }
.logo3d__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .logo3d__fallback { display: none; }
/* Цилиндр: 36 узких прозрачных полос стоят по окружности радиуса --R, каждая показывает свой кусок логотипа.
   Ось отодвинута назад на --R, поэтому обращённая к зрителю часть логотипа имеет натуральный размер. */
.ring3d { position: absolute; inset: 0; display: block; perspective: 1600px; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.logo3d.is-final .ring3d { opacity: 1; }
.ring3d.is-gl { perspective: none; }
.ring3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ring3d__tilt, .ring3d__spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: block; transform-style: preserve-3d; }
.ring3d__tilt { transform: translateZ(calc(var(--R) * -1)); }
.ring3d__spin { left: 0; top: 0; }
/* покой: пауза лицом к зрителю, мягкий разгон, затем ровное вращение по часовой стрелке (вид сверху) */
.logo3d.is-final .ring3d__spin { animation: ring-start 2.5s cubic-bezier(.42, 0, 1, 1) 1.2s both, ring-spin 15s linear 3.7s infinite; }
@keyframes ring-start { from { transform: rotateY(0deg); } to { transform: rotateY(-34.8deg); } }
@keyframes ring-spin { from { transform: rotateY(-34.8deg); } to { transform: rotateY(-394.8deg); } }
.hero.is-away .ring3d__spin { animation-play-state: paused; }
.ring3d__spin i { position: absolute; left: calc(var(--w) / -2); top: calc(var(--H) / -2); width: calc(var(--w) + .8px); height: var(--H);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(calc(var(--a) * 1deg)) translateZ(var(--R));
  background: var(--img) calc((var(--arc) - var(--iw)) / 2 - var(--i) * var(--w)) center / var(--iw) var(--ih) no-repeat; }
.ring3d__spin i.f0 { --img: url("../assets/logo/horeca-forum-2026-red.png"); --iw: var(--lw); --ih: var(--H); }
.ring3d__spin i.f1 { --img: url("../assets/logo/cci-color.png"); --iw: calc(var(--lw) * .94); --ih: calc(var(--lw) * .94 / 1.779); }
.hero__title { font-size: clamp(17px, 2.4vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: .01em; color: var(--ink); max-width: 100%; }
@media (min-width: 640px) { .hero__line { white-space: nowrap; } }
.hero__line { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(1.5deg); filter: blur(4px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s; transition-delay: calc(.25s + var(--i) * 90ms); }
.logo-done .hero__title .w { opacity: 1; transform: none; filter: none; }
.hero__title em { font-style: normal; font-weight: inherit; color: var(--red-text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line-gold); width: 100%; max-width: 620px; }
.facts__cell { padding: 14px 10px; display: grid; gap: 4px; justify-items: center; }
.facts__cell + .facts__cell { border-left: var(--line-gold); }
.facts dt { font: 700 10px/1.4 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); }
.facts dd { font: 700 clamp(15px, 1.7vw, 18px)/1.25 var(--font-display); color: var(--ink); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts__cell + .facts__cell { border-left: 0; border-top: var(--line-gold); } }
.countdown { display: grid; gap: 14px; justify-items: center; width: 100%; max-width: 560px; }
.countdown__eyebrow { color: var(--red-text); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.countdown__cell { border-top: var(--line-gold); padding-top: 12px; display: grid; gap: 4px; justify-items: center; }
.countdown__cell b { display: block; font: 700 clamp(34px, 6.4vw, 54px)/1 var(--font-display); letter-spacing: -.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.countdown__cell b.tick { animation: flip .45s var(--ease); }
@keyframes flip { 0% { transform: translateY(-40%) scaleY(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.countdown__cell span { font: 700 10px/1.4 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.countdown__note { font-size: 12px; color: var(--ink-muted); }
.countdown.is-live .countdown__cell b { color: var(--red-deep); }
.hero .btn { margin-top: 8px; }
/* на светлом фоне кнопка красная, подпись над логотипом – тёмное золото */
.hero .btn--outline { background: var(--red); border-color: var(--red); color: #fff; }
.hero .btn--outline:hover { filter: brightness(.86); }
.hero .eyebrow--gold { color: var(--gold-text); }

/* ===== Секции ===== */
.section { padding-block: var(--section-y); position: relative; }
/* Класс секции задаёт фон и цвета текста на нём: --fg основной текст, --fg-muted приглушённый, --label мелкие подписи.
   Какой блок светлый, а какой красный, расставляет js/app.js по порядку (чередование), поэтому цвета не привязаны к конкретному блоку. */
.section--ivory { background: var(--cream); --fg: var(--ink); --fg-muted: var(--ink-muted); --label: var(--gold-text); }
.section--ivory-deep { background: var(--ivory-deep); }
.section--red { background: var(--red-block); color: #fff; --fg: #fff; --fg-muted: rgba(255,255,255,.88); --label: #fff; }
.speaker, .menucard, .modal__card { --fg: var(--ink); --fg-muted: var(--ink-muted); --label: var(--gold-text); }
.section .h2 { color: var(--fg); }
.section .section__sub { color: var(--fg-muted); }
.section__head > .eyebrow, .about__head > .eyebrow, .venue__info > .eyebrow, .venue__how > .eyebrow { color: var(--label); }
/* текст на тёмно-красном блоке */
.section--red .lead { color: #fff; }
.section--red .lead strong { color: var(--gold-light); }
/* Логотип форума в начале текста «О форуме» (на месте названия): стоит в строке, выше букв */
.lead__logo { display: inline-block; vertical-align: middle; height: 2.6em; margin: -.2em .1em 0 0; }
.lead__logo img { display: block; height: 100%; width: auto; }
.lead__logo-w, .section--red .lead__logo-r { display: none; }
.section--red .lead__logo-w { display: block; }
.section--red .about__text { color: rgba(255,255,255,.92); }
/* кнопки на светлом блоке: основная красная, вторая – красный контур */
.section--ivory .btn--gold { background: var(--red); border-color: var(--red); color: #fff; }
.section--ivory .btn--gold:hover { filter: brightness(.86); }
.section--ivory .btn--outline { color: var(--red-text); border-color: var(--red); }
.section--ivory .btn--outline:hover { background: rgba(175,0,0,.08); }

/* О форуме */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 64px; }
.about__head { display: grid; gap: 10px; align-content: start; justify-items: start; }
.about__head .h2 { text-align: left; }
.about__body { display: grid; gap: 22px; max-width: 62ch; }
.about__text { display: grid; gap: 16px; color: var(--ink); font-size: 16px; }
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; border-top: var(--line-gold); padding-top: 28px; margin-top: 12px; }
.pillars li { display: grid; gap: 6px; align-content: start; }
.pillars__num { font: 700 17px/1 var(--font-display); letter-spacing: .06em; color: var(--red); }
.pillars p { color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
@media (min-width: 880px) { .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }

/* Программа: таймлайн, линия прорисовывается */
.timeline { position: relative; display: grid; gap: 8px; max-width: 760px; margin: 0 auto; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 95px; top: 10px; bottom: 10px; width: 2px; background: var(--gold); transform-origin: top; transform: scaleY(0); transition: transform 1.8s var(--ease) .2s; }
.js .timeline.in::before { transform: scaleY(1); }
.tl { display: grid; grid-template-columns: 76px 40px minmax(0, 1fr); align-items: start; padding: 14px 0; }
.tl__time { display: grid; justify-items: end; gap: 1px; font: 700 18px/1.25 var(--font-display); color: var(--red-text); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl__time b { font: inherit; }
.tl__time span { font: 400 12px/1.3 var(--font-text); color: var(--ink-muted); }
.tl__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--cream); justify-self: center; margin-top: 6px; position: relative; }
.tl__dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; transform: scale(.4); }
.tl.in .tl__dot::after, .reveal.in .tl .tl__dot::after { animation: ping 1.4s var(--ease) calc(var(--i) * 120ms + .4s) 1; }
@keyframes ping { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.tl--break .tl__dot { background: var(--ivory); }
.tl--break .tl__body .h3 { justify-self: start; background: var(--red); color: #fff; padding: 6px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.tl__body { display: grid; gap: 5px; padding-left: 4px; }
/* строка без времени: продолжение предыдущего пункта (второй выступающий в том же слоте) */
.tl--cont { padding-top: 0; margin-top: -10px; }
.tl__body .h3 { font-size: clamp(17px, 1.9vw, 20px); }
/* под именем: должность и компания (вторая строка), ниже тема (третья строка) */
.tl__role { font-size: 15px; color: var(--ink); line-height: 1.4; }
.tl__meta { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 560px) {
  .timeline::before { left: 73px; }
  .tl { grid-template-columns: 58px 32px minmax(0, 1fr); }
  .tl__time { font-size: 15px; }
  .tl__time span { font-size: 11px; }
}

/* Арка для фото */
.arch { width: 120px; aspect-ratio: 3/4; border-radius: var(--radius-arch); overflow: hidden; background: var(--ivory-deep); border: 1px solid var(--gold); position: relative; flex: none; max-width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--empty { display: grid; place-content: center; justify-items: center; gap: 6px; padding-top: 22%; background: var(--red); }   /* тот же ровный красный, что за спикерами на фото */
.arch--empty .eyebrow { color: #fff; }
.arch--empty b { font: 700 26px/1 var(--font-display); color: #fff; letter-spacing: .02em; }
.arch--lg { width: 240px; }
.arch--lg b { font-size: 40px; }
.arch--poster { width: min(100%, 170px); border-color: var(--gold); }
.arch--poster b { color: var(--gold-light); font-size: 48px; }
.arch--poster .eyebrow { color: #fff; }

/* Спикеры: карточки без анимации (просьба клиента) – только тень при наведении */
.speakers { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
/* Ровно 7 карточек в три колонки легли бы 3+3+1 – последняя висела бы одна. Ставим 2+3+2 (класс speakers--n7 вешает js/app.js по числу карточек). */
@media (min-width: 1024px) {
  .speakers--n7 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1102px; margin-left: auto; margin-right: auto; }
  .speakers--n7 .speaker { grid-column: span 2; max-width: none; }
  .speakers--n7 .speaker:nth-child(1), .speakers--n7 .speaker:nth-child(6) { grid-column: 2 / span 2; }
}
.speaker { flex: 1 1 300px; max-width: 354px; }
.speaker .arch { width: 100px; }
.speaker .arch--empty b { font-size: 24px; }
.speaker__id .h3 { overflow-wrap: break-word; }
.speaker__note { color: var(--ink-muted); }
/* логотип компании вместо названия: вписывается в рамку 150×36, прижат влево; пропорции у логотипов разные (от квадрата до длинной надписи) */
/* 48 px, а не 36: на экранах обычной плотности (1 точка на пиксель) мелкие детали логотипов иначе слипаются */
.speaker__logo { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-top: 4px; }
.speaker__logo--lg { height: 58px; max-width: min(320px, 100%); margin-top: 2px; }
.speaker { position: relative; text-align: left; background: var(--ivory); color: var(--ink); border: 0; border-radius: var(--radius); padding: 22px 22px 20px; font: inherit; cursor: pointer; display: grid; gap: 16px; align-content: start; transition: box-shadow .3s; overflow: hidden; }
.speaker:hover, .speaker:focus-visible { box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.speaker__top { display: flex; gap: 18px; align-items: flex-start; }
.speaker__id { display: grid; gap: 4px; min-width: 0; }
.speaker__id .h3 { font-size: 19px; }
.speaker__role { font-size: 13px; color: var(--ink-muted); }
.speaker__topic { border-top: var(--line-gold); padding-top: 14px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.speaker__more { font: 700 11px/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }

/* Афиша ведущего */
.poster { --pfg: #fff; --pname: #fff; --pkick: #fff; position: relative; background: var(--red); color: #fff; border: var(--line-gold); padding: clamp(28px, 5vw, 64px); display: grid; gap: 32px; align-items: center; justify-items: center; box-shadow: 0 30px 60px rgba(74,10,20,.25); }
/* на красном блоке афиша светлая: тёмный текст, красное имя, обычное золото */
.section--red .poster { background: var(--ivory); color: var(--ink); --pfg: var(--ink); --pname: var(--red); --pkick: var(--gold-text); --gold: #C9A227; --line-gold: 1px solid #C9A227; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
/* афиша с горизонтальным фото (группа): прямоугольная рамка 3:2 вместо арки */
.arch--wide { width: min(100%, 680px); aspect-ratio: 3 / 2; border-radius: var(--radius); }
/* на любом экране фото сверху, текст под ним по центру (на десктопе тоже) */
.poster.poster--wide { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; }
.poster--wide .poster__body { text-align: center; justify-items: center; gap: 18px; }
/* «Хедлайнер вечера» – жирным текстом красного сайта, без плашки (на красной афише остаётся белым) */
.poster--wide .poster__kicker { font-weight: 700; font-size: clamp(15px, 1.7vw, 20px); letter-spacing: .2em; line-height: 1.2; }
.section--red .poster--wide .poster__kicker { color: var(--red); }
.poster__frame { position: absolute; inset: 10px; border: 1px solid var(--gold); pointer-events: none; transform: scale(.985); opacity: 0; transition: transform 1.2s var(--ease) .3s, opacity 1s .3s; }
.reveal.in .poster__frame, .poster.in .poster__frame { transform: none; opacity: 1; }
.poster__body { display: grid; gap: 14px; max-width: 56ch; text-align: center; justify-items: center; }
.poster__kicker { font: 400 clamp(14px, 1.5vw, 17px)/1.2 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--pkick); }
.poster__name { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--pname); }
.poster__role { font-size: 17px; font-weight: 400; color: var(--pfg); }
.poster__text { display: grid; gap: 12px; font-size: 16px; color: var(--pfg); }
@media (min-width: 760px) { .poster { grid-template-columns: 170px minmax(0, 1fr); gap: 40px; justify-items: start; } .poster__body { text-align: left; justify-items: start; } }

/* Меню */
.menucard { position: relative; background: var(--ivory); border: var(--line-gold); outline: 1px solid var(--gold); outline-offset: -10px; padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px); box-shadow: 0 24px 60px rgba(74,10,20,.12); }
.menucard .section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.menucard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 56px; }
.menucat__title { font: 700 clamp(14px, 1.5vw, 16px)/1.2 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--red-text); text-align: center; margin-bottom: 18px; }
.menucat li { display: grid; gap: 2px; text-align: center; padding: 12px 0; border-bottom: 1px solid var(--gold); }
.menucat li:last-child { border-bottom: 1px solid var(--gold); }
.menucat li b { font: 700 16px/1.3 var(--font-display); color: var(--ink); }
.menucat li span { font-size: 13px; color: var(--ink-muted); }
.menucard__note { text-align: center; font-size: 12px; color: var(--ink-muted); margin-top: 40px; }
.menucard--teaser { max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 24px; text-align: center; }
.menucard--teaser .section__head { margin-bottom: 0; }
.menucard__teaser { color: var(--ink-muted); max-width: 44ch; }
.btn--dark { background: var(--red); color: #fff; border-color: var(--red); }
.btn--dark:hover { filter: brightness(.86); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 11px; }
/* отдельная страница «Банкетное меню» */
.menupage { position: relative; overflow: hidden; isolation: isolate; min-height: 100svh; color: #fff;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(28px, 6vw, 72px)) 0 clamp(40px, 7vw, 88px);
  background: var(--red); }
.menupage .wing { z-index: 0; }
.menupage .container { position: relative; z-index: 1; max-width: 860px; }
.menupage .menucard { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.menupage h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -.01em; line-height: 1.05; text-transform: uppercase; color: var(--ink); text-align: center; }
.menulist { display: grid; gap: clamp(28px, 4vw, 40px); max-width: 600px; margin: 0 auto; }
.menulist .menucat li { font-size: 16px; line-height: 1.5; color: var(--ink); padding: 14px 0; text-wrap: balance; }
.menucat__allergens { font-size: 13px; line-height: 1.4; color: var(--ink-muted); margin-top: 2px; }   /* «Аллергены: …» под названием блюда */
.menupage__back { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 48px); }
.nav__back { font: 700 11px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #fff; border: 1px solid var(--gold); border-radius: var(--radius); padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav__back:hover { background: rgba(255,255,255,.14); }
@media (prefers-reduced-motion: reduce) { .menupage .menucard { animation: none; } }

/* Локация */
.venue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: stretch; }
.venue__info { display: grid; gap: 14px; align-content: start; }
.venue__info .h2 { margin-bottom: 8px; }
.venue__rows { display: grid; border-top: var(--line-gold); }
.venue__rows div { display: grid; gap: 4px; padding: 14px 0; border-bottom: var(--line-gold); }
.venue__rows dt { font: 700 10px/1.4 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.venue__rows dd { color: var(--fg); font-size: 15px; }
.venue__name { font: 700 20px/1.25 var(--font-display) !important; }
.venue__actions { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
/* Montserrat шире Helvetica: «Google Maps» на телефоне не должна переноситься на вторую строку */
.venue__actions .btn { padding-inline: 10px; letter-spacing: .12em; white-space: nowrap; }
.venue--solo { grid-template-columns: minmax(0, 1fr) !important; }
.venue--solo .venue__info { max-width: 620px; }
.venue__how { display: grid; gap: 12px; align-content: start; }
.venue__map { min-height: 360px; border: var(--line-gold); position: relative; overflow: hidden; background: var(--ivory-deep); }
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map { position: absolute; inset: 0; background: linear-gradient(rgba(201,162,39,.18) 1px, transparent 1px) 0 0/40px 40px, linear-gradient(90deg, rgba(201,162,39,.18) 1px, transparent 1px) 0 0/40px 40px, var(--ivory-deep); }
.map__road { position: absolute; background: var(--ivory); box-shadow: 0 0 0 1px rgba(255,230,173,.4); }
.map__road--a { width: 26px; height: 130%; left: 42%; top: -15%; transform: rotate(14deg); }
.map__road--b { width: 16px; height: 130%; left: 24%; top: -15%; transform: rotate(-70deg); }
.map__pin { position: absolute; left: 52%; top: 48%; width: 22px; height: 22px; transform: translate(-50%, -100%); }
.map__pin::before { content: ""; position: absolute; inset: 0; background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.map__pin i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; background: var(--ivory); border-radius: 50%; }
.map__pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 40px; height: 40px; margin: -14px 0 0 -20px; border-radius: 50%; border: 1px solid var(--red); animation: ping 2s var(--ease) infinite; }
.map__label { position: absolute; left: 52%; top: 48%; transform: translate(-50%, -190%); background: var(--ivory); border: 1px solid var(--gold); padding: 6px 12px; font: 700 13px/1 var(--font-display); color: var(--ink); white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.map__open { position: absolute; left: 16px; bottom: 16px; background: var(--ivory); color: var(--ink); border: 1px solid var(--gold); padding: 10px 14px; font: 700 11px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
@media (min-width: 880px) { .venue { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; } .venue__map { min-height: 440px; } }

.scheme__open { position: relative; display: block; padding: 0; border: var(--line-gold); background: var(--ivory); cursor: zoom-in; overflow: hidden; }
.scheme__open img { width: 100%; height: auto; display: block; }
.scheme__zoom { position: absolute; right: 12px; bottom: 12px; background: var(--ivory); color: var(--ink); border: 1px solid var(--gold); padding: 9px 12px; font: 700 11px/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; }
.scheme__caption { font-size: 14px; color: var(--fg-muted); }
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(24,0,2,.93); display: grid; place-items: center; padding: 16px; overflow: auto; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1600px); height: auto; border: var(--line-gold); background: var(--ivory); }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }

/* Футер */
.footer { background: var(--red-block); color: rgba(255,255,255,.88); padding-block: 40px 32px; }
/* подвал идёт сразу за красным блоком: тонкая линия отделяет его */
.footer--edge { border-top: 1px solid rgba(255,230,173,.4); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,230,173,.4); }
.footer__logo { width: 150px; height: auto; }
.footer__org { display: flex; align-items: center; gap: 14px; }
.footer__cci { height: 44px; width: auto; }
.footer__copy { font-size: 12px; padding-top: 16px; }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(24,0,2,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal__card { position: relative; background: var(--ivory); color: var(--ink); border: var(--line-gold); outline: 1px solid var(--gold); outline-offset: -8px; width: min(100%, 800px); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(24px, 4vw, 48px); display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); transform: translateY(18px) scale(.98); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.modal.is-open .modal__backdrop, .modal.is-open .modal__card { opacity: 1; }
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid var(--gold); background: var(--ivory); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; border-radius: var(--radius); z-index: 1; }
.modal__close:hover { background: var(--gold); color: var(--ink); }
.modal__photo { display: flex; justify-content: center; align-items: flex-start; }   /* без растягивания по высоте окна: иначе фото обрезается в узкую полосу */
.modal__body { display: grid; gap: 10px; min-width: 0; }
.modal__name { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.015em; }
.modal__role { color: var(--ink-muted); font-size: 15px; }
.modal__topic { font: 700 clamp(17px, 2vw, 21px)/1.3 var(--font-display); }
.modal__bio { font-size: 15px; color: var(--ink); }
.modal__body .rule { margin: 8px 0; }
@media (min-width: 700px) { .modal__card { grid-template-columns: 240px minmax(0, 1fr); width: min(100%, 860px); } .modal__photo { justify-content: flex-start; } }

/* ===== Появление ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal--stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal--stagger.in > *, .js .reveal.in .reveal--stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal--stagger > *, .hero__title .w, .poster__frame, .divider i { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important; }
  .js .timeline::before { transform: none; }
  .beam, .mote, .map__pin::after, .countdown__cell b.tick { animation: none; }
  .logo3d.is-final .ring3d__spin { animation: none; }
  .curtain { display: none; }
}
