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

:root {
    --transition: all .55s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, .12);

    --e2-paper: rgba(255, 255, 255, .86);
    --e2-paper-strong: rgba(255, 255, 255, .96);
    --e2-paper-soft: rgba(255, 255, 255, .62);
    --e2-ink: rgba(44, 44, 44, .92);
    --e2-muted: rgba(44, 44, 44, .68);
    --e2-line: rgba(0, 0, 0, .08);
    --e2-radius-xl: 34px;
    --e2-radius: 24px;
    --e2-radius-sm: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--secondary-color);
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), .10), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(var(--gold-rgb), .10), transparent 32%),
        var(--primary-color);
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image: var(--site-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .08;
    filter: saturate(.95) contrast(.95);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 42%),
        radial-gradient(circle at 50% 120%, rgba(var(--gold-rgb), .10), transparent 42%);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

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

.section {
    padding: 104px 0;
    position: relative;
}

.section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 20px;
    width: min(760px, 80vw);
    height: 200px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .46), transparent 68%);
    opacity: .7;
    filter: blur(22px);
    z-index: -1;
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s ease, transform .75s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.section-title {
    text-align: center;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom: 74px;
    position: relative;
    color: var(--secondary-color);
    line-height: 1.05;
}

.section-kicker {
    text-align: center;
    margin-bottom: 12px;
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(44, 44, 44, .58);
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), rgba(var(--gold-rgb), .72), transparent);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--on-accent);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(var(--accent-rgb), .22);
}

.btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .055;
    background:
        radial-gradient(circle at 20% 80%, var(--accent-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--gold-color) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #f0f0f0 0%, transparent 50%);
}

/* HERO */
.hero {
    min-height: 100vh;
    padding-top: 22px;
    padding-bottom: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .58)),
        var(--hero-bg-image);
    background-size: cover;
    background-position: var(--hero-bg-position);
    z-index: -1;
    transform: scale(1.1);
    animation: zoomIn 20s linear infinite alternate;
}

/* Важно: когда фото нет, не показываем текстовую заглушку поверх имён */
.hero-bg.template-empty-photo {
    background:
        radial-gradient(circle at 30% 24%, rgba(var(--gold-rgb), .26), transparent 34%),
        radial-gradient(circle at 70% 72%, rgba(var(--accent-rgb), .18), transparent 36%),
        linear-gradient(135deg, rgba(var(--gold-rgb), .22), rgba(255, 255, 255, .70));
}

.hero-bg.template-empty-photo .template-empty-photo__inner {
    display: none !important;
}

.hero-bg.template-empty-photo::before {
    display: none !important;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    pointer-events: none;
    z-index: 1;
}

@keyframes zoomIn {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.couple-names {
    font-size: clamp(3.1rem, 8vw, 6.2rem);
    margin-bottom: 18px;
    letter-spacing: var(--hero-tracking);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s .5s forwards;
    line-height: 1.02;
    text-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.hero-subtitle {
    margin: -6px auto 18px;
    max-width: 740px;
    font-size: 1.15rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s .85s forwards;
    line-height: 1.55;
    text-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.wedding-date {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    margin-bottom: 34px;
    letter-spacing: 5px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 20px 0 34px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s 1.5s forwards;
}

.countdown-item {
    text-align: center;
    background-color: rgba(255, 255, 255, .11);
    border-radius: 18px;
    padding: 20px 15px;
    min-width: 120px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, .20);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .18);
}

@media (hover:hover) and (pointer:fine) {
    .countdown-item:hover {
        transform: translateY(-10px);
        background-color: rgba(255, 255, 255, .20);
    }
}

.countdown-number {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 5px;
    line-height: 1;
}

.countdown-label {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .countdown-container {
        gap: 12px;
        margin: 14px 0 22px;
    }

    .countdown-item {
        min-width: calc(50% - 12px);
        padding: 14px 10px;
    }

    .countdown-number {
        font-size: 2rem;
    }
}

/* HERO scroll arrow */
.heroScroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 20;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    cursor: pointer;
    animation: heroArrowFloat 2.4s ease-in-out infinite;
}

.heroScroll svg,
.heroScroll i {
    width: 22px;
    height: 22px;
    display: block;
    color: rgba(255, 255, 255, .85);
    transition: transform .25s ease, opacity .25s ease;
}

.heroScroll:hover svg,
.heroScroll:hover i {
    transform: translateY(4px);
    opacity: 1;
}

@keyframes heroArrowFloat {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: .7;
    }

    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: .7;
    }
}

/* STORY */
#story {
    overflow: hidden;
}

#story .section-title {
    margin-bottom: 58px;
}

.story-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
    gap: clamp(28px, 5vw, 66px);
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 640px;
}

.story-container::before {
    content: "";
    position: absolute;
    inset: -28px -22px;
    border-radius: 38px;
    background:
        radial-gradient(520px 260px at 14% 18%, rgba(var(--accent-rgb), .18), transparent 62%),
        radial-gradient(540px 260px at 92% 82%, rgba(var(--gold-rgb), .16), transparent 64%),
        linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06));
    border: 1px solid rgba(0, 0, 0, .045);
    pointer-events: none;
    z-index: -1;
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow:
        0 34px 92px rgba(0, 0, 0, .15),
        inset 0 0 0 1px rgba(255, 255, 255, .22);
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    background: rgba(255, 255, 255, .12);
    isolation: isolate;
}

.story-image::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 22px;
    z-index: 3;
    pointer-events: none;
}

.story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .10), transparent 42%, rgba(0, 0, 0, .22)),
        radial-gradient(circle at 30% 8%, rgba(255, 255, 255, .28), transparent 36%);
    pointer-events: none;
}

.story-image img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .8s ease, filter .8s ease;
    filter: saturate(.92) contrast(1.05);
}

@media (hover:hover) {
    .story-image:hover img {
        transform: scale(1.07);
        filter: saturate(1) contrast(1.03);
    }
}

.story-float {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 172px;
    height: 172px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .70);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .24);
    background: rgba(255, 255, 255, .08);
    z-index: 4;
}

.story-float::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .36);
    z-index: 2;
    pointer-events: none;
}

.story-float img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.story-text {
    position: relative;
    min-height: 100%;
    padding: clamp(30px, 4vw, 54px);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .76));
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 28px 82px rgba(0, 0, 0, .10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 220px at 12% 12%, rgba(var(--accent-rgb), .16), transparent 62%),
        radial-gradient(420px 220px at 90% 88%, rgba(var(--gold-rgb), .14), transparent 62%);
    pointer-events: none;
}

.story-text::after {
    content: "LOVE STORY";
    position: absolute;
    right: -12px;
    bottom: 12px;
    font-family: var(--font-heading);
    font-size: clamp(42px, 7vw, 92px);
    line-height: 1;
    color: rgba(0, 0, 0, .035);
    letter-spacing: .08em;
    white-space: nowrap;
    pointer-events: none;
}

.story-text > * {
    position: relative;
    z-index: 2;
}

.story-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: 14px;
    color: var(--accent-color);
    font-weight: 700;
}

.story-kicker::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.story-text h3 {
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    margin-bottom: 30px;
    color: var(--accent-color);
    line-height: 1;
    letter-spacing: .02em;
}

.story-text p {
    max-width: 640px;
    color: var(--e2-muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.85;
}

.story-text p + p {
    margin-top: 18px;
}

@media (max-width: 920px) {
    .story-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 22px;
    }

    .story-image {
        min-height: 520px;
        height: 520px;
    }

    .story-image img {
        min-height: 520px;
    }

    .story-text {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    #story .section-title {
        margin-bottom: 46px;
    }

    .story-container::before {
        inset: -18px -10px;
        border-radius: 28px;
    }

    .story-image {
        min-height: 440px;
        height: 440px;
        border-radius: 24px;
    }

    .story-image img {
        min-height: 440px;
    }

    .story-image::before {
        inset: 12px;
        border-radius: 18px;
    }

    .story-text {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .story-float {
        width: 126px;
        height: 126px;
        right: 14px;
        bottom: 14px;
        border-radius: 18px;
    }

    .story-text h3 {
        margin-bottom: 20px;
    }
}

/* DRESSCODE */
.iviDress,
#dresscode.iviDress,
#dresscode .dc-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 28px 24px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78));
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.iviDress:before,
#dresscode.iviDress:before,
#dresscode .dc-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 240px at 10% 22%, rgba(var(--accent-rgb), .22), transparent 60%),
        radial-gradient(480px 220px at 92% 28%, rgba(var(--gold-rgb), .16), transparent 62%);
    opacity: .7;
    pointer-events: none;
}

.iviDressWrap,
#dresscode .dc-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.iviDressKicker,
#dresscode .dc-kicker {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: 10px;
}

.iviDressTitle,
#dresscode .dc-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: .08em;
    color: rgba(44, 44, 44, .92);
    margin-bottom: 10px;
    line-height: 1.2;
}

.iviDressText,
#dresscode .dc-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.02rem;
    color: rgba(44, 44, 44, .72);
    line-height: 1.7;
    white-space: pre-line;
}

.iviDressSwatches,
#dresscode .dc-swatches {
    margin: 18px auto 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 760px;
}

.iviDressDot,
#dresscode .dc-dot {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--c);
    border: 1px solid rgba(0, 0, 0, .10);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .10);
    position: relative;
    overflow: hidden;
    display: inline-block;
    flex: 0 0 auto;
}

.iviDressDot:after,
#dresscode .dc-dot:after {
    content: "";
    position: absolute;
    inset: -12px;
    background: radial-gradient(90px 70px at 50% 0%, rgba(var(--accent-rgb), .16), transparent 62%);
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 640px) {
    .iviDressDot,
    #dresscode .dc-dot {
        width: 48px;
        height: 48px;
    }
}

/* petals */
.petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: #ffebee;
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    opacity: .7;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Shared cards */
.block-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 24px 20px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78));
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.block-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 240px at 10% 22%, rgba(var(--accent-rgb), .18), transparent 60%),
        radial-gradient(480px 220px at 92% 28%, rgba(var(--gold-rgb), .14), transparent 62%);
    opacity: .75;
    pointer-events: none;
}

.block-card > * {
    position: relative;
    z-index: 2;
}

/* Location */
#location.iviLoc,
#loc .iviLoc {
    margin-top: 0;
}

#location .iviLocGrid,
#loc .iviLocGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

@media (max-width: 820px) {
    #location .iviLocGrid,
    #loc .iviLocGrid {
        grid-template-columns: 1fr;
    }
}

#location .iviLocCard,
#loc .iviLocCard {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .55);
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .08);
}

#location .iviLocPhoto,
#loc .iviLocPhoto {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    background: rgba(0, 0, 0, .04);
}

#location .iviLocPhoto::after,
#loc .iviLocPhoto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .16), transparent 55%, rgba(0, 0, 0, .08));
    pointer-events: none;
}

#location .iviLocPhoto img,
#loc .iviLocPhoto img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    display: block;
    transform: scale(1.02);
    transition: transform .5s ease, filter .5s ease;
    filter: grayscale(100%) contrast(1.06);
}

@media (hover:hover) {
    #location .iviLocPhoto:hover img,
    #loc .iviLocPhoto:hover img {
        filter: grayscale(0%) contrast(1.03);
        transform: scale(1.05);
    }
}

@media (max-width: 820px) {
    #location .iviLocPhoto img,
    #loc .iviLocPhoto img {
        height: 260px !important;
    }
}

#location .iviLocBody,
#loc .iviLocBody {
    padding: 16px;
}

#location .iviLocBadge,
#loc .iviLocBadge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .20em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .70);
    color: rgba(44, 44, 44, .72);
}

#location .iviLocName,
#loc .iviLocName {
    margin: 12px 0 6px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: .08em;
    color: rgba(44, 44, 44, .92);
    font-weight: 600;
}

#location .iviLocAddr,
#loc .iviLocAddr {
    color: rgba(44, 44, 44, .72);
    font-size: 1.02rem;
    line-height: 1.6;
}

#location .iviLocNote,
#loc .iviLocNote {
    margin-top: 8px;
    color: rgba(44, 44, 44, .70);
    font-size: .98rem;
    line-height: 1.55;
}

#location .iviLocActions,
#loc .iviLocActions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#location .iviBtn,
#loc .iviBtn {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease, color .15s ease;
    font-family: var(--font-body);
    font-weight: 700;
}

#location .iviBtn:hover,
#loc .iviBtn:hover {
    transform: translateY(-1px);
    opacity: .96;
}

#location .iviBtnPrimary,
#loc .iviBtnPrimary {
    background: var(--accent-color);
    color: var(--on-accent);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    border: 2px solid var(--accent-color);
}

#location .iviBtnPrimary:hover,
#loc .iviBtnPrimary:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

#location .iviBtnGhost,
#loc .iviBtnGhost {
    background: rgba(255, 255, 255, .70);
    color: rgba(44, 44, 44, .92);
    border: 1px solid rgba(0, 0, 0, .12);
}

/* MUSIC */
#music,
.iviMusic,
[data-block="music"],
.musicBtn,
.iviMusicBtn {
    z-index: 9200;
    position: relative;
}

/* Gallery */
#galleryWrap .iviGallery {
    padding: 0;
    margin: 0;
}

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

@media (max-width: 900px) {
    #galleryWrap .iviGalleryGrid--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #galleryWrap .iviGalleryGrid--grid {
        grid-template-columns: 1fr;
    }

    .couple-names {
        font-size: 3rem;
    }
}

#galleryWrap .iviGalleryGrid--masonry {
    column-count: 3;
    column-gap: 16px;
}

@media (max-width: 900px) {
    #galleryWrap .iviGalleryGrid--masonry {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    #galleryWrap .iviGalleryGrid--masonry {
        column-count: 1;
    }
}

#galleryWrap .iviGalleryGrid--masonry .iviGalleryItem {
    break-inside: avoid;
    margin: 0 0 16px;
}

#galleryWrap .iviGalleryItem {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, .02);
}

#galleryWrap .iviGalleryItem img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform .35s ease, filter .35s ease;
    filter: grayscale(100%) contrast(1.06);
}

@media (hover:hover) {
    #galleryWrap .iviGalleryItem:hover img {
        transform: scale(1.06);
        filter: grayscale(0%) contrast(1.03);
    }
}

@media (max-width: 520px) {
    #galleryWrap .iviGalleryItem img {
        height: 420px;
    }
}

#galleryWrap .iviGalleryCaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, .90);
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: rgba(0, 0, 0, .78);
    margin: 0;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   SCHEDULE / PROGRAM
========================================================= */
#schedule {
    position: relative;
    overflow: hidden;
}

#schedule::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 80px;
    width: min(980px, 86vw);
    height: 420px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 18% 24%, rgba(var(--accent-rgb), .16), transparent 38%),
        radial-gradient(circle at 82% 64%, rgba(var(--gold-rgb), .16), transparent 42%);
    filter: blur(26px);
    pointer-events: none;
    z-index: -1;
}

#schedule .container {
    position: relative;
}

#schedule .section-kicker {
    color: var(--accent-color);
}

#schedule .section-title {
    margin-bottom: 56px;
}

#schedule .timeline {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 0;
    isolation: isolate;
}

#schedule .timeline::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 34px;
    bottom: 34px;
    width: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(var(--accent-rgb), .26) 12%,
            rgba(var(--gold-rgb), .32) 50%,
            rgba(var(--accent-rgb), .20) 88%,
            transparent
        );
    z-index: 0;
}

#schedule .timeline-item {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 0 0 84px;
    z-index: 1;
}

#schedule .timeline-item::before {
    content: "";
    position: absolute;
    left: 34px;
    top: 50%;
    width: 48px;
    height: 1px;
    transform: translateY(-50%);
    background:
        linear-gradient(
            90deg,
            rgba(var(--accent-rgb), .34),
            rgba(var(--accent-rgb), 0)
        );
    z-index: 1;
}

#schedule .timeline-dot {
    position: absolute;
    left: 22px !important;
    right: auto !important;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, .62) 28%, var(--accent-color) 58%);
    border: 6px solid rgba(255, 255, 255, .92);
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), .18),
        0 0 0 8px rgba(var(--accent-rgb), .10),
        0 18px 44px rgba(0, 0, 0, .12);
    z-index: 4;
    transition:
        transform .28s cubic-bezier(.22, 1, .36, 1),
        box-shadow .28s ease,
        background .28s ease;
}

#schedule .timeline-dot::after {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: inherit;
    border: 1px solid rgba(var(--accent-rgb), .26);
    opacity: 0;
    transform: scale(.72);
    animation: programDotPulse 2.4s ease-in-out infinite;
}

@keyframes programDotPulse {
    0% {
        opacity: 0;
        transform: scale(.72);
    }

    36% {
        opacity: .55;
    }

    78%,
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

#schedule .timeline-time {
    position: absolute;
    left: 110px !important;
    right: auto !important;
    top: 24px;
    transform: none !important;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .84));
    border: 1px solid rgba(var(--accent-rgb), .18);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .55);
    color: var(--accent-color);
    font-size: .86rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#schedule .timeline-time::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: currentColor;
    opacity: .78;
}

#schedule .timeline-content {
    position: relative;
    min-height: 124px;
    padding: 72px 28px 26px;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .74));
    border: 1px solid rgba(0, 0, 0, .07);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .10),
        inset 0 1px 0 rgba(255, 255, 255, .44);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform .32s cubic-bezier(.22, 1, .36, 1),
        box-shadow .32s ease,
        border-color .32s ease,
        background .32s ease;
}

#schedule .timeline-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 260px at 8% 18%, rgba(var(--accent-rgb), .18), transparent 60%),
        radial-gradient(460px 220px at 92% 20%, rgba(var(--gold-rgb), .15), transparent 62%),
        linear-gradient(90deg, rgba(var(--accent-rgb), .08), transparent 34%);
    opacity: .72;
    pointer-events: none;
    transition: opacity .32s ease;
}

#schedule .timeline-content::after {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 5px;
    border-radius: 0 999px 999px 0;
    background:
        linear-gradient(
            to bottom,
            var(--accent-color),
            color-mix(in srgb, var(--gold-color) 70%, var(--accent-color) 30%)
        );
    opacity: .84;
}

#schedule .timeline-content > * {
    position: relative;
    z-index: 2;
}

#schedule .timeline-content h3 {
    margin: 0 0 10px;
    color: rgba(44, 44, 44, .94);
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: .98;
    letter-spacing: .02em;
    font-weight: 600;
}

#schedule .timeline-content p {
    margin: 0;
    max-width: 760px;
    color: rgba(44, 44, 44, .68);
    font-size: 1.02rem;
    line-height: 1.65;
}

#schedule .timeline-content .tl-accent {
    display: none;
}

#schedule .timeline-item:not(:has(.timeline-time)) .timeline-content {
    padding-top: 28px;
}

@media (hover:hover) and (pointer:fine) {
    #schedule .timeline-item:hover .timeline-content {
        transform: translateY(-6px);
        border-color: rgba(var(--accent-rgb), .20);
        box-shadow:
            0 32px 86px rgba(0, 0, 0, .14),
            inset 0 1px 0 rgba(255, 255, 255, .52);
    }

    #schedule .timeline-item:hover .timeline-content::before {
        opacity: .92;
    }

    #schedule .timeline-item:hover .timeline-dot {
        transform: translateY(-50%) scale(1.12);
        box-shadow:
            0 0 0 1px rgba(var(--accent-rgb), .20),
            0 0 0 11px rgba(var(--accent-rgb), .12),
            0 22px 52px rgba(0, 0, 0, .16);
    }

    #schedule .timeline-item:hover .timeline-time {
        border-color: rgba(var(--accent-rgb), .28);
        box-shadow:
            0 18px 42px rgba(0, 0, 0, .10),
            inset 0 1px 0 rgba(255, 255, 255, .58);
    }
}

/* DARK THEMES SUPPORT */
html[data-dark="1"] #schedule::before {
    opacity: .7;
}

html[data-dark="1"] #schedule .timeline::before {
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(var(--accent-rgb), .34) 12%,
            rgba(var(--gold-rgb), .32) 50%,
            rgba(var(--accent-rgb), .24) 88%,
            transparent
        );
}

html[data-dark="1"] #schedule .timeline-content {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .055));
    border-color: rgba(255, 255, 255, .12);
    box-shadow:
        0 26px 78px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-dark="1"] #schedule .timeline-content h3 {
    color: rgba(255, 255, 255, .94);
}

html[data-dark="1"] #schedule .timeline-content p {
    color: rgba(255, 255, 255, .68);
}

html[data-dark="1"] #schedule .timeline-time {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .90);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-dark="1"] #schedule .timeline-dot {
    border-color: rgba(255, 255, 255, .18);
}

/* RSVP */
#rsvpWrap .block-card {
    max-width: 980px;
    margin: 0 auto;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) {
    --rsvp-paper: rgba(255, 255, 255, .72);
    --rsvp-line: rgba(0, 0, 0, .12);
    --rsvp-ink: rgba(0, 0, 0, .86);
    --rsvp-muted: rgba(0, 0, 0, .62);
    --rsvp-submit-bg: color-mix(in srgb, var(--gold-color) 72%, #fff 28%);
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) form {
    max-width: 820px;
    margin: 18px auto 0;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(input, textarea, select) {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--rsvp-line);
    background: var(--rsvp-paper);
    padding: 12px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--rsvp-ink);
    outline: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) textarea {
    min-height: 110px;
    resize: vertical;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    transform: translateY(2px);
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) input[type="checkbox"] + label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(0, 0, 0, .62);
    font-size: 14px;
    user-select: none;
    cursor: pointer;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(0, 0, 0, .62);
    font-size: 14px;
    user-select: none;
    cursor: pointer;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(button[type="submit"], input[type="submit"]) {
    width: 100%;
    border: 1px solid rgba(var(--accent-rgb), .28);
    border-radius: 999px;
    padding: 18px 18px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--gold-color) 22%, var(--accent-color) 78%));
    box-shadow: 0 22px 70px rgba(0, 0, 0, .16);
    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease,
        opacity .16s ease,
        background .16s ease,
        border-color .16s ease;
    -webkit-appearance: none;
    appearance: none;
}

@media (hover:hover) {
    #rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(button[type="submit"], input[type="submit"]):hover {
        color: #fff;
        background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 88%, #000 12%), color-mix(in srgb, var(--gold-color) 28%, var(--accent-color) 72%));
        transform: translateY(-1px);
        filter: none;
        box-shadow: 0 26px 78px rgba(0, 0, 0, .18);
        opacity: 1;
    }
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(button[type="submit"], input[type="submit"]):focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(var(--accent-rgb), .18),
        0 22px 70px rgba(0, 0, 0, .16);
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(button[type="submit"], input[type="submit"]):active {
    transform: translateY(1px) scale(.99);
    color: #fff;
}

.consent {
    margin-bottom: 20px;
}

/* RSVP chips/buttons */
#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(.chips, .chipset, .rsvpChips, .btnGroup, .rsvpBtns, .options, .variants) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(.chips input[type="radio"], .chips input[type="checkbox"],
    .chipset input[type="radio"], .chipset input[type="checkbox"],
    .options input[type="radio"], .options input[type="checkbox"],
    .variants input[type="radio"], .variants input[type="checkbox"]) {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(.chip, .chips .chip, .chips button, .chipset label, .chipset button, button.chip,
    .options label, .options button, .variants label, .variants button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .65);
    color: rgba(0, 0, 0, .86);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

@media (hover:hover) {
    #rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(.chip:hover, .chips button:hover, .chipset label:hover, .chipset button:hover, .options label:hover, .options button:hover, .variants label:hover, .variants button:hover) {
        transform: translateY(-1px);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
        border-color: rgba(0, 0, 0, .20);
    }
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(.chip:active, .chips button:active, .chipset label:active, .chipset button:active, .options label:active, .options button:active, .variants label:active, .variants button:active) {
    transform: translateY(1px) scale(.99);
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(.chip.active, .chip.is-active, .chip[data-active="true"],
    .chips button.active, .chips button.is-active, .chips button[data-active="true"],
    .chipset label.active, .options label.active, .variants label.active) {
    background: color-mix(in srgb, var(--accent-color) 88%, #000 12%) !important;
    color: #fff !important;
    border-color: color-mix(in srgb, var(--accent-color) 65%, rgba(0, 0, 0, .10)) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .18) !important;
}

#rsvpWrap :where(#rsvp, #rsvpInner, .rsvpSection, .rsvp, [data-block="rsvp"]) :where(input[type="radio"]:checked + label, input[type="checkbox"]:checked + label) {
    background: color-mix(in srgb, var(--accent-color) 88%, #000 12%) !important;
    color: #fff !important;
    border-color: color-mix(in srgb, var(--accent-color) 65%, rgba(0, 0, 0, .10)) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .18) !important;
}

/* final footer */
footer {
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(960px, 86vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .36), transparent);
}

/* global mobile */
@media (max-width: 768px) {
    .section {
        padding: 78px 0;
    }

    .section-title {
        margin-bottom: 56px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 22px;
    }

    .block-card {
        padding: 18px 14px 16px;
        border-radius: 18px;
    }
}

@media (max-width: 760px) {
    #schedule .section-title {
        margin-bottom: 44px;
    }

    #schedule .timeline {
        gap: 14px;
    }

    #schedule .timeline::before {
        left: 18px;
        top: 24px;
        bottom: 24px;
    }

    #schedule .timeline-item {
        padding-left: 46px;
    }

    #schedule .timeline-item::before {
        left: 18px;
        width: 28px;
    }

    #schedule .timeline-dot {
        left: 8px !important;
        width: 22px;
        height: 22px;
        border-width: 5px;
    }

    #schedule .timeline-time {
        position: relative;
        left: auto !important;
        top: auto;
        width: fit-content;
        margin: 0 0 12px;
        min-height: 36px;
        padding: 0 12px;
        font-size: .8rem;
    }

    #schedule .timeline-content {
        min-height: auto;
        padding: 22px 18px 20px;
        border-radius: 22px;
    }

    #schedule .timeline-item:not(:has(.timeline-time)) .timeline-content {
        padding-top: 22px;
    }

    #schedule .timeline-content h3 {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1;
    }

    #schedule .timeline-content p {
        font-size: .96rem;
        line-height: 1.62;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .wedding-date {
        letter-spacing: 3px;
    }

    .section {
        padding: 66px 0;
    }
}

@media (max-width: 420px) {
    #schedule .timeline-item {
        padding-left: 38px;
    }

    #schedule .timeline::before {
        left: 14px;
    }

    #schedule .timeline-dot {
        left: 4px !important;
    }

    #schedule .timeline-item::before {
        left: 14px;
        width: 24px;
    }

    #schedule .timeline-content {
        padding: 20px 16px 18px;
    }
}

/* =========================================================
   ELEGANT2 DARK: RSVP + CONTACTS
   Только тёмные темы.
========================================================= */

/* RSVP: убираем белую внешнюю карточку */
html[data-dark="1"] #rsvpWrap .block-card{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.045)
        ) !important;
    border:1px solid rgba(255,255,255,.11) !important;
    box-shadow:
        0 30px 90px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.055) !important;
    color:rgba(255,255,255,.92) !important;
}

/* Заголовок и описание RSVP */
html[data-dark="1"] #rsvpWrap .block-card :where(h2,h3,.section-title,.rsvpTitle){
    color:rgba(255,255,255,.96) !important;
}

html[data-dark="1"] #rsvpWrap .block-card :where(p,.section-subtitle,.rsvpHint){
    color:rgba(255,255,255,.68) !important;
}

/* Внутренняя форма */
html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]){
    --rsvp-paper:rgba(10,14,28,.72) !important;
    --rsvp-line:rgba(255,255,255,.16) !important;
    --rsvp-ink:rgba(255,255,255,.94) !important;
    --rsvp-muted:rgba(255,255,255,.66) !important;
    background:transparent !important;
    color:var(--rsvp-ink) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) :where(label,.label,legend){
    color:rgba(255,255,255,.72) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) :where(input[type="text"],input[type="tel"],textarea,select,.field){
    color:rgba(255,255,255,.94) !important;
    background:rgba(8,12,24,.78) !important;
    border-color:rgba(255,255,255,.17) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 14px 34px rgba(0,0,0,.20) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) :where(input,textarea)::placeholder{
    color:rgba(255,255,255,.38) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) :where(input[type="text"],input[type="tel"],textarea,select,.field):focus{
    border-color:rgba(var(--accent-rgb),.72) !important;
    box-shadow:
        0 0 0 4px rgba(var(--accent-rgb),.12),
        0 18px 38px rgba(0,0,0,.24) !important;
}

/* Кнопки выбора */
html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .chip{
    color:rgba(255,255,255,.84) !important;
    background:rgba(8,12,24,.62) !important;
    border-color:rgba(255,255,255,.18) !important;
    box-shadow:none !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .chip:hover{
    border-color:rgba(var(--accent-rgb),.55) !important;
    background:rgba(var(--accent-rgb),.10) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .chip[data-active="true"],
html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .chip.is-active,
html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .chip[aria-pressed="true"]{
    color:#fff !important;
    background:linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb,var(--gold-color) 24%,var(--accent-color) 76%)
    ) !important;
    border-color:transparent !important;
    box-shadow:0 16px 36px rgba(var(--accent-rgb),.22) !important;
}

/* Счётчик и согласие */
html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) :where(.guestCount,.rsvpTotal,[class*="total"]){
    color:rgba(255,255,255,.72) !important;
    background:rgba(255,255,255,.055) !important;
    border-color:rgba(255,255,255,.12) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .consent{
    background:rgba(8,12,24,.68) !important;
    border-color:rgba(255,255,255,.13) !important;
}

html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .consent,
html[data-dark="1"] #rsvpWrap :where(#rsvp,#rsvpInner,.rsvpSection,.rsvp,[data-block="rsvp"]) .consent :where(span,label,a){
    color:rgba(255,255,255,.62) !important;
}

/* CONTACTS */
html[data-dark="1"] .ivi-contacts{
    --ivi-contacts-bg:transparent !important;
    --ivi-contacts-card:
        linear-gradient(
            180deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.045)
        ) !important;
    --ivi-contacts-text:rgba(255,255,255,.95) !important;
    --ivi-contacts-muted:rgba(255,255,255,.64) !important;
    --ivi-contacts-accent:var(--accent-color) !important;
    --ivi-contacts-line:rgba(255,255,255,.13) !important;

    background:transparent !important;
    color:rgba(255,255,255,.95) !important;
    border:0 !important;
    box-shadow:none !important;
}

html[data-dark="1"] .ivi-contacts__title,
html[data-dark="1"] .ivi-contact__name,
html[data-dark="1"] .ivi-contact__phone{
    color:rgba(255,255,255,.95) !important;
}

html[data-dark="1"] .ivi-contacts__text,
html[data-dark="1"] .ivi-contact__role{
    color:rgba(255,255,255,.64) !important;
}

html[data-dark="1"] .ivi-contact{
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.05)
        ) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    box-shadow:
        0 28px 76px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.05) !important;
    backdrop-filter:blur(14px) !important;
    -webkit-backdrop-filter:blur(14px) !important;
}

html[data-dark="1"] .ivi-contact__avatar{
    color:var(--accent-color) !important;
    background:rgba(var(--accent-rgb),.10) !important;
    border-color:rgba(var(--accent-rgb),.34) !important;
}

html[data-dark="1"] .ivi-contact__action{
    color:rgba(255,255,255,.88) !important;
    background:rgba(8,12,24,.62) !important;
    border-color:rgba(255,255,255,.14) !important;
}

html[data-dark="1"] .ivi-contact__action:hover{
    color:#fff !important;
    background:linear-gradient(
        135deg,
        var(--accent-color),
        color-mix(in srgb,var(--gold-color) 24%,var(--accent-color) 76%)
    ) !important;
    border-color:transparent !important;
}

@media (max-width:640px){
    html[data-dark="1"] #rsvpWrap .block-card,
    html[data-dark="1"] .ivi-contact{
        border-radius:22px !important;
    }
}
