/* =========================================================
   LUXURY CABARET
   ========================================================= */

:root {
    --black: #0b090a;
    --black-soft: #121011;

    --wine: #261015;
    --wine-deep: #170b0f;
    --wine-light: #35161d;

    --champagne: #c7ad7b;
    --champagne-soft: #ae9467;
    --bronze: #826b49;

    --ivory: #eee6d7;
    --ivory-soft: #d8cebd;

    --muted: rgba(238, 230, 215, 0.58);
    --muted-light: rgba(238, 230, 215, 0.36);

    --line: rgba(199, 173, 123, 0.22);
    --line-strong: rgba(199, 173, 123, 0.42);

    --container: 1180px;

    --section-x:
        clamp(18px, 5vw, 72px);

    --section-y:
        clamp(82px, 9vw, 140px);
}


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

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


html {
    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


body {
    margin: 0;

    min-width: 320px;

    overflow-x: hidden;

    background:
        var(--black);

    color:
        var(--ivory);

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

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}


h1,
h2,
h3,
p,
figure,
fieldset {
    margin: 0;
}


fieldset {
    padding: 0;
}


img {
    display: block;

    max-width: 100%;

    height: auto;
}


a {
    color: inherit;
}


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


button {
    border: 0;
}


::selection {
    background:
        var(--champagne);

    color:
        var(--black);
}


/* =========================================================
   GLOBAL
   ========================================================= */

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

    margin-inline: auto;
}


.section {
    position: relative;

    padding:
        var(--section-y)
        var(--section-x);
}


.display-heading {
    color:
        var(--ivory);

    font-family:
        "Prata",
        Georgia,
        serif;

    font-size:
        clamp(2.5rem, 5vw, 4.8rem);

    font-weight: 400;

    line-height: 1.08;

    letter-spacing:
        -0.045em;
}


.display-heading em {
    color:
        var(--champagne);

    font-family:
        "Cormorant Garamond",
        serif;

    font-weight: 400;

    font-style: italic;
}


.display-heading.centered {
    text-align: center;
}


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

    margin:
        22px auto 0;

    text-align: center;

    color:
        var(--muted);

    font-size:
        clamp(1.1rem, 2vw, 1.3rem);

    line-height: 1.65;
}


.section-index {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 30px;

    color:
        var(--champagne-soft);

    font-family:
        "Forum",
        serif;

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing: 0.22em;
}


.section-index.centered {
    justify-content: center;

    text-align: center;
}


.section-index i {
    display: block;

    width: 38px;
    height: 1px;

    background:
        var(--line-strong);
}


.editorial-kicker {
    margin-bottom: 10px;

    color:
        var(--champagne);

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(1.5rem, 2.8vw, 2rem);

    font-style: italic;

    font-weight: 400;

    letter-spacing:
        0.02em;
}


.centered-kicker {
    text-align: center;
}


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

.reveal {
    opacity: 0;

    transform:
        translateY(32px);

    transition:
        opacity 0.85s ease,
        transform 0.85s ease;
}


.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.luxury-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin:
        0 auto 26px;
}


.luxury-divider span {
    width: 62px;
    height: 1px;

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


.luxury-divider i {
    width: 6px;
    height: 6px;

    border:
        1px solid
        var(--champagne-soft);

    transform:
        rotate(45deg);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 54px;

    padding:
        15px 24px;

    text-decoration: none;

    font-family:
        "Forum",
        serif;

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.15em;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.button-primary {
    border:
        1px solid
        var(--champagne);

    background:
        var(--champagne);

    color:
        #17120c;
}


.button-outline {
    border:
        1px solid
        var(--line-strong);

    background:
        transparent;

    color:
        var(--ivory);
}


.center-action {
    margin-top: 48px;

    text-align: center;
}


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

.hero {
    position: relative;

    display: grid;
    place-items: center;

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

    overflow: hidden;

    background:
        var(--black);
}


.hero-media {
    position: absolute;

    inset: -5%;

    z-index: 0;

    will-change:
        transform;
}


.hero-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    filter:
        brightness(0.34)
        saturate(0.68)
        contrast(1.08);
}


.hero-shade {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(7, 6, 6, 0.22),
            rgba(7, 6, 6, 0.14) 40%,
            rgba(7, 6, 6, 0.78)
        );
}


.hero-spotlight {
    position: absolute;

    z-index: 2;

    top: -18%;
    left: 50%;

    width:
        min(62vw, 900px);

    height: 120vh;

    transform:
        translateX(-50%);

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 10%,
            rgba(222, 200, 157, 0.13),
            rgba(222, 200, 157, 0.025) 42%,
            transparent 69%
        );
}


/* =========================================================
   UPPER PELMET
   ========================================================= */

.pelmet {
    position: absolute;

    z-index: 11;

    top: -1px;
    left: 0;

    width: 100%;

    height:
        clamp(72px, 11vw, 132px);

    overflow: hidden;

    pointer-events: none;

    filter:
        drop-shadow(
            0 14px 24px
            rgba(0, 0, 0, 0.42)
        );
}


.pelmet-fabric {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            #35121b 0%,
            #250c12 45%,
            #14080b 100%
        );

    clip-path:
        polygon(
            0 0,
            100% 0,
            100% 57%,
            92% 70%,
            84% 60%,
            76% 74%,
            68% 61%,
            60% 77%,
            50% 62%,
            40% 77%,
            32% 61%,
            24% 74%,
            16% 60%,
            8% 70%,
            0 57%
        );
}


.pelmet-fabric::after {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.4;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.005) 9px,
            rgba(0, 0, 0, 0.16) 22px,
            rgba(255, 255, 255, 0.01) 36px
        );
}


/* =========================================================
   CURTAINS
   МЕХАНИКА КАК В ПРЕДЫДУЩЕЙ ВЕРСИИ
   ========================================================= */

.curtain {
    position: absolute;

    top: 0;
    bottom: 0;

    z-index: 10;

    width: 50%;

    pointer-events: none;

    will-change:
        transform;
}


.curtain-left {
    left: 0;

    transform-origin:
        left center;

    animation:
        curtainLuxuryLeft
        2.2s
        0.7s
        cubic-bezier(.77, 0, .18, 1)
        forwards;
}


.curtain-right {
    right: 0;

    transform-origin:
        right center;

    animation:
        curtainLuxuryRight
        2.2s
        0.7s
        cubic-bezier(.77, 0, .18, 1)
        forwards;
}


/* =========================================================
   CURTAIN FABRIC
   ========================================================= */

.curtain-fabric {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background:
        repeating-linear-gradient(
            90deg,
            #120609 0px,
            #21090e 10px,
            #351018 22px,
            #491520 34px,
            #2d0b12 48px,
            #501823 61px,
            #26090f 75px,
            #160609 91px
        );

    box-shadow:
        inset -36px 0 58px
        rgba(0, 0, 0, 0.56),

        inset 22px 0 35px
        rgba(255, 255, 255, 0.018),

        12px 0 35px
        rgba(0, 0, 0, 0.36);
}


.curtain-right .curtain-fabric {
    transform:
        scaleX(-1);
}


.curtain-fabric::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 240, 215, 0.035) 0%,
            transparent 22%,
            transparent 63%,
            rgba(0, 0, 0, 0.2) 100%
        );
}


.curtain-fabric::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0.65;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 0,
            transparent 7px,
            rgba(0, 0, 0, 0.19) 17px,
            transparent 29px,
            rgba(255, 255, 255, 0.018) 38px,
            transparent 49px
        );
}


/* =========================================================
   CURTAIN TIE
   ========================================================= */

.curtain-tie {
    position: absolute;

    top: 55%;

    width: 4px;
    height: 96px;

    background:
        linear-gradient(
            180deg,
            #c7ad7b,
            #826b49
        );

    box-shadow:
        0 0 10px
        rgba(199, 173, 123, 0.16);
}


.curtain-left .curtain-tie {
    right: 5%;
}


.curtain-right .curtain-tie {
    left: 5%;
}


.curtain-tie::before {
    content: "";

    position: absolute;

    top: -4px;
    left: 50%;

    width: 15px;
    height: 15px;

    transform:
        translateX(-50%)
        rotate(45deg);

    border:
        1px solid
        rgba(199, 173, 123, 0.65);

    background:
        #4d3b25;
}


.curtain-tie span {
    position: absolute;

    bottom: -13px;
    left: 50%;

    width: 16px;
    height: 22px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            180deg,
            #a98d5d,
            #665033
        );

    clip-path:
        polygon(
            50% 0%,
            100% 100%,
            0% 100%
        );
}


/* =========================================================
   CURTAIN OPENING
   ========================================================= */

@keyframes curtainLuxuryLeft {

    0% {
        transform:
            scaleX(1);
    }

    100% {
        transform:
            scaleX(0.09);
    }

}


@keyframes curtainLuxuryRight {

    0% {
        transform:
            scaleX(1);
    }

    100% {
        transform:
            scaleX(0.09);
    }

}


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

.hero-content {
    position: relative;

    z-index: 8;

    width:
        min(100%, 900px);

    padding:
        clamp(120px, 16vh, 170px)
        22px
        clamp(90px, 12vh, 125px);

    text-align: center;

    opacity: 0;

    transform:
        translateY(18px);

    animation:
        heroReveal
        1.25s
        1.65s
        ease
        forwards;
}


@keyframes heroReveal {

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


.hero-eyebrow {
    margin-bottom: 22px;

    color:
        var(--champagne-soft);

    font-family:
        "Forum",
        serif;

    font-size:
        clamp(0.68rem, 1.1vw, 0.78rem);

    text-transform: uppercase;

    letter-spacing:
        clamp(0.18em, 0.6vw, 0.32em);
}


.hero-title {
    color:
        var(--ivory);

    font-family:
        "Prata",
        Georgia,
        serif;

    font-size:
        clamp(4.3rem, 11vw, 8.3rem);

    font-weight: 400;

    line-height: 0.95;

    letter-spacing:
        -0.055em;

    text-shadow:
        0 16px 32px
        rgba(0, 0, 0, 0.34);
}


.hero-subtitle {
    margin-top: 22px;

    color:
        var(--champagne);

    font-size:
        clamp(1.35rem, 3vw, 2rem);

    font-style: italic;

    font-weight: 300;

    line-height: 1.3;
}


.hero-host {
    margin-top: 6px;

    color:
        var(--ivory);

    font-family:
        "Cormorant Garamond",
        serif;

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

    font-style: italic;

    font-weight: 400;
}


.hero-date {
    margin-top: 18px;

    color:
        var(--ivory-soft);

    font-family:
        "Forum",
        serif;

    font-size:
        clamp(0.92rem, 2vw, 1.08rem);

    letter-spacing:
        0.08em;
}


.hero-button {
    margin-top: 32px;
}


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

.scroll-indicator {
    position: absolute;

    z-index: 8;

    bottom:
        max(18px, env(safe-area-inset-bottom));

    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    transform:
        translateX(-50%);

    color:
        var(--champagne-soft);

    text-decoration: none;

    font-family:
        "Forum",
        serif;

    font-size: 0.66rem;

    text-transform: uppercase;

    letter-spacing:
        0.17em;

    opacity: 0.7;
}


.scroll-indicator i {
    width: 1px;
    height: 26px;

    background:
        linear-gradient(
            var(--champagne-soft),
            transparent
        );
}


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

.invitation {
    background:
        var(--black);
}


.invitation-layout {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.88fr)
        minmax(320px, 1.12fr);

    align-items: center;

    gap:
        clamp(52px, 8vw, 110px);
}


.editorial-photo {
    position: relative;

    overflow: hidden;

    background:
        var(--wine);

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


.editorial-photo::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(11, 9, 10, 0.16)
        );

    pointer-events: none;
}


.editorial-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.72)
        brightness(0.84)
        contrast(1.06);

    transition:
        transform 0.8s ease,
        filter 0.6s ease;
}


.invitation .editorial-photo {
    aspect-ratio:
        4 / 5;
}


.photo-line {
    position: absolute;

    z-index: 2;

    inset: 10px;

    border:
        1px solid
        rgba(199, 173, 123, 0.28);

    pointer-events: none;
}


.invitation-copy {
    min-width: 0;
}


.invitation-text {
    margin-top: 30px;

    max-width: 640px;

    color:
        var(--ivory-soft);

    font-size:
        clamp(1.3rem, 2.2vw, 1.75rem);

    font-weight: 300;

    line-height: 1.68;
}


.signature {
    margin-top: 24px;

    color:
        var(--champagne);

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

    font-style: italic;
}


/* =========================================================
   DETAILS
   ========================================================= */

.details {
    background:
        var(--wine-deep);

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

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


.details-grid {
    display: grid;

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

    margin-top: 54px;

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

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


.detail {
    display: flex;
    flex-direction: column;

    gap: 12px;

    padding:
        42px
        clamp(16px, 3vw, 34px);

    text-align: center;
}


.detail + .detail {
    border-left:
        1px solid
        var(--line);
}


.detail-label {
    color:
        var(--bronze);

    font-family:
        "Forum",
        serif;

    font-size: 0.7rem;

    text-transform: uppercase;

    letter-spacing:
        0.23em;
}


.detail-value {
    color:
        var(--ivory);

    font-family:
        "Prata",
        serif;

    font-size:
        clamp(1.25rem, 2.1vw, 1.7rem);

    font-weight: 400;

    line-height: 1.35;
}


.detail-description {
    color:
        var(--muted);

    font-size: 1.05rem;

    font-style: italic;

    line-height: 1.45;
}


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

.program {
    background:
        var(--black-soft);
}


.program-layout {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.86fr)
        minmax(340px, 1.14fr);

    align-items: center;

    gap:
        clamp(52px, 8vw, 105px);

    margin-top: 45px;
}


.program-photo {
    aspect-ratio:
        3 / 4;
}


.program-copy {
    min-width: 0;
}


.program-list {
    margin-top: 38px;

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


.program-row {
    display: grid;

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

    gap: 20px;

    padding:
        22px 0;

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


.program-time {
    color:
        var(--champagne);

    font-family:
        "Forum",
        serif;

    font-size: 1.05rem;

    letter-spacing:
        0.04em;
}


.program-title {
    color:
        var(--ivory);

    font-family:
        "Prata",
        serif;

    font-size:
        clamp(1.05rem, 1.7vw, 1.28rem);

    line-height: 1.4;
}


.program-desc {
    margin-top: 6px;

    color:
        var(--muted);

    font-size: 1rem;

    font-style: italic;

    line-height: 1.45;
}


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

.gallery {
    background:
        var(--wine-deep);
}


.gallery-grid {
    display: grid;

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

    gap:
        clamp(14px, 2vw, 24px);

    margin-top: 48px;
}


.gcard {
    position: relative;

    aspect-ratio:
        3 / 4;

    overflow: hidden;

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

    background:
        var(--black);
}


.gcard::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(11, 9, 10, 0.82)
        );

    pointer-events: none;
}


.gcard img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.72)
        brightness(0.8);

    transition:
        transform 0.7s ease,
        filter 0.5s ease;
}


.gcap {
    position: absolute;

    z-index: 2;

    right: 18px;
    bottom: 20px;
    left: 18px;

    color:
        var(--ivory);

    text-align: center;

    font-size: 1.1rem;

    font-style: italic;
}


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

.music {
    overflow: hidden;

    display: grid;
    place-items: center;

    min-height:
        clamp(500px, 72vh, 640px);

    background:
        var(--black);

    text-align: center;
}


.music-aura {
    position: absolute;

    width:
        min(620px, 90vw);

    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199, 173, 123, 0.055),
            transparent 68%
        );
}


.music-content {
    position: relative;

    z-index: 2;

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


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

.rsvp {
    background:
        var(--wine-deep);
}


.rsvp-panel {
    width:
        min(100%, 720px);

    margin-inline: auto;

    padding:
        clamp(38px, 6vw, 68px);

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

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            rgba(0, 0, 0, 0.12)
        );
}


.rsvp-deadline {
    max-width: 540px;

    margin:
        22px auto 40px;

    color:
        var(--muted);

    text-align: center;

    font-size: 1.06rem;

    font-style: italic;

    line-height: 1.45;
}


.rsvp-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}


.form-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.form-field label,
.form-field legend {
    color:
        var(--ivory-soft);

    font-family:
        "Forum",
        serif;

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing:
        0.14em;
}


.attendance {
    min-width: 0;

    border: 0;
}


.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;

    min-height: 54px;

    padding:
        13px 15px;

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

    border-radius: 0;

    outline: none;

    background:
        rgba(5, 4, 4, 0.24);

    color:
        var(--ivory);

    font-size: 16px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}


.rsvp-form textarea {
    min-height: 120px;

    resize: vertical;
}


.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color:
        rgba(238, 230, 215, 0.28);
}


.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color:
        var(--champagne-soft);

    background:
        rgba(5, 4, 4, 0.42);
}


.rsvp-form select {
    appearance: none;

    cursor: pointer;
}


.rsvp-form option {
    background:
        var(--black);

    color:
        var(--ivory);
}


.attendance-grid {
    display: grid;

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

    gap: 8px;
}


.attendance-grid label {
    cursor: pointer;
}


.attendance-grid input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.attendance-grid span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 10px;

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

    color:
        var(--ivory-soft);

    text-align: center;

    font-family:
        "Forum",
        serif;

    font-size: 0.76rem;

    text-transform: uppercase;

    letter-spacing:
        0.07em;
}


.attendance-grid input:checked + span {
    border-color:
        var(--champagne);

    background:
        var(--champagne);

    color:
        var(--black);
}


.submit-button {
    width: 100%;

    margin-top: 4px;
}


.submit-button:disabled {
    opacity: 0.55;

    cursor: wait;
}


.form-status {
    min-height: 22px;

    color:
        var(--ivory-soft);

    text-align: center;

    font-size: 1rem;
}


.form-status.is-error {
    color:
        #cfa9a4;
}


.honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip:
        rect(0 0 0 0) !important;

    clip-path:
        inset(50%) !important;
}


.is-hidden {
    display: none !important;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.success-message {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 24px;

    padding: 22px;

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


.success-message[hidden] {
    display: none;
}


.success-symbol {
    display: grid;
    place-items: center;

    flex:
        0 0 40px;

    width: 40px;
    height: 40px;

    border:
        1px solid
        var(--champagne-soft);

    color:
        var(--champagne);
}


.success-message h3 {
    color:
        var(--ivory);

    font-family:
        "Prata",
        serif;

    font-size: 1.3rem;

    font-weight: 400;
}


.success-message p {
    margin-top: 5px;

    color:
        var(--muted);
}


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

.footer {
    padding:
        72px
        var(--section-x)
        max(40px, env(safe-area-inset-bottom));

    text-align: center;

    background:
        var(--black);

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


.footer-title {
    color:
        var(--ivory);

    font-family:
        "Prata",
        serif;

    font-size:
        clamp(2.5rem, 5vw, 4rem);
}


.footer-date {
    margin-top: 12px;

    color:
        var(--bronze);

    font-family:
        "Forum",
        serif;

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing:
        0.18em;
}


.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    width:
        min(100%, 320px);

    margin:
        34px auto 0;

    padding-top: 22px;

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


.footer-brand > span {
    margin-bottom: 10px;

    color:
        var(--muted-light);

    font-size: 0.86rem;

    font-style: italic;
}


.footer-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    min-height: 44px;

    padding:
        8px 14px;

    opacity: 0.7;

    transition:
        opacity 0.25s ease;
}


.footer-brand img {
    width:
        clamp(105px, 16vw, 138px);
}


.back-top {
    display: inline-flex;

    margin-top: 20px;

    padding: 10px;

    color:
        var(--muted);

    font-family:
        "Forum",
        serif;

    font-size: 0.7rem;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing:
        0.14em;
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

    .button-primary:hover {
        background:
            #d2bb8d;

        transform:
            translateY(-2px);
    }


    .button-outline:hover {
        border-color:
            var(--champagne);

        color:
            var(--champagne);

        transform:
            translateY(-2px);
    }


    .editorial-photo:hover img,
    .gcard:hover img {
        transform:
            scale(1.035);

        filter:
            saturate(0.82)
            brightness(0.88);
    }


    .footer-brand a:hover {
        opacity: 1;
    }

}


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

@media (max-width: 900px) {

    .invitation-layout,
    .program-layout {
        grid-template-columns:
            1fr;

        gap: 48px;
    }


    .editorial-photo {
        width:
            min(100%, 440px);

        margin-inline: auto;
    }


    .invitation-copy,
    .program-copy {
        width:
            min(100%, 640px);

        margin-inline: auto;
    }


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


    .detail + .detail {
        border-left: 0;

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


    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .gallery-grid .gcard:last-child {
        grid-column:
            1 / -1;

        width:
            min(100%, 420px);

        justify-self: center;
    }


    .program-copy {
        text-align: center;
    }

}


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

@media (max-width: 640px) {

    :root {
        --section-x: 18px;
        --section-y: 78px;
    }


    .pelmet {
        height: 74px;
    }


    /* сохраняем правильную механику штор */

    .curtain {
        width: 50%;
    }


    .curtain-left,
    .curtain-right {
        animation-duration:
            1.9s;

        animation-delay:
            0.45s;
    }


    .curtain-tie {
        display: none;
    }


    .hero-spotlight {
        width: 145vw;
    }


    .hero-content {
        padding:
            96px
            16px
            80px;
    }


    .hero-eyebrow {
        font-size: 0.64rem;

        letter-spacing:
            0.16em;
    }


    .hero-title {
        font-size:
            clamp(3.8rem, 18vw, 5.6rem);

        line-height: 1;
    }


    .hero-subtitle {
        margin-top: 18px;

        font-size: 1.25rem;
    }


    .hero-host {
        font-size:
            clamp(2.5rem, 13vw, 3.5rem);
    }


    .hero-date {
        font-size: 0.9rem;
    }


    .hero-button,
    .button-outline {
        width:
            min(100%, 340px);
    }


    .scroll-indicator {
        display: none;
    }


    .display-heading {
        font-size:
            clamp(2.15rem, 10.5vw, 3.2rem);
    }


    .section-index {
        gap: 8px;

        font-size: 0.62rem;

        letter-spacing:
            0.14em;
    }


    .section-index i {
        width: 24px;
    }


    .invitation-text {
        font-size: 1.22rem;
    }


    .signature {
        font-size: 2.25rem;
    }


    .detail {
        padding:
            30px 14px;
    }


    .program-row {
        grid-template-columns:
            60px
            minmax(0, 1fr);

        gap: 12px;
    }


    .editorial-kicker {
        font-size: 1.45rem;
    }


    .gallery-grid {
        grid-template-columns: 1fr;

        width:
            min(100%, 390px);

        margin-inline: auto;
    }


    .gallery-grid .gcard:last-child {
        grid-column: auto;

        width: 100%;
    }


    .rsvp-panel {
        padding:
            38px 15px
            28px;
    }


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


    .rsvp-form input[type="text"],
    .rsvp-form select,
    .rsvp-form textarea {
        font-size: 16px;
    }


    .button {
        min-height: 52px;

        padding:
            14px 17px;

        font-size: 0.74rem;
    }


    .success-message {
        align-items:
            flex-start;

        padding: 18px;
    }

}


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

@media (max-width: 390px) {

    :root {
        --section-x: 14px;
    }


    .hero-content {
        padding-inline: 12px;
    }


    .hero-title {
        font-size: 3.65rem;
    }


    .hero-host {
        font-size: 2.8rem;
    }


    .rsvp-panel {
        padding-inline: 12px;
    }


    .program-row {
        grid-template-columns:
            54px
            minmax(0, 1fr);
    }

}


/* =========================================================
   LANDSCAPE PHONE
   ========================================================= */

@media (max-height: 620px) and (orientation: landscape) {

    .hero {
        min-height: 620px;
    }


    .hero-content {
        padding:
            84px
            18px
            54px;
    }


    .hero-title {
        font-size:
            clamp(3.5rem, 10vw, 5rem);
    }


    .hero-subtitle {
        margin-top: 10px;
    }


    .hero-host {
        font-size:
            clamp(2rem, 6vw, 3rem);
    }


    .hero-button {
        margin-top: 20px;
    }


    .scroll-indicator {
        display: none;
    }

}


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

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

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.001ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.001ms !important;
    }


    .curtain-left,
    .curtain-right {
        transform:
            scaleX(0.09);
    }


    .hero-content,
    .reveal {
        opacity: 1;

        transform: none;
    }

}