/* Базовые сбросы */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, input {
    font-family: 'Montserrat', sans-serif !important;
}

:root {
    --dark-blue: #1A2B4C;   
    --accent-red: #D32F2F;  
    --bg-beige: #F7F5F0;    
    --text-dark: #2C3E50;   
}

/* 1. Верхняя панель */
.top-bar {
    background-color: var(--dark-blue);
    color: #ffffff;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar i {
    color: var(--accent-red);
    margin-right: 6px;
}

/* 2. Основная высокая шапка */
.main-header {
    background-color: var(--bg-beige);
    padding: 35px 0; /* Увеличенные отступы для высоты и солидности */
    border-bottom: 1px solid #E5E0D5;
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Стилизация логотипа-домена */
.logo-block {
    display: flex;
    flex-direction: column;
}
.text-logo {
    font-size: 32px; /* Крупный размер */
    font-weight: 900;
    color: var(--dark-blue);
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: -1px;
    line-height: 1;
}
.text-logo span {
    color: var(--accent-red);
}
.logo-subtext {
    font-size: 12px;
    color: #6C7A89;
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

/* Блок контактов */
.contacts-block {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Иконка телефона в круге с эффектом покачивания */
.phone-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.phone-icon-circle {
    width: 44px;
    height: 44px;
    background-color: rgba(213, 47, 47, 0.1);
    border: 1px solid rgba(213, 47, 47, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    font-size: 18px;
}
.main-phone {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-blue);
    text-decoration: none !important;
    display: block;
    line-height: 1.1;
}
.phone-subtext {
    font-size: 11px;
    color: #7F8C8D;
    font-weight: 500;
    display: block;
}

/* Мессенджеры */
.social-icons {
    display: flex;
    gap: 8px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s;
}
.social-icons a:hover {
    transform: scale(1.1);
}
.ico-wa { background-color: #25D366; }
.ico-tg { background-color: #0088cc; }

/* Кнопка */
.btn-call-back {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.8px;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.btn-call-back:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* 3. Навигация */
.stroy-nav {
    background-color: var(--dark-blue) !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}
.stroy-nav .navbar-nav > li > a {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 18px 22px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}
.stroy-nav .navbar-nav > li > a:hover, 
.stroy-nav .navbar-nav > .open > a {
    background-color: var(--accent-red) !important;
    color: #fff !important;
}

/* Адаптивность */
@media (max-width: 991px) {
    .header-grid {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .contacts-block {
        flex-direction: column;
        gap: 15px;
    }
    .phone-box { flex-direction: column; gap: 5px; }
    .info-row { flex-direction: column; gap: 5px; text-align: center; }
}
/* ==========================================================================
   ГЛАВНЫЙ ЭКРАН (HERO SECTION)
   ========================================================================== */
.hero-stroy {
    position: relative;
    background: linear-gradient(135deg, #13223C 0%, #0D1729 100%);
    background-size: cover;
    background-position: center;
    padding: 120px 0 140px 0; /* Высокие стильные отступы */
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.2);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(213, 47, 47, 0.15);
    color: #FF8A8A;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(213, 47, 47, 0.3);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-text {
    font-size: 18px;
    line-height: 1.65;
    color: #E5E0D5; /* Наш благородный бежевый оттенок для текста */
    margin-bottom: 45px;
    max-width: 720px;
}

/* Иконки преимуществ */
.hero-features {
    display: flex;
    gap: 35px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.feature-item i {
    color: var(--accent-red);
    font-size: 22px;
}

.feature-item span strong {
    color: #ffffff;
    font-weight: 700;
}

/* Кнопки действия */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-main-red {
    background-color: var(--accent-red);
    color: #ffffff !important;
    padding: 18px 38px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(213, 47, 47, 0.4);
}

.btn-main-red:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(213, 47, 47, 0.5);
}

.btn-secondary-beige {
    background-color: transparent;
    color: var(--bg-beige) !important;
    padding: 18px 38px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    border: 2px solid var(--bg-beige);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btn-secondary-beige:hover {
    background-color: var(--bg-beige);
    color: var(--dark-blue) !important;
    transform: translateY(-2px);
}

/* Адаптивность для мобильных экранов */
@media (max-width: 991px) {
    .hero-title { font-size: 36px; }
    .hero-text { font-size: 16px; }
    .hero-stroy { padding: 80px 0; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 28px; }
    .hero-features { flex-direction: column; gap: 15px; }
    .hero-buttons { flex-direction: column; }
    .btn-main-red, .btn-secondary-beige { text-align: center; width: 100%; }
}
/* ==========================================================================
   ИНТЕРАКТИВНЫЙ КВИЗ-ТЕСТ
   ========================================================================== */
/* ==========================================================================
   ПОЛНЫЙ И ИСПРАВЛЕННЫЙ ИНТЕРАКТИВНЫЙ КВИЗ-ТЕСТ
   ========================================================================== */
.quiz-stroy {
    background-color: #ffffff;
    padding: 80px 0;
}
.quiz-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}
.quiz-header-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 15px;
    text-align: center;
}
.quiz-header-text p {
    font-size: 16px;
    color: #7F8C8D;
    margin-bottom: 40px;
    text-align: center;
}

/* Коробка самого теста (Благородный бежевый фон) */
.quiz-box {
    background-color: var(--bg-beige) !important;
    border: 1px solid #E5E0D5 !important;
    border-radius: 16px !important;
    padding: 45px !important;
    box-shadow: 0 10px 30px rgba(26, 43, 76, 0.04) !important;
}

/* Прогресс-бар */
.quiz-progress-bar {
    background-color: #E5E0D5;
    height: 8px;
    border-radius: 10px;
    position: relative;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
}
.progress-line {
    background-color: var(--accent-red);
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}
.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-blue);
    text-transform: uppercase;
}

/* Скрытие/Отображение шагов */
.quiz-step {
    display: none !important;
}
.quiz-step.active {
    display: block !important;
    animation: quizFadeIn 0.4s ease !important;
}
.quiz-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 25px;
}

/* Сетки для карточек */
.quiz-options {
    display: grid !important;
    gap: 20px !important;
    margin-bottom: 35px !important;
}
.grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid-4 { grid-template-columns: repeat(4, 1fr) !important; }

/* Карточки вариантов */
.option-card {
    cursor: pointer;
    position: relative;
}
.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.option-content {
    background-color: #ffffff !important;
    border: 2px solid #E5E0D5 !important;
    border-radius: 10px !important;
    padding: 25px 20px !important;
    text-align: center;
    transition: all 0.3s ease !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}
.option-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}
.option-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-blue);
    display: block;
    margin-bottom: 5px;
}
.option-desc {
    font-size: 12px;
    color: #7F8C8D;
    line-height: 1.4;
}

/* Активное состояние выбранной карточки */
.option-card input:checked + .option-content {
    border-color: var(--accent-red) !important;
    background-color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(213, 47, 47, 0.12) !important;
    transform: translateY(-2px);
}

/* Финальная форма контактов */
.quiz-final-form {
    max-width: 450px;
    margin: 0 auto 30px auto;
}
.form-group-stroy {
    margin-bottom: 20px;
    text-align: left;
}
.form-group-stroy label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
    display: block;
}
.form-group-stroy input {
    width: 100%;
    height: 48px;
    border: 2px solid #E5E0D5;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 500;
}
.form-group-stroy input:focus {
    border-color: var(--dark-blue);
    outline: none;
}
.quiz-privacy {
    font-size: 11px;
    color: #95A5A6;
    line-height: 1.4;
    text-align: center;
}

/* Навигация и Кнопки */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E5E0D5;
    padding-top: 25px;
}

/* Кнопка ДАЛЕЕ с сочным градиентом */
.btn-quiz-next, .btn-quiz-submit {
    background: linear-gradient(135deg, #D32F2F 0%, #991B1B 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 14px;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 6px !important;
    cursor: pointer;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(213, 47, 47, 0.3) !important;
    transition: all 0.3s ease;
}
.btn-quiz-next:hover {
    background: linear-gradient(135deg, #B71C1C 0%, #7F1D1D 100%) !important;
    box-shadow: 0 6px 18px rgba(213, 47, 47, 0.4) !important;
}
.btn-quiz-submit {
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%) !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}
.btn-quiz-submit:hover {
    background: linear-gradient(135deg, #219653 0%, #145A32 100%) !important;
}

/* Кнопка НАЗАД */
.btn-quiz-prev {
    background-color: transparent !important;
    color: var(--dark-blue) !important;
    border: 2px solid var(--dark-blue) !important;
    padding: 12px 25px !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-quiz-prev:hover {
    background-color: var(--dark-blue) !important;
    color: #ffffff !important;
}

/* Анимация плавного появления */
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность под мобильные */
@media (max-width: 767px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
    .quiz-box { padding: 20px !important; }
    .quiz-navigation { flex-direction: column-reverse; gap: 15px; }
    .btn-quiz-next, .btn-quiz-submit, .btn-quiz-prev { width: 100% !important; text-align: center; }
}

/* ==========================================================================
   КАТАЛОГ ПРОЕКТОВ (ПРОЗРАЧНЫЕ КАРТОЧКИ + КРАСНЫЙ ГРАДИЕНТ НА КНОПКАХ)
   ========================================================================== */
.projects-catalog-section {
    position: relative;
    background: linear-gradient(135deg, #13223C 0%, #0D1729 100%);
    padding: 80px 0 100px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-title-block h2 {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 12px;
}
.section-title-block p {
    font-size: 16px;
    color: #E5E0D5 !important;
    margin-bottom: 50px;
}

/* Сетка карточек */
.projects-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 25px !important;
    justify-content: space-between;
    margin-bottom: 40px;
}

/* ПРОЗРАЧНАЯ КАРТОЧКА С ТОНКОЙ СТИЛЬНОЙ РАМКОЙ */
.project-card {
    background: rgba(255, 255, 255, 0.03) !important; /* Легкая прозрачность */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Тонкая светлая граница */
    border-radius: 12px !important; /* Чуть сильнее закруглим углы для мягкости */
    overflow: hidden !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 25% !important;
    min-width: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease !important;
}

/* Эффект при наведении */
.project-card:hover {
    transform: translateY(-8px) !important;
    background: rgba(255, 255, 255, 0.06) !important; /* Становится капельку плотнее */
    border-color: rgba(213, 47, 47, 0.4) !important; /* Граница плавно окрашивается в красный */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

/* КАРТИНКА БЕЗ ОТСТУПОВ: До боковых и верхней линий */
.project-image {
    height: 220px !important;
    background-color: transparent !important; /* Убираем бежевую заглушку */
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    margin: 0 !important; /* Сбрасываем любые внешние отступы */
    padding: 0 !important; /* Сбрасываем внутренние отступы */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.project-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.project-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Жестко заполняет все пространство без полей */
    transition: transform 0.5s ease !important;
}

/* Информация внутри карточки */
.project-info {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Название проекта (БЕЛОЕ) */
.project-name {
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
}
.project-name a {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important; /* Чистый белый цвет */
    text-decoration: none !important;
    transition: color 0.2s;
}
.project-name a:hover {
    color: #FF8A8A !important; /* Мягкий красный при наведении */
}

/* Технические характеристики (Прозрачная аккуратная подложка) */
.project-specs {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 22px !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Прозрачный фон для плашек */
    padding: 10px 12px !important;
    border-radius: 6px !important;
}
.spec-item {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #E5E0D5 !important; /* Мягкий бежевый текст */
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 1;
}
.spec-item span {
    font-weight: 500 !important;
    color: #ffffff !important; /* Значения параметров — белые */
}

/* Подвал карточки */
.project-footer {
    margin-top: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}
.project-price-block {
    display: flex !important;
    flex-direction: column !important;
}
.price-label {
    font-size: 11px !important;
    color: #A2A9B5 !important; /* Серый текст ярлыка */
    font-weight: 500 !important;
    margin-bottom: 3px;
}
.project-price {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #ffffff !important; /* Белая цена */
}

/* КНОПКА С КРАСНЫМ ГРАДИЕНТОМ И БЕЛЫМ ТЕКСТОМ */
.btn-view-project {
    /* Мощный строительный градиент от ярко-красного к темно-бордовому */
    background: linear-gradient(135deg, #D32F2F 0%, #991B1B 100%) !important;
    color: #ffffff !important; /* Белая надпись */
    border: none !important; /* Убираем рамку */
    padding: 12px 20px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(213, 47, 47, 0.2) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px;
}

.btn-view-project:hover {
    /* Меняем направление градиента при наведении и усиливаем свечение */
    background: linear-gradient(135deg, #B71C1C 0%, #7F1D1D 100%) !important;
    box-shadow: 0 6px 18px rgba(213, 47, 47, 0.4) !important;
    transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 1199px) {
    .projects-grid { flex-wrap: wrap !important; }
    .project-card { width: calc(50% - 13px) !important; }
}
@media (max-width: 767px) {
    .project-card { width: 100% !important; }
}

/* ==========================================================================
   СОВРЕМЕННЫЙ СТРОИТЕЛЬНЫЙ ПОДВАЛ (ФУТЕР)
   ========================================================================== */
.stroy-footer {
    background-color: #0B1424; /* Сверхглубокий темно-синий для отделения от каталога */
    color: #ffffff;
    padding: 70px 0 0 0;
    border-top: 2px solid var(--accent-red);
}

.footer-grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer-col {
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Красная черточка под заголовками в подвале */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-red);
}

/* Логотип в футере */
.footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.footer-logo span {
    color: var(--accent-red);
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.6;
    color: #A2A9B5;
    margin-bottom: 20px;
}

/* Иконки соцсетей в футере */
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none !important;
}
.footer-socials a:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

/* Ссылки */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #A2A9B5 !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
}
.footer-links-list a i {
    font-size: 12px;
    margin-right: 4px;
    color: var(--accent-red);
}
.footer-links-list a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

/* Блок официальных реквизитов */
.footer-requisites {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
}
.footer-requisites p {
    font-size: 13px;
    margin-bottom: 8px;
    color: #D1D5DB;
    line-height: 1.4;
}
.footer-requisites p strong {
    color: #E5E0D5;
}
.req-grid {
    display: flex;
    gap: 20px;
}
.req-grid p {
    flex: 1;
}
.footer-mail-link {
    margin-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 10px;
    font-size: 14px !important;
}
.footer-mail-link a {
    color: #FF8A8A !important;
    text-decoration: underline !important;
}

/* Нижняя финальная полоса */
.footer-bottom-bar {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    font-size: 12px;
    color: #6C757D;
}
.copyright-text {
    color: #A2A9B5;
}

/* Адаптивность для мобилок */
@media (max-width: 767px) {
    .footer-grid-row { flex-direction: column; }
    .req-grid { flex-direction: column; gap: 0; }
    .footer-bottom-bar { text-align: center; }
    .dev-text { text-align: center !important; margin-top: 5px; }
}
/* ==========================================================================
   ИЗОЛИРОВАННАЯ GRID-ГАЛЕРЕЯ (ФИКС КРИВОЙ СЕТКИ)
   ========================================================================== */
.gallery-stroy-section {
    background-color: #ffffff !important;
    padding: 80px 0 !important;
    border-top: 1px solid #E5E0D5 !important;
    display: block !important;
    clear: both !important; /* Сброс обтекания Bootstrap */
}

.gallery-stroy-section .section-title-block h2 {
    color: var(--dark-blue) !important;
}
.gallery-stroy-section .section-title-block p {
    color: #7F8C8D !important;
    margin-bottom: 45px;
}

/* Принудительный сброс сетки */
.stroy-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 240px !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Элемент плитки */
.gallery-item {
    position: relative !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #E5E0D5 !important;
    background-color: var(--bg-beige) !important;
    width: auto !important; /* Сброс ширины Bootstrap */
    height: 100% !important;
    margin: 0 !important; /* Сброс отступов Bootstrap */
    padding: 0 !important;
}

.gallery-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

/* Жесткое подавление стилей картинок OpenCart */
.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important; /* Картинка полностью заполнит ячейку без искажений */
    display: block !important;
    transition: transform 0.5s ease !important;
}

/* Две крупные акцентные карточки */
.stroy-gallery-grid .item-large-1 {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
}
.stroy-gallery-grid .item-large-2 {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
}

/* Вуаль при наведении */
.gallery-item-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(26, 43, 76, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 26px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 2 !important;
}

.gallery-item:hover {
    border-color: #C5BFA5 !important;
    box-shadow: 0 10px 25px rgba(229, 224, 213, 0.3) !important;
}
.gallery-item:hover img {
    transform: scale(1.05) !important;
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1 !important;
}

/* АДАПТИВНОСТЬ (Перебиваем старый Bootstrap) */
@media (max-width: 991px) {
    .stroy-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* По 2 в ряд на планшетах */
        grid-auto-rows: 200px !important;
    }
    .stroy-gallery-grid .item-large-1, 
    .stroy-gallery-grid .item-large-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}
@media (max-width: 480px) {
    .stroy-gallery-grid {
        grid-template-columns: 1fr !important; /* В один столбец на мобильных */
        grid-auto-rows: 250px !important;
    }
}
/* ==========================================================================
   СЕКЦИЯ О КОМПАНИИ (2 КОЛОНКИ: ТЕКСТ + PNG ФОТО)
   ========================================================================== */
.about-stroy-section {
    background-color: #ffffff !important;
    padding: 80px 0 0 0 !important; /* Нижний отступ 0, чтобы PNG уходила в край */
    border-top: 1px solid #E5E0D5;
    overflow: hidden;
    display: block !important;
    clear: both !important;
}

.about-flex-row {
    display: flex !important;
    align-items: flex-end !important; /* Выравнивание по низу, чтобы картинка стояла на линии */
    flex-wrap: wrap;
}

/* Левая текстовая колонка */
.about-text-col {
    padding-bottom: 60px; /* Делаем отступ снизу для текста, так как у колонки отступ 0 */
}
.about-subtitle {
    display: inline-block;
    background-color: rgba(26, 43, 76, 0.05);
    color: var(--dark-blue);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.about-text-col h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 25px;
}
.about-paragraphs p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Блок с цифрами-достижениями */
.about-mini-features {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    border-top: 1px solid #E5E0D5;
    padding-top: 25px;
}
.mini-feat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
}
.feat-txt {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.4;
}

/* Правая колонка с PNG */
.about-img-col {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.about-transparent-img-box {
    position: relative;
    max-height: 520px;
}
.about-png-img {
    max-height: 500px;
    width: auto;
    display: block;
}
/* Красивая заглушка, если фотки еще нет на сервере */
.about-icon-placeholder {
    height: 400px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 130px;
    color: #E5E0D5;
    padding-bottom: 30px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .about-flex-row { flex-direction: column; }
    .about-text-col { padding-bottom: 40px; }
    .about-img-col { display: none; } /* Скрываем зону фото на мобилках, если нет картинки */
    .about-mini-features { flex-direction: column; gap: 20px; }
}
