body { font-family: 'Arial', sans-serif; background: #f4f4f4; margin: 0; }
header { background: #333; color: white; padding: 1rem; display: flex; justify-content: space-between; }
header a { color: white; text-decoration: none; margin-left: 15px; }

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.property-card img { width: 100%; height: 200px; object-fit: cover; }

.price { color: #27ae60; font-weight: bold; font-size: 1.2rem; }


.container { max-width: 1000px; margin: 20px auto; padding: 20px; }
.property-detail { display: flex; gap: 40px; background: white; padding: 20px; border-radius: 12px; }
.property-detail img { width: 50%; border-radius: 8px; object-fit: cover; }
.property-info { width: 50%; }
.detail-price { font-size: 2rem; color: #27ae60; font-weight: bold; margin: 10px 0; }
.detail-location { color: #7f8c8d; font-size: 1.1rem; }
.description { line-height: 1.6; color: #333; margin-top: 20px; }

.detail-page { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 5px; color: #1a1a1a; }
.loc-text { color: #666; font-size: 1.1rem; margin-bottom: 20px; }

.big-photo { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.content-wrapper { display: flex; gap: 50px; margin-top: 40px; }
.left-col { flex: 2; }
.right-col { flex: 1; }

.features-grid { display: flex; gap: 20px; margin-bottom: 30px; background: #fff; padding: 20px; border-radius: 12px; }
.feature { font-weight: bold; color: #333; }

.full-desc { line-height: 1.8; color: #444; font-size: 1.1rem; }

.sticky-card { position: sticky; top: 20px; background: #fff; padding: 30px; border-radius: 20px; border: 1px solid #eee; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.price-label { color: #888; margin: 0; }
.main-price { font-size: 2rem; font-weight: bold; color: #27ae60; margin: 5px 0 20px; }
.book-btn { width: 100%; padding: 15px; background: #1a1a1a; color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.property-header { margin: 30px 0; }
.hero-image-container {
    width: 100%;
    height: 500px; /* Фиксированная высота */
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 40px;
    background-color: #f4f4f4;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполнит блок, не растягиваясь */
    object-position: center; /* Центрирование */
}

.property-details-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }

.specs-bar {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
.spec-item { display: flex; flex-direction: column; font-size: 1.1rem; }
.spec-item strong { font-size: 1.5rem; color: #1a1a1a; }

.full-text { line-height: 1.7; color: #444; font-size: 1.1rem; }

.price-card {
    position: sticky;
    top: 20px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}
.price-value { font-size: 2.5rem; color: #27ae60; margin: 10px 0 30px; }
.contact-button {
    width: 100%;
    padding: 18px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Контейнер всей галереи */

.main-photo {
    height: 100%; /* Занимает всю высоту контейнера (500px) */
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.side-photos {
    display: grid;
    grid-template-rows: 1fr 1fr;    /* Две равные строки */
    gap: 15px;                      /* Тот же отступ, что и в основном контейнере */
    height: 100%;                   /* Растягиваем на все 500px */
}

.side-photos a {
    display: block;
    height: 100%;                   /* Ссылка занимает всю ячейку сетки */
}

.side-img, .img-placeholder {
    width: 100%;
    height: 100%;                   /* Фото заполняет свою ячейку */
    object-fit: cover;
}

/* Скругляем углы только с правой стороны */
.side-photos a:first-child img {
    border-radius: 0 20px 0 0;
}

.side-photos a:last-child img,
.side-photos .img-placeholder {
    border-radius: 0 0 20px 0;
}


/* Стили для Lightbox (всплывающего окна) */
.lb-outerContainer { border-radius: 15px !important; }

.swiper.mySwiper {
    width: 100% !important;
    margin-top: 60px !important; /* Сделаем 60px, чтобы точно был зазор */
    margin-bottom: 40px !important;
    clear: both !important;
    display: block !important; /* Гарантируем, что это блочный элемент */
}

.swiper-slide img {
    width: 100%;
    height: 200px; /* Одинаковая высота для всех маленьких фото в ленте */
    object-fit: cover;
    border-radius: 12px;
}

/* Подключаем шрифт */
body {
    font-family: 'Montserrat', sans-serif;
    /* Улучшаем сглаживание шрифтов */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Для заголовков можно задать чуть больше жирности */
h1, h2, h3 {
    font-weight: 700;
    color: #333;
}

/* Для обычного текста */
p {
    font-weight: 400;
    line-height: 1.6;
}

/* Иконки */
.specs-bar {
    display: flex !important;
    flex-direction: row !important; /* Гарантируем горизонтальный ряд */
    gap: 40px !important;
    margin: 30px 0;
    flex-wrap: wrap;
}

.spec-item {
    display: flex !important;
    flex-direction: row !important; /* Иконка слева, текст справа */
    align-items: center !important;  /* Центровка иконки по высоте текста */
    gap: 12px !important;
}

.spec-item i {
    font-size: 26px !important;
    color: #007bff;
    width: auto !important; /* Убираем фиксированную ширину, если она мешает */
}

.spec-text {
    display: flex !important;
    flex-direction: column !important; /* Цифра строго над текстом */
    align-items: flex-start !important; /* Выравнивание текста по левому краю */
    line-height: 1.2 !important;
}

.spec-text strong {
    font-size: 18px !important;
    display: block !important;
    margin: 0 !important;
}

.spec-text span {
    font-size: 13px !important;
    display: block !important;
    color: #666;
    margin: 0 !important;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 8px;           /* Отступ между иконкой и адресом */
    color: #636e72;      /* Спокойный серый цвет */
    font-size: 16px;
    margin-top: 10px;
    font-weight: 400;
}

.location-tag i {
    color: #ff7675;      /* Нежно-красный или коралловый для акцента на карте */
    font-size: 18px;
}

@media (max-width: 768px) {
    /* 1. Галерея: вместо сетки 1+2 делаем одну большую колонку */
    .gallery-container {
        grid-template-columns: 1fr !important; /* Одна колонка */
        height: auto !important;               /* Высота зависит от контента */
        gap: 10px;
    }

    .main-photo {
        height: 300px; /* Фиксируем высоту главного фото на мобильном */
    }

    /* Скрываем маленькие фото из сетки, чтобы не забивать экран (они всё равно есть в слайдере) */
    /* Либо оставляем их в ряд, если хочешь */
    .side-photos {
        display: none !important;
    }



    /* 3. Характеристики: разрешаем им переноситься, если не влезают */
    .specs-bar {
        gap: 20px !important;
        justify-content: space-between;
    }

    .spec-item {
        flex: 1 1 40%; /* Занимают примерно пол-экрана каждый */
    }

    /* 4. Заголовок: уменьшаем шрифты */
    h1 {
        font-size: 24px !important;
    }
}

@media (max-width: 768px) {
    /* Главный контейнер деталей */
    .property-details-layout {
        display: flex !important;
        flex-direction: column !important; /* СТРОГО друг под другом */
        gap: 20px !important;
        width: 100% !important;
    }

    /* Блок с ценой и кнопкой (Сайдбар) */
    .sidebar-column {
        width: 100% !important;
        order: -1 !important; /* Выталкиваем цену наверх над текстом */
        margin-bottom: 10px;
    }

    /* Блок с описанием и иконками */
    .info-column {
        width: 100% !important;
        order: 1 !important; /* Описание идет вторым */
        margin: 15px;
    }

    /* Растягиваем карточку цены на всю ширину */
    .price-card {
        width: 100% !important;
        box-sizing: border-box; /* Чтобы паддинги не раздували ширину */
    }
}

@media (max-width: 768px) {
    /* Добавляем отступы для всей колонки с описанием */
    .info-column {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important; /* Чтобы отступы не увеличивали ширину экрана */
    }

    /* Дополнительно: выравниваем иконки характеристик, если они тоже прижаты */
    .specs-bar {
        padding-left: 0 !important; /* Убираем лишние зазоры, если есть */
        margin-bottom: 25px !important;
    }

    .full-text {
        font-size: 15px !important; /* Чуть уменьшим шрифт для лучшей читаемости на мобилках */
        line-height: 1.6 !important;
    }
}

@media (max-width: 768px) {
    /* Делаем главное фото полностью скругленным */
    .main-photo img {
        border-radius: 20px !important;
    }

    /* Если side-photos скрыты, убедимся, что контейнер не мешает */
    .gallery-container {
        gap: 0;
    }
}

/* =========================================
   НОВЫЙ ЕДИНЫЙ СТИЛЬ КНОПОК И ПОЛЕЙ
   ========================================= */

/* 1. Глобальный сброс для всех кнопок-ссылок */
a.btn {
    display: inline-flex !important;
    width: auto !important;
    background: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    padding: 0 !important; /* Убираем старые паддинги */
}

/* 2. Поля ввода (Инпуты) по всему сайту */
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea {
    width: 100% !important;
    height: 55px !important;
    padding: 0 20px !important;
    background-color: #f9f9f9 !important;
    border: 2px solid transparent !important;
    border-radius: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    color: #2d3436 !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
    outline: none !important;
}

input:focus, textarea:focus {
    background-color: #fff !important;
    border-color: #007bff !important;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* 1. Настраиваем саму карточку, чтобы она растягивалась на всю высоту сетки */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* 1. Главный контейнер контента */
.card-content {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    /* Убираем жесткую высоту, даем карточке расти до нужного размера */
    flex-grow: 1 !important;
}

/* 2. Заголовок — ограничиваем только МАКСИМАЛЬНУЮ высоту */
.card-content h3 {
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    min-height: 46px !important; /* Оставляем место под 2 строки, чтобы цена не прыгала */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Обрезает текст после 2-й строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. Цена и локация — плотнее друг к другу */
.price {
    margin-bottom: 4px !important;
    color: #27ae60 !important;
    font-weight: bold !important;
}

.location-tag {
    margin-bottom: 12px !important;
    font-size: 14px !important;
}

/* 4. Описание — компактное, с ограничением строк */
.card-content p:not(.price) {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Показывает максимум 3 строки описания */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5. Кнопка — «прилипает» к низу, но не растягивается */
.property-card .btn {
    all: unset !important;
    display: inline-flex !important;
    width: max-content !important;
    padding: 10px 22px !important;
    background-color: #2d3436 !important;
    color: #ffffff !important;
    border-radius: 8px !important;

    /* МАГИЯ: этот маржин съест всё лишнее место сверху и прижмет кнопку вниз */
    margin-top: auto !important;

    /* Твой отступ влево для выравнивания по тексту */
    margin-left: -18px !important;

    /* Сдвигаем чуть выше от края карточки */
    margin-bottom: 5px !important;

    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.property-card .btn:hover {
    background-color: #000 !important;
    transform: translateY(-2px) !important;
}

/* 4. Большая кнопка (В админке и сайдбаре) */
.contact-button, .admin-form button {
    width: 100% !important;
    height: 55px !important;
    background: #2d3436 !important;
    color: #fff !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.contact-button:hover, .admin-form button:hover {
    background-color: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Эффект "+XX фото" */
.last-photo-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.more-photos-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Затемнение */
    backdrop-filter: blur(4px);    /* Тот самый блюр */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    pointer-events: none; /* Чтобы клик пролетал сквозь текст на ссылку */
    border-radius: 0 0 20px 0;
}


.gallery-container {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    /* УДАЛЯЕМ height: 500px; */
    height: auto !important; /* Высота будет зависеть от фото */
    margin-bottom: 30px !important;;
}

/* Чтобы фото всегда были красивыми и не "схлопывались" */
.main-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3; /* Сохраняет пропорции как на твоих скринах */
    object-fit: cover;
    border-radius: 20px 0 0 20px;
    display: block;
}

.side-img {
    width: 100%;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* По умолчанию скрываем счетчик на десктопе */
.mobile-photo-counter {
    display: none;
}

@media (max-width: 768px) {
    .main-photo {
        position: relative; /* Чтобы счетчик позиционировался внутри фото */
    }

    .mobile-photo-counter {
        display: flex !important;
        align-items: center;
        gap: 8px;
        position: absolute;
        bottom: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.9);
        padding: 8px 15px;
        border-radius: 10px;
        color: #333;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 5;
    }
}

/* Кнопка "Посмотреть все" */
.view-all-container {
    text-align: center;
    margin: 40px 0 80px;
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Секция обратной связи */
.request-section {
    margin-bottom: 80px;
}

.request-box {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 1px dashed #ccc;
}

.request-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.request-box p {
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    background: #27ae60;
    color: #fff;
    padding: 15px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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


        /* 1. Центрирующий контейнер */
    .container {
    max-width: 1200px; /* Ширина контента на десктопе */
    margin: 0 auto;    /* Центрирование */
    padding: 0 20px;   /* Отступы от краев на мобильных */
}

.hero-text {
    margin: 40px 0 20px;
}

.hero-text h2 { font-size: 32px; margin-bottom: 5px; }
.hero-text p { color: #666; }

/* 2. Сетка объектов */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопе */
    gap: 30px;
    margin-bottom: 60px;
}

/* 3. Адаптивность сетки */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 20px;
    }

    .hero-text h2 { font-size: 26px; }
}

/* Стили карточки для аккуратного вида */
.property-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.property-card:hover { transform: translateY(-5px); }

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.btn-more {
    display: inline-block;
    margin-top: 25px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-more:hover { background: #000; }

        /* 1. Хедер: начальное состояние поверх видео */
    .main-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 2000;
      background: transparent; /* Прозрачный */
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.4s ease;
      backdrop-filter: none;
  }

/* Состояние при скролле (добавляется через JS) */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

/* Цвет ссылок: белый на видео, темный при скролле */
.main-header:not(.scrolled) .nav-menu a { color: #ffffff; }
.main-header.scrolled .nav-menu a { color: #1a1a1a; }

/* 2. Стили Hero Section */
.hero-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемнение для читаемости текста */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Кнопка как на скрине */
.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #fff;
    color: #000;
}

.hero-badge img {
    margin-top: 30px;
    width: 120px;
}

        /* Блок "О нас" */
    .about-section {
      padding: 100px 0;
      background: #fff;
  }

.about-grid {
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    gap: 60px;
}

/* Стили картинки */
.about-image {
    flex: 1; /* Занимает 1 часть из 3 */
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: 600px; /* Делаем высокую картинку как на скрине */
    object-fit: cover;
    border-radius: 10px; /* Легкое скругление */
    box-shadow: 20px 20px 0px #f8f9fa; /* Декоративная тень сзади */
}

/* Стили текста */
.about-content {
    flex: 2; /* Текст занимает больше места */
}

.about-logo {
    width: 220px;
    margin-bottom: 25px;
    display: block;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

/* Красная полоска под заголовком */
.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ce2b37; /* Цвет итальянского флага */
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.welcome-home {
    font-size: 18px !important;
    color: #1a1a1a !important;
    margin-top: 30px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column; /* На планшетах картинка сверху */
        text-align: center;
        gap: 40px;
    }

    .about-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image {
        max-width: 100%;
        width: 100%;
    }

    .about-image img {
        height: 400px;
    }

    .about-logo {
        margin: 0 auto 25px;
    }
}

/* Секция этапов */
.steps-section {
    background-color: #007e3f;
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки в ряд */
    gap: 25px;
}

/* Карточка этапа */
.step-card {
    background: #f4f4f4; /* Светло-серый фон карточки */
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.step-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr); /* 2х2 на планшетах */
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
    }

    .steps-section {
        padding: 50px 0;
    }
}

.stats-section {
    background-color: #e02128;
    padding: 100px 0 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon img {
    width: 70px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.stat-desc {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-section { padding: 60px 0; }
}

.testimonials-section {
    padding: 80px 0;
    background: #fdfdfd;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.testimonials-slider {
    display: flex;
    align-items: center;
    position: relative;
    gap: 20px;
}

.slider-overflow {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.testimonial-card {
    min-width: calc(33.333% - 20px); /* 3 карточки в ряд */
    display: flex;
    flex-direction: column;
}

/* Облако с текстом */
.review-bubble {
    background: #f1f4f8;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    margin-bottom: 25px;
}

/* Тот самый "хвостик" */
.review-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #f1f4f8;
}

.stars {
    color: #f1c40f;
    margin-bottom: 15px;
}

.review-bubble p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Автор */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 10px;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
}

.author-info span {
    font-size: 13px;
    color: #888;
}

/* Кнопки */
.slider-btn {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

/* Адаптивность */
@media (max-width: 992px) {
    .testimonial-card { min-width: calc(50% - 15px); } /* 2 карточки */
}
@media (max-width: 600px) {
    .testimonial-card { min-width: 100%; } /* 1 карточка */
}

.faq-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Картинка слева, текст справа */
    gap: 50px;
    align-items: start;
}

.faq-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.faq-accordion .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Стиль открытого вопроса */
.faq-item.active {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: #333;
}

.faq-item.active .faq-question {
    color: #d32f2f; /* Красный цвет из твоего логотипа */
}

/* Иконка-стрелочка */
.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease;
}

/* Горизонтальная линия */
.faq-icon::before {
    width: 12px; height: 2px; top: 9px; left: 4px;
}
/* Вертикальная линия (делает плюс) */
.faq-icon::after {
    width: 2px; height: 12px; top: 4px; left: 9px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0; /* При открытии плюс превращается в минус */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 25px;
    transition: max-height 1s ease-in-out;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .faq-wrapper { grid-template-columns: 1fr; }
    .faq-image { display: none; } /* Скрываем карту на мобилках для экономии места */
}

.faq-container {
    max-height: 700px; /* Ограничиваем высоту, чтобы блок не был бесконечным */
    overflow-y: auto;  /* Добавляем внутренний скролл, если вопросов слишком много */
    padding-right: 15px;
}

/* Стилизация скроллбара для красоты */
.faq-container::-webkit-scrollbar { width: 4px; }
.faq-container::-webkit-scrollbar-thumb { background: #d32f2f; border-radius: 10px; }

.faq-item {
    border: 1px solid #eee;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: #d32f2f33;
}

/* Общие настройки шрифта для фильтра */
.catalog-filter,
.filter-select,
.filter-submit,
.price-inputs {
    font-family: 'Montserrat', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

.filter-section {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.catalog-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr auto;
    gap: 30px;
    align-items: flex-end;
}

/* Стилизация выпадающих списков */
.filter-group label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #2d3436;
    outline: none;
    cursor: pointer;
    appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,<svg width="10" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l5 5 5-5z" fill="%23888"/></svg>') no-repeat right 15px center;
    background-color: #fff;
    transition: border-color 0.3s;
}

.filter-select:focus {
    border-color: #27ae60;
}

/* --- СТИЛИЗАЦИЯ ЗЕЛЕНОГО ПОЛЗУНКА (noUiSlider) --- */

/* Цвет соединительной линии (активная зона) */
.noUi-connect {
    background: #27ae60 !important;
}

/* Стили ручек (кругляшков) */
.noUi-horizontal .noUi-handle {
    width: 20px !important;
    height: 20px !important;
    right: -10px !important;
    top: -7px !important;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #27ae60;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Убираем стандартные полоски внутри ручек noUiSlider */
.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
}

/* Высота самой полоски */
.noUi-target {
    height: 6px !important;
    border: none !important;
    background: #e0e0e0;
    box-shadow: none !important;
}

/* Кнопка */
.filter-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 13px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-submit:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Адаптация под мобильные */
@media (max-width: 992px) {
    .catalog-filter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .catalog-filter { grid-template-columns: 1fr; gap: 20px; }
    .filter-submit { width: 100%; }
}