/* CSS Variables - Палитра Inter + HSL */
:root {
    --primary-accent: hsl(36.19deg 80.83% 47.06%); 
    --background-light: #f7f7f7; 
    --container-bg: #ffffff;
    --text-dark: #2c3e50; 
    --text-grey: #6c757d;
    --header-dark: #34495e; 
    --font-family: 'Inter', sans-serif;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
    --secondary-light: hsl(210, 35%, 98%); 
}

/* ======================== 1. ГЛОБАЛЬНЫЕ СТИЛИ ======================== */
body { 
    font-family: var(--font-family); 
    margin: 0; 
    padding: 0; 
    background-color: var(--background-light); 
    line-height: 1.6; 
    scroll-behavior: smooth; 
}
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}
.details-button {
    display: inline-block; 
    padding: 12px 30px; 
    background-color: var(--primary-accent); 
    color: white;
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    transition: background-color 0.3s ease; 
    border: none; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(186, 118, 14, 0.5); 
    margin-top: 30px; 
}
.details-button:hover { 
    background-color: hsl(36.19deg 80.83% 37.06%); 
}

/* ======================== 2. СТИЛИ НАВИГАЦИИ и ЯЗЫКА ======================== */
.top-bar { 
    background-color: var(--container-bg); 
    box-shadow: var(--shadow-subtle); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.logo-placeholder { 
    font-size: 1.5em; 
    font-weight: 900; 
    color: var(--primary-accent); 
    text-transform: uppercase; 
}
.menu-languages { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}
.main-menu a { 
    color: var(--text-dark); 
    text-decoration: none; 
    font-weight: 600; 
    margin-left: 20px; 
    transition: color 0.3s; 
}
.main-menu a:hover { 
    color: var(--primary-accent); 
}

/* Dropdown Language Menu */
.lang-dropdown { 
    position: relative; 
}
.lang-toggle { 
    background: none; 
    border: none; 
    font-size: 1em; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 10px; 
    color: var(--text-dark); 
}
.lang-toggle .flag-icon { 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid var(--text-grey); 
}
.lang-menu { 
    position: absolute; 
    top: 100%; 
    right: 0; 
    background: var(--container-bg); 
    border: 1px solid #eee; 
    border-radius: 6px; 
    box-shadow: var(--shadow-subtle); 
    list-style: none; 
    padding: 8px 0; 
    margin-top: 5px; 
    display: none; 
    min-width: 160px; 
    z-index: 2000; 
}
.lang-menu a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px 12px; 
    text-decoration: none; 
    color: var(--text-dark); 
    font-size: 0.9em; 
}
.lang-menu a:hover { 
    background: var(--background-light); 
    color: var(--primary-accent); 
}
.lang-dropdown.open .lang-menu { 
    display: block; 
}
.lang-menu img { 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid var(--text-grey); 
}

/* ======================== 3. СТИЛИ СЛАЙДЕРА (СКРЫТ) ======================== */
.slider-wrapper {
    width: 100%;
    height: 400px; 
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    /* --- ДОБАВЛЕНО: Скрываем слайдер по требованию --- */
    display: none; 
}
.slider-track {
    display: flex; 
    width: 300%; 
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide {
    width: 100%; 
    height: 100%; 
    flex-shrink: 0; 
    position: relative; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
}
.slide-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    width: 100%; 
    height: 100%;
    
    /* ИСПРАВЛЕНИЕ: Используем 'cover', чтобы заполнить весь контейнер */
    background-size: cover; 
    background-repeat: no-repeat; /* Убеждаемся, что изображение не повторяется */
    background-position: center;
    
    z-index: 0;
    background-color: var(--header-dark); 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-bg::after { 
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
}
.slide-content {
    position: relative; 
    color: white; 
    z-index: 2; 
    padding: 20px;
    max-width: 80%;
    text-align: center; 
}
.slide-content h2 { 
    font-size: 2.5em; 
    margin: 0 0 10px; 
    font-weight: 900; 
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); 
    text-align: center; 
}
.slide-content p { 
    font-size: 1.1em; 
    margin: 0; 
    font-weight: 400; 
    color: white; 
}

/* Кнопки навигации слайдера */
.slider-nav { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10; 
}
.slider-nav button { 
    background: rgba(255, 255, 255, 0.5); 
    border: none; 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    margin: 0 5px; 
    cursor: pointer; 
    transition: background 0.3s, width 0.3s, height 0.3s; 
}
.slider-nav button.active { 
    background: var(--primary-accent); 
    width: 12px; 
    height: 12px; 
}

/* ======================== 4. СТИЛИ КОНТЕНТА ======================== */
.page-header h1 {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 auto 40px;
}

.franchise-section { 
    background-color: var(--container-bg); 
    border-radius: 12px; 
    padding: 30px; 
    margin-bottom: 40px; 
    box-shadow: var(--shadow-subtle); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s; 
}
.franchise-section:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
}
.franchise-section h2 { 
    color: var(--primary-accent); 
    border-bottom: 3px solid var(--primary-accent); 
    padding-bottom: 10px; 
    margin-top: 0; 
    font-size: 1.8em; 
    font-weight: 700; 
}
.description { 
    margin-bottom: 25px; 
    font-size: 1.05em; 
    line-height: 1.7; 
}
.content-wrapper { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
}
.text-content { 
    flex: 1; 
    min-width: 300px; 
}
.media-content { 
    flex: 2; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
}
.media-content img { 
    width: 90%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s; 
}
.media-content img:hover { 
    transform: scale(1.03); 
}
.video-placeholder { 
    grid-column: 1 / -1; 
    height: 250px; 
    background-color: var(--background-light); 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    color: var(--primary-accent); 
    /* УДАЛЕНА ПУНКТИРНАЯ РАМКА: border: 2px dashed var(--primary-accent); */
}

/* Стили для iframe внутри video-placeholder */
.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.offer-blocks-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-top: 25px; 
    grid-column: 1 / -1; 
}
.offer-block { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    background: var(--secondary-light); 
    padding: 12px; 
    border-radius: 8px; 
    border-left: 4px solid var(--primary-accent); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
}
.offer-block i { 
    color: var(--primary-accent); 
    font-size: 20px; 
    margin-top: 2px; 
    flex-shrink: 0; 
}
.offer-block b { 
    font-weight: 700; 
    color: var(--text-dark); 
    font-size: 0.9em; 
    display: block;
} 
.offer-block span { 
    font-weight: 400; 
    font-size: 0.85em; 
    color: var(--text-grey); 
    display: block;
}

/* ======================== 5. ФУТЕР ======================== */
footer { 
    text-align: center; 
    padding: 30px; 
    margin-top: 50px; 
    background-color: var(--header-dark); 
    color: white; 
    font-size: 0.9em; 
}
footer a { 
    color: var(--primary-accent); 
    text-decoration: none; 
    font-weight: 700; 
}

/* ======================== 6. СТИЛИ МОДАЛЬНОГО ОКНА ======================== */
/* (Стили, которые ранее были в <head>) */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Скрыто по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
}

.modal-overlay.open {
    display: flex; /* Показываем при классе .open */
}

.modal-content {
    background: var(--container-bg); /* Используем CSS переменную */
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-grey); /* Используем CSS переменную */
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
.modal-close:hover {
    color: var(--text-dark); /* Используем CSS переменную */
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: var(--font-family); /* Используем CSS переменную */
    font-weight: 700;
    color: var(--text-dark); /* Используем CSS переменную */
}

.modal-content p {
     font-family: var(--font-family); /* Используем CSS переменную */
     margin-bottom: 20px;
     color: var(--text-grey); /* Используем CSS переменную */
     font-size: 16px;
     line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-family); /* Используем CSS переменную */
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark); /* Используем CSS переменную */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Важно для padding */
    font-family: var(--font-family); /* Используем CSS переменную */
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* Кнопка наследует .details-button, но делаем ее на 100% ширины */
.modal-content .details-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none; /* Убедимся, что у кнопки нет рамки */
    margin-top: 0; /* Убираем отступ сверху, т.к. есть .form-group */
}


/* ======================== 7. АДАПТИВНОСТЬ ======================== */
/* (Предыдущий раздел 6, переименован в 7) */
@media (max-width: 1024px) { 
    .content-wrapper { 
        flex-direction: column; 
    } 
    .media-content { 
        margin-top: 20px; 
    } 
    .offer-blocks-container { 
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (max-width: 768px) {
    .nav-content { 
        flex-direction: column; 
    } 
    .menu-languages { 
        flex-direction: column; 
        gap: 10px;
    }
    .main-menu a { 
        margin: 0 10px; 
    }
    .media-content { 
        grid-template-columns: 1fr; 
    } 
    .video-placeholder { 
        height: 200px; 
    }
    .offer-blocks-container { 
        grid-template-columns: 1fr; 
    } 
    .slider-wrapper {
        height: 300px; 
    }
}