/* ==========================================================================
   Страница встречи на телефоне
   Подключается только из weekly.html и только до 760 px, поэтому компьютер и
   страницы спикеров эти правила не задевают: у /chursin/ те же блоки, но свой
   телефонный вид в weekly.css.

   Страница — один вечер в трёх светах, а не семь разноцветных блоков подряд:
     зал     — тёмный: спикеры, отзывы, кто организует;
     день    — бумага: кому подойдёт, фото, кто приходит, вопросы;
     кнопка  — оранжевый: регистрация, весь экран цвета главной кнопки.
   Оранжевый здесь значит «регистрация». Больше ничего.

   Порядок блоков задаёт order у main: человек из рекламы решает за полминуты,
   и на телефоне форма стояла на тринадцатом экране. С ноября 2026 компьютер
   оформлен так же, его вид в weekly-desk.css. Тексты правятся в weekly.html.
   ========================================================================== */

/* Шрифт свой, а не с Google: заголовок первого экрана подогнан по ширине экрана,
   и подмена шрифта разъехалась бы именно там. Узкий нужен из-за слова
   «предпринимателей»: в Onest оно упирается в 46 px, а здесь выходит 60 px. */
@font-face {
  font-family: "Sofia XC"; font-style: normal; font-weight: 600 900; font-display: swap;
  src: url("./fonts/sofia-xc-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia XC"; font-style: normal; font-weight: 600 900; font-display: swap;
  src: url("./fonts/sofia-xc-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gut: 18px;
  --hall: #170e09;
  --display: "Sofia XC", "Arial Narrow", "Roboto Condensed", sans-serif;
  /* Сотая доля ширины кадра. От неё считаются кегли первого экрана, поэтому длинное
     слово в заголовке встаёт на любом телефоне. Шире 560 px кадр больше не растёт. */
  --u: min(1vw, 5.6px);
}

[id] { scroll-margin-top: 14px; }
body { background: var(--paper); }
main { display: flex; flex-direction: column; }
.hero-bill { order: 1; }
#next { order: 2; }
.proof { order: 3; }
.fit { order: 4; }
.event-gallery { order: 5; }
.people { order: 6; }
.faq { order: 7; }
.register { order: 8; }
.extras { order: 9; }

/* Движение на странице одно — свет загорается на первом экране. Появление каждого
   блока при прокрутке на телефоне только задерживает чтение. */
.js [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }

/* --- типографика ------------------------------------------------------------
   Узкий шрифт только в заголовках, текст остаётся в Onest. */
h2, .talks__title, .fit__title h2, .people h2, .trust__title, .faq h2, .register h2, .event-gallery h2 {
  margin: 0 0 16px; font-family: var(--display);
  font-size: clamp(42px, 12.6vw, 56px); line-height: .96; font-weight: 800; letter-spacing: 0;
}
.accent { color: inherit; }
.label { display: none; }

/* Текст на оранжевом и в кнопках тёмный: белый на этом цвете даёт контраст 3:1. */
.button { color: var(--ink); justify-content: center; gap: 0; }
.button .arr { display: none; }
.button:hover { color: var(--ink); }

/* --- шапка ------------------------------------------------------------------
   Лежит на кадре и уезжает вместе с ним: дату и кнопку держит .dock, а закреплённая
   шапка отбирала у экрана телефона 66 px. */
.header, .header.is-stuck {
  position: absolute; left: 0; right: 0; top: 0;
  color: var(--paper); background: none; border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.header__inner, .header.is-stuck .header__inner { height: 64px; }
.brand img { width: 46px; height: 40px; mix-blend-mode: normal; }
.header .brand__name b { color: inherit; }
.burger { margin-right: -10px; width: 44px; height: 44px; }
.burger i::before, .burger i::after { background: var(--paper); }
.header nav { padding: 0 var(--gut) 10px; background: var(--hall); border-bottom: 0; box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
.header nav a { border-top-color: var(--line-inv); }
.header__cta { display: none; }
/* На тёмном оранжевая рамка фокуса сливается с кнопкой, поэтому там она светлая. */
.header a:focus-visible, .hero-bill a:focus-visible, .proof a:focus-visible, .burger:focus-visible, .chat__feed:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.event-gallery__grid:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* --- первый экран: спикер перед полным залом ---------------------------------
   Иван Чурсин со спины, зал смотрит на него. Кадр короче экрана и прижат к верху:
   тёмный пиджак и низ фото уходят в затемнение, поверх лежат заголовок, дата и кнопка. */
.hero-bill {
  position: relative; isolation: isolate;
  /* Первая строка для Safari до 15.4: он не знает svh, и без неё блок схлопнулся бы. */
  --hero-h: clamp(530px, 100vh, calc(var(--u) * 180));
  width: 100%; height: var(--hero-h);
  padding: 0 var(--gut) 14px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper); background: var(--hall);
}
.hero-bill__photo {
  position: absolute; left: calc(50% - var(--u) * 50); top: 0; z-index: -1;
  display: block; width: calc(var(--u) * 100); height: 100%; margin: 0; overflow: hidden;
}
.hero-bill__photo picture, .hero-bill__photo img { height: auto; }
/* На невысоком телефоне кадр уезжает вверх, иначе заголовок закрыл бы голову: текст
   занимает снизу около 350 px, подбородок на 74 сотых ширины кадра от его верха.
   Нижняя граница держит макушку, она на 53.7 сотых, ниже шапки. */
.hero-bill__photo picture { margin-top: clamp(calc(72px - var(--u) * 53.7), calc(var(--hero-h) - 350px - var(--u) * 74), 0px); }
/* Затемнение отмерено от низа в пикселях: высота текста от экрана не зависит. */
.hero-bill__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(23, 14, 9, .66), rgba(23, 14, 9, 0) 92px),
    linear-gradient(to top, var(--hall) 296px, rgba(23, 14, 9, .8) 350px, rgba(23, 14, 9, 0) 426px);
}

.hero-bill__title {
  width: 100%; max-width: 524px; margin: 0 auto 10px;
  font-family: var(--display); font-size: min(calc((100vw - var(--gut) * 2) / 6.2), 84px); line-height: .98;
  font-weight: 800; letter-spacing: 0;
}
.hero-bill__title .line { margin: 0; padding: 0; }

.hero-bill__facts, .hero-bill .hero__aside { width: 100%; max-width: 524px; margin-inline: auto; }
.hero-bill__facts { margin-top: 0; padding-top: 0; flex-direction: column; align-items: stretch; gap: 14px; border-top: 0; }
.hero-bill__facts dl { grid-template-columns: 1fr; gap: 0; }
/* Подписи «Когда», «Где», «Вход» на экране лишние, а программе чтения с экрана нужны. */
.hero-bill__facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-bill__facts dd { font-size: 16px; line-height: 1.42; font-weight: 500; letter-spacing: 0; }
.hero-bill__facts dl > div:first-child dd {
  margin-bottom: 6px; font-family: var(--display);
  font-size: calc(var(--u) * 10.4); line-height: 1; font-weight: 800; white-space: nowrap;
}
.hero-bill__facts .button { width: 100%; min-height: 60px; align-self: stretch; font-size: 18px; }
.hero-bill .hero__aside { margin-top: 12px; text-align: center; font-size: 14px; }
/* Строчная ссылка, а не inline-flex: на 320 px фраза уходит на вторую строку, и
   стрелка должна остаться у последнего слова, а не отъехать к краю. */
.hero-bill .hero__aside a { display: inline; color: var(--paper); border-bottom-color: rgba(243, 239, 231, .5); }
.hero-bill .hero__aside .arr { margin-left: 6px; }

/* Свет в зале загорается, заголовок поднимается на место.
   Дата, адрес и кнопка не ждут анимации — они нужны сразу. */
.hero-bill__facts, .hero-bill .hero__aside { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bill__photo img { animation: hall-on 1.3s var(--ease) .05s both; }
}
@keyframes hall-on { from { filter: brightness(.32) saturate(.55); } }

@supports (height: 100svh) {
  .hero-bill { --hero-h: clamp(530px, 100svh, calc(var(--u) * 180)); }
}

/* На планшете кадр уже экрана: края растворяются в тёмном. */
@media (min-width: 561px) {
  .hero-bill__photo { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
}

/* --- программа: спикеры на кирпиче -------------------------------------------
   Снимки собраны из двух частей: человек вырезан из присланного им фото, фон —
   размытый кирпич с наших снимков. Прижаты к верху, поэтому на широком экране
   уходит низ фигуры, а не голова. Затемнение лежит на самом тексте и растёт вместе
   с ним: у третьего выступления описание короче, и лица там закрывать незачем. */
.talks { display: block; padding: 34px 0 0; color: var(--paper); background: var(--hall); }
.talks__title { margin: 0; padding: 0 var(--gut) 24px; }
.talk { position: relative; height: clamp(440px, 118vw, 640px); overflow: hidden; color: var(--paper); background: var(--brick); }
.talk + .talk { margin-top: 2px; }
.talk picture, .talk img { height: 100%; }
.talk img { object-fit: cover; object-position: center top; }
.talk__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 96px var(--gut) 20px;
  background: linear-gradient(to bottom, rgba(26, 14, 8, 0), rgba(26, 14, 8, .55) 60px, rgba(26, 14, 8, .82) 120px, rgba(26, 14, 8, .88));
}
.talk__body h3 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(36px, 10.6vw, 46px); line-height: .98; font-weight: 800; letter-spacing: 0; }
.talk__body p { margin: 0 0 10px; font-size: 16px; line-height: 1.42; color: rgba(243, 239, 231, .92); }
.talk__body .talk__who { margin: 0; font-size: 15px; line-height: 1.35; color: rgba(243, 239, 231, .88); }
.talk__who b { color: #fff; font-weight: 700; }
.talk__who span { white-space: nowrap; }
.talk--after { margin-top: 2px; }
/* Фото вертикальное, разговор в нём в верхней половине кадра. */
.talk--after img { object-position: center 18%; }

/* --- отзывы и кто организует -------------------------------------------------
   Сначала чат: он отвечает на «а вы не мошенники?», поэтому стоит сразу за
   программой. Обёртка .trust__side на телефоне растворяется, чтобы лента сообщений
   встала между заголовком и кнопкой. */
.proof { padding: 54px 0 56px; display: flex; flex-direction: column; color: var(--paper); background: var(--hall); }
.trust { order: -1; margin-top: 0; display: flex; flex-direction: column; gap: 0; }
.trust__side { display: contents; }
.trust__title { order: 1; }
.trust__text { order: 2; margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.chat { order: 3; margin-inline: calc(var(--gut) * -1); max-width: none; border-width: 1px 0; border-radius: 0; }
.trust .button { order: 4; width: 100%; margin-top: 18px; min-height: 56px; color: var(--ink); font-size: 16px; }
.trust__more { order: 5; margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .66); }
/* Скриншоты не переверстаны: те же картинки, только в ленте вбок. Друг под другом
   они занимали полтора экрана и ещё столько же пустоты. Следующее сообщение
   выглядывает справа — это и есть подсказка, что лента листается. */
.chat__feed {
  padding: 10px var(--gut); display: flex; align-items: flex-start; gap: 8px; columns: auto;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chat__feed::-webkit-scrollbar { display: none; }
.chat__feed img, .chat__feed img:last-child { flex: 0 0 86%; width: 86%; max-width: 420px; margin: 0; scroll-snap-align: start; }

.proof__head { margin-top: 52px; display: block; }
/* Кегль от длины строки: иначе «быстрее,» и «люди» падали на отдельные строки. */
.proof__head h2 { margin-bottom: 14px; font-size: min(calc((100vw - var(--gut) * 2) / 8.3), 60px); }
.proof__text { margin: 0; font-size: 16px; line-height: 1.55; }
.stats { margin-top: 24px; grid-template-columns: 1fr 1fr; border-bottom: 0; }
.stat, .stat + .stat { padding: 16px 0; }
.stat + .stat { padding-left: 16px; border-top: 0; border-left: 1px solid var(--line-inv); }
.stat.stat--wide { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line-inv); }
.stat b { margin-bottom: 4px; color: var(--paper); font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.stat--wide b { font-size: 30px; line-height: 1.05; letter-spacing: 0; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* --- кому подойдёт -----------------------------------------------------------
   Отсюда начинается день: бумага и тёмный текст. */
.fit { padding: 54px 0 46px; background: var(--paper); }
.fit__grid { grid-template-columns: 1fr; gap: 22px; }
.fit__title { position: static; }
.fit__lead { margin: 0; font-size: 16px; line-height: 1.5; }
.fit__list li { padding: 16px 0; display: block; }
.fit__list li::before { display: none; }
.fit__list b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.fit__list span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: rgba(20, 18, 15, .72); }

/* --- фото встреч: лента вбок, подписи под кадром ----------------------------- */
.event-gallery { padding: 8px 0 50px; color: var(--ink); background: var(--paper); }
.event-gallery__grid {
  height: auto; margin-top: 8px; padding: 0 var(--gut);
  display: flex; gap: 8px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none;
}
.event-gallery__grid::-webkit-scrollbar { display: none; }
.event-gallery figure { flex: 0 0 74%; max-width: 340px; overflow: visible; scroll-snap-align: start; }
.event-gallery picture { height: auto; aspect-ratio: 3 / 4; overflow: hidden; }
.event-gallery img { height: 100%; filter: none; }
.event-gallery figure:hover img { transform: none; }
.event-gallery figcaption, .event-gallery figure.is-in figcaption {
  position: static; margin-top: 8px; padding: 0;
  color: rgba(20, 18, 15, .72); background: none;
  font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0;
  opacity: 1; transform: none; transition: none;
}
/* Этот кадр уже стоит в программе, в панели про нетворкинг. */
.gallery-d { display: none; }

/* --- кто приходит ------------------------------------------------------------ */
.section.people { padding: 0 0 50px; }
.people__grid { grid-template-columns: 1fr; gap: 22px; }
.people__text > p { margin-bottom: 18px; font-size: 16px; line-height: 1.5; color: rgba(20, 18, 15, .72); }
.hall-legend { gap: 10px; }
.hall-legend li { font-size: 15px; }
.hall { max-width: 460px; padding: 18px 14px 16px; }
/* Из трёх кадров остаётся круг: он доказывает фразу про спикеров в тексте выше,
   а двое слушающих уже есть в ленте фото. */
.people__strip { width: 100%; margin-top: 26px; display: block; }
.people__strip figure { display: none; }
.people__strip figure:nth-child(2) { display: block; height: auto; border-radius: 0; background: none; }
.people__strip figure:nth-child(2) picture { height: auto; aspect-ratio: 3 / 2; overflow: hidden; }
.people__strip figure:nth-child(2) img { filter: none; }
.people__strip figcaption { position: static; padding: 8px var(--gut) 0; background: none; color: rgba(20, 18, 15, .72); font-size: 14px; font-weight: 500; }

/* --- вопросы ----------------------------------------------------------------- */
.section.faq { padding: 0 0 54px; grid-template-columns: 1fr; gap: 14px; }
.faq h2 { margin: 0; }
summary { padding: 17px 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.faq__body > p { font-size: 16px; line-height: 1.5; color: rgba(20, 18, 15, .76); }
details[open] .faq__body > p { padding-bottom: 18px; }

/* --- регистрация: весь экран телефона цвета главной кнопки ---------------------
   Подложки у формы нет, поля лежат прямо
   на цвете. Ошибка на этом фоне красной быть не может, поэтому она в плашке. */
.section.register {
  width: 100%; margin: 0; padding: 50px var(--gut) 46px;
  grid-template-columns: 1fr; gap: 20px;
  color: var(--ink); background: var(--flame);
}
/* «Открытая встреча,» встаёт в строку ровно по ширине экрана. */
.register h2 { margin: 0; font-size: min(calc((100vw - var(--gut) * 2) / 6.8), 76px); line-height: .94; text-transform: uppercase; white-space: nowrap; }
.register__note { margin: 12px 0 0; max-width: none; color: var(--ink); font-size: 17px; line-height: 1.4; font-weight: 500; }
.reg { padding: 0; background: none; border: 0; border-radius: 0; }
.reg__row { grid-template-columns: 1fr; gap: 14px; }
.reg__label { margin-bottom: 6px; color: var(--ink); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.reg__input { min-height: 56px; background: var(--paper); border: 0; font-size: 17px; }
.reg__input::placeholder { color: rgba(20, 18, 15, .6); }
.reg__input:focus { box-shadow: 0 0 0 3px var(--ink); }
.reg__error { margin-top: 6px; padding: 6px 9px; color: var(--ink); background: var(--paper); border-radius: 6px; font-size: 14px; font-weight: 600; }
.reg__field.is-invalid .reg__input { box-shadow: 0 0 0 3px var(--ink); }
.reg__consent { margin-top: 16px; }
.reg__consent input { accent-color: var(--ink); }
.reg__consent input:focus-visible { outline-color: var(--ink); }
.reg__consent label { color: var(--ink); font-size: 14px; line-height: 1.45; }
.reg__consent a { border-bottom-color: currentColor; }
.reg__consent a:focus-visible { outline-color: var(--ink); }
.reg__submit { width: 100%; max-width: none; margin-top: 20px; min-height: 60px; color: var(--paper); background: var(--ink); font-size: 18px; }
.reg__submit:hover { color: var(--paper); background: #000; box-shadow: none; }

/* --- другие возможности: тихо, уже после формы -------------------------------- */
.section.extras { padding: 30px 0 0; display: block; }
.extra { padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.extra:first-child { border-top: 0; }
.extra__label { margin-bottom: 6px; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.extra h3 { margin-bottom: 6px; font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.extra > p { margin-bottom: 10px; font-size: 15px; line-height: 1.45; color: rgba(20, 18, 15, .72); }
.extra .link-arrow { min-height: 44px; color: var(--ink); font-size: 15px; border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }

/* --- подвал ------------------------------------------------------------------ */
.footer { padding: 26px 0 92px; gap: 18px; border-top: 1px solid var(--line); }
.footer > div { gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer__legal { font-size: 12px; font-weight: 400; color: rgba(20, 18, 15, .72); }

/* --- закреплённая строка -----------------------------------------------------
   Дата всегда перед глазами, пока человек читает про спикеров. Тёмная на любом
   фоне: на бумаге видна, а в зале отделена линией. */
.dock:not([hidden]) {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
  padding: 9px var(--gut) calc(9px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  background: var(--hall); border-top: 1px solid var(--line-inv);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transform: translateY(130%); transition: transform .3s var(--ease);
}
.dock.is-in { transform: none; }
.dock__when { flex: 0 0 auto; margin: 0; color: var(--paper); font-family: var(--display); font-size: 25px; line-height: 1; font-weight: 800; }
.dock__when small { display: block; margin-top: 2px; font-family: Onest, system-ui, sans-serif; font-size: 12px; font-weight: 500; color: rgba(243, 239, 231, .78); }
.dock .button { flex: 1 1 auto; width: auto; min-width: 0; min-height: 50px; padding: 0 10px; font-size: 16px; border-radius: 10px; }

/* На 320 px слово в кнопке шире оставшегося места. */
@media (max-width: 359px) {
  .dock:not([hidden]) { gap: 10px; }
  .dock__when { font-size: 22px; }
  .dock .button { padding: 0 6px; font-size: 14px; }
}

/* Окно ответа: кнопка оранжевая, текст на ней тёмный, как и везде на телефоне. */
.modal__title { font-family: var(--display); font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.modal__text { color: rgba(20, 18, 15, .76); font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .proof { padding-bottom: 56px; }
}
