/* ==========================================================
   ФАЙЛ СТИЛЕЙ ДЛЯ САЙТА BELFOUR GUTTERS
   ==========================================================
   Обновлённая версия (урок 2):
   + стили для hero с реальным фото (hero-with-image / hero-overlay)
   + стили для галереи работ (gallery)
   + стили для зон обслуживания (areas)
   + стили для отзывов (reviews)
   + стили для FAQ-аккордеона (faq / details / summary)

   Запомни простую формулу:
   - HTML = ЧТО на странице (контент, структура)
   - CSS  = КАК это выглядит (цвета, шрифты, отступы, размеры)
   - JS   = ЧТО делает (анимация, формы, интерактив) — добавим позже
========================================================== */


/* ----------------------------------------------------------
   ГЛОБАЛЬНЫЙ СБРОС
---------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   ОСНОВНЫЕ НАСТРОЙКИ ТЕЛА СТРАНИЦЫ
---------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #ffffff;
}

/* Чтобы якорные ссылки (#services, #gallery и т.д.) не прятались под sticky-шапкой */
html {
    scroll-behavior: smooth;   /* Плавная прокрутка при клике по меню */
    scroll-padding-top: 90px;  /* Отступ сверху при скролле к якорю */
}


/* ----------------------------------------------------------
   КОНТЕЙНЕР
---------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================
   ШАПКА САЙТА
   ==========================================================
   Шапка снова ТЁМНАЯ — строго и премиально. Логотип теперь
   в PNG с прозрачным фоном, поэтому золото красиво "парит"
   на чёрном без белой подложки вокруг.
========================================================== */
.site-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Обёртка логотипа — ссылка на главную */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
    line-height: 0;             /* Убираем лишний воздух вокруг картинки */
}

.logo:hover {
    transform: translateY(-1px);
}

/* Картинка логотипа — крупная, не зажатая */
.logo-img {
    height: 62px;               /* Заметный, но не доминирующий */
    width: auto;
    display: block;
}

/* На мобильных логотип чуть компактнее */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

/* Пункты меню на тёмной шапке — белые */
nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

/* Золотая подчёркивающая линия при наведении */
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: #d4a017;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s;
}

nav a:hover {
    color: #d4a017;
}

nav a:hover::after {
    transform: scaleX(1);
}


/* ==========================================================
   КНОПКИ (универсальные стили)
========================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #d4a017;
    color: #1a1a1a;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a1a1a;
}

.btn-call {
    background: #d4a017;
    color: #1a1a1a;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-primary-large {
    background: #d4a017;
    color: #1a1a1a;
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 6px;
}

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


/* ==========================================================
   ГЕРОЙ-СЕКЦИЯ
   ==========================================================
   Базовый .hero — градиент (работает даже если фото нет).
   .hero-with-image + .hero-overlay — накладываем фото и тёмный
   слой поверх, чтобы белый текст остался читаемым.
========================================================== */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;       /* Чтобы оверлей мог позиционироваться абсолютно внутри */
    overflow: hidden;         /* Обрезаем всё, что выйдет за края */
}

/*
  Герой с реальным фото.
  background-image подтянет файл images/hero-bg.jpg.
  Если файла нет — покажется градиент из правила .hero выше.
  background-size: cover — фото покроет всю площадь.
  background-position: center — центрируем самое важное.
*/
.hero-with-image {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)),   /* Тёмный слой поверх фото */
        url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 140px 0 160px;    /* Чуть больше воздуха для драматичного фото */
}

/* Полупрозрачный слой — подстраховка (если браузер не поддержит gradient over image) */
.hero-overlay {
    position: absolute;
    inset: 0;                  /* Сокращение для top:0;right:0;bottom:0;left:0 */
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;      /* Не блокирует клики по содержимому */
}

/* Всё содержимое героя должно быть ПОВЕРХ оверлея */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);  /* Тень за текстом для читаемости на фото */
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================
   УНИВЕРСАЛЬНЫЙ ПОДЗАГОЛОВОК СЕКЦИИ
   ==========================================================
   .section-subtitle стоит под <h2> почти в каждой новой секции.
   Серый, по центру, с ограничением ширины для читаемости.
========================================================== */
.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 17px;
    max-width: 700px;
    margin: -30px auto 50px;  /* Отрицательный верхний отступ, чтобы подобраться ближе к h2 */
}


/* ==========================================================
   СЕКЦИЯ УСЛУГ
========================================================== */
.services {
    padding: 80px 0;
    background: #f7f7f5;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    color: #d4a017;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
    font-size: 16px;
}


/* ==========================================================
   ЛОКАЛЬНОЕ ВВЕДЕНИЕ (на городских страницах)
   ==========================================================
   Белый блок с текстом о конкретном городе — критичен для SEO.
========================================================== */
.local-intro {
    padding: 70px 0;
    background: #ffffff;
}

.local-intro h2 {
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.local-intro p {
    max-width: 800px;
    margin: 0 auto 18px;
    color: #444;
    font-size: 17px;
    line-height: 1.75;
}


/* ==========================================================
   СЕКЦИЯ "КАК МЫ РАБОТАЕМ"
   ==========================================================
   Тёмный блок с 4 шагами. Тёмный фон подчёркивает золотые
   номера шагов и создаёт визуальный контраст между секциями.
========================================================== */
.process {
    padding: 80px 0;
    background: #1a1a1a;
    color: white;
}

.process h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.process .section-subtitle {
    color: #c0c0c0;             /* Светло-серый на тёмном фоне */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Большая золотая цифра шага */
.process-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d4a017;
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.3);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #d4a017;
}

.process-step p {
    color: #c0c0c0;
    font-size: 15px;
    line-height: 1.6;
}


/* ==========================================================
   ГАЛЕРЕЯ РАБОТ
   ==========================================================
   Сетка из твоих реальных фото. Каждая картинка — одинаковая
   высота (aspect-ratio), чтобы галерея выглядела аккуратно.
========================================================== */
.gallery {
    padding: 80px 0;
    background: white;
}

.gallery h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

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

/* Одна карточка галереи */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #eeeeee;       /* Серый плейсхолдер, пока фото не загрузилось */
    aspect-ratio: 4 / 3;        /* Все карточки одного соотношения сторон */
}

/* Само фото заполняет карточку */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Обрезает лишнее, заполняет полностью */
    display: block;
    transition: transform 0.4s ease;
}

/* Эффект увеличения при наведении */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Подпись под фото — плавает внизу карточки */
.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 15px;
    font-size: 15px;
    font-weight: 600;
}


/* ==========================================================
   ЗОНЫ ОБСЛУЖИВАНИЯ (Service Areas)
========================================================== */
.areas {
    padding: 80px 0;
    background: #f7f7f5;
}

.areas h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Группа городов (одна колонка) */
.area-group {
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    border-top: 4px solid #d4a017;   /* Золотая полоса сверху — фирменный акцент */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.area-group h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 18px;
}

.area-group ul {
    list-style: none;
}

.area-group li {
    padding: 8px 0;
    color: #444;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;              /* Место для маркера */
}

/* Последний элемент списка — без нижней рамки */
.area-group li:last-child {
    border-bottom: none;
}

/* Золотая галочка вместо стандартной точки списка */
.area-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4a017;
    font-weight: 700;
}

/* Если у города есть своя страница — он становится ссылкой */
.area-group li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.area-group li a:hover {
    color: #d4a017;
}


/* ==========================================================
   СЕКЦИЯ ДОВЕРИЯ
========================================================== */
.trust {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.trust h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trust-item {
    padding: 20px;
}

.trust-number {
    font-size: 48px;         /* Чуть меньше, чтобы "Top Pro" и "5.0★" влезали красиво */
    font-weight: 800;
    color: #d4a017;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.trust-label {
    font-size: 16px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================
   ОТЗЫВЫ КЛИЕНТОВ
========================================================== */
.reviews {
    padding: 80px 0;
    background: #f7f7f5;
}

.reviews h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Блок с кнопкой-ссылкой "View on Thumbtack" под отзывами */
.reviews-badge {
    text-align: center;
    margin-top: 40px;
}

/* Кнопка-ссылка в стиле фирменного синего Thumbtack */
.btn-thumbtack {
    background: #009fd9;          /* Фирменный синий Thumbtack */
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-thumbtack:hover {
    background: #0088b8;          /* Чуть темнее при наведении */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 217, 0.3);
}

/* Одна карточка отзыва */
.review-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Звёзды рейтинга */
.review-stars {
    color: #d4a017;
    font-size: 20px;
    letter-spacing: 2px;
}

/* Текст отзыва */
.review-text {
    color: #333;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;                /* Чтобы подпись всегда была внизу карточки */
}

/* Подпись автора */
.review-author {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-style: normal;
}


/* ==========================================================
   FAQ (Frequently Asked Questions)
   ==========================================================
   Секрет: <details> и <summary> — нативные HTML-теги.
   Без единой строчки JavaScript получаем рабочий аккордеон.
========================================================== */
.faq {
    padding: 80px 0;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

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

/* Одна карточка вопрос-ответ */
.faq-item {
    background: #f7f7f5;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: background 0.2s;
}

/* summary — это сам заголовок, по которому кликают */
.faq-item summary {
    padding: 20px 55px 20px 25px;  /* Место справа под стрелочку */
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    list-style: none;              /* Убираем стандартный треугольник */
    position: relative;
    color: #1a1a1a;
    transition: color 0.2s;
}

/* Убираем маркер у summary в WebKit-браузерах (Safari, Chrome) */
.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Наша собственная стрелочка справа */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #d4a017;
    font-weight: 400;
    transition: transform 0.2s;
}

/* Когда FAQ-карточка открыта — плюс превращается в минус (повёрнут на 45°) */
.faq-item[open] summary::after {
    content: '×';
    font-size: 28px;
}

.faq-item[open] {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.faq-item summary:hover {
    color: #d4a017;
}

/* Текст ответа */
.faq-item p {
    padding: 0 25px 22px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   CTA СЕКЦИЯ (призыв к действию)
========================================================== */
.cta {
    background: #1a1a1a;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}


/* ==========================================================
   ПОДВАЛ
========================================================== */
.site-footer {
    background: #0d0d0d;
    color: #999;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer a {
    color: #d4a017;
    text-decoration: none;
}

.site-footer p {
    margin-bottom: 8px;
}


/* ==========================================================
   АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ
   ==========================================================
   Всё, что внутри @media (max-width: 768px), применяется
   ТОЛЬКО когда ширина экрана ≤ 768px (телефон/маленький планшет).
========================================================== */
@media (max-width: 768px) {

    /* Шапка на телефонах — всё в столбик */
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Герой компактнее */
    .hero {
        padding: 60px 0 80px;
    }

    .hero-with-image {
        padding: 90px 0 100px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    /* Универсальный размер заголовков секций */
    .services h2,
    .trust h2,
    .cta h2,
    .gallery h2,
    .areas h2,
    .reviews h2,
    .faq h2,
    .process h2 {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin: -20px auto 35px;
    }

    .trust-number {
        font-size: 42px;
    }

    /* Галерея — две колонки на телефоне */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item figcaption {
        font-size: 13px;
        padding: 20px 12px 10px;
    }

    /* Отзывы — одна колонка */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ — меньше внутренних отступов */
    .faq-item summary {
        font-size: 16px;
        padding: 16px 50px 16px 20px;
    }

    .faq-item p {
        padding: 0 20px 18px;
        font-size: 15px;
    }

    /* Секции на телефоне — меньше вертикальные отступы */
    .services,
    .process,
    .gallery,
    .areas,
    .trust,
    .reviews,
    .faq,
    .cta {
        padding: 50px 0;
    }
}


/* ==========================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (старые iPhone и узкие телефоны)
========================================================== */
@media (max-width: 420px) {
    .hero h1 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;   /* Одна колонка на очень узких */
    }
}


/* ==========================================================
   ФОРМА КОНТАКТА
   ==========================================================
   Живёт внутри секции .cta — расширяет её.
   Форма разбита на строки по 2 поля; на мобиле схлопывается
   в одну колонку.
========================================================== */
.contact-form {
    max-width: 720px;
    margin: 32px auto 0;
    background: #ffffff;
    padding: 36px;
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field label .req {
    color: #c64747;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #c59820;  /* золото */
    background: #ffffff;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: #c59820;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.form-submit:hover {
    background: #b78918;
}

.form-submit:active {
    transform: translateY(1px);
}

.form-note {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 14px;
}

/* Прячем honeypot-поле для спам-ботов */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   КАЛЬКУЛЯТОР ЦЕНЫ — estimate.html
   ==========================================================
   Пошаговый интерфейс: выбор сторон дома, параметры, результат.
========================================================== */
.estimate-intro {
    background: #1a1a1a;
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.estimate-intro h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.estimate-intro p {
    font-size: 19px;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.9;
}

.estimate-tool {
    padding: 60px 0;
    background: #f7f5f0;
}

.estimate-step {
    background: #ffffff;
    padding: 30px 36px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.estimate-step h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.estimate-step .step-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

.step-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #c59820;
    color: #1a1a1a;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 10px;
    vertical-align: middle;
    font-size: 14px;
}

/* Визуальный выбор сторон дома — вид сверху */
.house-picker {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    grid-template-rows: 60px 1fr 60px;
    gap: 0;
}

.house-side {
    border: 2.5px dashed #bbb;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s;
    user-select: none;
    padding: 4px;
    text-align: center;
}

.house-side .side-name {
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Футы на стороне — показываем только когда сторона выбрана */
.house-side .side-feet {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: rgba(26, 26, 26, 0.75);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    text-transform: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.house-side.active .side-feet {
    opacity: 1;
}

.house-side:hover {
    background: #ece9dd;
    color: #1a1a1a;
}

.house-side.active {
    background: #c59820;
    color: #1a1a1a;
    border-color: #c59820;
    border-style: solid;
}

.house-side.top    { grid-column: 2; grid-row: 1; }
.house-side.right  { grid-column: 3; grid-row: 2; }
.house-side.bottom { grid-column: 2; grid-row: 3; }
.house-side.left   { grid-column: 1; grid-row: 2; }

.house-center {
    grid-column: 2;
    grid-row: 2;
    background: #e8dec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6a5a1e;
    text-align: center;
    font-weight: 600;
    border: 2px solid #c59820;
}

/* Опции в калькуляторе — радио/чекбоксы в виде карточек */
.option-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    background: #fafafa;
}

.option-card:hover {
    border-color: #c59820;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card.selected {
    border-color: #c59820;
    background: rgba(197, 152, 32, 0.1);
}

.option-card .opt-title {
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
}

.option-card .opt-sub {
    font-size: 12px;
    color: #666;
}

.option-card .opt-price {
    font-size: 12px;
    color: #c59820;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.number-input {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 180px;
    margin-top: 10px;
}

.number-input button {
    width: 36px;
    height: 36px;
    border: 1.5px solid #c59820;
    background: #ffffff;
    color: #c59820;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

.number-input input {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
}

/* Результат расчёта — тёмная карточка с большой ценой.
   ВАЖНО: НЕ делаем position: sticky — иначе панель перекрывает
   блоки выше (материалы, размер, гарды). Панель показывается
   естественно в конце калькулятора. */
.estimate-result {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
    scroll-margin-top: 100px;
}

.estimate-result .result-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.estimate-result .price-range {
    font-size: 44px;
    font-weight: 800;
    color: #c59820;
    margin: 12px 0;
    line-height: 1.1;
}

.estimate-result .price-details {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 24px;
}

.estimate-result .price-details span {
    color: #fff;
    font-weight: 600;
}

.estimate-result .result-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.estimate-disclaimer {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .estimate-intro h1 { font-size: 30px; }
    .estimate-step { padding: 20px; }
    .estimate-result .price-range { font-size: 34px; }
    .house-picker { max-width: 280px; }
}

/* ==========================================================
   Поля ввода футов по каждой стороне дома (Step 1)
   ========================================================== */
.side-inputs {
    margin-top: 22px;
    padding: 16px 20px;
    background: #faf7f0;
    border-radius: 8px;
    border-left: 3px solid #c59820;
}

.side-inputs-empty {
    text-align: center;
    margin: 0;
    color: #888;
    font-style: italic;
    font-size: 14px;
}

.side-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ebe3c9;
    gap: 12px;
}

.side-input-row:first-child { padding-top: 0; }
.side-input-row:last-child  { padding-bottom: 0; border-bottom: none; }

.side-input-row > label {
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    font-size: 15px;
}

.feet-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feet-input-group button {
    width: 34px;
    height: 34px;
    border: 1px solid #c59820;
    background: #fff;
    color: #c59820;
    font-size: 20px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
}

.feet-input-group button:hover {
    background: #c59820;
    color: #fff;
}

.feet-input-group input[type="number"] {
    width: 70px;
    height: 34px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    -moz-appearance: textfield;
}

.feet-input-group input[type="number"]::-webkit-outer-spin-button,
.feet-input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.feet-input-group .ft-label {
    font-size: 14px;
    color: #777;
    font-weight: 600;
    min-width: 18px;
}

/* Подсказка про L-образные дома */
.side-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff8e1;
    border-radius: 6px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #5a4b1f;
    border-left: 3px solid #c59820;
}

.side-hint strong {
    color: #1a1a1a;
}

/* Чекбокс «не знаю — используй оценку 35ft» */
.side-mode-toggle {
    margin-top: 14px;
    font-size: 14px;
    color: #555;
}

.side-mode-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.side-mode-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c59820;
    cursor: pointer;
}

.side-mode-toggle strong { color: #1a1a1a; }

/* ==========================================================
   Downspouts block — живёт внутри Step 1, под сторонами
   ========================================================== */
.downspouts-block {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f5f1e5;
    border-radius: 8px;
    border-left: 3px solid #1a1a1a;
}

.downspouts-block .downspouts-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

/* ==========================================================
   Профили жёлобов (Step 3) — карточки с чертежами SVG
   ========================================================== */
.profile-group {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.option-card.profile-card {
    padding: 20px 18px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Фото профиля жёлоба — реальные снимки K-Style и Fascia */
.option-card.profile-card .profile-img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e5e0d0;
    transition: transform 0.15s, border-color 0.15s;
    background: #f7f5ef;
}

.option-card.profile-card:hover .profile-img {
    transform: scale(1.02);
}

.option-card.profile-card.selected .profile-img {
    border-color: #c59820;
    box-shadow: 0 0 0 2px rgba(197, 152, 32, 0.2);
}

.option-card.profile-card .opt-title {
    font-size: 17px;
    font-weight: 700;
}

.option-card.profile-card .opt-sub {
    font-size: 13.5px;
    color: #666;
}

.option-card.profile-card .opt-price {
    margin-top: 4px;
    font-weight: 700;
    color: #c59820;
}

/* Ссылка «View sample →» внутри option-card для гардов */
.option-card .sample-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #c59820;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(197, 152, 32, 0.5);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.option-card .sample-link:hover {
    color: #a17e18;
    border-bottom-color: #a17e18;
}

/* WhatsApp-кнопка в блоке результата */
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s, transform 0.15s;
}
.btn-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-1px);
    color: #fff;
}

/* Форма-заявка на estimate.html — встроенная, с данными калькулятора */
.estimate-form-block {
    margin-top: 40px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #eae3ce;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}
.estimate-form-block > h3 {
    margin-top: 0;
    font-size: 24px;
    color: #1a1a1a;
}
.estimate-form-block > p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.55;
}

/* ==========================================================
   NEARBY CITIES — блок внутренних ссылок на городских страницах
   ========================================================== */
.nearby-cities {
    padding: 70px 0;
    background: #faf9f6;
    border-top: 1px solid #eceae4;
}
.nearby-cities h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
    color: #1a1a1a;
}
.nearby-cities .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 36px;
}
.nearby-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.nearby-list li {
    margin: 0;
}
.nearby-list a {
    display: inline-block;
    padding: 12px 22px;
    background: #fff;
    border: 1px solid #e3e0d8;
    border-radius: 24px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
}
.nearby-list a:hover {
    background: #d4a017;
    border-color: #d4a017;
    color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .nearby-cities {
        padding: 50px 0;
    }
    .nearby-cities h2 {
        font-size: 26px;
    }
    .nearby-list a {
        font-size: 14px;
        padding: 10px 18px;
    }
}

