/* ══════════════════════════════════════
   WEDDING INVITATION — style.css
   ══════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

/* ─── Локальные шрифты ─── */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/static/fonts/CormorantGaramond-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/static/fonts/CormorantGaramond-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/static/fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('/static/fonts/CormorantGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('/static/fonts/Jost-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Jost';
    src: url('/static/fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ─── Сброс и база ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Фон с текстурой ─── */
body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: #3a3530;

    /* Ваша текстура + нежный цветовой оверлей */
    background-image:
        linear-gradient(
            135deg,
            rgba(245, 240, 235, 0.72) 0%,
            rgba(210, 220, 230, 0.65) 100%
        ),
        url('/static/background/background.jpg');
    background-size: cover, cover;
    background-attachment: fixed, fixed;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;

    min-height: 100vh;
}

/* ════════════════════════════════
   HERO — ВИДЕО БЛОК
   ════════════════════════════════ */
.hero-video-box {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(0px);
    transition: filter 1.4s ease;
}

.loaded .bg-video {
    filter: blur(8px);
}

/* Затемняющий оверлей на видео */
.hero-video-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2.8rem, 7vw, 6rem);
    color: #fff;
    letter-spacing: 0.02em;
    opacity: 0;
    filter: blur(12px);
    transition: all 1.2s ease;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.18em;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 1.2s ease 0.4s;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.loaded .hero-title {
    opacity: 1;
    filter: blur(0px);
}

.loaded .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════
   ЗАГОЛОВКИ СЕКЦИЙ
   ════════════════════════════════ */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin: 80px 0 40px;
    color: #5a5048;
    letter-spacing: 0.08em;

    /* Анимация reveal */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

/* ════════════════════════════════
   ОБЩИЙ GLASS-CARD СТИЛЬ
   ════════════════════════════════ */
.glass-card {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow:
        0 8px 32px rgba(100, 90, 80, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ════════════════════════════════
   КАРТОЧКИ «ЧТО ВАС ЖДЁТ»
   ════════════════════════════════ */
.cards-list {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.glass-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 24px;

    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow:
        0 8px 32px rgba(100, 90, 80, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.7);

    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-item img,
.card-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Нежный тонированный фон под иконку */
    background: rgba(160, 145, 130, 0.12);
    border: 1px solid rgba(255,255,255,0.5);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: #8a7060;
    stroke: #8a7060;
}

.text-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #3a3530;
}

.text-content p {
    font-size: 1.05rem;
    color: #6b6058;
    line-height: 1.55;
}

/* ════════════════════════════════
   О НЁМ / О НЕЙ
   ════════════════════════════════ */
.about-section {
    max-width: 700px;
    margin: 0 auto 24px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 28px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Версия с фото справа */
.about-section--reverse {
    flex-direction: row-reverse;
}

.about-photo-wrap {
    flex-shrink: 0;
}

.about-photo {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 80px;             /* Сильное скругление — пилюля */
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 12px 40px rgba(100,90,80,0.18);
    display: block;
}

.about-glass {
    flex: 1;
    padding: 28px 30px;
}

.about-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 2.2rem;
    color: #3a3530;
    margin-bottom: 14px;
}

.about-text {
    font-size: 1.08rem;
    color: #6b6058;
    line-height: 1.75;
}

/* Мобильная адаптация для секций "о нём/ней" */
@media (max-width: 560px) {
    .about-section,
    .about-section--reverse {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        width: 120px;
        height: 160px;
    }
}

/* ════════════════════════════════
   TIMELINE — ПЛАН МЕРОПРИЯТИЯ
   ════════════════════════════════ */
.timeline-list {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.timeline-item {
    display: grid;
    /* Левая колонка: ширина иконки; правая: карточка */
    grid-template-columns: 56px 1fr;
    gap: 0 18px;
    margin-bottom: 20px;
    position: relative;

    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Вертикальная линия — идёт от верха до низа каждого item,
   перекрывая margin-bottom через отрицательный bottom */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: -20px; /* перекрывает gap 20px между карточками */
    width: 2px;
    background: rgba(180, 160, 140, 0.38);
    z-index: 0;
}

/* Последний элемент — линия только сверху до центра иконки, не уходит вниз */
.timeline-item:last-child::before {
    bottom: auto;
    height: 50%;
}

/* Ячейка иконки — занимает всю высоту строки */
.timeline-emoji-cell {
    display: flex;
    align-items: center;   /* строго по вертикали середина ячейки */
    justify-content: center;
    position: relative;
    z-index: 1;
}

.timeline-emoji {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(100,90,80,0.12);
}

.timeline-emoji svg {
    width: 24px;
    height: 24px;
    stroke: #8a7060;
    color: #8a7060;
}

/* Карточка таймлайна */
.timeline-glass {
    padding: 20px 24px;
}

.timeline-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: #9e8e80;
    display: block;
    margin-bottom: 4px;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.35rem;
    color: #3a3530;
    margin-bottom: 6px;
}

.timeline-glass p {
    font-size: 1rem;
    color: #6b6058;
    line-height: 1.6;
}

/* ════════════════════════════════
   ДРЕСС-КОД
   ════════════════════════════════ */
.dresscode-wrapper {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 0 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.dresscode-intro {
    font-size: 1.08rem;
    color: #6b6058;
    margin-bottom: 28px;
    line-height: 1.6;
}

.color-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    justify-content: center;
    align-items: start;
    max-width: 100%;
    margin: 0 auto;
}

.color-glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    min-width: 108px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-glass-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow:
        0 16px 40px rgba(100, 90, 80, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.color-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #5a5048;
    letter-spacing: 0.04em;
}

/* ════════════════════════════════
   ТАЙМЕР ОБРАТНОГО ОТСЧЁТА
   ════════════════════════════════ */
.countdown-section {
    max-width: 700px;
    margin: 60px auto 0;
    padding: 0 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #7a6e65;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.countdown-date {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 8vw, 5rem);
    color: #3a3530;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 36px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px 16px;
    min-width: 90px;
}

.countdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    color: #3a3530;
    line-height: 1;
    letter-spacing: 0.04em;
    display: block;

    /* Плавная анимация смены цифр */
    transition: color 0.2s ease;
}

.countdown-sub {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9e8e80;
    margin-top: 8px;
    display: block;
}

.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: rgba(138, 112, 96, 0.4);
    font-weight: 300;
    line-height: 1;
    padding-bottom: 20px; /* выровнять по числам, не по подписям */
    user-select: none;
}

/* Пульсация двоеточия */
.countdown-sep {
    animation: sep-pulse 1s ease-in-out infinite;
}
@keyframes sep-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* ════════════════════════════════
   НАША ИСТОРИЯ
   ════════════════════════════════ */
.story-wrapper {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 0 20px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-glass {
    padding: 40px 44px;
    text-align: center;
    position: relative;
}

.story-icon {
    margin: 0 auto 22px;
    width: 44px;
    height: 44px;
    opacity: 0.45;
}

.story-icon svg {
    width: 100%;
    height: 100%;
    stroke: #c0887a;
}

.story-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 300;
    line-height: 1.9;
    color: #4a4038;
    letter-spacing: 0.01em;
}

.story-text em {
    font-style: italic;
    color: #3a3530;
    font-weight: 400;
}

/* ════════════════════════════════
   REVEAL — АНИМАЦИИ ПОЯВЛЕНИЯ
   ════════════════════════════════ */
.reveal.active {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* section-title дополнительно */
.section-title.active {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════
   КАК ДОБРАТЬСЯ
   ════════════════════════════════ */
.location-wrapper {
    max-width: 660px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-address {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}

.location-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(160, 145, 130, 0.12);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
}

.location-icon svg {
    width: 24px;
    height: 24px;
    stroke: #8a7060;
}

.location-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #3a3530;
    margin-bottom: 4px;
}

.location-addr {
    font-size: 1rem;
    color: #6b6058;
    margin-bottom: 8px;
}

.location-note {
    font-size: 0.8rem;
    color: #9e8e80;
    letter-spacing: 0.02em;
}

.map-wrap {
    padding: 10px;
    overflow: hidden;
}

/* ════════════════════════════════
   КАРУСЕЛЬ ФОТОГРАФИЙ
   ════════════════════════════════ */
.carousel-outer {
    padding: 24px 24px 20px;
    position: relative;
}

.carousel-heading {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.2rem;
    color: #7a6e65;
    text-align: center;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

/* Viewport — окно прокрутки */
.carousel-viewport {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    border-radius: 18px;
    gap: 0;
}
.carousel-viewport::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Каждый слайд строго равен ширине viewport */
.carousel-slide-img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
}

.carousel-slide-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* Стрелки */
.carousel-btn {
    position: absolute;
    top: calc(50% - 10px); /* немного выше центра (учёт heading + dots) */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 16px rgba(100,90,80,0.14);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: #5a4e46;
}

.carousel-btn--prev { left: 34px; }
.carousel-btn--next { right: 34px; }

/* Точки */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(138, 112, 96, 0.28);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    display: block;
}

.carousel-dot.active {
    background: rgba(138, 112, 96, 0.8);
    transform: scale(1.45);
}

/* ════════════════════════════════
   АНКЕТА ГОСТЯ
   ════════════════════════════════ */
.form-wrapper {
    max-width: 660px;
    margin: 0 auto 20px;
    padding: 0 20px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-glass {
    padding: 44px 48px;
}

.form-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #4a4038;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 10px;
}

.form-deadline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #9e8e80;
    text-align: center;
    margin-bottom: 40px;
}

.form-deadline strong {
    color: #6b5e52;
    font-weight: 400;
}

.form-group {
    margin-bottom: 34px;
}

.form-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #3a3530;
    margin-bottom: 12px;
}

.form-hint {
    font-size: 0.88rem;
    color: #9e8e80;
    font-style: italic;
    margin-bottom: 12px;
}

/* ── Радиокнопки ── */
.form-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 1.05rem;
    color: #5a5048;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    user-select: none;
}

.form-radio input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(138, 112, 96, 0.5);
    background: rgba(255,255,255,0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8a7060;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-radio input[type="radio"]:checked + .radio-custom {
    border-color: #8a7060;
    background: rgba(138,112,96,0.08);
}

.form-radio input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

/* ── Чекбоксы ── */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 1.05rem;
    color: #5a5048;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    user-select: none;
}

.form-check input[type="checkbox"] {
    display: none;
}

.check-custom {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(138, 112, 96, 0.5);
    background: rgba(255,255,255,0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.check-custom::after {
    content: '';
    width: 11px;
    height: 7px;
    border-left: 2px solid #8a7060;
    border-bottom: 2px solid #8a7060;
    transform: rotate(-45deg) scale(0.5);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: -3px;
}

.form-check input[type="checkbox"]:checked + .check-custom {
    border-color: #8a7060;
    background: rgba(138,112,96,0.08);
}

.form-check input[type="checkbox"]:checked + .check-custom::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

/* ── Textarea ── */
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #3a3530;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 16px;
    resize: vertical;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea::placeholder {
    color: #b0a098;
}

.form-textarea:focus {
    border-color: rgba(138, 112, 96, 0.5);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04), 0 0 0 3px rgba(138,112,96,0.08);
}

/* ── Кнопка отправить ── */
.form-submit {
    display: block;
    margin: 36px auto 0;
    padding: 14px 52px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #5a4e46;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(100,90,80,0.1);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    background: rgba(255,255,255,0.75);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(100,90,80,0.15);
}

/* ── Благодарность ── */
.form-thanks {
    display: none;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #6b5e52;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.6);
}

/* Убираем заголовок карусели */
.carousel-heading { display: none; }

/* ════════════════════════════════
   ОТСТУП В КОНЦЕ СТРАНИЦЫ
   ════════════════════════════════ */
.footer-spacer {
    height: 100px;
}

/* ====================== МОБИЛЬНЫЕ ИСПРАВЛЕНИЯ ====================== */

@media (max-width: 768px) {

    /* 1. Видео */
    .hero-video-box {
        height: 100vh;
        min-height: 100vh;
    }

    .bg-video {
        object-fit: cover;
        object-position: center 35%;   /* можно менять 25% / 30% / 40% */
        width: 100%;
        height: 100%;
    }

    /* 2. Текст на видео (самое важное сейчас) */
    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.15 !important;
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        padding: 0 25px;
    }

    /* 3. Заголовки секций */
    .section-title {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        padding: 0 15px;
    }

    /* 4. Дресс-код */
    .color-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    .color-glass-card {
        padding: 14px 10px;
    }

    .color-swatch {
        width: 55px;
        height: 55px;
    }

    /* Общие улучшения */
    .form-glass {
        margin: 0 12px 25px;
        padding: 25px 18px;
    }

    .glass-item {
        padding: 18px;
    }

    .glass-card {
        margin: 15px 8px 25px;
    }

    .countdown-timer {
        gap: 8px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {

    .hero-title {
        font-size: 1.65rem !important;
    }

    .section-title {
        font-size: 1.35rem !important;
    }

    .color-swatch {
        width: 50px;
        height: 50px;
    }
}