/* ==========================================================================
   ЧАСТЬ 1 / 3 — ГЛОБАЛЬНЫЕ СТИЛИ + HERO + NAV + ABOUT + CATALOG
   ========================================================================== */

/* ---------- 1. ПЕРЕМЕННЫЕ И СБРОС ---------- */
:root {
    /* Отступы секций — плавно 16px → 80px */
    --pad-x: clamp(16px, 4.5vw, 80px);
    --pad-y: clamp(40px, 8vw, 120px);
    --pad-y-sm: clamp(30px, 5vw, 60px);

    /* Типографика — плавная */
    --fs-h1: clamp(28px, 6vw, 64px);
    --fs-h2: clamp(22px, 3.2vw, 38px);
    --fs-h3: clamp(16px, 1.8vw, 20px);
    --fs-body: clamp(13px, 1vw, 14px);
    --fs-small: clamp(11px, 0.85vw, 13px);

    /* Контейнеры */
    --container: 1400px;
    --container-wide: 1600px;

    /* Фирменные цвета */
    --c-bg-dark: #0b0c0e;
    --c-bg-nav: #131416;
    --c-bg-light: #eef0f2;
    --c-bg-light-2: #f8f9fa;
    --c-bronze: #c5b6a0;
    --c-bronze-dark: #8c857b;
    --c-blue: #1e3a60;
    --c-blue-bright: #1565c0;
    --c-text: #1a1a1a;
    --c-text-muted: #607d8b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--c-blue) #f0f4f8;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--c-bg-dark);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* ✅ ИСПРАВЛЕНО: глобально не даём картинкам распирать */
img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* ✅ ИСПРАВЛЕНО: отключаем анимации для пользователей с ограничениями */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 2. HERO-СЛАЙДЕР ---------- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;              /* ✅ ИСПРАВЛЕНО: не прыгает на iOS */
    min-height: 560px;           /* ✅ ИСПРАВЛЕНО: защита от «сплющивания» */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--pad-y) var(--pad-x);
}

.slider-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    padding: 0 var(--pad-x);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Фон слайда */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-bg video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;           /* ✅ ИСПРАВЛЕНО: fill искажал видео */
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* ✅ ИСПРАВЛЕНО: было два конфликтующих .slide-content — теперь один */
.slide-content {
    position: relative;
    z-index: 10;
    max-width: 480px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.2s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* ---------- 3. ШАПКА HERO ---------- */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
}

.logo span {
    display: block;
    font-size: 10px;
    color: #888;
    letter-spacing: 4px;
    margin-top: 2px;
}

.menu-btn {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.menu-btn:hover {
    color: #fff;
    border-color: #fff;
}

.contacts {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 25px);
    flex-wrap: wrap;
}

.phone {
    color: #fff;
    text-decoration: none;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 1px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(13px, 1.2vw, 16px);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.socials a:hover {
    opacity: 1;
}

/* ---------- 4. КОНТЕНТ HERO ---------- */
.slide-counter {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

h1 {
    font-size: var(--fs-h1);     /* ✅ ИСПРАВЛЕНО: clamp вместо 64px */
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: clamp(20px, 3vw, 35px);
    letter-spacing: -1px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(18px, 2.5vw, 35px);
    border-radius: 2px;
}

.info-card p {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 300;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* ---------- 5. УПРАВЛЕНИЕ СЛАЙДЕРОМ ---------- */
.slider-controls {
    position: relative;          /* ✅ ИСПРАВЛЕНО: для absolute .catalog-link */
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.arrows {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
}

.arrow-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 300;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ✅ ИСПРАВЛЕНО: было right: 10px — вылетало за сетку */
.catalog-link {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(12px, 1.2vw, 16px);
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 6px;
    transition: border-color 0.3s;
    position: absolute;
    right: 0;
}

.catalog-link:hover {
    border-color: #fff;
}

/* ---------- 6. ЧЁРНАЯ НАВИГАЦИЯ ---------- */
.navigation-bar {
    background-color: var(--c-bg-nav);
    color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 999;
}

.top-announcement {
    text-align: center;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(14px, 2vw, 25px) var(--pad-x);
    background-color: var(--c-bg-nav);
    width: 100%;
    flex-wrap: wrap;             /* ✅ ИСПРАВЛЕНО: не вылезает */
}

.navigation-bar.fixed .nav-main-row {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px var(--pad-x);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.nav-logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1;
    flex-shrink: 0;
}

.nav-logo span {
    display: block;
    font-size: 10px;
    color: #888;
    letter-spacing: 4px;
    margin-top: 3px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.8vw, 24px);
    flex-wrap: wrap;             /* ✅ ИСПРАВЛЕНО: не вылезает */
    justify-content: center;
}

.main-menu a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-menu a:hover,
.main-menu a.active {
    color: #ffffff;
}

.cart-link {
    display: flex;
    align-items: center;
    padding-left: 5px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: clamp(160px, 22vw, 240px);
    max-width: 100%;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    background-color: #ffffff;
    border: none;
    padding: 12px 15px 12px 40px;
    font-size: 13px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #666;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* ---------- 7. СЕКЦИЯ "О КОМПАНИИ" ---------- */
.about-section {
    background-color: var(--c-bg-light);
    color: var(--c-text);
    padding: var(--pad-y) var(--pad-x);
    width: 100%;
}

.about-content,
.brands-grid {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 5vw, 60px);
}

.about-title-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 550px;
}

.about-title-col h2 {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-text-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 550px;
    margin-top: 10px;
}

.about-text-col p {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #4a4a4a;
    font-weight: 300;
}

/* ---------- 8. БРЕНДЫ ---------- */
.brands-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 30px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
    margin-top: clamp(40px, 6vw, 80px);  /* ✅ ИСПРАВЛЕНО */
}

.brand-item {
    font-size: clamp(16px, 1.8vw, 22px);
    color: #a5a7a9;
    letter-spacing: 1px;
    font-weight: 400;
    user-select: none;
    transition: color 0.3s ease;
}

.brand-item:hover {
    color: var(--c-text);
}

.brand-item span {
    font-size: 16px;
    vertical-align: middle;
}

.font-serif {
    font-family: Georgia, serif;
    font-size: clamp(15px, 1.6vw, 20px);
    letter-spacing: 2px;
}

.font-bold {
    font-weight: 700;
}

/* ---------- 9. СЕКЦИЯ КАТАЛОГА ---------- */
.catalog-section {
    background-color: #ffffff;
    padding: var(--pad-y) var(--pad-x);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* ✅ ИСПРАВЛЕНО: minmax(0) */
    gap: clamp(16px, 2.5vw, 40px);
    max-width: var(--container);
    margin: 0 auto;
}

.catalog-card {
    position: relative;
    aspect-ratio: 3 / 3;
    overflow: hidden;
    background-color: var(--c-bg-nav);
}

.catalog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* ✅ ИСПРАВЛЕНО: было пропущено */
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(16px, 2vw, 30px);
    transition: background 0.4s ease;
}

.card-overlay h3 {
    color: #ffffff;
    font-size: var(--fs-h3);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.btn-go {
    display: inline-block;
    align-self: flex-start;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 10px 22px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

/* ✅ ИСПРАВЛЕНО: на тач-устройствах кнопка видна всегда */
@media (hover: none) {
    .btn-go {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-go:hover {
    background-color: #1c1d21;
}

.catalog-card:hover img {
    transform: scale(1.05);
}

.catalog-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.catalog-card:hover .btn-go {
    opacity: 1;
    transform: translateY(0);
}

.catalog-info-block {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px 20px 0;
    color: var(--c-text);
    min-width: 0;
}

.info-description {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #4a4a4a;
    font-weight: 300;
    margin-bottom: 25px;
    max-width: 650px;
}

.info-subtitle {
    font-size: var(--fs-body);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features-list li {
    font-size: var(--fs-body);
    color: #555555;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: #8c8e90;
    font-weight: bold;
    font-size: 14px;
}

/* ---------- 10. АДАПТИВ ЧАСТИ 1 ---------- */

/* Планшеты 1024px */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-info-block {
        grid-column: span 2;
        padding-right: 0;
    }
    .nav-main-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    .main-menu {
        order: 3;
        width: 100%;
    }
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    .about-title-col,
    .about-text-col {
        max-width: 100%;
    }
}

/* Планшеты вертикальные и мобильные 768px */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 480px;
    }
    .slide-content {
        max-width: 100%;
    }
    h1 {
        letter-spacing: 0;
    }
    .contacts {
        display: none;                 /* скрываем телефон/соцсети как у вас было */
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-info-block {
        grid-column: span 1;
    }
    .brands-grid {
        justify-content: center;
        gap: 24px;
    }
    .nav-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    .main-menu {
        justify-content: center;
        width: 100%;
    }
}

/* Маленькие мобильные 480px */
@media (max-width: 480px) {
    .arrow-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
    }
    .catalog-link {
        position: static;              /* ✅ ИСПРАВЛЕНО: не наезжает на стрелки */
        font-size: 12px;
    }
    .slider-controls {
        justify-content: center;
        gap: 12px;
    }
    .slide-counter {
        font-size: 11px;
        margin-bottom: 16px;
    }
    .brand-item {
        font-size: 15px;
    }
}

/* Очень узкие экраны 375px */
@media (max-width: 375px) {
    :root {
        --pad-x: 14px;
    }
    .info-card {
        padding: 14px;
    }
    .brands-grid {
        gap: 16px;
    }
}

/* ==========================================================================
   ЧАСТЬ 2 / 3 — PROJECTS + STEPS + PROMO-BANNER + SERVICES-FEATURES
   ========================================================================== */

/* ---------- 11. СЕКЦИЯ РЕАЛИЗОВАННЫХ ПРОЕКТОВ ---------- */
.projects-section {
    background-color: #ffffff;
    padding: var(--pad-y) var(--pad-x);
    color: var(--c-text);
    width: 100%;
}

.projects-header {
    max-width: var(--container);
    margin: 0 auto clamp(30px, 5vw, 60px) auto;
}

.projects-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    color: #a5a7a9;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
    font-weight: 300;
}

.projects-header h2 {
    font-size: var(--fs-h2);
    font-weight: 400;
    color: var(--c-bronze-dark);
    letter-spacing: 0.5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    max-width: var(--container);
    margin: 0 auto clamp(30px, 5vw, 60px) auto;
    width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.project-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f4f4f4;
    margin-bottom: 25px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.04);
}

.project-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.project-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;              /* ✅ ИСПРАВЛЕНО */
}

.project-title {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #555555;
    letter-spacing: 0.3px;
    word-break: break-word;
    min-width: 0;
}

.btn-project-go {
    background-color: var(--c-bg-nav);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    padding: 14px 18px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    min-height: 44px;             /* ✅ ИСПРАВЛЕНО: тач-таргет */
}

.btn-project-go span {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-project-go:hover {
    background-color: #2c2e33;
}

.btn-project-go:hover span {
    transform: translateX(3px);
}

.project-tags {
    font-size: 11px;
    color: #a5a7a9;
    font-weight: 300;
    margin-top: auto;
}

.projects-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-all-projects {
    display: inline-block;
    border: 1px solid var(--c-text);
    color: var(--c-text);
    text-decoration: none;
    font-size: 12px;
    padding: 14px 45px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, color 0.3s;
    min-height: 44px;
    line-height: 1.4;
}

.btn-all-projects:hover {
    background-color: var(--c-text);
    color: #ffffff;
}

/* ---------- 12. СЕКЦИЯ "КАК МЫ РАБОТАЕМ" (STEPS) ---------- */
.steps-section-premium {
    background-color: var(--c-bg-light-2);
    color: var(--c-text);
    padding: var(--pad-y) var(--pad-x);
    width: 100%;
}

.steps-section-premium .steps-header {
    text-align: center;
    margin-bottom: clamp(50px, 8vw, 100px);
}

.steps-section-premium .section-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    color: #a5a7a9;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    font-weight: 400;
}

.steps-section-premium .steps-header h2 {
    font-size: var(--fs-h2);
    font-weight: 300;
    color: var(--c-text);
    letter-spacing: 0.5px;
}

.steps-wrapper {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.steps-svg-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 240px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.steps-svg-line svg {
    width: 100%;
    height: 100%;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
    z-index: 2;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 320px;
}

.step-card-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-item.is-top {
    justify-content: flex-start;
}

.step-item.is-bottom {
    justify-content: flex-end;
}

.step-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

.step-number {
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 200;
    line-height: 1;
    color: #e0e2e5;
    font-feature-settings: "lnum";
    transition: color 0.4s ease;
}

.step-badge {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-bronze-dark);
}

.step-desc {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #666666;
    font-weight: 300;
    max-width: 220px;
}

.step-item:hover .step-card-inner {
    transform: translateY(-8px);
}

.step-item:hover .step-number {
    color: var(--c-bronze);
}

.step-item:hover .step-desc {
    color: var(--c-text);
}

/* ---------- 13. ПРОМО-БАННЕР ---------- */
.promo-banner-section {
    position: relative;
    width: 100%;
    height: 70vh;
    height: 70dvh;                /* ✅ ИСПРАВЛЕНО */
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 0 var(--pad-x);
}

.banner-subtitle {
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 300;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: clamp(15px, 2vw, 25px);
    opacity: 0.9;
}

.banner-title {
    font-size: clamp(20px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: clamp(25px, 4vw, 45px);
}

.btn-banner-catalog {
    display: inline-block;
    background-color: #ffffff;
    color: var(--c-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: clamp(12px, 1.5vw, 16px) clamp(25px, 3.5vw, 45px);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    min-height: 44px;
    line-height: 1.4;
}

.btn-banner-catalog:hover {
    background-color: var(--c-text);
    color: #ffffff;
    transform: scale(1.02);
}

/* ---------- 14. СЕКЦИЯ ПРЕИМУЩЕСТВ (SERVICES) ---------- */
.services-features-section {
    background-color: #ffffff;
    padding: var(--pad-y) var(--pad-x);
    width: 100%;
}

.services-features-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
}

.services-image-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: 550px;
    width: 100%;
}

.services-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f4f4f4;
}

.services-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-image-col:hover img {
    transform: scale(1.03);
}

.services-content-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.services-meta-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: clamp(20px, 3vw, 40px);
    gap: 12px;
    flex-wrap: wrap;              /* ✅ ИСПРАВЛЕНО */
}

.services-meta-top span {
    font-size: 11px;
    text-transform: uppercase;
    color: #a5a7a9;
    letter-spacing: 1.5px;
    font-weight: 300;
}

.services-content-col h2 {
    font-size: var(--fs-h2);
    font-weight: 400;
    color: var(--c-bronze-dark);
    line-height: 1.3;
    letter-spacing: 0.5px;
    margin-bottom: clamp(25px, 3vw, 45px);
}

.services-main-text {
    font-size: var(--fs-body);
    line-height: 1.8;
    color: #666666;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: clamp(35px, 4vw, 60px);
}

.features-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 50px);
    max-width: 600px;
    margin-bottom: clamp(35px, 4vw, 60px);
}

.feature-mini-item {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.divider-line {
    width: 35px;
    height: 1px;
    background-color: var(--c-text);
    margin-bottom: 20px;
    opacity: 0.2;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.feature-mini-item h3 {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-text);
    letter-spacing: 0.2px;
}

.feature-mini-item:hover .divider-line {
    width: 60px;
    opacity: 0.6;
}

.services-action {
    margin-top: 10px;
}

.btn-more-about {
    display: inline-block;
    border: 1px solid var(--c-text);
    color: var(--c-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 15px 45px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    min-height: 44px;
    line-height: 1.4;
}

.btn-more-about:hover {
    background-color: var(--c-text);
    color: #ffffff;
}

/* ---------- 15. АДАПТИВ ЧАСТИ 2 ---------- */

/* Планшеты 1024px */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .project-img {
        aspect-ratio: 16 / 9;
    }
    .steps-section-premium {
        padding: var(--pad-y) var(--pad-x);
    }
    .steps-svg-line {
        display: none;
    }
    .steps-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
        position: relative;
        padding-left: 40px;
    }
    .steps-grid::before {
        content: '';
        position: absolute;
        left: 6px;
        top: 10px;
        width: 1px;
        height: calc(100% - 20px);
        background: linear-gradient(180deg, var(--c-bronze) 0%, #e0e2e5 100%);
    }
    .step-item {
        height: auto !important;
        justify-content: flex-start !important;
    }
    .step-card-inner {
        padding: 0;
        transform: none !important;
    }
    .step-meta::before {
        content: '';
        position: absolute;
        left: -40px;
        top: 22px;
        width: 13px;
        height: 13px;
        background-color: var(--c-bg-light-2);
        border: 2px solid var(--c-bronze);
        border-radius: 50%;
        z-index: 5;
    }
    .step-meta {
        margin-bottom: 10px;
    }
    .step-number {
        font-size: clamp(32px, 4vw, 40px);
    }
    .step-desc {
        max-width: 100%;
    }
    .services-features-container {
        gap: 40px;
    }
}

/* Планшеты вертикальные 992px */
@media (max-width: 992px) {
    .services-features-container {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    .services-image-col {
        max-width: 100%;
    }
    .services-img-wrapper {
        aspect-ratio: 16 / 10;
    }
    .services-content-col {
        width: 100%;
    }
    .services-meta-top,
    .services-main-text,
    .features-mini-grid {
        max-width: 100%;
    }
}

/* Мобильные 768px */
@media (max-width: 768px) {
    .projects-header h2 {
        font-size: clamp(22px, 5vw, 28px);
    }
    .project-main-info {
        flex-direction: column;
        gap: 15px;
    }
    .btn-project-go {
        width: 100%;
        justify-content: center;
    }
    .steps-section-premium {
        padding: var(--pad-y-sm) var(--pad-x);
    }
    .steps-section-premium .steps-header h2 {
        font-size: clamp(22px, 5vw, 28px);
    }
    .promo-banner-section {
        height: 60vh;
        height: 60dvh;
    }
}

/* Мобильные 600px */
@media (max-width: 600px) {
    .features-mini-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .services-content-col h2 {
        margin-bottom: 30px;
    }
    .services-main-text {
        margin-bottom: 40px;
    }
    .btn-more-about {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* Маленькие мобильные 480px */
@media (max-width: 480px) {
    .btn-all-projects,
    .btn-banner-catalog {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    .steps-grid {
        padding-left: 30px;
        gap: 40px;
    }
    .step-meta::before {
        left: -30px;
    }
}

/* ==========================================================================
   ЧАСТЬ 3 / 3 — REVIEWS + BLOG + SUBSCRIBE + FOOTER + PRODUCT
                 + MARKING + DECODER + SCROLLBAR + LOGO
   ========================================================================== */

/* ---------- 16. СЕКЦИЯ ОТЗЫВОВ ---------- */
.reviews-section {
    background-color: var(--c-bg-light-2);
    padding: var(--pad-y) var(--pad-x);
    width: 100%;
}

.reviews-header {
    max-width: var(--container);
    margin: 0 auto clamp(30px, 4vw, 50px) auto;
    width: 100%;
}

.reviews-header h2 {
    font-size: clamp(18px, 1.6vw, 20px);
    font-weight: 400;
    color: var(--c-text);
    letter-spacing: 0.5px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 30px);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.review-card {
    background-color: #ffffff;
    border: 1px solid #e0e2e5;
    border-radius: 6px;
    padding: clamp(20px, 2vw, 30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e2e5;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #d1d4d7;
    position: relative;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #a5a7a9;
    border-radius: 50%;
    transform: translate(-50%, -85%);
}

.avatar-placeholder::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 28px;
    height: 14px;
    background: #a5a7a9;
    border-radius: 14px 14px 0 0;
    transform: translateX(-50%);
}

.review-user-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 4px;
}

.review-date {
    font-size: 11px;
    color: #a5a7a9;
    font-weight: 300;
}

.review-stars {
    color: #ffb703;
    font-size: 13px;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.review-text {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: #4a4a4a;
    font-weight: 300;
    margin-bottom: 25px;
    flex-grow: 1;
}

.review-source-link {
    font-size: 11px;
    color: #0066cc;
    text-decoration: none;
    align-self: flex-end;
    transition: color 0.2s ease;
}

.review-source-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* ---------- 17. СЕКЦИЯ БЛОГА ---------- */
.blog-section {
    background-color: #ffffff;
    padding: var(--pad-y) var(--pad-x);
    width: 100%;
}

.blog-header {
    max-width: var(--container);
    margin: 0 auto clamp(30px, 5vw, 60px) auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.blog-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    color: #a5a7a9;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 20px;
    font-weight: 300;
}

.blog-header h2 {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 400;
    color: var(--c-text);
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.btn-all-articles {
    display: inline-block;
    background-color: var(--c-bg-nav);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 15px 40px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-all-articles:hover {
    background-color: #2c2e33;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3.5vw, 50px);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f4f4f4;
    margin-bottom: 25px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.03);
}

.article-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    margin-bottom: 25px;
}

.article-title a {
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--c-bronze-dark);
}

.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f2f5;
    padding-top: 15px;
    gap: 12px;
    flex-wrap: wrap;
}

.article-date,
.article-tag {
    font-size: 11px;
    font-weight: 300;
    color: #a5a7a9;
}

.article-tag {
    letter-spacing: 0.3px;
}

/* ---------- 18. ПОДПИСКА + ГАЛЕРЕЯ ---------- */
.subscribe-gallery-section {
    background-color: #ffffff;
    padding-top: clamp(40px, 7vw, 100px);
    width: 100%;
}

.subscribe-container {
    max-width: 800px;
    margin: 0 auto clamp(40px, 6vw, 80px) auto;
    text-align: center;
    padding: 0 var(--pad-x);
}

.subscribe-container h2 {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 300;
    color: var(--c-text);
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.subscribe-text {
    font-size: var(--fs-body);
    line-height: 1.8;
    color: #666666;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 40px auto;
    letter-spacing: 0.2px;
}

.btn-telegram-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--c-text);
    color: var(--c-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    padding: 16px 45px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 44px;
}

.telegram-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-telegram-subscribe:hover {
    background-color: var(--c-bg-nav);
    color: #ffffff;
}

.btn-telegram-subscribe:hover .telegram-icon {
    transform: translate(3px, -3px);
}

.instagram-tape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-bottom: clamp(40px, 7vw, 100px);
}

.tape-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.tape-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.tape-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.tape-item:hover img {
    transform: scale(1.04);
}

.tape-item:hover .tape-overlay {
    background-color: rgba(0, 0, 0, 0.15);
}

/* ---------- 19. ФУТЕР ---------- */
.main-footer {
    background-color: var(--c-bg-nav);
    color: #ffffff;
    padding: clamp(30px, 4vw, 40px) var(--pad-x);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    max-width: var(--container);
    margin: 0 auto clamp(40px, 6vw, 80px) auto;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 30px;
}

.footer-logo span {
    display: block;
    font-size: 10px;
    color: #888;
    letter-spacing: 4px;
    margin-top: 3px;
}

.footer-slogan {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 40px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 400;
}

.contact-value {
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-value:hover {
    color: var(--c-bronze);
}

.footer-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    text-transform: uppercase;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 300;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-menu a:hover {
    color: #ffffff;
    padding-left: 2px;
}

.footer-bottom-bar {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 0.2px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #ffffff;
}

.vk-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
}

/* ---------- 20. ЛОГОТИПЫ-КАРТИНКИ ---------- */
.logo,
.nav-logo,
.footer-logo {
    display: flex;
    align-items: center;
}

.logo a,
.nav-logo a,
.footer-logo a {
    display: inline-block;
    line-height: 0;
}

.logo img,
.nav-logo img,
.footer-logo img {
    height: clamp(28px, 4vw, 55px);   /* ✅ ИСПРАВЛЕНО: было 55px фикс. */
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo img:hover,
.nav-logo img:hover,
.footer-logo img:hover {
    opacity: 0.8;
}

/* ---------- 21. КАТАЛОГ — САЙДБАР + СЕТКА КАТЕГОРИЙ ---------- */
.plumbing-catalog-section {
    background-color: #ffffff;
    padding: clamp(20px, 3vw, 40px) var(--pad-x);
    width: 100%;
    color: var(--c-text);
}

.plumbing-catalog-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 2.5vw, 40px);
    width: 100%;
}

.catalog-sidebar {
    flex: 0 0 280px;
    background-color: #ffffff;
    border: 1px solid #e2e6e9;
    box-sizing: border-box;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #e2e6e9;
}

.sidebar-tab {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    background-color: #e9ecf0;
}

.sidebar-tab.active {
    background-color: #f4f6f8;
    color: var(--c-text);
    pointer-events: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 15px;
    text-decoration: none;
    border-bottom: 1px solid #e2e6e9;
    transition: background-color 0.2s ease;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-item:hover {
    background-color: #e9ecf0;
}

.sidebar-menu-item.active {
    background-color: #ffffff;
    pointer-events: none;
}

.sidebar-item-icon {
    width: 34px;
    height: 34px;
    background-color: rgba(0, 82, 157, 0.05);
    flex-shrink: 0;
}

.sidebar-item-icon img {
    width: 100%;
}

.sidebar-item-text {
    font-size: 12px;
    line-height: 1.4;
    color: #333333;
    font-weight: 400;
}

.sidebar-menu-item.active .sidebar-item-text {
    color: #00529d;
    font-weight: 500;
}

.catalog-main-content {
    flex: 1;
    min-width: 0;
}

.catalog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888888;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.catalog-breadcrumbs a {
    color: #00529d;
    text-decoration: none;
}

.catalog-breadcrumbs a:hover {
    text-decoration: underline;
}

.bc-sep {
    font-size: 10px;
    color: #bbbbbb;
}

.bc-current {
    color: #444444;
}

.catalog-main-title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.categories-grid-8 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 35px) 15px;
    width: 100%;
}

.category-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--c-text);
    min-width: 0;
}

.category-icon-box {
    width: 100%;                        /* ✅ ИСПРАВЛЕНО */
    max-width: 150px;
    aspect-ratio: 1 / 1;                /* ✅ ИСПРАВЛЕНО: держит квадрат */
    background-color: #ffffff;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.category-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-grid-item:hover .category-icon-box {
    transform: translateY(-3px);
}

.category-grid-item h3 {
    font-size: clamp(11px, 1vw, 12.5px);
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
    max-width: 110px;
    word-wrap: break-word;
}

.category-grid-item:hover h3 {
    color: #000;
    font-weight: 500;
}

/* ---------- 22. АККОРДЕОН В САЙДБАРЕ ---------- */
.clean-accordion .accordion-item {
    border-bottom: 1px solid #eef2f4;
    width: 100%;
}

.clean-accordion .accordion-item:last-child {
    border-bottom: none;
}

.clean-accordion .accordion-header {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.clean-accordion .accordion-header:hover {
    background-color: #f1f5f8;
}

.clean-accordion .sidebar-item-icon {
    width: 40px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 4px;
    flex-shrink: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.clean-accordion .sidebar-item-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    font-weight: 400;
    margin-left: 12px;
    padding-right: 10px;
}

.clean-accordion .accordion-arrow {
    font-size: 9px;
    color: #9aa8ad;
    margin-left: auto;
    transition: transform 0.25s ease, color 0.25s;
    transform: scaleX(1.3);
}

.clean-accordion .accordion-item.is-open .accordion-header {
    background-color: #ffffff;
}

.clean-accordion .accordion-item.is-open .sidebar-item-icon {
    border-color: rgba(0, 82, 157, 0.2);
    background-color: rgba(0, 82, 157, 0);
}

.clean-accordion .accordion-item.is-open .sidebar-item-text {
    color: #000;
    font-weight: 500;
}

.clean-accordion .accordion-item.is-open .accordion-arrow {
    transform: rotate(180deg) scaleX(1.3);
    color: #00529d;
}

.clean-accordion .accordion-content {
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.2s ease, visibility 0.3s;
}

.clean-accordion .accordion-item.is-open .accordion-content {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.clean-accordion .submenu-list {
    list-style: none;
    padding: 8px 15px 15px 59px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clean-accordion .submenu-list a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease;
    display: inline-block;
}

.clean-accordion .submenu-list a:hover {
    color: #000;
    font-weight: 500;
}

.clean-accordion .submenu-list a.active {
    color: #00529d;
    font-weight: 500;
    pointer-events: none;
}

/* ---------- 23. HERO СЕКЦИИ КАТЕГОРИИ ---------- */
.category-hero-section {
    position: relative;
    width: 100%;
    height: 30vh;
    height: 30dvh;                /* ✅ ИСПРАВЛЕНО */
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 50px;
    overflow: hidden;
    background-color: var(--c-bg-dark);
}

.category-hero-content {
    z-index: 998;
    padding: 0 var(--pad-x);
    text-align: center;
}

.category-hero-title {
    color: #eee;
    font-size: var(--fs-h2);
}

.category-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.category-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.category-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* ---------- 24. КАРТОЧКА ТОВАРА ---------- */
.product-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 50px);
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 var(--pad-x);
    flex-wrap: wrap;              /* ✅ ИСПРАВЛЕНО */
}

.product-gallery {
    flex: 1 1 320px;              /* ✅ ИСПРАВЛЕНО: было 0 0 500px */
    max-width: 500px;
    min-width: 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
}

.main-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.main-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;          /* ✅ ИСПРАВЛЕНО */
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex-shrink: 0;
    max-height: 500px;
}

.thumb-btn {
    width: 70px;
    height: 70px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.thumb-btn.active {
    border-color: #1e88e5;
}

.thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1 1 320px;
    min-width: 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.specs-table tr {
    border-bottom: 1px solid #b0bec5;
}

.specs-table td {
    padding: 12px 10px;
    font-size: var(--fs-body);
    line-height: 1.4;
    vertical-align: top;
    color: #37474f;
}

.specs-table td:first-child {
    width: 35%;
    font-weight: bold;
}

.specs-table td:last-child {
    width: 65%;
}

.sub-text {
    font-size: 12px;
    color: #78909c;
    display: inline-block;
    margin-top: 4px;
}

.gray-text {
    color: #78909c;
}

.order-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #1e88e5;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 44px;
}

.order-btn:hover {
    background-color: #1565c0;
}

/* ---------- 25. ОПИСАНИЕ ТОВАРА + ТАБЛИЦА ---------- */
.product-description {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.description-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: bold;
    color: var(--c-blue);
    margin-bottom: 20px;
}

.description-text {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--c-text-muted);
    margin-bottom: 30px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

table th,
table td {
    padding: 10px;
    font-size: var(--fs-body);
    text-align: left;
    border: 1px solid #eef2f5;
    color: #37474f;
}

.tablica {
    border: 1px solid #eee;
    width: 100%;
    margin-bottom: 20px;
}

.tablica a {
    text-decoration: underline;
    color: #37474f;
}

.tablica th {
    font-weight: bold;
    padding: 5px;
    background: #efefef;
    border: 1px solid #dddddd;
}

.tablica td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
}

/* ✅ ИСПРАВЛЕНО: scale(1.2) вылезал за границы ячеек — оставил только фон */
.tablica td:hover {
    background-color: #e3e3e3;
}

.tablica tr:first-child td:hover {
    background-color: #F7F7F7;
}

.tablica tbody tr:nth-child(odd) {
    background: #F7F7F7;
}

.tablica tbody tr:nth-child(even) {
    background: #fff;
}

.tablica tr:first-child {
    background: #F7F7F7;
    font-weight: bold;
}

.tablica tr td:first-child {
    font-weight: bold;
    background: #F7F7F7;
}

.th-dark {
    font-weight: bold;
    color: #000 !important;
    background-color: #ffffff;
    border-bottom: 2px solid #eef2f5 !important;
}

.th-center {
    text-align: center;
}

.td-bold {
    font-weight: bold;
    white-space: nowrap;
}

.link-text {
    color: #2196f3;
    font-weight: 500;
    cursor: pointer;
}

.link-text:hover {
    text-decoration: underline;
}

.marking-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ---------- 26. РАБОЧАЯ СРЕДА ---------- */
.working-env-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 var(--pad-x);
}

.env-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: bold;
    color: var(--c-blue);
    margin-bottom: 30px;
}

.env-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;              /* ✅ ИСПРАВЛЕНО */
}

.env-text-block {
    flex: 1 1 300px;
    min-width: 0;
}

.env-paragraph {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--c-text-muted);
    margin-bottom: 20px;
}

.env-paragraph strong {
    color: #37474f;
}

.env-card {
    flex: 1 1 320px;
    max-width: 380px;
    border: 1px solid #b0bec5;
    padding: clamp(20px, 2.5vw, 30px);
    background-color: #ffffff;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--c-blue);
    margin-bottom: 25px;
}

.temp-list {
    list-style: none;
}

.temp-list li {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
    font-size: var(--fs-body);
    color: #37474f;
}

.temp-list li:last-child {
    margin-bottom: 0;
}

.material {
    padding-right: 4px;
    white-space: nowrap;
}

.leader {
    flex-grow: 1;
    border-bottom: 1px dotted #b0bec5;
    margin-bottom: 4px;
    padding: 0 4px;
}

.value {
    padding-left: 4px;
    white-space: nowrap;
}

/* ---------- 27. СЛАЙДЕР ПОСТАВОК ---------- */
/* Обёртка секции */
.shipments-container {
    max-width: 1200px;
    margin: clamp(30px, 5vw, 50px) auto;
    padding: 0 var(--pad-x);
    position: relative;
}

.shipments-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: bold;
    color: var(--c-blue);
    margin-bottom: clamp(20px, 3vw, 30px);
}

/* ✅ ИСПРАВЛЕНО: добавили боковые отступы, чтобы стрелки не наезжали на карточки */
.shipments-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 60px;
}

.slider-track {
    display: flex;
    gap: 20px;
    width: 100%;
    min-width: 0;                    /* ✅ ИСПРАВЛЕНО */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;   /* ✅ ИСПРАВЛЕНО: "прилипание" карточек */
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* ✅ ИСПРАВЛЕНО: разделили width и flex, добавили scroll-snap */
.slider-item {
    flex: 0 0 auto;
    width: calc((100% - 80px) / 5);   /* 5 карточек, gap 20px × 4 = 80px */
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
    scroll-snap-align: start;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стрелки */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.slider-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-50%) scale(1.05);
}

.btn-prev { left: 10px; }
.btn-next { right: 10px; }

/* ============================================================
   ✅ ИСПРАВЛЕНО: АДАПТИВ — этим блокам НЕ ХВАТАЛО media-queries
   ============================================================ */

/* Планшеты широкие (≤1280px) — 4 карточки */
@media (max-width: 1280px) {
    .slider-item {
        width: calc((100% - 60px) / 4);   /* 4 × gap 20px = 60px */
    }
}

/* Планшеты (≤1024px) — 3 карточки */
@media (max-width: 1024px) {
    .shipments-slider-wrapper {
        padding: 0 50px;
    }
    .slider-item {
        width: calc((100% - 40px) / 3);   /* 3 × gap 20px = 40px */
    }
}

/* Планшеты вертикальные (≤768px) — 2 карточки */
@media (max-width: 768px) {
    .shipments-slider-wrapper {
        padding: 0 40px;
    }
    .slider-item {
        width: calc((100% - 20px) / 2);   /* 2 × gap 20px = 20px */
    }
}

/* Мобильные (≤600px) — ~1.2 карточки + скрытие стрелок */
@media (max-width: 600px) {
    .shipments-slider-wrapper {
        padding: 0;                        /* стрелки скрыты — отступ не нужен */
    }
    .slider-btn {
        display: none;                     /* на тач-устройствах листают пальцем */
    }
    .slider-item {
        width: 78%;                        /* видно 1 карточку + намёк на следующую */
    }
}

/* Очень узкие (≤480px) */
@media (max-width: 480px) {
    .slider-item {
        width: 85%;
    }
}

/* ---------- 28. МАРКИРОВКА (арматура) ---------- */
.marking-container {
    display: flex;
    flex-wrap: wrap;              /* ✅ ИСПРАВЛЕНО */
    padding: clamp(16px, 2vw, 30px);
    border-radius: 4px;
    max-width: 1250px;
    width: 100%;
    gap: clamp(20px, 2.5vw, 30px);
    margin: 0 auto;
}

.scheme-area {
    display: flex;
    flex-direction: column;
    width: 100%;                  /* ✅ ИСПРАВЛЕНО: было 720px фикс. */
    max-width: 720px;
    min-width: 0;
    flex: 1 1 480px;
}

.code-row {
    display: flex;
    border: 1px solid #333;
    background: #fff;
    height: 42px;
    width: 100%;                  /* ✅ ИСПРАВЛЕНО */
    max-width: 420px;
    margin-left: clamp(0px, 20vw, 280px); /* ✅ ИСПРАВЛЕНО */
    margin-bottom: 30px;
}

.code-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-right: 1px solid #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.code-segment:last-child {
    border-right: none;
}

.scheme-row {
    display: flex;
    align-items: center;
    height: 42px;
    margin-bottom: 16px;
    position: relative;
}

.parameter-box {
    background: #fff;
    border: 1px solid #333;
    padding: 10px;
    font-size: 13px;
    width: 250px;
    max-width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.line-container {
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.css-line {
    position: absolute;
    top: 50%;
    left: 0;
    border-top: 1.5px solid #333;
    transition: border-color 0.2s ease;
}

.css-line::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1.5px;
    background-color: #333;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.l-join-type { width: 65px; }
.l-join-type::after { height: 51px; top: -51px; }

.l-diameter { width: 135px; }
.l-diameter::after { height: 109px; top: -109px; }

.l-pressure { width: 205px; }
.l-pressure::after { height: 167px; top: -167px; }

.l-body-material { width: 275px; }
.l-body-material::after { height: 225px; top: -225px; }

.l-disc-material { width: 345px; }
.l-disc-material::after { height: 283px; top: -283px; }

.l-control-type { width: 415px; }
.l-control-type::after { height: 341px; top: -341px; }

.reference-guide {
    background: #fff;
    padding: 20px;
    width: 280px;
    max-width: 100%;
    margin-left: auto;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.reference-guide h3 {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
}

.reference-guide h3:first-child { margin-top: 0; }
.reference-guide p { color: #333; margin-bottom: 2px; }

/* Интерактивность :has + hover */
.marking-container:has(.p-join-type:hover) .p-join-type,
.marking-container:has(.c-join-type:hover) .p-join-type,
.marking-container:has(.p-join-type:hover) .c-join-type,
.marking-container:has(.c-join-type:hover) .c-join-type { background: #d1e7dd !important; font-weight: bold; }
.marking-container:has(.p-join-type:hover) .l-join-type,
.marking-container:has(.c-join-type:hover) .l-join-type { border-top: 2.5px solid #0f5132 !important; }
.marking-container:has(.p-join-type:hover) .l-join-type::after,
.marking-container:has(.c-join-type:hover) .l-join-type::after { background-color: #0f5132 !important; width: 2.5px; }

.marking-container:has(.p-diameter:hover) .p-diameter,
.marking-container:has(.c-diameter:hover) .p-diameter,
.marking-container:has(.p-diameter:hover) .c-diameter,
.marking-container:has(.c-diameter:hover) .c-diameter { background: #cff4fc !important; font-weight: bold; }
.marking-container:has(.p-diameter:hover) .l-diameter,
.marking-container:has(.c-diameter:hover) .l-diameter { border-top: 2.5px solid #055160 !important; }
.marking-container:has(.p-diameter:hover) .l-diameter::after,
.marking-container:has(.c-diameter:hover) .l-diameter::after { background-color: #055160 !important; width: 2.5px; }

.marking-container:has(.p-pressure:hover) .p-pressure,
.marking-container:has(.c-pressure:hover) .p-pressure,
.marking-container:has(.p-pressure:hover) .c-pressure,
.marking-container:has(.c-pressure:hover) .c-pressure { background: #fff3cd !important; font-weight: bold; }
.marking-container:has(.p-pressure:hover) .l-pressure,
.marking-container:has(.c-pressure:hover) .l-pressure { border-top: 2.5px solid #664d03 !important; }
.marking-container:has(.p-pressure:hover) .l-pressure::after,
.marking-container:has(.c-pressure:hover) .l-pressure::after { background-color: #664d03 !important; width: 2.5px; }

.marking-container:has(.p-body-material:hover) .p-body-material,
.marking-container:has(.c-body-material:hover) .p-body-material,
.marking-container:has(.p-body-material:hover) .c-body-material,
.marking-container:has(.c-body-material:hover) .c-body-material { background: #f8d7da !important; font-weight: bold; }
.marking-container:has(.p-body-material:hover) .l-body-material,
.marking-container:has(.c-body-material:hover) .l-body-material { border-top: 2.5px solid #842029 !important; }
.marking-container:has(.p-body-material:hover) .l-body-material::after,
.marking-container:has(.c-body-material:hover) .l-body-material::after { background-color: #842029 !important; width: 2.5px; }

.marking-container:has(.p-disc-material:hover) .p-disc-material,
.marking-container:has(.c-disc-material:hover) .p-disc-material,
.marking-container:has(.p-disc-material:hover) .c-disc-material,
.marking-container:has(.c-disc-material:hover) .c-disc-material { background: #e2d9f3 !important; font-weight: bold; }
.marking-container:has(.p-disc-material:hover) .l-disc-material,
.marking-container:has(.c-disc-material:hover) .l-disc-material { border-top: 2.5px solid #432874 !important; }
.marking-container:has(.p-disc-material:hover) .l-disc-material::after,
.marking-container:has(.c-disc-material:hover) .l-disc-material::after { background-color: #432874 !important; width: 2.5px; }

.marking-container:has(.p-control-type:hover) .p-control-type,
.marking-container:has(.c-control-type:hover) .p-control-type,
.marking-container:has(.p-control-type:hover) .c-control-type,
.marking-container:has(.c-control-type:hover) .c-control-type { background: #e2e3e5 !important; font-weight: bold; }
.marking-container:has(.p-control-type:hover) .l-control-type,
.marking-container:has(.c-control-type:hover) .l-control-type { border-top: 2.5px solid #41464b !important; }
.marking-container:has(.p-control-type:hover) .l-control-type::after,
.marking-container:has(.c-control-type:hover) .l-control-type::after { background-color: #41464b !important; width: 2.5px; }

/* ---------- 29. ДЕКОДЕР (задвижки КЗС) ---------- */
.decoder-card {
    display: flex;
    flex-wrap: wrap;              /* ✅ ИСПРАВЛЕНО */
    padding: clamp(16px, 2vw, 30px);
    border-radius: 4px;
    max-width: 1250px;
    width: 100%;
    gap: clamp(20px, 2.5vw, 30px);
    margin: 0 auto;
}

.blueprint-zone {
    display: flex;
    flex-direction: column;
    width: 100%;                  /* ✅ ИСПРАВЛЕНО */
    max-width: 720px;
    min-width: 0;
    flex: 1 1 480px;
}

.valve-code-bar {
    display: flex;
    border: 1px solid #333;
    background: #fff;
    height: 42px;
    width: 100%;                  /* ✅ ИСПРАВЛЕНО */
    max-width: 420px;
    margin-left: clamp(0px, 20vw, 280px);
    margin-bottom: 30px;
}

.code-unit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-right: 1px solid #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.code-unit:last-child {
    border-right: none;
}

.interactive-row {
    display: flex;
    align-items: center;
    height: 42px;
    margin-bottom: 16px;
    position: relative;
}

.card-param-box {
    background: #fff;
    border: 1px solid #333;
    padding: 10px;
    font-size: 13px;
    width: 250px;
    max-width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.connector-track {
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.solid-trace {
    position: absolute;
    top: 50%;
    left: 0;
    border-top: 1.5px solid #333;
    transition: border-color 0.2s ease;
}

.solid-trace::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1.5px;
    background-color: #333;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.wire-join { width: 72px; }
.wire-join::after { height: 51px; top: -51px; }

.wire-size { width: 156px; }
.wire-size::after { height: 109px; top: -109px; }

.wire-press { width: 240px; }
.wire-press::after { height: 167px; top: -167px; }

.wire-body { width: 324px; }
.wire-body::after { height: 225px; top: -225px; }

.wire-drive { width: 408px; }
.wire-drive::after { height: 283px; top: -283px; }

.legend-panel {
    background: #fff;
    padding: 20px;
    width: 280px;
    max-width: 100%;
    margin-left: auto;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.legend-panel h3 {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
    font-weight: bold;
}

.legend-panel h3:first-child { margin-top: 0; }
.legend-panel p { color: #333; margin-bottom: 4px; }

/* Интерактивность декодера */
.decoder-card:has(.trigger-join:hover) .trigger-join,
.decoder-card:has(.segment-join:hover) .trigger-join,
.decoder-card:has(.trigger-join:hover) .segment-join,
.decoder-card:has(.segment-join:hover) .segment-join { background: #d1e7dd !important; font-weight: bold; }
.decoder-card:has(.trigger-join:hover) .wire-join,
.decoder-card:has(.segment-join:hover) .wire-join { border-top: 2.5px solid #0f5132 !important; }
.decoder-card:has(.trigger-join:hover) .wire-join::after,
.decoder-card:has(.segment-join:hover) .wire-join::after { background-color: #0f5132 !important; width: 2.5px; }

.decoder-card:has(.trigger-size:hover) .trigger-size,
.decoder-card:has(.segment-size:hover) .trigger-size,
.decoder-card:has(.trigger-size:hover) .segment-size,
.decoder-card:has(.segment-size:hover) .segment-size { background: #cff4fc !important; font-weight: bold; }
.decoder-card:has(.trigger-size:hover) .wire-size,
.decoder-card:has(.segment-size:hover) .wire-size { border-top: 2.5px solid #055160 !important; }
.decoder-card:has(.trigger-size:hover) .wire-size::after,
.decoder-card:has(.segment-size:hover) .wire-size::after { background-color: #055160 !important; width: 2.5px; }

.decoder-card:has(.trigger-press:hover) .trigger-press,
.decoder-card:has(.segment-press:hover) .trigger-press,
.decoder-card:has(.trigger-press:hover) .segment-press,
.decoder-card:has(.segment-press:hover) .segment-press { background: #fff3cd !important; font-weight: bold; }
.decoder-card:has(.trigger-press:hover) .wire-press,
.decoder-card:has(.segment-press:hover) .wire-press { border-top: 2.5px solid #664d03 !important; }
.decoder-card:has(.trigger-press:hover) .wire-press::after,
.decoder-card:has(.segment-press:hover) .wire-press::after { background-color: #664d03 !important; width: 2.5px; }

.decoder-card:has(.trigger-body:hover) .trigger-body,
.decoder-card:has(.segment-body:hover) .trigger-body,
.decoder-card:has(.trigger-body:hover) .segment-body,
.decoder-card:has(.segment-body:hover) .segment-body { background: #f8d7da !important; font-weight: bold; }
.decoder-card:has(.trigger-body:hover) .wire-body,
.decoder-card:has(.segment-body:hover) .wire-body { border-top: 2.5px solid #842029 !important; }
.decoder-card:has(.trigger-body:hover) .wire-body::after,
.decoder-card:has(.segment-body:hover) .wire-body::after { background-color: #842029 !important; width: 2.5px; }

.decoder-card:has(.trigger-drive:hover) .trigger-drive,
.decoder-card:has(.segment-drive:hover) .trigger-drive,
.decoder-card:has(.trigger-drive:hover) .segment-drive,
.decoder-card:has(.segment-drive:hover) .segment-drive { background: #e2e3e5 !important; font-weight: bold; }
.decoder-card:has(.trigger-drive:hover) .wire-drive,
.decoder-card:has(.segment-drive:hover) .wire-drive { border-top: 2.5px solid #41464b !important; }
.decoder-card:has(.trigger-drive:hover) .wire-drive::after,
.decoder-card:has(.segment-drive:hover) .wire-drive::after { background-color: #41464b !important; width: 2.5px; }

/* ---------- 30. СКРОЛЛБАР ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: var(--c-blue);
    border-radius: 5px;
    border: 2px solid #f0f4f8;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-blue-bright);
}

/* ---------- 31. АДАПТИВ ЧАСТИ 3 ---------- */

/* Планшеты 1100px */
@media (max-width: 1100px) {
    .reviews-section {
        padding: var(--pad-y) var(--pad-x);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Планшеты 992px */
@media (max-width: 992px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 40px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .btn-all-articles {
        width: 100%;
        text-align: center;
    }
    .subscribe-gallery-section {
        padding-top: clamp(30px, 5vw, 70px);
    }
    .subscribe-container {
        margin-bottom: 50px;
    }
    .instagram-tape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-footer {
        padding: 60px var(--pad-x) 30px var(--pad-x);
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 50px;
    }
    .footer-title {
        margin-bottom: 20px;
    }
    .footer-bottom-bar {
        flex-direction: column-reverse;
        gap: 25px;
        align-items: center;
        text-align: center;
    }
    .plumbing-catalog-container {
        flex-direction: column;
        gap: 30px;
    }
    .catalog-sidebar {
        width: 100%;
        flex: none;
    }
    .categories-grid-8 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .env-content {
        flex-direction: column;
        gap: 30px;
    }
    .env-card {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }
    .marking-container,
    .decoder-card {
        flex-direction: column;
        gap: 30px;
    }
    .scheme-area,
    .blueprint-zone,
    .reference-guide,
    .legend-panel {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }
    .code-row,
    .valve-code-bar {
        margin-left: 0;
        width: 100%;
    }
    .line-container,
    .connector-track {
        display: none;
    }
}

/* Мобильные 768px */
@media (max-width: 768px) {
    .reviews-section {
        padding: var(--pad-y-sm) var(--pad-x);
    }
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .review-card {
        padding: 20px;
        min-height: auto;
    }
    .blog-section {
        padding: var(--pad-y-sm) var(--pad-x);
    }
    .blog-header h2 {
        font-size: clamp(20px, 5vw, 26px);
    }
    .article-title a {
        font-size: 16px;
    }
    .categories-grid-8 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 10px;
    }
    .catalog-main-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    .product-card {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .product-gallery {
        flex: 1 1 auto;
        width: 100%;
        max-width: 400px;
    }
    .product-info {
        width: 100%;
    }
    .specs-table td {
        display: block;
        width: 100% !important;
        padding: 6px 0;
    }
    .specs-table tr {
        padding: 8px 0;
        display: block;
    }
    .logo img,
    .nav-logo img,
    .footer-logo img {
        height: clamp(28px, 6vw, 40px);
    }
    .slider-item {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

/* Мобильные 600px */
@media (max-width: 600px) {
    .subscribe-container h2 {
        font-size: clamp(18px, 5vw, 22px);
    }
    .subscribe-text {
        font-size: 12px;
        margin-bottom: 30px;
    }
    .btn-telegram-subscribe {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .instagram-tape-grid {
        grid-template-columns: 1fr;
    }
    .main-footer {
        padding: 50px var(--pad-x) 30px var(--pad-x);
    }
    .footer-logo {
        margin-bottom: 20px;
    }
    .footer-slogan {
        margin-bottom: 30px;
    }
    .slider-item {
        flex: 0 0 calc((100% - 20px) / 1);  /* ✅ ИСПРАВЛЕНО: 1 картинка, а не 1.5 */
    }
    .slider-btn {
        display: none;
    }
    .order-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Маленькие 480px */
@media (max-width: 480px) {
    .categories-grid-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .category-icon-box {
        max-width: 100px;
    }
    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        padding-bottom: 6px;
    }
    .thumb-btn {
        width: 56px;
        height: 56px;
    }
    .product-gallery {
        flex-direction: column-reverse;
    }
    .main-image {
        width: 100%;
    }
}

/* Очень узкие 375px */
@media (max-width: 375px) {
    .review-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .category-icon-box {
        max-width: 88px;
    }
    .thumb-btn {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   ПРОКРУТКА ТАБЛИЦЫ — правильная версия
   ============================================================ */

.tplc {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: block;
    box-sizing: border-box;
}

/* Ключевой момент: таблица НЕ растягивается на 100%, 
   а занимает СВОЮ натуральную ширину (по содержимому) */
.tplc > table {
    width: max-content;       /* ← вот главное изменение */
    min-width: 100%;          /* не меньше родителя, но может быть больше */
    border-collapse: collapse;
    table-layout: auto;
}

/* Ячейки не переносят слова — иначе браузер сожмёт столбцы */
.tplc th,
.tplc td {
    white-space: nowrap;
}

/* Тонкий скроллбар */
.tplc::-webkit-scrollbar {
    height: 8px;
}
.tplc::-webkit-scrollbar-track {
    background: #f0f4f8;
    border-radius: 4px;
}
.tplc::-webkit-scrollbar-thumb {
    background: #1e3a60;
    border-radius: 4px;
}
.tplc::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* На мобильных — компактнее, но всё равно не сжимаем */
@media (max-width: 768px) {
    .tplc th,
    .tplc td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* ============================================================
   ФИКС: не даём flex-цепочке раздуваться из-за широкой таблицы
   ============================================================ */

/* 1. Все ключевые уровни — сжимаются, overflow внутри */
.catalog-main-content,
.description-text,
.tplc {
    min-width: 0 !important;      /* ← ключ: разрешает сжатие меньше содержимого */
    max-width: 100% !important;
    width: 100% !important;
}

/* 2. Сам контейнер .tplc — скроллит внутри */
.tplc {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    box-sizing: border-box;
                                   */
    background:
        /* Тень справа */
        linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0.18)) right center / 40px 100% no-repeat,
        /* Тень слева */
        linear-gradient(to left,  rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0.18)) left center  / 40px 100% no-repeat,
        /* Белая подложка справа (перекрывает тень при скролле до конца) */
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat,
        /* Белая подложка слева */
        linear-gradient(to left,  #fff 30%, rgba(255, 255, 255, 0)) left center  / 40px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
}

/* 3. Таблица внутри — не сжимается, но ограничена */
.tplc > table {
    width: auto !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse;
}

.tplc th,
.tplc td {
    white-space: nowrap !important;
}

/* Тонкий скроллбар */
.tplc::-webkit-scrollbar { height: 6px; }
.tplc::-webkit-scrollbar-track { background: #f0f4f8; border-radius: 3px; }
.tplc::-webkit-scrollbar-thumb { background: #1e3a60; border-radius: 3px; }