@font-face {
    font-family: "marianna";
    src: url("fonts/marianna.ttf") format("truetype");
}

/* ===== Reset & base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: hidden;
}

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

button {
    font: inherit;
    cursor: pointer;
}

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

.watermark {
    content: "ya-invite";
    position: fixed;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.08);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 55555;
    white-space: nowrap;
    font-weight: 600; /* выглядит аккуратнее */
}



body::after {
    content: "ya-invite";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

html::after {
    content: "ya-invite";
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:555555;
    white-space:nowrap;
}
:root {
    --rose: #B56B88;
    --rose-dark: #96536D;
    --cream: #F9F2ED;
    --cream-deep: #F3E6DD;
    --blush: #E8B5C8;
    --white: #FFFFFF;
    --ink: #4A3540;
    --ink-soft: #8B7480;
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --container: 640px;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity .7s ease, visibility .7s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__rings .ring {
    stroke-dasharray: 214;
    stroke-dashoffset: 214;
    animation: draw 1.4s ease forwards;
}

.preloader__rings .ring--b {
    animation-delay: .25s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.preloader__text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--rose);
    letter-spacing: .04em;
    opacity: 0;
    animation: fadeIn 1s ease .9s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.petal {
    position: absolute;
    top: -20px;
    width: var(--s, 10px);
    height: var(--s, 10px);
    background: var(--blush);
    border-radius: 0 60% 0 60%;
    opacity: .55;
    animation: fall linear infinite;
    animation-duration: var(--d, 12s);
    animation-delay: var(--delay, 0s);
    left: var(--x, 50%);
}

@keyframes fall {
    0% {
        transform: translateY(-5vh) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg);
    }
    100% {
        transform: translateY(105vh) translateX(-20px) rotate(360deg);
    }
}

/* ===== Fixed music toggle ===== */
.music-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 60;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(181, 107, 136, .3);
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, background .3s ease;
}

.music-toggle:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, .85);
}

.music-toggle__icon {
    width: 18px;
    height: 18px;
}

.music-toggle__bars {
    display: none;
}

.music-toggle[aria-pressed="true"] .music-toggle__icon {
    display: none;
}

.music-toggle[aria-pressed="true"] .music-toggle__bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-toggle__bars i {
    width: 3px;
    background: var(--rose);
    border-radius: 2px;
    animation: bar 1s ease-in-out infinite;
}

.music-toggle__bars i:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.music-toggle__bars i:nth-child(2) {
    height: 14px;
    animation-delay: .2s;
}

.music-toggle__bars i:nth-child(3) {
    height: 9px;
    animation-delay: .4s;
}

@keyframes bar {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.7);
    }
}

/* ===== Side dot nav ===== */
.dotnav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dotnav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--rose);
    background: transparent;
    transition: all .3s ease;
}

.dotnav__dot.is-active {
    background: var(--rose);
    transform: scale(1.3);
}

@media (max-width: 860px) {
    .dotnav {
        display: none;
    }
}

/* ===== Layout helpers ===== */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 90px 24px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rose);
    margin: 0 0 10px;
}

.section__title {
    font-family: "marianna", sans-serif;
    font-weight: 500;
    font-size: clamp(45px, 4vw, 2.6rem);
    margin: 0 0 28px;
    color: var(--ink);
}

.section__note {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-top: 28px;
    margin-bottom: 0;
}

.divider {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.card {
    border-radius: 24px;
    padding: 40px 32px;
    background: var(--white);
}

.card--glass {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 20px 60px -30px rgba(150, 83, 109, .35);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: .92rem;
    letter-spacing: .03em;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn--primary {
    background: var(--rose);
    color: var(--white);
    box-shadow: 0 14px 30px -12px rgba(181, 107, 136, .6);
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 36px -12px rgba(181, 107, 136, .75);
}

.btn--outline {
    background: transparent;
    border-color: rgba(181, 107, 136, .5);
    color: var(--rose-dark);
}

.btn--outline:hover {
    background: var(--rose);
    color: var(--white);
    transform: translateY(-2px);
}

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

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    z-index: 3;
}

.hero__deco--tl {
    top: 40px;
    left: -20px;
}

.heart {
    width: 150px;
    height: auto;
    position: absolute;
    top: 0;
    left: -30px;
    rotate: 60deg;
    z-index: -1;
}

.hero__date {
    font-size: .95rem;
    letter-spacing: .3em;
    color: var(--ink-soft);
    margin: 0 0 18px;
}

.hero__names {
    font-family: "marianna", sans-serif;
    font-weight: 500;
    font-size: clamp(3rem, 11vw, 6.4rem);
    line-height: 1;
    margin: 0 0 36px;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .3em;
    flex-wrap: wrap;
}

.hero__amp {
    font-style: italic;
    color: var(--rose);
    font-size: .7em;
}

.hero__frame {
    position: relative;
    height: 600px;
}

svg.hero__arch {
    width: 450px;
}

.hero-img {
    position: absolute;
    top: 340px;
    left: 50%;
    width: 370px;
    border-radius: 180px 180px 0 0;
    transform: translate(-50%);
}


.hero__arch {
    width: 100%;
}

.hero__frame-inner {
    position: absolute;
    inset: 14px 10px 0;
    border-radius: 110px 110px 0 0;
    background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.hero__illustration {
    width: 62%;
    opacity: .9;
}

.hero__frame-caption {
    font-family: var(--font-display);
    font-style: italic;
    font-size: .8rem;
    color: var(--rose-dark);
    margin: 0;
    letter-spacing: .05em;
}

.hero__tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--rose);
    margin: 0 0 14px;
}

.hero__text {
    max-width: 460px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: .98rem;
    margin: 0 0 32px;
}

.countdown {
    display: flex;
    gap: 14px;
    margin-top: 44px;
}

.countdown__item {
    min-width: 72px;
    padding: 16px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 14px 30px -18px rgba(150, 83, 109, .4);
}

.countdown__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--rose);
    font-weight: 600;
}

.countdown__label {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.scroll-hint {
    margin-top: 56px;
    height: 40px;
    width: 1px;
    background: rgba(181, 107, 136, .4);
    position: relative;
}

.scroll-hint span {
    position: absolute;
    top: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rose);
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        top: 34px;
        opacity: 0;
    }
}

/* ===== Calendar ===== */
.calendar-card {
    max-width: 380px;
    margin: 0 auto;
}

.calendar-card__head {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
}

.calendar-card__month {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
}

.calendar-card__year {
    font-size: .85rem;
    color: var(--ink-soft);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-grid .cg-dow {
    font-size: .68rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    padding-bottom: 6px;
}

.calendar-grid .cg-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    border-radius: 50%;
    color: var(--ink);
}

.calendar-grid .cg-day.is-empty {
    visibility: hidden;
}

.calendar-grid .cg-day.is-highlight {
    background: var(--rose);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(181, 107, 136, .7);
}

/* ===== Venue ===== */
.venue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.venue__illustration {
    opacity: .9;
}

.venue__card {
    width: 100%;
}

.venue__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 10px;
}

.venue__address {
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ===== Timeline ===== */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.timeline__line-fill {
    width: 100%;
    height: 0%;
    background: var(--rose);
    transition: height .1s linear;
}

.timeline__item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding-left: 0;
}

.timeline__icon {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(181, 107, 136, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    position: relative;
    z-index: 2;
}

.timeline__icon svg {
    width: 24px;
    height: 24px;
}

.timeline__time {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--rose);
    min-width: 64px;
}

.timeline__label {
    color: var(--ink);
    font-size: .98rem;
}

/* ===== Wishes ===== */
.wishes-card {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.wishes-card__text {
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 14px;
}

.wishes-card__deco {
    position: absolute;
    top: -18px;
    opacity: .5;
}

.wishes-card__deco--l {
    left: -10px;
}

.wishes-card__deco--r {
    right: -10px;
    transform: scaleX(-1);
}

.palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.palette__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c);
    display: block;
}

/* ===== RSVP ===== */
.rsvp-card {
    max-width: 460px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

.field {
    display: block;
    margin-bottom: 20px;
}

.field__label {
    display: block;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.field input[type="text"], .field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(181, 107, 136, .35);
    background: transparent;
    padding: 8px 2px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    resize: vertical;
}

.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--rose);
}

.pill-group {
    display: flex;
    gap: 10px;
}

.pill {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(181, 107, 136, .4);
    background: transparent;
    color: var(--ink-soft);
    font-size: .85rem;
    transition: all .25s ease;
}

.pill--active {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
}

.field--stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stepper__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(181, 107, 136, .4);
    background: transparent;
    color: var(--rose);
    font-size: 1.1rem;
    line-height: 1;
}

.stepper__btn:hover {
    background: var(--rose);
    color: var(--white);
}

.stepper__value {
    min-width: 18px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.rsvp-form__submit {
    width: 100%;
    margin-top: 8px;
}

.rsvp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 30px 0 0 0;
    animation: fadeIn .6s ease;
}

.rsvp-success p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--rose-dark);
    margin: 0;
}

/* ===== Contacts ===== */
.contacts-card {
    max-width: 420px;
    margin: 0 auto;
}

.contacts-card__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0;
}

.contacts-card__role {
    color: var(--ink-soft);
    margin: 4px 0 24px;
    font-size: .85rem;
    letter-spacing: .03em;
}

.contacts-card__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 50px 24px 50px;
    position: relative;
    z-index: 3;
}

.footer__monogram {
    margin: 0 auto 18px;
}

.footer__names {
    font-family: "marianna", sans-serif;
    font-size: 60px;
    margin: 0;
}

.footer__date {
    color: var(--ink-soft);
    margin: 4px 0 18px;
    font-size: .85rem;
    letter-spacing: .06em;
}

.footer__note {
    color: var(--ink-soft);
    font-size: .85rem;
    margin: 0 0 22px;
}

.footer__top {
    font-size: .78rem;
    letter-spacing: .08em;
    color: var(--rose);
    text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .section {
        padding: 50px 20px;
    }

    .hero {
        padding: 100px 20px 0;
    }

    .countdown {
        gap: 8px;
    }

    .countdown__item {
        min-width: 60px;
        padding: 12px 6px;
    }

    .countdown__value {
        font-size: 1.4rem;
    }

    .venue {
        gap: 20px;
    }

    .music-toggle {
        top: 16px;
        right: 16px;
    }

    .timeline__item {
        gap: 14px;
    }

    .timeline__icon {
        width: 46px;
        height: 46px;
    }

    .timeline__icon svg {
        width: 20px;
        height: 20px;
    }

    .hero-img {
        top: 290px;
    }
}

@media (max-width: 640px) {
    .hero-img {
        top: 250px;
        width: 350px;
    }

}

@media (max-width: 450px) {
    .hero-img {
        width: 290px;
    }

    svg.hero__arch {
        width: 350px;
    }

    .hero__frame {
        height: 470px;
    }
}

@media (max-width: 395px) {
    .hero-img {
        width: 250px;
    }

    svg.hero__arch {
        width: 310px;
    }

    .hero__frame {
        height: 400px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
