/* ==========================================================================
   Страница встречи на компьютере
   Подключается только из weekly.html и только с 761 px. Оформление то же, что
   на телефоне (weekly-phone.css), его владелец и участники одобрили в ноябре 2026.
   Страница — один вечер в трёх светах:
     зал     — тёмный: первый экран, спикеры, отзывы, кто организует;
     день    — бумага: кому подойдёт, фото, кто приходит, вопросы;
     кнопка  — оранжевый: регистрация, вся полоса цвета главной кнопки.
   Блоки в том же порядке, что на телефоне. Разница в раскладке: где на телефоне
   одна колонка, здесь две. Правишь вид блока — смотри, не нужно ли то же в
   weekly-phone.css.
   ========================================================================== */

/* Шрифт заголовков тот же, что на телефоне. Объявлен и здесь: правила из файла,
   подключённого только для узкого экрана, на широком не действуют. */
@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 {
  --hall: #170e09;
  --display: "Sofia XC", "Arial Narrow", "Roboto Condensed", sans-serif;
  /* Поле, при котором содержимое полосы во всю ширину стоит по краю .shell.
     Проценты в padding считаются от ширины самой полосы. */
  --edge: max(var(--gut), calc((100% - var(--shell)) / 2));
}

[id] { scroll-margin-top: 24px; }
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 20px; font-family: var(--display);
  font-size: clamp(54px, 5.8vw, 88px); line-height: .94; font-weight: 800; letter-spacing: 0;
  /* Иначе «Если у вас своё дело» оставляет одно слово на второй строке. */
  text-wrap: balance;
}
.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. */
.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: 92px; }
.brand img { mix-blend-mode: normal; }
.header .brand__name b { color: inherit; }
.header nav { gap: 36px; font-size: 14px; }
.header nav a { color: rgba(243, 239, 231, .82); transition: color .2s; }
.header nav a:hover { color: var(--paper); }
.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; }

/* --- первый экран: спикер перед полным залом ---------------------------------
   Слева заголовок, дата и кнопка, справа кадр: Иван Чурсин со спины, зал смотрит
   на него. Кадр вертикальный, поэтому колонка, а не фон во всю ширину: растянутый
   на весь экран, он расплылся бы. Левый край и низ кадра уходят в темноту зала. */
.hero-bill {
  --hero-h: clamp(640px, 100vh, 960px);
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; min-height: var(--hero-h); margin: 0;
  padding: 132px var(--edge) 64px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  color: var(--paper); background: var(--hall);
}
@supports (height: 100svh) {
  .hero-bill { --hero-h: clamp(640px, 100svh, 960px); }
}
.hero-bill__photo {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -1;
  display: block; width: min(52%, calc(var(--hero-h) * .8)); margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%);
  mask-image: linear-gradient(to right, transparent, #000 34%);
}
.hero-bill__photo picture, .hero-bill__photo img { height: 100%; }
.hero-bill__photo img { object-fit: cover; object-position: 50% 40%; }
.hero-bill__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(23, 14, 9, .6), rgba(23, 14, 9, 0) 150px),
    linear-gradient(to top, var(--hall), rgba(23, 14, 9, 0) 34%);
}

/* «предпринимателей» шириной около 6,2 кегля: кегль от ширины экрана держит слово
   в левой колонке, не заходя на светлую часть кадра. */
.hero-bill__title {
  margin: 0 0 30px; font-family: var(--display);
  font-size: clamp(64px, 8.4vw, 136px); line-height: .94; font-weight: 800; letter-spacing: 0;
}
.hero-bill__title .line { margin: 0; padding: 0; }

.hero-bill__facts { margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; border-top: 0; }
.hero-bill__facts dl { display: block; }
/* Подписи «Когда», «Где», «Вход» на экране лишние, а программе чтения с экрана нужны. */
.hero-bill__facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-bill__facts dd { color: rgba(243, 239, 231, .9); font-size: 18px; line-height: 1.45; font-weight: 500; letter-spacing: 0; }
.hero-bill__facts dl > div:first-child dd {
  margin-bottom: 10px; color: var(--paper); font-family: var(--display);
  font-size: clamp(44px, 4.4vw, 64px); line-height: 1; font-weight: 800; white-space: nowrap;
}
.hero-bill__facts .button { align-self: flex-start; min-width: 340px; min-height: 64px; padding: 0 36px; font-size: 18px; }
.hero-bill .hero__aside { margin-top: 18px; font-size: 15px; }
.hero-bill .hero__aside a { display: inline; color: var(--paper); border-bottom-color: rgba(243, 239, 231, .5); }
.hero-bill .hero__aside a:hover { color: var(--paper); border-bottom-color: currentColor; }
.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); } }

/* --- программа: спикеры на кирпиче -------------------------------------------
   Те же панели, что на телефоне: три спикера в ряд по ширине .shell, под ними
   нетворкинг широкой полосой. Размер панели ограничен исходниками: у фото
   спикеров около 1170 px, и панель шире 430 px на экране с двойной плотностью
   растягивала их — фото мылились. Высота 600 px держит снимок не крупнее исходника.
   Снимки прижаты к верху: уходит низ фигуры, а не голова. */
.talks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  padding: 104px var(--edge) 0; color: var(--paper); background: var(--hall);
}
.talks__title { grid-column: 1 / -1; margin: 0 0 44px; text-wrap: balance; }
.talk { position: relative; height: clamp(540px, 42vw, 600px); overflow: hidden; color: var(--paper); background: var(--brick); }
.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: 110px 28px 28px;
  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 10px; font-family: var(--display); font-size: clamp(32px, 2.7vw, 40px); line-height: .98; font-weight: 800; letter-spacing: 0; }
.talk__body p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; color: rgba(243, 239, 231, .92); }
.talk__body .talk__who { margin: 0; font-size: 15px; line-height: 1.4; color: rgba(243, 239, 231, .88); }
.talk__who b { color: #fff; font-weight: 700; }
.talk__who span { white-space: nowrap; }

/* Нетворкинг — полоса на всю ширину ряда на широком кадре. Лица в левой половине
   снимка, поэтому текст справа внизу, и затемнение идёт из этого угла. */
.talk--after { grid-column: 1 / -1; height: clamp(460px, 44vw, 640px); }
/* Лица первого ряда у нижнего края кадра: срезать лучше верх с размытым задним рядом. */
.talk--after img { object-position: center 62%; }
.talk--after::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top left, rgba(26, 14, 8, .9) 18%, rgba(26, 14, 8, .5) 38%, rgba(26, 14, 8, 0) 58%);
}
.talk--after .talk__body { z-index: 1; left: auto; width: min(40%, 480px); padding: 0 40px 36px; background: none; }
.talk--after .talk__body h3 { font-size: clamp(40px, 3.4vw, 52px); }
.talk--after .talk__body p { margin: 0; font-size: 17px; }

/* --- отзывы и кто организует -------------------------------------------------
   Сначала чат: он отвечает на «а вы не мошенники?», поэтому стоит сразу за
   программой. Колонка с текстом едет рядом с лентой сообщений. */
.proof { padding: 104px 0 110px; display: flex; flex-direction: column; color: var(--paper); background: var(--hall); }
.trust { order: -1; margin-top: 0; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px; }
.trust__side { top: 32px; }
.trust__title { font-size: clamp(46px, 4.2vw, 64px); }
.trust__text { margin-bottom: 28px; color: rgba(243, 239, 231, .8); font-size: 17px; line-height: 1.55; }
.trust .button { min-height: 58px; padding: 0 28px; font-size: 16px; }
.trust__more { margin-top: 16px; color: rgba(255, 255, 255, .66); font-size: 14px; }

.proof__head { margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 64px; align-items: end; }
.proof__head h2 { margin: 0; font-size: clamp(52px, 5.4vw, 84px); }
.proof__text { margin: 0; color: rgba(243, 239, 231, .8); font-size: 17px; line-height: 1.6; }
.stats { margin-top: 48px; grid-template-columns: 1fr 1fr 2fr; }
.stat--wide { grid-column: auto; }
.stat b { margin-bottom: 8px; color: var(--paper); font-family: var(--display); font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.stat--wide b { font-size: 40px; line-height: 1.05; letter-spacing: 0; }
.stat span { color: rgba(255, 255, 255, .7); font-size: 15px; }

/* --- кому подойдёт -----------------------------------------------------------
   Отсюда начинается день: бумага и тёмный текст. */
.fit { padding: 110px 0 100px; background: var(--paper); }
.fit__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.fit__title { top: 32px; }
.fit__lead { margin: 0; max-width: 460px; color: rgba(20, 18, 15, .72); font-size: 17px; line-height: 1.55; }
.fit__list li { padding: 22px 0; display: block; }
.fit__list li::before { display: none; }
.fit__list b { display: block; font-family: var(--display); font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: 0; }
.fit__list span { display: block; margin-top: 8px; color: rgba(20, 18, 15, .72); font-size: 16px; line-height: 1.5; }

/* --- фото встреч: четыре кадра в ряд, подписи под кадром ---------------------- */
.event-gallery { padding: 0 0 100px; color: var(--ink); background: var(--paper); }
.event-gallery__head h2 { margin-bottom: 36px; }
.event-gallery__grid {
  width: min(calc(100% - var(--gut) * 2), var(--shell)); height: auto; margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; gap: 12px;
}
.event-gallery figure, .gallery-a, .gallery-b, .gallery-c, .gallery-e { grid-column: auto; grid-row: auto; overflow: visible; }
.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: 10px; padding: 0;
  color: rgba(20, 18, 15, .72); background: none;
  font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0;
  opacity: 1; transform: none; transition: none;
}
/* Этот кадр уже стоит в программе, в панели про нетворкинг. */
.gallery-d { display: none; }

/* --- кто приходит ------------------------------------------------------------ */
.section.people { padding: 0 0 100px; }
.people__grid { gap: 80px; }
.people__text > p { max-width: 480px; margin-bottom: 30px; color: rgba(20, 18, 15, .72); font-size: 17px; line-height: 1.55; }
.hall-legend li { font-size: 16px; }
/* Из трёх кадров остаётся круг: он доказывает фразу про спикеров в тексте выше,
   а двое слушающих уже есть в фото над этим блоком. */
.people__strip { margin-top: 56px; 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: 21 / 9; overflow: hidden; }
.people__strip figure:nth-child(2) img { filter: none; object-position: 45% 40%; }
.people__strip figcaption { position: static; padding: 10px 0 0; background: none; color: rgba(20, 18, 15, .72); font-size: 15px; font-weight: 500; }

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

/* --- регистрация: полоса цвета главной кнопки ---------------------------------
   Подложки у формы нет, поля лежат прямо на цвете. Ошибка на этом фоне красной
   быть не может, поэтому она в плашке. */
.section.register {
  width: 100%; margin: 0; padding: 100px var(--edge) 104px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: start;
  color: var(--ink); background: var(--flame);
}
/* «Открытая встреча,» шириной около 6,8 кегля и должна встать в одну строку. */
.register h2 { margin: 0; font-size: clamp(52px, 5.4vw, 80px); line-height: .94; text-transform: uppercase; }
.register__note { margin: 20px 0 0; max-width: 420px; color: var(--ink); font-size: 19px; line-height: 1.4; font-weight: 500; }
.reg { padding: 0; background: none; border: 0; border-radius: 0; }
.reg__row { gap: 16px; }
.reg__label { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.reg__input { min-height: 60px; background: var(--paper); border: 0; font-size: 17px; }
.reg__input::placeholder { color: rgba(20, 18, 15, .6); }
.reg__input:hover { border-color: transparent; }
.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: 18px; }
.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:hover { color: var(--ink); }
.reg__consent a:focus-visible { outline-color: var(--ink); }
.reg__submit { width: 100%; max-width: none; margin-top: 24px; min-height: 64px; color: var(--paper); background: var(--ink); font-size: 18px; }
.reg__submit:hover { color: var(--paper); background: #000; box-shadow: none; }

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

/* --- подвал: снизу место под плашку с кнопкой ---------------------------------- */
.footer { padding-bottom: 120px; }

/* --- плашка с датой и кнопкой ------------------------------------------------
   Та же, что на телефоне, только не во всю ширину, а в правом нижнем углу:
   на широком экране полоса через весь низ закрывала бы текст. */
.dock:not([hidden]) {
  position: fixed; right: 24px; bottom: 24px; z-index: 12;
  padding: 10px 10px 10px 22px;
  display: flex; align-items: center; gap: 22px;
  background: var(--hall); border: 1px solid var(--line-inv); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  transform: translateY(calc(100% + 40px)); transition: transform .3s var(--ease);
}
.dock.is-in { transform: none; }
.dock__when { margin: 0; color: var(--paper); font-family: var(--display); font-size: 28px; line-height: 1; font-weight: 800; }
.dock__when small { display: block; margin-top: 3px; font-family: Onest, system-ui, sans-serif; font-size: 13px; font-weight: 500; color: rgba(243, 239, 231, .78); }
.dock .button { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

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

/* --- планшет и узкий ноутбук ----------------------------------------------------
   Ссылки шапки уходят под кнопку меню, двухколоночные блоки встают в одну колонку. */
@media (max-width: 1040px) {
  .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 { color: var(--paper); border-top-color: var(--line-inv); }

  /* Спикеры по два в ряд. Нетворкинг становится обычной панелью на вертикальном
     кадре: широкий кадр туда не подставляется, media у него с 1041 px. */
  .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talk, .talk--after { height: clamp(500px, 64vw, 600px); }
  .talk__body { padding: 100px 24px 26px; }
  .talk--after { grid-column: auto; }
  .talk--after img { object-position: center 24%; }
  .talk--after::after { content: none; }
  .talk--after .talk__body {
    left: 0; width: auto; padding: 100px 24px 26px;
    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--after .talk__body h3 { font-size: clamp(32px, 2.7vw, 40px); }
  .talk--after .talk__body p { font-size: 16px; }
  .proof__head { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--wide { grid-column: 1 / -1; }
  .fit__grid, .section.faq, .section.register { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fit__title { position: static; }
  .event-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}
