/* ==========================================================================
   KAISER ENGINEERING — Corporate B2B Stylesheet
   ========================================================================== */
:root {
    --navy-dark: #08152B;
    --navy-main: #0D1E3A;
    --navy-light: #152B50;
    --orange-main: #F37B1D;
    --orange-hover: #E0680B;
    --whatsapp-green: #25D366;
    --text-dark: #111827;
    --text-muted: #5A6577;
    --bg-light: #F4F6F9;
    --border-light: #E2E8F0;
    --white: #FFFFFF;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --shadow-card: 0 12px 30px rgba(8, 21, 43, 0.10);
    --shadow-hover: 0 18px 38px rgba(8, 21, 43, 0.16);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Отступ для якорей: высота закреплённой шапки (уточняется в app.js) + зазор */
    scroll-padding-top: calc(var(--header-h, 136px) + 16px);
}

body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: linear-gradient(180deg, #071326 0%, #0D1E3A 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand-group {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-logo-img {
    display: block;
    height: 47px;
    width: auto;
}

.site-footer .brand-logo-img {
    height: 52px;
}

.header-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.24);
}

.header-slogan {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: #E2E8F0;
}

.header-actions-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white);
    transition: color 0.2s;
}

.header-phone:hover {
    color: var(--orange-main);
}

.phone-icon {
    color: var(--orange-main);
    display: inline-flex;
}

.header-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--white);
    transition: opacity 0.2s;
}

.header-whatsapp:hover {
    opacity: 0.85;
}

.wa-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--whatsapp-green);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    min-width: 150px;
    padding: 6px;
    display: none;
    z-index: 100;
}

.lang-menu.open {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    color: var(--text-dark);
}

.lang-menu a:hover, .lang-menu a.active {
    background: #FFF3E8;
    color: var(--orange-main);
}

.header-nav-bar {
    padding: 11px 0;
    background: rgba(11, 26, 51, 0.96);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-pill {
    background: var(--orange-main);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-pill:hover {
    background: var(--orange-hover);
}

.nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #F1F5F9;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 2px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--orange-main);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background: var(--white);
    color: var(--text-dark);
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(8, 21, 43, 0.22);
    padding: 8px;
    display: none;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    color: var(--text-dark);
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    background: #FFF3E8;
    color: var(--orange-main);
}

.header-search-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--white);
    border-radius: 999px;
    padding: 8px 16px;
    width: 245px;
}

.header-search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    width: 100%;
}

.btn-header-kp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange-main);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-header-kp:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
}

.mobile-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-burger span {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    background: var(--navy-dark);
    color: var(--white);
    overflow: hidden;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 540px;
    background-size: cover;
    background-position: center right;
    padding: 68px 0 140px;
}

.hero-slide.active {
    display: block;
    animation: fadeSlide 0.5s ease;
}

/* Слайд с фото справа и тёмным фоном слева (как на макете) */
.hero-slide--split {
    background-color: var(--navy-dark);
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-slide--split .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(8, 21, 43, 1) 0%,
        rgba(8, 21, 43, 0.97) 30%,
        rgba(8, 21, 43, 0.55) 48%,
        rgba(8, 21, 43, 0.08) 68%,
        rgba(8, 21, 43, 0) 100%
    );
}

@keyframes fadeSlide {
    from { opacity: 0.65; }
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 21, 43, 0.96) 0%,
        rgba(11, 27, 54, 0.88) 44%,
        rgba(11, 27, 54, 0.42) 74%,
        rgba(8, 21, 43, 0.22) 100%
    );
}

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

.hero-headline-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 780px;
}

.hero-slash {
    color: var(--orange-main);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.05;
    user-select: none;
}

.hero-title {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--white);
}

.hero-title .text-orange {
    display: block;
    color: var(--orange-main);
    margin-top: 4px;
}

.hero-subtitle {
    margin: 22px 0 32px 34px;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.55;
    color: #E2E8F0;
    max-width: 620px;
}

.hero-cta-row {
    margin-left: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--orange-main);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 17px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(243, 123, 29, 0.35);
    transition: background 0.2s, transform 0.15s;
}

.btn-hero-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 26, 51, 0.72);
    backdrop-filter: blur(6px);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-hero-secondary:hover {
    border-color: var(--orange-main);
    background: rgba(243, 123, 29, 0.15);
}

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

.hero-dots {
    position: absolute;
    bottom: 104px;
    left: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots .dot {
    width: 8px;
    height: 6px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.hero-dots .dot.active {
    width: 26px;
    background: var(--orange-main);
}

/* ==========================================================================
   6 КАРТОЧЕК НАПРАВЛЕНИЙ
   ========================================================================== */
.category-cards-overlap {
    position: relative;
    z-index: 10;
    margin-top: -82px;
    padding-bottom: 24px;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cat-visual-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 7px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cat-visual-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange-main);
}

.cat-card-img {
    height: 118px;
    border-radius: 10px;
    overflow: hidden;
    background: #E2E8F0;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cat-visual-card:hover .cat-card-img img {
    transform: scale(1.06);
}

.cat-card-body {
    position: relative;
    padding: 13px 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    flex: 1;
}

.cat-card-icon {
    width: 28px;
    height: 28px;
    color: var(--orange-main);
    flex-shrink: 0;
    margin-top: 1px;
}

.cat-card-text {
    padding-right: 22px;
}

.cat-card-text h3 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--text-dark);
}

.cat-card-text p {
    margin: 0;
    font-size: 11px;
    line-height: 1.32;
    color: var(--text-muted);
}

.cat-card-arrow {
    position: absolute;
    right: 6px;
    bottom: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #FDE6D2;
    color: var(--orange-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cat-visual-card:hover .cat-card-arrow {
    background: var(--orange-main);
    color: var(--white);
}

/* ==========================================================================
   ПОЛОСА ИЗ 6 ПРЕИМУЩЕСТВ
   ========================================================================== */
.benefits-strip {
    padding: 24px 0 38px;
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-right: 1px solid #CBD5E1;
}

.benefit-item:first-child {
    padding-left: 0;
}

.benefit-item:last-child {
    border-right: none;
    padding-right: 0;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    color: #0F172A;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.benefit-label {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.28;
    color: #111827;
    flex: 1;
}

/* ==========================================================================
   КАТАЛОГ ПРОДУКЦИИ, О КОМПАНИИ, ПРОЕКТЫ
   ========================================================================== */
.section-catalog {
    padding: 64px 0;
    background: var(--bg-light);
}

.section-head {
    margin-bottom: 28px;
}

.section-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--orange-main);
    margin-bottom: 6px;
}

.section-head h2, .section-about h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-dark);
}

.section-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-chip {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--orange-main);
    color: var(--orange-main);
}

.filter-chip.active {
    background: var(--navy-main);
    border-color: var(--navy-main);
    color: var(--white);
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card[hidden] {
    display: none;
}

.product-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--orange-main);
}

.prod-img {
    height: 210px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prod-img img {
    width: 100%;
    height: 100%;
    display: block;
}

.prod-img--contain img {
    object-fit: contain;
    padding: 14px;
}

.prod-img--cover img {
    object-fit: cover;
}

.prod-body {
    padding: 18px 20px 4px;
    flex: 1;
}

.prod-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 700;
}

.prod-brand {
    color: var(--orange-main);
    letter-spacing: 0.04em;
}

.prod-sku {
    background: #EFF6FF;
    color: var(--navy-main);
    padding: 4px 9px;
    border-radius: 5px;
}

.prod-std {
    color: var(--text-muted);
}

.prod-title {
    margin: 0 0 10px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.38;
    color: var(--text-dark);
}

.prod-specs {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.prod-footer {
    border-top: 1px solid var(--border-light);
    margin: 0 20px;
    padding: 14px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-dark);
}

.price-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-add-spec {
    background: #FFF3E8;
    color: var(--orange-main);
    border: 1px solid #FCD3B1;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-spec:hover, .btn-add-spec.added {
    background: var(--orange-main);
    border-color: var(--orange-main);
    color: var(--white);
}

/* О компании */
.section-about {
    padding: 68px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.about-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-box {
    background: var(--bg-light);
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid var(--orange-main);
}

.stat-box strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.stat-box span {
    font-size: 12.5px;
    color: var(--text-muted);
}

.about-card-dark {
    background: linear-gradient(145deg, var(--navy-dark), var(--navy-light));
    color: var(--white);
    padding: 32px;
    border-radius: 14px;
}

.about-card-dark h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.about-card-dark ul {
    margin: 0 0 24px;
    padding-left: 18px;
    color: #E2E8F0;
    font-size: 14px;
    line-height: 1.6;
}

.about-card-dark li {
    margin-bottom: 8px;
}

/* Проекты */
.section-projects {
    padding: 64px 0;
    background: var(--bg-light);
}

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

.project-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--orange-main);
    margin-bottom: 10px;
}

.project-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: var(--navy-dark);
}

.project-card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Сертификаты и партнёры */
.section-certs {
    padding: 64px 0 24px;
}

.certs-box {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: center;
}

.certs-box h3 {
    margin-bottom: 0;
}

/* Партнёрам */
.section-partners {
    padding: 64px 0 70px;
    background: var(--navy-main);
    color: var(--white);
    margin-top: 40px;
}

.section-partners .section-head h2 {
    color: var(--white);
}

.section-partners .section-head p {
    color: #B6C2D6;
    max-width: 760px;
    line-height: 1.55;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--orange-main);
    border-radius: 12px;
    padding: 24px 24px 20px;
}

.partner-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.partner-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner-card li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #D7DEEA;
}

.partner-card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 6px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--orange-main);
    border-bottom: 2px solid var(--orange-main);
    transform: rotate(-45deg);
}

.partners-steps-title {
    margin: 40px 0 16px;
    font-size: 19px;
    font-weight: 800;
}

.partners-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.partners-steps li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.partners-steps .step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--orange-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
}

.partners-steps strong {
    font-size: 15px;
}

.partners-steps li > span:last-child {
    font-size: 13px;
    color: #B6C2D6;
    line-height: 1.45;
}

.partners-cta {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline-light:hover {
    border-color: var(--orange-main);
    color: var(--orange-main);
}

.panel-box {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 32px;
}

.panel-box h3 {
    margin: 0 0 16px;
    font-size: 21px;
}

.check-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
    font-size: 14px;
    color: var(--text-dark);
}

.panel-navy {
    background: var(--navy-main);
    color: var(--white);
}

.panel-navy p {
    color: #CBD5E1;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--navy-dark);
    color: #CBD5E1;
    padding: 54px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin: 16px 0 12px;
}

.footer-bin {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-main);
}

.footer-col h4 {
    color: var(--white);
    margin: 0 0 14px;
    font-size: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 9px;
    font-size: 13px;
}

.footer-col a:hover {
    color: var(--orange-main);
}

.footer-contact-item {
    font-size: 13px;
    margin: 0 0 9px;
}

.btn-orange-sm {
    margin-top: 8px;
    background: var(--orange-main);
    color: var(--white);
    border: none;
    border-radius: 7px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94A3B8;
}

/* ==========================================================================
   MODAL & FLOATING SPEC BUTTON
   ========================================================================== */
.spec-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    background: var(--navy-main);
    color: var(--white);
    border: 2px solid var(--orange-main);
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spec-fab strong {
    background: var(--orange-main);
    padding: 2px 9px;
    border-radius: 99px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 21, 43, 0.72);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    background: var(--white);
    border-radius: 16px;
    max-width: 620px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-header {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.orange-slash {
    color: var(--orange-main);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.modal-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--navy-dark);
}

.modal-header p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--orange-main);
}

.btn-submit-kp {
    width: 100%;
    background: var(--orange-main);
    color: var(--white);
    border: none;
    border-radius: 9px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-submit-kp:hover {
    background: var(--orange-hover);
}

.form-status {
    margin-bottom: 12px;
    font-size: 13.5px;
    font-weight: 600;
}

.form-status.success { color: #059669; }
.form-status.error { color: #DC2626; }


/* --- Каталог: модели, таблицы, подгруппы, загрузки --- */
.prod-models {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin: -6px 0 14px;
}

.prod-models-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 2px;
}

.model-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-main);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}

.prod-table-wrap {
    margin: 0 0 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.prod-table-wrap summary {
    cursor: pointer;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-main);
    list-style-position: inside;
}

.prod-table-wrap[open] summary {
    border-bottom: 1px solid var(--border-light);
}

.prod-table-scroll {
    overflow-x: auto;
}

.prod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.prod-table th {
    text-align: left;
    background: var(--bg-light);
    color: var(--text-muted);
    font-weight: 700;
    padding: 7px 10px;
    white-space: nowrap;
}

.prod-table td {
    padding: 6px 10px;
    border-top: 1px solid var(--border-light);
    white-space: nowrap;
}

.prod-table td:last-child, .prod-table th:last-child {
    text-align: right;
}

.prod-table tbody tr:hover {
    background: #FFF8F1;
}

.prod-note {
    margin: -4px 0 14px;
    font-size: 11.5px;
    color: #9A5B16;
    background: #FFF7ED;
    border-radius: 6px;
    padding: 7px 10px;
    line-height: 1.4;
}

.price-request {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.prod-price .price-unit {
    margin-right: 3px;
}

.chip-count {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1px 7px;
}

.filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

a.filter-chip {
    display: inline-flex;
    align-items: center;
}

.featured-title {
    margin: 8px 0 18px;
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-dark);
}

.catalog-more {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

a.cat-visual-card {
    color: inherit;
    text-decoration: none;
}

/* Страница каталога */
.catalog-hero {
    background: var(--navy-dark);
    color: var(--white);
    padding: 34px 0 38px;
}

.catalog-hero h1 {
    margin: 10px 0 10px;
    font-size: 32px;
    font-weight: 800;
}

.catalog-hero p {
    margin: 0;
    max-width: 820px;
    color: #B6C2D6;
    font-size: 14.5px;
    line-height: 1.55;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #8C9AB3;
}

.breadcrumbs a:hover {
    color: var(--orange-main);
}

.catalog-main {
    padding-top: 30px;
}

.group-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.group-chip {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.group-chip:hover {
    color: var(--orange-main);
}

.group-chip.active {
    background: #FFF3E8;
    border-color: #FCD3B1;
    color: var(--orange-main);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0 14px;
    flex: 1;
    max-width: 520px;
}

.catalog-search input {
    border: none;
    outline: none;
    font-size: 14px;
    padding: 12px 0;
    width: 100%;
    background: transparent;
}

.catalog-count {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.catalog-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.header-search-form {
    flex: 1;
    display: flex;
}

.header-search-form input {
    width: 100%;
}

/* Каталоги для скачивания */
.section-downloads {
    padding: 56px 0 64px;
    background: var(--white);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.download-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
    border-color: var(--orange-main);
    box-shadow: var(--shadow-card);
}

.download-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--orange-main);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.download-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--orange-main);
}

.download-text strong {
    font-size: 14px;
    line-height: 1.35;
    color: var(--navy-dark);
}

.download-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE ADAPTATION
   ========================================================================== */
@media (max-width: 1200px) {
    .category-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .benefit-item {
        border-right: none;
        padding: 8px 0;
    }
    .header-slogan, .header-divider {
        display: none;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav.open {
        display: flex;
    }
    .mobile-burger {
        display: flex;
    }
    .hero-title {
        font-size: 30px;
    }
    .products-grid, .projects-grid, .about-grid, .two-col-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid, .certs-box { grid-template-columns: minmax(0, 1fr); }
    .partners-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 641px) and (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-search-box, .header-whatsapp span:last-child {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    /* Сетки не должны распираться содержимым шире экрана */
    .category-cards-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .products-grid, .projects-grid, .about-grid, .two-col-grid, .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .about-stats {
        grid-template-columns: minmax(0, 1fr);
    }
    /* Шапка: на телефоне оставляем иконки телефона и WhatsApp без текста */
    .header-top-inner { gap: 12px; }
    .header-actions-top { gap: 14px; }
    .header-phone > span:last-child { display: none; }
    .brand-logo-img { height: 38px; }
    .hero-slide--split { background-size: cover; background-position: 70% center; }
    .benefit-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 0; }
    .benefit-icon { width: 32px; height: 32px; }
    .benefit-label { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
    .hero-slide--split .hero-overlay { background: rgba(8, 21, 43, 0.78); }
    .partners-steps { grid-template-columns: minmax(0, 1fr); }
    .partners-cta > * { width: 100%; justify-content: center; }
    .header-phone, .header-whatsapp { white-space: nowrap; }
    /* Принудительные переносы из десктопного макета на узком экране только мешают */
    .hero-subtitle br { display: none; }
    .catalog-toolbar { flex-direction: column; align-items: stretch; }
    .catalog-search { max-width: none; }
    .catalog-hero h1 { font-size: 25px; }
    .prod-img { height: 190px; }
    .catalog-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .filter-chip { white-space: nowrap; flex-shrink: 0; }
}
