@font-face {
    font-family: "Fog";
    src: url("./fonts/FoglihtenNo06_076.otf");
}

@font-face {
    font-family: "Manrope";
    src: url("./fonts/Manrope.ttf");
}
@font-face {
    font-family: "Martina";
    src: url("./fonts/Martina-scriptC.ttf");
}

.watermark {
    content: "ya-invite";
    position: fixed;
    font-size: 80px;
    color: rgba(255,255,255,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(255,255,255,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(255,255,255,0.08);
    pointer-events:none;
    z-index:555555;
    white-space:nowrap;
}
:root {
    --dark: #080604;
    --dark2: #100d0a;
    --dark3: #181210;
    --gold: #c9a96e;
    --gold-l: #e8d5a3;
    --gold-d: rgba(201, 169, 110, 0.25);
    --cream: #f5f0e8;
    --muted: rgba(245, 240, 232, 0.58);
    --max: 600px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Manrope', sans-serif;
    background: var(--dark);
    color: var(--cream);
    overflow-x: hidden;
}

/* ── CANVAS ── */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    height: 100%;
}

/* ── REVEAL ── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity .9s ease, transform .9s ease;
}

.reveal-up {
    transform: translateY(48px);
}

.reveal-left {
    transform: translateX(-48px);
}

.reveal-right {
    transform: translateX(48px);
}

.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* ── UTILITY ── */
.gold-line {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 24px;
}

.sec-eyebrow {
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 10px;
}

.sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 7vw, 50px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 18px;
}

.sec-title.small {
    font-size: clamp(24px, 5vw, 36px);
}

.sec-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.95;
    margin-bottom: 28px;
    font-weight: 300;
}

/* ═══════════════════════
   INTRO
═══════════════════════ */
html.intro-open, body.intro-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
}

.intro {
    margin: 0 auto;
    max-width: 700px;
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

.intro-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: url(images/photo2.jpg) center / cover no-repeat;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(20px, 6vh, 48px) clamp(20px, 7vw, 36px);
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid var(--gold-d);
    border-radius: 28px;
    background: rgba(8, 6, 4, .72);
    backdrop-filter: blur(5px);
    animation: fadeUp 1s ease both;
}



.intro-name {
    font-family: 'Martina', serif;
    font-size: clamp(64px, 16vw, 100px);
    font-weight: 300;
    color: var(--cream);
    line-height: .95;
    margin-bottom: 20px;
}

.intro-sub {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 24px;
}

.intro-date-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.intro-date-line span {
    font-family: 'Martina', serif;
    font-size: 28px;
    color: var(--cream);
    font-weight: 300;
}

.intro-date-line .intro-month {
    font-size: 25px;
    letter-spacing: .22em;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-right: 5px;
    margin-left: 15px;
}

.open-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 50px;
    padding: 15px 38px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 300;
    cursor: pointer;
    transition: color .3s;
}

.open-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: 0;
}

.open-btn:hover::before {
    transform: scaleX(1);
}

.open-btn:hover {
    color: var(--dark);
}

.open-btn-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-btn-glow {
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    box-shadow: 0 0 22px var(--gold-d);
    animation: glowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

.intro.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
}

/* ── MUSIC ── */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold-d);
    background: rgba(8, 6, 4, .6);
    color: var(--gold);
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
}

.music-toggle:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 110, .1);
}

.site {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

.site.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════
   HERO
═══════════════════════ */
.hero {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    rgba(8, 6, 4, .1) 0%,
    rgba(8, 6, 4, .15) 35%,
    rgba(8, 6, 4, .7) 70%,
    rgba(8, 6, 4, 1) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 72px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 32px;
    z-index: 2;
}

.h-eyebrow {
    font-size: 18px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 12px;
}

.h-age {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(100px, 28vw, 180px);
    color: transparent;
    font-weight: 600;
    line-height: .4;
    -webkit-text-stroke: 3px var(--gold-d);
    letter-spacing: -.02em;
    margin-bottom: 50px;
    user-select: none;
}

.h-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 13vw, 88px);
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 14px;
}

.h-sub {
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 36px;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 9px;
    background: var(--gold);
    opacity: 0;
    animation: scrollDots 1.6s ease-in-out infinite;
}

.hero-scroll span:nth-child(2) {
    animation-delay: .2s;
}

.hero-scroll span:nth-child(3) {
    animation-delay: .4s;
}

.confetti-strip {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.confetti-strip svg {
    width: 100%;
    display: block;
}

/* ═══════════════════════
   INVITE TEXT
═══════════════════════ */
.s-invite {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--dark);
    padding: 80px 32px;
    text-align: center;
}

/* ═══════════════════════
   DATE BLOCK
═══════════════════════ */
.s-date {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--dark2);
    padding: 64px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.date-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-num, .date-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 14vw, 90px);
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.date-month {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.date-sep {
    width: 1px;
    height: 60px;
    background: var(--gold-d);
    flex-shrink: 0;
}

.date-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 340px;
}

.dd-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid var(--gold-d);
    border-radius: 14px;
    background: rgba(201, 169, 110, .04);
}

.dd-item i {
    color: var(--gold);
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
}

.dd-label {
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 4px;
}

.dd-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--cream);
    font-weight: 400;
}

/* ═══════════════════════
   LOCATION
═══════════════════════ */
.s-location {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    overflow: hidden;
}

.loc-photo {
    background-size: cover;
    background-position: center;
    min-height: 280px;
}

.loc-text {
    background: var(--dark3);
    padding: 56px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.loc-divider {
    width: 28px;
    height: 1px;
    background: var(--gold);
    margin: 4px 0;
}

.loc-address {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

.loc-address i {
    color: var(--gold);
    margin-right: 8px;
}

.btn-gold {
    display: inline-block;
    margin-top: 8px;
    padding: 11px 22px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    border-radius: 50px;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 300;
    align-self: flex-start;
    transition: background .25s, color .25s;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--dark);
}

/* ═══════════════════════
   PROGRAM
═══════════════════════ */
.s-program {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--dark);
    padding: 80px 32px;
}

.prog-header {
    text-align: center;
    margin-bottom: 52px;
}

.prog-list {
    max-width: 420px;
    margin: 0 auto;
}

.prog-item {
    display: grid;
    grid-template-columns: 72px 1px 1fr;
    gap: 0 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.pi-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--gold);
    text-align: right;
    line-height: 1;
    padding-top: 2px;
}

.pi-line {
    width: 1px;
    background: var(--gold-d);
    position: relative;
    min-height: 70px;
    margin: 4px 0;
}

.pi-line span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    margin-left: -.5px;
}

.pi-text {
    padding-top: 0;
}

.pi-text h3 {
    font-family: 'Fog', serif;
    font-size: 15px;
    color: var(--cream);
    letter-spacing: .06em;
    margin-bottom: 6px;
    line-height: 1;
}

.pi-text p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ═══════════════════════
   DETAILS
═══════════════════════ */
.s-details {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--dark2);
    padding: 80px 32px;
}

.det-header {
    text-align: center;
    margin-bottom: 48px;
}

.det-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.det-card {
    padding: 28px 26px;
    border: 1px solid var(--gold-d);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(201, 169, 110, .03);
    transition: border-color .3s;
}

.det-card:hover {
    border-color: rgba(201, 169, 110, .5);
}

.det-ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--gold-d);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    font-size: 16px;
}

.det-card h3 {
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--gold);
    font-weight: 500;
}

.det-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ═══════════════════════
   COUNTDOWN
═══════════════════════ */
.s-countdown {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--dark3);
    padding: 80px 32px;
    text-align: center;
}

.cd-header {
    margin-bottom: 48px;
}

.cd-boxes {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cd-ring {
    position: relative;
    width: 92px;
    height: 92px;
}

.cd-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.cd-ring-bg {
    fill: none;
    stroke: rgba(201, 169, 110, .12);
    stroke-width: 3;
}

.cd-ring-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 276.46;
    stroke-dashoffset: 276.46;
    transition: stroke-dashoffset .5s ease;
}

.cd-val-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cd-val {
    font-family: 'Fog', serif;
    font-size: 28px;
    color: var(--cream);
    line-height: 1;
}

.cd-lbl {
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
    font-weight: 300;
}

/* ═══════════════════════
   FORM
═══════════════════════ */
.s-form {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--dark);
    padding: 80px 32px;
    text-align: center;
}

.form-inner {
    max-width: 440px;
    margin: 0 auto;
}

.form-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
}

.form-sub strong {
    color: var(--gold);
    font-weight: 500;
}

.wedding-form {
    text-align: left;
}

.field {
    margin-bottom: 28px;
}

.field > label {
    display: block;
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 10px;
}

.fn {
    font-size: 9px;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 300;
}

.field input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold-d);
    color: var(--cream);
    font-size: 15px;
    padding: 10px 0;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    transition: border-color .3s;
}

.field input[type="text"]:focus {
    border-color: var(--gold);
}

.field input[type="text"]::placeholder {
    color: rgba(245, 240, 232, .2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-item, .check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    cursor: pointer;
    transition: color .2s;
}

.radio-item:hover, .check-item:hover {
    color: var(--cream);
}

.radio-item input, .check-item input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gold-d);
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: border-color .2s;
}

.check-item input {
    border-radius: 3px;
}

.radio-item input:checked, .check-item input:checked {
    border-color: var(--gold);
    background: var(--gold);
}

.radio-item input:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--dark);
    border-radius: 50%;
}

.check-item input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--dark);
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.form-btn {
    width: 100%;
    margin-top: 36px;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color .3s;
}

.form-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    z-index: 0;
}

.form-btn:hover::before {
    transform: scaleX(1);
}

.form-btn:hover {
    color: var(--dark);
}

.form-btn span {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════
   FINAL
═══════════════════════ */
.s-final {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    height: 540px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.final-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 60%;
}

.final-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 6, 4, .05) 0%, rgba(8, 6, 4, .55) 50%, rgba(8, 6, 4, .94) 100%);
}

.final-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 32px 60px;
}

.final-eyebrow {
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 14px;
}

.final-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 10vw, 68px);
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 20px;
}

.final-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
}

.final-sub em {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    color: var(--gold-l);
    font-style: italic;
    margin-top: 4px;
}

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

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 12px var(--gold-d);
    }
    50% {
        box-shadow: 0 0 30px rgba(201, 169, 110, .45);
    }
}

@keyframes scrollDots {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 500px) {
    .s-location {
        grid-template-columns: 1fr;
    }

    .loc-photo {
        min-height: 220px;
    }

    .check-group {
        grid-template-columns: 1fr;
    }

    .cd-ring {
        width: 74px;
        height: 74px;
    }

    .cd-val {
        font-size: 22px;
    }

    .cd-boxes {
        gap: 12px;
    }

    .prog-item {
        grid-template-columns: 58px 1px 1fr;
    }
}
