﻿/* Обнуление и базовые стили */
@font-face {
    font-family: 'Gogol';
    src: url('fonts/ofont.ru_Gogol.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-body: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'Gogol', 'Cormorant Garamond', serif;
    --color-ivory: #fbf7f1;
    --color-pearl: #fffdf9;
    --color-champagne: #efe3d2;
    --color-blush: #d9a7ad;
    --color-blush-soft: #f4dfe0;
    --color-rose: #b87c86;
    --color-cocoa: #4f4038;
    --color-mocha: #766158;
    --color-taupe: #a49389;
    --color-gold: #b99a68;
    --color-line: rgba(185, 154, 104, 0.26);
    --accent: var(--color-blush);
    --accent-dark: var(--color-rose);
    --accent-soft: var(--color-blush-soft);
    --accent-glow: rgba(217, 167, 173, 0.26);
    --tone-brown: var(--color-cocoa);
    --tone-rose-brown: #75545a;
    --tone-pink: var(--color-blush);
    --rose-beige-1: var(--color-ivory);
    --rose-beige-2: var(--color-champagne);
    --rose-beige-3: var(--color-pearl);
    --rose-beige-4: #f7eee7;
    --rose-beige-5: #e7d8ca;
    --muted: var(--color-mocha);
    --muted-light: var(--color-taupe);
    --text-soft: var(--color-mocha);
    --button-bg: rgba(255, 253, 249, 0.82);
    --button-bg-hover: var(--color-cocoa);
    --button-border: rgba(185, 154, 104, 0.36);
    --button-shadow: 0 10px 24px rgba(79, 64, 56, 0.06);
    --button-shadow-hover: 0 18px 42px rgba(79, 64, 56, 0.12);
    --surface-bg: rgba(255, 253, 249, 0.28);
    --surface-bg-strong: rgba(255, 253, 249, 0.42);
    --surface-border: rgba(255, 255, 255, 0.48);
    --surface-border-warm: rgba(239, 227, 210, 0.46);
    --surface-shadow: 0 12px 28px rgba(79, 64, 56, 0.038);
    --surface-shadow-hover: 0 16px 34px rgba(79, 64, 56, 0.055);
    --radius-pill: 999px;
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --section-y: clamp(22px, 3.2vw, 32px);
    --section-gap: clamp(18px, 2.8vw, 32px);
    --title-rule-gap: 8px;
    --title-content-gap: 20px;
    --text-main: clamp(19px, 1.45vw, 21px);
    --text-large: var(--text-main);
    --text-small: clamp(14px, 1.05vw, 16px);
    --text-meta: var(--text-small);
    --text-control: 13px;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-main);
    font-weight: 400;
    line-height: 1.72;
    color: var(--tone-brown);
    background: var(--color-ivory);
    position: relative;
    padding: 24px 16px;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

p,
li,
a,
label,
input,
select,
textarea,
button {
    font-family: var(--font-body);
}

body.intro-active {
    overflow: hidden;
    background: #f0efe9;
}

.site-background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f5efe7 0%, #f8f3ed 100%);
}

.site-background::before {
    content: "";
    position: absolute;
    top: -8%;
    right: -8%;
    bottom: -8%;
    left: -8%;
    inset: -8%;
    opacity: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.55) 12%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(72deg, rgba(239, 227, 210, 0.54) 14%, rgba(255, 255, 255, 0.08) 34%, rgba(231, 216, 202, 0.46) 50%, rgba(255, 255, 255, 0.06) 66%),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 55% 78%, rgba(232, 220, 208, 0.44), rgba(232, 220, 208, 0) 32%),
        linear-gradient(180deg, rgba(251, 247, 241, 0.96), rgba(244, 238, 230, 0.92));
    transform: scale(1.06);
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.site-background::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 253, 249, 0.46), rgba(251, 247, 241, 0.58)),
        radial-gradient(circle at 50% 0%, rgba(255, 253, 249, 0.28) 0%, rgba(255, 253, 249, 0) 48%),
        linear-gradient(135deg, rgba(239, 227, 210, 0.2), rgba(255, 253, 249, 0.3));
    pointer-events: none;
}

.site-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.74) brightness(1.12) contrast(0.82) sepia(0.1) hue-rotate(-8deg);
    opacity: 0.76;
    transform: scale(1.05);
    transition: opacity 0.35s ease;
}

.site-background.is-static::before {
    opacity: 1;
}

.site-background.is-static .site-background-video {
    opacity: 0;
}

/* EnvelopeIntro */
.envelope-intro {
    --intro-open-duration: 2s;
    --intro-red: #d6a6b1;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.envelope-intro.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-intro__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: #f0efe9;
    transition: opacity 0.1s linear;
}

.envelope-intro__panel {
    --intro-panel-scale: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 320px;
    height: 540px;
    transform: translate(-50%, -50%) scale(var(--intro-panel-scale));
    transform-origin: center center;
}

.envelope-intro__envelope {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    cursor: pointer;
    outline: none;
}

.envelope-intro__envelope:focus-visible {
    outline: 2px solid rgba(214, 166, 177, 0.42);
    outline-offset: 8px;
}

.envelope-intro__piece,
.envelope-intro__seal {
    position: absolute;
    display: block;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.envelope-intro__piece {
    z-index: 3;
    transition:
        transform var(--intro-open-duration) linear,
        opacity var(--intro-open-duration) linear;
}

.envelope-intro__piece--left {
    top: 45px;
    left: -45px;
    width: 113px;
}

.envelope-intro__piece--right {
    top: 45px;
    left: 253px;
    width: 113px;
}

.envelope-intro__piece--bottom {
    top: 179px;
    left: -84px;
    width: 488px;
}

.envelope-intro__piece--top {
    top: -18px;
    left: -105px;
    width: 530px;
}

.envelope-intro__seal {
    top: 210px;
    left: 107px;
    z-index: 5;
    width: 110px;
    transition: opacity 0.1s linear;
}

.envelope-intro__closed-text,
.envelope-intro__note,
.envelope-intro__open-button {
    position: absolute;
    z-index: 6;
    margin: 0;
    text-align: center;
    transition: opacity 0.1s linear;
}

.envelope-intro__closed-text {
    top: 104px;
    left: 50%;
    width: 270px;
    color: var(--tone-brown);
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: 0;
    text-wrap: balance;
    transform: translateX(-50%);
}

.envelope-intro__note {
    top: 342px;
    left: 50%;
    width: 270px;
    color: var(--tone-brown);
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: 0;
    text-wrap: balance;
    transform: translateX(-50%);
}

.envelope-intro__open-button {
    top: 256px;
    left: 80px;
    width: 172px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 253, 252, 0.98);
    font: 500 14px/1.3 var(--font-body);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(133, 84, 102, 0.14);
    text-transform: lowercase;
    cursor: pointer;
}

.envelope-intro__open-button:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.envelope-intro__open-button:disabled {
    cursor: default;
}

.envelope-intro.is-opening .envelope-intro__backdrop,
.envelope-intro.is-opening .envelope-intro__seal,
.envelope-intro.is-opening .envelope-intro__closed-text,
.envelope-intro.is-opening .envelope-intro__note,
.envelope-intro.is-opening .envelope-intro__open-button {
    opacity: 0;
}

.envelope-intro.is-opening .envelope-intro__piece--left {
    opacity: 0;
    transform: translateX(-100px);
}

.envelope-intro.is-opening .envelope-intro__piece--right {
    opacity: 0;
    transform: translateX(100px);
}

.envelope-intro.is-opening .envelope-intro__piece--bottom {
    opacity: 0;
    transform: translateY(140px);
}

.envelope-intro.is-opening .envelope-intro__piece--top {
    opacity: 0;
    transform: translateY(-140px);
}

@media (max-width: 640px), (max-height: 620px), (orientation: portrait) and (max-width: 1199px) {
    .envelope-intro__panel {
        --intro-panel-scale: 1;
        width: 320px;
        height: 540px;
    }

    .envelope-intro__piece--left {
        top: 45px;
        left: -45px;
        width: 113px;
    }

    .envelope-intro__piece--right {
        top: 45px;
        left: 253px;
        width: 113px;
    }

    .envelope-intro__piece--bottom {
        top: 179px;
        left: -84px;
        width: 488px;
    }

    .envelope-intro__piece--top {
        top: -18px;
        left: -105px;
        width: 530px;
    }

    .envelope-intro__seal {
        top: 210px;
        left: 107px;
        width: 110px;
    }

    .envelope-intro__closed-text {
        top: 104px;
        left: 50%;
        width: 270px;
        font-size: 21px;
        line-height: 1.22;
        transform: translateX(-50%);
    }

    .envelope-intro__note {
        top: 342px;
        left: 50%;
        width: 270px;
        font-size: 21px;
        line-height: 1.22;
        transform: translateX(-50%);
    }

    .envelope-intro__open-button {
        top: 256px;
        left: 80px;
        width: 172px;
        font-size: 14px;
    }
}

h1, h2, h3, .section-title {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0;
}

.names {
    font-family: var(--font-display);
}

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

section {
    padding: var(--section-y) 0;
}

.calendar-section,
.rsvp {
    border-radius: 50% 50% 50% 50% / 220px 220px 220px 220px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        var(--surface-shadow);
}

.section-title {
    font-size: clamp(40px, 5.2vw, 58px);
    line-height: 0.98;
    text-align: center;
    margin-bottom: var(--title-content-gap);
    max-width: 100%;
    overflow-wrap: break-word;
    font-weight: 500;
    letter-spacing: 0;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 14px auto 0;
}

.invite-page {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    width: min(840px, 100%);
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 28px;
    overflow: visible;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.invite-page > section {
    position: relative;
    z-index: 0;
}

/* Главный экран */
.hero {
    min-height: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: var(--tone-brown);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(12px, 3svh, 36px) 0 20px;
    width: min(100%, 760px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
}

.hero-photo-intro {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.hero-photo-intro__frame {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 14px);
    padding: 0;
    align-items: stretch;
}

.hero-photo-intro__panel {
    aspect-ratio: 0.435 / 1;
    overflow: hidden;
}

.hero-photo-intro__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.names {
    font-size: clamp(44px, 6.4vw, 60px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0;
    text-shadow: none;
    color: var(--tone-brown);
    font-family: var(--font-display);
    font-style: normal;
    margin-bottom: 12px;
    padding: 0 20px;
}

.names-line {
    display: inline;
}

.names-ampersand {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 300;
    line-height: 1;
    margin: 0 0.14em;
    font-style: normal;
    opacity: 1;
    color: var(--muted);
    font-family: var(--font-display);
}

.hero-date {
    font-size: var(--text-meta);
    margin-bottom: 22px;
    letter-spacing: 0.22em;
    font-weight: 600;
    text-shadow: none;
    color: var(--text-soft);
    font-family: var(--font-body);
    padding: 0 20px;
    text-transform: uppercase;
}

.hero-invite {
    font-size: var(--text-small);
    line-height: 1.78;
    margin-bottom: 0;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: none;
    color: var(--text-soft);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    font-family: var(--font-body);
    letter-spacing: 0;
}

.hero-invite p {
    margin: 0;
}

.hero-invite p + p {
    margin-top: 12px;
}

.dresscode-text p,
.info-content p,
.form-success-note p {
    margin: 0;
}

.dresscode-text p + p,
.hero-invite p + p {
    margin-top: 12px;
}

/* Таймер */
.organizer-contact {
    background: transparent;
    text-align: center;
}

.organizer-contact__text {
    max-width: 640px;
    margin: 0 auto 24px;
}

.organizer-contact__text p {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-small);
    line-height: 1.62;
    color: var(--tone-brown);
}

.organizer-contact__text p + p {
    margin-top: 12px;
}

.organizer-contact__photo {
    margin: 0 auto;
    width: min(100%, 320px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg);
    box-shadow: var(--surface-shadow);
}

.organizer-contact__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.organizer-contact__details {
    margin-top: 18px;
}

.organizer-contact__name {
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: var(--text-small);
    line-height: 1.5;
    color: var(--tone-brown);
}

.organizer-contact__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.organizer-contact__button {
    width: min(100%, 320px);
}

.timer-section {
    background: transparent;
    text-align: center;
}

.timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 15px;
    max-width: 520px;
    margin: 0 auto;
}

.timer-item {
    background: var(--surface-bg);
    padding: 20px 15px;
    border-radius: 12px;
    min-width: 80px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        var(--surface-shadow);
    border: 1px solid var(--surface-border);
}

.timer-number {
    display: block;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    font-family: var(--font-body);
    color: var(--accent);
}

.timer-label {
    font-size: var(--text-meta);
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* Календарь */
.calendar-section {
    text-align: center;
    padding-bottom: clamp(38px, 5.4vw, 56px);
}

.calendar-wrapper {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.calendar {
    background: transparent;
    border-radius: 20px;
    padding: 0 20px 22px;
    box-shadow: none;
    border: none;
    overflow: visible;
}

.calendar-header {
    text-align: center;
    margin-bottom: 25px;
    font-family: var(--font-body);
}

.calendar-month {
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: 0.26em;
    color: var(--color-rose);
    font-family: var(--font-body);
    text-transform: uppercase;
}

.calendar-year {
    font-size: var(--text-small);
    color: var(--muted);
    margin-left: 8px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0e6d8;
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--muted-light);
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 12px 0;
}

.calendar-days span {
    font-size: 18px;
    padding: 8px 0;
    color: var(--text-soft);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.calendar-days .wedding-day {
    --calendar-heart-y: 3px;
    color: var(--tone-brown);
    font-weight: 600;
    position: relative;
    background: transparent;
    z-index: 1;
    overflow: visible;
}

.calendar-days .wedding-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 53px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 110'%3E%3Cpath d='M60 99 C31 76 12 60 12 35 C12 19 24 9 39 9 C49 9 56 14 60 22 C64 14 71 9 81 9 C96 9 108 19 108 35 C108 60 89 76 60 99 Z' fill='%23fffdf9' fill-opacity='0.9' stroke='%23b99a68' stroke-opacity='0.42' stroke-width='2.8' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: center;
    transform: translate(-50%, -50%) translateY(var(--calendar-heart-y));
    z-index: -1;
    animation: calendarHeartPulse 2.7s ease-in-out infinite;
    pointer-events: none;
}

.calendar-days .wedding-day::after {
    content: none;
}

@keyframes calendarHeartPulse {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(var(--calendar-heart-y)) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) translateY(var(--calendar-heart-y)) scale(1.09);
    }
}

.calendar-note {
    text-align: center;
    margin-top: 2px;
    max-width: 64%;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--text-small);
    color: var(--muted);
    font-style: italic;
}

/* Программа дня */
.schedule {
    background: transparent;
}

.timeline {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    --heart-top: 20px;
    --heart-offset-x: 0px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 128px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 1200' preserveAspectRatio='none'%3E%3Cpath d='M64 0 C108 78 108 162 64 240 C20 318 20 402 64 480 C108 558 108 642 64 720 C20 798 20 882 64 960 C108 1038 108 1122 64 1200' fill='none' stroke='%23d6a6b1' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 128px 100%;
    transform: translateX(-50%) scaleY(1);
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

body.has-advanced-effects .timeline::before {
    transform: translateX(-50%) scaleY(0);
}

body.has-advanced-effects .timeline.animate::before {
    transform: translateX(-50%) scaleY(1);
}

.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: var(--heart-top);
    width: 34px;
    height: 34px;
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath d='M32 53.5C18.5 41.8 8 33 8 20.9 8 12.9 14.1 7 21.6 7c4.5 0 8.5 2.2 10.4 5.8C33.9 9.2 37.9 7 42.4 7 49.9 7 56 12.9 56 20.9c0 12.1-10.5 20.9-24 32.6Z' fill='white' stroke='%23d8c6a6' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.68))
        drop-shadow(0 6px 13px rgba(185, 154, 104, 0.22));
    transform: translate(calc(-50% + var(--heart-offset-x)), -50%);
    transition: filter 0.3s ease;
    will-change: transform;
    z-index: 4;
}

.timeline.animate::after {
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.72))
        drop-shadow(0 8px 15px rgba(185, 154, 104, 0.26));
}

.timeline-item {
    display: flex;
    flex-direction: column;
    width: min(400px, calc(50% - 64px));
    margin-bottom: 44px;
    position: relative;
    opacity: 1;
    transform: translateY(36px) scale(0.97);
    transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    min-height: 150px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-left {
    width: 100%;
    max-width: none;
    text-align: inherit;
    padding: 0;
    margin-bottom: 2px;
}

.timeline-time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-rose);
    font-family: var(--font-body);
    line-height: 1;
    letter-spacing: 0.08em;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

.timeline-time-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--color-gold);
    opacity: 0.9;
    transform: translateY(-1px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timeline-time-icon--ceremony,
.timeline-time-icon--banquet,
.timeline-time-icon--dinner {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    stroke-width: 1.7;
}

.timeline-time-icon--ceremony {
    transform: translateY(-1px) translateX(-1px);
}

.timeline-time-icon--banquet {
    transform: translateY(-1px) translateX(-1px);
}

.timeline-time-icon--dinner {
    transform: translateY(-1px) translateX(-1px);
    stroke-width: 1.45;
}

.timeline-heart {
    display: none;
    position: absolute;
    left: 50%;
    top: 18px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    opacity: 0.45;
    z-index: 3 !important;
}

.timeline-heart.animate {
    opacity: 1;
    transform: translateX(-50%);
}

.icon {
    display: block;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
}

.icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--fill {
    fill: currentColor;
}

.timeline-heart .icon {
    width: 100%;
    height: 100%;
    color: #d8b3bb;
    transition: color 0.35s ease, transform 0.35s ease;
}

.timeline-item.active .timeline-heart .icon {
    color: var(--accent);
}

.timeline-item.completed .timeline-heart .icon {
    color: var(--accent);
}

.timeline-right {
    width: 100%;
    max-width: none;
    padding: 0;
    text-align: inherit;
}

.timeline-item--left .timeline-left,
.timeline-item--left .timeline-right {
    text-align: right;
}

.timeline-content {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.timeline-content h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--tone-brown);
    margin-bottom: 4px;
    font-family: var(--font-heading);
    line-height: 1.04;
}

.timeline-content p {
    font-size: var(--text-small);
    color: var(--muted);
    line-height: 1.52;
    margin: 0;
    text-wrap: pretty;
}

.timeline-item.active .timeline-time {
    transform: translateY(-2px) scale(1.04);
    color: var(--accent-dark);
}

.timeline-item.active .timeline-content {
    transform: translateY(-4px);
}

.timeline-item.active .timeline-heart {
    opacity: 0.9;
}

.timeline-item.active .timeline-heart .icon {
    transform: scale(1.15);
}

.timeline-item.completed .timeline-time {
    opacity: 0.85;
}

.timeline-item--right .timeline-left,
.timeline-item--right .timeline-right {
    text-align: left;
}

.timeline-item--left {
    margin-right: auto;
    align-items: flex-end;
    text-align: right;
}

.timeline-item--right {
    margin-left: auto;
    align-items: flex-start;
    text-align: left;
}

.timeline-item:nth-child(1) { transition-delay: 0.02s; }
.timeline-item:nth-child(2) { transition-delay: 0.08s; }
.timeline-item:nth-child(3) { transition-delay: 0.14s; }
.timeline-item:nth-child(4) { transition-delay: 0.2s; }
.timeline-item:nth-child(5) { transition-delay: 0.26s; }

.timeline-item:last-child,
.info-item:last-child {
    margin-bottom: 0;
}

/* Место проведения */
.location {
    background: transparent;
    text-align: center;
}

.location-photo {
    margin: 0 0 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg);
    box-shadow: var(--surface-shadow);
}

.location-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.location-img:hover {
    transform: scale(1.02);
}

.location-name {
    font-size: var(--text-large);
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.location-address {
    font-size: var(--text-small);
    color: var(--tone-brown);
    margin-bottom: 20px;
    white-space: nowrap;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 30px;
    background: var(--button-bg);
    color: var(--tone-brown);
    text-decoration: none;
    border: 1px solid var(--button-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--button-shadow);
    font-size: var(--text-control);
    font-weight: 600;
    transition: transform 0.25s var(--ease-soft), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.map-button:hover {
    transform: translateY(-2px);
    background: var(--button-bg-hover);
    color: var(--color-pearl);
    border-color: rgba(184, 124, 134, 0.42);
    box-shadow: var(--button-shadow-hover);
}

.map-button .icon {
    width: 15px;
    height: 15px;
    margin-right: 8px;
}

.info-icon .icon {
    width: 24px;
    height: 24px;
}

.location-note {
    margin-top: 20px;
    font-size: var(--text-small);
    color: var(--muted);
    font-style: italic;
}

/* Дресс-код */
.dresscode {
    background: transparent;
    text-align: center;
}

.dresscode-text {
    margin-bottom: 25px;
    color: var(--tone-brown);
    font-size: var(--text-small);
}

.dresscode-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: clamp(8px, 1.4vw, 18px);
    width: min(70vw, 640px);
    margin: 0 auto 25px;
    padding: 0;
    isolation: isolate;
}

.dresscode-image {
    width: 100%;
    min-width: 0;
    max-width: 150px;
    display: block;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    mix-blend-mode: multiply;
    opacity: 0.98;
    filter: brightness(0.99) contrast(1.06) saturate(1.02);
    object-fit: contain;
}

.dresscode-note,
.dresscode-caption {
    margin: 0 auto 18px;
    max-width: 640px;
    font-family: var(--font-body);
    font-size: var(--text-small);
    line-height: 1.62;
    color: var(--tone-brown);
}

.dresscode-note {
    margin-top: 0;
    margin-bottom: 26px;
}

.dresscode-caption {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    margin-bottom: 10px;
}

.carousel-section--male {
    margin-top: 52px;
}

/* Организационные моменты */
.info {
    background: transparent;
    text-align: left;
}

.info-subtitle {
    text-align: center;
    color: var(--tone-brown);
    font-size: var(--text-small);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    padding: 20px;
    background: var(--surface-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--surface-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        var(--surface-shadow);
}

.info-item:hover {
    transform: translateX(5px);
    background: var(--surface-bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        var(--surface-shadow-hover);
    border-color: var(--surface-border);
}

.info-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: rgba(244, 223, 224, 0.44);
    border: 1px solid rgba(185, 154, 104, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--color-rose);
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: var(--color-cocoa);
    color: var(--color-pearl);
    transform: scale(1.05);
}

.info-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 8px;
    color: var(--tone-brown);
}

.info-content p {
    font-size: var(--text-small);
    line-height: 1.72;
    color: var(--text-soft);
    margin: 0;
}

/* Фото-пауза перед формой */
.photo-interlude {
    padding: clamp(10px, 1.8vw, 18px) 0 clamp(22px, 3.5vw, 36px);
    background: transparent;
}

.photo-interlude__frame {
    position: relative;
    left: 50%;
    width: 100vw;
    aspect-ratio: 1344 / 350;
    margin: 0 0 0 -50vw;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 2%, #000 5.5%, #000 94.5%, rgba(0, 0, 0, 0.7) 98%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.75) 4%, #000 10%, #000 90%, rgba(0, 0, 0, 0.75) 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 2%, #000 5.5%, #000 94.5%, rgba(0, 0, 0, 0.7) 98%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.75) 4%, #000 10%, #000 90%, rgba(0, 0, 0, 0.75) 96%, transparent 100%);
    mask-composite: intersect;
}

.photo-interlude__frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background:
        linear-gradient(rgba(255, 253, 249, 0.14), rgba(255, 253, 249, 0.14)),
        radial-gradient(circle at 82% 20%, rgba(255, 253, 249, 0.2), transparent 42%),
        linear-gradient(to bottom, rgba(255, 253, 249, 0.12), transparent 34%, transparent 68%, rgba(255, 253, 249, 0.16));
    pointer-events: none;
}

.photo-interlude__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.04) contrast(0.94) saturate(0.86);
}

@media (max-width: 480px) {
    .photo-interlude {
        padding: 8px 0 28px;
    }

    .photo-interlude__frame {
        width: 100vw;
        left: 50%;
        margin-left: -50vw;
        aspect-ratio: 1344 / 350;
        border-radius: 0;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 2.5%, #000 6.5%, #000 93.5%, rgba(0, 0, 0, 0.7) 97.5%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.75) 6%, #000 13%, #000 87%, rgba(0, 0, 0, 0.75) 94%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 2.5%, #000 6.5%, #000 93.5%, rgba(0, 0, 0, 0.7) 97.5%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.75) 6%, #000 13%, #000 87%, rgba(0, 0, 0, 0.75) 94%, transparent 100%);
    }
}

/* Форма RSVP */
.rsvp {
    text-align: center;
}

.rsvp-subtitle {
    color: var(--tone-brown);
    margin-bottom: 30px;
    font-size: var(--text-small);
}

.rsvp-subtitle__date {
    display: inline;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rsvp-form {
    background: transparent;
    padding: 0 25px 46px;
    border-radius: 16px;
    box-shadow: none;
    border: none;
    text-align: left;
    backdrop-filter: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-control);
    font-weight: 600;
    color: var(--tone-brown);
    letter-spacing: 0.04em;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-control);
    font-weight: 600;
    color: var(--tone-brown);
    letter-spacing: 0.04em;
}

.form-hint {
    margin: -2px 0 12px;
    font-size: var(--text-small);
    color: rgba(88, 62, 48, 0.75);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: var(--text-small);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    background: var(--surface-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(184, 124, 134, 0.56);
    background: var(--color-pearl);
    box-shadow: 0 0 0 4px rgba(217, 167, 173, 0.14);
}

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

.checkbox-group {
    display: grid;
    gap: 10px;
}

.checkbox-option {
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin-bottom: 0 !important;
    padding: 16px 18px;
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: var(--surface-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
    position: relative;
}

body:not(.has-advanced-effects) .checkbox-option {
    padding: 10px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 12px;
}

.checkbox-option.is-checked {
    border-color: rgba(214, 166, 177, 0.42);
    background: rgba(255, 252, 247, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.44),
        0 10px 24px rgba(185, 154, 104, 0.08);
}

body:not(.has-advanced-effects) .checkbox-option.is-checked {
    border: none;
    background: transparent;
    box-shadow: none;
}

.checkbox-option:has(input:checked) {
    border-color: rgba(214, 166, 177, 0.42);
    background: rgba(255, 252, 247, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.44),
        0 10px 24px rgba(185, 154, 104, 0.08);
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body:not(.has-advanced-effects) .checkbox-option input {
    position: static;
    opacity: 1;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    -webkit-appearance: checkbox;
    appearance: auto;
}

.checkbox-option::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(122, 98, 88, 0.34);
    background:
        radial-gradient(circle at 50% 50%, transparent 0 5px, transparent 5px),
        rgba(255, 253, 249, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 3px rgba(88, 62, 48, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body:not(.has-advanced-effects) .checkbox-option::before {
    display: none;
}

.checkbox-option.is-checked::before {
    border-color: rgba(184, 124, 134, 0.56);
    background:
        linear-gradient(180deg, rgba(244, 223, 224, 0.92), rgba(232, 198, 201, 0.96)),
        rgba(255, 253, 249, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 2px 8px rgba(184, 124, 134, 0.12);
}

.checkbox-option:has(input:checked)::before {
    border-color: rgba(184, 124, 134, 0.56);
    background:
        linear-gradient(180deg, rgba(244, 223, 224, 0.92), rgba(232, 198, 201, 0.96)),
        rgba(255, 253, 249, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 2px 8px rgba(184, 124, 134, 0.12);
}

.checkbox-option.is-focused {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(217, 167, 173, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body:not(.has-advanced-effects) .checkbox-option.is-focused {
    box-shadow: none;
}

.checkbox-option:has(input:focus-visible) {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(217, 167, 173, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.checkbox-option span {
    font-size: var(--text-small);
    color: var(--tone-brown);
    line-height: 1.45;
}

.is-hidden {
    display: none;
}

.submit-btn {
    background: var(--button-bg);
    color: var(--tone-brown);
    border: 1px solid var(--button-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    box-shadow: var(--button-shadow);
    font-size: var(--text-control);
    font-weight: 600;
    margin: 22px auto 0;
    cursor: pointer;
    transition: transform 0.25s var(--ease-soft), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: min(78%, 360px);
    min-height: 48px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--button-bg-hover);
    color: var(--color-pearl);
    border-color: rgba(184, 124, 134, 0.42);
    box-shadow: var(--button-shadow-hover);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: var(--text-small);
    display: none;
}

.form-message.success {
    display: block;
    background: var(--surface-bg);
    color: var(--tone-brown);
    border: 1px solid var(--surface-border);
}

.form-message.error {
    display: block;
    background: var(--surface-bg);
    color: var(--accent-dark);
    border: 1px solid var(--surface-border);
}

.form-success-note {
    max-width: 460px;
    margin: 28px auto 0;
    padding: 6px 8px 0;
    text-align: center;
}

.form-success-note h3 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 500;
    color: var(--tone-brown);
}

.form-success-note p {
    margin: 0;
    font-size: var(--text-small);
    line-height: 1.65;
    color: var(--tone-brown);
}

.success-reset-btn {
    margin-top: 22px;
    padding: 12px 24px;
    border: 1px solid var(--button-border);
    border-radius: var(--radius-pill);
    background: var(--button-bg);
    color: var(--tone-brown);
    font-family: var(--font-body);
    box-shadow: var(--button-shadow);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease-soft), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: min(100%, 280px);
}

.success-reset-btn:hover {
    background: var(--button-bg-hover);
    border-color: rgba(184, 124, 134, 0.42);
    color: var(--color-pearl);
    box-shadow: var(--button-shadow-hover);
    transform: translateY(-2px);
}

.hero-invite,
.calendar-note,
.timeline-content p,
.location-address,
.location-note,
.dresscode-text,
.info-subtitle,
.info-content p,
.rsvp-subtitle,
.form-hint,
.form-group input,
.form-group select,
.form-group textarea,
.checkbox-option span,
.form-message,
.form-success-note p,
footer p {
    font-family: var(--font-body);
    font-size: var(--text-small);
    line-height: 1.62;
    font-style: normal;
}

/* Кнопка музыки */
.music-cue {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 0;
}

.music-cue__text {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 6px;
    color: var(--color-rose);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    opacity: 0.76;
}

.music-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 58px;
    border: 0;
    background: transparent;
    color: var(--tone-brown);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    line-height: 1;
    filter: drop-shadow(0 12px 18px rgba(107, 79, 69, 0.12));
    transition: transform 0.25s ease, filter 0.25s ease;
    z-index: 1;
    margin: 0 auto;
}

@keyframes musicHeartPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 12px 18px rgba(107, 79, 69, 0.12));
    }

    50% {
        transform: scale(1.09);
        filter: drop-shadow(0 18px 28px rgba(217, 167, 173, 0.24));
    }
}

.music-heart-button__heart {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: center;
    animation: musicHeartPulse 2.7s ease-in-out infinite;
}

.music-heart-button__heart path {
    fill: rgba(255, 253, 249, 0.9);
    stroke: rgba(185, 154, 104, 0.42);
    stroke-width: 2.8;
    stroke-linejoin: round;
    transition: fill 0.25s ease, stroke 0.25s ease;
}

.music-heart-button__icon {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tone-brown);
    flex: 0 0 auto;
}

.music-heart-button__glyph {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: currentColor;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.music-heart-button__glyph--play {
    opacity: 1;
    transform: scale(1);
}

.music-button:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 16px 22px rgba(107, 79, 69, 0.14));
}

.music-button:hover .music-heart-button__heart {
    animation-play-state: paused;
    transform: scale(1.09);
}

.music-button:hover .music-heart-button__heart path {
    fill: var(--color-blush);
    stroke: rgba(184, 124, 134, 0.62);
}

.music-button.playing .music-heart-button__heart path {
    fill: var(--color-blush);
    stroke: rgba(184, 124, 134, 0.62);
}

.music-button.playing .music-heart-button__icon {
    color: var(--tone-brown);
}

.music-button.playing .music-heart-button__glyph--play {
    opacity: 0;
    transform: scale(0.92);
}

.music-button.playing .music-heart-button__glyph--pause {
    opacity: 1;
    transform: scale(1);
}

/* Подвал */
footer {
    text-align: center;
    padding: 28px 20px;
    background: transparent;
    color: var(--text-soft);
    border-radius: 24px;
    overflow: hidden;
}

footer p {
    margin-bottom: 10px;
    font-size: var(--text-small);
}

.footer-signature {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 30px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--tone-rose);
}

.footer-signature span {
    display: block;
}

.info-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Адаптация */
@media (max-width: 420px) {
    :root {
        --section-y: 18px;
        --section-gap: 16px;
        --title-rule-gap: 7px;
        --title-content-gap: 18px;
        --text-main: 16px;
        --text-large: var(--text-main);
        --text-small: 13px;
        --text-meta: var(--text-small);
    }

    body {
        padding: 16px;
    }

    .invite-page {
        width: min(100%, 720px);
        border-radius: 22px;
        padding: 10px;
    }

    .site-background-video {
        transform: scale(1.1);
    }

    .section-title {
        font-size: clamp(27px, 7.4vw, 30px);
        line-height: 1.12;
        letter-spacing: 0.9px;
        padding: 0 8px;
    }

    .names {
        font-size: clamp(36px, 8.8vw, 48px);
        letter-spacing: 0.015em;
    }

    .names-ampersand {
        font-size: 0.7em;
    }
    
    .hero-photo-intro {
        margin-bottom: 20px;
    }

    .hero-photo-intro__frame {
        gap: 8px;
        padding: 0 8px;
    }

    .hero-photo-intro__panel {
        aspect-ratio: 0.435 / 1;
        overflow: hidden;
    }

    .dresscode-gallery {
        gap: 6px;
        width: min(72vw, 280px);
        padding: 0;
    }
    
    .hero-invite {
        font-size: var(--text-small);
        line-height: 1.72;
    }

    .timer-section .section-title {
        font-size: 30px;
    }
    
    .timer-item {
        min-width: 0;
        padding: 14px 8px;
    }
    
    .timer-number {
        font-size: 30px;
    }

    .timer-label {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
    
    .music-cue {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 24px;
        padding: 0;
        justify-content: center;
    }

    .music-cue__text {
        width: 100%;
        max-width: none;
        margin-bottom: 6px;
        font-size: 10px;
        line-height: 1.4;
        white-space: nowrap;
    }

    .music-button {
        width: 58px;
        height: 54px;
        padding: 0;
    }

    .music-heart-button__icon {
        width: 28px;
        height: 28px;
    }
    
    .timeline {
        max-width: 100%;
    }
    
    .timeline-time {
        font-size: 14px;
    }
    
    .timeline-heart {
        width: 14px;
        height: 14px;
        top: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 3px;
        line-height: 1.04;
    }
    
    .timeline-content p {
        font-size: var(--text-small);
        line-height: 1.45;
    }
    
    .timeline-item {
        width: min(300px, calc(50% - 28px));
        margin-bottom: 38px;
        min-height: 0;
    }

    .timeline-content {
        padding: 0;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 20px 15px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .info-content h3 {
        font-size: 18px;
    }
    
    .calendar-days .wedding-day {
        --calendar-heart-y: 2px;
        font-size: 16px;
        position: relative;
    }

    .calendar-days .wedding-day::before {
        width: 50px;
        height: 46px;
    }

    .calendar-days span {
        font-size: 16px;
        padding: 6px 0;
    }
    
    .calendar-month {
        font-size: 13px;
    }
    
    .calendar-year {
        font-size: 13px;
    }
    .info-item {
        opacity: 1;
        transform: translateY(20px);
        transition: all 0.5s ease-out;
    }
    
    .info-item.visible-mobile {
        opacity: 1;
        transform: translateY(0);
        background: var(--surface-bg);
        border-color: var(--surface-border);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.36),
            var(--surface-shadow);
    }
    
    .info-item.visible-mobile .info-icon {
        background: var(--accent);
        color: var(--rose-beige-3);
        transform: scale(1.05);
    }

    .carousel-title {
        font-size: 20px;
    }
}

/* Анимация появления блоков при прокрутке */
body.has-scroll-animation .organizer-contact,
body.has-scroll-animation .timer-section,
body.has-scroll-animation .calendar-section,
body.has-scroll-animation .schedule,
body.has-scroll-animation .location,
body.has-scroll-animation .dresscode,
body.has-scroll-animation .info,
body.has-scroll-animation .photo-interlude,
body.has-scroll-animation .rsvp {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.has-scroll-animation .organizer-contact.visible-scroll,
body.has-scroll-animation .timer-section.visible-scroll,
body.has-scroll-animation .calendar-section.visible-scroll,
body.has-scroll-animation .schedule.visible-scroll,
body.has-scroll-animation .location.visible-scroll,
body.has-scroll-animation .dresscode.visible-scroll,
body.has-scroll-animation .info.visible-scroll,
body.has-scroll-animation .photo-interlude.visible-scroll,
body.has-scroll-animation .rsvp.visible-scroll {
    opacity: 1;
    transform: translateY(0);
}
/* Блок организационных моментов анимируем отдельно, чтобы контент был виден */
body.has-scroll-animation .info {
    transform: translateY(30px);
}

body.has-scroll-animation .info .info-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.has-scroll-animation .info.visible-scroll .info-item {
    opacity: 1;
    transform: translateY(0);
}

/* Поэтапное появление элементов внутри .info */
body.has-scroll-animation .info.visible-scroll .info-item:nth-child(1) { transition-delay: 0.1s; }
body.has-scroll-animation .info.visible-scroll .info-item:nth-child(2) { transition-delay: 0.2s; }
body.has-scroll-animation .info.visible-scroll .info-item:nth-child(3) { transition-delay: 0.3s; }
body.has-scroll-animation .info.visible-scroll .info-item:nth-child(4) { transition-delay: 0.4s; }

.simple-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100vw, 1440px);
    left: 50%;
    margin-left: calc(-1 * min(50vw, 720px));
    padding: 0 clamp(12px, 2.2vw, 28px);
}

.simple-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(12px, calc((min(100vw, 1440px) - 250px) / 2));
    gap: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding: 10px max(12px, calc((min(100vw, 1440px) - 250px) / 2));
}

.simple-track::-webkit-scrollbar {
    display: none;
}

.simple-slide {
    flex: 0 0 auto;
    width: 250px;
    scroll-snap-align: center;
    opacity: 1;
    transform: none;
    transition: box-shadow 0.35s ease;
}

.simple-slide img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: var(--surface-bg);
    transition: box-shadow 0.35s ease;
}

.simple-slide.active {
    opacity: 1;
    transform: none;
}

.simple-slide.active img {
    box-shadow: var(--surface-shadow-hover);
}

.simple-prev, .simple-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--button-bg);
    color: var(--tone-brown);
    border: 1px solid var(--button-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    box-shadow: var(--button-shadow);
    transition: transform 0.25s var(--ease-soft), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.simple-prev:hover,
.simple-next:hover {
    background: var(--button-bg-hover);
    color: var(--color-pearl);
    border-color: rgba(184, 124, 134, 0.42);
    box-shadow: var(--button-shadow-hover);
}

.simple-prev { left: 8px; }
.simple-next { right: 8px; }

.simple-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.simple-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c2a9ab;
    border: none;
    padding: 0;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.simple-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent);
}

.organizer-contact,
.timer-section,
.schedule,
.location,
.dresscode,
.info {
    border-top: none;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .invite-page {
        width: 100%;
        border-radius: 18px;
        padding: 8px;
    }

    .envelope-intro__panel {
        --intro-panel-scale: 1;
        left: 50%;
        top: 50%;
        width: 320px;
        height: 540px;
        transform: translate(-50%, -50%) scale(var(--intro-panel-scale));
    }

    .envelope-intro__piece--left {
        top: 45px;
        left: -45px;
        width: 113px;
    }

    .envelope-intro__piece--right {
        top: 45px;
        left: 253px;
        width: 113px;
    }

    .envelope-intro__piece--bottom {
        top: 179px;
        left: -84px;
        width: 488px;
    }

    .envelope-intro__piece--top {
        top: -18px;
        left: -105px;
        width: 530px;
    }

    .envelope-intro__seal {
        top: 210px;
        left: 107px;
        width: 110px;
    }

    .envelope-intro__closed-text {
        top: 104px;
        left: 50%;
        width: 270px;
        font-size: 21px;
        line-height: 1.22;
        transform: translateX(-50%);
    }

    .envelope-intro__note {
        top: 342px;
        left: 50%;
        width: 270px;
        font-size: 21px;
        line-height: 1.22;
        transform: translateX(-50%);
    }

    .envelope-intro__open-button {
        top: 256px;
        left: 80px;
        width: 172px;
        font-size: 13px;
    }

    .calendar-section,
    .rsvp {
        border-radius: 50% 50% 50% 50% / 180px 180px 180px 180px;
    }

    .calendar-section {
        padding-bottom: 44px;
    }

    .calendar-note {
        max-width: 58%;
        margin-top: 0;
        line-height: 1.45;
    }

    .form-success-note {
        max-width: 320px;
        margin-top: 24px;
        padding-top: 2px;
    }

    .form-success-note h3 {
        font-size: 28px;
    }

    .form-success-note p {
        font-size: var(--text-small);
        line-height: 1.55;
    }

    .hero {
        min-height: auto;
        padding: var(--section-y) 0;
    }

    .hero-content {
        padding-top: 0;
    }

}
