/* ========== ПРЕМИУМ СТИЛЬ ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2c3e4e;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* ========== ЦВЕТОВАЯ ПАЛИТРА ========== */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f0ff;
    --primary-gradient: linear-gradient(135deg, #0066cc, #0052a3);
    --secondary: #4f7a6b;
    --accent: #c59a6b;
    --dark: #2c3e4e;
    --dark-gradient: linear-gradient(145deg, #2c3e4e, #1e2e38);
    --gray: #f9fbfd;
    --gray-light: #f1f4f8;
    --gray-dark: #6b7a84;
    --border: #e9edf2;
    --shadow-md: 0 15px 35px -8px rgba(0,102,204,0.08);
    --shadow-hover: 0 30px 50px -15px rgba(0,102,204,0.2);
}

/* ========== ПАРАЛЛАКС БЛОКИ ========== */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(44,62,78,0.85), rgba(30,46,56,0.9));
    z-index: 1;
}

/* Специальный класс для вертикального фото с движением */
.vertical-parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center 0%;
    background-size: auto 130%;
    background-repeat: no-repeat;
    isolation: isolate;
    transition: background-position 0.1s linear;
}

.vertical-parallax .parallax-overlay {
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(248,250,252,0.88));
}

/* ========== ГЕРОЙ ========== */
.hero {
    background-image: url('/assets/images/gallery/IMG_20260212_152855.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: white;
    padding: 120px 0;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(44,62,78,0.8), rgba(30,46,56,0.85));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

/* ========== УСЛУГИ С ФОНОМ ========== */
.services-parallax {
    background-image: url('/assets/images/gallery/IMG_20260212_152736.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    padding: 100px 0;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.45));
    z-index: 1;
}

.services-parallax .container {
    position: relative;
    z-index: 10;
}

/* ========== ПРЕИМУЩЕСТВА С ВЕРТИКАЛЬНЫМ ФОТО ========== */
.benefits-parallax {
    background-image: url('/assets/images/gallery/da9b8b06269cf8aae4895aa8e5840ac7_high.webp');
    background-attachment: fixed;
    background-position: center 0%;
    background-size: auto 130%;
    position: relative;
    padding: 100px 0;
    transition: background-position 0.05s linear;
}

.benefits-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(248,250,252,0.88));
    z-index: 1;
}

.benefits-parallax .container {
    position: relative;
    z-index: 10;
}

/* ========== КВИЗ С ВЕРТИКАЛЬНЫМ ФОТО ========== */
.quiz-parallax {
    background-image: url('/assets/images/gallery/da9b8b06269cf8aae4895aa8e5840ac7_high.webp');
    background-attachment: fixed;
    background-position: center 0%;
    background-size: auto 130%;
    position: relative;
    padding: 100px 0;
    transition: background-position 0.05s linear;
}

.quiz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(44,62,78,0.92), rgba(30,46,56,0.95));
    z-index: 1;
}

.quiz-parallax .container {
    position: relative;
    z-index: 10;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
    font-size: 24px; font-weight: 700; color: var(--primary);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a {
    text-decoration: none; color: var(--dark); font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}
.nav-menu a i { color: var(--gray-dark); }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover i { color: var(--primary); }
.nav-phone { font-weight: 600; color: var(--primary); text-decoration: none; }

/* ========== КНОПКИ ========== */
.btn {
    background: var(--primary-gradient); color: white; border: none;
    padding: 16px 36px; border-radius: 100px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: 0.3s; display: inline-block; text-decoration: none;
    box-shadow: var(--shadow-md);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ========== ТИПОГРАФИКА ========== */
h1 { font-size: 52px; font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 42px; font-weight: 700; margin-bottom: 20px; color: var(--dark); }
h3 { font-size: 24px; font-weight: 600; margin-bottom: 15px; color: var(--dark); }

/* ========== ГЕРОЙ КОНТЕНТ ========== */
.badge-ip {
    background: rgba(0,102,204,0.2); padding: 10px 24px;
    border-radius: 100px; display: inline-block; margin-bottom: 25px;
    backdrop-filter: blur(5px); border: 1px solid rgba(0,102,204,0.3);
}
.hero-stats { display: flex; gap: 50px; margin: 40px 0; }
.stat-number { font-size: 42px; font-weight: 700; color: var(--primary); line-height: 1; }
.inn-block {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 100px;
    padding: 12px 24px; display: inline-flex; align-items: center; gap: 12px;
    margin-top: 30px; color: white;
}
.inn-block i { color: var(--primary); }

/* ========== УСЛУГИ ========== */
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px;
}
.service-card {
    background: white; border-radius: 24px; padding: 35px 25px;
    border: 1px solid var(--border); transition: 0.3s; height: 100%;
    display: flex; flex-direction: column; backdrop-filter: blur(5px);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.service-icon {
    width: 70px; height: 70px; background: var(--primary-light); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon i { font-size: 32px; color: var(--primary); }
.service-price { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-badge {
    background: var(--primary-light); color: var(--primary); padding: 5px 14px;
    border-radius: 60px; font-size: 13px; font-weight: 600; display: inline-block;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px;
}
.benefit-number { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }

/* ========== ГАЛЕРЕЯ ========== */
.gallery-section { padding: 80px 0; background: white; }
.gallery-filters {
    display: flex; justify-content: center; gap: 15px; margin: 40px 0; flex-wrap: wrap;
}
.filter-btn {
    padding: 12px 28px; border: 1px solid var(--border); background: white;
    border-radius: 60px; font-size: 15px; font-weight: 500; color: var(--dark);
    cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-btn.active i { color: white; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.gallery-item {
    position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-category {
    position: absolute; top: 15px; right: 15px; background: var(--primary);
    color: white; padding: 5px 12px; border-radius: 60px; font-size: 12px;
}

/* ========== ОТЗЫВЫ ========== */
.reviews-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px;
}
.review-card {
    background: white; padding: 30px; border-radius: 24px; border: 1px solid var(--border);
}
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.review-avatar {
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
    border: 3px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-stars { color: #ffc107; font-size: 14px; margin-bottom: 5px; }

/* ========== КОМАНДА ========== */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px;
}
.team-card { text-align: center; background: white; padding: 30px; border-radius: 24px; }
.team-photo-wrapper {
    width: 140px; height: 140px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
    border: 4px solid white; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.team-photo { width: 100%; height: 100%; object-fit: cover; }
.team-role { color: var(--primary); font-weight: 600; margin-bottom: 10px; }

/* ========== ФОРМА ========== */
.form-card {
    background: white; border-radius: 24px; padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); max-width: 700px; margin: 0 auto;
}
.input-field {
    width: 100%; padding: 15px 20px; border: 1px solid var(--border);
    border-radius: 16px; font-size: 16px;
}
.privacy-checkbox {
    display: flex; align-items: center; gap: 10px; margin: 25px 0; font-size: 14px;
}
.privacy-checkbox a { color: var(--primary); text-decoration: none; }

/* ========== КВИЗ ========== */
.quiz-container {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 32px;
    padding: 50px;
    color: white;
}
.quiz-progress { display: flex; gap: 15px; margin-bottom: 40px; }
.progress-step {
    flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px;
}
.progress-fill { height: 100%; background: var(--primary-gradient); width: 0%; }
.quiz-question { font-size: 28px; font-weight: 600; margin-bottom: 30px; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.quiz-option {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px; border-radius: 16px; color: white; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
}
.quiz-option i { color: var(--primary); }
.quiz-option:hover { background: rgba(0,102,204,0.2); }

/* ========== ФУТЕР ========== */
.footer {
    background: linear-gradient(145deg, #2c3e4e, #1e2e38); color: white;
    padding: 70px 0 30px; margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 40px;
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px;
    text-align: center; color: rgba(255,255,255,0.5);
}

/* ========== АДАПТАЦИЯ ========== */
@media (max-width: 1024px) {
    .services-grid, .gallery-grid, .reviews-grid, .team-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .services-grid, .gallery-grid, .reviews-grid, .team-grid,
    .benefits-grid, .footer-grid, .hero-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .quiz-options { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    
    /* Отключаем параллакс на мобильных */
    .hero, .services-parallax, .benefits-parallax, .quiz-parallax {
        background-attachment: scroll !important;
    }
}