* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #2c3e50;
            --accent: #8b7355;
            --gold: #d4af37;
            --cream: #faf8f3;
            --white: #ffffff;
            --text: #333333;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--text);
            background: var(--cream);
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: #1a2030; /* fallback пока грузится фото */
        }

        /* Убираем старые псевдоэлементы с градиентными пузырями —
        они теперь не нужны, фото само создаёт атмосферу.
        ::before и ::after оставляем пустыми или удаляем */
        .hero::before,
        .hero::after {
            display: none;
        }

        /* Обёртка фотографии — на весь экран, за текстом */
        .hero-photo-wrap {
            position: absolute;
            inset: 0;
            z-index: 0;
        }

        /* Сама фотография — object-fit cover, всегда заполняет шапку */
        .hero-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top; /* подними до center center если лица обрезаются */
            display: block;
        }

        /* Тёмный оверлей поверх фото — делает текст читаемым.
        Регулируй opacity (0.35–0.55) под конкретное фото */
        .hero-photo-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to bottom,
                rgba(26, 32, 48, 0.15) 0%,
                rgba(26, 32, 48, 0.45) 50%,
                rgba(26, 32, 48, 0.65) 100%
            );
        }

        /* Имена — прижаты к верху */
        .hero-top {
            position: absolute;
            top: clamp(32px, 6vh, 64px);
            left: 0;
            right: 0;
            z-index: 2;
            text-align: center;
            animation: fadeInUp 1.2s ease-out 0.2s both;
        }

        /* Подпись + дата — прижаты к низу */
        .hero-bottom {
            position: absolute;
            bottom: clamp(48px, 8vh, 90px);
            left: 0;
            right: 0;
            z-index: 2;
            text-align: center;
            animation: fadeInUp 1.2s ease-out 0.6s both;
        }

        /* Тонкая горизонтальная линия между subtitle и датой */
        .hero-divider {
            width: 40px;
            height: 1px;
            background: var(--gold);
            margin: 16px auto;
            opacity: 0.8;
        }

        .hero h1 {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 300;
            color: #ffffff;
            margin: 0;
            letter-spacing: 3px;
            line-height: 1.1;
            text-shadow: 0 2px 30px rgba(0,0,0,0.5);
        }

        .subtitle {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(0.75rem, 1.8vw, 1rem);
            font-weight: 300;
            color: rgba(255,255,255,0.75);
            letter-spacing: 5px;
            text-transform: uppercase;
            margin: 0;
        }

        .date-highlight {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(1.6rem, 4vw, 2.6rem);
            color: #ffffff;
            font-weight: 400;
            margin: 0;
            letter-spacing: 4px;
            text-shadow: 0 2px 16px rgba(0,0,0,0.35);
        }

        

        /* Section Styles */
        section {
            padding: 100px 0;
            position: relative;
        }

        .section-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 400;
            color: var(--primary);
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: var(--gold);
        }

        /* Details Section */
        .details {
            background: var(--white);
        }

        .details-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 50px;
            margin-top: 60px;
        }

        .detail-card {
            text-align: center;
            padding: 40px 30px;
            background: var(--cream);
            border-radius: 8px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .detail-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .detail-icon {
            font-size: 48px;
            margin-bottom: 20px;
            color: var(--gold);
        }

        .detail-card h3 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .detail-card p {
            font-size: 1rem;
            line-height: 1.8;
            color: var(--accent);
        }

        /* Timeline */
        .timeline {
            background: linear-gradient(135deg, #faf8f3 0%, #f5f2ea 100%);
        }

        .timeline-container {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }

        .timeline-container::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: linear-gradient(to bottom, transparent, var(--gold), transparent);
        }

        .timeline-item {
            display: flex;
            align-items: center;
            margin-bottom: 60px;
            position: relative;
        }

        .timeline-item:nth-child(odd) {
            flex-direction: row-reverse;
        }

        .timeline-content {
            width: 45%;
            padding: 30px;
            background: var(--white);
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
        }

        .timeline-content:hover {
            transform: scale(1.03);
        }

        .timeline-item:nth-child(odd) .timeline-content {
            text-align: right;
        }

        .timeline-dot {
            width: 20px;
            height: 20px;
            background: var(--gold);
            border-radius: 50%;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            border: 4px solid var(--cream);
            z-index: 2;
        }

        .timeline-time {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.5rem;
            color: var(--gold);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .timeline-event {
            font-size: 1.1rem;
            color: var(--primary);
            font-weight: 400;
        }

        /* Location */
        .location {
            background: var(--white);
        }

        .location-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            margin-top: 60px;
        }

        .location-info h3 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .location-info p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--accent);
            margin-bottom: 15px;
        }

        .map-placeholder {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, #e8e5dd 0%, #d4cfc4 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.5rem;
            color: var(--accent);
            position: relative;
            overflow: hidden;
        }

        .map-placeholder::before {
            content: '📍';
            font-size: 80px;
            position: absolute;
            opacity: 0.3;
        }

        .map-placeholder::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* Рисуем белую рамку внутри: 
            сверху 45px, снизу 45px, слева 5px, справа 0px */
            box-shadow: inset 0 45px 0 white, 
                        inset 0 -45px 0 white, 
                        inset 5px 0 0 white, 
                        inset 0px 0 0 white;
            z-index: 2;
            pointer-events: none; /* Чтобы можно было двигать карту под маской */
            border-radius: 8px; /* Чтобы маска повторяла форму контейнера */
        }

        /* Стили для самого iframe внутри контейнера */
        .map-placeholder iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        /* RSVP */
        .rsvp {
            background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
            color: var(--white);
        }

        .rsvp .section-title {
            color: var(--white);
        }

        .rsvp .section-title::after {
            background: var(--gold);
        }

        .rsvp-form {
            max-width: 600px;
            margin: 60px auto 0;
            background: rgba(255, 255, 255, 0.05);
            padding: 50px;
            border-radius: 8px;
            backdrop-filter: blur(10px);
        }

        .form-group {
            margin-bottom: 30px;
        }

        .form-group label {
            display: block;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--cream);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            border-radius: 4px;
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--gold);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .radio-group {
            display: flex;
            gap: 30px;
            margin-top: 10px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .radio-option input[type="radio"] {
            width: auto;
            cursor: pointer;
        }

        .submit-btn {
            width: 100%;
            padding: 18px;
            background: var(--gold);
            color: var(--white);
            border: none;
            border-radius: 4px;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.3rem;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            background: #c29d2e;
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
        }

        /* Countdown Section */
        .countdown {
            background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
            color: var(--white);
            position: relative;
            overflow: hidden;
        }

        .countdown::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 20s ease-in-out infinite;
            z-index: 0;
        }

        .countdown::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -5%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 25s ease-in-out infinite reverse;
            z-index: 0;
        }

        .countdown .container {
            position: relative;
            z-index: 1;
        }

        .countdown .section-title {
            color: var(--white);
        }

        .countdown .section-title::after {
            background: var(--gold);
        }

        .countdown-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin: 60px 0;
            flex-wrap: nowrap;
        }

        .countdown-item {
            text-align: center;
            position: relative;
        }

        .countdown-number {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(3rem, 8vw, 5rem);
            font-weight: 700;
            color: var(--gold);
            line-height: 1;
            margin-bottom: 10px;
            animation: fadeInUp 1.2s ease-out;
            display: inline-block;
            min-width: auto;
        }

        @keyframes titlePulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .countdown-number {
            animation: fadeInUp 1.2s ease-out, titlePulse 2s ease-in-out 1s infinite;
        }

        .countdown-label {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--cream);
            font-weight: 300;
        }

        .countdown-separator {
            font-family: 'Montserrat', sans-serif;
            font-size: 3rem;
            color: var(--gold);
            font-weight: 400;
            margin-bottom: 0;
            opacity: 0.6;
            animation: fadeInUp 1.2s ease-out 0.3s both;
            display: flex;
            align-items: center;
            height: 100%;
        }

        .countdown-date {
            text-align: center;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.5rem;
            color: var(--cream);
            margin-top: 30px;
            letter-spacing: 2px;
            animation: fadeInUp 1.2s ease-out 0.6s both;
        }

        /* Photos Section */
        .photos {
            background: var(--white);
        }

        .photos-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: var(--accent);
            margin-bottom: 60px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.8;
        }

        .photo-albums {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 50px;
            margin-top: 60px;
        }

        .photo-album-card {
            display: flex;
            flex-direction: column;
            background: linear-gradient(135deg, #f9f7f2 0%, #f3efe8 100%);
            border-radius: 12px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            border: 2px solid rgba(212, 175, 55, 0.1);
        }

        .photo-album-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            border-color: var(--gold);
        }

        .album-visual {
            background: linear-gradient(135deg, #faf8f3 0%, #f0ede5 100%);
            padding: 60px 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 30px;
            position: relative;
            overflow: hidden;
        }

        .album-visual::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
            border-radius: 50%;
        }

        .album-icon {
            font-size: 80px;
            display: block;
            animation: iconRotatePulse 3s ease-in-out infinite;
        }

        @keyframes iconRotatePulse {
            0% { 
                transform: scale(1) rotate(0deg); 
                opacity: 1;
            }
            25% { 
                transform: scale(1.15) rotate(5deg); 
            }
            50% { 
                transform: scale(1) rotate(0deg); 
            }
            75% { 
                transform: scale(1.15) rotate(-5deg); 
            }
            100% { 
                transform: scale(1) rotate(0deg); 
                opacity: 1;
            }
        }

        .qr-placeholder {
            width: 150px;
            height: 150px;
            background: var(--white);
            border: 2px solid var(--gold);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.1rem;
            color: var(--accent);
            font-weight: 500;
            letter-spacing: 1px;
        }

        .album-info {
            padding: 30px;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .album-info h3 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: 600;
        }

        .album-info p {
            font-size: 1rem;
            color: var(--accent);
            line-height: 1.6;
        }

        /* Footer */
        footer {
            background: var(--primary);
            color: var(--cream);
            text-align: center;
            padding: 50px 20px;
        }

        footer p {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .heart {
            color: var(--gold);
            display: inline-block;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            10%, 30% { transform: scale(1.1); }
            20%, 40% { transform: scale(1); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .location-content {
                grid-template-columns: 1fr;
            }

            .timeline-container::before {
                left: 20px;
            }

            .timeline-item,
            .timeline-item:nth-child(odd) {
                flex-direction: row;
                padding-left: 50px;
            }

            .timeline-content,
            .timeline-item:nth-child(odd) .timeline-content {
                width: 100%;
                text-align: left;
            }

            .timeline-dot {
                left: 20px;
                transform: translateX(0);
            }

            .rsvp-form {
                padding: 30px 20px;
            }

            .radio-group {
                flex-direction: column;
                gap: 15px;
            }

            .countdown-container {
                gap: 10px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .countdown-number {
                font-size: clamp(1.8rem, 5vw, 2.5rem);
            }

            .countdown-separator {
                font-size: 1.5rem;
                margin-bottom: 0;
            }

            .countdown-item {
                min-width: auto;
            }

            .countdown-label {
                font-size: 0.75rem;
                letter-spacing: 1px;
            }

            .photo-albums {
                gap: 25px;
                margin-top: 30px;
            }

            .album-visual {
                padding: 30px 15px;
                gap: 20px;
            }

            .album-icon {
                font-size: 45px;
            }

            .qr-placeholder {
                width: 120px;
                height: 120px;
                font-size: 0.9rem;
            }

            .album-info {
                padding: 20px 15px;
            }

            .album-info h3 {
                font-size: 1.5rem;
            }

            .album-info p {
                font-size: 0.9rem;
            }

            .countdown-container {
                gap: 5px;
                margin: 40px 0;
                max-width: 100%;
                padding: 0 10px;
            }

            .countdown-number {
                font-size: clamp(1.2rem, 3.5vw, 1.8rem);
                margin-bottom: 5px;
            }

            .countdown-separator {
                font-size: clamp(1rem, 2.5vw, 1.4rem);
                margin: 0 2px;
            }

            .countdown-item {
                flex: 1;
                min-width: 0;
            }

            .countdown-label {
                font-size: clamp(0.6rem, 2vw, 0.75rem);
                letter-spacing: 0.5px;
            }
            /* Location — на мобиле всегда: текст сверху, карта снизу */
            .location-content {
                grid-template-columns: 1fr;
                gap: 25px;
                margin-top: 40px;
            }

            /* Все location-info выводим первыми */
            .location-content .location-info {
                order: 1;
            }

            /* Все карты — после текста */
            .location-content .map-placeholder {
                order: 2;
                height: 260px; /* карта пониже на мобиле */
            }

            /* Уменьшаем высоту map-placeholder для мобиле */
            .map-placeholder {
                height: 260px;
            }
        }
        /* Details grid — single centered card */
        .details-grid--single {
            grid-template-columns: minmax(280px, 400px);
            justify-content: center;
            margin-top: 0;
        }

        /* Timeline detail subtitle */
        .timeline-detail {
            font-size: 0.9rem;
            color: var(--accent);
            margin-top: 6px;
            font-style: italic;
        }

        /* Guest Rules Section */
        .rules {
            background: linear-gradient(135deg, #faf8f3 0%, #f5f2ea 100%);
        }

        .rules-intro {
            text-align: center;
            font-size: 1.1rem;
            color: var(--accent);
            max-width: 700px;
            margin: 0 auto 50px;
            line-height: 1.8;
        }

        .rules-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .rule-card {
            background: var(--white);
            border-radius: 10px;
            padding: 35px 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
            border-top: 3px solid var(--gold);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .rule-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        }

        .rule-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .rule-icon {
            font-size: 36px;
            flex-shrink: 0;
        }

        .rule-header h3 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.6rem;
            color: var(--primary);
            font-weight: 600;
        }

        .rule-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .rule-list li {
            font-size: 0.95rem;
            color: var(--accent);
            line-height: 1.7;
            padding: 8px 0;
            border-bottom: 1px solid rgba(139, 115, 85, 0.12);
            padding-left: 18px;
            position: relative;
        }

        .rule-list li::before {
            content: '·';
            position: absolute;
            left: 0;
            color: var(--gold);
            font-size: 1.4rem;
            line-height: 1.3;
        }

        .rule-list li:last-child {
            border-bottom: none;
        }

        /* Form status messages */
        .form-status {
            margin-top: 20px;
            padding: 15px 20px;
            border-radius: 6px;
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.1rem;
            text-align: center;
        }

        .form-status--success {
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid var(--gold);
            color: var(--cream);
        }

        .form-status--error {
            background: rgba(220, 80, 80, 0.15);
            border: 1px solid #dc5050;
            color: #ffb3b3;
        }

        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        @media (max-width: 768px) {
            .rules-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .rule-card {
                padding: 25px 20px;
            }

            .rule-header h3 {
                font-size: 1.3rem;
            }
        }
