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

        :root {
            --cream:        #f8f4e8;
            --paper:        #fdf9f0;
            --olive:        #6b7a4a;
            --olive-mid:    #8fa060;
            --olive-light:  #b8cc90;
            --green-light:  #c8d9a8;
            --pink-light:   #f5cdd5;
            --pink-bright:  #d9547a;
            --lemon:        #eee078;
            --text:         #3a3220;
            --muted:        #7a6e5a;
            --border:       rgba(107,122,74,0.22);
        }

        html { scroll-behavior: smooth; }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--cream);
            color: var(--text);
            overflow-x: hidden;
        }


        /* ══════════════════════
           HERO
        ══════════════════════ */
        .hero {
            background:
                    linear-gradient(
                            180deg,
                            var(--paper) 0%,
                            rgba(253, 249, 240, 0) 30%,
                            rgba(253, 249, 240, 0) 45%,
                            var(--paper) 100%
                    ),
                    url('../assets/images/bg.png') center 60% / cover no-repeat,
                    var(--paper);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        /* Дата */
        .date-badge {
            font-family: 'Caveat', cursive;
            font-size: 1.4em;
            color: var(--pink-bright);
            font-weight: 600;
            letter-spacing: 0.04em;
            margin-bottom: 6px;
            position: relative;
            z-index: 2;
        }

        /* Имена */
        .hero-names {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2.4em, 8vw, 5em);
            font-weight: 300;
            color: var(--text);
            line-height: 1;
            margin-bottom: 6px;
            margin-top: 32px;
            position: relative;
            z-index: 2;
        }
        .hero-names .amp {
            font-style: italic;
            color: var(--olive);
        }

        .hero-subtitle {
            font-family: 'Cormorant Garamond', serif;
            font-style: italic;
            font-size: 1.1em;
            color: var(--muted);
            margin-bottom: 48px;
            position: relative;
            z-index: 2;
        }

        /* ── Фото с ботаническим фреймом ── */
        .photo-botanical {
            position: relative;
            width: min(560px, 92vw);
            margin: 0 auto 32px;
        }

        .photo-frame {
            position: relative;
            z-index: 1;
            overflow: hidden;
            /* PNG 1024×1024, пара в верхних ~50% */
            aspect-ratio: 2 / 1;
            top: 82px;
        }

        .photo-frame img {
            position: relative;
            left: 5%;
            width: 100%;
            display: block;
        }

        /* SVG ботанический оверлей поверх фото */
        .botanical-svg {
            position: absolute;
            inset: -8% -22% -18%;
            width: 144%;
            height: auto;
            pointer-events: none;
            z-index: 2;
        }

        /* ── Терминал ── */
        .terminal-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.82em;
            color: var(--olive);
            background: rgba(107,122,74,0.07);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 8px 18px;
            position: relative;
            z-index: 2;
        }
        .cursor {
            display: inline-block;
            width: 8px; height: 1em;
            background: var(--pink-bright);
            vertical-align: middle;
            animation: blink 1.1s step-end infinite;
        }
        @keyframes blink { 50% { opacity: 0; } }

        /* ── Таймер ── */
        .countdown {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 6px;
            position: relative;
            z-index: 2;
        }
        .cd-unit {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 68px;
        }
        .cd-number {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2.2em, 6vw, 3.2em);
            font-weight: 600;
            color: var(--text);
            line-height: 1;
            font-variant-numeric: tabular-nums;
            min-width: 2ch;
            text-align: center;
        }
        .cd-label {
            font-size: 0.6em;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
            margin-top: 4px;
        }
        .cd-sep {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2.4em;
            color: var(--olive-light);
            line-height: 1;
            padding-top: 0.05em;
            opacity: 0.8;
        }
        .countdown-hint {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1em;
            color: var(--muted);
            margin-top: 6px;
            position: relative;

            z-index: 2;
        }

        .letter-bg {
            background: var(--paper);
            padding: 48px 24px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 20px;
        }

        .hero-letter {
            max-width: 480px;
            text-align: center;
        }

        .hero-letter-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(1.8em, 5vw, 2.8em);
            font-weight: 300;
            color: var(--text);
            line-height: 1.1;
            margin-bottom: 10px;
        }

        .hero-letter-text {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.15em;
            font-style: italic;
            color: var(--muted);
            line-height: 1.7;
        }

        /* ══════════════════════
           ИНФО-ПОЛОСКА
        ══════════════════════ */
        .info-strip {
            background: var(--olive);
            color: #fff;
            padding: 24px 20px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            text-align: center;
            width: 100%;
            z-index: 2;
        }

        .info-strip-item {
        width: calc(100%/3);
        }

        .info-strip-item .label {
            font-size: 0.65em;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            opacity: 0.6;
            margin-bottom: 4px;
        }
        .info-strip-item .value {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.3em;
        }

        /* ══════════════════════
           ОБЩИЕ СЕКЦИИ
        ══════════════════════ */
        .section {
            max-width: 860px;
            margin: 0 auto;
            padding: 48px 24px;
        }

        .section-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin-bottom: 48px;
        }
        .section-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.68em;
            letter-spacing: 0.15em;
            margin-right: -0.15em;
            color: var(--olive-mid);
            text-transform: uppercase;
            margin-bottom: 8px;
        }
        .section-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(1.8em, 4.5vw, 2.5em);
            font-weight: 300;
            color: var(--text);
        }

        /* ══════════════════════
           ТАЙМЛАЙН
        ══════════════════════ */
        .timeline-bg { background: linear-gradient(180deg, #edf2e2 0%, var(--paper) 100%); }

        .timeline-grid {
            position: relative;
            max-width: 540px;
            margin: 0 auto;
        }

        /* иконка | точка | текст, для чётных — зеркально */
        .tl-item {
            display: grid;
            grid-template-columns: 1fr 48px 1fr;
            grid-template-areas: "text node icon";
            align-items: center;
            min-height: 110px;
            padding: 8px 0;
        }

        .tl-item:nth-child(even) {
            grid-template-areas: "icon node text";
        }
        .tl-item:nth-child(even) .tl-icon-wrap {
            text-align: right;
            padding-right: 10px;
            padding-left: 0;
        }
        .tl-item:nth-child(even) .tl-text {
            text-align: left;
            padding-left: 32px;
            padding-right: 0;
        }
        .tl-item:nth-child(even) .tl-tag { float: none; }

        .tl-icon-wrap {
            grid-area: icon;
            font-size: 2em;
            text-align: left;
            padding-left: 10px;
            padding-right: 0;
            line-height: 1;
        }

        .tl-node {
            grid-area: node;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 3;
        }

        .tl-dot-mark {
            display: block;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background: var(--olive-mid);
            border: 3px solid var(--paper);
            flex-shrink: 0;
        }

        .tl-text {
            grid-area: text;
            padding-right: 32px;
            text-align: right;
        }

        .tl-curve-svg {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: visible;
        }

        .tl-heart {
            position: absolute;
            color: #d9547a;
            font-size: 1.3em;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 3;
            transition: top 0.12s ease-out, left 0.12s ease-out;
        }

        .tl-time {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72em;
            color: var(--olive);
            font-weight: 500;
            margin-bottom: 2px;
        }
        .tl-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.25em;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 2px;
            line-height: 1.2;
        }
        .tl-desc {
            font-size: 0.82em;
            color: var(--muted);
            line-height: 1.5;
        }
        .tl-tag {
            display: inline-block;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.62em;
            color: var(--olive);
            background: rgba(107,122,74,0.1);
            border-radius: 3px;
            padding: 2px 7px;
            margin-top: 4px;
        }

        /* ══════════════════════
           КАРТА
        ══════════════════════ */
        .map-bg { background: var(--cream); }

        .location-card {
            border: 2px solid var(--green-light);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(107,122,74,0.12);
        }
        .location-body {
            background: white;
            padding: 28px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        .location-body .place-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.25em;
            font-weight: 600;
            color: var(--text);
        }
        .location-body .place-addr {
            font-size: 0.82em;
            color: var(--muted);
            margin-top: 2px;
        }
        .map-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: var(--olive);
            color: white;
            border-radius: 8px;
            font-size: 0.84em;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .map-link-btn:hover { background: var(--olive-mid); }

        /* ══════════════════════
           FAQ
        ══════════════════════ */
        .faq-bg { background: var(--paper); }

        .faq-list {
            max-width: 640px;
            margin: 0 auto;
        }

        .faq-item {
            border-top: 1px solid var(--border);
        }
        .faq-item:last-child { border-bottom: 1px solid var(--border); }

        .faq-q {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 20px 0;
            font-family: 'Cormorant', serif;
            font-size: 1.15em;
            font-weight: 600;
            color: var(--text);
            text-align: left;
        }
        .faq-q:hover { color: var(--olive); }

        .faq-arrow {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            color: var(--olive-mid);
            transition: transform 0.35s ease;
            display: block;
        }
        .faq-item.open .faq-arrow { transform: rotate(180deg); }

        .faq-a {
            font-size: 0.9em;
            line-height: 1.75;
            color: var(--muted);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease, padding-bottom 0.35s ease;
            padding-bottom: 0;
        }
        .faq-item.open .faq-a {
            max-height: 300px;
            padding-bottom: 20px;
        }

        /* ══════════════════════
           ДРЕСС-КОД
        ══════════════════════ */
        .dresscode-bg { background: var(--paper); }
        .dresscode-inner {
            max-width: 860px;
            margin: 0 auto;
            padding: 48px 24px;
            text-align: center;
        }
        .dresscode-inner .section-label { color: var(--pink-bright); }
        .dresscode-text {
            font-size: 1.02em;
            line-height: 1.9;
            color: var(--text);
            max-width: 500px;
            margin: 0 auto 32px;
        }
        .dresscode-chips {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .dc-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 9px 18px;
            background: white;
            border-radius: 30px;
            font-size: 0.86em;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .dc-dot { width: 11px; height: 11px; border-radius: 50%; }

        /* ══════════════════════
           ЦВЕТЫ
        ══════════════════════ */
        .flowers-bg { background: var(--cream); }
        .flowers-inner {
            max-width: 860px;
            margin: 0 auto;
            padding: 48px 24px;
            text-align: center;
        }
        .flowers-inner .section-label { color: var(--olive); }
        .flowers-inner .section-title { color: var(--text); margin-bottom: 14px; }
        .flowers-text {
            font-size: 1em;
            line-height: 1.85;
            color: var(--muted);
            max-width: 460px;
            margin: 0 auto 32px;
        }
        .flower-chips {
            display: flex;
            justify-content: center;
            gap: 14px;
            flex-wrap: wrap;
        }
        .flower-chip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 22px;
            border-radius: 30px;
            border: 1px solid rgba(107,122,74,0.18);
            font-size: 0.88em;
            color: var(--text);
            background: white;
        }
        .flower-dot { width: 13px; height: 13px; border-radius: 50%; }

        /* ══════════════════════
           ПОДАРОК
        ══════════════════════ */
        .gift-bg { background: var(--paper); }
        .gift-inner {
            max-width: 640px;
            margin: 0 auto;
            padding: 48px 24px;
            text-align: center;
        }
        .gift-inner .section-label { color: var(--olive); }
        .gift-text {
            font-size: 1em;
            line-height: 1.85;
            color: var(--muted);
            margin-bottom: 28px;
        }
        .gift-chip {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 24px;
            background: white;
            border: 1px solid rgba(217,84,122,0.18);
            border-radius: 30px;
            font-size: 0.9em;
            color: var(--text);
        }
        .gift-chip-icon { color: #d9547a }

        /* ══════════════════════
           КОНТАКТ ВЕДУЩЕГО
        ══════════════════════ */
        .host-footer {
            background: var(--olive);
            padding: 48px 24px;
            text-align: center;
        }
        .host-footer-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.68em;
            letter-spacing: 0.15em;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            margin-bottom: 10px;
        }
        .host-footer-text {
            font-size: 0.88em;
            color: rgba(255,255,255,0.75);
            margin-bottom: 10px;
        }
        .host-footer-name {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.5em;
            color: white;
            margin-bottom: 4px;
        }
        .host-footer-phone {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.95em;
            color: var(--pink-light);
            text-decoration: none;
        }
        .host-footer-phone:hover { text-decoration: underline; }

        /* ══════════════════════
           FOOTER
        ══════════════════════ */
        footer {
            background: var(--text);
            padding: 52px 24px;
            text-align: center;
        }
        .footer-names {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2em;
            font-style: italic;
            color: var(--green-light);
            margin-bottom: 8px;
        }
        .footer-date {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72em;
            color: rgba(255,255,255,0.28);
            letter-spacing: 0.18em;
        }
        .footer-love {
            font-family: 'Caveat', cursive;
            font-size: 1.4em;
            color: var(--pink-light);
            margin-top: 14px;
        }

        /* ══════════════════════
           RSVP
        ══════════════════════ */
        .rsvp-bg { background: var(--cream); }

        .rsvp-card {
            background: white;
            border-radius: 20px;
            border: 1.5px solid rgba(107,122,74,0.14);
            box-shadow: 0 8px 40px rgba(107,122,74,0.08);
            padding: 40px 36px;
            max-width: 560px;
            margin: 0 auto;
        }

        .rsvp-intro {
            font-size: 1em;
            line-height: 1.75;
            color: var(--muted);
            margin-bottom: 32px;
            text-align: center;
        }
        .rsvp-intro strong { color: var(--pink-bright); font-weight: 600; }

        .rsvp-field { margin-bottom: 28px; }

        .rsvp-label {
            display: block;
            font-family: 'Cormorant', serif;
            font-size: 1.15em;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 6px;
        }
        .rsvp-hint { font-size: 0.82em; color: var(--muted); margin-bottom: 8px; }
        .rsvp-multi, .rsvp-optional { font-family: 'Manrope', sans-serif; font-size: 0.72em; font-weight: 400; color: var(--muted); }

        .rsvp-textarea {
            width: 100%;
            border: 1.5px solid rgba(107,122,74,0.22);
            border-radius: 10px;
            padding: 12px 14px;
            font-family: 'Manrope', sans-serif;
            font-size: 0.9em;
            color: var(--text);
            resize: vertical;
            background: var(--paper);
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        .rsvp-textarea:focus { outline: none; border-color: var(--olive-mid); }

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

        .rsvp-radio-label, .rsvp-check-label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            font-size: 0.9em;
            color: var(--text);
            line-height: 1.5;
        }
        .rsvp-radio-label input, .rsvp-check-label input { display: none; }

        .rsvp-radio-custom, .rsvp-check-custom {
            flex-shrink: 0;
            width: 20px; height: 20px;
            border: 2px solid rgba(107,122,74,0.35);
            border-radius: 50%;
            margin-top: 1px;
            display: flex; align-items: center; justify-content: center;
            transition: border-color 0.2s, background 0.2s;
        }
        .rsvp-check-custom { border-radius: 5px; }

        .rsvp-radio-label input:checked ~ .rsvp-radio-custom {
            border-color: var(--pink-bright);
            background: var(--pink-bright);
            box-shadow: inset 0 0 0 3px white;
        }
        .rsvp-check-label input:checked ~ .rsvp-check-custom {
            border-color: var(--olive-mid);
            background: var(--olive-mid);
        }
        .rsvp-check-label input:checked ~ .rsvp-check-custom::after {
            content: '';
            display: block;
            width: 5px; height: 9px;
            border: 2px solid white;
            border-top: none; border-left: none;
            transform: rotate(45deg) translateY(-1px);
        }

        .rsvp-section2 {
            display: none;
            border-top: 1.5px dashed rgba(107,122,74,0.18);
            padding-top: 24px;
            margin-top: 4px;
        }
        .rsvp-section2.visible { display: block; }

        .rsvp-section2-title {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72em;
            color: var(--olive);
            letter-spacing: 0.1em;
            margin-bottom: 20px;
            text-transform: uppercase;
        }

        .rsvp-submit {
            width: 100%;
            padding: 16px;
            background: var(--olive);
            color: white;
            border: none;
            border-radius: 12px;
            font-family: 'Manrope', sans-serif;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            letter-spacing: 0.03em;
            transition: background 0.2s, transform 0.1s;
            margin-top: 8px;
        }
        .rsvp-submit:hover { background: var(--olive-mid); }
        .rsvp-submit:active { transform: scale(0.98); }

        .rsvp-success {
            display: none;
            text-align: center;
            padding: 40px 0 16px;
        }
        .rsvp-success.visible { display: block; }
        .rsvp-success-icon { font-size: 2.5em; color: var(--pink-bright); margin-bottom: 12px; }
        .rsvp-success p { color: var(--muted); font-size: 1.05em; }

        @media (max-width: 600px) {
            .rsvp-card { padding: 28px 20px; }
        }

        /* ══════════════════════
           АНИМАЦИИ
        ══════════════════════ */
        .fade-up {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.75s ease, transform 0.75s ease;
        }
        .fade-up.visible { opacity: 1; transform: translateY(0); }


        body {
            font-family: 'Manrope', sans-serif;  /* вместо Inter */
        }

        .date-badge, .footer-love {
            font-family: 'Cormorant', serif;  /* вместо Caveat */
            font-style: italic;
        }

        .hero-names, .hero-letter-title, .section-title,
        .info-strip-item .value, .location-body .place-name,
        .cd-number, .tl-title, .footer-names {
            font-family: 'Cormorant', serif;  /* вместо Cormorant Garamond */
        }

        footer {
            background: var(--paper);
            padding: 64px 24px 48px;
            text-align: center;
            border-top: 1px solid var(--border);
        }

        .footer-names {
            font-family: 'Cormorant', serif;
            font-size: 2.2em;
            font-weight: 300;
            font-style: italic;
            color: var(--olive);
            margin-bottom: 12px;
        }

        .footer-date {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75em;
            color: var(--muted);
            letter-spacing: 0.2em;
            opacity: 0.7;
        }

        .footer-love {
            font-family: 'Cormorant', serif;
            font-style: italic;
            font-size: 1.3em;
            color: var(--pink-bright);
            margin-top: 20px;
            opacity: 0.85;
        }

        .cd-number {
            font-size: clamp(1.8em, 5vw, 2.6em);  /* было 3.2em */
            font-weight: 400;  /* было 600 — слишком жирно */
        }


        .rsvp-consent-text {
            font-size: 0.85rem;
            color: #999;
            text-align: center;
            margin-bottom: 24px;
            line-height: 1.5;
            font-family: 'Manrope', sans-serif; /* или ваш основной шрифт */
        }

        .rsvp-consent-text a {
            color: #8fbc8f; /* ваш оливково-зелёный акцент */
            text-decoration: underline;
            text-decoration-color: rgba(143, 188, 143, 0.4);
            text-underline-offset: 3px;
            transition: all 0.2s ease;
        }

        .rsvp-consent-text a:hover {
            color: #6b8e6b;
            text-decoration-color: #6b8e6b;
        }


        @media (max-width: 500px) {
            .letter-bg {
                padding: 24px;
            }

            .section {
                padding: 24px;
            }

            .dresscode-inner {
                padding: 24px;
            }

            .flowers-inner {
                padding: 24px;
            }

            .gift-inner {
                padding: 24px;
            }

            .section-header {
                margin-bottom: 24px;
            }

            .info-strip-item .value {
                font-size: 1.1em;
            }

            .hero-letter-text {
                font-size: 1.1em;
                line-height: 1.4;
            }

            .dresscode-text, .flowers-text, .gift-text {
                line-height: 1.5;
            }

            .info-strip {
                padding: 16px;
            }

            .location-body {
                flex-direction: column;
                align-content: center;
                justify-content: center;
                text-align: center;
            }

            .hero-subtitle {
                margin-bottom: 0;
            }
        }