/* Auto-generated bundle from css/style.css. Do not edit. */

/* === base/_variables.css === */
/* Файл: css/base/_variables.css                                  */
/* Описание: Переменные для цветов, шрифтов, отступов и т.д.      */
/* ================================================================ */
:root {
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-secondary: #2c3e50;
    --color-text: #333;
    --color-text-light: #7f8c8d;
    --color-background: #fff;
    --color-border: #e9ecef;

    --font-family-base: 'Roboto', sans-serif;
    --container-width: 1280px;
}
/* === base/_reset.css === */
/* ================================================================ */
/* Файл: css/base/_reset.css                                      */
/* Описание: Базовый сброс стилей для консистентности.            */
/* ================================================================ */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
ul { 
    list-style: none; 
}
a { 
    text-decoration: none; 
    color: inherit; 
}
img { 
    max-width: 100%; 
    height: auto; 
    display: block;
}
button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
address {
    font-style: normal;
}
/* === base/_base.css === */
/* css/base/_base.css */
html, body {
    overflow-x: clip; /* clip вместо hidden — не ломает position: sticky у потомков */
    width: 100%;
    position: relative;
}

body { 
    font-family: var(--font-family-base); 
    line-height: 1.6; 
    color: var(--color-text); 
    background-color: var(--color-background);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Гарантирует, что паддинги не увеличивают ширину */
}

/* Ссылки внутри контента из CKEditor (поле body) — глобальный reset снимает у <a> и color, и underline */
.text-formatted a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.text-formatted a:hover {
    color: var(--color-primary-dark);
}
/* === components/_buttons.css === */
/* ================================================================ */
/* Файл: css/components/_buttons.css                              */
/* ================================================================ */

/* Атрибут [hidden] на .button перебивается специфичностью селектора класса —
   без этого правила скрытые через PHP/JS кнопки квиза продолжают отображаться. */
.button[hidden] { display: none; }

.button {
    display: inline-block;
    background-color: var(--color-primary); 
    color: white; 
    padding: 12px 24px; 
    border-radius: 25px; 
    border: none; 
    cursor: pointer; 
    font-weight: 500; 
    white-space: nowrap; 
    transition: background-color 0.2s; 
    text-align: center;
}
.button:hover { 
    background-color: var(--color-primary-dark); 
}
/* === components/_hero.css === */
/* ================================================================ */
/* Оптимизированная высота hero секции с исправленной поддержкой форматов */
/* ================================================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 200px);
    max-height: 550px;
    background-color: #fdfdfd;
    display: flex;
    align-items: center;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__text-content {
    width: 40%;
    padding: 30px 0;
}

/* ИСПРАВЛЕННАЯ поддержка изображений */
.hero__image-pane {
    position: absolute;
    top: 0;
    right: 0;
    width: 66.66%;
    height: 100%;
    z-index: 1;
}

/* Подход 1: Через picture элемент (рекомендуемый) */
.hero__background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Подход 2: Через CSS с множественными фоллбэками */
.hero__image-pane--css-bg {
    /* Базовый фоллбэк для всех браузеров */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Современная поддержка через CSS custom properties и медиа-запросы */
@supports (background-image: image-set(url(/css/components/test.avif) 1x)) {
    .hero__image-pane--css-bg {
        background-image: image-set(
            url(/css/components/{{ heroImage }}.avif) 1x,
            url(/css/components/{{ heroImage }}.webp) 1x,
            url(/css/components/{{ heroImage }}.jpg) 1x
        );
    }
}

/* Webkit префикс для Safari */
@supports (background-image: -webkit-image-set(url(/css/components/test.avif) 1x)) {
    .hero__image-pane--css-bg {
        background-image: -webkit-image-set(
            url(/css/components/{{ heroImage }}.avif) 1x,
            url(/css/components/{{ heroImage }}.webp) 1x,
            url(/css/components/{{ heroImage }}.jpg) 1x
        );
    }
}

/* Если браузер не поддерживает image-set, используем WebP через медиа-запрос */
@media (min-resolution: 0.001dpcm) {
    .hero__image-pane--css-bg {
        background-image: url(/css/components/{{ heroImage }}.webp);
    }
}

/* ИКОНКА ДЛЯ УСЛУГ */
.hero__icon {
    width: 90px;
    height: 90px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.hero__icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.hero__logo-abbr {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1;
}

.hero__title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-secondary);
    margin-bottom: 18px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.4;
}

.hero__button {
    background-color: var(--color-primary);
    color: white;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero__button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Градиентная маска для читаемости */
.hero__image-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.5) 5%,
        rgba(255, 255, 255, 0.4) 10%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

/* ================= АДАПТИВНОСТЬ ДЛЯ HERO (ВАРИАНТ 1) ================= */

@media (max-width: 992px) {
    .hero {
        min-height: 450px;
        max-height: none;
        padding: 40px 0;
        /* Делаем фон черным для лучшего наложения оверлея */
        background-color: #000 !important; 
    }

    /* Создаем темный оверлей поверх фото */
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55); /* Затемнение на 55% */
        z-index: 2;
    }

    .hero__container {
        z-index: 3; /* Поднимаем текст над оверлеем */
        text-align: center;
    }

    .hero__text-content {
        width: 100%;
        padding: 0;
    }

    /* Растягиваем изображение на весь фон секции */
    .hero__image-pane {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
        opacity: 0.8; /* Немного приглушаем само фото */
    }

    /* Убираем градиентную маску десктопа, она тут не нужна */
    .hero__image-pane::before {
        display: none;
    }

    /* Красим текст в белый для контраста */
    .hero__title {
        font-size: 2.2rem;
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero__subtitle {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.9) !important;
        margin-bottom: 30px;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }

    .hero__logo-abbr {
        color: var(--color-primary); /* Оставляем фирменный цвет или делаем светлее */
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 400px;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
}
/* === components/_header.css === */
/* ================================================================ */
/* Файл: css/components/_header.css (ИСПРАВЛЕН)                   */
/* ================================================================ */
.site-header { 
    background: var(--color-background); 
    z-index: 100;
}
/* Верхний уровень */
.header-top { 
    padding: 15px 0; 
    border-bottom: 1px solid var(--color-border);
}
.header-top .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo img { 
    height: 120px; /* ИСПРАВЛЕНО: Возвращена исходная высота логотипа */
}
.header-controls { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.header-phone { 
    font-weight: 500; 
    color: #495057; 
}
.search-button { 
    border: 1px solid #ced4da; 
    background: none; 
    font-size: 1.2em; 
    cursor: pointer; 
    color: #555; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Нижний уровень (навигация) */
.header-bottom { 
    border-bottom: 1px solid var(--color-border);
    position: relative; /* ИСПРАВЛЕНО: Добавлено для корректного позиционирования мега-меню */
}
.main-nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}
.nav-item > a {
    padding: 15px 5px;
    display: block;
    font-weight: 500;
    color: #495057;
    transition: color 0.2s;
    border-top: 3px solid transparent; /* Изменено на border-top для соответствия старому файлу */
}
.nav-item:hover > a {
    color: var(--color-primary);
}
.nav-item--active > a {
    color: var(--color-primary);
    border-top-color: var(--color-primary); /* Изменено на border-top-color */
}

/* ИСПРАВЛЕНО: Полностью восстановлены стили для мега-меню */
.mega-menu { 
    display: none; 
    position: absolute; 
    top: 100%;
    left: 0; 
    right: 0; 
    width: 100%; 
    background: #2c3e50; 
    color: white; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    z-index: 99;
    padding: 40px 0; 
}
.nav-item.has-megamenu:hover .mega-menu { 
    display: block; 
}
.mega-menu-layout { 
    display: flex; 
    justify-content: space-between; 
    gap: 30px; 
}
.mega-menu-column { flex: 1; }
.mega-menu-column h4 { 
    margin-bottom: 20px; 
    font-weight: 700; 
    color: #fff; 
    text-transform: uppercase; 
    font-size: 0.9em; 
    letter-spacing: 0.5px; 
    border-bottom: 1px solid #465a70; 
    padding-bottom: 10px; 
}
.mega-menu-column ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 0;
    align-items: flex-start;
}
.mega-menu-column a {
    display: block;
    color: #bdc3c7;
    transition: color 0.2s ease-in-out;
}
.mega-menu-column a:hover {
    color: #ffffff;
}

/* Прилипающая шапка */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.site-header.sticky .header-top { 
    display: none;
}

/* ================================================================ */
/* СТИЛИ ДЛЯ КЛИКАБЕЛЬНЫХ ЗАГОЛОВКОВ В МЕНЮ                         */
/* ================================================================ */

/* Ссылка внутри заголовка наследует стили родителя (белый цвет, жирность) */
.mega-menu-column h4 a {
    color: inherit; 
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline-block; /* Чтобы корректно работали отступы */
}

/* При наведении делаем легкий эффект */
.mega-menu-column h4 a:hover {
    opacity: 0.8;
    text-decoration: none; /* Можно добавить underline, если нужно подчеркивание */
    color: var(--color-primary, #3498db); /* Опционально: подсветить синим при наведении */
}

/* ================================================================ */
/* ФИКС ДЛЯ "УБЕГАЮЩЕГО" МЕНЮ                                      */
/* ================================================================ */

/* Создаем невидимый блок над меню, который перекрывает щель */
.mega-menu::before {
    content: "";
    display: block;
    position: absolute;
    /* Поднимаем невидимый блок вверх на 20px от начала меню */
    top: -20px; 
    left: 0;
    width: 100%;
    /* Высота блока должна быть достаточно большой, чтобы закрыть щель */
    height: 20px; 
    background: transparent; /* Делаем его невидимым */
    z-index: 1;
}

/* Адаптивность шапки */
.mobile-menu-toggle { display: none; }

@media (max-width: 992px) {
    .header-bottom { display: none; }
    .mobile-menu-toggle { display: block; font-size: 2.2em; color: #333; line-height: 1;}
    .header-controls .open-modal-btn { 
    display: none; 
}
}
@media (max-width: 768px) {
    .header-phone { display: none; }
    .header-controls { gap: 15px; }
}

/* === components/_footer.css === */
/* ================================================================ */
/* Файл: css/components/_footer.css                               */
/* ================================================================ */
.site-footer {
    background-color: #f8f9fa;
    color: #495057;
    border-top: 1px solid var(--color-border);
    font-size: 0.95em;
    padding: 60px 0 0;
}
.footer-main .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-column {
    flex: 1;
    min-width: 180px;
}
.footer-logo-column {
    flex-basis: 250px;
    flex-grow: 0;
}
.footer-logo-column .logo img {
    height: auto;
    width: 150px;
}
.footer-column h4 {
    color: #212529;
    margin-bottom: 20px;
    font-weight: 700;
}
.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-column a {
    transition: color 0.2s;
}
.footer-column a:hover {
    color: var(--color-primary);
}
.footer-column address {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
    color: #6c757d;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom a:hover {
    color: var(--color-primary);
}
/* === components/_modal.css === */
/* ================================================================ */
/* Файл: css/components/_modal.css                                */
/* ================================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.85);
    z-index: 2000;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}
.modal-window {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 95%;
    margin: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5em;
    line-height: 1;
    color: #aaa;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #333;
}
.modal-window h2 {
    margin-bottom: 10px;
    color: var(--color-secondary);
}
.modal-window .modal-description {
    margin-bottom: 25px;
    color: var(--color-text-light);
    font-size: 0.95em;
}
.modal-form .form-group {
    margin-bottom: 20px;
}
.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 500;
}
.modal-form input[type="text"],
.modal-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}
.modal-form .button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}
/* Увеличиваем ширину для модалок с пошаговым содержимым (квиз). */
.modal-window.service-modal-wide {
    max-width: 640px;
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 10px;
    }
    .modal-window {
        padding: 18px 14px;
        width: 100%;
        margin: 0 auto;
    }
}
/* === components/_search.css === */
/* ================================================================ */
/* Файл: css/components/_search.css                               */
/* ================================================================ */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.search-overlay.is-visible {
    display: block;
    opacity: 1;
}
.search-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3em;
    color: #888;
}
.search-wrapper {
    max-width: 800px;
    margin: 5% auto;
    padding: 20px;
}
.search-input {
    width: 100%;
    font-size: 2.5em;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background: transparent;
    text-align: center;
    color: #333;
}
.search-results {
    margin-top: 40px;
}
.search-results li {
    border-bottom: 1px solid #eee;
}
.search-results a {
    display: block;
    padding: 20px 10px;
    color: var(--color-secondary);
}
.search-results a:hover {
    background-color: #f8f9fa;
}
.search-results h3 {
    margin-bottom: 5px;
    color: var(--color-primary);
}
.search-results p {
    font-size: 0.9em;
    color: var(--color-text-light);
}

/* === components/_cards.css === */
/* ================================================================ */
/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ КАРТОЧЕК - ОДИНАКОВАЯ ВЫСОТА И КНОПКИ ВНИЗУ */
/* ================================================================ */

.service-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    /* Обеспечиваем одинаковую высоту всех карточек в гриде */
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.service-card__image-link {
    display: block;
    /* Фиксированная высота для изображения */
    flex-shrink: 0;
    overflow: hidden;
}

.service-card__image-link picture {
    display: block;
    width: 100%;
    height: 220px;
}

.service-card__image-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.service-card:hover .service-card__image-link img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 25px;
    /* Используем flex для растягивания контента */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* НЕ используем space-between - оставляем естественное выравнивание */
}

.service-card__title {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    /* Заголовок не должен растягиваться */
    flex-shrink: 0;
}

.service-card__title a {
    transition: color 0.2s;
}

.service-card__title a:hover {
    color: var(--color-primary);
}

.service-card__description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    /* Позволяем описанию расти и занимать доступное место */
    flex-grow: 1;
    /* Минимальная высота для описания */
    min-height: 3em;
    line-height: 1.5;
}

/* Кнопка всегда прижата к низу */
.service-card__content .button.button--outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    /* Кнопка не должна растягиваться */
    align-self: flex-start;
    flex-shrink: 0;
    /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: прижимаем кнопку к низу */
    margin-top: auto;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card__content .button.button--outline:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Дополнительные стили для равномерности */
.services-grid .service-card {
    /* Убеждаемся, что все карточки имеют одинаковую высоту */
    align-self: stretch;
}

/* Адаптивные изменения для мобильных */
@media (max-width: 768px) {
    .service-card__content {
        padding: 20px;
    }
    
    .service-card__image-link img {
        height: 200px;
    }
    
    .service-card__title {
        font-size: 1.1rem;
    }
    
    .service-card__description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .service-card__content .button.button--outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
/* === components/_breadcrumbs.css === */
/* ================================================================ */
/* Файл: css/components/_breadcrumbs.css (ОПТИМАЛЬНАЯ ВЕРСИЯ)     */
/* ================================================================ */

.breadcrumbs {
    padding: 20px 0;
    background-color: #f8f9fa; /* Легкий фон для выделения */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
    padding: 6px 8px;
    border-radius: 4px;
}

.breadcrumbs__link:hover {
    color: var(--color-primary);
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.breadcrumbs__current {
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 8px;
}

.breadcrumbs__home-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.8;
}

.breadcrumbs__separator {
    width: 12px;
    height: 12px;
    color: #adb5bd;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Эффект при наведении на всю секцию */
.breadcrumbs:hover .breadcrumbs__link {
    opacity: 0.7;
}

.breadcrumbs:hover .breadcrumbs__link:hover {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 15px 0;
    }
    
    .breadcrumbs__list {
        gap: 6px;
    }
    
    .breadcrumbs__link,
    .breadcrumbs__current {
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    
    .breadcrumbs__home-icon {
        width: 12px;
        height: 12px;
    }
    
    .breadcrumbs__separator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .breadcrumbs {
        padding: 12px 0;
    }
    
    .breadcrumbs__link,
    .breadcrumbs__current {
        font-size: 0.75rem;
        padding: 3px 4px;
    }
    
    .breadcrumbs__home-icon {
        width: 10px;
        height: 10px;
    }
    
    .breadcrumbs__separator {
        width: 8px;
        height: 8px;
    }
    
    /* На очень маленьких экранах скрываем промежуточные элементы */
    .breadcrumbs__item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    .breadcrumbs__item:nth-last-child(2) {
        display: flex;
    }
    
    .breadcrumbs__item:nth-last-child(2)::before {
        content: "...";
        margin-right: 8px;
        color: #adb5bd;
    }
}
/* === components/_faq.css === */
/* ================================================================ */
/* Файл: css/components/_faq.css                                  */
/* ================================================================ */

.faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.faq-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.faq-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question[aria-expanded="true"] {
    background-color: var(--color-primary);
    color: white;
}

.faq-question__text {
    font-size: 1.1rem;
    font-weight: 600;
    color: inherit;
    margin-right: 16px;
    line-height: 1.4;
}

.faq-question__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-question__icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item[data-faq-open] .faq-answer {
    max-height: 500px; /* Достаточно большое значение */
}

.faq-answer__content {
    padding: 0 24px 24px;
    color: var(--color-text);
    line-height: 1.6;
}

.faq-answer__content p {
    margin-bottom: 16px;
}

.faq-answer__content p:last-child {
    margin-bottom: 0;
}

.faq-answer__content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.faq-answer__content li {
    margin-bottom: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-section__title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question__text {
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .faq-answer__content {
        padding: 0 20px 20px;
    }
    
    .faq-question__icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .faq-question {
        padding: 16px;
    }
    
    .faq-question__text {
        font-size: 0.95rem;
    }
    
    .faq-answer__content {
        padding: 0 16px 16px;
        font-size: 0.9rem;
    }
}
/* === components/_mobile-nav.css === */
/* ================================================================ */
/* Файл: css/components/_mobile-nav.css                           */
/* ================================================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background-color: #295a8b;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
}
.mobile-nav-overlay.is-open {
    transform: translateX(0);
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.mobile-nav-header .logo img {
    height: 50px;
}
.mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.mobile-nav-controls button {
    color: #fff;
}
.search-button-mobile svg {
    width: 24px;
    height: 24px;
}
.mobile-nav-body {
    flex-grow: 1;
    padding-top: 30px;
    overflow-y: auto;
}
.mobile-nav-body ul {
    display: flex;
    flex-direction: column;
}
.mobile-nav-body li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.mobile-nav-body a {
    display: block;
    padding: 20px 0;
    font-size: 1.2em;
    font-weight: 500;
    transition: background-color 0.2s;
}
.mobile-nav-body a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.mobile-nav-footer {
    flex-shrink: 0;
    text-align: center;
    padding-top: 20px;
}
.button-mobile-nav {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #5dade2;
}
.button-mobile-nav:hover {
    background-color: #85c1e9;
}
.phone-mobile-nav {
    font-size: 1.1em;
    letter-spacing: 1px;
}
/* === components/_cta.css === */
/* ================================================================ */
/* Файл: css/components/_cta.css                                  */
/* Стили для переиспользуемого CTA компонента                      */
/* ================================================================ */

.cta-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-secondary); /* Fallback цвет */
    z-index: 0;
}

.cta-overlay {
    position: relative; /* Изменено с absolute */
    width: 50%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(
        90deg,
        rgba(44, 62, 80, 0.95) 0%,
        rgba(44, 62, 80, 0.9) 70%,
        rgba(44, 62, 80, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 40px;
    z-index: 1;
}

/* Остальные стили остаются без изменений... */

.cta-content {
    max-width: 500px;
    text-align: left;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

.cta-button {
    background-color: #ffffff;
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ================================================================ */
/* Итоговая Адаптивность для _cta.css                               */
/* ================================================================ */

@media (max-width: 992px) {
    .cta-overlay {
        width: 100% !important; /* Растягиваем на всю ширину для центровки */
        justify-content: center !important; /* Центрируем контент по горизонтали */
        padding: 50px 20px;
        /* Радиальный градиент из центра для лучшей читаемости при центровке */
        background: radial-gradient(
            circle at center,
            rgba(44, 62, 80, 0.95) 0%,
            rgba(44, 62, 80, 0.85) 60%,
            rgba(44, 62, 80, 0.4) 100%
        ) !important;
    }
    
    .cta-content {
        max-width: 600px; 
        text-align: center !important;
        margin: 0 auto; /* Центрируем сам блок с текстом */
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        min-height: 400px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .cta-section {
        min-height: 350px;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        display: inline-block !important; /* Гарантируем видимость кнопки */
    }
    
    .cta-overlay {
        padding: 30px 15px;
    }
}
/* === components/_services-grid.css === */
/* ================================================================ */
/* СЕТКА ДЛЯ КАРТОЧЕК УСЛУГ / ПОДРАЗДЕЛОВ                          */
/* ================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

/* Планшеты */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Мобильные */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================================================================ */
/* СТИЛИ ДЛЯ СТРАНИЦ РАЗДЕЛОВ И ПОДРАЗДЕЛОВ                        */
/* ================================================================ */

.section-content {
  padding: 20px 0 50px 0;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.section-heading {
  font-size: 1.75rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-weight: 600;
}

/* === components/_page-header.css === */
/* css/components/_page-header.css */

/* Блок заголовка страницы */
.page-header {
    padding: 40px 0 20px 0; /* СНИЗИЛ нижний отступ с 50px до 20px */
    background-color: var(--color-background);
    text-align: center;
}

.page-header__content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Хлебные крошки удаляем или скрываем, если они вдруг остались === */
.page-header__breadcrumbs {
    display: none; 
}

/* === Ссылка-надзаголовок (ОЧИСТНЫЕ И КАНАЛИЗАЦИЯ) === */
.page-header__subtitle {
    display: inline-block;
    font-family: var(--font-family-base);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary); /* Голубой цвет */
    margin-bottom: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    border-bottom: 1px solid transparent; /* Для эффекта подчеркивания */
}

/* Эффект при наведении на надзаголовок */
.page-header__subtitle:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary-dark);
    cursor: pointer;
}

/* Главный заголовок H1 */
.page-header__title {
    font-family: var(--font-family-base);
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-secondary);
    margin: 0 0 15px 0;
    font-weight: 700;
}

/* Описание */
.page-header__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0 20px 0;
    }
    .page-header__title {
        font-size: 1.8rem;
    }
}
/* === components/_service-request.css === */
/* css/components/_service-request.css
   Стили модалки квиза «Рассчитать стоимость» (см. site/templates/_quiz-modal.php).
   Префикс .sr-* сохранён, потому что в модалке используется существующая база (.modal-overlay/.modal-window). */

/* --- Шапка квиза с прогрессом --- */
.sr-header {
    margin: -10px -10px 20px;
    padding: 0 10px 16px;
    border-bottom: 1px solid var(--color-border);
}

.sr-header h2 {
    margin: 0 0 14px;
    font-size: 1.4em;
    color: var(--color-secondary);
}

.sr-progress {
    height: 4px;
    background: #eef1f4;
    border-radius: 4px;
    overflow: hidden;
}

.sr-progress__bar {
    height: 100%;
    width: 33%;
    background: var(--color-primary);
    transition: width 0.25s ease;
}

.sr-progress__label {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: var(--color-text-light);
}

/* --- Шаги --- */
.sr-step {
    display: none;
    animation: srFadeIn 0.25s ease;
}

.sr-step--active {
    display: block;
}

.sr-step__title {
    margin: 0 0 6px;
    font-size: 1.15em;
    color: var(--color-secondary);
}

.sr-step__hint {
    margin: 0 0 16px;
    font-size: 0.9em;
    color: var(--color-text-light);
}

@keyframes srFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Варианты выбора (radio-карточки на шаге 1) --- */
.sr-options {
    display: grid;
    gap: 10px;
}

.sr-option {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.sr-option:hover {
    border-color: var(--color-primary);
    background: #f7fbff;
}

.sr-option__input {
    margin: 4px 0 0;
    flex-shrink: 0;
}

.sr-option__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sr-option__title {
    font-weight: 600;
    color: var(--color-secondary);
}

.sr-option__desc {
    font-size: 0.9em;
    color: var(--color-text-light);
    line-height: 1.4;
}

.sr-option:has(input:checked) {
    border-color: var(--color-primary);
    background: #f0f7ff;
}

/* --- Поля формы (используются и на шаге 2, и на шаге 3) --- */
.sr-form .form-group {
    margin-bottom: 14px;
}

.sr-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--color-secondary);
}

.sr-form input[type="text"],
.sr-form input[type="tel"],
.sr-form input[type="email"],
.sr-form input[type="number"],
.sr-form input[type="file"],
.sr-form select,
.sr-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
}

.sr-form textarea {
    resize: vertical;
    min-height: 70px;
}

.sr-form input:focus,
.sr-form select:focus,
.sr-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group__input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group__unit {
    flex-shrink: 0;
    color: var(--color-text-light);
    font-size: 0.95em;
}

.form-group__required {
    color: #c0392b;
}

.form-group__hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    color: var(--color-text-light);
}

/* --- Чекбокс-группа (multiselect) --- */
.sr-checkbox-group {
    display: grid;
    gap: 6px;
}

.sr-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* --- Состояние ошибки на группе --- */
.has-error {
    /* border-цвет красный для контейнеров и контролов внутри */
}
.has-error.form-group label,
.has-error.sr-options,
.has-error.sr-checkbox-group {
    color: #c0392b;
}
.has-error input,
.has-error select,
.has-error textarea {
    border-color: #c0392b;
}
.has-error.sr-options .sr-option,
.has-error.sr-checkbox-group {
    border-color: #c0392b;
}

/* --- Нижняя навигация: Назад / Далее / Отправить --- */
.sr-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.sr-nav .button {
    min-width: 120px;
}

.sr-nav__back {
    background: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
}

.sr-nav__back:hover {
    background: #f4f6f8;
}

.sr-nav__next,
.sr-nav__submit {
    margin-left: auto;
}

.sr-policy {
    margin: 10px 0 0;
    font-size: 0.8em;
    color: var(--color-text-light);
    line-height: 1.4;
}

.sr-policy a {
    color: var(--color-primary);
}

/* --- Адаптив --- */
@media (max-width: 600px) {
    .sr-header {
        margin: -6px -4px 16px;
        padding: 0 4px 12px;
    }
    .sr-header h2 {
        font-size: 1.1em;
        line-height: 1.3;
        padding-right: 30px; /* чтобы длинный заголовок не наезжал на крестик закрытия */
    }
    .sr-nav {
        flex-direction: column;
    }
    .sr-nav .button {
        width: 100%;
        margin-left: 0;
    }
}

/* === components/_contacts.css === */
/* ================================================================ */
/* СТРАНИЦА КОНТАКТОВ                                                 */
/* ================================================================ */

.contacts-section {
    padding: 50px 0 80px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ---------- Левая колонка: контактная информация ---------- */

.contacts-info__title {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.contacts-info__item {
    margin-bottom: 20px;
}

.contacts-info__label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.contacts-info__phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.contacts-info__phone:hover {
    color: var(--color-primary);
}

.contacts-info__email {
    font-size: 1.2rem;
    color: var(--color-primary);
    text-decoration: none;
}

.contacts-info__email:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.contacts-info__address,
.contacts-info__schedule {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

.contacts-info__divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 30px 0;
}

.contacts-info__requisites-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ---------- Правая колонка: CTA-блок ---------- */

.contacts-cta {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.contacts-cta__title {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.contacts-cta__desc {
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contacts-cta__button {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

/* ---------- Карта ---------- */

.contacts-map {
    width: 100%;
    min-height: 450px;
    background: #eee;
    overflow: hidden;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* ---------- Адаптив ---------- */

@media (max-width: 768px) {
    .contacts-section {
        padding: 30px 0 50px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-cta {
        padding: 30px 20px;
    }

    .contacts-info__phone {
        font-size: 1.3rem;
    }
}

/* === components/_licenses.css === */
/* ================================================================ */
/* СЕТКА И КАРТОЧКИ ЛИЦЕНЗИЙ                                          */
/* ================================================================ */

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.license-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.license-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.license-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f9f9f9;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.license-card__image-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.license-card__image-link--placeholder {
    color: var(--color-text-light);
    font-size: 0.95rem;
    text-align: center;
}

.license-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.license-card__title {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-weight: 600;
}

.license-card__desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Метаданные лицензии (номер, дата, орган) */
.license-card__meta {
    margin: 0 0 20px;
    padding: 15px;
    background: #f7f8fa;
    border-radius: 6px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.license-card__meta-row {
    display: flex;
    gap: 10px;
    padding: 4px 0;
}

.license-card__meta-row + .license-card__meta-row {
    border-top: 1px dashed var(--color-border);
}

.license-card__meta-label {
    flex: 0 0 130px;
    color: var(--color-text-light);
    font-weight: 500;
    margin: 0;
}

.license-card__meta-value {
    flex: 1;
    margin: 0;
    color: var(--color-secondary);
    font-weight: 500;
    word-break: break-word;
}

/* Блок кнопок: PDF + реестр */
.license-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.license-card__button {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .licenses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .license-card__image-link {
        height: 320px;
    }

    .license-card__content {
        padding: 20px;
    }

    .license-card__meta-row {
        flex-direction: column;
        gap: 2px;
    }

    .license-card__meta-label {
        flex: none;
        font-size: 0.85rem;
    }

    .license-card__button {
        flex: 1;
        text-align: center;
    }
}

/* === components/_about.css === */
/* ================================================================ */
/* СТРАНИЦА «О КОМПАНИИ»: СЕТКА НАПРАВЛЕНИЙ                          */
/* ================================================================ */

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

.about-services-grid__item {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.about-services-grid__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: var(--color-primary);
}

.about-services-grid__item h3 {
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-services-grid__item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .about-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-services-grid__item {
        padding: 20px;
    }
}

/* ================================================================ */
/* СТРАНИЦА «О КОМПАНИИ»: ЛОГОТИПЫ КЛИЕНТОВ ВНУТРИ КАРТОЧКИ          */
/* Переиспользуем .clients-grid/.client-logo с главной, но без       */
/* большого верхнего отступа, рассчитанного на отдельную секцию.     */
/* ================================================================ */

.about-clients-grid {
    margin: 20px 0 0 !important;
}

.about-clients-more {
    margin-top: 20px;
}

/* === components/_error-page.css === */
/* ================================================================ */
/* Файл: css/components/_error-page.css                             */
/* Описание: Страница 404 — крупный код ошибки, кнопки и разделы.   */
/* ================================================================ */

.error-page {
    padding: 80px 0 100px;
    background:
        radial-gradient(circle at 15% 20%, rgba(52, 152, 219, 0.08), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(44, 62, 80, 0.06), transparent 50%),
        var(--color-background);
}

.error-page__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.error-page__code {
    font-family: var(--font-family-base);
    font-weight: 700;
    font-size: clamp(8rem, 22vw, 14rem);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark) 60%, var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}

.error-page__title {
    font-family: var(--font-family-base);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px;
    line-height: 1.2;
}

.error-page__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 auto 32px;
    max-width: 560px;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}

/* Модификаторы кнопок — только в рамках 404, чтобы не трогать общий компонент. */
.error-page .button--outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 22px;
}
.error-page .button--outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.error-page .button--ghost {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid transparent;
    padding: 10px 22px;
}
.error-page .button--ghost:hover {
    background-color: rgba(44, 62, 80, 0.06);
}

/* === Блок «Основные разделы» === */
.error-page__sections {
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
}

.error-page__sections-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    text-align: center;
    margin: 0 0 24px;
    font-weight: 700;
}

.error-page__sections-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.error-page__section-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.error-page__section-link:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.12);
}

.error-page__section-link:hover .error-page__section-arrow {
    transform: translateX(4px);
    color: var(--color-primary);
}

.error-page__section-title {
    line-height: 1.3;
}

.error-page__section-arrow {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.2s ease, color 0.2s ease;
}

/* === Адаптив === */
@media (max-width: 600px) {
    .error-page {
        padding: 50px 0 70px;
    }
    .error-page__title {
        font-size: 1.5rem;
    }
    .error-page__description {
        font-size: 1rem;
    }
    .error-page__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* === components/_cookie-banner.css === */
/* ================================================================ */
/* Файл: css/components/_cookie-banner.css                          */
/* Описание: Плашка согласия на использование cookie.               */
/* ================================================================ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1900;
    background-color: var(--color-secondary);
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: var(--color-primary);
}

.cookie-banner__accept {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-banner__inner {
        gap: 12px;
    }
    .cookie-banner__text {
        font-size: 13px;
    }
    .cookie-banner__accept {
        width: 100%;
    }
}

/* === components/_flash-message.css === */
/* ================================================================ */
/* Файл: css/components/_flash-message.css                          */
/* Описание: Toast-уведомление после сабмита форм                   */
/* (обратный звонок, квиз). Появляется в правом верхнем углу,       */
/* сам уезжает через 5 секунд (JS) или по клику на крестик.         */
/* ================================================================ */
.flash-message {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    max-width: 380px;
    background: #fff;
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
    padding: 16px 44px 16px 20px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.45;
    animation: flash-slide-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flash-message--success {
    border-left-color: #27ae60;
}

.flash-message--success::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -4px;
    background-color: #27ae60;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M10 0a10 10 0 1 0 0 20A10 10 0 0 0 10 0Zm-1.4 14.4-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M10 0a10 10 0 1 0 0 20A10 10 0 0 0 10 0Zm-1.4 14.4-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/></svg>") no-repeat center / contain;
}

.flash-message--error {
    border-left-color: #e74c3c;
}

.flash-message--error::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -4px;
    background-color: #e74c3c;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M10 0a10 10 0 1 0 0 20A10 10 0 0 0 10 0Zm1 15H9v-2h2v2Zm0-4H9V5h2v6Z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='currentColor' d='M10 0a10 10 0 1 0 0 20A10 10 0 0 0 10 0Zm1 15H9v-2h2v2Zm0-4H9V5h2v6Z'/></svg>") no-repeat center / contain;
}

.flash-message__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--color-text-light);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 150ms ease, color 150ms ease;
}

.flash-message__close:hover,
.flash-message__close:focus-visible {
    background-color: var(--color-border);
    color: var(--color-secondary);
    outline: none;
}

.flash-message--hiding {
    animation: flash-slide-out 240ms cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes flash-slide-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes flash-slide-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(24px); }
}

@media (max-width: 600px) {
    .flash-message {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flash-message,
    .flash-message--hiding {
        animation: none;
    }
}

/* === pages/_home.css === */
/* ================================================================ */
/* Файл: css/pages/_home.css                                      */
/* Стили для главной страницы                                     */
/* ================================================================ */


/* ================= СЕКЦИЯ "НАШИ УСЛУГИ" ================= */

.services-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(52, 152, 219, 0.02) 35px,
        rgba(52, 152, 219, 0.02) 37px
    );
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-primary) 50%,
        transparent 100%
    );
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 30px !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.services-grid > *:not(.service-card):not(article) {
    display: none !important;
}

.services-grid .service-card,
.services-grid article {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    grid-column: auto !important;
    grid-row: auto !important;
    flex: none !important;
}

/* ================= СЕКЦИЯ "О КОМПАНИИ" ================= */

.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 25px;
}

.about-text:last-of-type {
    margin-bottom: 35px;
}

.about-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-link:hover {
    color: var(--color-primary-dark);
}

/* ================= СЕКЦИЯ "КЛЮЧЕВЫЕ КЛИЕНТЫ" ================= */

.clients-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    /* Важно для мобильных, чтобы слайдер не вылезал за пределы экрана */
    overflow: hidden; 
}

.clients-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 50px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 30px !important;
}

.client-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    min-height: 120px !important;
    flex: 0 1 180px !important; 
}

.client-logo:hover {
    transform: translateY(-5px) !important;
}

.client-logo picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.client-logo img {
    max-width: 180px !important;
    max-height: 90px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.client-logo:hover img {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

/* ================= АДАПТИВ: ГОРИЗОНТАЛЬНЫЙ СЛАЙДЕР ================= */
@media (max-width: 768px) {
    .clients-grid {
        flex-wrap: nowrap !important; /* Запрещаем перенос на новые строки */
        justify-content: flex-start !important; /* Прижимаем к левому краю */
        overflow-x: auto !important; /* Включаем горизонтальную прокрутку */
        scroll-snap-type: x mandatory !important; /* Включаем "примагничивание" слайдов */
        -webkit-overflow-scrolling: touch !important; /* Плавный свайп на iOS */
        gap: 20px !important;
        padding-bottom: 20px !important; /* Место снизу, чтобы скроллбар не перекрывал лого */
        
        /* Прячем визуальный ползунок скроллбара, оставляя саму функцию свайпа */
        scrollbar-width: none !important; 
    }
    
    .clients-grid::-webkit-scrollbar {
        display: none !important;
    }

    .client-logo {
        /* Жестко фиксируем ширину "слайда", чтобы он не сжимался */
        flex: 0 0 160px !important; 
        /* Центрируем логотип на экране при остановке свайпа */
        scroll-snap-align: center !important; 
        min-height: 90px !important;
        padding: 5px !important;
    }

    .client-logo img {
        max-width: 140px !important;
        max-height: 70px !important;
    }
}
/* ================= ОБЩИЕ СТИЛИ ДЛЯ ЗАГОЛОВКОВ СЕКЦИЙ ================= */

.section-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ================= АДАПТИВНОСТЬ ================= */

@media (max-width: 992px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .services-section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .clients-section {
        padding: 60px 0;
    }
    
    .client-logo {
        min-height: 140px !important;
        padding: 15px !important;
    }
    
    .client-logo img {
        max-width: 200px !important;
        max-height: 110px !important;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    .services-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .services-grid {
        gap: 15px !important;
    }
}
/* === pages/_service.css === */
/* ================================================================ */
/* Файл: css/pages/_service.css                                   */
/* Стили для страниц услуг                                        */
/* ================================================================ */


/* ================= ОСНОВНОЙ КОНТЕНТ ================= */

.service-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* ================= ПОХОЖИЕ УСЛУГИ ================= */
/* Реюзает .services-grid и .service-card из _cards.css */

.related-services {
    padding: 100px 0;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .related-services {
        padding: 80px 0;
    }
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.service-main {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-section {
    margin-bottom: 50px;
}

.service-section:last-child {
    margin-bottom: 0;
}

.service-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.service-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Список услуг */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list__item {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.service-list__item:last-child {
    border-bottom: none;
}

.service-list__item strong {
    color: var(--color-secondary);
}

/* Этапы проектирования */
.service-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.service-steps__item {
    counter-increment: step-counter;
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    padding-left: 60px;
}

.service-steps__item:last-child {
    border-bottom: none;
}

.service-steps__item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 25px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.service-steps__name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.service-steps__description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* Компетентность */
.service-competence {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.service-competence p {
    margin-bottom: 20px;
}

.service-competence p:last-child {
    margin-bottom: 0;
}

/* ================= БОКОВАЯ ПАНЕЛЬ ================= */

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px; /* отступ под прилипшую .site-header.sticky (~56px) + воздух */
}

/* Блок "Мы на связи" */
.sidebar-contact {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-primary);
}

.sidebar-contact__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-contact__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 25px;
}

.sidebar-contact__phone {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-contact__phone:hover {
    color: var(--color-primary-dark);
}

.sidebar-contact__button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

/* Блок Downloads */
.sidebar-downloads {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-downloads__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-downloads__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-downloads__item {
    margin-bottom: 15px;
}

.sidebar-downloads__item:last-child {
    margin-bottom: 0;
}

.sidebar-downloads__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-downloads__link:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.sidebar-downloads__icon {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sidebar-downloads__link:hover .sidebar-downloads__icon {
    transform: translateY(2px);
}

/* ================= АДАПТИВНОСТЬ ================= */

@media (max-width: 1200px) {

	.service-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .service-main {
        padding: 30px;
    }
    
    .sidebar-contact,
    .sidebar-downloads {
        padding: 25px;
    }
}

@media (max-width: 992px) {

    
    .service-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* ИСПРАВЛЕНО: Сайдбар перемещаем после основного контента */
    .service-sidebar {
        order: 2; /* Сайдбар показываем после основного контента */
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* Основной контент показываем первым */
    .service-main {
        order: 1;
    }
}

@media (max-width: 768px) {

    
    .service-content {
        padding: 60px 0;
    }
    
    .service-main {
        padding: 25px;
    }
    
    .service-section__title {
        font-size: 1.6rem;
    }
    
    /* ИСПРАВЛЕНО: На мобильных сайдбар в одну колонку */
    .service-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
        /* Добавляем отступ сверху чтобы отделить от основного контента */
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid var(--color-border);
    }
    
    .service-steps__item {
        padding-left: 50px;
    }
    
    .service-steps__item::before {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    
    .service-main {
        padding: 20px;
    }
    
    .sidebar-contact,
    .sidebar-downloads {
        padding: 20px;
    }
    
    .service-sidebar {
        margin-top: 30px;
        padding-top: 30px;
    }
}

/* ================================================================ */
/* Дополнительные стили для markdown-контента в service-section    */
/* Добавить в файл css/pages/_service.css                         */
/* ================================================================ */

/* Стили для markdown-контента внутри service-section */
.service-section h1,
.service-section h2,
.service-section h3,
.service-section h4,
.service-section h5,
.service-section h6 {
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
    line-height: 1.3;
}

.service-section h1:first-child,
.service-section h2:first-child,
.service-section h3:first-child {
    margin-top: 0;
}

.service-section h2 {
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 12px;
}

.service-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.service-section h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.service-section h4 {
    font-size: 1.2rem;
}

.service-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
}

.service-section p:last-child {
    margin-bottom: 0;
}

.service-section strong {
    color: var(--color-secondary);
    font-weight: 600;
}

.service-section ul,
.service-section ol {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.service-section ul li,
.service-section ol li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.service-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.service-section ol {
    counter-reset: markdown-counter;
}

.service-section ol li {
    counter-increment: markdown-counter;
}

.service-section ol li::before {
    content: counter(markdown-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-section blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-text-light);
}

.service-section blockquote p {
    margin-bottom: 0;
}

.service-section code {
    background-color: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--color-secondary);
}

.service-section pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.service-section pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Стили для таблиц если они есть */
.service-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-section th,
.service-section td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.service-section th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

.service-section tr:last-child td {
    border-bottom: none;
}

.service-section tr:hover {
    background-color: #f8f9fa;
}

/* Адаптивность для markdown-контента */
@media (max-width: 768px) {
    .service-section h2 {
        font-size: 1.5rem;
    }
    
    .service-section h3 {
        font-size: 1.3rem;
    }
    
    .service-section p,
    .service-section ul li,
    .service-section ol li {
        font-size: 1rem;
    }
    
    .service-section ul li,
    .service-section ol li {
        padding-left: 20px;
    }
    
    .service-section blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
}
/* === pages/_portfolio.css === */
/* ================================================================ */
/* Файл: css/pages/_portfolio.css                                  */
/* Стили листинга «Объекты на обслуживании»                        */
/* ================================================================ */

.portfolio-section {
    padding: 80px 0 100px;
    background-color: #f8f9fa;
}

.portfolio-empty {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    padding: 60px 0;
}

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

.portfolio-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.portfolio-card__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--color-border);
}

.portfolio-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card__media img {
    transform: scale(1.04);
}

.portfolio-card__media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
}

.portfolio-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(44, 62, 80, 0.85);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    flex: 1;
}

.portfolio-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.portfolio-card__title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.portfolio-card__title a:hover {
    color: var(--color-primary);
}

.portfolio-card__client {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.portfolio-card__since {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: #eef6fc;
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.portfolio-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .portfolio-section {
        padding: 60px 0 80px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-card__body {
        padding: 20px;
    }
}

/* === pages/_project.css === */
/* ================================================================ */
/* Файл: css/pages/_project.css                                    */
/* Стили детальной страницы объекта (template=project)             */
/* ================================================================ */

/* ================= ПОЛОСА ЦИФР КОНТРАКТА ================= */

.contract-facts {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
}

.contract-facts__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contract-facts__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px;
    border-left: 3px solid var(--color-primary);
}

.contract-facts__item:first-child {
    padding-left: 16px;
}

.contract-facts__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.1;
}

.contract-facts__label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ================= ДВУХКОЛОНОЧНЫЙ LAYOUT ================= */

.project-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.project-main {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-section {
    margin-bottom: 50px;
}

.project-section:last-child {
    margin-bottom: 0;
}

.project-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.project-section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.project-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 30px;
    padding-left: 20px;
    border-left: 4px solid var(--color-primary);
}

.project-body {
    margin-bottom: 50px;
}

.project-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 18px;
}

.project-body p:last-child {
    margin-bottom: 0;
}

/* ================= СИСТЕМЫ ================= */

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Если в сетке нечётное число и последняя карточка одна в ряду — растягиваем её на всю ширину. */
.systems-grid .system-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.system-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 24px;
    border-top: 3px solid var(--color-primary);
}

.system-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 14px;
}

.system-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.system-card__list li {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    padding: 6px 0 6px 18px;
    position: relative;
}

.system-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* ================= ФОТОГАЛЕРЕЯ ================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery__item {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    background-color: var(--color-border);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* ================= ТАЙМЛАЙН ================= */

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--color-border);
}

.timeline__item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
    padding: 14px 0;
    position: relative;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: 56px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline__year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
}

.timeline__text {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.5;
    padding-top: 2px;
}

/* ================= САЙДБАР ================= */

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-client,
.sidebar-service {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-client {
    border-left: 4px solid var(--color-primary);
}

.sidebar-client__title,
.sidebar-service__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-client__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 18px;
}

.sidebar-client__meta {
    margin: 0 0 12px;
    padding: 0;
}

.sidebar-client__meta:last-child {
    margin-bottom: 0;
}

.sidebar-client__meta dt {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sidebar-client__meta dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-text);
}

.sidebar-service__link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s;
}

.sidebar-service__link:hover {
    background-color: #f8f9fa;
}

.sidebar-service__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: var(--color-border);
}

.sidebar-service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-service__name {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    padding: 0 8px 8px;
}

.sidebar-service__link:hover .sidebar-service__name {
    color: var(--color-primary-dark);
}

/* ================= БЛОК «ДРУГИЕ ОБЪЕКТЫ» ================= */

.related-projects {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

/* ================= LIGHTBOX ================= */

.lightbox {
    border: none;
    padding: 0;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.92);
    color: #ffffff;
    max-width: 96vw;
    max-height: 96vh;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox::backdrop {
    background-color: rgba(0, 0, 0, 0.92);
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border-radius: 50%;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
}

/* ================= АДАПТИВНОСТЬ ================= */

@media (max-width: 1200px) {
    .project-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .project-main {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-sidebar {
        order: 2;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .project-main {
        order: 1;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-content {
        padding: 60px 0;
    }

    .project-main {
        padding: 25px;
    }

    .project-section__title {
        font-size: 1.6rem;
    }

    .contract-facts {
        padding: 30px 0;
    }

    .contract-facts__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contract-facts__value {
        font-size: 1.6rem;
    }

    .project-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid var(--color-border);
    }

    .timeline::before {
        left: 45px;
    }

    .timeline__item {
        grid-template-columns: 70px 1fr;
        gap: 16px;
    }

    .timeline__item::before {
        left: 41px;
    }
}

@media (max-width: 576px) {
    .project-main {
        padding: 20px;
    }

    .sidebar-client,
    .sidebar-service {
        padding: 20px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .contract-facts__list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .contract-facts__list {
        grid-template-columns: 1fr;
    }
}

/* === pages/_zakazchiki.css === */
/* Страница «Наши Заказчики» */

.clients-page {
    padding: 60px 0 80px;
    background-color: #f5f7fa;
}

.clients-table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
    overflow: hidden;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table__row {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.clients-table__row:last-child {
    border-bottom: none;
}

.clients-table__row:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.clients-table__name,
.clients-table__location {
    padding: 22px 28px;
    vertical-align: middle;
    font-size: 1.05rem;
}

.clients-table__name {
    font-weight: 700;
    color: var(--color-secondary);
    width: 60%;
}

.clients-table__name::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
    margin-right: 14px;
    vertical-align: -4px;
}

.clients-table__location {
    text-align: right;
    color: var(--color-text-light);
    font-size: 0.98rem;
}

/* Мобильный стек */
@media (max-width: 640px) {
    .clients-page {
        padding: 30px 0 50px;
    }

    .clients-table,
    .clients-table tbody {
        display: block;
        width: 100%;
    }

    .clients-table__row {
        display: block;
        width: 100%;
        padding: 14px 18px;
    }

    .clients-table__name,
    .clients-table__location {
        display: block;
        width: 100%;
        padding: 4px 0;
        text-align: left;
        font-size: 1rem;
    }

    .clients-table__name::before {
        height: 16px;
        vertical-align: -2px;
    }

    .clients-table__location {
        font-size: 0.9rem;
    }
}

/* === components/_tables.css === */
/* css/components/_tables.css */

/* Стили для десктопа (оставляем как есть) */
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

/* МАГИЯ ДЛЯ МОБИЛЬНЫХ (Stack Approach) */
@media (max-width: 768px) {
    /* Прячем заголовки таблицы (они будут внутри карточек) */
    .table-responsive thead {
        display: none;
    }

    .table-responsive table, 
    .table-responsive tbody, 
    .table-responsive tr, 
    .table-responsive td {
        display: block; /* Превращаем всё в блоки */
        width: 100% !important;
    }

    .table-responsive tr {
        margin-bottom: 20px;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background: #fff;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .table-responsive td {
        text-align: left;
        padding: 8px 10px;
        border: none;
        position: relative;
    }

    /* Выделяем первую ячейку (Параметр) как заголовок карточки */
    .table-responsive td:first-child {
        background: #f8f9fa;
        font-weight: bold;
        color: var(--color-primary);
        border-radius: 4px;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    /* Добавляем подзаголовки для остальных ячеек через CSS (опционально) */
    .table-responsive td:nth-child(2)::before {
        content: "Характеристика: ";
        font-weight: bold;
        display: block;
        font-size: 0.8rem;
        color: var(--color-text-light);
    }

    .table-responsive td:nth-child(3)::before {
        content: "Почему это важно: ";
        font-weight: bold;
        display: block;
        font-size: 0.8rem;
        color: var(--color-text-light);
    }
}