/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #0b0b0a;
    --bg-soft: #11100e;
    --surface: #151310;

    --text: #f1eee8;
    --muted: #9d978e;

    --accent: #b69a6a;
    --accent-light: #d4c19b;

    --line: rgba(214, 193, 155, 0.16);

    --serif:
        "Cormorant Garamond",
        Georgia,
        serif;

    --sans:
        "Manrope",
        Arial,
        sans-serif;

    --container: 1180px;
    --narrow: 760px;

    --section-space:
        clamp(
            88px,
            10vw,
            150px
        );

    --ease:
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
    background: var(--bg);
}


body {
    margin: 0;

    min-width: 320px;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(182, 154, 106, 0.025),
            transparent 42%
        ),
        var(--bg);

    color: var(--text);

    font-family: var(--sans);

    font-size: 16px;

    font-weight: 300;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}


body.intro-active,
body.modal-open {
    overflow: hidden;
}


button,
input,
select,
textarea {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    color: inherit;
}


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


a {
    color: inherit;
}


::selection {
    background: var(--accent);
    color: var(--bg);
}


/* =========================================================
   PARTICLES
========================================================= */

#particles {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    pointer-events: none;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow {
    margin: 0 0 22px;

    color: var(--accent);

    font-family: var(--sans);

    font-size: 0.69rem;

    font-weight: 500;

    letter-spacing: 0.26em;

    line-height: 1.4;

    text-transform: uppercase;
}


.section-title {
    margin:
        0 0
        clamp(
            28px,
            4vw,
            48px
        );

    color: var(--text);

    font-family: var(--serif);

    font-size:
        clamp(
            2.7rem,
            6vw,
            5.3rem
        );

    font-weight: 300;

    letter-spacing: -0.025em;

    line-height: 0.94;
}


.section-description {
    max-width: 620px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 0.96rem;

    line-height: 1.9;
}


/* =========================================================
   LUXURY INTRO
========================================================= */

.intro {
    position: fixed;

    inset: 0;

    display: grid;

    place-items: center;

    min-height: 100vh;
    min-height: 100svh;

    padding:
        max(
            45px,
            env(safe-area-inset-top)
        )
        28px
        max(
            45px,
            env(safe-area-inset-bottom)
        );

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at center,
            #15130f 0%,
            #0b0b0a 48%,
            #070706 100%
        );

    z-index: 10000;

    isolation: isolate;

    transition:
        opacity 0.65s ease 0.48s,
        visibility 1.15s;
}


/* РАМКА */

.intro-frame {
    position: absolute;

    inset: 22px;

    border:
        1px solid
        rgba(
            214,
            193,
            155,
            0.09
        );

    pointer-events: none;

    z-index: 4;

    transition:
        opacity 0.7s ease,
        transform 1s var(--ease);
}


/* ЛЁГКАЯ ФАКТУРА */

.intro-noise {
    position: absolute;

    inset: 0;

    opacity: 0.075;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.22'/%3E%3C/svg%3E");

    pointer-events: none;

    z-index: 3;
}


/* =========================================================
   INTRO PHOTO
========================================================= */

.intro-photo-wrap {
    position: absolute;

    top: 50%;
    left: 50%;

    width:
        clamp(
            260px,
            34vw,
            490px
        );

    height:
        min(
            72vh,
            680px
        );

    transform:
        translate(
            -50%,
            -50%
        );

    overflow: hidden;

    pointer-events: none;

    z-index: 0;

    transition:
        transform 1.4s var(--ease),
        opacity 0.9s ease;
}


/* САМА ФОТОГРАФИЯ */

.intro-photo {
    position: absolute;

    inset: 0;

    background-position: center;
    background-size: cover;

    filter:
        saturate(0.7)
        contrast(1.04)
        brightness(0.67);

    transform: scale(1.035);

    transition:
        transform 1.5s var(--ease),
        filter 1.2s ease;
}


/* ЗАТЕМНЕНИЕ ФОТО */

.intro-photo-shade {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7, 7, 6, 0.48) 0%,
            rgba(7, 7, 6, 0.25) 35%,
            rgba(7, 7, 6, 0.31) 62%,
            rgba(7, 7, 6, 0.76) 100%
        ),
        linear-gradient(
            90deg,
            rgba(7, 7, 6, 0.32),
            transparent 35%,
            transparent 65%,
            rgba(7, 7, 6, 0.32)
        );

    z-index: 1;
}


/* ТОНКАЯ РАМКА ФОТО */

.intro-photo-border {
    position: absolute;

    inset: 0;

    border:
        1px solid
        rgba(
            214,
            193,
            155,
            0.11
        );

    box-shadow:
        inset 0 0 80px
        rgba(0, 0, 0, 0.2);

    z-index: 2;
}


/* МЯГКО РАСТВОРЯЕМ ФОТО ПО КРАЯМ */

.intro-photo-wrap::before {
    content: "";

    position: absolute;

    inset: -2px;

    background:
        linear-gradient(
            180deg,
            rgba(11, 11, 10, 0.92) 0%,
            transparent 18%,
            transparent 75%,
            rgba(11, 11, 10, 0.92) 100%
        );

    pointer-events: none;

    z-index: 3;
}


/* =========================================================
   INTRO CONTENT
========================================================= */

.intro-content {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    width:
        min(
            100%,
            720px
        );

    text-align: center;

    z-index: 5;
}


.intro-eyebrow {
    margin: 0 0 29px;

    color: var(--accent);

    font-size: 0.62rem;

    font-weight: 500;

    letter-spacing: 0.32em;

    line-height: 1.4;

    text-transform: uppercase;

    text-shadow:
        0 2px 20px
        rgba(0, 0, 0, 0.75);

    transition:
        opacity 0.5s ease,
        transform 0.8s var(--ease);
}


.intro-name {
    margin: 0;

    color: var(--text);

    font-family: var(--serif);

    font-size:
        clamp(
            4.6rem,
            14vw,
            9rem
        );

    font-weight: 300;

    letter-spacing: -0.045em;

    line-height: 0.78;

    text-shadow:
        0 10px 45px
        rgba(
            0,
            0,
            0,
            0.72
        );

    transition:
        opacity 0.65s ease,
        letter-spacing 1.05s var(--ease),
        transform 1.05s var(--ease);
}


.intro-symbol {
    display: block;

    margin: 31px 0 24px;

    color: var(--accent);

    font-size: 0.6rem;

    text-shadow:
        0 3px 15px
        rgba(0, 0, 0, 0.8);

    transition:
        opacity 0.5s ease,
        transform 0.8s var(--ease);
}


.intro-date {
    margin: 0 0 47px;

    color:
        rgba(
            241,
            238,
            232,
            0.75
        );

    font-size: 0.67rem;

    font-weight: 400;

    letter-spacing: 0.22em;

    line-height: 1.6;

    text-transform: uppercase;

    text-shadow:
        0 2px 18px
        rgba(0, 0, 0, 0.8);

    transition:
        opacity 0.5s ease,
        transform 0.8s var(--ease);
}


/* =========================================================
   INTRO BUTTON
========================================================= */

.intro-button {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 45px;

    min-width: 290px;

    min-height: 57px;

    padding: 0 22px;

    border:
        1px solid
        rgba(
            182,
            154,
            106,
            0.75
        );

    background:
        rgba(
            9,
            9,
            8,
            0.28
        );

    color: var(--text);

    font-size: 0.64rem;

    font-weight: 500;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    cursor: pointer;

    overflow: hidden;

    isolation: isolate;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition:
        color 0.45s ease,
        border-color 0.45s ease,
        transform 0.45s var(--ease),
        box-shadow 0.45s ease,
        opacity 0.5s ease;
}


/* ЗАЛИВКА ЦВЕТОМ */

.intro-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        var(--accent);

    transform:
        scaleX(0);

    transform-origin:
        left center;

    transition:
        transform 0.55s
        var(--ease);

    z-index: 0;
}


/* ТЕКСТ НАД ЗАЛИВКОЙ */

.intro-button-label,
.intro-button-arrow {
    position: relative;

    z-index: 2;
}


.intro-button:hover,
.intro-button:focus-visible {
    border-color:
        var(--accent);

    color:
        #0b0b0a;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 35px
        rgba(
            0,
            0,
            0,
            0.28
        );
}


/* ПРИ НАВЕДЕНИИ ЗАЛИВКА ИДЁТ СЛЕВА НАПРАВО */

.intro-button:hover::before,
.intro-button:focus-visible::before {
    transform:
        scaleX(1);
}


.intro-button-arrow {
    font-size: 1rem;

    font-weight: 300;

    letter-spacing: 0;

    transition:
        transform 0.45s
        var(--ease);
}


.intro-button:hover
.intro-button-arrow,
.intro-button:focus-visible
.intro-button-arrow {
    transform:
        translateX(5px);
}


.intro-caption {
    margin: 29px 0 0;

    color:
        rgba(
            157,
            151,
            142,
            0.58
        );

    font-size: 0.52rem;

    font-weight: 500;

    letter-spacing: 0.24em;

    text-transform: uppercase;

    text-shadow:
        0 2px 15px
        rgba(0, 0, 0, 0.8);

    transition:
        opacity 0.45s ease;
}


/* =========================================================
   INTRO OPENING ANIMATION
========================================================= */

.intro.is-opening {
    opacity: 0;

    visibility: hidden;
}


.intro.is-opening
.intro-photo-wrap {
    opacity: 0;

    transform:
        translate(
            -50%,
            -50%
        )
        scale(1.08);
}


.intro.is-opening
.intro-photo {
    transform:
        scale(1.14);
}


.intro.is-opening
.intro-frame {
    opacity: 0;

    transform:
        scale(0.98);
}


.intro.is-opening
.intro-name {
    opacity: 0;

    letter-spacing: 0.08em;

    transform:
        scale(1.03);
}


.intro.is-opening
.intro-eyebrow {
    opacity: 0;

    transform:
        translateY(-12px);
}


.intro.is-opening
.intro-symbol {
    opacity: 0;

    transform:
        scale(0.4);
}


.intro.is-opening
.intro-date {
    opacity: 0;

    transform:
        translateY(9px);
}


.intro.is-opening
.intro-button {
    opacity: 0;

    transform:
        translateY(15px);
}


.intro.is-opening
.intro-caption {
    opacity: 0;
}


.intro.hidden {
    display: none;
}


/* =========================================================
   MUSIC
========================================================= */

.music-button {
    position: fixed;

    top:
        max(
            22px,
            calc(
                env(
                    safe-area-inset-top
                )
                + 14px
            )
        );

    right:
        max(
            22px,
            calc(
                env(
                    safe-area-inset-right
                )
                + 14px
            )
        );

    display: grid;

    place-items: center;

    width: 48px;
    height: 48px;

    padding: 0;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.13
        );

    border-radius: 50%;

    background:
        rgba(
            9,
            9,
            8,
            0.58
        );

    color: var(--text);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    cursor: pointer;

    z-index: 9000;

    transition:
        border-color 0.3s,
        background 0.3s,
        transform 0.3s;
}


.music-button:hover {
    border-color: var(--accent);

    background:
        rgba(
            15,
            14,
            12,
            0.82
        );

    transform:
        translateY(-1px);
}


.music-button svg {
    width: 18px;
    height: 18px;
}


.music-status-dot {
    position: absolute;

    right: 4px;
    bottom: 5px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--muted);

    transition:
        background 0.3s,
        box-shadow 0.3s;
}


.music-button.playing
.music-status-dot {
    background: var(--accent-light);

    box-shadow:
        0 0 0 3px
        rgba(
            182,
            154,
            106,
            0.14
        );
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    display: grid;

    place-items: center;

    min-height: 100vh;
    min-height: 100svh;

    padding:
        120px 24px
        110px;

    overflow: hidden;

    isolation: isolate;

    z-index: 2;
}


.hero-image,
.hero-shade,
.hero-grain {
    position: absolute;
    inset: 0;
}


.hero-image {
    background-position: center;

    background-size: cover;

    transform: scale(1.025);

    z-index: -4;
}


.hero-shade {
    background:
        linear-gradient(
            180deg,
            rgba(6, 6, 5, 0.57) 0%,
            rgba(7, 7, 6, 0.29) 38%,
            rgba(8, 8, 7, 0.6) 75%,
            var(--bg) 100%
        ),
        linear-gradient(
            90deg,
            rgba(5, 5, 4, 0.22),
            transparent 42%,
            rgba(5, 5, 4, 0.22)
        );

    z-index: -3;
}


.hero-grain {
    opacity: 0.07;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.2'/%3E%3C/svg%3E");

    z-index: -2;
}


.hero-content {
    width:
        min(
            100%,
            980px
        );

    text-align: center;
}


.hero-rule {
    width: 1px;

    height: 62px;

    margin:
        0 auto
        30px;

    background:
        linear-gradient(
            transparent,
            var(--accent)
        );

    opacity: 0.8;
}


.hero-eyebrow {
    color: var(--accent-light);
}


.hero-title {
    margin: 0;
}


.hero-name {
    display: block;

    font-family: var(--serif);

    font-size:
        clamp(
            5rem,
            14vw,
            11rem
        );

    font-weight: 300;

    letter-spacing: -0.055em;

    line-height: 0.75;

    text-shadow:
        0 10px 50px
        rgba(
            0,
            0,
            0,
            0.35
        );
}


.hero-mark {
    display: block;

    margin: 31px 0 23px;

    color: var(--accent);

    font-size: 0.78rem;
}


.hero-age {
    display: block;

    color:
        rgba(
            241,
            238,
            232,
            0.9
        );

    font-family: var(--serif);

    font-size:
        clamp(
            2rem,
            4vw,
            3.25rem
        );

    font-weight: 300;

    letter-spacing: 0.02em;
}


.hero-date {
    margin: 30px 0 0;

    color:
        rgba(
            241,
            238,
            232,
            0.72
        );

    font-size: 0.72rem;

    font-weight: 500;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    width:
        min(
            100%,
            640px
        );

    margin:
        60px auto
        0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.14
        );
}


.countdown-cell {
    position: relative;

    padding:
        18px 10px
        17px;

    text-align: center;
}


.countdown-cell:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 27%;
    right: 0;

    width: 1px;
    height: 46%;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );
}


.countdown-number {
    display: block;

    font-family: var(--serif);

    font-size:
        clamp(
            2rem,
            4vw,
            3.1rem
        );

    font-weight: 300;

    line-height: 1;
}


.countdown-label {
    display: block;

    margin-top: 6px;

    color:
        rgba(
            241,
            238,
            232,
            0.53
        );

    font-size: 0.58rem;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


.countdown-finished {
    grid-column: 1 / -1;

    margin: 0;

    padding: 24px;

    font-family: var(--serif);

    font-size: 1.8rem;
}


/* =========================================================
   SCROLL
========================================================= */

.scroll-cue {
    position: absolute;

    bottom:
        max(
            28px,
            calc(
                env(
                    safe-area-inset-bottom
                )
                + 14px
            )
        );

    left: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    color:
        rgba(
            241,
            238,
            232,
            0.52
        );

    font-size: 0.58rem;

    font-weight: 500;

    letter-spacing: 0.2em;

    text-decoration: none;

    text-transform: uppercase;

    transform:
        translateX(-50%);
}


.scroll-line {
    width: 1px;

    height: 28px;

    background:
        linear-gradient(
            var(--accent),
            transparent
        );

    animation:
        scrollPulse
        2.2s
        ease-in-out
        infinite;
}


@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.35;

        transform:
            scaleY(0.7);

        transform-origin: top;
    }

    50% {
        opacity: 1;

        transform:
            scaleY(1);
    }
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    position: relative;

    padding:
        var(--section-space)
        24px;

    z-index: 2;
}


.section-soft {
    background:
        linear-gradient(
            180deg,
            rgba(
                255,
                255,
                255,
                0.008
            ),
            transparent
        ),
        var(--bg-soft);

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.025
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.025
        );
}


.section-inner {
    width:
        min(
            100%,
            var(--container)
        );

    margin: 0 auto;
}


.section-inner.narrow {
    width:
        min(
            100%,
            var(--narrow)
        );
}


.section-inner.center {
    text-align: center;
}


.section-heading {
    margin-bottom:
        clamp(
            48px,
            7vw,
            90px
        );
}


/* =========================================================
   INVITATION
========================================================= */

.invitation-section {
    text-align: center;
}


.invitation-copy {
    max-width: 670px;

    margin: 0 auto;

    color: var(--muted);

    font-size:
        clamp(
            0.98rem,
            1.5vw,
            1.08rem
        );

    line-height: 2;
}


.invitation-copy p {
    margin: 0;
}


.invitation-copy p + p {
    margin-top: 20px;
}


.fine-ornament {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    width: 150px;

    margin:
        clamp(
            50px,
            7vw,
            76px
        )
        auto
        0;
}


.fine-ornament span {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent)
        );
}


.fine-ornament span:last-child {
    transform:
        scaleX(-1);
}


.fine-ornament i {
    color: var(--accent);

    font-size: 0.54rem;

    font-style: normal;
}


/* =========================================================
   PROGRAM
========================================================= */

.schedule {
    border-top:
        1px solid
        var(--line);
}


.schedule-item {
    display: grid;

    grid-template-columns:
        54px
        minmax(
            100px,
            150px
        )
        1fr;

    gap:
        clamp(
            20px,
            4vw,
            54px
        );

    align-items: start;

    padding:
        clamp(
            30px,
            4vw,
            46px
        )
        0;

    border-bottom:
        1px solid
        var(--line);
}


.schedule-number {
    padding-top: 7px;

    color:
        rgba(
            182,
            154,
            106,
            0.55
        );

    font-size: 0.6rem;

    font-weight: 500;

    letter-spacing: 0.16em;
}


.schedule-time {
    color: var(--accent-light);

    font-family: var(--serif);

    font-size:
        clamp(
            1.9rem,
            3vw,
            2.5rem
        );

    font-weight: 300;

    line-height: 1;
}


.schedule-content h3 {
    margin:
        -4px 0 10px;

    font-family: var(--serif);

    font-size:
        clamp(
            1.75rem,
            3vw,
            2.5rem
        );

    font-weight: 300;

    line-height: 1.05;
}


.schedule-content p {
    max-width: 560px;

    margin: 0;

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.8;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
    display: grid;

    grid-template-columns:
        1.16fr
        0.84fr;

    grid-template-rows:
        290px
        290px;

    gap: 14px;
}


.gallery-item {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 0;

    border: 0;

    background: var(--surface);

    cursor: pointer;

    overflow: hidden;
}


.gallery-item-1 {
    grid-row:
        span 2;
}


.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.78)
        contrast(1.02)
        brightness(0.86);

    transition:
        transform 1s var(--ease),
        filter 0.8s var(--ease);
}


.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform:
        scale(1.035);

    filter:
        saturate(0.9)
        contrast(1.02)
        brightness(0.95);
}


.gallery-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(
                7,
                7,
                6,
                0.78
            )
            100%
        );
}


.gallery-caption {
    position: absolute;

    right: 22px;
    bottom: 19px;
    left: 22px;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    font-size: 0.68rem;

    font-weight: 500;

    letter-spacing: 0.14em;

    text-align: left;

    text-transform: uppercase;
}


/* =========================================================
   DRESS CODE
========================================================= */

.palette {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap:
        clamp(
            15px,
            3vw,
            25px
        );

    margin-top:
        clamp(
            42px,
            6vw,
            64px
        );
}


.palette-color {
    position: relative;

    display: grid;

    place-items: center;

    width: 58px;
    height: 58px;

    padding: 5px;

    border:
        1px solid
        transparent;

    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
        border-color 0.35s,
        transform 0.35s;
}


.palette-color span {
    display: block;

    width: 100%;
    height: 100%;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );

    border-radius: 50%;

    background:
        var(--swatch);
}


.palette-color:hover,
.palette-color:focus-visible {
    border-color: var(--accent);

    transform:
        translateY(-3px);
}


.palette-name {
    min-height: 24px;

    margin:
        23px 0 0;

    color:
        var(--accent-light);

    font-family:
        var(--serif);

    font-size:
        1.25rem;
}


/* =========================================================
   VENUE
========================================================= */

.venue {
    display: grid;

    grid-template-columns:
        minmax(
            0,
            1.15fr
        )
        minmax(
            320px,
            0.85fr
        );

    min-height: 520px;

    border:
        1px solid
        var(--line);

    background:
        rgba(
            255,
            255,
            255,
            0.012
        );
}


.venue-image {
    min-height: 520px;

    background-position: center;

    background-size: cover;

    filter:
        saturate(0.78)
        brightness(0.86);
}


.venue-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        clamp(
            40px,
            6vw,
            78px
        );
}


.venue-small {
    margin:
        0 0 18px;

    color: var(--accent);

    font-size: 0.62rem;

    font-weight: 500;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


.venue-name {
    margin: 0;

    font-family: var(--serif);

    font-size:
        clamp(
            2.4rem,
            5vw,
            4.3rem
        );

    font-weight: 300;

    letter-spacing: -0.03em;

    line-height: 0.96;
}


.venue-address {
    margin:
        25px 0 0;

    color: var(--accent-light);

    font-size: 0.83rem;

    line-height: 1.7;
}


.venue-description {
    margin:
        24px 0 32px;

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.8;
}


.text-link {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    width: fit-content;

    padding-bottom: 5px;

    border-bottom:
        1px solid
        rgba(
            182,
            154,
            106,
            0.5
        );

    color: var(--text);

    font-size: 0.7rem;

    font-weight: 500;

    letter-spacing: 0.13em;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        color 0.3s,
        border-color 0.3s;
}


.text-link:hover {
    color: var(--accent-light);

    border-color:
        var(--accent-light);
}


/* =========================================================
   HASHTAG
========================================================= */

.hashtag-section {
    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.035
        );

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.035
        );
}


.hashtag {
    margin:
        0 0 30px;

    color: var(--text);

    font-family: var(--serif);

    font-size:
        clamp(
            3.2rem,
            8vw,
            7rem
        );

    font-weight: 300;

    letter-spacing: -0.04em;

    line-height: 0.9;

    overflow-wrap: anywhere;
}


/* =========================================================
   RSVP
========================================================= */

.rsvp-section {
    padding-top:
        clamp(
            90px,
            12vw,
            170px
        );

    padding-bottom:
        clamp(
            90px,
            12vw,
            170px
        );
}


.rsvp-wrap {
    display: grid;

    grid-template-columns:
        minmax(
            0,
            0.85fr
        )
        minmax(
            420px,
            1.15fr
        );

    gap:
        clamp(
            60px,
            9vw,
            130px
        );

    width:
        min(
            100%,
            1100px
        );

    margin: 0 auto;
}


.rsvp-heading {
    padding-top: 10px;
}


.rsvp-heading
.section-description {
    margin: 0;
}


.rsvp-deadline {
    margin:
        32px 0 0;

    color: var(--accent-light);

    font-size: 0.72rem;

    letter-spacing: 0.08em;

    line-height: 1.7;
}


.rsvp-form {
    display: flex;

    flex-direction: column;

    gap: 31px;
}


/* =========================================================
   FORM
========================================================= */

.field {
    display: flex;

    flex-direction: column;

    gap: 10px;

    transition:
        opacity 0.3s;
}


.field label,
.form-group legend {
    padding: 0;

    color: var(--muted);

    font-size: 0.68rem;

    font-weight: 500;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.field input,
.field select,
.field textarea {
    width: 100%;

    padding:
        13px 0
        15px;

    border: 0;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    border-radius: 0;

    outline: 0;

    background: transparent;

    color: var(--text);

    font-family: var(--sans);

    font-size: 0.94rem;

    font-weight: 300;

    transition:
        border-color 0.3s;
}


.field textarea {
    min-height: 105px;

    resize: vertical;

    line-height: 1.7;
}


.field textarea::placeholder {
    color:
        rgba(
            157,
            151,
            142,
            0.48
        );
}


.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
}


.field select {
    appearance: auto;

    color: var(--text);
}


.field select option {
    background: #11100e;

    color: var(--text);
}


.disabled-field {
    opacity: 0.32;

    pointer-events: none;
}


/* =========================================================
   CHOICES
========================================================= */

.form-group {
    min-width: 0;

    margin: 0;

    padding: 0;

    border: 0;

    transition:
        opacity 0.3s;
}


.form-group legend {
    margin-bottom: 14px;
}


.choice-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 8px;
}


.choice input,
.drink-choice input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.choice span,
.drink-choice span {
    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.13
        );

    background:
        rgba(
            255,
            255,
            255,
            0.008
        );

    color: var(--muted);

    font-size: 0.75rem;

    line-height: 1.45;

    text-align: center;

    cursor: pointer;

    transition:
        border-color 0.3s,
        color 0.3s,
        background 0.3s;
}


.choice:hover span,
.drink-choice:hover span {
    border-color:
        rgba(
            182,
            154,
            106,
            0.48
        );

    color: var(--text);
}


.choice input:focus-visible + span,
.drink-choice input:focus-visible + span {
    outline:
        2px solid
        var(--accent);

    outline-offset: 2px;
}


.choice input:checked + span,
.drink-choice input:checked + span {
    border-color:
        var(--accent);

    background:
        rgba(
            182,
            154,
            106,
            0.09
        );

    color:
        var(--accent-light);
}


.drink-grid {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.drink-choice span {
    min-height: 42px;

    padding:
        9px 14px;
}


/* =========================================================
   HONEYPOT
========================================================= */

.website-field {
    position: absolute;

    left: -10000px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* =========================================================
   SUBMIT
========================================================= */

.submit-button {
    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 60px;

    margin-top: 4px;

    padding:
        0 22px;

    border:
        1px solid
        var(--accent);

    background:
        var(--accent);

    color:
        #11100e;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.35s,
        color 0.35s,
        transform 0.35s,
        opacity 0.35s;
}


.submit-button:hover:not(:disabled) {
    background:
        var(--accent-light);

    transform:
        translateY(-2px);
}


.submit-button:disabled {
    cursor: wait;

    opacity: 0.58;
}


.submit-arrow {
    font-size: 1.1rem;

    transition:
        transform
        0.35s
        var(--ease);
}


.submit-button:hover
.submit-arrow {
    transform:
        translateX(4px);
}


/* =========================================================
   FORM MESSAGE
========================================================= */

.form-message {
    display: none;

    padding:
        18px 0 0;

    border-top:
        1px solid
        var(--line);

    color: var(--muted);

    font-size: 0.82rem;

    line-height: 1.7;
}


.form-message.success,
.form-message.error {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.form-message strong {
    color:
        var(--accent-light);

    font-family:
        var(--serif);

    font-size:
        1.45rem;

    font-weight: 400;
}


.form-message.error {
    color: #caa099;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;

    padding:
        90px 24px
        max(
            38px,
            calc(
                env(
                    safe-area-inset-bottom
                )
                + 25px
            )
        );

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.05
        );

    background: #090908;

    text-align: center;

    z-index: 2;
}


.footer-main {
    margin-bottom: 72px;
}


.footer-mark {
    display: block;

    margin-bottom: 23px;

    color: var(--accent);

    font-size: 0.65rem;
}


.footer-message {
    margin:
        0 0 10px;

    color: var(--muted);

    font-size: 0.65rem;

    font-weight: 500;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}


.footer-name {
    margin: 0;

    font-family: var(--serif);

    font-size:
        clamp(
            2.8rem,
            5vw,
            4.4rem
        );

    font-weight: 300;

    line-height: 1;
}


/* =========================================================
   DEVELOPER
========================================================= */

.developer {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 11px;

    width: fit-content;

    margin: 0 auto;
}


.developer-text {
    color:
        rgba(
            157,
            151,
            142,
            0.53
        );

    font-size: 0.56rem;

    font-weight: 500;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}


.developer-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        rgba(
            241,
            238,
            232,
            0.62
        );

    text-decoration: none;

    opacity: 0.72;

    transition:
        opacity 0.3s,
        transform 0.3s;
}


.developer-link:hover {
    opacity: 1;

    transform:
        translateY(-2px);
}


.developer-link img {
    display: block;

    width: auto;

    max-width: 120px;

    height: 27px;

    object-fit: contain;
}


.developer-name {
    display: none;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;

    inset: 0;

    display: grid;

    grid-template-columns:
        70px
        minmax(
            0,
            1fr
        )
        70px;

    align-items: center;

    padding:
        70px 24px
        35px;

    background:
        rgba(
            6,
            6,
            5,
            0.96
        );

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 11000;

    transition:
        opacity 0.35s,
        visibility 0.35s;
}


.lightbox.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.lightbox-figure {
    width:
        min(
            100%,
            1100px
        );

    margin: 0 auto;
}


.lightbox-image {
    width: 100%;

    max-height: 78vh;

    object-fit: contain;
}


.lightbox-caption {
    margin-top: 15px;

    color: var(--muted);

    font-size: 0.7rem;

    letter-spacing: 0.12em;

    text-align: center;

    text-transform: uppercase;
}


.lightbox-close,
.lightbox-nav {
    border: 0;

    background: transparent;

    color:
        rgba(
            241,
            238,
            232,
            0.75
        );

    cursor: pointer;

    transition:
        color 0.25s;
}


.lightbox-close:hover,
.lightbox-nav:hover {
    color: var(--accent-light);
}


.lightbox-close {
    position: absolute;

    top: 22px;

    right: 28px;

    width: 46px;

    height: 46px;

    font-family: var(--serif);

    font-size: 2rem;

    font-weight: 300;
}


.lightbox-nav {
    width: 100%;

    height: 80px;

    font-size: 1.5rem;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(34px);

    transition:
        opacity 1.05s var(--ease),
        transform 1.05s var(--ease);
}


.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {

    .gallery {
        grid-template-rows:
            240px
            240px;
    }


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


    .venue-image {
        min-height:
            clamp(
                320px,
                55vw,
                520px
            );
    }


    .rsvp-wrap {
        grid-template-columns: 1fr;

        gap: 65px;

        width:
            min(
                100%,
                720px
            );
    }


    .rsvp-heading {
        max-width: 620px;
    }


    .rsvp-heading
    .section-description {
        max-width: 620px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    :root {
        --section-space: 82px;
    }


    body {
        font-size: 15px;
    }


    /* INTRO */

    .intro {
        padding:
            max(
                35px,
                env(
                    safe-area-inset-top
                )
            )
            22px
            max(
                35px,
                env(
                    safe-area-inset-bottom
                )
            );
    }


    .intro-frame {
        inset: 12px;
    }


    .intro-photo-wrap {
        width:
            min(
                72vw,
                330px
            );

        height:
            min(
                61vh,
                500px
            );
    }


    .intro-eyebrow {
        margin-bottom: 25px;

        font-size: 0.55rem;

        letter-spacing: 0.27em;
    }


    .intro-name {
        font-size:
            clamp(
                4rem,
                23vw,
                6.8rem
            );

        line-height: 0.8;
    }


    .intro-symbol {
        margin:
            26px 0
            21px;
    }


    .intro-date {
        margin-bottom: 39px;

        font-size: 0.59rem;

        letter-spacing: 0.17em;
    }


    .intro-button {
        width:
            min(
                100%,
                315px
            );

        min-width: 0;

        min-height: 56px;

        gap: 20px;

        font-size: 0.59rem;

        letter-spacing: 0.15em;
    }


    .intro-caption {
        margin-top: 25px;

        font-size: 0.48rem;

        letter-spacing: 0.19em;
    }


    /* HERO */

    .hero {
        padding:
            110px 18px
            100px;
    }


    .hero-name {
        font-size:
            clamp(
                4.2rem,
                23vw,
                7rem
            );

        line-height: 0.82;
    }


    .hero-mark {
        margin:
            25px 0
            18px;
    }


    .hero-age {
        font-size: 2rem;
    }


    .hero-date {
        margin-top: 25px;
    }


    .hero-rule {
        height: 45px;
    }


    /* COUNTDOWN */

    .countdown {
        margin-top: 45px;
    }


    .countdown-cell {
        padding:
            15px 4px
            14px;
    }


    .countdown-number {
        font-size:
            clamp(
                1.65rem,
                8vw,
                2.3rem
            );
    }


    .countdown-label {
        font-size: 0.48rem;

        letter-spacing: 0.08em;
    }


    /* SECTIONS */

    .section {
        padding-right: 18px;
        padding-left: 18px;
    }


    .section-title {
        font-size:
            clamp(
                2.65rem,
                14vw,
                4.3rem
            );
    }


    .section-heading {
        margin-bottom: 50px;
    }


    /* PROGRAM */

    .schedule-item {
        grid-template-columns:
            42px
            1fr;

        gap:
            7px
            15px;

        padding:
            28px 0;
    }


    .schedule-number {
        grid-column: 1;

        grid-row:
            1 / span 2;
    }


    .schedule-time {
        grid-column: 2;

        font-size: 1.75rem;
    }


    .schedule-content {
        grid-column: 2;
    }


    .schedule-content h3 {
        margin-top: 5px;

        font-size: 1.75rem;
    }


    /* GALLERY */

    .gallery {
        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .gallery-item {
        height: auto;

        aspect-ratio: 4 / 5;
    }


    .gallery-item:nth-child(even) {
        aspect-ratio: 4 / 3;
    }


    /* DRESS */

    .palette {
        gap: 12px;
    }


    .palette-color {
        width: 50px;
        height: 50px;
    }


    /* VENUE */

    .venue {
        min-height: 0;
    }


    .venue-image {
        min-height:
            min(
                105vw,
                430px
            );
    }


    .venue-content {
        padding:
            39px 26px
            43px;
    }


    .venue-name {
        font-size: 3rem;
    }


    /* RSVP */

    .rsvp-wrap {
        gap: 52px;
    }


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


    .choice span {
        justify-content: flex-start;

        min-height: 48px;

        text-align: left;
    }


    /* FOOTER */

    .footer {
        padding-top: 75px;
    }


    .footer-main {
        margin-bottom: 58px;
    }


    /* LIGHTBOX */

    .lightbox {
        grid-template-columns:
            44px
            minmax(
                0,
                1fr
            )
            44px;

        padding:
            60px 6px
            30px;
    }


    .lightbox-nav {
        font-size: 1.15rem;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .music-button {
        width: 44px;
        height: 44px;
    }


    .intro-photo-wrap {
        width: 76vw;

        height:
            min(
                58vh,
                460px
            );
    }


    .hero {
        padding-right: 14px;
        padding-left: 14px;
    }


    .countdown-label {
        letter-spacing: 0.04em;
    }


    .section {
        padding-right: 16px;
        padding-left: 16px;
    }


    .palette-color {
        width: 47px;
        height: 47px;
    }


    .drink-grid {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .drink-choice span {
        height: 100%;
    }


    .developer-link img {
        max-width: 105px;

        height: 24px;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .gallery-item img {
        transform: none;
    }


    .palette-color:hover {
        transform: none;
    }


    /*
       На телефоне hover нет,
       поэтому цвет появляется при нажатии.
    */

    .intro-button:active {
        background:
            var(--accent);

        border-color:
            var(--accent);

        color:
            #0b0b0a;

        transform:
            scale(0.985);
    }


    .intro-button:active::before {
        transform:
            scaleX(1);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }


    .reveal {
        opacity: 1;

        transform: none;
    }
}