/* ============================================================
   WEDDING INVITE — Никита & Марина · 20.06.2026
   Palette: chocolate × beige
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --choc-deep: #1E0E06;
    --choc: #3B1E0A;
    --choc-mid: #6B3A2A;
    --choc-light: #A07060;
    --caramel: #C9A882;
    --beige: #E8D0B0;
    --beige-light: #F5EDE0;
    --beige-pale: #FAF7F2;
    --white: #FDFAF7;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', system-ui, sans-serif;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --radius: 14px;
    --radius-pill: 999px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--beige-pale);
    color: var(--choc-deep);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Container ──────────────────────────────────────────── */
.container {
    max-width: 980px;
    margin-inline: auto;
    padding-inline: 28px;
}

/* ── Shared section typography ──────────────────────────── */
.section {
    padding: 110px 0;
}

.section__label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--choc-mid);
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section__label::before,
.section__label::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--caramel);
    opacity: .5;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 600;
    color: var(--choc);
    text-align: center;
    line-height: 1.08;
    margin-bottom: 22px;
}

.section__desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--choc-mid);
    text-align: center;
    line-height: 1.9;
    margin-bottom: 64px;
}

.section__desc strong {
    font-weight: 500;
    color: var(--choc);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(44px);
    transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
    background: var(--choc-deep);
    min-height: 100svh;
    padding: 64px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
}

/* eyebrow */
.hero__eyebrow {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--beige);
    text-align: center;
    opacity: 0;
    animation: fadeUp .9s .2s var(--ease-out) forwards;
}

/* video block */
.hero__video-wrap {
    width: 100%;
    max-width: 680px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 168, 130, .12);
    opacity: 0;
    animation: fadeUp .9s .4s var(--ease-out) forwards;
    position: relative;
}

.hero__video {
    width: 100%;
    height: auto;
    display: block;
}

/* mute toggle button */
.hero__mute-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(30, 14, 6, .65);
    backdrop-filter: blur(8px);
    color: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s, transform .2s;
    z-index: 10;
}

.hero__mute-btn:hover {
    background: rgba(30, 14, 6, .85);
    transform: scale(1.08);
}

.hero__mute-btn svg {
    width: 18px;
    height: 18px;
}

/* info block */
.hero__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* names */
.hero__names {
    font-family: var(--font-display);
    font-size: clamp(52px, 11vw, 120px);
    font-weight: 300;
    line-height: .95;
    color: var(--white);
    letter-spacing: -.01em;
    opacity: 0;
    animation: fadeUp .9s .65s var(--ease-out) forwards;
    display: flex;
    align-items: center;
}

.hero__amp {
    font-style: italic;
    color: var(--caramel);
    font-size: .65em;
    margin-inline: .2em;
    display: inline-block;
    transform: translateY(-.1em);
}

/* thin divider */
.hero__divider {
    width: 60px;
    height: 1px;
    background: var(--caramel);
    margin: 22px auto;
    opacity: 0;
    animation: fadeUp .9s .8s var(--ease-out) forwards;
}

/* date */
.hero__date {
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 300;
    letter-spacing: 9px;
    color: var(--beige);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp .9s .9s var(--ease-out) forwards;
}

/* time */
.hero__time {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--caramel);
    opacity: 0;
    animation: fadeUp .9s 1.0s var(--ease-out) forwards;
}

/* scroll cue */
.hero__scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    opacity: 0;
    animation: fadeUp .9s 1.3s var(--ease-out) forwards;
}

.hero__scroll-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--beige);
    opacity: .6;
}

.hero__scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, var(--caramel), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
    transform-origin: top;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. COUNTDOWN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.countdown {
    background: var(--choc);
    padding: 90px 0;
}

.countdown .section__label {
    color: var(--caramel);
}

.countdown .section__label::before,
.countdown .section__label::after {
    background: var(--caramel);
    opacity: .3;
}

.countdown__grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.countdown__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(201, 168, 130, .15);
    border-radius: var(--radius);
}

.countdown__num {
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 100px);
    font-weight: 300;
    color: var(--beige-light);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color .2s;
}

.countdown__unit {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--caramel);
    margin-top: 8px;
}

.countdown__sep {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    color: var(--caramel);
    opacity: .4;
    padding-top: 18px;
    user-select: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. DRESS CODE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dresscode {
    background: var(--beige-pale);
}

.dresscode__palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.dresscode__swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: default;
}

.dresscode__pill {
    width: 88px;
    height: 148px;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 36px rgba(30, 14, 6, .18);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    outline-offset: 4px;
}

.dresscode__swatch:hover .dresscode__pill {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(30, 14, 6, .26);
}

.dresscode__name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--choc-mid);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.5;
}

.dresscode__note {
    max-width: 380px;
    margin-inline: auto;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    color: var(--choc-mid);
    letter-spacing: .5px;
    padding: 18px 28px;
    border: 1px solid var(--caramel);
    border-radius: var(--radius);
    opacity: .8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. LOCATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.location {
    background: var(--choc-deep);
}

.location .section__label {
    color: var(--caramel);
}

.location .section__label::before,
.location .section__label::after {
    background: var(--caramel);
    opacity: .25;
}

.location .section__title {
    color: var(--beige-light);
}

.location__card {
    max-width: 620px;
    margin-inline: auto;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(201, 168, 130, .22);
    border-radius: var(--radius);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.location__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(201, 168, 130, .12);
    border: 1px solid rgba(201, 168, 130, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location__icon {
    width: 24px;
    height: 24px;
    color: var(--caramel);
}

.location__info {
    flex: 1;
}

.location__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--beige-light);
    margin-bottom: 5px;
}

.location__sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--caramel);
    letter-spacing: .5px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. RSVP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.rsvp {
    background: var(--beige-light);
}

.rsvp__form {
    max-width: 500px;
    margin-inline: auto;
}

/* hidden by default; shown on success */
.rsvp__success {
    display: none;
}

.form__group {
    margin-bottom: 30px;
}

.form__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--choc-mid);
    margin-bottom: 12px;
}

.form__input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--choc);
    background: var(--white);
    border: 1.5px solid var(--beige);
    border-radius: 10px;
    outline: none;
    transition: border-color .3s, box-shadow .3s;
}

.form__input:focus {
    border-color: var(--choc-mid);
    box-shadow: 0 0 0 4px rgba(107, 58, 42, .1);
}

.form__input::placeholder {
    color: var(--caramel);
}

.form__input.error {
    border-color: #c0392b;
}

.form__radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form__radio-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--white);
    border: 1.5px solid var(--beige);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .3s, background .3s, transform .2s var(--ease);
    position: relative;
}

.form__radio-card:hover {
    border-color: var(--caramel);
}

.form__radio-card:active {
    transform: scale(.99);
}

.form__radio-card input[type="radio"] {
    display: none;
}

.form__radio-card.selected {
    border-color: var(--choc-mid);
    background: rgba(59, 30, 10, .03);
}

.form__radio-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.form__radio-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.form__radio-text strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--choc);
}

.form__radio-text span {
    font-size: 14px;
    font-weight: 300;
    color: var(--choc-light);
}

.form__radio-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--beige);
    flex-shrink: 0;
    position: relative;
    transition: border-color .3s, background .3s;
}

.form__radio-card.selected .form__radio-check {
    border-color: var(--choc);
    background: var(--choc);
}

.form__radio-card.selected .form__radio-check::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--white);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 34px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background .3s, transform .2s var(--ease), box-shadow .3s, color .3s;
    outline: none;
    white-space: nowrap;
}

.btn--primary {
    width: 100%;
    padding: 18px;
    background: var(--choc);
    color: var(--beige-light);
    box-shadow: 0 6px 28px rgba(59, 30, 10, .28);
    position: relative;
    overflow: hidden;
}

.btn--primary:hover:not(:disabled) {
    background: var(--choc-mid);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(59, 30, 10, .36);
}

.btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn--primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245, 237, 224, .3);
    border-top-color: var(--beige-light);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.btn--primary.loading .btn__label {
    display: none;
}

.btn--primary.loading .btn__spinner {
    display: block;
}

.btn--ghost {
    background: transparent;
    color: var(--beige);
    border: 1.5px solid rgba(201, 168, 130, .4);
}

.btn--ghost:hover {
    background: rgba(201, 168, 130, .1);
    border-color: var(--caramel);
    color: var(--caramel);
    transform: translateY(-1px);
}

/* ── RSVP success state ───────────────────────────────── */
.rsvp__success {
    text-align: center;
    padding: 60px 24px;
    max-width: 500px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.rsvp__success.show {
    opacity: 1;
    transform: translateY(0);
}

.rsvp__success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--choc);
    color: var(--beige-light);
    font-family: var(--font-display);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 32px rgba(59, 30, 10, .3);
}

.rsvp__success-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--choc);
    margin-bottom: 12px;
}

.rsvp__success-sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--choc-mid);
    line-height: 1.8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
    background: var(--choc-deep);
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__names {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    color: var(--beige-light);
    letter-spacing: 1px;
}

.footer__date {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 5px;
    color: var(--caramel);
}

.footer__love {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--caramel);
    opacity: .7;
    margin-top: 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KEYFRAMES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: .8;
    }
    50% {
        transform: scaleY(.5);
        opacity: .2;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Tablet ≤ 768px ─────────────────────────── */
@media (max-width: 768px) {

    /* Общие секции */
    .section {
        padding: 72px 0;
    }

    .section__title {
        font-size: clamp(32px, 8vw, 52px);
    }

    .section__desc {
        font-size: 14px;
        margin-bottom: 44px;
    }

    .section__label::before,
    .section__label::after {
        max-width: 48px;
    }

    /* Hero */
    .hero {
        padding: 48px 20px 56px;
        gap: 28px;
        min-height: 100svh;
    }

    .hero__eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .hero__video-wrap {
        border-radius: 14px;
    }

    .hero__names {
        font-size: clamp(44px, 14vw, 80px);
        display: flex;
        flex-flow: column;
        gap: 12px;
    }

    .hero__divider {
        margin: 16px auto;
    }

    .hero__date {
        letter-spacing: 6px;
    }

    /* Countdown */
    .countdown {
        padding: 64px 0;
    }

    .countdown__sep {
        display: none;
    }

    .countdown__grid {
        gap: 10px;
    }

    .countdown__cell {
        min-width: 76px;
        padding: 16px 10px;
        border-radius: 10px;
    }

    .countdown__num {
        font-size: clamp(40px, 10vw, 68px);
    }

    /* Dresscode */
    .dresscode__palette {
        gap: 12px;
    }

    .dresscode__pill {
        width: 64px;
        height: 108px;
    }

    .dresscode__name {
        font-size: 12px;
    }

    /* Location */
    .location__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 24px;
    }

    /* RSVP */
    .form__radio-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .form__radio-icon {
        font-size: 18px;
    }

    .form__radio-text strong {
        font-size: 14px;
    }

    .form__radio-text span {
        font-size: 13px;
    }
}

/* ── Mobile ≤ 480px ─────────────────────────── */
@media (max-width: 480px) {

    /* Общие */
    .section {
        padding: 60px 0;
    }

    .container {
        padding-inline: 18px;
    }

    .section__desc {
        margin-bottom: 36px;
    }

    .section__label {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .section__label::before,
    .section__label::after {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 40px 16px 48px;
        gap: 24px;
    }

    .hero__eyebrow {
        display: none;
    }

    .hero__names {
        font-size: clamp(38px, 15vw, 68px);
    }

    .hero__date {
        font-size: 13px;
        letter-spacing: 5px;
    }

    .hero__time {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero__divider {
        margin: 14px auto;
    }

    .hero__video-wrap {
        border-radius: 12px;
    }

    .hero__mute-btn {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
    }

    .hero__mute-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Countdown */
    .countdown {
        padding: 52px 0;
    }

    .countdown__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 280px;
        margin-inline: auto;
    }

    .countdown__cell {
        min-width: unset;
        width: 100%;
    }

    .countdown__num {
        font-size: clamp(38px, 12vw, 56px);
    }

    /* Dresscode */
    .dresscode__palette {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        max-width: 320px;
        margin-inline: auto;
        margin-bottom: 36px;
    }

    .dresscode__swatch {
        align-items: center;
    }

    .dresscode__pill {
        width: 100%;
        height: 90px;
        border-radius: 999px;
    }

    .dresscode__name {
        font-size: 11px;
    }

    .dresscode__note {
        font-size: 14px;
        padding: 14px 18px;
    }

    /* Location */
    .location__card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .location__title {
        font-size: 18px;
    }

    .location__sub {
        font-size: 14px;
    }

    .btn--ghost {
        width: 100%;
        justify-content: center;
    }

    /* RSVP */
    .rsvp__form {
        max-width: 100%;
    }

    .form__input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .form__radio-card {
        padding: 14px 14px;
    }

    .rsvp__success-title {
        font-size: 38px;
    }

    .rsvp__success-sub {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 44px 20px;
        gap: 8px;
    }

    .footer__names {
        font-size: 22px;
    }
}
