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

@font-face {
    font-family: 'Bitter';
    src: url('src/Bitter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lastochka';
    src: url('src/Lastochka.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #4c5866;
    --secondary-color: #000000;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    /* Единый радиус для кнопок, карточек, полей, палитры, ФОС и т.д. */
    --radius-border: 2px;
    /* Кнопка «Открыть карту»: оливковое стекло (1-й цвет палитры #8E917A) */
    --map-btn-glass-start: rgba(255, 255, 255, 0.24);
    --map-btn-glass-mid: rgba(142, 145, 122, 0.52);
    --map-btn-glass-end: rgba(165, 172, 148, 0.36);
    --map-btn-glass-hover-start: rgba(255, 255, 255, 0.32);
    --map-btn-glass-hover-mid: rgba(142, 145, 122, 0.58);
    --map-btn-glass-hover-end: rgba(175, 182, 158, 0.42);
}

/* Десктоп: мягкий snap (proximity). Мобильный — см. медиазапрос ниже */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    line-height: 1.5;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 0 1.5rem;
    max-width: 22rem;
    text-align: center;
}

.preloader-image {
    width: 280px;
    height: 280px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-message {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: rgba(142, 145, 122, 0.72);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('src/we.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero::before {
        background-image: url('src/we_mini.webp');
    }
}

.hero.hero--fullres::before {
    background-image: url('src/we.webp');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Bitter', serif;
    font-size: 10rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.hero-title .date-separator {
    display: inline;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-names .name {
    font-family: 'Lastochka', serif;
    font-size: 5.5rem;
    color: var(--white);
    font-weight: 300;
}

.hero-names .ampersand {
    font-family: 'Lastochka', serif;
    font-size: 3.2rem;
    color: var(--white);
    font-style: italic;
    font-weight: 300;
}

/* Countdown Timer */
.countdown-container {
    margin: 0;
    text-align: center;
}

.countdown-title {
    font-family: 'Bitter', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.footer .countdown-container {
    margin-top: 2.75rem;
    margin-bottom: 1.25rem;
    padding-top: 2.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer .countdown-title {
    color: var(--white);
    text-shadow: none;
}

.footer .countdown-number {
    color: var(--white);
}

.footer .countdown-label {
    color: rgba(255, 255, 255, 0.82);
}

.footer .countdown-separator {
    color: rgba(255, 255, 255, 0.55);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1.5rem;
    min-width: 80px;
    transition: transform 0.3s ease;
}

.countdown-item-days {
    min-width: 120px;
    width: 120px;
}

.countdown-item:hover {
    transform: translateY(-3px);
}

.countdown-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    transform-origin: center center;
}

/* Три плавные пульсации «4122» перед стартом отсчёта (задаётся из script.js) */
.countdown-number--pulse-intro {
    animation: countdownDaysPulseIntro 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
    will-change: transform;
}

@keyframes countdownDaysPulseIntro {
    0%,
    28%,
    56%,
    100% {
        transform: scale(1);
    }
    9%,
    37%,
    65% {
        transform: scale(1.14);
    }
    18%,
    46%,
    74% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .countdown-number--pulse-intro {
        animation: none !important;
    }
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.countdown-separator {
    font-family: 'Bitter', serif;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
    margin: 0 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    color: var(--white);
    opacity: 0.7;
}

@media (min-width: 769px) {
    .scroll-indicator span {
        font-size: 2.85rem;
    }
}

/* Стрелка под анкетой (светлый фон секции) */
.contact-form-section .scroll-indicator--form-end {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 2.5rem auto 0;
    display: flex;
    justify-content: center;
    width: 100%;
    animation: bounceFormArrow 2s infinite;
}

.contact-form-section .scroll-indicator--form-end span {
    color: var(--secondary-color);
    opacity: 0.65;
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
}

@media (min-width: 769px) {
    .contact-form-section .scroll-indicator--form-end span {
        font-size: 2.85rem;
    }
}

@keyframes bounceFormArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles: только min-height — секция растёт с контентом, без внутреннего скролла */
section {
    padding: 40px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Мобильный: за один свайп — не больше одного блока (нельзя «проскочить» несколько секций) */
@media (max-width: 768px) {
    html {
        scroll-snap-type: y mandatory;
    }

    section {
        scroll-snap-stop: always;
    }

    .footer {
        scroll-snap-stop: always;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    section {
        scroll-snap-align: unset;
        scroll-snap-stop: normal;
    }

    .footer {
        scroll-snap-align: unset;
        scroll-snap-stop: normal;
    }

    .contact-form-section .scroll-indicator--form-end {
        animation: none;
    }
}

.section-title {
    font-family: 'Lastochka', serif;
    font-size: 4.8rem;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 300;
    text-transform: lowercase;
}

.section-title::first-letter {
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto;
}

/* About Section */
.about {
    background: var(--white);
}

.about .section-title {
    flex-shrink: 0;
}

.about .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-text p.about-text-animated-init {
    position: relative;
    opacity: 0;
    filter: blur(10px) brightness(1.5);
    transition: opacity 1.5s ease-out, filter 1.5s ease-out;
}

.about-text p.about-text-animated-init.animate {
    opacity: 1;
    filter: blur(0) brightness(1);
}

/* Календарь перед таймером */
.about-calendar-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2.5vw, 1.5rem);
    margin-top: 4rem;
    flex-wrap: wrap;
}

.calendar-preface {
    flex: 0 0 10rem;
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

.calendar-preface__title {
    font-family: 'Bitter', serif;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 300;
    color: #7a7a7a;
    line-height: 1.5;
    margin: 0;
}

.calendar-preface__line {
    display: block;
    text-transform: lowercase;
}

.calendar-preface__line::first-letter {
    text-transform: uppercase;
}

.calendar-preface__line--year {
    text-transform: none;
    margin-top: 0.12em;
    letter-spacing: 0.06em;
    font-weight: 300;
}

.wedding-calendar {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    padding: 1.25rem 1.35rem 1.4rem;
    background: var(--white);
    border-radius: var(--radius-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.calendar-preface.calendar-preface--anim-init .calendar-preface__line {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.calendar-preface.calendar-preface--anim-init.calendar-preface--anim-show .calendar-preface__line {
    opacity: 1;
    transform: translateY(0);
}

.calendar-preface.calendar-preface--anim-init.calendar-preface--anim-show .calendar-preface__line--year {
    transition-delay: 0.08s;
}

.wedding-calendar.wedding-calendar--anim-init {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.wedding-calendar.wedding-calendar--anim-init.wedding-calendar--anim-show {
    opacity: 1;
    transform: translateY(0);
}

.wedding-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.45rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
}

.wedding-calendar.wedding-calendar--anim-init .wedding-calendar__weekdays {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.wedding-calendar.wedding-calendar--anim-init.wedding-calendar--anim-show .wedding-calendar__weekdays {
    opacity: 1;
    transform: translateY(0);
}

.wedding-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.wedding-calendar__pad {
    min-height: 2.35rem;
}

.wedding-calendar__day {
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-border);
}

.wedding-calendar.wedding-calendar--anim-init .wedding-calendar__day {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.wedding-calendar.wedding-calendar--anim-init .wedding-calendar__day.is-rest-day {
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.wedding-calendar.wedding-calendar--anim-init .wedding-calendar__day.is-day-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Выделение даты свадьбы */
.wedding-calendar__day--wedding {
    position: relative;
    min-height: 2.15rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111111;
    border: none;
    border-radius: 0;
    text-shadow: none;
}

.wedding-calendar__heart {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4rem;
    height: 4rem;
    transform: translate(-50%, -50%) scale(0.82);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.wedding-calendar__day--wedding.show-heart .wedding-calendar__heart {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.wedding-calendar__wedding-number {
    position: relative;
    z-index: 1;
    color: #111111;
    font-size: 1.08em;
}

/* Location Section */
.location-section {
    background-image: url('src/Chrustal_new1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .location-section {
        background-image: url('src/Chrustal_mobile.webp');
    }
}

.location-section .container {
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-section .section-title {
    padding: 0 20px;
}

.location-header {
    position: relative;
    isolation: isolate;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-border);
    margin: 100px auto 3rem;
    max-width: 1200px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(0, 0, 0, 0.38) 45%,
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(14px) saturate(175%);
    -webkit-backdrop-filter: blur(14px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.22),
        inset 0 -1px 1px rgba(0, 0, 0, 0.14),
        0 12px 40px rgba(0, 0, 0, 0.22);
}

.location-header .section-title {
    padding: 0;
    margin-bottom: 1.5rem;
}

.location-header .location-description {
    padding: 0;
    margin-bottom: 1rem;
}

.location-header .location-description:last-child {
    margin-bottom: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .location-header,
    .transport-card,
    .carousel-container {
        background: rgba(0, 0, 0, 0.76);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    }

    .location-header {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    }

    .carousel-map-btn:hover,
    .transport-card:hover .carousel-map-btn {
        background: rgba(142, 145, 122, 0.88);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(230, 236, 218, 0.35);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }
}

/* Стиль для текста на темном фоне */
.text-on-dark {
    color: var(--white) !important;
}

.text-on-dark::after {
    background: var(--white) !important;
}

.location-description {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    padding: 0 20px;
}

.location-header .location-description:last-of-type {
    margin-bottom: 0;
}

.location-image-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-border);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.location-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.location-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Карточки вариантов транспорта (для десктопа) */
.transport-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
    /* Раньше margin-top: auto при фикс. высоте секции отталкивал блок вниз; теперь — явный отступ от шапки */
    margin-top: clamp(3.5rem, 11vh, 8rem);
    box-sizing: border-box;
}

.transport-card {
    position: relative;
    isolation: isolate;
    border-radius: var(--radius-border);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: blur(14px) saturate(175%);
    -webkit-backdrop-filter: blur(14px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.18),
        inset 0 -1px 1px rgba(0, 0, 0, 0.12),
        0 8px 28px rgba(0, 0, 0, 0.22);
}

.transport-card .carousel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Резерв под две строки заголовка: короткое «Самостоятельно» не сжимает блок с адресом и кнопкой карты */
.transport-cards .carousel-title,
.transport-carousel .carousel-title {
    line-height: 1.3;
    min-height: calc(2 * 1.3em); /* 2 строки при line-height 1.3; em от font-size (в т.ч. 1.3rem на узких экранах) */
}

/* Карусель вариантов транспорта (для мобильных) */
.transport-carousel {
    position: relative;
    max-width: 1200px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
    margin-top: clamp(3.5rem, 11vh, 8rem);
    box-sizing: border-box;
    display: none;
}

.carousel-container {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-border);
    min-height: 120px;
    touch-action: pan-y;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: blur(14px) saturate(175%);
    -webkit-backdrop-filter: blur(14px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.18),
        inset 0 -1px 1px rgba(0, 0, 0, 0.12),
        0 8px 28px rgba(0, 0, 0, 0.22);
}

.carousel-slide {
    display: none;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-container.slide-left .carousel-slide.active {
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-container.slide-right .carousel-slide.active {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    gap: 2rem;
}

.carousel-text {
    flex: 1;
    user-select: text;
}

.carousel-title {
    font-family: 'Bitter', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.carousel-address {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.carousel-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--white);
    /* Вертикаль как у :hover — иначе padding/border меняют высоту и дергается ряд карточек (grid stretch) */
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-border);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    /* backdrop-filter не анимируем — иначе после mouseleave «залипает» стекло */
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, padding 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 48px;
    min-height: 48px;
}

.map-icon {
    width: 32px;
    height: 32px;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.map-icon.bounce {
    animation: pinBounce 1.6s ease-in-out;
}

@keyframes pinBounce {
    0%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-8px);
    }
    40% {
        transform: translateY(0);
    }
    60% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(0);
    }
}

.map-btn-text {
    display: none;
}

/* Стекло только при наведении / раскрытии подписи (иконка без стекла) */
.carousel-map-btn:hover {
    position: relative;
    isolation: isolate;
    background: linear-gradient(
        155deg,
        var(--map-btn-glass-start) 0%,
        var(--map-btn-glass-mid) 48%,
        var(--map-btn-glass-end) 100%
    );
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 2px solid rgba(230, 236, 218, 0.45);
    border-radius: var(--radius-border);
    padding: 0.75rem 1.5rem;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
}

.carousel-map-btn:hover .map-icon {
    display: none;
}

.carousel-map-btn:hover .map-btn-text {
    display: inline-block;
}

/* Для плиток (десктопная версия) - при наведении на плитку */
.transport-card:hover .carousel-map-btn {
    position: relative;
    isolation: isolate;
    background: linear-gradient(
        155deg,
        var(--map-btn-glass-start) 0%,
        var(--map-btn-glass-mid) 48%,
        var(--map-btn-glass-end) 100%
    );
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 2px solid rgba(230, 236, 218, 0.45);
    border-radius: var(--radius-border);
    padding: 0.75rem 1.5rem;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
}

.transport-card:hover .carousel-map-btn .map-icon {
    display: none;
}

.transport-card:hover .carousel-map-btn .map-btn-text {
    display: inline-block;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--white);
    width: 16px;
    height: 16px;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}


.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-border);
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: 'Bitter', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 300;
}

.info-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-date {
    font-size: 1.5rem !important;
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.info-time {
    font-size: 1.3rem !important;
    color: var(--primary-color) !important;
}

.info-address {
    font-size: 1rem !important;
    color: var(--text-light) !important;
}

/* Program Section */
.program {
    background: var(--white);
}

.program .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Details Section */
.details .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.35rem, 3.5vw, 2rem);
    overflow: visible;
}

.detail-item {
    position: relative;
    overflow: visible;
    padding: 2px;
    border-radius: var(--radius-border);
    background: linear-gradient(
        135deg,
        rgba(142, 145, 122, 0.55) 0%,
        rgba(219, 192, 164, 0.45) 48%,
        rgba(230, 209, 205, 0.5) 100%
    );
    box-shadow: 0 10px 32px rgba(44, 44, 44, 0.07);
    opacity: 0;
    filter: blur(10px) brightness(1.5);
    transition: opacity 1.5s ease-out, filter 1.5s ease-out, transform 0.45s ease, box-shadow 0.45s ease;
}

.detail-item.animate {
    opacity: 1;
    filter: blur(0) brightness(1);
}

.detail-item.animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(142, 145, 122, 0.14);
}

.detail-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.08) 0px,
            transparent 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.08) 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 0px,
            transparent 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.08) 2px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05) 0px,
            transparent 0px,
            transparent 1px,
            rgba(255, 255, 255, 0.05) 2px
        );
    background-size: 4px 4px, 4px 4px, 3px 3px;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    mix-blend-mode: overlay;
}

.detail-item.animate::before {
    animation: noiseFade 1.5s ease-out forwards;
}

@keyframes noiseFade {
    0% {
        opacity: 0.4;
        transform: translateX(0);
    }
    25% {
        opacity: 0.3;
        transform: translateX(1px);
    }
    50% {
        opacity: 0.2;
        transform: translateX(-1px);
    }
    75% {
        opacity: 0.1;
        transform: translateX(0.5px);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

.detail-card {
    position: relative;
    background: var(--white);
    border-radius: calc(var(--radius-border) - 1px);
    padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.15rem, 3vw, 1.85rem) clamp(1.5rem, 3.5vw, 2.1rem);
    text-align: center;
    overflow: visible;
}

/* Вылетающие сердечки (создаются скриптом) */
.detail-card__floating-heart,
.timeline-content__floating-heart {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
    animation: detailHeartFly var(--heart-duration, 6s) cubic-bezier(0.33, 0.12, 0.22, 1) forwards;
}

@keyframes detailHeartFly {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
    }
    14% {
        opacity: 0.50;
    }
    55% {
        opacity: 1.00;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--heart-drift, 0px)), calc(-50% - var(--heart-rise, 100px))) scale(0.92) rotate(12deg);
    }
}

/* Внутренняя рамка и угловые скобы */
.detail-card__frame {
    position: absolute;
    inset: clamp(10px, 2.2vw, 14px);
    pointer-events: none;
    z-index: 0;
}

.detail-card__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(142, 145, 122, 0.22);
    border-radius: 1px;
}

.detail-card__corner {
    position: absolute;
    width: clamp(20px, 5vw, 28px);
    height: clamp(20px, 5vw, 28px);
    border-color: rgba(142, 145, 122, 0.62);
    border-style: solid;
}

.detail-card__corner--tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.detail-card__corner--tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.detail-card__corner--bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.detail-card__corner--br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

.detail-card__text {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

.detail-content p,
.about-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .detail-item.animate:hover {
        transform: none;
    }

    .detail-card__floating-heart,
    .timeline-content__floating-heart {
        display: none !important;
        animation: none !important;
    }
}

/* Dress Code Section */
.dress-code {
    background: #e3e5d740;
}

.dress-code-content {
    max-width: 800px;
    margin: 0 auto;
}

.dress-code-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    justify-content: center;
}

.dress-code--2 .dress-code-item--pantone-girls,
.dress-code--2 .dress-code-item--pantone-men,
.dress-code--2 .dress-code-men-block {
    width: 100%;
    justify-content: flex-start;
}

.dress-code-text {
    flex: 1;
    padding: 1.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dress-code-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
}

/* Дресс-код 2: палитра в виде карточек Pantone */
.dress-code--2 .dress-code-content {
    max-width: 920px;
}

.dress-code--2.dress-code-desktop-anim-init .dress-code-item:first-child .dress-code-text {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.dress-code--2.dress-code-desktop-anim-init .dress-code-item--pantone-girls {
    opacity: 0;
    transform: translateX(-64px);
    transition: opacity 0.95s ease, transform 0.95s ease;
}

.dress-code--2.dress-code-desktop-anim-init .dress-code-men-block {
    opacity: 0;
    transform: translateX(64px);
    transition: opacity 0.95s ease, transform 0.95s ease;
}

.dress-code--2.dress-code-desktop-anim-init .dress-code-text--men-note {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.dress-code--2.dress-code-desktop-anim-init.dress-code-desktop-anim-step-1 .dress-code-item:first-child .dress-code-text {
    opacity: 1;
    transform: translateY(0);
}

.dress-code--2.dress-code-desktop-anim-init.dress-code-desktop-anim-step-2 .dress-code-item--pantone-girls {
    opacity: 1;
    transform: translateX(0);
}

.dress-code--2.dress-code-desktop-anim-init.dress-code-desktop-anim-step-3 .dress-code-men-block {
    opacity: 1;
    transform: translateX(0);
}

.dress-code--2.dress-code-desktop-anim-init.dress-code-desktop-anim-step-4 .dress-code-text--men-note {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .dress-code--2.dress-code-mobile-anim-init .dress-code-mobile-anim-target {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 1.125s ease-out, transform 1.125s ease-out;
    }

    .dress-code--2.dress-code-mobile-anim-init .dress-code-mobile-anim-target.dress-code-mobile-anim-show {
        opacity: 1;
        transform: translateY(0);
    }

    .dress-code--2.dress-code-mobile-anim-init .dress-code-item--pantone-girls .pantone-card {
        opacity: 0;
        translate: 0 0;
        transition: opacity 0.825s ease-out, translate 0.825s ease-out, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .dress-code--2.dress-code-mobile-anim-init .dress-code-item--pantone-girls .pantone-card.card-row-top {
        translate: 26px 0;
    }

    .dress-code--2.dress-code-mobile-anim-init .dress-code-item--pantone-girls .pantone-card.card-row-bottom {
        translate: -26px 0;
    }

    .dress-code--2.dress-code-mobile-anim-init .dress-code-item--pantone-girls .pantone-card.card-anim-show {
        opacity: 1;
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dress-code--2.dress-code-desktop-anim-init .dress-code-item:first-child .dress-code-text,
    .dress-code--2.dress-code-desktop-anim-init .dress-code-item--pantone-girls,
    .dress-code--2.dress-code-desktop-anim-init .dress-code-men-block,
    .dress-code--2.dress-code-desktop-anim-init .dress-code-text--men-note,
    .dress-code--2.dress-code-mobile-anim-init .dress-code-mobile-anim-target,
    .dress-code--2.dress-code-mobile-anim-init .dress-code-item--pantone-girls .pantone-card {
        opacity: 1;
        transform: none;
        translate: 0 0;
        transition: none;
    }
}

/* Женский блок: сетка 6 колонок, подпись только над левой карточкой */
.dress-code--2 .pantone-palette--girls {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: clamp(0.5rem, 2vw, 1rem);
    row-gap: 0.12rem;
    align-items: start;
    width: 100%;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
    box-sizing: border-box;
}

/* Общая типографика подписей ДЕВУШКИ / МУЖЧИНЫ */
.dress-code--2 .pantone-palette-tag {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0 0 0.75rem;
    padding: 0 0 1px;
    font-size: clamp(0.62rem, 1.7vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    color: #6b6b6b;
    text-transform: uppercase;
    line-height: 1;
}

.dress-code--2 h3.pantone-palette-tag {
    margin-block: 0 0.75rem;
    font-family: inherit;
    font-style: normal;
}

.dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

.dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(5) {
    grid-column: 4;
    grid-row: 2;
}

.dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(6) {
    grid-column: 5;
    grid-row: 2;
}

.dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(7) {
    grid-column: 6;
    grid-row: 2;
}

/* Блок мужской палитры: текст вынесен в .dress-code-men-block (на мобильном — над «МУЖЧИНЫ») */
.dress-code--2 .dress-code-men-block {
    margin-top: 1.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Текст про мужчин — те же размеры и цвет, что у абзаца в .dress-code-text */
.dress-code--2 .dress-code-text--men-note {
    text-align: center;
}

.dress-code--2 .dress-code-item--pantone-men {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: clamp(0.5rem, 2vw, 1rem);
    row-gap: 0.12rem;
    align-items: start;
    margin-top: 0;
    box-sizing: border-box;
}

.dress-code--2 .dress-code-item--pantone-men .pantone-palette-tag--men {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: end;
}

.dress-code--2 .dress-code-item--pantone-men .pantone-palette--men {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 2vw, 1rem);
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    padding: 0 0 clamp(0.5rem, 2vw, 1rem);
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .dress-code--2 .dress-code-men-block {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: clamp(1rem, 2.5vw, 2rem);
        row-gap: 0.12rem;
        align-items: start;
    }

    .dress-code--2 .dress-code-men-block .dress-code-item--pantone-men {
        display: contents;
    }

    .dress-code--2 .dress-code-men-block .dress-code-text--men-note {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        text-align: left;
        padding: 0;
    }

    .dress-code--2 .dress-code-men-block .pantone-palette-tag--men {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .dress-code--2 .dress-code-men-block .pantone-palette--men {
        grid-column: 1;
        grid-row: 2;
    }
}

/* Тёплая слоновая кость (оттенок светлого шёлка), видимая рамка */
.dress-code--2 .pantone-card--swatch-ivory {
    border-color: #c8c2b6;
}

.dress-code--2 .pantone-card {
    --pantone-swatch: #ccc;
    position: relative;
    z-index: 0;
    width: clamp(5rem, 15vw, 7.25rem);
    aspect-ratio: 5 / 8;
    display: grid;
    grid-template-rows: 72fr 28fr;
    border: 2px solid var(--pantone-swatch);
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: default;
    pointer-events: none;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 769px) {
    .dress-code--2 .pantone-card {
        width: clamp(5.75rem, 11.5vw, 9rem);
    }
}

.dress-code--2 .pantone-card.active {
    z-index: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dress-code--2 .pantone-card__swatch-wrap {
    min-height: 0;
    padding: 3px;
    background: #fff;
    box-sizing: border-box;
    display: flex;
}

.dress-code--2 .pantone-card__swatch {
    flex: 1;
    min-height: 0;
    background: var(--pantone-swatch);
}

.dress-code--2 .pantone-card__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.12em;
    padding: 0.4rem 0.45rem 0.5rem;
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.15;
}

.dress-code--2 .pantone-card__brand {
    font-size: clamp(0.5rem, 1.5vw, 0.62rem);
    font-weight: 700;
    color: #111;
    letter-spacing: 0.02em;
}

.dress-code--2 .pantone-card__reg {
    font-size: 0.65em;
    font-weight: 700;
    vertical-align: super;
}

.dress-code--2 .pantone-card__code {
    font-size: clamp(0.45rem, 1.35vw, 0.55rem);
    font-weight: 400;
    color: #111;
}

.dress-code--2 .pantone-card__name {
    font-size: clamp(0.46rem, 1.4vw, 0.56rem);
    font-weight: 400;
    color: #111;
    margin-top: 0.1em;
}

.program-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
    flex-direction: row;
    opacity: 0;
    overflow: visible;
    transform: translateY(14px);
}

.timeline-item.animate {
    animation: timelineItemReveal 1.35s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.timeline-time {
    flex: 0 0 120px;
    font-family: 'Bitter', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    transform: translateX(-22px);
    opacity: 0;
    transition:
        transform 1.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.timeline-item.animate .timeline-time {
    transform: translateX(0);
    opacity: 1;
}

.timeline-content {
    position: relative;
    flex: 1;
    margin: 0 1rem;
    transform: translateX(22px);
    opacity: 0;
    overflow: visible;
    transition:
        transform 1.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 1.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.timeline-item.animate .timeline-content {
    transform: translateX(0);
    opacity: 1;
}

@keyframes timelineItemReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content h3 {
    font-family: 'Bitter', serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.timeline-content p {
    color: var(--text-light);
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(
        155deg,
        rgba(249, 230, 225, 0.36) 0%,
        rgba(240, 222, 201, 0.42) 32%,
        rgba(249, 230, 225, 0.4) 62%,
        rgba(230, 209, 205, 0.38) 100%
    );
    height: auto;
    min-height: 100vh;
}

.contact-form-section .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.form-deadline {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-deadline strong {
    color: var(--secondary-color);
}

.wedding-form {
    width: 750px;
    max-width: 750px;
    margin: 0 auto;
    background: none;
    padding: 0;
    border-radius: var(--radius-border);
    box-shadow: none;
    border: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.wedding-form > * {
    position: relative;
    z-index: 1;
}

/* Радио и чекбоксы анкеты — акцент #8E917A */
.wedding-form .radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #8e917a;
    background-color: #ffffff;
    border: 2px solid #8e917a;
    border-radius: 50%;
    align-self: center;
    margin: 0 12px 0 0;
    padding: 0;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.wedding-form .radio-label input[type="radio"]:checked {
    border-color: #8e917a;
    background-color: #ffffff;
}

.wedding-form .radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: #8e917a;
}

.wedding-form .form-group .radio-label input[type="radio"]:checked ~ .radio-text {
    color: #000;
    font-weight: 400;
}

.wedding-form .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #8e917a;
    background-color: #ffffff;
    border: 2px solid #8e917a;
    border-radius: var(--radius-border);
    align-self: center;
    margin: 0 12px 0 0;
    padding: 0;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.wedding-form .checkbox-label input[type="checkbox"]:checked {
    background-color: #8e917a;
    border-color: #8e917a;
}

.wedding-form .checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.wedding-form .form-group .checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
    color: #000;
    font-weight: 400;
}

.guest-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.form-followup-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.guest-form-followup-collapsible {
    overflow: hidden;
    max-height: 4000px;
    opacity: 1;
    transition: max-height 0.55s ease, opacity 0.4s ease, margin 0.4s ease;
}

.wedding-form.is-not-attending .guest-form-followup-collapsible {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
    visibility: hidden;
    transition: max-height 0.55s ease, opacity 0.35s ease, visibility 0s linear 0.45s;
}

.form-group--name {
    position: relative;
    z-index: 1;
}

/* Страницы формы */
.form-page {
    display: flex;
    animation: fadeIn 0.4s ease;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex-direction: column;
    gap: 1rem;
}

.form-page.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Навигация формы */
.form-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0;
    gap: 1rem;
}

.form-navigation:has(.btn-back) {
    padding-top: 0;
}

.btn-next,
.btn-back {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--radius-border);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
}

.btn-next {
    background: var(--secondary-color);
    color: var(--white);
    margin-left: auto;
}

.btn-next:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-back {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
}

.btn-back:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-back:first-child:last-child {
    margin-left: 0;
    margin-right: auto;
}

/* Кнопка отправки в навигации */
.form-navigation .submit-btn {
    flex: 1;
    margin-left: auto;
}

.form-navigation .submit-btn:only-child {
    margin-left: 0;
    width: 100%;
}

.form-group {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    padding: 1.2rem 1.15rem;
    border-radius: var(--radius-border);
    overflow: hidden;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.5) 48%,
        rgba(255, 255, 255, 0.62) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

/* Текст на белом матовом стекле */
.wedding-form .form-group .form-subtitle {
    color: var(--primary-color);
}

.wedding-form .form-group .form-hint {
    color: rgba(0, 0, 0, 0.68);
}

.wedding-form .form-group .radio-text {
    color: #000;
    font-weight: 400;
}

.wedding-form .form-group .checkbox-text {
    color: #000;
    font-weight: 400;
}

.wedding-form .form-group .radio-label:hover {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.wedding-form .form-group .checkbox-label:hover {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-title-group {
    margin-bottom: 2rem;
}

.form-subtitle {
    display: block;
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.form-hint {
    display: block;
    margin-bottom: 0;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-border);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(246, 220, 214, 0.45);
}

.wedding-form .form-group input[type="radio"]:focus,
.wedding-form .form-group input[type="radio"]:focus-visible,
.wedding-form .form-group input[type="checkbox"]:focus,
.wedding-form .form-group input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: none;
}

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

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    width: 100%;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    padding: 1.5rem 1.2rem;
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    margin: 0;
    border-radius: var(--radius-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #ffffff;
    border: 2px solid #808080;
    border-radius: 50%;
    align-self: center;
    margin: 0 12px 0 0;
    padding: 0;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.radio-label input[type="radio"]:checked {
    border-color: #808080;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000;
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: var(--secondary-color);
    font-weight: 600;
}

.radio-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.2;
    flex: 1;
    margin: 0;
    padding: 0;
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1rem;
    width: 100%;
}

@media (min-width: 769px) {
    .checkbox-label-full-width {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    cursor: pointer;
    padding: 1rem 1.2rem;
    position: relative;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 50px;
    box-sizing: border-box;
    border-radius: var(--radius-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #000000;
    background-color: #ffffff;
    border: 2px solid #808080;
    border-radius: var(--radius-border);
    align-self: center;
    margin: 0 12px 0 0;
    padding: 0;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #ffffff;
    border-color: #000000;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
    color: var(--secondary-color);
    font-weight: 600;
}

.checkbox-text {
    color: var(--text-dark);
    font-size: 1rem;
    transition: color 0.3s ease;
    flex: 1;
    line-height: 1.2;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    max-width: 420px;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.36) 0%,
        rgba(104, 103, 103, 0.48) 48%,
        rgba(255, 255, 255, 0.22) 100%
    );
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius-border);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(104, 103, 103, 0.58) 48%,
        rgba(255, 255, 255, 0.28) 100%
    );
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 10px 26px rgba(0, 0, 0, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* «Отправить» — оливковый акцент */
.wedding-form .submit-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #8e917a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.18);
    color: var(--white);
    border-radius: var(--radius-border);
}

.wedding-form .submit-btn:hover {
    background: #9a9d88;
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 22px rgba(0, 0, 0, 0.2);
}

.wedding-form .submit-btn:active {
    background: #7f826f;
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-border);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
    margin-bottom: 1rem;
}

/* Success Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

.success-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.success-popup-content {
    position: relative;
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-border);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-popup.active .success-popup-content {
    transform: scale(1);
}

.success-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.success-popup-close:hover {
    color: var(--secondary-color);
}

.success-popup-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    display: block;
}

.success-popup-message {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Footer — фон как в hero (we.webp) + тёмное матовое стекло поверх; как секции — min-height 100vh + snap */
.footer {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.12),
        inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('src/we.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

@media (max-width: 768px) {
    .footer::after {
        background-image: url('src/we_mini.webp');
    }
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.52) 48%,
        rgba(255, 255, 255, 0.06) 100%
    );
    backdrop-filter: blur(22px) saturate(175%);
    -webkit-backdrop-filter: blur(22px) saturate(175%);
    pointer-events: none;
}

.footer > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 0 1 auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .footer::before {
        background: linear-gradient(
            155deg,
            rgba(30, 30, 30, 0.82) 0%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(25, 25, 25, 0.8) 100%
        );
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.footer > .container > p,
.footer .footer-text {
    font-size: 1.1rem;
}

.footer .footer-text {
    margin-bottom: 0;
}

.footer-tagline {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
}

.footer .container > .footer-tagline:first-child {
    margin-top: 0;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p.footer-tagline {
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.footer-hearts {
    font-size: 1.5rem;
    margin: 1rem 0 2rem 0;
}

.footer-contacts {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 0;
    border-top: none;
}

.footer-section {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.footer-text-emphasis {
    font-weight: 600;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-border);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.social-separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-organizer-row {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.125rem;
    max-width: 100%;
}

/* Кнопки контактов: граница 1px как у «Открыть карту» в карусели транспорта */
.footer-phone {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-border);
    background: linear-gradient(
        155deg,
        var(--map-btn-glass-start) 0%,
        var(--map-btn-glass-mid) 48%,
        var(--map-btn-glass-end) 100%
    );
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(230, 236, 218, 0.32);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.footer-phone:hover {
    color: var(--white);
    text-decoration: none;
    background: linear-gradient(
        155deg,
        var(--map-btn-glass-hover-start) 0%,
        var(--map-btn-glass-hover-mid) 48%,
        var(--map-btn-glass-hover-end) 100%
    );
    border-color: rgba(238, 244, 230, 0.42);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 10px 26px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.footer-phone:active {
    transform: translateY(0);
    opacity: 0.96;
}

.footer-phone-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.footer-phone-text {
    line-height: 1;
}

.footer-social-icons {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

/* Кнопки соцсетей — тот же стиль, что у «Открыть карту» */
.footer-social-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 48px;
    padding: 0.65rem;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: var(--radius-border);
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(
        155deg,
        var(--map-btn-glass-start) 0%,
        var(--map-btn-glass-mid) 48%,
        var(--map-btn-glass-end) 100%
    );
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(230, 236, 218, 0.32);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.footer-social-btn:focus {
    outline: none;
}

.footer-social-btn:focus-visible {
    outline: 1px solid rgba(230, 236, 218, 0.55);
    outline-offset: 2px;
}

.footer-social-btn:hover {
    background: linear-gradient(
        155deg,
        var(--map-btn-glass-hover-start) 0%,
        var(--map-btn-glass-hover-mid) 48%,
        var(--map-btn-glass-hover-end) 100%
    );
    border-color: rgba(238, 244, 230, 0.42);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 10px 26px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.footer-social-btn:active {
    transform: translateY(0);
    opacity: 0.96;
}

.footer-social-btn img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .footer-phone,
    .footer-social-btn {
        background: rgba(142, 145, 122, 0.88);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(230, 236, 218, 0.35);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

    .footer-phone:hover,
    .footer-social-btn:hover {
        background: rgba(118, 125, 102, 0.92);
        border-color: rgba(238, 244, 230, 0.45);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .transport-cards {
        display: none;
    }
    
    .transport-carousel {
        display: block;
    }

    /* 769–1024: карусель видна, но колонка была только ≤768 — текст оказывался слева от кнопки */
    .transport-carousel .carousel-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.5rem;
    }

    /* «Открыть карту» в карусели — оливковое стекло как на десктопе */
    .transport-carousel .carousel-map-btn {
        position: relative;
        isolation: isolate;
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius-border);
        background: rgba(142, 145, 122, 0.78);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(230, 236, 218, 0.32);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
        opacity: 1;
    }

    .transport-carousel .carousel-map-btn:hover {
        background: rgba(154, 157, 136, 0.84);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(238, 244, 230, 0.42);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
        opacity: 1;
    }

    .transport-carousel .carousel-map-btn .map-icon {
        display: none;
    }

    .transport-carousel .carousel-map-btn .map-btn-text {
        display: inline-block;
    }

    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .transport-carousel .carousel-map-btn {
            background: rgba(142, 145, 122, 0.88);
            border: 1px solid rgba(230, 236, 218, 0.35);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
        }

        .transport-carousel .carousel-map-btn:hover {
            background: rgba(118, 125, 102, 0.92);
            border-color: rgba(238, 244, 230, 0.45);
        }
    }

    /* Стекло у стрелок переключения слайдов транспорта (карусель только ≤1024px) */
    .carousel-btn {
        position: relative;
        isolation: isolate;
        background: rgba(104, 103, 103, 0.8);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    }

    .carousel-btn:hover {
        background: rgba(122, 121, 121, 0.86);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.08);
    }

    /* Точки слайдера — тот же стеклянный эффект, что у стрелок */
    .carousel-indicator {
        position: relative;
        isolation: isolate;
        box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(104, 103, 103, 0.8);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    }

    .carousel-indicator.active {
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }

    .carousel-indicator:hover {
        background: rgba(122, 121, 121, 0.86);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.08);
    }

    .carousel-indicator.active:hover {
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(255, 255, 255, 0.52);
        transform: scale(1.08);
    }

    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .carousel-btn {
            background: rgba(104, 103, 103, 0.88);
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
        }

        .carousel-btn:hover {
            background: rgba(0, 0, 0, 0.78);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .carousel-indicator {
            background: rgba(104, 103, 103, 0.88);
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .carousel-indicator.active {
            background: rgba(255, 255, 255, 0.88);
            border-color: rgba(255, 255, 255, 0.45);
        }

        .carousel-indicator:hover {
            background: rgba(0, 0, 0, 0.78);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .carousel-indicator.active:hover {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(255, 255, 255, 0.55);
        }
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-calendar-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 2rem;
        gap: 0.85rem;
    }

    .calendar-preface {
        flex: 0 0 auto;
        width: fit-content;
        max-width: 100%;
        text-align: center;
        align-self: center;
    }

    .calendar-preface__title {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: baseline;
        gap: 0.35em;
    }

    .calendar-preface__line {
        display: inline-block;
    }

    .calendar-preface__line--year {
        margin-top: 0;
    }

    .wedding-calendar {
        width: 100%;
        max-width: none;
        align-self: stretch;
        box-sizing: border-box;
        padding: 0.65rem 0.5rem 0.75rem;
    }

    .wedding-calendar__weekdays {
        gap: 2px;
        margin-bottom: 0.3rem;
        font-size: 0.58rem;
    }

    .wedding-calendar__days {
        gap: 3px;
    }

    .wedding-calendar__pad {
        min-height: 1.55rem;
    }

    .wedding-calendar__day {
        min-height: 1.55rem;
        font-size: 0.76rem;
        border-radius: var(--radius-border);
    }

    .wedding-calendar__day--wedding {
        min-height: 1.5rem;
        font-size: 0.72rem;
    }

    .wedding-calendar__heart {
        width: 2.9rem;
        height: 2.9rem;
    }

    .countdown-title {
        font-size: 1.3rem;
    }

    .countdown-timer {
        gap: 0.8rem;
    }

    .countdown-item {
        padding: 1rem 1.2rem;
        min-width: 70px;
    }
    
    .countdown-item-days {
        min-width: 100px;
        width: 100px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
        margin: 0 0.3rem;
    }

    .location-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .details-content {
        gap: 1.15rem;
    }

    .detail-card {
        padding: 1.2rem 1rem 1.35rem;
    }

    .detail-card__text,
    .detail-content p,
    .about-text p {
        font-size: 1.1rem;
    }
    
    .dress-code-item {
        margin-bottom: 1rem;
    }
    
    .dress-code-text {
        padding-left: 0;
        padding-right: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .dress-code-text p {
        font-size: 1.1rem;
    }

    /* Дресс-код 2: женский блок — два ряда карточек (3×2), подпись над первой колонкой */
    .dress-code--2 .pantone-palette--girls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto repeat(2, auto);
        column-gap: clamp(0.45rem, 2.5vw, 0.85rem);
        row-gap: clamp(0.45rem, 2.5vw, 0.85rem);
    }

    .dress-code--2 .pantone-palette-tag {
        grid-column: 1;
        grid-row: 1;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(7) {
        grid-column: 3;
        grid-row: 3;
    }

    .dress-code--2 .dress-code-item--pantone-men {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dress-code--2 .dress-code-item--pantone-men .pantone-palette--men {
        width: 100%;
        justify-content: space-between;
        gap: clamp(0.45rem, 2.5vw, 0.85rem);
    }

    .dress-code--2 .dress-code-item--pantone-men .pantone-palette-tag--men {
        grid-column: 1;
        grid-row: 1;
    }

    .dress-code--2 .pantone-palette--girls .pantone-card,
    .dress-code--2 .pantone-palette--men .pantone-card {
        width: 100%;
        max-width: none;
    }

    .location-content {
        padding: 0;
    }
    
    .location-header {
        width: calc(100% - 30px);
        margin: 50px auto 1.5rem;
        padding: 1.75rem 1.5rem;
    }

    .location-header .section-title {
        margin-bottom: 1rem;
    }

    .location-header .location-description {
        margin-bottom: 0.75rem;
    }
    
    .transport-carousel {
        width: calc(100% - 30px);
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .carousel-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .carousel-title {
        font-size: 1.3rem;
    }
    
    .carousel-address {
        font-size: 0.95rem;
    }

    .hero-names .name {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-time {
        position: absolute;
        left: 0;
        width: 60px;
        text-align: left;
    }

    .timeline-content {
        margin: 0;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .timeline-content h3 {
        margin-bottom: 0;
        font-size: 1.4rem;
    }
    
    .timeline-time {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
        padding-top: 0rem;
    }
    
    .timeline-item {
        margin-bottom: 0rem;
    }

    .wedding-form {
        width: 90%;
        max-width: 750px;
        padding: 0;
        min-height: 350px;
    }


    .form-navigation {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-next,
    .btn-back {
        width: 100%;
    }

    .radio-group {
        gap: 0.8rem;
    }

    .radio-label,
    .checkbox-label {
        padding: 0.7rem;
    }

    /* Анкета: вертикальное центрирование радио/чекбокса и текста на мобильных */
    .wedding-form .radio-label,
    .wedding-form .checkbox-label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 0.75rem 0.85rem;
        min-height: 48px;
        box-sizing: border-box;
    }

    .wedding-form .radio-label input[type="radio"],
    .wedding-form .checkbox-label input[type="checkbox"] {
        margin: 0;
        flex-shrink: 0;
        align-self: center;
    }

    .wedding-form .radio-text,
    .wedding-form .checkbox-text {
        line-height: 1.45;
    }

    .form-page {
        min-height: 350px;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 8rem;
        flex-direction: column;
        gap: 0;
        line-height: 1.2;
    }
    
    .hero-title .date-separator {
        display: none;
    }
    
    .hero-title .date-day,
    .hero-title .date-month,
    .hero-title .date-year {
        display: block;
    }

    .hero-names {
        flex-direction: column;
        gap: 0.2rem;
    }

    .hero-names .ampersand {
        font-size: 2.4rem;
    }

    .hero-names .name,
    .hero-names .ampersand {
        line-height: 0.9;
    }

    .footer .countdown-container {
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding-top: 2rem;
    }

    .countdown-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.8rem 0.4rem;
        min-width: 60px;
    }
    
    .countdown-item-days {
        min-width: 80px;
        width: 80px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
        margin: 0 0.2rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .social-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-phone {
        font-size: 1rem;
    }

    .footer-social-btn {
        height: 44px;
        padding: 0.55rem;
    }

    .footer-social-btn img {
        width: 24px;
        height: 24px;
    }

    .footer-social {
        flex-direction: column;
        gap: 0.3rem;
    }

    .social-separator {
        display: none;
    }

    .location-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .details-content {
        gap: 1rem;
    }

    .detail-card {
        padding: 1.05rem 0.85rem 1.2rem;
    }

    .detail-card__text,
    .detail-content p,
    .about-text p {
        font-size: 1rem;
    }
    
    .dress-code-item {
        margin-bottom: 0.8rem;
    }
    
    .dress-code-text {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
    
    .dress-code-text p {
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 0rem 1rem 0 1rem;
    }
    
    .timeline-content {
        padding: 0rem 1rem 0 1rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
    
    .timeline-content h3 {
        margin-bottom: 0;
        font-size: 1.4rem;
    }
    
    .timeline-time {
        display: flex;
        align-items: center;
        font-size: 1.4rem;
        padding-top: 0rem;
    }
    
    .timeline-item {
        margin-bottom: 0.8rem;
    }
    
    .location-header {
        width: calc(100% - 20px);
        margin: 40px auto 1.25rem;
        padding: 1.35rem 1rem;
    }

    .location-header .section-title {
        margin-bottom: 0.85rem;
    }

    .location-header .location-description {
        margin-bottom: 0.65rem;
    }
    
    .transport-carousel {
        width: calc(100% - 20px);
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .transport-cards {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .carousel-content {
        padding: 1rem;
    }
    
    .carousel-title {
        font-size: 1.2rem;
    }
    
    .carousel-address {
        font-size: 0.9rem;
    }
    
    .transport-carousel .carousel-map-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicator.active {
        width: 14px;
        height: 14px;
    }

    .wedding-form {
        width: 95%;
        max-width: 100%;
        padding: 0;
        min-height: 300px;
    }

    .form-page {
        min-height: 300px;
    }


    .form-group {
        margin-bottom: 1rem;
    }

    .form-subtitle {
        font-size: 0.95rem;
    }

    .form-hint {
        font-size: 0.85rem;
    }

    .radio-label,
    .checkbox-label {
        padding: 0.6rem 0.8rem;
        min-height: 50px;
    }

    .radio-label input[type="radio"],
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .radio-text,
    .checkbox-text {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .btn-next,
    .btn-back,
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .form-navigation {
        gap: 0.6rem;
    }
}

/* Адаптивность для средних экранов (планшеты в портретной ориентации) */
@media (max-width: 1024px) and (min-width: 769px) {
    .wedding-form {
        width: 85%;
        max-width: 750px;
        padding: 0;
    }
    
    .transport-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

/* Адаптивность для больших планшетов */
@media (max-width: 900px) and (min-width: 481px) {
    .wedding-form {
        width: 90%;
        max-width: 700px;
        padding: 0;
    }

    .form-page {
        min-height: 380px;
    }
}

/* Промежуточные планшеты: делаем Pantone-карточки крупнее (например, 820px) */
@media (max-width: 900px) and (min-width: 769px) {
    .dress-code--2 .pantone-palette--girls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto repeat(2, auto);
        column-gap: clamp(0.55rem, 1.8vw, 0.9rem);
        row-gap: clamp(0.55rem, 1.8vw, 0.9rem);
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
    }

    .dress-code--2 .pantone-palette--girls > .pantone-card:nth-child(7) {
        grid-column: 3;
        grid-row: 3;
    }

    .dress-code--2 .dress-code-item--pantone-men {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: clamp(0.55rem, 1.8vw, 0.9rem);
        column-gap: clamp(0.55rem, 1.8vw, 0.9rem);
    }

    .dress-code--2 .dress-code-men-block {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .dress-code--2 .dress-code-men-block .dress-code-item--pantone-men {
        display: grid;
    }

    .dress-code--2 .dress-code-men-block .pantone-palette-tag--men {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        text-align: left;
    }

    .dress-code--2 .dress-code-item--pantone-men .pantone-palette--men {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: space-between;
        gap: clamp(0.55rem, 1.8vw, 0.9rem);
    }

    .dress-code--2 .dress-code-men-block .dress-code-text--men-note {
        grid-column: auto;
        grid-row: auto;
        text-align: center;
        padding: 0;
    }

    .dress-code--2 .pantone-palette--girls .pantone-card,
    .dress-code--2 .pantone-palette--men .pantone-card {
        width: 100%;
        max-width: none;
    }
}

