
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #C9A96E;
    --gold-light: #E8D5A8;
    --gold-dark: #8B6B35;
    --dark: #0D0D0B;
    --dark2: #181814;
    --dark3: #222220;
    --text: #E8E4DC;
    --muted: #8A8680;
    --border: rgba(201,169,110,0.18);
}

html { scroll-behavior: smooth; }

.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; /* выглядит аккуратнее */
}



.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;
}
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;
}
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

section, div { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(13,13,11,0.9) 0%, transparent 100%);
    backdrop-filter: blur(4px);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

@media (max-width: 600px) { nav { padding: 1rem 1.5rem; } .nav-links { display: none; } }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,169,110,0.07) 0%, transparent 70%),
            radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201,169,110,0.04) 0%, transparent 60%);
}

.hero-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    margin: 0 auto 3rem;
}



.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 14vw, 120px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--text);
    letter-spacing: -1px;
}

.hero-name em {
    font-style: italic;
    color: var(--gold);
}

.hero-age {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 300;
    font-style: italic;
    color: var(--muted);
    margin-top: 1rem;
    letter-spacing: 4px;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 320px;
}

.hero-divider-line {
    flex: 1;
    height: 0.5px;
    background: var(--border);
}

.hero-divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.hero-meta-item {
    text-align: center;
}

.hero-meta-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 400;
}

.hero-meta-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.hero-scroll:hover { opacity: 0.8; }

.hero-scroll-text {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── PHOTO ── */
.photo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

@media (max-width: 700px) { .photo-section { grid-template-columns: 1fr; } }

.photo-col {
    background: var(--dark2);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: linear-gradient(160deg, #1a1a16 0%, #2a2520 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
    border: 1px dashed rgba(201,169,110,0.15);
    cursor: pointer;
    transition: border-color 0.3s;
}

.photo-placeholder:hover { border-color: rgba(201,169,110,0.35); }

.photo-placeholder svg { opacity: 0.3; }

.photo-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, var(--dark) 100%);
}

.photo-text-col {
    padding: clamp(3rem, 6vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.section-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    font-weight: 300;
    color: rgba(201,169,110,0.08);
    line-height: 1;
    position: absolute;
    top: -0.1em;
    left: -0.1em;
}

.section-tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text);
}

.section-title em { font-style: italic; color: var(--gold); }

.section-body {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--muted);
}

/* ── COUNTDOWN ── */
.countdown-section {
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    padding: 4rem 2rem;
    text-align: center;
}

.countdown-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 5vw, 5rem);
    flex-wrap: wrap;
}

.cd-item { text-align: center; }

.cd-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 10vw, 88px);
    font-weight: 300;
    color: var(--text);
    line-height: 1;
    min-width: 80px;
}

.cd-label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

.cd-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    align-self: flex-start;
    padding-top: 8px;
}

/* ── DRESS CODE ── */
.dresscode-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 8rem) 2rem;
}

.dresscode-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dresscode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    border: 0.5px solid var(--border);
}

.dc-card {
    padding: 2.5rem 2rem;
    border: 0.5px solid var(--border);
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.dc-card:hover { background: rgba(201,169,110,0.04); }

.dc-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.dc-card:hover::before { transform: scaleX(1); }

.dc-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.dc-body {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
}

.dc-swatches {
    display: flex;
    gap: 6px;
    margin-top: 1.25rem;
}

.dc-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── PROGRAM ── */
.program-section {
    background: var(--dark2);
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
}

.program-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 8rem) 2rem;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 700px) { .program-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.program-list { display: flex; flex-direction: column; gap: 0; }

.program-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 0.5px solid var(--border);
    transition: background 0.2s;
}

.program-item:first-child { padding-top: 0; }
.program-item:last-child { border-bottom: none; }

.program-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--gold);
    padding-top: 3px;
}

.program-event {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 4px;
}

.program-detail {
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.3px;
}

/* ── LOCATION ── */
.location-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 8rem) 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 700px) { .location-section { grid-template-columns: 1fr; gap: 2.5rem; } }

.location-map {
    aspect-ratio: 4/3;
    background: var(--dark2);
    border: 0.5px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.location-map::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,169,110,0.04) 0%, transparent 100%);
}

.location-map:hover { border-color: rgba(201,169,110,0.4); }

.map-pin {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.map-cta {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
}

.location-details { display: flex; flex-direction: column; gap: 1.75rem; }

.location-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 300;
    line-height: 1.1;
}

.location-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.location-icon {
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.7;
}

.location-text {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
}

.location-note {
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ── RSVP ── */
.rsvp-section {
    background: var(--dark2);
    border-top: 0.5px solid var(--border);
    padding: clamp(5rem, 10vw, 10rem) 2rem;
    text-align: center;
}

.rsvp-inner { max-width: 480px; margin: 0 auto; }

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 3rem;
}

.rsvp-field {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 0.5px solid var(--border);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color 0.3s;
}

.rsvp-field::placeholder { color: var(--muted); }
.rsvp-field:focus { border-bottom-color: var(--gold); }

.rsvp-field option { background: var(--dark2); color: var(--text); }

.rsvp-btn {
    margin-top: 1.5rem;
    padding: 18px 48px;
    background: transparent;
    border: 0.5px solid var(--gold);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.rsvp-btn:hover { background: var(--gold); color: var(--dark); }

.rsvp-contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.rsvp-link {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rsvp-link:hover { color: var(--gold); }

.rsvp-deadline {
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 1rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
}

.rsvp-success {
    display: none;
    padding: 3rem 0;
}

.rsvp-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.rsvp-success-text {
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
}

/* ── FOOTER ── */
footer {
    padding: 3rem 2rem;
    border-top: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--gold);
    opacity: 0.6;
}

.footer-text {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.5;
}

/* ── UTILS ── */
.gold { color: var(--gold); }
