:root {
    --bg: #f6f1ea;
    --fg: #1c1c1c;

    /* rgb для rgba() */
    --fg-rgb: 28, 28, 28;

    /* палитра цветов */
    --accent: #c98b93; /* dusty rose */
    --accent2: #8aa7c6; /* powder blue */
    --accent3: #a8b7a3; /* sage */

    --accent-rgb: 201, 139, 147;
    --accent2-rgb: 138, 167, 198;
    --accent3-rgb: 168, 183, 163;

    /* производные */
    --muted: rgba(var(--fg-rgb), .74);
    --line: rgba(var(--fg-rgb), .18);

    --glass-1: rgba(255, 255, 255, .2);
    --glass-2: rgba(255, 255, 255, .45);
    --glass-3: rgba(255, 255, 255, .72);
    --shadow-soft: 0 10px 32px rgba(35, 27, 18, .1);
    --shadow-cta: 0 14px 36px rgba(35, 27, 18, .14);
    --icon: rgba(var(--fg-rgb), .55);
    --radius-card: 22px;
    --radius-control: 14px;
    --radius-pill: 999px;
    --anchor-offset: 84px;

    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;

    --font-title: "Great Vibes", cursive;
    --font-script: var(--font-title);
    --font-text: "Cormorant Garamond", serif;
    --font-ui: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


/* --- Base & Reset --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-text);
    font-style: normal;
    line-height: 1.6;
    letter-spacing: .01em;
    font-size: clamp(17px, 1.4vw, 20px);
    overflow-x: hidden;
}


section[id] {
    scroll-margin-top: var(--anchor-offset);
}

input, select, textarea, button, .nav, .brand, .kicker, .cd-lbl, .lead, .muted, label {
    font-family: var(--font-ui);
    font-style: normal;
    letter-spacing: .02em;
}


a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(var(--accent2-rgb), .85);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--accent2-rgb), .2);
}

/* --- Layout --- */
.container {
    width: min(960px, 90vw);
    margin: 0 auto;
}

.section {
    padding: clamp(48px, 7vw, 84px) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.brand,
.hero-title .subkicker,
.names,
.section h2,
.count-cta__title,
.cd-num,
.date-stack,
.count-cta__nums .num span,
.count-cta__nums .sep,
.time,
.month-title,
.dress-title,
.rsvp-title,
h1, h2 {
    font-family: var(--font-title);
    font-weight: 400;
}

.section h2 {
    font-size: clamp(40px, 6vw, 58px);
    margin: 0 0 var(--space-2);
    line-height: 1.1;
}

.names {
    font-size: clamp(48px, 9vw, 76px);
    font-weight: 500;
    margin: 8px 0 0;
    letter-spacing: .02em;
}

.lead, .muted {
    letter-spacing: .01em;
}

.lead {
    color: var(--muted);
    margin: 0 0 var(--space-4);
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.68;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

h3 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: clamp(18px, 2.6vw, 24px);
    line-height: 1.3;
}

.caption {
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(var(--fg-rgb), .72);
}

/* --- Sticky Nav --- */
.site-nav {
    position: sticky;
    top: 0;
    height: 60px;
    z-index: 30;
    border-bottom: 1px solid rgba(var(--fg-rgb), .12);
    background: rgba(246, 241, 234, .82);
    backdrop-filter: blur(12px);
}

.site-nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.site-nav__brand {
    font-family: var(--font-title);
    font-size: 34px;
    line-height: 1;
    white-space: nowrap;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-ui);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.site-nav__links a {
    padding: 8px 10px;
    border-radius: 999px;
    color: rgba(var(--fg-rgb), .78);
    border: 1px solid transparent;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-nav__links a:hover {
    color: rgba(var(--fg-rgb), .96);
    border-color: rgba(var(--fg-rgb), .14);
    background: rgba(255, 255, 255, .46);
}

.site-nav__links a[aria-current="true"] {
    color: rgba(var(--fg-rgb), .98);
    background: rgba(255, 255, 255, .68);
    border-color: rgba(var(--fg-rgb), .2);
}

/* --- UI Elements --- */
.link {
    display: inline-block;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
}

.link:hover {
    border-bottom-color: rgba(244, 244, 244, .5);
}

.cta, .count-cta__btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.cta {
    min-height: 48px;
    margin-top: 6px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(var(--fg-rgb), .16);
    background: var(--glass-2);
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--fg-rgb), .9);
}

.cta:hover, .count-cta__btn:hover, button:hover {
    transform: translateY(-2px);
    filter: brightness(1.01);
}

.cta:active, .count-cta__btn:active, button:active {
    transform: translateY(0) scale(.99);
}

.hr-accent {
    height: 2px;
    width: min(720px, 92%);
    margin: 26px auto;
    background: linear-gradient(90deg, var(--accent2), var(--accent), var(--accent3));
    border-radius: 999px;
    opacity: .95;
}

.hero-actions {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: var(--space-3);
}

.cta--primary {
    background: var(--fg);
    color: var(--bg);
    border-color: rgba(var(--fg-rgb), .24);
    box-shadow: var(--shadow-cta);
}

.cta-link {
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(var(--fg-rgb), .72);
    border-bottom: 1px solid rgba(var(--fg-rgb), .22);
    line-height: 1.2;
}

.cta-link:hover {
    color: rgba(var(--fg-rgb), .95);
    border-bottom-color: rgba(var(--fg-rgb), .48);
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

.age-note {
    font-size: 16px;
    color: var(--muted);
    border: 2px solid var(--accent);
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    display: inline-block;
    margin: 0 0 24px;
    font-weight: 400;
    font-family: var(--font-ui) !important;
    font-style: normal;
}

/* --- Hero --- */
.hero {
    min-height: 98dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 0;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .16;
    background: linear-gradient(180deg, rgba(246, 241, 234, .1), rgba(246, 241, 234, .72)),
    url("https://unsplash.com/photos/bLwoDCt_D5E/download?force=true&w=2200") center 30% / cover no-repeat;
}

.hero-inner {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 50px 0 22px;
    display: grid;
    gap: 32px;
    justify-items: center;
    text-align: center;
    margin-bottom: 100px;
}

.date-stack {
    display: flex;
    align-items: baseline;
    gap: 14px;
    letter-spacing: .06em;
    opacity: .95;
}

.date-part {
    font-size: clamp(42px, 7vw, 58px);
    font-weight: 500;
}

.date-sep {
    font-size: clamp(34px, 5vw, 44px);
    opacity: .5;
}

.hero-title .kicker {
    font-size: 16px;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .85;
}

.hero-title .subkicker {
    font-size: 26px;
    opacity: .85;
    margin-top: 6px;
}

.amp {
    opacity: .7;
    padding: 0 10px;
}


/* --- Marquee --- */
.hero-marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 10px 0;
    background: rgba(255, 255, 255, .02);
}

.marquee {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee 30s linear infinite;
    transform: translateZ(0);
}

.marquee-track {
    display: flex;
    gap: 42px;
    white-space: nowrap;
    opacity: .9;
    letter-spacing: .08em;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 14px;
    padding-right: 42px; /* чтобы стык был незаметен */
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
    /* потому что внутри 2 одинаковых трека */
}


/* --- Calendar --- */
#invite .container {
    text-align: center;
}

#invite .lead {
    width: min(720px, 92%);
    margin: 0 auto;
}

.month-title {
    font-family: var(--font-script);
    font-size: 46px;
    margin-top: 10px;
}

.year-title {
    margin-top: 18px;
    font-size: 20px;
    color: rgba(var(--fg-rgb), .55);
    letter-spacing: .08em;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
    width: min(520px, 92%);
    margin: 24px auto 0;
}

.cal-head, .cal-day {
    text-align: center;
    padding: 10px 0;
}

.cal-head {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
    color: rgba(var(--fg-rgb), .55);
    font-size: 12px;
}

.cal-day {
    color: rgba(var(--fg-rgb), .55);
    font-size: 16px;
}

.cal-empty {
    opacity: .18;
}

.cal-mark {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--accent);
}

.cal-mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 40px;
    transform: translate(-50%, -52%);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .95;
    background-color: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M32 53s-19.6-12.2-28-25.6C-2.8 15.5 5.7 3 18.6 3c6.6 0 11.2 3.4 13.4 7 2.2-3.6 6.8-7 13.4-7C58.3 3 66.8 15.5 60 27.4 51.6 40.8 32 53 32 53z' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M32 53s-19.6-12.2-28-25.6C-2.8 15.5 5.7 3 18.6 3c6.6 0 11.2 3.4 13.4 7 2.2-3.6 6.8-7 13.4-7C58.3 3 66.8 15.5 60 27.4 51.6 40.8 32 53 32 53z' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;

}

/* --- Countdown CTA --- */
.count-cta {
    position: relative;
    border: 1px solid var(--line);
    background: radial-gradient(900px 420px at 50% -10%, rgba(255, 255, 255, .54), transparent 62%), rgba(255, 255, 255, .24);
    border-radius: var(--radius-card);
    padding: var(--space-4) var(--space-3);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.count-cta__title {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: .01em;
}

.count-cta__panel {
    margin: 14px auto 16px;
    width: min(760px, 100%);
    border-radius: calc(var(--radius-card) - 4px);
    padding: var(--space-3) var(--space-2);
    background: linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .36));
    border: 1px solid rgba(var(--fg-rgb), .12);
    box-shadow: var(--shadow-soft);
}

.count-cta__nums {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.count-cta__nums .num {
    min-width: 92px;
}

.count-cta__nums .num span {
    display: block;
    font-size: 44px;
    letter-spacing: .06em;
}

.count-cta__nums .num small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.count-cta__nums .sep {
    font-size: 34px;
    opacity: .55;
    transform: translateY(-6px);
}

.count-cta__text {
    margin: 0 auto 18px;
    width: min(720px, 92%);
}

.count-cta__btn {
    width: min(520px, 100%);
    min-height: 48px;
    border-radius: var(--radius-pill);
    background: var(--fg);
    color: var(--bg);
    font-weight: 600;
    border: 1px solid rgba(var(--fg-rgb), .24);
    box-shadow: var(--shadow-cta);
}

/* --- Photo Blocks --- */
.section--gallery .container {
    width: min(1120px, 92vw);
}

.photo-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.photo-card {
    grid-column: span 4;
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: zoom-in;
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(var(--fg-rgb), .16);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}

.photo-card--wide {
    grid-column: span 8;
}

.photo-card--tall {
    grid-column: span 4;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.photo-card--wide img {
    aspect-ratio: 16 / 9;
}

.photo-card--tall img {
    aspect-ratio: 3 / 4;
}

.photo-card.is-bw img {
    filter: grayscale(1) contrast(1.06);
}

.photo-card figcaption {
    padding: 10px 12px 12px;
    text-align: left;
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(var(--fg-rgb), .74);
}

@media (hover: hover) {
    .photo-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-cta);
    }

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

.photo-card img {
    transition: transform .28s ease;
}

.photo-card:active {
    transform: translateY(-1px) scale(.998);
}

.section--photo-banner {
    padding-top: 30px;
    padding-bottom: 30px;
}

.photo-banner {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(var(--fg-rgb), .18);
    box-shadow: var(--shadow-soft);
    min-height: 360px;
}

.photo-banner img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    filter: saturate(.88) contrast(1.03);
}

.photo-banner__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 22px;
    color: #fff;
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 17, 17, .78));
}

.photo-banner__kicker {
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: .95;
}

.photo-banner__overlay p {
    margin: 0;
    max-width: 640px;
    font-family: var(--font-ui);
    font-style: normal;
    line-height: 1.45;
}

/* --- Timing / Timeline --- */
#details .timeline {
    width: min(520px, 92%);
    margin: 18px auto 0;
    display: grid;
    gap: 14px;
}

#details .trow {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    position: relative;
    text-align: left;
    align-items: center;
}

#details .time {
    font-size: 18px;
    color: rgba(var(--fg-rgb), .7);
}

#details .event {
    font-family: var(--font-script);
    font-size: 32px;
    color: rgba(var(--fg-rgb), .9);
    display: flex;
    align-items: center;
}

#details .trow::before {
    content: "✦";
    position: absolute;
    left: 92px;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(var(--accent-rgb), .80);

}

/* --- Dress Code --- */
.dress {
    text-align: center;
    padding: 18px 0 0;
}

.dress-title {
    font-size: 54px;
    margin: 0 0 10px;
}

.dress-text {
    width: min(720px, 92%);
    margin: 0 auto;
}

.swatches {
    display: flex;
    gap: 22px;
    margin-top: 26px;
    flex-wrap: wrap;
    justify-content: center;
}

.swatch {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(var(--fg-rgb), .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.swatch.sw1 {
    background: rgba(var(--accent-rgb), .28);
}

.swatch.sw2 {
    background: rgba(var(--accent2-rgb), .30);
}

.swatch.sw3 {
    background: rgba(var(--accent3-rgb), .34);
}

/* --- Forms & Cards --- */
.card {
    padding: 0;
    background: transparent;
}

.card h3 {
    margin: 0 0 10px;
    font-weight: 500;
    letter-spacing: .02em;
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.bullets li {
    margin: 8px 0;
}

.bullets strong {
    color: var(--fg);
    font-weight: 500;
}

.form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: rgba(var(--fg-rgb), .84);
}

input:not([type="checkbox"]), select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border-radius: var(--radius-control);
    border: 1px solid rgba(var(--fg-rgb), .18);
    background-color: rgba(255, 255, 255, .68);
    color: var(--fg);
    resize: none;
    outline: none;
    line-height: 1.45;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* space for arrow */
    padding-right: 44px; /* increase to move arrow left */
    padding-left: 12px;

    background-image: linear-gradient(45deg, transparent 50%, var(--icon) 50%),
    linear-gradient(135deg, var(--icon) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
    background-position: calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
}

input:not([type="checkbox"]):focus, select:focus, textarea:focus {
    border-color: rgba(244, 244, 244, .35);
}

input:not([type="checkbox"])[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: rgba(143, 63, 71, .65);
    box-shadow: 0 0 0 3px rgba(143, 63, 71, .16);
}

button {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-control);
    border: 1px solid rgba(244, 244, 244, .35);
    background: rgba(255, 255, 255, .34);
    color: var(--fg);
}


.link.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.link.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Parallax --- */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-section > * {
    position: relative;
    z-index: 1;
}

.parallax-section::before {
    content: "";
    position: absolute;
    inset: -120px -40px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(700px 360px at 20% 20%, rgba(28, 28, 28, .05), transparent 60%),
    radial-gradient(820px 420px at 80% 50%, rgba(28, 28, 28, .04), transparent 62%),
    radial-gradient(620px 360px at 50% 110%, rgba(138, 167, 198, .14), transparent 65%);

    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    will-change: transform;
}

.p-orn {
    position: absolute;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: .85;
    will-change: transform;
}

.p-orn--1 {
    top: -200px;
    left: -140px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 0, 0, .12), transparent 12%),
    radial-gradient(circle at 60% 60%, rgba(var(--accent-rgb), .42), transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(var(--accent2-rgb), .42), transparent 42%);
}

.p-orn--2 {
    bottom: -120px;
    right: -220px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 0, 0, .12), transparent 12%),
    radial-gradient(circle at 60% 60%, rgba(var(--accent-rgb), .42), transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(var(--accent2-rgb), .42), transparent 42%);
}

.p-orn--3 {
    top: -20px;
    right: -260px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 0, 0, .12), transparent 12%),
    radial-gradient(circle at 60% 60%, rgba(var(--accent-rgb), .42), transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(var(--accent2-rgb), .42), transparent 42%);
}

.p-orn--4 {
    bottom: 90px;
    left: -140px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 0, 0, .12), transparent 12%),
    radial-gradient(circle at 60% 60%, rgba(var(--accent-rgb), .42), transparent 42%),
    radial-gradient(circle at 30% 70%, rgba(var(--accent2-rgb), .42), transparent 42%);
}

.p-orn--5 {
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 45% 45%, rgba(0, 0, 0, .08), transparent 12%), radial-gradient(circle at 60% 60%, rgba(179, 58, 58, .11), transparent 62%);
}


/* Reveal variants (AOS-like) */
.reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.reveal[data-anim="fade-up"] {
    transform: translate3d(0, 16px, 0);
}

.reveal[data-anim="fade-down"] {
    transform: translate3d(0, -16px, 0);
}

.reveal[data-anim="fade-left"] {
    transform: translate3d(16px, 0, 0);
}

.reveal[data-anim="fade-right"] {
    transform: translate3d(-16px, 0, 0);
}

.reveal[data-anim="zoom-in"] {
    transform: translate3d(0, 0, 0) scale(.96);
}

.rsvp-wrap {
    text-align: center;
}

.rsvp-wrap .lead {
    width: min(760px, 95%);
    margin: 0 auto 18px;
}

/* Card */
.rsvp-card {
    width: min(760px, 100%);
    margin: 18px auto 0;
    border-radius: var(--radius-card);
    padding: 32px 24px;
    border: 1px solid var(--line);
    background: radial-gradient(900px 420px at 50% -10%, rgba(255, 255, 255, .64), transparent 62%),
    rgba(255, 255, 255, .4);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.rsvp-title {
    font-size: 40px;
    margin: 0 0 6px;
}

.rsvp-sub {
    margin: 0 0 14px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-style: normal;
}

/* Grid for 2 fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 860px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}


input:not([type="checkbox"])::placeholder, textarea::placeholder {
    color: rgba(var(--fg-rgb), .45);
}

input:not([type="checkbox"]):focus, select:focus, textarea:focus {
    border-color: rgba(179, 58, 58, .35);
    box-shadow: 0 0 0 3px rgba(179, 58, 58, .10);
}

/* Actions */
.rsvp-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.rsvp-actions button {
    width: min(520px, 100%);
    min-height: 48px;
    border-radius: var(--radius-pill);
    background: var(--fg);
    color: var(--bg);
    border: 1px solid rgba(var(--fg-rgb), .14);
    transition: all 0.3s;
    box-shadow: var(--shadow-cta);
}

.rsvp-actions button:disabled {
    opacity: 0.8;
}

.map-card {
    width: min(900px, 100%);
    margin: 18px auto 0;
    border-radius: var(--radius-card);
    padding: 26px 22px;
    border: 1px solid var(--line);
    background: radial-gradient(900px 420px at 50% -10%, rgba(255, 255, 255, .64), transparent 62%),
    rgba(255, 255, 255, .38);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.map-title {
    font-family: var(--font-ui);
    font-style: normal;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 6px;
}

.map-sub {
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 13px;
}

.map-embed {
    margin-top: 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(var(--fg-rgb), .14);
    background: rgba(255, 255, 255, .35);
    aspect-ratio: 16 / 9;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(.95) contrast(1.02);
}

.map-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(520px, 100%);
    min-height: 48px;
    border-radius: var(--radius-pill);
    background: var(--fg);
    color: var(--bg);
    font-family: var(--font-ui);
    font-style: normal;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(var(--fg-rgb), .14);
    box-shadow: var(--shadow-cta);
    transition: transform .18s ease, filter .18s ease;
}

.map-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.map-btn:active {
    transform: translateY(0) scale(.99);
}

/* --- Checks (drinks) --- */
.checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 10px;
}

@media (max-width: 860px) {
    .checks {
        grid-template-columns: 1fr;
    }
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-control);
    border: 1px solid rgba(var(--fg-rgb), .14);
    background: rgba(255, 255, 255, .45);
    font-family: var(--font-ui);
    font-style: normal;
    color: rgba(var(--fg-rgb), .85);
}

.check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    padding: 0;
    margin: 0;
    border: 1.5px solid rgba(var(--fg-rgb), .32);
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

.check input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(var(--accent-rgb), .95);
    transform: scale(0);
    transition: transform .15s ease;
}

.check input[type="checkbox"]:checked {
    border-color: rgba(var(--accent-rgb), .9);
    background: rgba(var(--accent-rgb), .14);
}

.check input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.check input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(var(--accent2-rgb), .85);
    outline-offset: 2px;
}

.check input[type="checkbox"]:active {
    transform: scale(.96);
}

.gift-note {
    font-size: 15px;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 14px 18px;
    border-radius: calc(var(--radius-card) - 6px);
    background: rgba(255, 255, 255, .25);
    display: inline-block;
    margin: 0 0 32px;
    font-family: var(--font-ui);
    font-style: normal;
    text-align: center;
    width: min(760px, 95%);
}

.gift-note strong {
    color: var(--fg);
    font-weight: 600;
}

.canvas--mobile {
    position: absolute;
    top: 67%;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    transform: translateX(11vw) rotate(-10deg) scale(1.1);
}

/* Desktop canvases (fixed) — как у тебя сейчас */
.canvas:not(.canvas--mobile) {
    position: fixed;
    top: 60px;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.canvas:not(.canvas--mobile).left {
    transform: rotate(180deg);
}

.rsvp-feedback {
    margin-top: var(--space-2);
    min-height: 24px;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.45;
}

.rsvp-feedback.is-success {
    color: #315f3a;
}

.rsvp-feedback.is-error {
    color: #8f3f47;
}

/* --- Pretty Alert --- */
.pretty-alert {
    position: fixed;
    right: 16px;
    top: calc(var(--anchor-offset) + 10px);
    z-index: 70;
    width: min(420px, calc(100vw - 24px));
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.pretty-alert.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pretty-alert__inner {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 12px;
    border-radius: var(--radius-control);
    border: 1px solid rgba(var(--fg-rgb), .16);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-soft);
    font-family: var(--font-ui);
}

.pretty-alert__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    font-size: 14px;
    font-weight: 700;
    background: rgba(var(--accent-rgb), .16);
    color: rgba(var(--fg-rgb), .88);
}

.pretty-alert__text {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(var(--fg-rgb), .9);
}

.pretty-alert__close {
    min-height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(var(--fg-rgb), .14);
    background: rgba(255, 255, 255, .68);
    color: rgba(var(--fg-rgb), .75);
    box-shadow: none;
    font-size: 14px;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 14, 11, .72);
    backdrop-filter: blur(2px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: var(--space-3);
    width: min(1100px, 95vw);
    margin: 0 auto;
}

.lightbox__figure {
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-cta);
}

.lightbox__figure img {
    width: 100%;
    max-height: min(82vh, 920px);
    object-fit: cover;
    display: block;
}

.lightbox__caption {
    padding: 10px 12px 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(var(--fg-rgb), .78);
}

.lightbox__nav,
.lightbox__close {
    min-height: 44px;
    min-width: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    box-shadow: none;
}

.lightbox__close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 2;
    font-size: 20px;
}

.lightbox__nav:hover,
.lightbox__close:hover {
    background: rgba(255, 255, 255, .24);
}

/* Переключение по ширине */

.bouquet {
    position: absolute;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 0;
    filter: blur(.2px);
    opacity: 0;

    /* "цветы" из радиальных градиентов */
    background: radial-gradient(circle at 30% 30%, rgba(201, 139, 147, .55), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(138, 167, 198, .55), transparent 58%),
    radial-gradient(circle at 55% 75%, rgba(168, 183, 163, .50), transparent 60%),
    radial-gradient(circle at 25% 70%, rgba(255, 255, 255, .35), transparent 55%);
    border-radius: 50%;
}

/* позиции */
.bq-left {
    left: -60px;
    top: 80px;
    transform: translate3d(-18px, 12px, 0) scale(.95);
}

.bq-right {
    right: -70px;
    top: 220px;
    transform: translate3d(18px, 12px, 0) scale(.95);
}

/* когда setupReveal добавит .is-in */
.bouquet.reveal.is-in {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* --- Media Queries --- */

@media (max-width: 1199.98px) {
    .canvas:not(.canvas--mobile) {
        display: none;
    }

    html, body {
        overscroll-behavior: none;
    }

    #top {
        touch-action: pan-y;
    }
}

@media (min-width: 1200px) {
    .canvas--mobile {
        display: none;
    }
}

@media (min-width: 600px) and (max-width: 1199.98px) {
    .canvas--mobile {
        transform: translateX(2vw) rotate(-10deg) scale(1.1);
        top: 55%;
    }
}

@media (max-width: 1100px) {
    .hero-inner {
        padding: 8px 0 40px;
    }
}

@media (max-width: 980px) {
    .photo-card {
        grid-column: span 6;
    }

    .photo-card--wide,
    .photo-card--tall {
        grid-column: span 12;
    }
}

@media (max-width: 860px) {
    :root {
        --anchor-offset: 76px;
    }

    .site-nav {
        height: 52px;
    }

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

    .site-nav__inner {
        height: 100%;
        gap: var(--space-2);
    }

    .site-nav__brand {
        font-size: 28px;
    }

    .site-nav__links {
        flex: 1;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-end;
        gap: 6px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .site-nav__links::-webkit-scrollbar {
        display: none;
    }

    .site-nav__links a {
        padding: 7px 9px;
        font-size: 11px;
        letter-spacing: .1em;
    }

    .map-embed {
        aspect-ratio: 2 / 2.8;
    }

    .hero-actions {
        margin-bottom: 72px;
    }

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

    .photo-card,
    .photo-card--wide,
    .photo-card--tall {
        grid-column: auto;
    }

    .photo-banner,
    .photo-banner img {
        min-height: 270px;
    }

    .photo-banner__overlay {
        padding: 16px 14px;
    }

    .rsvp-card {
        padding: 24px 16px;
    }

    .count-cta {
        padding: 20px 14px;
    }

    .bouquet {
        width: 100px;
        height: 100px;
    }

    .bq-left {
        left: -10px;
        top: 40px;
        transform: translate3d(-18px, 12px, 0) scale(.95);
    }

    .bq-right {
        right: -20px;
        bottom: 30%;
        transform: translate3d(18px, 12px, 0) scale(.95);
    }

    .lightbox__dialog {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 10px;
    }

    .lightbox__figure img {
        max-height: 72vh;
    }

    .lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .lightbox__nav--prev {
        left: 8px;
    }

    .lightbox__nav--next {
        right: 8px;
    }

    .pretty-alert {
        right: 12px;
        top: calc(var(--anchor-offset) + 8px);
        width: calc(100vw - 24px);
    }
}

@media (max-width: 430px) {
    .container {
        width: min(960px, calc(100vw - 24px));
    }

    .hero-inner {
        gap: 22px;
    }

    .date-stack {
        gap: 8px;
    }

    .count-cta__nums .num {
        min-width: 76px;
    }

    .count-cta__nums .num span {
        font-size: 36px;
    }
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .marquee {
        animation: none;
        transform: none;
    }

    .reveal,
    .reveal.is-in {
        opacity: 1;
        transform: none;
    }
}
