:root {
    --primary: #f9814d;
    --primary-dark: #e06a3a;
    --secondary: #7608AA;
    --dark: #1e1e2f;
    --gray: #5a5a6e;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.separator { width: 80px; height: 4px; background: var(--primary); margin: 20px auto; border-radius: 4px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(249,129,77,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-small { padding: 8px 20px; font-size: 0.85rem; }

/* Header */
.modern-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.logo-img { height: 50px; width: auto; }
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-list a { text-decoration: none; color: var(--dark); font-weight: 500; transition: var(--transition); }
.nav-list a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 16px; }
.social-icons a { font-size: 1.3rem; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(120deg, #fdfbfb 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 80px;
}
.hero-container { text-align: center; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.hero-content h1 span { color: var(--primary); display: block; }
.hero-content p { font-size: 1.2rem; color: var(--gray); max-width: 600px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Features (Почему мы) */
.features-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}
.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-10px); }
.feature-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* About */
.about {
    position: relative;
    background: url('../images/prof333.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: white;
}
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30,30,47,0.85);
}
.about .container { position: relative; z-index: 2; }
.about-content { max-width: 600px; }
.about-content h2 { color: var(--primary); font-size: 2rem; margin-bottom: 20px; }
.about-content p { margin-bottom: 20px; }

/* Prices */
.prices-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 40px;
}
.price-card {
    background: var(--white);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(249,129,77,0.2);
    transition: var(--transition);
}
.price-card:hover { border-color: var(--primary); transform: scale(1.02); }
.price-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.price-card h3 span { font-size: 0.9rem; color: var(--gray); font-weight: normal; }
.price-value { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin: 20px 0; }
.price-value span { font-size: 1rem; font-weight: normal; color: var(--gray); }
.price-card ul { list-style: none; padding-left: 0; }
.price-card li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.price-card li::before { content: "✓"; color: var(--primary); font-weight: bold; }
.price-warning {
    background: #ffeee8;
    color: var(--primary-dark);
    padding: 12px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
}

/* Promo Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.promo-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}
.promo-card img { width: 100%; height: 180px; object-fit: cover; }
.promo-card h4 { margin: 15px 0 5px; }
.promo-date { font-size: 0.8rem; color: var(--primary); font-weight: 600; }
.promo-card p { padding: 0 15px; font-size: 0.9rem; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    display: block;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay i { color: white; font-size: 2rem; }

/* Footer map */
.footer-map-full {
    position: relative;
    width: 100%;
    height: 400px;
}
.footer-map-full ymaps, .footer-map-full > div {
    width: 100% !important;
    height: 100% !important;
}
.map-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
    padding-right: 5%;
}
.contacts-info {
    background: rgba(30,30,47,0.92);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 24px;
    color: white;
    max-width: 320px;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.contacts-info a { color: var(--primary); text-decoration: none; }
.footer-links { margin: 15px 0; font-size: 0.85rem; }
.footer-links a { color: white; }

/* Cookie notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    flex-wrap: wrap;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}
.cookie-notice button {
    background: var(--primary);
    border: none;
    padding: 6px 18px;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}
.cookie-notice button:hover { background: var(--primary-dark); }




/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: linear-gradient(145deg, white, #f5f5f5);
    max-width: 500px;
    border-radius: 32px;
    padding: 30px;
    position: relative;
    text-align: center;
}
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}
.popup-header { font-size: 1.5rem; font-weight: bold; color: var(--primary); margin-bottom: 15px; }

/* ===== АДАПТИВНОСТЬ (планшеты и мобильные) ===== */
/* Планшеты (768px – 991px) – 2 колонки для Почему мы и Цены */
@media (max-width: 991px) and (min-width: 768px) {
    .features-grid,
    .prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные (до 767px) – 1 колонка */
@media (max-width: 767px) {
    .features-grid,
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .map-overlay {
        position: relative;
        justify-content: center;
        background: var(--dark);
        padding: 20px;
        margin-top: -400px;
        background: transparent;
    }
    .footer-map-full { height: 400px; }
    .contacts-info { margin: 0; max-width: 90%; background: rgba(30,30,47,0.95); }
    .cookie-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
        flex-direction: column;
        text-align: center;
    }
}

/* Очень широкие экраны (≥1600px) – сохраняем 3 колонки, но делаем карточки чуть шире и центрируем */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    .features-grid,
    .prices-grid {
        grid-template-columns: repeat(3, minmax(320px, 380px));
        justify-content: center;
    }
}
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--dark);
        border-radius: 3px;
        transition: var(--transition);
    }
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        gap: 25px;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        display: flex !important;
        overflow-y: auto;
    }
    .nav-list.active {
        left: 0;
    }
    .nav-list li {
        width: 100%;
    }
    .nav-list a {
        display: block;
        padding: 8px 0;
        font-size: 1.2rem;
    }
    .social-icons {
        margin-top: 20px;
        gap: 20px;
    }
    /* Затемнение фона при открытом меню */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .nav-overlay.active {
        display: block;
    }
}

/* Анимация бургер-иконки при открытии (опционально) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}