/* ============================================
   1. Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #F4EFE6;
    --bg-alt: #EDE8DD;
    --text: #2C2A26;
    --text-muted: #7A7469;
    --olive: #6B7A5C;
    --amber: #B8872A;
    --brass: #A08B5B;
    --white: #FDFAF5;
}

html { scroll-behavior: smooth; }

/* Кастомный скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }
* { scrollbar-width: thin; scrollbar-color: var(--brass) var(--bg-alt); }

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================
   2. Типографика
   ============================================ */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

.section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.section__subtitle--italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
}

/* ============================================
   3. Утилиты
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section {
    padding: 64px 0;
    background: var(--bg);
}

.section--alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   4. Компоненты
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--olive);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(0.9); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--brass);
}

.btn--secondary:hover {
    background: var(--bg-alt);
    filter: none;
}

.input {
    display: block;
    width: 100%;
    border: 1px solid var(--brass);
    background: var(--white);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder { color: var(--text-muted); }

.input:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 2px rgba(107, 122, 92, 0.15);
}

.input--textarea {
    min-height: 100px;
    resize: vertical;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(160, 139, 91, 0.3);
    box-shadow: 0 2px 8px rgba(44, 42, 38, 0.06);
}

/* ============================================
   5. Анимации
   ============================================ */
.js-ready .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .fade-in.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   6. Разделители
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 16px;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: var(--brass);
    opacity: 0.3;
    max-width: 200px;
}

.divider__icon {
    display: flex;
    align-items: center;
    color: var(--brass);
}

.divider--to-alt {
    background: linear-gradient(to bottom, var(--bg), var(--bg-alt));
}

.divider--from-alt {
    background: linear-gradient(to bottom, var(--bg-alt), var(--bg));
}

.divider__icon svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   7. Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('assets/test-hero.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 25, 18, 0.45);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero__names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero__date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

.hero__arrow {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--amber);
    animation: hero-arrow-bounce 2s ease-in-out infinite;
    text-decoration: none;
}

.hero__arrow svg {
    width: 32px;
    height: 32px;
}

@keyframes hero-arrow-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   8. Таймлайн
   ============================================ */
.timeline {
    padding: 64px 0;
    background: var(--bg);
}

.timeline__wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline__line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 40px;
    overflow: visible;
}

.timeline__line svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
}

.timeline__items {
    position: relative;
    padding-left: 70px;
}

.timeline__item {
    position: relative;
    padding-bottom: 48px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -52px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--olive);
    border: 3px solid var(--bg);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px var(--brass);
}

.timeline__dot--small {
    width: 10px;
    height: 10px;
    left: -49px;
    top: 6px;
    background: var(--brass);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--brass);
    opacity: 0.7;
}

.timeline__time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline__time--small {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.timeline__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline__desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.timeline__desc--italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--olive);
    margin-top: 4px;
}

.timeline__link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   9. Кнопка счастья
   ============================================ */
.happiness {
    padding: 64px 0;
    text-align: center;
}

.happiness__btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.happiness__btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--olive);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(107, 122, 92, 0.3);
}

.happiness__btn:hover {
    box-shadow: 0 6px 28px rgba(107, 122, 92, 0.4);
}

.happiness__btn:active,
.happiness__btn--pulse {
    transform: scale(1.15);
}

.happiness__btn svg {
    width: 36px;
    height: 36px;
    fill: var(--white);
}

@keyframes happiness-pulse {
    0% { transform: scale(1); box-shadow: 0 4px 20px rgba(107, 122, 92, 0.3); }
    50% { transform: scale(1.15); box-shadow: 0 6px 28px rgba(184, 135, 42, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 20px rgba(107, 122, 92, 0.3); }
}

.happiness__btn--animate {
    animation: happiness-pulse 0.3s ease;
}

.happiness__count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    transition: transform 0.2s ease;
}

.happiness__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   10. Рассадка гостей
   ============================================ */
.seating {
    padding: 64px 0;
}

.seating__search {
    max-width: 360px;
    margin: 0 auto 32px;
}

.seating__hall-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

.seating__hall {
    position: relative;
    min-width: 700px;
    min-height: 680px;
    margin: 0 auto;
    max-width: 800px;
}

.seating__presidium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 16px 32px;
    background: var(--white);
    border: 1px solid rgba(160, 139, 91, 0.3);
    border-radius: 12px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.seating__presidium-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 8px;
}

.seating__tables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
    justify-items: center;
    padding: 0 10px;
}

.seating__tables--row2 {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
}

.seating__table {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seating__table-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid rgba(160, 139, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seating__table-circle:hover {
    border-color: var(--olive);
    box-shadow: 0 2px 8px rgba(44, 42, 38, 0.12);
}

.seating__table-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.seating__guest {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(160, 139, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    user-select: none;
}

.seating__guest:hover {
    transform: scale(1.1);
    border-color: var(--olive);
    box-shadow: 0 2px 8px rgba(44, 42, 38, 0.12);
}

.seating__guest--highlight {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(184, 135, 42, 0.3);
    transform: scale(1.1);
    z-index: 3;
}

.seating__guest--presidium {
    position: relative;
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
    border-color: var(--olive);
}

/* ============================================
   11. Пожелания
   ============================================ */
.wishes__form {
    max-width: 500px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wishes__list {
    display: grid;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.wishes__card {
    animation: wish-appear 0.4s ease;
}

.wishes__card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.wishes__card-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.wishes__card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wishes__empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    padding: 20px;
}

@keyframes wish-appear {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   12. Опросник
   ============================================ */
.survey__form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.survey__group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.survey__radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey__radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.survey__radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--brass);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.survey__radio input[type="radio"]:checked {
    border-color: var(--olive);
}

.survey__radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--olive);
    border-radius: 50%;
}

.survey__success {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--olive);
    padding: 40px 20px;
}

.survey__success--hidden {
    display: none;
}

/* ============================================
   13. FAQ
   ============================================ */
.faq__list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq__item {
    border-bottom: 1px solid rgba(160, 139, 91, 0.2);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
}

.faq__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
    color: var(--brass);
}

.faq__item--open .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq__answer-inner {
    padding: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   14. Штрафное меню
   ============================================ */
.penalties__grid {
    display: grid;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.penalties__card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.penalties__card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.penalties__card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   15. Модалка
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal--open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 25, 18, 0.6);
}

.modal__content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid rgba(160, 139, 91, 0.3);
    box-shadow: 0 2px 8px rgba(44, 42, 38, 0.06);
    max-width: 400px;
    width: 100%;
    z-index: 1;
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal__close:hover {
    background: var(--bg-alt);
}

.modal__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 2px solid rgba(160, 139, 91, 0.3);
}

.modal__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.modal__table {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.modal__table-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid rgba(160, 139, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.modal__guest-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    text-align: left;
}

.modal__guest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(160, 139, 91, 0.12);
    font-size: 0.95rem;
}

.modal__guest-item:last-child {
    border-bottom: none;
}

.modal__guest-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid rgba(160, 139, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================
   16. Опросник — Мои ответы
   ============================================ */
.survey__my-answers {
    max-width: 500px;
    margin: 24px auto 0;
}

.survey__my-answers-toggle {
    display: block;
    width: 100%;
}

.survey__my-answers-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey__my-answer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid rgba(160, 139, 91, 0.25);
    border-radius: 8px;
    font-size: 0.9rem;
}

.survey__my-answer-name {
    font-weight: 500;
    color: var(--text);
}

.survey__my-answer-detail {
    color: var(--text-muted);
    font-size: 0.825rem;
    white-space: nowrap;
}

/* ============================================
   17. Футер
   ============================================ */
.footer {
    text-align: center;
    padding: 32px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg);
}

/* ============================================
   17. Desktop (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    .section { padding: 80px 0; }

    .timeline__wrapper {
        max-width: 700px;
    }

    .timeline__line {
        left: 50px;
    }

    .timeline__items {
        padding-left: 100px;
    }

    .timeline__dot {
        left: -62px;
    }

    .timeline__dot--small {
        left: -59px;
    }

    .timeline__item {
        padding-bottom: 56px;
    }

    .seating__hall {
        min-width: auto;
    }

    .penalties__grid {
        grid-template-columns: 1fr 1fr;
    }

    .wishes__list {
        max-width: 700px;
    }

    .happiness__btn {
        width: 90px;
        height: 90px;
    }

    .happiness__btn svg {
        width: 40px;
        height: 40px;
    }

    .hero__arrow {
        bottom: 48px;
    }

    /* Desktop: карточки скрыты, схема видна */
    .seating__hall-scroll { display: block; }
    .seating__cards { display: none; }
}

/* ============================================
   18. Sticky header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(244, 239, 230, 0.88);
    border-bottom: 1px solid rgba(160, 139, 91, 0.2);
}

.header--visible {
    transform: translateY(0);
}

.header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header__link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.header__link:hover,
.header__link--active {
    color: var(--olive);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex-shrink: 0;
}

.header__burger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.header__burger--open .header__burger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__burger--open .header__burger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* scroll-margin чтобы хедер не перекрывал начало секции */
section[id] {
    scroll-margin-top: 64px;
}

/* ============================================
   19. Мобильная рассадка (карточки)
   ============================================ */
.seating__cards {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.seating__card {
    background: var(--white);
    border: 1px solid rgba(160, 139, 91, 0.25);
    border-radius: 10px;
    padding: 16px;
}

.seating__card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.seating__card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.seating__card-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.seating__card-guests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seating__card-guest {
    font-size: 0.875rem;
    color: var(--text);
    padding: 3px 10px;
    background: var(--bg);
    border-radius: 20px;
    border: 1px solid rgba(160, 139, 91, 0.2);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.seating__card-guest:hover {
    border-color: var(--olive);
    background: var(--bg-alt);
}

.seating__card-guest--highlight {
    background: rgba(184, 135, 42, 0.12);
    border-color: var(--amber);
    font-weight: 500;
}

/* ============================================
   20. Focus-visible
   ============================================ */
.btn:focus-visible,
.faq__question:focus-visible,
.seating__guest:focus-visible,
.seating__table-circle:focus-visible,
.happiness__btn:focus-visible,
.modal__close:focus-visible,
.header__link:focus-visible,
.header__burger:focus-visible,
.header__logo:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

/* ============================================
   21. Мобильный хедер
   ============================================ */
@media (max-width: 767px) {
    .header__nav {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(244, 239, 230, 0.97);
        border-bottom: 1px solid rgba(160, 139, 91, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .header__nav--open {
        max-height: 320px;
    }

    .header__link {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(160, 139, 91, 0.1);
        font-size: 0.875rem;
    }

    .header__link:last-child {
        border-bottom: none;
    }

    .header__burger {
        display: flex;
    }

    /* Мобильная рассадка: схема скрыта, карточки видны */
    .seating__hall-scroll { display: none; }
    .seating__cards { display: flex; }
}
