/* ==========================================================================
   Главная sreda.biz-day.ru/
   Подключается последней, после /weekly.css, /stati/stati.css и /afisha.css:
   палитра, шапка, кнопки, карточки статей, чат и вопросы — оттуда. Здесь —
   только то, чего нет на других страницах.

   Город и выезд. Всё, что проходит в Петербурге, стоит на бумаге: кадры
   форматов, афиша, спикеры. Бизнес-уикенд — единственный тёмный блок во всю
   ширину, ночь у озера. Смелость страницы потрачена на него, остальное тихое.
   Оранжевый, как и на остальном сайте, — только там, где можно действовать.
   ========================================================================== */

/* --- первый экран: три сцены ------------------------------------------------
   Заголовок слева, пояснение справа, по нижней строке заголовка. Под ними
   три колонки, по одной на формат, как три сцены одного театра: кадр,
   название, ритм и ближайшие даты этого формата.
   Доска шире текста на отступ колонки с каждой стороны: так у всех трёх
   колонок одинаковая ширина содержимого, а края совпадают с остальной
   страницей. Черта над колонкой — своя у каждой, по ширине содержимого. */
.intro { padding-top: 56px; }
.intro__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px 72px; align-items: end;
}
.intro__title {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 76px); line-height: .94;
  letter-spacing: -.05em; font-weight: 800;
  text-wrap: balance;
}
/* Справа от заголовка две плашки: что бывает и что вход бесплатный. Вторая
   залита чернилами — это главное, что держит человека на афише; оранжевый
   остаётся кнопкам. Длинная плашка на узкой колонке переносится в две строки,
   поэтому скругление умеренное, а не таблеткой. */
.intro__tags {
  margin: 0; padding: 0 0 6px; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.intro__tags li {
  padding: 9px 16px; border: 1px solid var(--ink); border-radius: 14px;
  font-size: 15px; line-height: 1.35; font-weight: 600;
}
.intro__tags .intro__tag--free { background: var(--ink); color: var(--paper); }

.scenes { margin: 44px -28px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scene { position: relative; padding: 26px 28px 0; display: flex; flex-direction: column; }
.scene::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: var(--ink); }
.scene + .scene { border-left: 1px solid var(--line); }

.scene__cover { display: block; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.scene__cover img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.scene__cover--hall img { object-position: center 40%; }
.scene__cover:hover img, .scene:has(.scene__name a:hover) .scene__cover img { transform: scale(1.03); }

.scene__name { margin: 20px 0 6px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.scene__name a { transition: color .25s; }
.scene__name a:hover { color: var(--flame); }
.scene__rhythm { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
/* Даты занимают всё свободное место, и ссылки «Все темы и даты» в трёх
   колонках стоят на одной линии, сколько бы дат ни было в каждой. */
.scene__dates { flex: 1; }
.scene__empty { margin: 0; padding: 14px 0; border-block: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.scene__empty a { color: var(--ink); border-bottom: 1px solid var(--line); }
.scene__empty a:hover { color: var(--flame); border-bottom-color: currentColor; }
.scene__wait { flex: 1; }
.scene__wait > p { margin: 0; padding: 14px 0 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.scene__wait .button { gap: 18px; }
.scene__more { margin-top: 16px; align-self: flex-start; }

/* Единственное движение без участия человека: при загрузке кадры поднимаются
   из-под нижнего края по очереди, как занавес. Без анимации — сразу на месте. */
@media (prefers-reduced-motion: no-preference) {
  .scene__cover { animation: cover-rise .9s var(--ease) both; }
  .scene__cover picture { animation: cover-settle 1.2s var(--ease) both; }
  .scene:nth-child(2) .scene__cover, .scene:nth-child(2) .scene__cover picture { animation-delay: .1s; }
  .scene:nth-child(3) .scene__cover, .scene:nth-child(3) .scene__cover picture { animation-delay: .2s; }
}
@keyframes cover-rise { from { clip-path: inset(100% 0 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }
@keyframes cover-settle { from { transform: scale(1.12); } to { transform: none; } }

/* --- Бизнес-уикенд ----------------------------------------------------------
   Кадр ночного лагеря во всю ширину, заголовок стоит на нём внизу. Ниже —
   четыре факта одной строкой и отзывы из чата (раскладка .trust и .chat из
   /weekly.css, как на странице встречи). */
.weekend { margin-top: 112px; padding-bottom: 120px; color: var(--paper); background: var(--ink); }
.weekend__view {
  position: relative; overflow: hidden;
  min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
}
.weekend__view picture { position: absolute; inset: 0; }
.weekend__view img { height: 100%; object-fit: cover; object-position: center 62%; }
/* Низ кадра уходит в цвет блока: заголовок читается, и шва между фото и
   фактами нет. */
.weekend__view::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0) 30%, rgba(20, 18, 15, .6) 66%, var(--ink) 100%);
}
.weekend__head { position: relative; z-index: 1; padding-bottom: 48px; }
.weekend__head h2 {
  max-width: 11ch; margin-bottom: 24px;
  font-size: clamp(46px, 8vw, 120px); line-height: .88; letter-spacing: -.055em; font-weight: 800;
}
.weekend__head p { max-width: 560px; margin: 0; color: rgba(243, 239, 231, .82); font-size: 19px; line-height: 1.55; }

.weekend__facts {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-inv);
}
.weekend__facts > div { padding: 26px 28px 0 0; }
.weekend__facts > div + div { padding-left: 28px; border-left: 1px solid var(--line-inv); }
.weekend__facts dt { margin-bottom: 10px; color: rgba(243, 239, 231, .55); font-size: 13px; font-weight: 600; }
.weekend__facts dd { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; }
.weekend__trust { margin-top: 96px; }
/* Сразу после бежевого блока «Спикерам» — встык: узкая полоска фона между
   двумя цветными блоками во всю ширину читается как ошибка вёрстки. */
.hosts + .weekend { margin-top: 0; }

/* --- кто мы -----------------------------------------------------------------
   Заголовок и фото знакомств, под ними три вещи, за которыми к нам приходят,
   — тремя колонками под чертой, как форматы на первом экране. Ниже три цифры:
   черта у них тонкая, чтобы два ряда по три не спорили. */
.about { padding-top: 112px; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px 72px; align-items: center; }
.about__title {
  max-width: 12ch; margin-bottom: 26px;
  font-size: clamp(36px, 4.4vw, 60px); line-height: .98; letter-spacing: -.045em; font-weight: 800;
}
.about__lead { max-width: 460px; margin: 0 0 14px; font-size: 19px; line-height: 1.5; font-weight: 600; }
.about__note { max-width: 460px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.about__note a { color: var(--ink); border-bottom: 1px solid var(--line); }
.about__note a:hover { color: var(--flame); border-bottom-color: currentColor; }
.about__photo { margin: 0; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.about__photo img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.about__three {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.about__three li { padding: 26px 28px 34px 0; }
.about__three li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.about__three b { display: block; margin-bottom: 10px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.about__three span { display: block; max-width: 320px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.about__facts {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.about__facts > div { padding: 26px 28px 0 0; }
.about__facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.about__facts dt {
  margin-bottom: 12px;
  font-size: clamp(40px, 4.6vw, 64px); line-height: .9; letter-spacing: -.05em; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.about__facts dd { max-width: 260px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* --- кто выступает ----------------------------------------------------------
   Список, а не карточки: лицо, имя и тема выступления. Пара спикеров одного
   выступления — двумя кружками внахлёст в том же квадрате, что и одно лицо,
   чтобы имена во всех строках начинались с одной линии. */
.speakers { padding-top: 112px; }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.roster__row {
  height: 100%; padding: 22px 0 26px;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start;
  border-top: 1px solid var(--line);
}
.roster__faces { position: relative; display: block; width: 64px; height: 64px; }
.roster__faces img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; background: var(--paper-2); }
.roster__faces--pair img { position: absolute; width: 44px; height: 44px; }
.roster__faces--pair img:first-child { top: 0; left: 0; }
.roster__faces--pair img:last-child { right: 0; bottom: 0; border: 2px solid var(--paper); }
.roster__who { display: block; padding-top: 4px; }
.roster__who b { display: block; margin-bottom: 6px; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; font-weight: 800; transition: color .25s; }
.roster__who span { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
a.roster__row:hover b { color: var(--flame); }
a.roster__row:focus-visible { outline: 3px solid var(--flame); outline-offset: 4px; border-radius: 4px; }

/* Пустое место в списке — приглашение спикеру. Пунктирный кружок вместо лица. */
.roster__item--you .roster__faces i {
  width: 64px; height: 64px; display: grid; place-items: center;
  color: var(--flame); border: 1.5px dashed currentColor; border-radius: 50%;
  font-style: normal; font-size: 28px; font-weight: 500; line-height: 1;
  transition: color .25s, background .25s;
}
.roster__item--you a:hover .roster__faces i { color: #fff; background: var(--flame); border-style: solid; }

/* --- спикерам ---------------------------------------------------------------
   Вторая аудитория главной. Свой фон, чтобы блок не спутали с афишей: здесь
   не записываются, а договариваются. */
.hosts { margin-top: 112px; padding: 104px 0; background: var(--paper-2); }
.hosts__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px 96px; align-items: start; }
.hosts__head h2 { margin-bottom: 22px; font-size: clamp(36px, 4.4vw, 60px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hosts__head > p { max-width: 460px; margin-bottom: 32px; font-size: 18px; line-height: 1.55; }
.hosts__head .hosts__call { margin: 18px 0 0; color: var(--ink-soft); font-size: 14px; }
.hosts__call a { color: var(--ink); border-bottom: 1px solid var(--line); }
.hosts__call a:hover { color: var(--flame); border-bottom-color: currentColor; }

/* Шаги идут по порядку, поэтому с номерами. */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 26px 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 8px;
  border-top: 1px solid rgba(20, 18, 15, .18);
}
.steps li:last-child { border-bottom: 1px solid rgba(20, 18, 15, .18); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-size: 46px; line-height: .86; letter-spacing: -.06em; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.steps b { display: block; margin-bottom: 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
.steps span { max-width: 460px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* --- вопросы ------------------------------------------------------------- */
.home-faq { padding-bottom: 96px; }
.home-faq h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; font-weight: 800; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1040px) {
  .intro__head { grid-template-columns: 1fr; }
  .intro__tags { max-width: 560px; }
  /* Колонки встают друг под другом: кадр слева, всё остальное справа. */
  .scenes { margin-inline: 0; grid-template-columns: 1fr; }
  .scene { padding: 26px 0 0; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: 28px; align-content: start; }
  .scene::before { left: 0; right: 0; }
  .scene + .scene { margin-top: 32px; border-left: 0; }
  .scene > :not(.scene__cover) { grid-column: 2; }
  .scene__cover { grid-row: 1 / span 5; align-self: start; }
  .scene__name { margin-top: 0; }
  .weekend__facts { grid-template-columns: 1fr 1fr; }
  .weekend__facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .weekend__facts > div:nth-child(n + 3) { margin-top: 26px; border-top: 1px solid var(--line-inv); }
  .about__grid { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr 1fr; }
  .hosts__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .intro { padding-top: 28px; }
  .scenes { margin-top: 32px; }
  .scene { display: block; }
  .scene__cover img { aspect-ratio: 16 / 9; }
  @media (prefers-reduced-motion: no-preference) {
    .scene:nth-child(n + 2) .scene__cover, .scene:nth-child(n + 2) .scene__cover picture { animation: none; }
  }

  .weekend { margin-top: 72px; padding-bottom: 72px; }
  .weekend__view { min-height: 540px; }
  .weekend__view img { object-position: 30% 60%; }
  .weekend__head { padding-bottom: 32px; }
  .weekend__head p { font-size: 17px; }
  .weekend__facts { grid-template-columns: 1fr; }
  .weekend__facts > div, .weekend__facts > div + div { padding: 18px 0; border-left: 0; }
  .weekend__facts > div:nth-child(n + 2) { margin-top: 0; border-top: 1px solid var(--line-inv); }
  .weekend__trust { margin-top: 56px; }

  .about { padding-top: 72px; }
  .about__grid { gap: 28px; }
  .about__photo img { aspect-ratio: 16 / 9; }
  .about__title { max-width: none; margin-bottom: 18px; }
  .about__three { margin-top: 36px; grid-template-columns: 1fr; }
  .about__three li, .about__three li + li { padding: 20px 0 22px; border-left: 0; }
  .about__three li + li { border-top: 1px solid var(--line); }
  .about__three b { font-size: 22px; }
  .about__three span { max-width: none; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts > div, .about__facts > div + div { padding: 20px 0; border-left: 0; }
  .about__facts > div + div { border-top: 1px solid var(--line); }
  .about__facts dt { margin-bottom: 8px; }
  .about__facts dd { max-width: none; }

  .speakers { padding-top: 72px; }
  .roster { grid-template-columns: 1fr; }
  .roster__row { padding: 18px 0 20px; }

  .hosts { margin-top: 72px; padding: 64px 0; }
  .hosts__head .button { width: 100%; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); }
  .steps li::before { font-size: 36px; }

  .home-faq { padding-top: 72px; padding-bottom: 64px; }
}
