/* -------------------------------
   Базовые сбросы и общие стили
-------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    color: #fff;
    background: #000; /* фон на случай, если видео не загрузится */
}

/* === ВИДЕО ФОН — ПОЛНОЕ ПОКРЫТИЕ ЭКРАНА === */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -2;
}

/* Усиленная страховка для мобильных */
@media (max-width: 800px) {
    .video-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Заставляем видео растягиваться на весь вьюпорт */
        min-width: 100vw;
        min-height: 100vh;
    }
}

/* Ещё более надёжный вариант для совсем старых или проблемных мобильных */
@media (max-width: 600px) {
    .video-background {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
    }
}

/* Затемняющая подложка для читаемости */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: brightness(0.9) blur(1px);
    z-index: -1;
}

/* Основной контент — flex-верстка */
.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem 2rem 3rem 2rem;
    text-align: center;
}

/* === ЛОГОТИП (вверху по центру) === */
.logo-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.logo {
    position: relative;
    display: inline-block;
    text-align: center;
    animation: fadeInDown 1.2s ease-out;
    left: -617px;   /* сдвиг влево (только для десктопа) */
    width: 250px;   /* фиксированная ширина */
}

/* Если логотип — текст (H1 и P) */
.logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #F9E0A0, #E3B34C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 300;
    color: #FFE6B3;
    border-top: 1px solid rgba(255,215,130,0.5);
    display: inline-block;
    padding-top: 8px;
    margin-top: 5px;
    backdrop-filter: blur(2px);
}

/* Изображение внутри логотипа (если используется картинка) */
.logo img {
    max-width: 556px;
    width: 130%;
    height: auto;
    display: block;
}

/* Декоративные цветочки (отключены) */
.logo::before,
.logo::after {
    display: none;
}

/* === ИНФОРМАЦИОННЫЙ БЛОК === */
.info-block {
    background: rgba(20, 15, 8, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 1rem 2rem;
    margin: -5.5rem 0;
    border: 1px solid rgba(230, 184, 62, 0.5);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.info-block:hover {
    transform: scale(1.02);
    background: rgba(20, 15, 8, 0.7);
}

.info-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #FFE3A4;
}

.info-block p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 6px;
    color: #FEF1CF;
}

.date {
    font-weight: 600;
    background: rgba(0,0,0,0.4);
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* === КНОПКИ (снизу) === */
.buttons-footer {
    width: 100%;
    max-width: 1100px;
    margin-top: auto;
    margin-bottom: 1rem;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 215, 120, 0.9);
    background: rgba(0, 0, 0, 0.65);
    color: #FFF6E5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.btn i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.9), rgba(184, 115, 51, 0.9));
    border: 2px solid #FFD966;
    color: #FFF2D7;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transform: scale(1.02);
}

.btn-primary i {
    font-size: 1.3rem;
}

/* Эффекты наведения */
.btn:hover {
    transform: translateY(-6px);
    background: rgba(30, 20, 5, 0.85);
    border-color: #FFC857;
    color: #FFF1C1;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E6B422, #C77D1E);
    transform: translateY(-6px) scale(1.03);
    border-color: #FFE28A;
}

.btn:active {
    transform: translateY(0px);
}

.footer-note {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* === АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) === */
@media (max-width: 800px) {
    .main-content {
        padding: 1.2rem 1.2rem 2rem;
    }

    /* Исправляем логотип: убираем сдвиг влево, центрируем */
    .logo {
        position: static;
        left: 0;
        width: auto;
        max-width: 90%;
        margin: 0 auto;
    }

    .logo img {
        max-width: 100%;
        width: auto;
        margin: 0 auto;
    }

    .logo h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .info-block h2 {
        font-size: 1.5rem;
    }

    .info-block p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        min-width: 150px;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .button-group {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 85%;
        max-width: 280px;
    }

    .info-block {
        padding: 0.8rem 1.2rem;
        margin: 1rem 0;
    }

    /* Дополнительная коррекция логотипа для телефонов */
    .logo {
        max-width: 80%;
    }

    .logo h1 {
        font-size: 2.3rem;
    }

    .logo img {
        max-width: 100%;
        width: auto;
    }
}

@media (min-width: 1400px) {
    .button-group {
        gap: 2.5rem;
    }

    .btn {
        padding: 1rem 2.8rem;
        font-size: 1.2rem;
    }

    .btn-primary {
        padding: 1.1rem 3rem;
        font-size: 1.3rem;
    }
}

/* === АНИМАЦИИ === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-group .btn {
    animation: fadeInUp 0.9s ease-out backwards;
}
.button-group .btn:nth-child(1) { animation-delay: 0.1s; }
.button-group .btn:nth-child(2) { animation-delay: 0.3s; }
.button-group .btn:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons-footer {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}