/* --- Base Header Styles (for inner pages) --- */
.site-header {
    position: relative; /* Changed from absolute */
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.site-header .top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

.site-header .top-bar a, .site-header .top-bar span, .site-header .top-bar small {
    color: #495057;
}
.site-header .top-bar a:hover {
    color: #000;
}
.site-header .navbar-brand {
    color: #000 !important; /* Make sure it's black */
}
.site-header .navbar-nav .nav-link {
    color: #212529;
}
.site-header .navbar-nav .nav-link:hover {
    color: #000;
}
.site-header .navbar-nav .nav-link::after {
    background-color: #007bff; /* Standard blue for inner pages */
}
.top-contacts .fw-bold {
    color: #212529 !important;
}


/* --- Home Page Header Styles --- */
.home-page .site-header,
.home-page .site-header .top-bar {
    background-color: transparent !important;
    border-bottom: none !important;
}

.home-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.home-page .site-header .top-bar a, .home-page .site-header .top-bar span, .home-page .site-header .top-bar small,
.home-page .site-header .navbar-brand:not(.svg-logo):not(.animated-logo),
.home-page .site-header .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
}
.home-page .site-header .top-bar a:hover,
.home-page .site-header .navbar-brand:not(.svg-logo):hover,
.home-page .site-header .navbar-nav .nav-link:hover {
    color: #fff !important;
}
.home-page .site-header .navbar-nav .nav-link::after {
    background-color: #0099ff; /* Accent blue for home page */
}
.home-page .top-contacts .fw-bold, .home-page .top-contacts .bi {
    color: #fff !important;
}


/* Original nav-link styles for transition etc. */
.site-header .navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-top: 5px;
    padding-bottom: 5px;
}
.site-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}
.site-header .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #e9ecef; /* Серый фон для всех страниц */
}

/* Accent button */
.btn-accent {
    background-color: #0099ff;
    border-color: #0099ff;
    color: #fff;
}
.btn-accent:hover {
    background-color: #0085e6;
    border-color: #0085e6;
    color: #fff;
}

/* White outline button for home page header */
.btn-outline-white {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
    position: relative; /* Needed for pseudo-element */
    z-index: 1;
    overflow: hidden;
    transition: color 0.4s ease-in-out;
}
.btn-outline-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0099ff;
    /* This will be controlled by JS now, with a default */
    transform: translateX(var(--x, -100%));
    transition: transform 0s; /* Reset instantly, no animation back */
    z-index: -1;
}
.btn-outline-white:hover {
    color: #fff; /* Text stays white */
    border-color: #0099ff; /* Border changes to blue */
}
.btn-outline-white:hover::before {
    /* The final state is always the same: centered */
    transform: translateX(0);
    transition-duration: 0.3s; /* Animate only when hovering IN */
}

/* Revert .btn-accent to its original state */
.btn-accent {
    background-color: #0099ff;
    border-color: #0099ff;
    color: #fff;
}
.btn-accent:hover {
    background-color: #0085e6;
    border-color: #0085e6;
    color: #fff;
}

/* Specific style for header button on inner pages */
.site-header .btn-accent {
    color: #000;
    font-weight: normal; /* explicit normal weight */
    transition: font-weight 0.2s ease-in-out;
}
.site-header .btn-accent:hover {
    color: #000;
    font-weight: bold; /* bold on hover */
}


/* CTA button oval */
.hero-section .btn-accent {
    border-radius: 50px;
    padding: 0.9rem 3rem;
    font-size: 1.25rem;
    position: relative; /* For shimmer effect */
    overflow: hidden;   /* For shimmer effect */
}

.hero-section .btn-accent:hover {
    animation: pulse 1.5s infinite, glow 1.5s infinite;
}

/* Shimmer effect on hover */
.hero-section .btn-accent::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255, .8) 50%,
        rgba(255,255,255, 0) 70%
    );
    transform: rotate(20deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.hero-section .btn-accent:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}


/* Keyframe Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #0099ff; }
    50% { box-shadow: 0 0 20px #0099ff, 0 0 30px #0099ff; }
    100% { box-shadow: 0 0 5px #0099ff; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideDown {
    0% { 
        opacity: 0;
        transform: translateY(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuSlideIn {
    0% { 
        opacity: 0;
        transform: scaleY(0.3) translateY(-30px);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.05) translateY(0);
    }
    100% { 
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 85vh; /* Made the section shorter */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/static/img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

/* --- Media Queries for Mobile --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 12rem 0; /* Less padding on mobile */
        background-attachment: scroll; /* Fix parallax issue on mobile */
    }
    .hero-section h1 {
        font-size: 2.2rem; /* Smaller title on mobile */
    }
    .features-section {
        margin-top: -40px; /* Опускаем feature boxes ниже */
        padding-top: 3rem; /* Добавляем отступ сверху */
    }
    
    /* Поднимаем кнопку "Заказать звонок" на мобильных */
    .site-header .btn-outline-custom {
        position: relative;
        z-index: 1050;
        margin-top: -10px;
    }
    
    /* Корректируем позицию header контента */
    .site-header .top-bar {
        position: relative;
        z-index: 1040;
    }
}


/* Feature section overlay */
.features-section {
    margin-top: -150px; 
    position: relative;
    z-index: 5;
}


/* Feature box */
.feature-box {
    background-color: #ffffff; /* White background */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Important for new border effect */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* removed border transition */
    color: #343a40;
    padding: 1.5rem;
    height: 100%;
    border: none; /* remove the old border */
}

/* New "Smart Border" using pseudo-elements */
.feature-box::before, .feature-box::after {
    content: '';
    position: absolute;
    background: #0099ff;
    box-shadow: 0 0 5px #0099ff, 0 0 10px #0099ff, 0 0 15px #0099ff;
    transition: transform 0.4s ease-in-out;
}

/* Bottom line */
.feature-box::before {
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
}

/* Side lines (tricky part) */
.feature-box::after {
    bottom: 0;
    left: 0;
    width: 2px;
    /* Height is calculated: 100% of the card minus the part that overlaps */
    height: calc(100% - 150px); 
    transform: scaleY(0);
    transform-origin: bottom;
    /* Duplicate the line on the right side */
    box-shadow: 0 0 5px #0099ff, 0 0 10px #0099ff, 0 0 15px #0099ff,
                calc(100% - 2px) 0 0 0 #0099ff,
                calc(100% - 2px) 0 5px 0 #0099ff;
}

.feature-box:hover::before {
    transform: translateX(-50%) scaleX(1);
}
.feature-box:hover::after {
    transform: scaleY(1);
}

.feature-box h5 {
    color: #212529;
    font-weight: 600;
}


/* Re-add hover gray fill from bottom */
.feature-box::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(0,0,0,0.15); /* Even Darker gray fill */
    transition: height 0.3s ease;
    z-index: -1;
    display: block; /* Ensure it's visible */
}

.feature-box:hover::after {
    height: 100%;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* --- Logo Animation --- */
.animated-logo-svg {
    width: 450px;
    height: 60px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* FIXED: Hover effect for top contacts */
.top-contacts a:hover {
    color: #0099ff !important;
}


/* MOBILE: Responsive adjustments for the animated logo on smaller screens */
@media (max-width: 991.98px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    /* Дополнительные настройки для мобильной версии */
    .features-section {
        margin-top: -60px !important; /* Опускаем feature boxes еще ниже */
        padding-top: 4rem !important;
    }
    
    /* Улучшаем позиционирование кнопки "Заказать звонок" */
    .site-header .btn-outline-custom {
        margin-top: -8px;
        box-shadow: 0 2px 8px rgba(0,123,255,0.2);
    }
    
    /* Mobile menu collapse styling */
    .navbar-collapse {
        position: static; /* participate in document flow */
        background: #0f0f0f; /* subtle solid background matching header */
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0;
        padding: 0.75rem 0.75rem; /* compact padding so content shifts smoothly */
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        transform-origin: initial;
        z-index: auto;
    }
    
    /* Menu items styling */
    .navbar-collapse .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-collapse .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
        padding: 1rem 1.5rem !important;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-collapse .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.5s;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(0, 153, 255, 0.2);
        color: #fff !important;
    }
    
    .navbar-collapse .nav-link:hover::before {
        left: 100%;
    }
    
    /* Use Bootstrap's default height transition (no transform/opacity tricks) */
    .navbar-collapse.collapsing,
    .navbar-collapse.collapse.show {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    /* Remove body modifications - no styles needed for body.menu-open */
    .animated-logo-svg {
        width: 280px;
        height: 50px;
        font-size: 28px;
    }
    .hero-content {
        padding-top: 1rem;
    }
    .feature-box h5 {
        font-size: 0.85rem;
        min-height: 40px; /* Adjusted min-height */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* FIXED: Force-hide the desktop timeline to prevent artifacts */
    .process-timeline.d-none {
        display: none !important;
    }
    .btn-icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem !important;
        padding: 0 !important;
        border-radius: 0.5rem;
        border-color: rgba(255, 255, 255, 0.5); /* Match toggler */
    }
    .navbar-toggler {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border-radius: 0.5rem;
        border: var(--bs-border-width) solid rgba(255, 255, 255, 0.5);
    }
    .btn-icon:hover, .navbar-toggler:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.7);
    }
    body:not(.home-page) .btn-icon, body:not(.home-page) .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.25);
        color: rgba(0, 0, 0, 0.7);
    }
    body:not(.home-page) .btn-icon:hover, body:not(.home-page) .navbar-toggler:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: rgba(0, 0, 0, 0.9);
    }
    .mobile-hero-contacts {
        margin-top: 2rem;
        padding: 1rem;
        background: rgba(0,0,0,0.2);
        border-radius: 0.5rem;
    }
    .mobile-hero-contacts a {
        color: #fff;
    text-decoration: none;
        font-size: 1.1rem;
    }

    /* FIXED: Change button colors on non-home pages for visibility */
    body:not(.home-page) .btn-icon {
        border-color: rgba(0, 0, 0, 0.25);
        color: rgba(0, 0, 0, 0.7);
    }
    body:not(.home-page) .btn-icon:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: rgba(0, 0, 0, 0.9);
    }
    body:not(.home-page) .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* FIXED: Make burger icon white on home page */
    .home-page .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* FINAL FIX RE-APPLIED: Brutally hide the desktop step numbers */
    .process-timeline .step-number {
        display: none !important;
        visibility: hidden !important;
    }
    .navbar-toggler {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        border-radius: 0.5rem;
    }
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
    .mobile-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .navbar-brand {
        padding: 0;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn, .btn-lg, .btn-accent, .btn-outline-light, .btn-outline-custom {
        font-size: 14px !important;
        padding: 0.4rem 0.8rem !important;
        min-width: 36px;
        min-height: 36px;
        line-height: 1.1;
    }
    .navbar-toggler {
        font-size: 1.4rem;
        padding: 0.2rem 0.5rem;
        margin-left: 0;
    }
    .mobile-header-placeholder {
        width: 40px; /* Same as navbar-toggler */
    }
    .mobile-header-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    .mobile-header-contacts a {
        font-size: 15px;
        font-weight: 700;
        margin: 0.2rem 0.2rem;
    display: inline-block;
    }
    .mobile-header-contacts .bi {
        font-size: 1.1em;
        margin-right: 0.2em;
    }
    .mobile-call-btn {
        margin-right: 0.5rem;
    }
}

.logo-text-initial, .logo-text-draw, .logo-text-final {
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

/* Animation timeline: 30s total cycle */

.logo-text-initial {
    fill: #fff;
    animation-name: initial-text-cycle;
    animation-duration: 30s;
}

.logo-text-draw {
    fill: none;
    stroke: #0099ff;
    stroke-width: 0.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation-name: draw-text-cycle;
    animation-duration: 30s;
}

.logo-text-final {
    fill: #fff;
    animation-name: final-text-cycle;
    animation-duration: 30s;
}


/* --- Keyframes for the 30s cycle --- */

@keyframes initial-text-cycle {
    0% {
        opacity: 1;
        transform: translateY(0);
}
    6.67% { /* 2s */
        opacity: 0;
        transform: translateY(20px);
    }
    100% { /* Stay hidden for the rest of the cycle */
        opacity: 0;
    }
}

@keyframes draw-text-cycle {
    0%, 6.67% { /* 0s-2s - hidden */
        opacity: 0;
        stroke-dashoffset: 1000;
        filter: none;
    }
    13.33% { /* 4s - appear and start drawing with glow */
        opacity: 1;
        stroke-dashoffset: 1000;
        filter: drop-shadow(0 0 5px #0099ff) drop-shadow(0 0 10px #0099ff);
    }
    33.33% { /* 10s - drawing completes, glow is intense */
        opacity: 1;
        stroke-dashoffset: 0;
        filter: drop-shadow(0 0 8px #0099ff) drop-shadow(0 0 15px #0099ff);
    }
    50% { /* 15s - hold until here, then start fade, glow diminishes */
        opacity: 1;
        stroke-dashoffset: 0;
        filter: drop-shadow(0 0 5px #0099ff) drop-shadow(0 0 10px #0099ff);
    }
    53.33% { /* 16s - finish fade out */
        opacity: 0;
        filter: none;
    }
    100% {
        opacity: 0;
        filter: none;
    }
}

@keyframes final-text-cycle {
    0%, 53.33% { /* 0s-16s */
        opacity: 0;
        transform: translateY(-30px);
    }
    56.67% { /* 17s - finish slide-in */
        opacity: 1;
        transform: translateY(0);
    }
    /* Glow effect (10s duration: from 17s to 27s) */
    60% { /* 18s */
         text-shadow: 0 0 5px rgba(0, 153, 255, 0.5);
    }
    75% { /* 22.5s - peak glow */
        text-shadow: 0 0 20px rgba(0, 153, 255, 1), 0 0 30px rgba(0, 153, 255, 0.7);
    }
    90% { /* 27s - end of glow */
        text-shadow: 0 0 10px rgba(0, 153, 255, 0.8);
    }
    /* Hold and fade out */
    96.67% { /* 29s - hold until here */
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 10px rgba(0, 153, 255, 0.8);
    }
    100% { /* 30s - fade out to loop */
        opacity: 0;
        transform: translateY(0);
    }
}

/* --- City Tooltip --- */
.city-container {
    cursor: default; /* Show default cursor as it's not a link */
}
.info-icon {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
.city-container:hover .info-icon {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.city-tooltip {
    position: absolute;
    top: 100%;
    left: -45px; /* Shifted more to the left */
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.8rem;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none; /* Can't interact with it */
}
.info-icon:hover + .city-tooltip,
.city-tooltip.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Logo Hover Stretch --- REMOVED, merged above */ 

.product-card-img-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* Чтобы фон контейнера совпадал с карточкой */
}

.product-card .card-img-top {
    height: 240px;
    width: auto;
    max-width: 100%;
    object-fit: contain; /* Возвращаем 'contain', чтобы фото не обрезалось */
}

/* Отдельный стиль для фото в карточке "Доставка" */
.product-card-delivery .card-img-top {
    height: 165px;
}

.grade-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.grade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.grade-card .grade-card-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.grade-card .card-img-top {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.grade-card .card-body {
    padding: 1rem;
}

.grade-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.grade-card .card-footer {
    background: transparent;
    border-top: none;
    padding: 0 1rem 1.5rem;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    background: #fff; /* Белый фон для карточек */
    border-radius: 10px;
    overflow: hidden;
}

.product-card .card-body {
    padding: 2rem;
    text-align: center;
}

.product-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.product-card:hover .card-title {
    color: #007bff; /* Голубой цвет при наведении */
}

.product-card.no-hover-effect:hover .card-title {
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card .card-footer {
    background: transparent;
    border-top: none;
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.btn-primary-custom {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6), 0 0 25px rgba(0, 123, 255, 0.4);
}

.text-accent-price {
    color: #007bff; /* Голубой цвет для цены */
}

.catalog-intro-text {
    font-size: 1rem; /* Уменьшенный размер текста */
    font-weight: 400;
} 

/* Стили для страницы детального обзора продукта (как на скриншоте) */

.product-detail-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-detail-title {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-detail-list {
    list-style: none;
    padding-left: 0;
}

.product-detail-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.product-detail-list .bi-check {
    color: #c82333; /* Красный цвет галочки */
    font-size: 1.3rem;
    margin-right: 8px;
}

.product-detail-list a {
    text-decoration: underline;
    color: #333;
    transition: color 0.3s ease;
}

.product-detail-list a:hover {
    color: #c82333;
}

.product-detail-image-container {
    position: relative;
    text-align: center;
}

.product-detail-image-container img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-detail-red {
    background-color: #c82333;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    padding: 12px 30px;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: absolute;
    bottom: -10px;
    left: 20px;
}

.btn-detail-red:hover {
    background-color: #a21b29;
    transform: translateY(-3px);
    color: #fff;
}



/* --- Benefits Section --- */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #eaf6ff;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}


/* --- CTA Section --- */
.cta-section {
    background-color: #343a40; /* Fallback */
    background: url('/static/img/hero-background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: inherit; /* Match parent's border-radius */
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.btn-cta-blue {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta-blue:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
    color: #fff;
    animation: pulse 1.5s infinite, glow 1.5s infinite;
}

.btn-cta-blue::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255, .8) 50%,
        rgba(255,255,255, 0) 70%
    );
    transform: rotate(20deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-cta-blue:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}

.btn-dark-custom {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-dark-custom:hover {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
    transform: scale(1.05);
}

.betononasosy-page .product-card .card-title {
    font-size: 1.1rem; /* Уменьшаем шрифт заголовка */
}

/* --- About Section --- */
.about-section {
    background-color: #f8f9fa; /* Light gray background */
}

.about-section-home {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.about-section-home .about-text-container {
    border: 3px solid #007bff; /* Синяя рамка как в референсе */
    padding: 2.5rem;
    position: relative;
    background-color: #fff; /* Белый фон внутри рамки */
}


.highlight-box {
    border: 2px solid var(--bs-accent);
    background-color: #fff;
    position: relative;
}

.highlight-box .blockquote {
    position: relative;
    padding-left: 2.5rem; /* Add padding to make space for the quote */
    font-style: italic;
    color: #6c757d;
}

.highlight-box .blockquote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.2em;
    font-size: 4em;  /* Reduced from a larger value */
    line-height: 1;
    color: #e9ecef;
    z-index: 0;
}

.highlight-box .blockquote p {
    position: relative;
    z-index: 1; /* Ensure text is above the quote mark */
}

.about-section .highlight-box p:first-child {
    padding-top: 1rem;
    margin-bottom: 1rem;
}
.highlight-box > *:last-child {
    margin-bottom: 0;
}

/* --- Full-width CTA Section --- */
.full-width-cta {
    position: relative;
    padding: 6rem 0;
    background: url('/static/img/hero-background.jpg') no-repeat center center;
    background-size: cover;
}

.full-width-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 38, 51, 0.75); /* Dark blue overlay */
    z-index: 1;
}

.full-width-cta .container {
    position: relative;
    z-index: 2;
}

.btn-cta-solid-blue {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
    padding: 0.8rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta-solid-blue:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    animation: pulse 1.5s infinite, glow 1.5s infinite;
}

.btn-cta-solid-blue::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255, .8) 50%,
        rgba(255,255,255, 0) 70%
    );
    transform: rotate(20deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-cta-solid-blue:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}

/* Анимированная кнопка "Рассчитать стоимость" */
.btn-calc-animated {
    background-color: #0099ff;
    color: #fff;
    border: 2px solid #0099ff;
    padding: 0.8rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 0.375rem;
}

.btn-calc-animated:hover {
    color: #fff;
    background-color: #0085e6;
    border-color: #0085e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4);
    animation: pulse 1.5s infinite, glow 1.5s infinite;
}

.btn-calc-animated::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255, .8) 50%,
        rgba(255,255,255, 0) 70%
    );
    transform: rotate(20deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-calc-animated:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite linear;
}




/* --- Process Step Modals Styling --- */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0099ff 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modal-header .btn-close {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    filter: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    background-image: none !important;
}

.modal-header .btn-close::before,
.modal-header .btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: #333 !important;
    transform-origin: center;
}

.modal-header .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-header .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 1) !important;
    opacity: 1 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.modal-header .btn-close:hover::before,
.modal-header .btn-close:hover::after {
    background-color: #000 !important;
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5) !important;
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    color: #333;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.modal-body strong {
    color: #007bff;
    font-weight: 600;
}

.modal-footer {
    background: #f8f9ff;
    border: none;
    padding: 1.5rem 2rem;
    justify-content: center;
    gap: 1rem;
}

.modal-footer .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.modal-footer .btn:hover::before {
    left: 100%;
}

.modal-footer .btn-primary {
    background: linear-gradient(45deg, #007bff, #0099ff);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.modal-footer .btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.modal-footer .btn-outline-primary:hover {
    background: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* --- Callback Modal --- */
#callbackModal .modal-content {
    background-color: #f8f9fa !important; /* Светло-серый фон */
    color: #212529;
    border-radius: 15px;
    border: none;
}
#callbackModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}
#callbackModal .modal-header .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
}
#callbackModal .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}
#callbackModal .modal-body {
    padding: 1rem 1.5rem 2rem;
}
#callbackModal .form-control {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
#callbackModal .form-check-label a {
    color: #007bff;
    text-decoration: underline;
}
#callbackModal .btn-primary-custom {
    background-color: #007bff;
    border-color: #007bff;
}
#callbackModal .btn-primary-custom:hover {
    background-color: #0056b3;
    border-color: #0056b3;
} 

/* --- Sidebar --- */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

.sidebar-sticky .card .card-header {
    background-color: #f8f9fa;
    color: #007bff;
}

.sidebar-sticky .list-group-item {
    padding: 0; /* Remove padding from LI to let A fill it */
}

.sidebar-sticky .list-group-item a {
    text-decoration: none;
    color: #212529;
    display: block;
    padding: 0.75rem 1.25rem; /* Re-apply padding here */
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar-sticky .list-group-item a:hover {
    background-color: #007bff;
    color: #fff;
}

.sidebar-sticky .list-group-item.active {
    background-color: #eaf6ff;
    border-left: 3px solid #007bff;
}

.btn-outline-custom {
    color: #007bff;
    border-color: #007bff;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-outline-custom:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
} 

/* --- Contacts Page --- */
.contact-page-title {
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.contact-info-item .details h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-info-item .details p {
    margin-bottom: 0;
    color: #6c757d;
}

.contact-socials a {
    color: #6c757d;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.contact-socials a:hover {
    color: #007bff;
}

/* --- Social Media Icons Styling --- */
.social-icons-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
}

.social-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 8px;
}

.social-icon:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.social-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    text-transform: lowercase;
}

.contact-form-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.contact-form-card h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-form-card .form-control {
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.contact-form-card .btn-submit {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-form-card .btn-submit:hover {
    background-color: #0056b3;
}

.yandex-map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
}

/* --- Photogallery Page --- */
.video-carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    background: transparent;
    position: relative;
}

.video-carousel-item video {
    width: auto;
    height: 36vh;
    aspect-ratio: 9/16;
    max-height: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: transparent;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, opacity 0.3s;
}

.video-carousel-item.carousel-item-next video,
.video-carousel-item.carousel-item-prev video {
    opacity: 0.4;
    filter: blur(1px);
    z-index: 1;
}

.video-carousel-item.active video {
    opacity: 1;
    filter: none;
    z-index: 2;
}

.gallery-photo {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Уменьшаем размер фотографий бетонасосов в 2 раза */
    transform: scale(0.5);
    transform-origin: center;
    margin: 0.75rem auto;
}

.gallery-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-photo:hover {
    transform: scale(0.5) translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
} 

.custom-video-carousel {
    gap: 1.5rem;
}
.video-preview {
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-preview video {
    aspect-ratio: 9/16;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, opacity 0.3s, transform 0.3s;
}
.video-preview.active video {
    width: 220px;
    height: 390px;
    opacity: 1;
    z-index: 2;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    transform: scale(1.08);
}
.video-preview.side video {
    width: 120px;
    height: 210px;
    opacity: 0.4;
    z-index: 1;
    filter: blur(1px);
    transform: scale(0.92);
} 

/* MOBILE: Make videos wider and easier to view in photogallery */
@media (max-width: 767.98px) {
    /* Адаптация фотографий для мобильных */
    .gallery-photo {
        transform: scale(0.6);
        margin: 0.5rem auto;
    }
    
    .gallery-photo:hover {
        transform: scale(0.6) translateY(-8px);
    }
    
    .custom-video-carousel {
        gap: 0.75rem;
        width: 100%;
    }
    .custom-video-carousel .video-preview {
        flex: 1 1 100%;
    }
    .custom-video-carousel .video-preview video,
    .custom-video-carousel .video-preview.active video {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9; /* wide format for comfortable viewing */
        transform: none !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.16);
        object-fit: cover;
    }
    /* Hide side previews to maximize active video width */
    .custom-video-carousel .video-preview.side {
        display: none;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: #1a1a1a;
    color: #f8f9fa;
    padding: 3rem 0 0;
    position: relative; /* Needed to contain pseudo-elements if any */
}
.site-footer .text-muted {
    color: #a0a0a0 !important; /* Brighter muted text */
}
.site-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}
.site-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0099ff; /* Accent color */
}
.site-footer .list-unstyled a {
    color: #cccccc; /* Brighter links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.site-footer .list-unstyled a:hover {
    color: #0099ff; /* Accent color */
}
.site-footer hr {
    border-top: 1px solid #343a40;
    margin-top: 2rem;
}

/* --- Footer Social Icons --- */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.footer-social-link {
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.footer-social-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.footer-social-icon:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- Articles Page --- */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.article-card .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.article-card .card-title a {
    text-decoration: none;
    color: #212529;
    transition: color 0.2s ease;
}
.article-card .card-title a:hover {
    color: #0099ff;
}
.article-content h4 {
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content ul {
    padding-left: 20px;
}
.article-content ul li {
    margin-bottom: 0.5rem;
}

/* FIXED: Hide any rogue elements that might appear */
body > a[href="#"] {
    display: none !important;
}

/* --- How It Works Section --- */
.process-step {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.process-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: #eaf6ff;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid #cce5ff;
}

.process-step h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step.completed .process-icon {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.process-step.completed .bi-patch-check-fill::before {
    content: "\f4ce"; /* Bootstrap icon for check fill */
}

/* Ensure consistent height for paragraphs to align bottoms */
.process-step p {
    min-height: 60px; 
}

/* --- Responsive adjustments for "How It Works" Section on mobile --- */
@media (max-width: 991.98px) {
    .process-step {
        aspect-ratio: 1 / 1;
        justify-content: center; /* Center content vertically in the square */
        cursor: pointer; /* Add pointer cursor to indicate it's clickable */
        background-color: #fff;
        border: none;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        padding: 1.5rem 1rem;
    }

    .process-step h5 {
        font-size: 0.85rem; /* Adjust font size for smaller squares */
        margin-bottom: 0; /* Remove bottom margin as there is no paragraph */
        margin-top: 0.75rem;
        font-weight: 500;
        color: #333;
    }
    
    .process-step .process-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.75rem;
        border-radius: 50%;
        background-color: #e3f2fd;
        color: #1976d2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        border: none;
    }

    /* Special styling for completed step */
    .process-step.completed {
        background-color: #e3f2fd;
        border: 2px solid #1976d2;
    }

    .process-step.completed .process-icon {
        background-color: #1976d2;
        color: #fff;
    }

    .process-step.completed h5 {
        color: #1976d2;
        font-weight: 600;
    }

    /* Override min-height for the hidden paragraph on mobile */
    .process-step p {
        min-height: 0;
        display: none !important; /* Ensure it's hidden */
    }
}

/* === РАСШИРЕННАЯ МОБИЛЬНАЯ ОПТИМИЗАЦИЯ === */

/* Мобильные устройства (до 576px) */
@media (max-width: 575.98px) {
    /* Основные контейнеры */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Дополнительное разделение кнопки и feature boxes */
    .features-section {
        margin-top: -20px !important; /* Меньше наложения на маленьких экранах */
        padding-top: 5rem !important;
    }
    
    /* Поднимаем кнопку "Заказать звонок" выше */
    .site-header .btn-outline-custom {
        margin-top: -15px !important;
        position: relative;
        z-index: 1060;
    }
    
    /* Заголовки */
    h1, .h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    h3, .h3 {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    
    h4, .h4 {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    
    h5, .h5 {
        font-size: 1rem !important;
        line-height: 1.4;
    }
    
    /* Текст */
    .lead {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
    
    p, .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .small {
        font-size: 0.85rem !important;
    }
    
    /* Кнопки оптимизация */
    .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
        border-radius: 6px !important;
    }
    
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .btn-sm {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    /* Hero section мобильная */
    .hero-section {
        height: 70vh !important;
        padding: 8rem 0 4rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }
    
    .mobile-hero-contacts {
        margin-top: 1.5rem !important;
        padding: 1rem !important;
        border-radius: 8px !important;
    }
    
    .mobile-hero-contacts a {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    /* Feature boxes мобильные */
    .feature-box {
        padding: 1.2rem 0.8rem !important;
        margin-bottom: 1rem;
    }
    
    .feature-box i {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem;
    }
    
    .feature-box h5 {
        font-size: 0.9rem !important;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        min-height: 35px;
    }
    
    .feature-box p {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    /* Карточки продукции */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card-img-container {
        height: 180px !important;
    }
    
    .product-card .card-img-top {
        height: 160px !important;
    }
    
    .product-card .card-body {
        padding: 1.2rem !important;
    }
    
    .product-card .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .product-card .card-footer {
        padding: 0 1.2rem 1.2rem !important;
    }
    
    /* Оптимизация контактов */
    .contact-info-item {
        margin-bottom: 2rem !important;
        padding: 1rem;
        border-radius: 8px;
        background: #f8f9fa;
    }
    
    .contact-info-item .icon {
        font-size: 1.3rem !important;
        margin-right: 1rem !important;
        min-width: 25px !important;
    }
    
    .contact-info-item h5 {
        font-size: 1rem !important;
        margin-bottom: 0.3rem;
    }
    
    .contact-info-item p, 
    .contact-info-item a {
        font-size: 0.9rem !important;
    }
    
    /* Социальные иконки мобильные */
    .social-icons-container {
        gap: 15px !important;
        justify-content: flex-start;
    }
    
    .social-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .social-label {
        font-size: 9px !important;
    }
    
    /* Формы оптимизация */
    .contact-form-card {
        padding: 1.5rem !important;
        margin-bottom: 2rem;
    }
    
    .contact-form-card h4 {
        font-size: 1.2rem !important;
        margin-bottom: 1.2rem;
    }
    
    .form-control {
        font-size: 0.95rem !important;
        padding: 0.65rem 0.8rem !important;
    }
    
    .form-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem;
    }
    
    /* Модальные окна */
    .modal-content {
        margin: 1rem !important;
        border-radius: 12px !important;
    }
    
    .modal-header {
        padding: 1.2rem !important;
    }
    
    .modal-title {
        font-size: 1.2rem !important;
    }
    
    .modal-body {
        padding: 1.2rem !important;
    }
    
    .modal-body p {
        font-size: 0.9rem !important;
    }
    
    /* Footer оптимизация */
    .site-footer {
        padding: 2rem 0 0 !important;
    }
    
    .site-footer h5 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem;
    }
    
    .site-footer .footer-brand {
        font-size: 1.3rem !important;
    }
    
    .site-footer p,
    .site-footer a {
        font-size: 0.9rem !important;
    }
    
    .footer-social-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Навигация мобильная дополнительно */
    .navbar-nav .nav-link {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.2rem !important;
    }
    
    /* Отступы секций */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Планшеты в портретной ориентации (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Заголовки планшетные */
    h1, .h1 {
        font-size: 2.2rem !important;
    }
    
    h2, .h2 {
        font-size: 1.8rem !important;
    }
    
    /* Hero секция планшеты */
    .hero-section {
        height: 75vh !important;
        padding: 10rem 0 5rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    /* Feature boxes планшеты */
    .feature-box {
        padding: 1.5rem 1rem !important;
    }
    
    .feature-box h5 {
        font-size: 0.95rem !important;
        min-height: 38px;
    }
    
    /* Карточки продукции планшеты */
    .product-card-img-container {
        height: 200px !important;
    }
    
    .product-card .card-img-top {
        height: 180px !important;
    }
}

/* Маленькие планшеты и большие мобильные (до 991.98px) */
@media (max-width: 991.98px) {
    /* About section оптимизация */
    .about-section-home .about-text-container {
        margin-top: 2rem;
        padding: 2rem !important;
    }
    
    .about-section-home .about-text-container h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem;
    }
    
    .about-section-home .about-text-container .lead {
        font-size: 1.05rem !important;
        margin-bottom: 1rem;
    }
    
    .about-section-home .about-text-container p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    /* Логотип мобильный */
    .animated-logo-svg {
        width: 250px !important;
        height: 45px !important;
        font-size: 24px !important;
    }
    
    /* Улучшение читаемости */
    .catalog-intro-text {
        font-size: 0.95rem !important;
        line-height: 1.5;
        margin-bottom: 2rem !important;
    }
}

/* Ультра-мобильные устройства (до 400px) */
@media (max-width: 399.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1, .h1 {
        font-size: 1.6rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .feature-box {
        padding: 1rem 0.6rem !important;
    }
    
    .feature-box h5 {
        font-size: 0.85rem !important;
    }
    
    .feature-box p {
        font-size: 0.75rem !important;
    }
    
    .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .product-card .card-body {
        padding: 1rem !important;
    }
    
    .contact-info-item {
        padding: 0.8rem !important;
    }
    
    .animated-logo-svg {
        width: 200px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
}

/* === TOUCH-ОПТИМИЗАЦИЯ ДЛЯ МОБИЛЬНЫХ === */

/* Минимальные размеры касаний (44px - стандарт Apple/Google) */
@media (max-width: 991.98px) {
    /* Увеличиваем области касания для всех интерактивных элементов */
    .btn, .nav-link, .navbar-toggler, a[href] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    /* Улучшенные области касания для навигации */
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        margin: 4px 0;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .navbar-nav .nav-link:active {
        background-color: rgba(0, 153, 255, 0.1);
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Увеличенные кнопки для лучшего касания */
    .btn {
        padding: 12px 20px !important;
        border-radius: 8px !important;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Улучшенный hamburger menu */
    .navbar-toggler {
        width: 48px !important;
        height: 48px !important;
        border-radius: 8px !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        transition: all 0.2s ease;
    }
    
    .navbar-toggler:active {
        transform: scale(0.9);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Оптимизация карточек для касания */
    .product-card, .feature-box, .grade-card {
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .product-card:active, .feature-box:active, .grade-card:active {
        transform: scale(0.98);
    }
    
    /* Улучшенные социальные иконки */
    .social-icon-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .social-icon-link:active {
        background-color: rgba(0, 0, 0, 0.1);
        transform: scale(0.9);
    }
    
    /* Улучшенные формы */
    .form-control {
        min-height: 44px !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        border: 2px solid #dee2e6 !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    
    .form-control:focus {
        border-color: #0099ff !important;
        box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1) !important;
        outline: none;
    }
    
    /* Checkbox и radio увеличены */
    .form-check-input {
        width: 20px !important;
        height: 20px !important;
        margin-top: 0.1em !important;
        border: 2px solid #dee2e6 !important;
    }
    
    .form-check-label {
        padding-left: 8px;
        cursor: pointer;
        line-height: 1.4;
    }
}

/* === ПРОИЗВОДИТЕЛЬНОСТЬ МОБИЛЬНЫХ === */

@media (max-width: 767.98px) {
    /* Отключаем сложные эффекты на слабых устройствах */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Ускоряем анимации на мобильных */
    .btn, .nav-link, .card, .feature-box {
        transition-duration: 0.15s !important;
    }
    
    /* Упрощаем тени на мобильных */
    .card, .feature-box, .product-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    .card:hover, .feature-box:hover, .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    }
    
    /* Оптимизация градиентов */
    .modal-header, .btn-primary {
        background: #007bff !important; /* Упрощаем до solid цвета */
    }
    
    /* Убираем backdrop-filter на слабых устройствах */
    .navbar-collapse {
        backdrop-filter: none !important;
        background: rgba(15, 15, 15, 0.95) !important;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ TOUCH-УЛУЧШЕНИЯ === */

@media (max-width: 575.98px) {
    /* Увеличиваем отступы между касаемыми элементами */
    .navbar-nav .nav-item {
        margin: 6px 0;
    }
    
    .btn + .btn {
        margin-left: 12px;
    }
    
    /* Улучшенная обратная связь при касании */
    .btn-primary, .btn-accent {
        position: relative;
        overflow: hidden;
    }
    
    .btn-primary:active::before, .btn-accent:active::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        animation: ripple 0.3s ease-out;
    }
    
    @keyframes ripple {
        to {
            transform: translate(-50%, -50%) scale(2);
            opacity: 0;
        }
    }
    
    /* Улучшенная прокрутка */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Предотвращение случайного выделения текста */
    .btn, .card, .navbar-nav, .feature-box {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Убираем outline на touch-устройствах */
    .btn:focus, .form-control:focus, .nav-link:focus {
        outline: none !important;
    }
    
    /* Улучшенные модальные окна для мобильных */
    .modal-dialog {
        margin: 10px !important;
    }
    
    .modal-content {
        border-radius: 12px !important;
        border: none !important;
    }
    
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.6) !important;
    }
}

/* === МОБИЛЬНАЯ ОПТИМИЗАЦИЯ КАРТИНОК БЕТОНОНАСОСОВ === */

/* Одинаковый размер картинок бетононасосов только на мобильных устройствах */
@media (max-width: 767.98px) {
    .betononasosy-page .product-card-img-container {
        height: 200px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #fff !important;
        overflow: hidden !important;
    }
    
    .betononasosy-page .product-card .card-img-top {
        height: 180px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    
    /* Уменьшение конкретных изображений бетононасосов 32м и 56м в 2 раза только для мобильных */
    .betononasosy-page .product-card .card-img-top[src*="32.jpg"],
    .betononasosy-page .product-card .card-img-top[src*="56.jpg"] {
        transform: scale(0.5) !important;
        height: 180px !important;
        max-height: 180px !important;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 575.98px) {
    /* Фотографии бетонасосов для очень маленьких экранов */
    .gallery-photo {
        transform: scale(0.7);
        margin: 0.3rem auto;
    }
    
    .gallery-photo:hover {
        transform: scale(0.7) translateY(-6px);
    }
    
    .betononasosy-page .product-card-img-container {
        height: 180px !important;
    }
    
    .betononasosy-page .product-card .card-img-top {
        height: 160px !important;
    }
    
    /* Уменьшение конкретных изображений 32м и 56м для очень маленьких экранов */
    .betononasosy-page .product-card .card-img-top[src*="32.jpg"],
    .betononasosy-page .product-card .card-img-top[src*="56.jpg"] {
        transform: scale(0.5) !important;
        height: 160px !important;
        max-height: 160px !important;
    }
}

/* === ФИНАЛЬНЫЕ ОПТИМИЗАЦИИ === */

/* Оптимизация viewport для мобильных */
@media (max-width: 575.98px) {
    /* Устраняем горизонтальную прокрутку */
    body, html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Оптимизация контейнеров */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Улучшение читаемости */
    p, .lead, .small {
        text-align: left !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Оптимизация списков */
    ul, ol {
        padding-left: 20px;
    }
    
    li {
        margin-bottom: 0.3rem;
        line-height: 1.5;
    }
}

/* === ИСПРАВЛЕНИЕ ОТОБРАЖЕНИЯ ЦЕНЫ В ТАБЛИЦЕ === */
/* Принудительное отображение цены в одну строку на мобильных */
@media (max-width: 767.98px) {
    .table td {
        white-space: nowrap !important;
        font-size: 0.85rem;
    }
    
    .table td strong {
        white-space: nowrap !important;
        display: inline !important;
    }
    
    /* Уменьшаем размер текста в таблице для мобильных */
    .table th, .table td {
        font-size: 0.8rem;
        padding: 0.4rem 0.2rem;
    }
    
    /* Кнопки меньше */
    .table .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}