/* ============================================================
   Гештальт-конференция · Томск, 30.10 — 01.11.2026
   Тёплая мягкая система. Палитра сверена с иллюстрацией hero.png.
   Контраст текста проверен по WCAG AA.
   ============================================================ */

:root {
    /* --- Поверхности (тёплая бумага) --- */
    --paper:        #F6EEE3;   /* основной фон */
    --paper-soft:   #FCF7EF;   /* карточки, поднятые поверхности */
    --paper-tint:   #EFE4D4;   /* чередующиеся секции */
    --paper-deep:   #E6D8C3;   /* границы, разделители */

    /* --- Текст (AA на всех поверхностях) --- */
    --ink:          #3B322A;   /* 10.9:1 на paper */
    --ink-soft:     #6B5B49;   /* 5.67:1 на paper */

    /* --- Акценты --- */
    --green:        #3F5A43;   /* основной акцент, CTA. Белый текст 7.6:1 */
    --green-deep:   #334A37;
    --green-pale:   #DCE5D8;
    --terracotta:   #9E4E2F;   /* 5.09:1 — можно текстом */
    --mustard:      #E9C46A;   /* только плашки, тёмный текст 7.5:1 */
    --clay:         #D9A184;
    --sage:         #9DBB9A;

    /* --- Форма: одна шкала скруглений --- */
    --r-xs: 8px;
    --r-sm: 14px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-pill: 999px;

    /* --- Тени: тонированы в тёплый, без чистого чёрного --- */
    --sh-1: 0 1px 2px rgba(72, 54, 36, .05), 0 4px 14px rgba(72, 54, 36, .06);
    --sh-2: 0 2px 6px rgba(72, 54, 36, .07), 0 14px 34px rgba(72, 54, 36, .10);
    --sh-3: 0 4px 12px rgba(72, 54, 36, .09), 0 26px 60px rgba(72, 54, 36, .14);

    --font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Literata', Georgia, 'Times New Roman', serif;

    --container: 1200px;
    --ease: cubic-bezier(.22, .8, .32, 1);

    --z-nav: 100;
    --z-float: 90;
    --z-modal: 200;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--mustard); color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

section { position: relative; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.section-title { font-size: clamp(29px, 3.6vw, 46px); }

.section-lead {
    color: var(--ink-soft);
    font-size: clamp(16px, 1.5vw, 19px);
    max-width: 60ch;
    margin-top: 16px;
}

.section-head { margin-bottom: 52px; max-width: 720px; }

/* Малая метка над заголовком. Используется редко — не более трёх на странице. */
.kicker {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 14px;
}

/* Курсивный акцент внутри заголовка. Тот же шрифт, запас под выносные элементы. */
.em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    padding-bottom: 2px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--r-pill);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease),
                background-color .22s var(--ease), border-color .22s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: var(--sh-1);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: rgba(59, 50, 42, .28);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }

.btn-light {
    background: var(--paper-soft);
    color: var(--ink);
    border-color: rgba(59, 50, 42, .12);
    box-shadow: var(--sh-1);
}
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn-lg { padding: 18px 38px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
    position: sticky; top: 0; z-index: var(--z-nav);
    background: rgba(246, 238, 227, .88);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.header.stuck { border-bottom-color: var(--paper-deep); box-shadow: var(--sh-1); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none;
    font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo-mark { width: 30px; height: 30px; color: var(--terracotta); flex-shrink: 0; }
.logo-sub { color: var(--ink-soft); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    text-decoration: none;
    font-size: 15px; font-weight: 500;
    color: var(--ink-soft);
    padding: 9px 13px;
    border-radius: var(--r-pill);
    transition: color .2s, background-color .2s;
    white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(59, 50, 42, .06); }
.nav .btn { margin-left: 10px; padding: 11px 22px; font-size: 15px; }

.burger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: var(--r-sm);
    align-items: center; justify-content: center;
}
.burger span {
    display: block; width: 22px; height: 2px; margin: 4px auto;
    background: var(--ink); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   Иллюстрация на всю ширину, прижата вправо (фигуры в правой
   половине кадра). Слева — кремовая заливка, на ней текст.
   Лица не перекрываются ни на одном брейкпоинте.
   ============================================================ */
.hero {
    position: relative;
    min-height: min(880px, 100svh);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--paper);
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 78%;
    z-index: 0;
}
.hero-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Кремовая заливка слева: плотная под текстом, растворяется к иллюстрации.
   Иллюстрация прижата вправо (78% ширины), её левый край начинается ~22%.
   Растворяемся раньше, чтобы фигуры (женщина слева) оставались видны. */
.hero-scrim {
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        var(--paper) 0%,
        var(--paper) 30%,
        rgba(246, 238, 227, .92) 38%,
        rgba(246, 238, 227, .58) 45%,
        rgba(246, 238, 227, .2) 52%,
        rgba(246, 238, 227, 0) 58%
    );
}

.hero-inner {
    position: relative; z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 28px 72px;
}

.hero-copy { max-width: 620px; }

.hero-meta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px 9px 14px;
    border-radius: var(--r-pill);
    background: var(--paper-soft);
    border: 1px solid var(--paper-deep);
    box-shadow: var(--sh-1);
    font-size: 15px; font-weight: 600;
    color: var(--green-deep);
}
.hero-meta svg { width: 19px; height: 19px; color: var(--terracotta); flex-shrink: 0; }

.hero-title {
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-top: 26px;
    text-shadow: 0 1px 14px rgba(246, 238, 227, .6);
}

.hero-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(19px, 2.1vw, 26px);
    line-height: 1.35;
    color: var(--green-deep);
    margin-top: 20px;
    padding-bottom: 2px;
    max-width: 30ch;
    text-shadow: 0 1px 10px rgba(246, 238, 227, .6);
}

.hero-actions {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-top: 38px;
}

/* Полоса «что внутри» — под геро, отдельной строкой */
.hero-facts {
    display: flex; flex-wrap: wrap;
    gap: 12px 34px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--paper-deep);
    max-width: 560px;
}
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts b {
    font-size: 23px; font-weight: 600; letter-spacing: -0.02em;
    color: var(--green-deep);
}
.hero-facts span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section.tinted { background: var(--paper-tint); }

/* ---------- О конференции: крупный тезис + опоры ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.about-statement {
    font-size: clamp(22px, 2.4vw, 31px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.about-statement + p { margin-top: 22px; color: var(--ink-soft); max-width: 54ch; }

.about-list { display: grid; gap: 2px; }
.about-list-item {
    padding: 24px 0;
    border-top: 1px solid var(--paper-deep);
}
.about-list-item:last-child { border-bottom: 1px solid var(--paper-deep); }
.about-list-item h3 { font-size: 18px; margin-bottom: 8px; }
.about-list-item p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Партнёрство: цитата + фото организаторов ---------- */
.partner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}
.partner-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(23px, 2.7vw, 36px);
    line-height: 1.32;
    letter-spacing: -0.015em;
    padding-bottom: 3px;
}
.partner-quote::before {
    content: "";
    display: block;
    width: 54px; height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--mustard));
    margin-bottom: 28px;
}
.partner-note { margin-top: 26px; color: var(--ink-soft); font-size: 16px; max-width: 46ch; }

.partner-photo figure {
    overflow: hidden;
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    background: var(--paper-deep);
    aspect-ratio: 3 / 2;
}
.partner-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Мозаика фото организаторов: намеренно неровная сетка */
.partner-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 92px;
    gap: 14px;
}
.partner-mosaic figure {
    overflow: hidden;
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    background: var(--paper-deep);
}
.partner-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.partner-mosaic figure:nth-child(1) { grid-column: span 3; grid-row: span 3; }
.partner-mosaic figure:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.partner-mosaic figure:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.partner-mosaic figure:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.partner-mosaic figure:nth-child(5) { grid-column: span 3; grid-row: span 3; }

/* ---------- Организаторы ---------- */
.people {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
.person figure {
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--paper-deep);
    box-shadow: var(--sh-1);
    aspect-ratio: 4 / 5;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.person img { width: 100%; height: 100%; object-fit: cover; }
.person:hover figure { transform: translateY(-4px); box-shadow: var(--sh-2); }
.person-name { margin-top: 14px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.person-role { font-size: 14px; color: var(--ink-soft); }

.team { max-width: 920px; margin: 0 auto; }
.team-photo {
    overflow: hidden;
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    background: var(--paper-deep);
    aspect-ratio: 3 / 2;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

/* ---------- Спикер ---------- */
.speaker {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: clamp(32px, 4.5vw, 66px);
    align-items: center;
}
.speaker-photo {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-3);
    background: var(--paper-deep);
    aspect-ratio: 4 / 5;
}
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker h3 { font-size: clamp(26px, 3vw, 38px); margin-top: 6px; }
.speaker-title { color: var(--ink-soft); margin-top: 12px; font-size: 17px; }
.speaker-lecture {
    margin-top: 26px;
    padding: 22px 26px;
    border-radius: var(--r-md);
    background: var(--paper-soft);
    border: 1px solid var(--paper-deep);
}
.speaker-lecture h4 { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 6px; }
.speaker-lecture p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Голос конференции ---------- */
.voice {
    background: var(--green);
    color: #fff;
    border-radius: var(--r-lg);
    padding: clamp(38px, 5vw, 68px);
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: clamp(30px, 4vw, 64px);
    align-items: start;
}
.voice h2 { color: #fff; font-size: clamp(26px, 3.2vw, 40px); }
.voice p { color: rgba(255, 255, 255, .88); }
.voice-steps { display: grid; gap: 18px; }
.voice-step {
    padding: 18px 22px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
}
.voice-step h4 { color: #fff; font-size: 16px; margin-bottom: 5px; }
.voice-step p { font-size: 15px; }
.voice .btn-light { margin-top: 6px; }

/* ---------- Программа ---------- */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.day-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--ink);
}
.day-head h3 { font-size: 19px; }
.day-head span { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.slot {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--paper-deep);
    align-items: baseline;
}
.slot time {
    font-size: 14px; font-weight: 600;
    color: var(--terracotta);
    font-variant-numeric: tabular-nums;
}
.slot p { font-size: 16px; }
.slot.is-key p { font-weight: 600; }

/* ---------- Стоимость ----------
   Выбора тарифа нет. Крупная карточка — цена на сегодня,
   шкала под ней — календарь изменений (прошедшее приглушено). */
.price-now {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(30px, 3.4vw, 44px);
    border-radius: var(--r-lg);
    background: var(--green);
    color: #fff;
    box-shadow: var(--sh-3);
}
.price-now-label {
    display: block;
    font-size: 13px; font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mustard);
}
.price-now-value {
    font-size: clamp(44px, 6.4vw, 76px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}
.price-now-note { margin-top: 8px; color: rgba(255, 255, 255, .82); }
.price-now-side {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding-left: clamp(0px, 2vw, 30px);
    border-left: 1px solid rgba(255, 255, 255, .18);
}
.price-now-next { font-size: 16px; color: rgba(255, 255, 255, .88); }
.price-now-left {
    font-size: 15px;
    color: var(--mustard);
    font-weight: 600;
}
.price-now-left:empty { display: none; }
.price-now-side .btn { margin-top: 10px; }

.price-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.4vw, 30px);
    list-style: none;
    margin-top: 30px;
}
.price-step {
    position: relative;
    padding-top: 22px;
    border-top: 2px solid var(--paper-deep);
}
/* Точка на шкале */
.price-step::before {
    content: "";
    position: absolute;
    top: -7px; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--paper-deep);
}
.price-step-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.price-step-head h3 { font-size: 18px; }
.price-step-when { font-size: 15px; color: var(--ink-soft); margin-top: 3px; }
.price-step-sum {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}
.price-step-tag {
    padding: 2px 10px;
    border-radius: var(--r-pill);
    background: var(--mustard);
    color: var(--ink);
    font-size: 12px; font-weight: 600;
    line-height: 1;
    display: none;
    white-space: nowrap;
}

/* Прошедший этап — приглушён и вычеркнут */
.price-step.is-past { opacity: .45; }
.price-step.is-past .price-step-sum { text-decoration: line-through; }

/* Текущий этап */
.price-step.is-now { border-top-color: var(--green); }
.price-step.is-now::before { background: var(--green); border-color: var(--green); }
.price-step.is-now .price-step-tag { display: inline-block; }
.price-step.is-now .price-step-sum { color: var(--green-deep); }

.pricing-note {
    margin-top: 26px;
    padding: 24px 28px;
    border-radius: var(--r-md);
    background: var(--paper-soft);
    border: 1px solid var(--paper-deep);
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.pricing-note svg { width: 24px; height: 24px; color: var(--terracotta); flex-shrink: 0; margin-top: 2px; }
.pricing-note p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Место проведения ---------- */
.venue { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.venue-facts { display: grid; gap: 2px; margin-top: 30px; }
.venue-fact { padding: 18px 0; border-top: 1px solid var(--paper-deep); }
.venue-fact:last-child { border-bottom: 1px solid var(--paper-deep); }
.venue-fact dt { font-size: 14px; color: var(--ink-soft); margin-bottom: 3px; }
.venue-fact dd { font-weight: 500; }
.venue-visual { display: grid; gap: 18px; }
.venue-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.venue-photos figure {
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-1);
    aspect-ratio: 4 / 3;
    background: var(--paper-deep);
    cursor: zoom-in;
}
.venue-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.venue-photos figure:hover img { transform: scale(1.04); }
.map {
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-1);
    background: var(--paper-deep);
}
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Атмосфера: мозаика ---------- */
.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 168px;
    gap: 16px;
}
.mosaic figure {
    overflow: hidden;
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    background: var(--paper-deep);
    cursor: zoom-in;
    position: relative;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(9) { grid-column: span 2; }
.mosaic figure:nth-child(12) { grid-column: span 2; }

/* ---------- Финальный призыв ---------- */
.final {
    background: var(--paper-tint);
    text-align: center;
}
.final .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.final .section-lead { margin-left: auto; margin-right: auto; }
.countdown {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin: 40px 0;
}
.cd-unit {
    background: var(--paper-soft);
    border: 1px solid var(--paper-deep);
    border-radius: var(--r-md);
    padding: 18px 26px;
    min-width: 104px;
    box-shadow: var(--sh-1);
}
.cd-unit b {
    display: block;
    font-size: 36px; font-weight: 600; letter-spacing: -0.03em;
    color: var(--green-deep);
    font-variant-numeric: tabular-nums;
}
.cd-unit span { font-size: 13px; color: var(--ink-soft); }
.final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Форма ---------- */
.form-shell {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.form-card {
    background: var(--paper-soft);
    border: 1px solid var(--paper-deep);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--sh-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 7px; }
.field .hint { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit; font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #C9B7A0;
    border-radius: var(--r-sm);
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6F5F4E; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 90, 67, .16);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #9E4E2F; }
.field .error {
    display: none;
    margin-top: 6px;
    font-size: 14px;
    color: #8A3F22;
}
.field.has-error .error { display: block; }

.fieldset-title { font-weight: 600; font-size: 17px; margin: 30px 0 14px; }
.check {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 15px;
    border: 1.5px solid var(--paper-deep);
    border-radius: var(--r-sm);
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background-color .2s;
}
.check:hover { border-color: var(--sage); }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; margin-top: 1px; }
.check span { font-size: 16px; }
.check small { display: block; color: var(--ink-soft); font-size: 14px; }
.check:has(input:checked) { border-color: var(--green); background: var(--green-pale); }

.form-status {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: var(--r-sm);
    font-size: 16px;
    display: none;
}
.form-status.is-ok { display: block; background: var(--green-pale); color: #2C4230; border: 1px solid var(--sage); }
.form-status.is-err { display: block; background: #F7E2D8; color: #8A3F22; border: 1px solid #D9A184; }

.form-aside .aside-block { padding: 22px 0; border-top: 1px solid var(--paper-deep); }
.form-aside .aside-block:last-child { border-bottom: 1px solid var(--paper-deep); }
.form-aside h3 { font-size: 17px; margin-bottom: 7px; }
.form-aside p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Подвал ---------- */
.footer {
    background: var(--green-deep);
    color: rgba(255, 255, 255, .82);
    padding: 64px 0 40px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer .logo { color: #fff; font-size: 20px; }
.footer .logo-mark { color: var(--mustard); }
.footer p { font-size: 15px; }
.footer-tagline { margin-top: 14px; max-width: 34ch; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    padding-top: 26px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
}
.footer .btn-light { color: var(--ink); }

/* ---------- Плавающая кнопка Telegram ---------- */
.tg-float {
    position: fixed; right: 22px; bottom: 22px; z-index: var(--z-float);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sh-3);
    transition: transform .25s var(--ease), background-color .25s;
}
.tg-float:hover { transform: scale(1.07); background: var(--green-deep); }
.tg-float svg { width: 26px; height: 26px; }

/* ---------- Лайтбокс ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: var(--z-modal);
    background: rgba(40, 32, 24, .90);
    display: none;
    align-items: center; justify-content: center;
    padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    width: 46px; height: 46px;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff; font-size: 26px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Появление при скролле ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
    .nav a { padding: 9px 10px; font-size: 14.5px; }
    .speaker { grid-template-columns: 340px 1fr; }
    .people { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
    .header-inner { height: 66px; }
    .nav {
        position: fixed;
        inset: 66px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 18px 20px 26px;
        background: var(--paper-soft);
        border-bottom: 1px solid var(--paper-deep);
        box-shadow: var(--sh-2);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 14px; font-size: 16px; }
    .nav .btn { margin: 10px 0 0; width: 100%; }
    .burger { display: flex; }

    .about-grid,
    .partner,
    .voice,
    .venue,
    .form-shell { grid-template-columns: 1fr; }

    .speaker { grid-template-columns: 1fr; }
    .speaker-photo { max-width: 380px; }

    .days { grid-template-columns: 1fr; gap: 34px; }
    .price-now { grid-template-columns: 1fr; gap: 26px; align-items: start; }
    .price-now-side {
        justify-items: stretch;
        padding-left: 0;
        padding-top: 22px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
    .price-now-side .btn { justify-self: start; }
    .price-track { grid-template-columns: 1fr; gap: 0; }
    .price-step { padding: 18px 0 18px 26px; border-top: none; border-left: 2px solid var(--paper-deep); }
    .price-step::before { top: 22px; left: -7px; }
    .price-step.is-now { border-top: none; border-left-color: var(--green); }
    .footer-top { grid-template-columns: 1fr 1fr; }

    .mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
    .mosaic figure:nth-child(9),
    .mosaic figure:nth-child(12) { grid-column: span 1; }
}

/* --- HERO на узком десктопе: иллюстрация уже и сильнее прижата вправо,
       кремовая заливка держится дольше, чтобы текст оставался на плотном фоне. --- */
@media (max-width: 1200px) {
    .hero-media { width: 66%; }
    /* Иллюстрация начинается ~34%. Крем должен таять к ~52%,
       иначе женщина слева останется под плотной заливкой. */
    .hero-scrim {
        background: linear-gradient(
            100deg,
            var(--paper) 0%,
            var(--paper) 36%,
            rgba(246, 238, 227, .9) 42%,
            rgba(246, 238, 227, .55) 48%,
            rgba(246, 238, 227, .2) 53%,
            rgba(246, 238, 227, 0) 58%
        );
    }
    .hero-copy { max-width: 520px; }
}

/* --- HERO на планшете и телефоне: картинка сверху, текст ПОД ней.
       Перекрытие лиц исключено конструктивно. --- */
@media (max-width: 1000px) {
    .hero {
        display: block;
        min-height: 0;
        padding-bottom: 8px;
    }
    .hero-media {
        position: relative;
        width: 100%;
        inset: auto;
        aspect-ratio: 900 / 640;
    }
    .hero-media img { object-position: center bottom; }
    .hero-scrim {
        inset: auto 0 0 0;
        height: 26%;
        background: linear-gradient(180deg, rgba(246, 238, 227, 0) 0%, var(--paper) 88%);
    }
    .hero-inner { padding: 4px 28px 56px; }
    .hero-copy { max-width: 100%; }
    .hero-title { font-size: clamp(31px, 8vw, 44px); margin-top: 20px; }
    .hero-lead { font-size: clamp(18px, 4.4vw, 22px); max-width: 100%; }
    .hero-actions { margin-top: 28px; }
    .hero-actions .btn { flex: 1 1 220px; }
    .hero-facts { max-width: 100%; margin-top: 32px; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .hero-inner { padding-left: 20px; padding-right: 20px; }
    body { font-size: 16px; }

    .section-head { margin-bottom: 36px; }

    .people { grid-template-columns: repeat(2, 1fr); }
    .partner-mosaic { grid-auto-rows: 76px; gap: 10px; }
    .venue-photos { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; }

    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .mosaic figure:nth-child(1),
    .mosaic figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }

    .price-step-head { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }

    .pricing-note { grid-template-columns: 1fr; gap: 12px; }
    .slot { grid-template-columns: 84px 1fr; gap: 10px; }
    .countdown { gap: 10px; }
    .cd-unit { min-width: 76px; padding: 14px 16px; }
    .cd-unit b { font-size: 28px; }
    .final-actions .btn { width: 100%; }
    .tg-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 400px) {
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Печать ---------- */
@media print {
    .header, .tg-float, .lightbox, .hero-media, .hero-actions, .final-actions { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal { opacity: 1; transform: none; }
}
