/* Страница для организаторов. Поверх blog.css: те же токены, Golos и один
   ультрамарин для действий. Главный ход — стена настоящих афиш из «Идём!»,
   среди которых пустая «ваша» афиша: организатор видит своё событие на доске.
   Шаги — корешки билетов, громкий блок для агентств — инвертированная плашка
   (lamp), как CTA блога.

   Страница всегда светлая. Анкета askyo — её главный блок — зашита в светлую
   «бумагу» «Идём!» (фон #F2EFE9→#E7E3DA, текст #16181C), и на светлой
   странице она ложится как родная часть, без коробки-заплатки. Посадочная
   для рекламы держит бренд, а не системную тему; блог и приложение тёмную
   тему сохраняют. */

/* Возвращаем светлые токены поверх тёмного варианта из blog.css. */
@media (prefers-color-scheme: dark) {
    :root:root {
        --ink-0: #F2EFE9; --ink-1: #FBF9F5; --ink-2: #E7E3DA; --ink-3: #D8D2C6;
        --paper: #16181C; --paper-2: #5E6167; --paper-3: #9A9DA3;
        --rule: rgba(22, 24, 28, 0.10); --rule-strong: rgba(22, 24, 28, 0.18);
        --accent: #2038C9; --accent-pressed: #16268F; --on-accent: #FFFFFF;
        --lamp: #16181C; --on-lamp: #FBF9F5;
        --lift-tile: 0 1px 2px rgba(22, 24, 28, .06), 0 6px 18px rgba(22, 24, 28, .08);
        color-scheme: light;
    }
}
:root { color-scheme: light; }

.org { padding-bottom: 24px; }

/* ── Первый экран: текст слева, стена справа; на телефоне стена под текстом. */
.org-hero { display: grid; gap: 32px; padding: 40px 0 16px; }
@media (min-width: 960px) { .org-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; column-gap: 56px; padding-top: 56px; } }
.org-hero h1 { font-size: clamp(34px, 6.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 14px 0 0; text-wrap: balance; }
.org-hero .dek { max-width: 54ch; }
.org-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.org-note { margin: 16px 0 0; font-size: 14px; color: var(--paper-2); max-width: 52ch; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; text-decoration: none; transition: background 120ms var(--ease); }
.btn:hover { background: var(--accent-pressed); }
.btn-quiet { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-control); color: var(--paper); font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }

/* Стена: три колонки на десктопе, две на телефоне; на телефоне — четыре
   плитки, чтобы кнопка и начало текста ниже не уезжали далеко. */
.hero-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-wall .tile:nth-child(n + 5) { display: none; }
@media (min-width: 600px) { .hero-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .hero-wall .tile:nth-child(n + 5) { display: block; } }
/* Лёгкий сдвиг средней колонки — доска, а не таблица. */
@media (min-width: 600px) { .hero-wall .tile:nth-child(3n + 2) { transform: translateY(18px); } }
.hero-wall .tile a { box-shadow: var(--lift-tile); }

/* «Ваша» афиша: пустой лист с пунктиром и знаком — единственная плитка с
   ультрамарином, потому что это и есть действие. */
.tile-yours a { background: var(--ink-1); box-shadow: inset 0 0 0 2px var(--accent), var(--lift-tile); }
.yours-poster { position: absolute; inset: 10px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: calc(var(--r-flat) - 6px); display: grid; place-items: center; }
.yours-mark { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.03em; color: var(--paper); transform: rotate(-8deg); }
.yours-mark b { color: var(--accent); }
.tile-yours .stamp { top: 18px; left: 18px; background: var(--accent); color: var(--on-accent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tile-yours .plate { background: none; padding: 12px 20px 20px; }
.tile-yours .plate strong { color: var(--paper); }
.tile-yours .plate span { color: var(--paper-2); }
.tile-yours a:hover { transform: translateY(-2px); }

.live-count { margin: 30px 0 0; }

/* ── Секции: заголовок слева, содержание справа на широком экране. */
.org-section { margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--rule-strong); display: grid; gap: 20px; }
@media (min-width: 960px) { .org-section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; } }
.org-section h2, .org-lamp h2, .anketa-head h2 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; scroll-margin-top: 24px; }

/* Кому подходит: список-определения без карточек, разделён волосяными линиями. */
.audience { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; }
.audience div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.audience dt { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.audience dd { margin: 4px 0 0; color: var(--paper-2); font-size: 16px; line-height: 1.45; }

.org-split { display: grid; gap: 20px; align-content: start; }
.org-split > p { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.55; }
.formats, .platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats li { padding: 9px 16px; border-radius: var(--r-control); background: var(--ink-2); font-size: 15px; font-weight: 500; }
.platforms a { display: inline-flex; padding: 9px 16px; border-radius: var(--r-control); background: var(--ink-2); color: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; }
.platforms a:hover { background: var(--accent); color: var(--on-accent); }

/* Агентствам: инвертированная плашка во всю ширину колонки. */
.org-lamp { margin-top: 88px; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--r-flat) + 6px); background: var(--lamp); color: var(--on-lamp); display: grid; gap: 20px; }
@media (min-width: 960px) { .org-lamp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; } .org-lamp > p:last-child { grid-column: 2; } }
.lamp-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; opacity: .7; }
.org-lamp > p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 56ch; }
.org-lamp .btn-on-lamp { background: var(--on-lamp); color: var(--lamp); }
.org-lamp .btn-on-lamp:hover { background: var(--accent); color: var(--on-accent); }

/* Шаги — три корешка билета из blog.css, номер вместо даты. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps .ticket { margin: 0; grid-template-columns: auto minmax(0, 1fr); }
.steps .ticket-stub { min-width: 88px; }
.steps .ticket-body { display: grid; gap: 4px; }
.steps .ticket-body > span { color: var(--paper-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 420px) { .steps .ticket { grid-template-columns: auto minmax(0, 1fr); } .steps .ticket-stub { border-right: 2px dashed var(--rule-strong); border-bottom: 0; min-width: 64px; padding: 16px; } .steps .ticket-day { font-size: 36px; } }

/* ── Анкета: фон у виджета свой — та же «бумага», что у страницы, поэтому
   рамки нет, только скругление и волосяная линия по краю. */
.org-anketa { margin-top: 88px; scroll-margin-top: 16px; display: grid; gap: 20px; }
@media (min-width: 960px) { .org-anketa { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; align-items: start; } .anketa-head { position: sticky; top: 24px; } }
.anketa-head p { margin: 12px 0 0; color: var(--paper-2); font-size: 17px; line-height: 1.5; max-width: 40ch; }
.anketa-form { position: relative; min-height: 560px; border-radius: calc(var(--r-flat) + 6px); background: var(--ink-0); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.anketa-form > [data-askyo-host] { display: block; min-width: 0; }
.anketa-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--paper-2); font-size: 15px; }
.anketa-form.ready .anketa-wait { display: none; }
.anketa-off { min-height: 0; padding: 24px; }
.anketa-off p { margin: 0; }
.anketa-alt, .anketa-fallback { margin: 12px 0 0; font-size: 14px; color: var(--paper-2); }
@media (min-width: 960px) { .anketa-alt, .anketa-fallback { grid-column: 2; } }

/* ── Вопросы: раскрывающийся список, разделённый линиями. */
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 64ch; color: var(--paper-2); font-size: 16px; line-height: 1.55; }

.org-final { margin-top: 88px; }
@media (min-width: 960px) { .org-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 32px 40px; } .org-final .cta-kicker { flex-basis: 100%; } .org-final .cta-title { margin: 0; font-size: 28px; } }

/* ── Плавающая кнопка на телефоне: видна, когда ушёл первый экран и не видна анкета. */
.shell > .sticky { position: fixed; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: linear-gradient(to top, var(--ink-0) 60%, transparent); transform: translateY(110%); visibility: hidden; transition: transform 220ms var(--ease), visibility 0s 220ms; z-index: 5; pointer-events: none; }
.sticky .btn { width: 100%; justify-content: center; pointer-events: auto; }
.sticky.on { transform: none; visibility: visible; transition: transform 220ms var(--ease); }
@media (min-width: 960px) { .shell > .sticky { display: none; } }

/* Уведомление о cookies — как в приложении: спокойно, не перекрывает экран. */
.shell > .cookie { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; padding: 16px; display: flex; gap: 12px; align-items: center; border-radius: var(--r-flat); background: var(--ink-1); box-shadow: 0 0 0 1px var(--rule-strong), 0 12px 32px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.45; z-index: 6; }
.shell > .cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie button { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }

/* Появление первого экрана — один «момент» на странице. */
@media (prefers-reduced-motion: no-preference) {
    .org-hero-text > *, .hero-wall .tile { animation: org-in 420ms var(--ease) both; }
    .org-hero-text > :nth-child(2) { animation-delay: 60ms; }
    .org-hero-text > :nth-child(3) { animation-delay: 120ms; }
    .org-hero-text > :nth-child(n + 4) { animation-delay: 180ms; }
    .hero-wall .tile:nth-child(1) { animation-delay: 140ms; } .hero-wall .tile:nth-child(2) { animation-delay: 220ms; }
    .hero-wall .tile:nth-child(3) { animation-delay: 300ms; } .hero-wall .tile:nth-child(n + 4) { animation-delay: 380ms; }
    @keyframes org-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) { .sticky, .faq summary::after, .btn { transition: none; } }
/* Вырезы корешка — цвета фона страницы, а не подложки живой подборки. */
.steps .ticket-stub::before, .steps .ticket-stub::after { background: var(--ink-0); }
