/* =========================================
   1. ОБНОВЛЕННАЯ ПАЛИТРА - ПРОФЕССИОНАЛЬНЫЕ ЦВЕТА РЕМОНТА
   ========================================= */
:root {
    /* Основные цвета - древесные тона */
    --color-primary: #5D4037;          /* Темное дерево */
    --color-primary-light: #795548;    /* Коричневый древесный */
    --color-primary-dark: #3E2723;     /* Очень темное дерево */
    
    /* Дополнительные цвета */
    --color-secondary: #4E342E;        /* Коричневый для акцентов */
    --color-accent: #8D6E63;           /* Светло-коричневый */
    --color-warning: #D7CCC8;          /* Светлый бежевый для акцентов */
    
    /* Нейтральные цвета */
    --color-light: #FAF9F6;
    --color-light-section: #F5F5F5;
    --color-white: #FFFFFF;
    --color-dark: #333333;             /* Темно-серый для текста */
    --color-dark-section: #263238;     /* Темный сине-серый для footer */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-dark-section) 0%, #37474F 100%);
    --gradient-hero: linear-gradient(135deg, #3E2723 0%, #5D4037 50%, #795548 100%);
}

/* =========================================
   2. HEADER (упрощенный)
   ========================================= */
.navbar {
    padding: 15px 0 !important;
    transition: all 0.3s ease;
    background-color: var(--color-white) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar.fixed-top {
    background-color: var(--color-white) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--color-dark) !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}



/* =========================================
   3. HERO SECTION - НОВЫЙ ГРАДИЕНТ
   ========================================= */
.hero-banner {
    min-height: 70vh;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3E2723 0%, #5D4037 50%, #8D6E63 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-text-content {
    color: white;
    text-align: left;
    position: relative;
    z-index: 10;
}

.hero-text-content h1,
.hero-text-content h2,
.hero-text-content p,
.hero-text-content a {
    opacity: 1 !important;
    visibility: visible !important;
}

.main-title {
    font-size: 3.5rem !important;
    font-weight: 800;
    color: white !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    margin-bottom: 1.5rem;
}

.sub-title {
    font-size: 2.2rem !important;
    color: #FFECB3 !important; /* Светлый золотистый для контраста */
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 20px 0 30px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

/* =========================================
   4. WHY CHOOSE US - ИСПРАВЛЕННЫЙ ЦВЕТ ЗАГОЛОВКОВ
   ========================================= */
/* Заголовки теперь коричневые, а не синие */
.bg-light-section h3.fw-bold {
    color: var(--color-primary) !important; /* Коричневый цвет */
}

.bg-light-section .text-primary {
    color: var(--color-primary) !important; /* Коричневый вместо синего */
}

/* =========================================
   5. STATISTICS SECTION - НОВЫЙ ДИЗАЙН
   ========================================= */
.statistics-section {
    padding: 60px 0;
}

.statistic-item {
    text-align: center;
    padding: 20px 15px;
    position: relative;
    margin-bottom: 20px;
}

.statistic-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary) !important; /* Коричневый цвет */
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.statistic-label {
    font-size: 1rem;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    display: block;
}

/* Декоративные элементы для статистики */
.statistic-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Простой дизайн без hover эффектов */
.stat-box {
    padding: 25px 15px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid transparent;
    text-align: center;
    margin-bottom: 20px;
}

.stat-box .display-4 {
    color: var(--color-primary) !important; /* Коричневый цвет */
    font-weight: 700;
}

/* =========================================
   6. DIFFERENCE CARDS
   ========================================= */
.difference-card {
    padding: 25px;
    border-radius: 12px;
    background: var(--color-white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    height: 100%;
}

.difference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(93, 64, 55, 0.15);
    border-color: var(--color-accent);
}

.difference-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.difference-card:hover .difference-icon {
    transform: rotate(10deg) scale(1.05);
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

.difference-card h4 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.difference-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.difference-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.difference-features li {
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.difference-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* =========================================
   7. КНОПКИ
   ========================================= */
.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.3);
    color: white !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background: transparent !important;
    color: white !important;
    transition: all 0.3s ease;
    padding: 12px 35px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: white !important;
    transform: translateY(-3px);
}

/* =========================================
   8. ГАМБУРГЕР МЕНЮ
   ========================================= */
.hamburger-menu {
    width: 35px;
    height: 25px;
    position: relative;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
    background-color: var(--color-primary);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
    background-color: var(--color-primary);
}

/* =========================================
   9. ФОНЫ СЕКЦИЙ
   ========================================= */
.bg-light-section {
    background-color: var(--color-light-section) !important;
}

.bg-white-custom {
    background-color: var(--color-white) !important;
}

.bg-primary-gradient {
    background: var(--gradient-primary) !important;
}

/* =========================================
   10. ЗАГОЛОВКИ
   ========================================= */
.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title-dark {
    color: var(--color-dark) !important;
}

/* =========================================
   11. КАРУСЕЛЬ
   ========================================= */
.floor-carousel-inner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 550px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.8s ease;
}

.carousel-content-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 40px;
    background: linear-gradient(to top, rgba(43, 34, 21, 0.95) 0%, rgba(43, 34, 21, 0.8) 50%, transparent 100%);
}

.carousel-content {
    color: white;
    text-align: left;
    max-width: 800px;
}

.carousel-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-description {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 650px;
    line-height: 1.6;
}

/* =========================================
   12. FEATURE ITEMS
   ========================================= */
.feature-img {
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.feature-img:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* =========================================
   13. SERVICE AREA
   ========================================= */
.service-area-compact {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.service-area-img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.service-area-img:hover {
    transform: scale(1.02);
}

/* =========================================
   14. CTA FOOTER - УВЕЛИЧИВАЕМ ОТСТУП СНИЗУ
   ========================================= */
.cta-footer {
    padding: 80px 0 !important; /* Увеличиваем отступы */
    margin-bottom: 0 !important;
}

/* =========================================
   15. FOOTER (КОМПАКТНЫЙ)
   ========================================= */
.site-footer {
    padding: 40px 0 20px !important; /* Компактные отступы */
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark-section) !important;
    margin-top: 0 !important;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-primary));
}

.site-footer a {
    color: #D7CCC8 !important; /* Светлый бежевый для ссылок */
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: white !important;
}

.footer-logo {
    max-height: 45px; /* Уменьшили логотип */
    width: auto;
    margin-bottom: 15px;
}

.site-footer p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #B0BEC5;
    margin-bottom: 10px;
}

.site-footer h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.site-footer h6 {
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Уменьшили */
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: all 0.2s ease;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Уменьшаем отступы в footer */
.site-footer .mb-4 {
    margin-bottom: 1.2rem !important;
}

.site-footer hr {
    margin: 1.2rem 0 0.8rem !important;
    opacity: 0.2;
}

.site-footer .small-text {
    font-size: 0.8rem;
}

/* =========================================
   16. ВИЗУАЛЬНЫЙ РАЗДЕЛИТЕЛЬ
   ========================================= */
.section-divider {
    padding: 0;
    margin: 0;
    background: linear-gradient(to right, transparent, var(--color-light-section), transparent);
}

.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    margin: 0;
    opacity: 0.2;
}

/* =========================================
   17. АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1200px) {
    .main-title {
        font-size: 3.2rem !important;
    }
    
    .sub-title {
        font-size: 2rem !important;
    }
    
    .statistic-number {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        min-height: 60vh;
        padding: 80px 0;
    }
    
    .main-title {
        font-size: 2.8rem !important;
    }
    
    .sub-title {
        font-size: 1.8rem !important;
    }
    
    .hero-text-content {
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .floor-carousel-inner {
        height: 450px;
    }
    
    .cta-footer {
        padding: 60px 0 !important;
    }
    
    .site-footer {
        padding: 35px 0 15px !important;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 55vh;
        padding: 60px 0;
    }
    
    .main-title {
        font-size: 2.4rem !important;
    }
    
    .sub-title {
        font-size: 1.6rem !important;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .floor-carousel-inner {
        height: 400px;
    }
    
    .carousel-content-container {
        padding: 20px;
    }
    
    .carousel-title {
        font-size: 1.6rem;
    }
    
    .service-area-img {
        max-height: 220px;
        margin-bottom: 25px;
    }
    
    .cta-footer {
        padding: 50px 0 !important;
    }
    
    .site-footer {
        padding: 30px 0 12px !important;
    }
    
    .statistic-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 50vh;
    }
    
    .main-title {
        font-size: 2rem !important;
    }
    
    .sub-title {
        font-size: 1.4rem !important;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .floor-carousel-inner {
        height: 350px;
    }
    
    .carousel-title {
        font-size: 1.4rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
    
    .cta-footer {
        padding: 40px 0 !important;
    }
    
    .site-footer {
        padding: 25px 0 10px !important;
    }
    
    .footer-logo {
        max-height: 40px;
    }
    
    .statistic-number {
        font-size: 2.2rem;
    }
}


/* =========================================
   18. SERVICE AREA ENHANCEMENTS
   ========================================= */

/* Облако тегов городов */
.city-cloud {
    background: linear-gradient(135deg, var(--color-light-section) 0%, var(--color-white) 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(93, 64, 55, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.city-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-white);
    border-radius: 50px;
    font-weight: 500;
    color: var(--color-primary);
    border: 2px solid rgba(93, 64, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.city-tag:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.2);
    z-index: 10;
}

.city-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.city-tag:hover::before {
    left: 100%;
}

/* Фильтры по регионам */
.region-filter {
    margin-bottom: 30px;
}

.region-btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.region-btn.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 64, 55, 0.2);
}

.region-btn:hover:not(.active) {
    transform: translateY(-2px);
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

/* Статистика покрытия */
.coverage-stats {
    padding: 20px;
    background: var(--color-light-section);
    border-radius: 15px;
    border: 1px solid rgba(93, 64, 55, 0.1);
}

.stat-box-small {
    padding: 15px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(93, 64, 55, 0.1);
    transition: all 0.3s ease;
}

.stat-box-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.15);
    border-color: var(--color-accent);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Модальное окно с городами */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-light-section) 0%, var(--color-white) 100%);
    border-bottom: 2px solid var(--color-light-section);
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.modal-body ul li:hover {
    padding-left: 10px;
    color: var(--color-primary);
}

.modal-body ul li i {
    transition: transform 0.3s ease;
}

.modal-body ul li:hover i {
    transform: scale(1.2);
}

/* Анимация для фильтрации городов */
.city-tag.hidden {
    opacity: 0.3;
    transform: scale(0.9);
    pointer-events: none;
}

.city-tag.visible {
    animation: tagPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes tagPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    70% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Адаптивность для облака тегов */
@media (max-width: 768px) {
    .city-tag {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .city-cloud {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .region-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .city-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .stat-box-small {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}



/* ===== Fix: make coverage stat numbers dark and readable ===== */

/* Targeting only the coverage stats area so change is local and safe */
.coverage-stats .stat-box-small .stat-number,
.coverage-stats .stat-number,
.coverage-section .stat-number {
  color: var(--color-primary) !important;        /* dark wood color from palette */
  text-shadow: 0 2px 0 rgba(0,0,0,0.06) !important; /* subtle lift, not white glow */
  -webkit-text-stroke: 0 !important;             /* remove any accidental strokes */
  filter: none !important;                       /* cancel filters if applied */
  opacity: 1 !important;
  font-size: 1.9rem;                              /* keep the size (adjust if you want larger) */
  font-weight: 800;
}

/* Ensure stat boxes background remains light so numbers contrast */
.coverage-stats .stat-box-small {
  background: var(--color-white) !important;
  color: inherit;
}

/* In case a global rule is adding white color via parent selector, force inheritance */
.coverage-stats,
.coverage-section {
  color: inherit;
}

/* If there was an unwanted inset text shadow producing the washed look, neutralize it */
.coverage-stats .stat-box-small .stat-number,
.coverage-section .stat-number {
  text-shadow: 0 2px 0 rgba(0,0,0,0.06) !important;
}

/* Mobile tweak: slightly smaller but still readable */
@media (max-width: 768px) {
  .coverage-stats .stat-number {
    font-size: 1.6rem !important;
  }
}





/* =========================================
   КНОПКИ В СТИЛЕ ДРЕВЕСНЫХ ТОНОВ
   ========================================= */

/* Кастомные outline кнопки в коричневых тонах */
.btn-outline-custom {
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-outline-custom:hover {
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.2);
}

.btn-outline-custom:active, 
.btn-outline-custom:focus {
    color: white;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3) !important;
    transform: translateY(-1px);
}

/* Активное состояние для кнопок фильтрации */
.region-btn.btn-outline-custom.active {
    color: white;
    background: var(--gradient-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.2);
}

/* Эффект свечения при наведении */
.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-outline-custom:hover::before {
    left: 100%;
}

/* Стили для кнопок в модальном окне (уже используемые) */
.modal-footer .btn-outline-secondary {
    color: var(--color-dark);
    border-color: #ccc;
}

.modal-footer .btn-outline-secondary:hover {
    color: var(--color-dark);
    background-color: #f8f9fa;
    border-color: #bbb;
}

/* Дополнительные стили для региона фильтров, чтобы кнопки выглядели единообразно */
.region-btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Убедимся, что активное состояние кнопок фильтрации переопределяет стандартные стили */
.region-filter .btn-outline-custom.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Для кнопки View Complete City List делаем немного больше */
.text-center .btn-outline-custom {
    padding: 10px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .region-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .text-center .btn-outline-custom {
        padding: 8px 20px;
        font-size: 1rem;
    }
}









/* =========================================
   19. ESTIMATE FORM STYLES
   ========================================= */

/* Hero Section for Estimate */
/* ===== Fix for estimate hero + form overlap ===== */

/* Hero: даём больше "высоты" и центрируем контент по вертикали */
.estimate-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 100px 0 80px;    /* больше отступов сверху и снизу */
    margin-top: 85px;
    min-height: 200px;        /* гарантированная высота, чтобы h1 не садился на форму */
    display: flex;
    align-items: center;      /* выровнять контент по центру вертикально */
}

/* Форму не подтягиваем внутрь hero отрицательным margin.
   Вместо -50px ставим небольшой положительный отступ, чтобы форма выглядела отделённой */
.estimate-form {
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(93, 64, 55, 0.1);
    padding: 40px;
    margin-top: 30px;        /* ПОЛОЖИТЕЛЬНЫЙ отступ вместо -50px */
    position: relative;
    z-index: 10;
}

/* Если использовались секции с тёмными/абсолютными декорациями — форма должна быть над ними */
.form-section { position: relative; z-index: 5; }

/* Мобильные подстройки */
@media (max-width: 768px) {
    .estimate-hero {
        padding: 64px 0 40px;
        min-height: 260px;
        margin-top: 70px;
    }
    .estimate-form {
        padding: 24px;
        margin-top: 18px;
    }
}

/* На очень узких экранах оставляем компактный вид */
@media (max-width: 576px) {
    .estimate-hero {
        padding: 48px 0 32px;
        min-height: 220px;
    }
    .estimate-form {
        padding: 18px 12px;
        margin-top: 14px;
    }
}
.form-step-title {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 10px;
    margin-bottom: 25px;
    position: relative;
    font-size: 1.5rem;
}

.form-step-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(93, 64, 55, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.required-star {
    color: #dc3545;
    font-weight: bold;
}

/* Стили для селектов и текстовых областей */
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(93, 64, 55, 0.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Стиль для кнопки отправки */
.submit-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.2);
    width: 100%;
    font-size: 1.1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.3);
    color: white;
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Информационный блок */
.form-info-box {
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.05) 0%, rgba(141, 110, 99, 0.05) 100%);
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.form-info-box h5 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.form-info-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.form-info-box li {
    margin-bottom: 8px;
    color: #666;
}

.form-info-box li:last-child {
    margin-bottom: 0;
}

/* Стили для input groups с иконками */
.input-group-text {
    background-color: var(--color-light-section);
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    border-color: var(--color-primary);
    background-color: rgba(93, 64, 55, 0.05);
}

/* Адаптивность для формы оценки */
@media (max-width: 768px) {
    .estimate-form {
        padding: 25px;
        margin-top: -30px;
    }
    
    .estimate-hero {
        padding: 60px 0 40px;
        margin-top: 70px;
    }
    
    .form-step-title {
        font-size: 1.3rem;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .estimate-form {
        padding: 20px 15px;
    }
    
    .estimate-hero h1 {
        font-size: 2.2rem !important;
    }
    
    .estimate-hero p.lead {
        font-size: 1.1rem;
    }
    
    .form-step-title {
        font-size: 1.2rem;
    }
}


/* =========================================
   CONTACT PAGE STYLES - USING MAIN PAGE PALETTE
   ========================================= */

:root {
  /* Основные цвета - древесные тона из главной страницы */
  --color-primary: #5D4037;          /* Темное дерево */
  --color-primary-light: #795548;    /* Коричневый древесный */
  --color-primary-dark: #3E2723;     /* Очень темное дерево */
  --color-secondary: #4E342E;        /* Коричневый для акцентов */
  --color-accent: #8D6E63;           /* Светло-коричневый */
  --color-warning: #D7CCC8;          /* Светлый бежевый для акцентов */
  --color-light: #FAF9F6;
  --color-light-section: #F5F5F5;
  --color-white: #FFFFFF;
  --color-dark: #333333;
  --color-dark-section: #263238;
  --emergency: #D32F2F;
  --success: #2E7D32;
  --border-color: rgba(93, 64, 55, 0.15);
  --overlay: rgba(62, 39, 35, 0.85); /* Темно-коричневый оверлей */
}

body {
  background-color: var(--color-white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-dark);
  line-height: 1.6;
}

/* MINIMALIST HERO */
.minimal-hero {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white !important;
  margin-bottom: 16px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.hero-divider {
  margin-top: 40px;
  position: relative;
  height: 1px;
}

.divider-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-warning);
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.divider-line.expanded {
  width: 100px;
}

/* CONTACT INFORMATION SECTION */
.contact-info-section {
  background-color: var(--color-white);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary) !important;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Contact Details */
.contact-details {
  padding-right: 40px;
}

@media (max-width: 992px) {
  .contact-details {
    padding-right: 0;
  }
}

.contact-item {
  display: flex;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(93, 64, 55, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: rotate(15deg);
  background: rgba(93, 64, 55, 0.1);
}

.contact-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-link {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-primary-light) !important;
}

.contact-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-dark);
  line-height: 1.5;
  margin: 0;
}

.cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cities-list span {
  padding: 6px 12px;
  background: rgba(93, 64, 55, 0.08);
  color: var(--color-primary);
  font-size: 0.85rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cities-list span:hover {
  background: rgba(93, 64, 55, 0.15);
  transform: translateY(-2px);
}

.hours-grid {
  margin-top: 8px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.hour-row:last-child {
  border-bottom: none;
}

.hour-row span:first-child {
  color: var(--color-dark);
}

.hour-row .emergency {
  color: var(--emergency);
  font-weight: 600;
}

/* COMPANY INFO SECTION */
.company-info-section {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.company-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  padding: 40px;
}

.company-content {
  color: white;
  width: 100%;
}

.company-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.company-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.company-stats {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quick-access-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.quick-access-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-access-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quick-access-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: white;
}

.quick-access-btn i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* PROCESS SECTION */
.process-section {
  background: var(--color-light-section);
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(93, 64, 55, 0.1);
  margin-right: 30px;
  transition: color 0.5s ease;
  min-width: 80px;
}

.step-number.animate {
  color: var(--color-primary);
  animation: countUp 1s ease-out;
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.step-content p {
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.step-line {
  position: absolute;
  left: 40px;
  top: 70px;
  bottom: -40px;
  width: 1px;
  background: rgba(93, 64, 55, 0.2);
}

.process-step:last-child .step-line {
  display: none;
}

/* SERVICE GUARANTEE */
.guarantee-section {
  background: var(--color-white);
}

.guarantee-card {
  background: var(--color-light);
  padding: 40px;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.guarantee-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.guarantee-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.feature span {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
}

.btn-call {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.2);
}

.btn-call:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 64, 55, 0.3);
}

/* COVERAGE AREA */
.coverage-section {
  background: var(--color-white);
}

.coverage-map-wrapper {
  background: var(--color-light-section);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.map-container {
  width: 100%;
  height: 400px;
  position: relative;
  background: #f5f5f5;
}

.google-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
  color: var(--color-primary);
}

.map-message {
  text-align: center;
  padding: 20px;
}

.map-message h4 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.map-message p {
  color: var(--color-dark);
}

.coverage-info {
  padding: 30px;
}

.coverage-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.coverage-info p {
  color: var(--color-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.coverage-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.area-tag {
  padding: 8px 16px;
  background: white;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.area-tag:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.coverage-notes {
  background: rgba(93, 64, 55, 0.05);
  border-radius: 8px;
  padding: 20px;
}

.coverage-note {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.coverage-note i {
  color: var(--color-primary);
  margin-right: 10px;
}

/* PROFESSIONAL INFO */
.professional-info {
  background: var(--color-light-section);
  border-top: 1px solid var(--border-color);
}

.info-block {
  text-align: center;
  padding: 30px;
  background: var(--color-white);
  border-radius: 8px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid transparent;
}

.info-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(93, 64, 55, 0.15);
  border-color: var(--color-accent);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.info-block:hover .info-icon {
  transform: rotate(10deg) scale(1.05);
}

.info-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.info-block p {
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-link,
  .contact-text {
    font-size: 1.2rem;
  }
  
  .company-overlay {
    padding: 30px;
  }
  
  .company-title {
    font-size: 1.8rem;
  }
  
  .process-step {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .contact-item {
    flex-direction: column;
  }
  
  .contact-icon {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .company-overlay {
    padding: 20px;
  }
  
  .company-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .guarantee-card {
    padding: 30px 20px;
  }
  
  .map-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .minimal-hero {
    padding: 60px 0 30px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .contact-link,
  .contact-text {
    font-size: 1.1rem;
  }
  
  .process-step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .step-line {
    display: none;
  }
  
  .quick-access-buttons {
    gap: 8px;
  }
  
  .quick-access-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}



/* =========================================
   FIX: ИСПРАВЛЕНИЕ КАРТЫ ДЛЯ МОБИЛЬНЫХ
   ========================================= */

/* 1. Жесткая фиксация контейнера карты */
.map-container {
  position: relative; /* Обязательно для позиционирования iframe */
  width: 100%;
  height: 400px; /* Высота по умолчанию для ПК */
  background: #eee; /* Цвет фона пока карта грузится */
  overflow: hidden; /* Обрезает все, что вылезает */
}

/* 2. Заставляем iframe слушаться родителя, а не атрибуты HTML */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important; /* Теперь карта займет ровно высоту контейнера */
  border: none;
}

/* 3. Настройки специально для мобильных экранов */
@media (max-width: 768px) {
  /* Уменьшаем высоту карты, чтобы она не занимала весь экран телефона */
  .map-container {
    height: 250px !important; 
  }

  /* Исправляем блок с текстом под картой */
  .coverage-info {
    padding: 25px 20px !important; /* Чуть меньше отступы по бокам */
    background: var(--color-light-section);
    position: relative;
    z-index: 2; /* Гарантирует, что текст будет ПОВЕРХ карты, если вдруг что */
  }

  /* Делаем список городов аккуратнее */
  .coverage-areas {
    justify-content: center; /* Центрируем теги городов */
    gap: 8px;
  }
  
  .area-tag {
    font-size: 0.8rem; /* Чуть меньше шрифт тегов */
    padding: 6px 12px;
  }
  
  /* Выравниваем заголовок и текст */
  .coverage-info h3, 
  .coverage-info p {
    text-align: center;
  }
}



/* ===== Fixes for mobile company section + remove unwanted stripe under specific headings ===== */

/* 1) Ensure company-info-section behaves correctly on desktop */
.company-info-section {
  position: relative;   /* keep background and overlay relative to this container */
  min-height: 420px;    /* slightly smaller but safe default for desktop */
  overflow: hidden;     /* keep decorative background clipped on wide screens */
}

/* overlay should sit on top */
.company-info-section .company-overlay {
  position: absolute;
  inset: 0;                  /* top:0; right:0; bottom:0; left:0; */
  z-index: 2;                /* above background */
  display: flex;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

/* Make company content responsive and not clipped */
.company-info-section .company-content { width: 100%; }

/* 2) Mobile: switch overlay into normal flow so content is visible and scrollable */
@media (max-width: 768px) {
  .company-info-section {
    min-height: auto;       /* let content dictate height */
    overflow: visible;      /* allow the content to expand */
  }

  .company-info-section .company-overlay {
    position: relative;     /* flow with document */
    inset: auto;
    padding: 20px;          /* smaller padding for mobile */
    align-items: flex-start;/* stack from top */
  }

  .company-info-section .company-stats {
    flex-direction: column;
    gap: 12px;
  }

  /* Reduce large numbers so they fit better on narrow screens */
  .company-stats .stat-number {
    font-size: 1.6rem;
  }
}

/* 3) If some browsers have trouble with background-attachment: fixed, ensure it falls back */
@supports (-webkit-overflow-scrolling: touch) {
  .company-info-section { background-attachment: scroll !important; }
}

/* 4) Remove small decorative underline (pseudo element) for specific sections
   - prevents the small "stripe" appearing under some section titles (Process, Coverage) */
.process-section .section-title::after,
.coverage-section .section-title::after {
  display: none !important;
}

/* If you prefer to hide that underline for all section titles on small screens */
@media (max-width: 576px) {
  .section-title::after { display: none !important; }
}

/* 5) Fix for possible thin rule/line shown near headings:
   Some themes add a global .divider or border — normalize for headings in problem areas */
.process-section .section-title,
.coverage-section .section-title {
  position: relative;
}

/* 6) Defensive: ensure step-line doesn't create an unwanted horizontal artifact near top */
.process-steps .step-line {
  left: 24px;    /* bring it in line with numbers if needed */
  top: 90px;     /* ensure it starts below the header area */
  bottom: -40px;
}

/* 7) Small safety: ensure text remains readable over photo overlay */
.company-info-section .company-content,
.company-info-section .company-text,
.company-info-section .company-title,
.company-info-section .company-stats,
.company-info-section .quick-access-title {
  color: #fff !important;
}

/* 8) If content still hidden on some phones, force visible */
.company-info-section, .company-info-section * {
  -webkit-transform: none !important;
  transform: none !important;
}




/* === Убрать декоративную полоску для Contact Information (как мы сделали для Process / Coverage) === */
.contact-info-section .section-title::after {
  display: none !important;
}

/* === Смещение кнопки Emergency Call на мобильных — увеличить отступ сверху === */
/* применяем для узких экранов, где колонки стекуются */
@media (max-width: 576px) {
  .guarantee-section .btn-call {
    margin-top: 16px !important;   /* отодвигаем кнопку вниз */
    display: inline-block;         /* сохраняем поведение кнопки */
  }

  /* если кнопка внутри колонки с выравниванием по правому краю,
     убедимся, что она перестроится корректно */
  .guarantee-section .text-lg-end {
    text-align: left !important;   /* на мобильных выравниваем влево, чтобы кнопка не «липла» к краю */
  }
}

/* Дополнительный defensive tweak: если где-то ещё остаётся похожая полоска,
   скрыть псевдоэлементы для всех section-title в мобильной версии */
@media (max-width: 576px) {
  .section-title::after {
    display: none !important;
  }
}



/* =========================================
   ИСПРАВЛЕНИЕ ПРОБЕЛОВ В ГЕРОЕ
   ========================================= */

.contact-hero h1 {
    margin-bottom: 10px !important;
    font-size: 2.5rem !important;
}

.contact-hero .lead {
    margin-bottom: 0 !important;
    font-size: 1.1rem !important;
    opacity: 0.9;
}

/* Дополнительное уменьшение отступов в hero */
.contact-hero .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Убираем лишние отступы в row */
.contact-hero .row {
    margin: 0 !important;
}

.contact-hero .col-lg-8 {
    padding: 0 !important;
}


/* --- Секция и Кнопка (Оставляем как было, с небольшими правками) --- */
.interactive-gallery-section {
    background-color: #f8f5f0;
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden; 
}

/* Стили кнопки */
.btn-expand-gallery {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 35px 15px 55px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(93, 64, 55, 0.25);
    transition: all 0.3s ease;
    z-index: 5;
}

.btn-expand-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(93, 64, 55, 0.35);
}

.btn-icon {
    background: rgba(255,255,255,0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Превью плитки (background images те же, что у вас в коде) */
.gallery-toggle-wrapper { position: relative; display: inline-block; }
.gallery-preview {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    pointer-events: none; z-index: 1;
    transition: 0.5s ease;
}
.btn-expand-gallery:hover ~ .gallery-preview { transform: translate(-50%, -50%) scale(1.2); }

.preview-tile {
    position: absolute; width: 35px; height: 35px;
    border-radius: 6px; background-size: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.5s ease;
}
/* Позиции плиток */
.preview-tile-1 { top: 0; left: 0; transform: rotate(-5deg); background-image: url('imgs/WhatsApp Image 2025-12-20 at 20.36.33(3).jpeg'); }
.preview-tile-2 { top: 0; right: 0; transform: rotate(5deg); background-image: url('imgs/WhatsApp Image 2025-12-20 at 20.36.33.jpeg'); }
.preview-tile-3 { bottom: 0; left: 0; transform: rotate(-5deg); background-image: url('imgs/WhatsApp Image 2025-12-20 at 20.36.33(2).jpeg'); }
.preview-tile-4 { bottom: 0; right: 0; transform: rotate(5deg); background-image: url('imgs/WhatsApp Image 2025-12-20 at 20.36.33(1).jpeg'); }

.btn-expand-gallery:hover ~ .gallery-preview .preview-tile-1 { transform: translate(-10px, -10px) rotate(-10deg); }
.btn-expand-gallery:hover ~ .gallery-preview .preview-tile-2 { transform: translate(10px, -10px) rotate(10deg); }
.btn-expand-gallery:hover ~ .gallery-preview .preview-tile-3 { transform: translate(-10px, 10px) rotate(-10deg); }
.btn-expand-gallery:hover ~ .gallery-preview .preview-tile-4 { transform: translate(10px, 10px) rotate(10deg); }


/* --- МОДАЛЬНОЕ ОКНО (Обновленные стили для мобильных) --- */
.gallery-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(40, 30, 25, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 15px; /* Отступы от краев экрана */
}

.gallery-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само окно */
.gallery-modal-window {
    background: #fff;
    width: 100%;
    max-width: 900px;
    /* ВАЖНО ДЛЯ МОБИЛЬНЫХ: */
    max-height: 90vh; /* Окно не больше 90% высоты экрана */
    overflow-y: auto; /* Включаем скролл ВНУТРИ окна */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iPhone */
    
    border-radius: 20px;
    padding: 40px 30px 30px; /* Сверху больше места для крестика */
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.gallery-modal-overlay.active .gallery-modal-window {
    transform: scale(1) translateY(0);
}

/* Кнопка закрытия */
.modal-close-btn {
    position: absolute; /* Или fixed, если хотите чтобы она всегда висела в углу */
    top: 15px; 
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-close-btn:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

/* Контент заголовка */
.modal-header-content {
    text-align: center;
    margin-bottom: 25px;
}

/* Сетка фотографий */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-bottom: 10px;
}

.gallery-grid-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-bottom: 75%; /* Aspect ratio */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-modal-overlay.active .gallery-grid-item {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid-item img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 576px) {
    .gallery-modal-window {
        padding: 50px 20px 20px; /* Еще больше места сверху для пальца/кнопки */
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
        gap: 20px;
    }
    
    .modal-close-btn {
        width: 44px; /* Кнопка крупнее для пальца */
        height: 44px;
        top: 10px;
        right: 10px;
        background: #f8f9fa;
    }
}



/* === ready-cta: slide-in справа + overlay прижат к низу === */


/* === ready-cta: slide-in справа + overlay прижат к низу === */
/* === ready-cta: slide-in справа + overlay прижат к низу === */
/* === ready-cta: slide-in справа + overlay прижат к низу === */
.ready-cta {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  overflow: hidden;
  background: #f6f4f3;
  padding: 0;
}

/* Левая колонка */
.ready-cta__left {
  flex: 0 0 50%;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}
.ready-cta__left h2 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: #2f1e18;
  line-height: 1.05;
}
.ready-cta__left p.lead {
  color: #5b4a45;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.ready-cta__left .cta-actions { margin-top: 10px; }
.ready-cta__left .btn-primary {
  background: #a84f3b;
  border-color: #a84f3b;
  color: #fff;
  padding: 14px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(168,79,59,0.16);
}

/* ПРАВАЯ ПОЛОВИНА: фон на всю половину, без скруглений.
   Стартовое положение — за правым краем вьюпорта (translateX(100vw)), при .in-view — въезжает. */
.ready-cta__right {
  flex: 0 0 50%;
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: translateX(100vw);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2,.9,.2,1), opacity .9s cubic-bezier(.2,.9,.2,1);

  /* ВАЖНО: делаем колонку, чтобы overlay можно было прижать вниз */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* прижать содержимое к низу */
  align-items: center;       /* центрировать overlay по горизонтали; смените на flex-start для левого притяжения */
  border-radius: 0;
  will-change: transform, opacity;
  -webkit-transform: translateX(100vw);
}

/* Когда observer/JS добавит класс .in-view — элемент въезжает */
.ready-cta__right.in-view {
  transform: translateX(0);
  opacity: 1;
  -webkit-transform: translateX(0);
}

/* Overlay (затемнённая панель) — без скруглений, прижата к низу за счёт justify-content: flex-end */
.ready-cta__overlay {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 18px 22px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 86%;
  max-width: 760px;
  box-shadow: none;
  border-radius: 0;
  align-self: center;   /* центр по горизонтали; поменяй на flex-start + margin-left для левого притяжения */
  margin-bottom: 28px;  /* расстояние от низа правой половины */
}

/* Текст/иконки внутри overlay */
.ready-cta__overlay h3 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; }
.ready-cta__overlay p { margin: 0 0 12px; color: rgba(255,255,255,0.92); font-size: 0.98rem; }

.ready-cta__benefits {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px 16px;
  margin-top: 10px;
}
.benefit-item { display:flex; gap:10px; align-items:flex-start; }
.benefit-icon {
  flex:0 0 36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.08); border-radius:6px; color:#ffd9c8; font-size:16px;
}
.benefit-text { color:#fff; font-size:0.95rem; line-height:1.15; }

/* Мобильная адаптация */
@media (max-width:991.98px) {
  .ready-cta { flex-direction: column; }
  .ready-cta__left { order: 2; padding: 28px 18px; }
  .ready-cta__right { order: 1; min-height: 240px; transform: translateX(0); opacity:1; justify-content: flex-end; }
  .ready-cta__overlay { width: calc(100% - 24px); margin-bottom: 16px; padding:12px; }
  .ready-cta__benefits { grid-template-columns: 1fr; gap:10px; }
  .ready-cta__left .btn-primary { width:100%; padding:12px; }
}












/* ===== Horizontal, compact Process section (PATCH) ===== */

/* Section background: slightly different tone so it stands out */
.process-section {
  background: linear-gradient(180deg, rgba(247,244,242,1) 0%, rgba(245,242,240,1) 100%);
  padding: 28px 0;   /* a bit more compact */
}

/* Horizontal layout on desktop */
.process-steps {
  display: flex;
  gap: 18px;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 8px;
}

/* Each step becomes a compact column-card */
.process-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px; /* Уменьшил боковые отступы */
  border-radius: 12px;
  background: transparent;
  position: relative;
  min-height: 160px;
  box-sizing: border-box;
}

/* Add gentle vertical separator between steps (except last) */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px; /* small overlap so it visually sits between cards */
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(93,64,55,0.08);
  border-radius: 2px;
  pointer-events: none;
}

/* Number style: darker, larger, readable - ИСПРАВЛЕНО выравнивание */
.step-number {
  font-size: 2.4rem; /* larger and visible */
  font-weight: 800;
  color: var(--color-primary-dark); /* dark readable color */
  background: rgba(255,255,255,0.95);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(21,15,12,0.06);
  margin-bottom: 12px;
  min-width: 64px;
  text-align: center;
  line-height: 1;
  /* Центрируем блок с цифрой */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

/* preserve animate class but keep dark text */
.step-number.animate {
  color: var(--color-primary-dark);
  animation: countUp 0.85s ease-out;
}

/* Compact step content sizes */
.step-content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.step-content p {
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
}

/* Hide the old vertical connector line used for vertical layout */
.step-line {
  display: none !important;
}

/* Reduce spacing and make whole block more compact */
.process-steps,
.process-step {
  transition: all .28s ease;
}

/* Дополнительное исправление для более точного центрирования */
@media (min-width: 769px) {
  .process-step {
    padding-left: 15px; /* Слегка увеличиваем отступ слева */
    padding-right: 15px;
  }
  
  .step-number {
    width: 70px; /* Фиксированная ширина для одинакового центрирования */
  }
}

/* Mobile: revert to vertical stacked layout (original feeling),
   with numbers on the left and connector line shown as before */
@media (max-width: 768px) {
  .process-steps {
    display: block;
    max-width: 780px;
    padding: 0;
  }

  .process-step {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    padding: 12px 8px;
    min-height: auto;
    gap: 14px;
  }

  .process-step:not(:last-child)::after { display: none; } /* remove vertical separators on mobile */

  .step-number {
    font-size: 2rem;
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    color: rgba(93,64,55,0.12); /* match original faded style on mobile left numbers */
    box-shadow: none;
    text-align: left;
    /* Сбрасываем десктопные стили для мобильной версии */
    display: block;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  /* Show the original vertical connector line to maintain the flow */
  .step-line {
    display: block !important;
    position: absolute;
    left: 40px;
    top: 70px;
    bottom: -40px;
    width: 1px;
    background: rgba(93, 64, 55, 0.18);
  }

  .step-content h3 { font-size: 1.05rem; }
  .step-content p { font-size: 0.95rem; }
}

/* Very small screens: tighten further */
@media (max-width: 576px) {
  .process-section { padding: 18px 0; }
  .step-number { font-size: 1.6rem; min-width: 56px; padding: 6px 8px; }
  .process-step { padding: 10px 6px; gap: 10px; }
  .step-content h3 { font-size: 1rem; }
  .step-content p { font-size: 0.92rem; }
}

/* ----- Fix: center decorative bar under all section titles ----- */

/* Ensure titles provide a centering context */
.section-title {
  position: relative;   /* safe to have for pseudo-element positioning */
  text-align: center;   /* keep title centered */
}

/* Default decorative bar: centered under the title (uses margin auto) */
.section-title::after {
  content: "";
  display: block;
  width: 56px;                   /* change if you want longer/shorter bar */
  height: 3px;                   /* thickness */
  margin: 8px auto 0;            /* CENTER the bar */
  border-radius: 4px;
  background: var(--color-primary-dark);
  box-shadow: 0 3px 0 rgba(0,0,0,0.05);
  position: static;              /* normal flow (not absolute) */
  transform: none;
  left: auto;
  bottom: auto;
  z-index: 1;
}

/* Gallery header: remove any earlier absolute rules and fallback to the default centered bar.
   We keep a slightly different size for gallery if needed (optional). */
.interactive-gallery-section header .section-title {
  display: inline-block;  /* fine to be inline-block inside text-center */
  padding-bottom: 8px;
}

.interactive-gallery-section header .section-title::after {
  /* ensure gallery-specific pseudo-element uses same centering rules (overrides previous absolute) */
  position: static !important;
  display: block !important;
  margin: 8px auto 0 !important;
  width: 56px !important;
  height: 3px !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
}

/* Small-screen tweak: shorten the bar to fit mobile */
@media (max-width: 576px) {
  .section-title::after,
  .interactive-gallery-section header .section-title::after {
    width: 44px;
    height: 5px;
    margin-top: 6px;
  }
}

/* Fix gap under fixed header for estimate page */
html, body { margin: 0; padding: 0; }

/* Ensure navbar/footer have no unexpected margins */
header, .navbar, .navbar.navbar-light { margin-bottom: 0; }

/* Remove duplicate margin on hero */
.estimate-hero { margin-top: 0 !important; }

/* Keep wrapper offset controlled by a variable (fallback 85px) */
:root { --header-height: 85px; }
.wrapper { padding-top: var(--header-height) !important; }








/* ===== Make Service Area & Estimate heroes use the main site hero gradient ===== */

/* Reuse the gradient variable from :root */
.bg-primary-gradient,
.estimate-hero {
  background: var(--gradient-hero);
  /* keep same behaviour as main hero */
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
  color: #fff;
  position: relative;
}


/* Ensure hero text is readable (same treatment as main hero) */
.bg-primary-gradient .container,
.estimate-hero .container,
.bg-primary-gradient .hero-text-content,
.estimate-hero .hero-text-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* If you use large headings inside estimate/service hero, make sure they contrast */
.bg-primary-gradient h1,
.estimate-hero h1,
.bg-primary-gradient .display-4,
.estimate-hero .display-4 {
  color: #fff !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.35);
}

/* If gradientShift is not present in the file where you paste this, include it (safe, won't duplicate) */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile tweak: preserve height and spacing */
@media (max-width: 768px) {
  .bg-primary-gradient, .estimate-hero {
    padding-top: 64px;
    padding-bottom: 40px;
    background-attachment: scroll; /* avoids performance issues on mobile */
  }
}


/* ===== Make Service Area hero use main site hero gradient (same as main page) ===== */

/* Target the hero section used on Service Area (and any element with class .bg-primary-gradient) */
section.bg-primary-gradient,
.bg-primary-gradient {
  background: var(--gradient-hero) !important;
  animation: gradientShift 15s ease infinite !important;
  background-size: 200% 200% !important;
  color: #fff !important;
  position: relative;
  padding-top: 100px;   /* match main hero spacing */
  padding-bottom: 80px;
  min-height: 30vh;
  overflow: hidden;
}

/* Ensure inner container content sits above background */
.bg-primary-gradient .container {
  position: relative;
  z-index: 2;
}

/* Text treatment like main hero */
.bg-primary-gradient h1,
.bg-primary-gradient .display-4,
.bg-primary-gradient .lead,
.bg-primary-gradient p {
  color: #fff !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.35);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Buttons / links inside hero keep contrast */
.bg-primary-gradient .btn,
.bg-primary-gradient a {
  color: #fff !important;
}

/* If any page-specific rule added extra margin above hero, neutralize it */
.bg-primary-gradient { margin-top: 0 !important; }

/* Keyframes fallback (safe if already declared elsewhere) */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* MOBILE TWEAKS: avoid fixed background performance issues and keep spacing reasonable */
@media (max-width: 992px) {
  .bg-primary-gradient {
    padding-top: 64px;
    padding-bottom: 40px;
    min-height: 46vh;
    background-attachment: scroll !important;
  }

  .bg-primary-gradient h1,
  .bg-primary-gradient .display-4 {
    font-size: clamp(1.6rem, 4.2vw, 2.4rem) !important;
  }

  .bg-primary-gradient .lead,
  .bg-primary-gradient p {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem) !important;
  }
}

/* Very small screens */
@media (max-width: 576px) {
  .bg-primary-gradient {
    padding-top: 48px;
    padding-bottom: 32px;
    min-height: 40vh;
  }
}