/* --- ПОДКЛЮЧЕНИЕ ШРИФТОВ --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-color: #4A4D54; /* Благородный графитовый для кнопок */
    --primary-hover: #323439; /* Темно-серый при наведении */
    --text-dark: #222222;     /* Глубокий черный для заголовков */
    --text-muted: #666666;    /* Средне-серый для обычного текста */
    --bg-light: #F4F4F6;      /* Мягкий светло-серый фон */
    --white: #ffffff;
    --radius: 8px;            /* Базовое скругление углов */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавный скролл по якорям меню */
	overflow-x: hidden;
	width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
	overflow-x: hidden;
	width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* --- КНОПКИ --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary { padding: 12px 24px; font-size: 14px; }
.btn-large { padding: 16px 32px; font-size: 16px; box-shadow: 0 4px 15px rgba(74, 77, 84, 0.3); }

.btn-full {
    width: 100%;
    border-radius: 0;
    padding: 18px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    display: block;
}

.btn-full:hover { background-color: var(--primary-hover); transform: none; }

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 20px;
    margin-top: auto; /* Прижимаем кнопку вниз карточки */
}

/* --- ШАПКА САЙТА И МЕНЮ (HEADER) --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-logo { display: flex; flex-direction: column; }
.logo-text { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.2; }
.descriptor {
    max-width: 210px; 
    line-height: 1.3; /* 🌟 Увеличили интервал для лучшей читаемости */
    font-size: 10px;
    margin-top: 5px;  /* 🌟 Заменили -2px на +5px, чтобы добавить "воздуха" */
    display: block; 
    opacity: 0.9;
}

/* Обёртка для меню, контактов и кнопки (для мобилки) */
.header-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Навигация */
.header-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; }
.header-nav a { color: var(--text-dark); position: relative; }
.header-nav a:hover { color: var(--text-muted); }
.header-nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease;
}
.header-nav a:hover::after { width: 100%; }

/* Контакты и Иконки */
.header-contacts { display: flex; align-items: center; gap: 15px; }
.phones { display: flex; flex-direction: column; }
.phones a { font-size: 14px; font-weight: 700; }
.phones a:hover { color: var(--primary-color); }

.messengers { display: flex; gap: 10px; }
.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Кнопка Гамбургер (скрыта на ПК) */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1000;
}
.burger-btn span {
    position: absolute; width: 100%; height: 2px;
    background-color: var(--text-dark); transition: 0.3s ease; border-radius: 2px;
}
.burger-btn span:nth-child(1) { top: 0; left: 0; }
.burger-btn span:nth-child(2) { top: 9px; left: 0; }
.burger-btn span:nth-child(3) { bottom: 0; left: 0; }
.burger-btn.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }


/* --- ГЛАВНЫЙ ЭКРАН (HERO) И КАРУСЕЛЬ --- */
.hero { padding: 80px 0; background-color: var(--bg-light); }
.hero .container { display: flex; align-items: center; gap: 50px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-title { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }

.hero-offer { margin-bottom: 30px; }
.offer-badge {
    display: inline-block; background-color: #E8E9EB; color: #333333;
    padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; border: 1px solid #D1D5DB;
}

.hero-actions { margin-bottom: 25px; }
.hero-trust { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hero-overline {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Карусель (слайдер) из картинок */
.hero-carousel {
    flex: 1; position: relative; height: 500px; width: 100%;
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; 
}

/* --- УСЛУГИ (SERVICES) --- */
.services { padding: 40px 0 40px 0; background-color: var(--white); }
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
}
.service-card {
    background-color: var(--bg-light); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; align-items: center; }
.card-title { font-size: 20px; font-weight: 700; text-transform: uppercase; color: var(--text-dark); margin-bottom: 15px; text-align: center; }
.card-description { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 20px; line-height: 1.5; }
.card-bullets { list-style: none; font-size: 13px; color: var(--text-muted); text-align: left; margin-bottom: 25px; align-self: flex-start; }
.card-bullets li { margin-bottom: 8px; display: flex; align-items: center; }
.card-bullets li::before { content: "✓"; margin-right: 8px; color: var(--primary-color); font-weight: 700; }
/* --- КАРТИНКИ ДЛЯ УСЛУГ --- */
.service-image {
    width: 100%;
    height: 280px;
    object-fit: cover; 
    border-radius: var(--radius); 
    margin-bottom: 25px; 
}

/* --- ПРАЙС-ЛИСТ (PRICING) --- */
.pricing { padding: 40px 0 80px 0; background-color: var(--bg-light); }

.pricing-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    align-items: stretch;
}

.price-category { 
    background-color: var(--white); 
    padding: 30px; 
    border-radius: var(--radius); 
    width: 100%;
    max-width: 350px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); 
}

.price-category:first-child:nth-last-child(4),
.price-category:first-child:nth-last-child(4) ~ .price-category {
    max-width: 480px; 
}

.price-category:first-child:nth-last-child(5),
.price-category:first-child:nth-last-child(5) ~ .price-category {
    max-width: 350px; 
}

.price-category-title { 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 2px solid #E8E9EB; 
    text-align: center;
}
.price-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 15px; 
    overflow: hidden; 
}

.price-name { 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--text-dark); 
    flex: 1 1 auto; 
    word-break: break-word; 
}

.price-name::after {
    content: "";
    display: inline-block;
    width: 1000px; 
    margin-right: -1000px; 
    border-bottom: 1px dashed #CCC;
    position: relative;
    top: -4px; 
    margin-left: 8px; 
}

.price-dots { 
    display: none; 
}

.price-value { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--primary-color); 
    white-space: nowrap; 
    flex-shrink: 0; 
    background-color: var(--white); 
    padding-left: 10px; 
    position: relative; 
    z-index: 2; 
}

/* --- НИЗ ПРАЙСА И НОВАЯ КНОПКА --- */
.pricing-footer {
    text-align: center;
    margin-top: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.6;
}

.pricing-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid #E8E9EB;
    padding: 14px 30px; 
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transform: translateY(-2px);
}

/* --- ПАРАЛЛАКС БЛОК-РАЗДЕЛИТЕЛЬ --- */
.parallax-divider {
    background-image: url('https://images.pexels.com/photos/3738349/pexels-photo-3738349.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); 
    background-attachment: fixed; background-position: center; background-repeat: no-repeat;
    background-size: cover; position: relative; height: 400px; display: flex;
    align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.parallax-divider::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(43, 45, 49, 0.6); z-index: 1;
}

.parallax-divider .section-title {
    color: var(--white);
    margin-bottom: 15px;
}

.parallax-content { position: relative; z-index: 2; padding: 0 20px; }
.parallax-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.parallax-subtitle { font-size: 18px; font-weight: 400; opacity: 0.9; }

/* --- ПРЕИМУЩЕСТВА (FEATURES) --- */
.features { padding: 40px 0; background-color: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { background-color: var(--white); padding: 30px; border-radius: var(--radius); text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
.feature-icon { font-size: 40px; margin-bottom: 15px; color: var(--primary-color); }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.feature-text { font-size: 14px; color: var(--text-muted); }

/* --- БЛОК МАСТЕРОВ (TEAM) --- */
.team { padding: 40px 0; background-color: var(--white); }
.team-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
	align-items: stretch;
}
.master-card {
    background-color: var(--bg-light); 
    padding: 30px 20px; 
    border-radius: var(--radius);
    text-align: center; 
    width: 100%; 
    max-width: 260px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column; align-items: center; height: 100%;
	height: auto;
}

.master-card:first-child:nth-last-child(5),
.master-card:first-child:nth-last-child(5) ~ .master-card {
    max-width: 320px; 
}

.master-card:hover { transform: translateY(-5px); }
.master-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid var(--white); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.master-name { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.master-role { font-size: 14px; color: var(--primary-color); font-weight: 600; margin-bottom: 15px; }
.master-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* =========================================
   --- ОТЗЫВЫ (REVIEWS) --- ИСПРАВЛЕННЫЕ
========================================= */
.reviews { 
    padding: 40px 0 80px 0; 
    background-color: var(--white); 
}
.reviews .section-title {
    margin-bottom: 70px;
}
.reviews-wrapper {
    display: flex;
    overflow-x: auto; 
    gap: 30px;
    padding: 10px 10px 40px 10px; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.reviews-wrapper::-webkit-scrollbar { 
    display: none; 
}

/* 🌟 ИСПРАВЛЕННАЯ КАРТОЧКА ОТЗЫВА */
.review-item {
    flex: 0 0 366px;
    scroll-snap-align: start; 
    box-sizing: border-box;
    background-color: var(--bg-light); 
    padding: 30px; 
    border-radius: var(--radius); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

/* Кнопки управления каруселью */
.reviews-nav { 
    display: flex; justify-content: center; gap: 15px; margin-top: -10px; margin-bottom: 40px;
}
.rev-btn { 
    width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--border); 
    background: transparent; color: var(--primary-color, #4A4D54); font-size: 20px; 
    cursor: pointer; transition: all 0.3s ease; display: grid; place-content: center; 
}
.rev-btn:hover { background: var(--primary-color, #4A4D54); color: #fff; border-color: var(--primary-color, #4A4D54); }

/* Декоративная кавычка */
.review-quote-icon {
    font-size: 80px; color: var(--primary-color); font-family: Georgia, serif; 
    line-height: 0.8; margin-top: -10px; margin-bottom: 10px; opacity: 0.15; 
}

.review-content {
    display: flex; flex-direction: column; width: 100%; box-sizing: border-box; flex-grow: 1;
}

.review-text {
    font-size: 15px; color: var(--text-dark); font-weight: 400;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
    transition: all 0.3s ease; margin-bottom: 5px; line-height: 1.6; 
    word-wrap: break-word; /* Железобетонный перенос */
}
.review-text.expanded { -webkit-line-clamp: unset; }

/* 🌟 ИСПРАВЛЕННАЯ КНОПКА "ЧИТАТЬ ПОЛНОСТЬЮ" */
.read-more-btn {
    background: none; border: none; color: var(--primary-color, #4A4D54); font-family: inherit;
    font-size: 13px; font-weight: 600; padding: 0; margin-top: 5px; margin-bottom: 20px; 
    cursor: pointer; display: none; 
    
    align-self: flex-end; /* Жестко прижимаем вправо */
    text-align: right; 
    
    text-decoration: underline dashed; text-underline-offset: 4px;
}
.read-more-btn:hover { color: #000; text-decoration: underline solid; }

/* Подвал отзыва */
.review-footer {
    display: flex; align-items: center; margin-top: auto; 
}
.review-avatar {
    width: 45px; height: 45px; border-radius: 50%; background-color: #f1f1f3; 
    border: 1px solid #eee; display: flex; align-items: center; justify-content: center; margin-right: 15px;
    flex-shrink: 0; /* Защита от сплющивания аватарки */
}
.review-avatar .initials { font-size: 15px; font-weight: 700; color: var(--primary-color); letter-spacing: 1px; }
.review-info { display: flex; flex-direction: column; }
.review-name { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.review-stars { font-size: 12px; color: #FFC107; margin-bottom: 3px; letter-spacing: 2px; }
.review-source { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.reviews-action {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Разрешаем перенос кнопок */
    margin-top: 30px;
}
/* =========================================
   Конец исправленного блока отзывов
========================================= */

/* --- ЧАСТЫЕ ВОПРОСЫ (FAQ) --- */
.faq {
    padding: 40px 0 40px 0; 
    background-color: var(--bg-light); 
}

.faq-wrapper {
    max-width: 800px; 
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: var(--primary-color);
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-dark);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-question:hover .faq-icon::before,
.faq-question:hover .faq-icon::after {
    background-color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px; 
    padding-bottom: 25px;
    opacity: 1;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
}

/* --- ПОДВАЛ И КОНТАКТЫ (FOOTER) --- */
.footer { background-color: #2B2D31; color: var(--white); padding: 60px 0 0 0; }
.footer-content { display: flex; gap: 50px; padding-bottom: 50px; }
.footer-info { flex: 1; }
.footer-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 15px; color: #D1D5DB; }
.contact-line strong { color: var(--white); }
.footer-map { flex: 1; border-radius: var(--radius); overflow: hidden; height: 300px; }
.footer-bottom { background-color: #1F2124; text-align: center; padding: 20px; font-size: 13px; color: #888; }


/* --- АНИМАЦИИ ПРИ ПРОКРУТКЕ (SCROLL ANIMATIONS) --- */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- КНОПКА "НАВЕРХ" --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* --- СТИЛИ ДЛЯ ТЕЛЕФОНОВ В ШАПКЕ --- */
.phones {
    display: flex;
    flex-direction: column;
    gap: 4px; 
}

.phone-item {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.phone-item a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.phone-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.header-icon {
    width: 60px; 
    height: 60px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--white); width: 90%; max-width: 700px;
    max-height: 80vh; border-radius: var(--radius);
    padding: 40px; position: relative;
    transform: translateY(30px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 28px;
    color: var(--text-muted); cursor: pointer; transition: color 0.3s ease;
}
.modal-close:hover { color: #ff4d4d; }

.modal-text {
    overflow-y: auto; padding-right: 15px; margin-top: 10px;
    font-size: 14px; line-height: 1.6; color: var(--text-muted);
}
.modal-text h3 { color: var(--text-dark); margin: 20px 0 5px 0; font-size: 15px; }

.modal-text::-webkit-scrollbar { width: 6px; }
.modal-text::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-text::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.modal-text::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* --- ИСПРАВЛЕНИЕ ВЕРСТКИ ШАПКИ --- */

/* 1. Ограничиваем ширину описания, чтобы оно не толкало меню */
.descriptor {
    max-width: 200px; /* Текст будет аккуратно переноситься на 2-3 строки */
    line-height: 1.2;
    font-size: 10px; /* Чуть уменьшили для компактности */
}

/* 2. Уменьшаем гигантские отступы в навигации */
.header-nav {
    gap: 15px; /* Было 30px, теперь элементы меню стоят плотнее */
}

.header-menu-wrapper {
    gap: 15px; /* Было 25px */
}

/* 3. Компактим блок контактов */
.header-contacts {
    gap: 10px; /* Было 15px */
    flex-shrink: 0; /* Запрещаем контактам сжиматься и накладываться друг на друга */
}

.phones a {
    font-size: 13px; /* Чуть-чуть уменьшили шрифт номеров */
}

.logo-wrapper {
    gap: 8px; /* Было 12px, придвинули иконку ближе к тексту */
    flex-shrink: 0;
}

/* 4. Фиксируем кнопку записи, чтобы она не сплющивалась */
.header-action {
    flex-shrink: 0;
}

@media (max-width: 768px) { 
    .modal-content { padding: 25px; max-height: 85vh; width: 95%; } 
}

/* --- ГАРАНТИРОВАННАЯ ПРАВКА МОБИЛКИ --- */
@media (max-width: 768px) {
    .header .container {
        display: flex;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 20px !important; 
        height: auto !important; 
        min-height: 70px;
    }
    
    .burger-btn { 
        display: block !important; 
        width: 30px;
        height: 20px;
        position: relative;
    }
    
    .header-menu-wrapper {
        display: none; 
        flex-direction: column; 
        width: 100%; 
        text-align: center;
        padding: 20px 0; 
        gap: 20px; 
        background-color: var(--white);
        border-top: 1px solid #eee; 
        position: absolute;
        top: 100%; 
        left: 0;
        z-index: 100;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
    
    .header-menu-wrapper.open { display: flex !important; }

    .descriptor { display: none !important; } 

    .hero { 
        padding: 20px 0 40px 0 !important; 
    }
    
    .hero-mobile-flex {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 20px !important;
    }

    .hero-carousel {
        order: 1 !important; 
        display: block !important;
        width: 100% !important;
        height: 280px !important; 
        margin: 0 0 25px 0 !important;
        border-radius: 16px !important; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; 
        overflow: hidden !important;
        background-color: #E8E9EB !important; 
    }
    
    .hero-content {
        order: 2 !important; 
        margin-bottom: 0 !important;
        text-align: center !important; 
    }

    .hero-title { 
        font-size: 26px !important; 
        margin-bottom: 12px !important; 
        line-height: 1.3 !important;
    }
    
    .hero-subtitle { 
        font-size: 14px !important; 
        margin-bottom: 20px !important; 
    }

    .hero-offer { 
        margin-bottom: 20px !important; 
    }
    .offer-badge {
        background-color: #FFF0F5 !important; 
        color: #D81B60 !important; 
        border: 1px solid #F8BBD0 !important;
        padding: 12px 20px !important;
        width: 100% !important; 
        display: block !important;
        text-align: center !important;
        border-radius: var(--radius) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .hero-actions { 
        order: 3 !important; 
        width: 100%; 
        margin-bottom: 15px !important; 
    }
    
    .hero-actions .btn-large {
        width: 100% !important; 
        display: block !important; 
        padding: 16px 20px !important; 
        border-radius: var(--radius) !important; 
        box-sizing: border-box !important;
    }
    
    .hero-trust { 
        order: 4 !important; 
        font-size: 12px !important; 
        text-align: center;
    }

    .pricing-grid, .services-grid, .team-grid, .features-grid {
        grid-template-columns: 1fr !important; 
    }

    .parallax-divider { height: 250px; }
    .parallax-title { font-size: 20px; }
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }

    /* =========================================
       МОБИЛЬНЫЕ ОТЗЫВЫ (ОЧИЩЕНО)
    ========================================= */
    .reviews { padding: 70px 0; }
    
    .review-item { 
        flex: 0 0 85vw !important; /* Карточка занимает 85% экрана для свайпа */
        /* Удалили старый ломающий код с text-align и border-bottom */
    }
    
    .reviews-nav { 
        display: none; /* Прячем стрелки, на мобильном свайп */
    }

    .review-quote-icon { 
        font-size: 60px; 
        margin-bottom: -20px; 
    }
    
    .review-footer { 
        margin-top: 15px;
    }
    /* Конец мобильных отзывов */
    
    .faq { padding: 70px 0; }
    .faq-question h3 { font-size: 16px; }
    .faq-answer p { font-size: 14px; }
    
    .footer-content {
        flex-direction: column !important; 
        gap: 30px !important; 
        padding-bottom: 40px !important;
    }
    
    .footer-info, .footer-map {
        width: 100% !important; 
    }
    
    .footer-map {
        height: 250px !important; 
    }

    .footer-info .btn-primary {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 16px 20px !important;
        border-radius: var(--radius) !important;
    }
    
    .scroll-to-top {
        bottom: 25px !important;
        right: 15px !important;
    }
    
	.pricing-actions, .reviews-action {
        flex-direction: column;
        gap: 15px;
    }
    
    .pricing-actions .btn, .reviews-action .btn {
        width: 100% !important;
    }
    
    .phones {
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .phone-item a {
        font-size: 16px; 
    }
    
    .phone-label {
        font-size: 11px;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
    }
    
    .master-card {
        max-width: 100% !important;
    }
    
    .price-category {
        max-width: 100% !important;
    }
}

/* --- КОМПАКТНАЯ ВЕРСИЯ ДЛЯ ГОРИЗОНТАЛЬНОГО РЕЖИМА ТЕЛЕФОНА --- */
@media (orientation: landscape) and (max-height: 600px) {
    /* Шапка */
    .header .container { height: 60px !important; }
    .header-icon { width: 40px !important; height: 40px !important; }
    .logo-text { font-size: 16px !important; }
    .descriptor { display: none !important; }
    .header-nav { gap: 10px !important; font-size: 12px !important; }
    .header-contacts { gap: 8px !important; }
    .phones a { font-size: 11px !important; }
    .social-icon { width: 26px !important; height: 26px !important; }
    .social-icon svg { width: 14px !important; height: 14px !important; }
    .btn-primary { padding: 8px 15px !important; font-size: 12px !important; }

    /* 🌟 Главный экран (Hero) */
    .hero {
        padding: 30px 0 !important; /* Убираем огромные отступы сверху и снизу */
    }
    .hero .container {
        align-items: center !important; 
    }
    .hero-title {
        font-size: 22px !important; /* Значительно уменьшаем гигантский заголовок */
        margin-bottom: 10px !important;
    }
    .hero-subtitle {
        font-size: 13px !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    .hero-overline {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }
    .hero-carousel {
        height: 250px !important; /* Сужаем картинку в два раза, чтобы она влезла в экран */
    }
    .hero-actions .btn {
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
}

/* --- УМНАЯ АДАПТАЦИЯ ШАПКИ (БЕЗ УДАЛЕНИЯ МЕНЮ) --- */

/* 1. Планшеты и небольшие ноутбуки (от 769px до 1150px) */
@media (max-width: 1150px) and (min-width: 769px) {
    .descriptor { 
        display: none !important; /* Убираем длинную подпись для экономии места */
    }
    
    .header-nav { 
        gap: 12px; /* Максимально сближаем пункты меню */
        font-size: 13px; /* Делаем шрифт чуть мельче */
    }

    .header-contacts {
        gap: 8px; /* Сближаем контакты */
    }

    .social-icon {
        width: 28px; /* Уменьшаем иконки соцсетей */
        height: 28px;
    }

    .btn-primary {
        padding: 10px 16px; /* Делаем кнопку записи чуть меньше */
        font-size: 13px;
    }
}

/* 2. Спец-режим: очень узкие планшеты или "переходный" размер (около 768px-850px) */
@media (max-width: 850px) and (min-width: 769px) {
    .header .container {
        padding: 0 10px; /* Уменьшаем боковые отступы контейнера, чтобы дать больше места меню */
    }
    
    .social-icon {
        display: none; /* Прячем только иконки соцсетей (телефоны остаются), чтобы спасти меню и кнопку записи */
    }
}

/* 3. Горизонтальные телефоны (оставляем только самое важное) */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 900px) {
    .header-nav { display: none !important; } /* На телефоне горизонтально меню всё равно не нужно, там спасет гамбургер */
    .social-icon { display: none !important; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}