@import url('https://fonts.googleapis.com');

:root {
    --gold: #800020;
    --gold-dark: #4d0013;
    --dark: #2c1a1a;
    --light-bg: #fdfaf5;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.navbar {
    background-color: var(--gold);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 15px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-video { flex: 1.5; text-align: center; }

.hero-video video {
    width: 100%;
    max-height: 500px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-side { flex: 1; padding: 10px; }

.hero-side h3 {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.myth-box, .info-box {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.myth-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    display: block;
}

.services { padding: 60px 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.card h4 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.btn {
    display: inline-block;
    background-color: var(--gold);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.4s;
    border-radius: 4px;
}

footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-whatsapp {
    background-color: #25D366 !important;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 15px;
}

.logo-text {
    font-weight: bold;
    color: #ffffff;
}

.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--gold);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.floating-phone::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: phone-pulse 2s infinite;
}

@keyframes phone-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 900px) {
    /* 1. Блокируем горизонтальный скролл на корню */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0;
        padding: 0;
    }

    /* 2. Исправляем контейнеры, которые распирают экран */
    .hero-container, .container, .grid, .services {
        width: 100% !important;
        max-width: 100% !important; /* Убираем 1200px */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        display: block !important; /* Для надежности на старых iOS */
    }

    /* 3. Чтобы текст не прилипал к краям и не уезжал */
    .hero-side, .hero-video {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        text-align: left; /* Можно поменять на center, если нужно */
    }

    /* 4. Исправляем заголовки, которые могут быть шире экрана */
    h1, h2, h3, .logo-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        font-size: 1.4rem !important; /* Уменьшаем размер, чтобы влезло */
    }

    /* 5. Навигация (шапка) */
    .navbar .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    nav a {
        margin: 5px;
        display: inline-block;
    }
}


