/* ========================================
   УБИРАЕМ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ
   ======================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box;
}

/* Контейнеры не должны вылезать за экран */
.container-custom,
.container-wide {
    max-width: 100%;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero-блоки */
.product-hero,
.page-hero {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Sticky кнопка на мобилке */
.mobile-sticky-cta {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
}

/* Сетки не должны ломать ширину */
.grid {
    max-width: 100%;
}

/* Картинки и SVG не вылезает */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Таблицы адаптируются */
.specs-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

@media (max-width: 768px) {
    .container-custom,
    .container-wide {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================
   ПАЛЛАНТ — INDUSTRIAL UI
   FINAL CUSTOM.CSS
========================= */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --graphite: #0f172a;
    --graphite-light: #1e293b;
    --concrete: #f3f4f6;
    --white: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --transition: 0.35s ease;
}

/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--concrete);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/* =========================
   CONTAINERS
========================= */

.container-custom {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
}

.container-wide {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.nav-link {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.6);
    color: white;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: white;
    color: var(--graphite);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px 0;
    background-image:
        linear-gradient(rgba(2, 6, 23, 0.70), rgba(2, 6, 23, 0.70)),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(14,165,233,.18), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 750px;
}

.hero-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(52px, 6.5vw, 88px);
    line-height: 1;
    font-weight: 800;
    color: white;
    margin-bottom: 32px;
}

.hero-text {
    color: rgba(255,255,255,.92);
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 44px;
    max-width: 650px;
}

/* =========================
   HERO STATS
========================= */

.hero-stats {
    margin-top: 60px;
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stat-number {
    font-size: 56px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-text {
    color: rgba(255,255,255,.75);
    margin-top: 10px;
    font-size: 16px;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 0;
}

.section-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--graphite);
    text-align: center;
    margin-bottom: 70px;
}

/* =========================
   CARDS (Advantages)
========================= */

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.card svg {
    color: var(--primary);
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

.product-card h3 {
    color: var(--graphite);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
}

.product-card p {
    color: var(--muted);
    line-height: 1.6;
}

.product-card .btn-primary {
    margin-top: auto;
    width: 100%;
}

/* =========================
   CATALOG SPECIFICS
========================= */

.product-category {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-features {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
    font-size: 0.95rem;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-specs,
.product-application,
.product-advantages,
.product-packaging,
.product-storage {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
}

.product-specs h4,
.product-application h4,
.product-advantages h4,
.product-packaging h4 {
    color: var(--graphite);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.product-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.packaging-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.packaging-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.packaging-icon {
    font-size: 1.3rem;
}

.product-storage {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.product-storage p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Filter Buttons */
.filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--graphite);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =========================
   CERTIFICATES & CTA
========================= */

.cert-badge {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 30px 24px;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
}

.cert-badge:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.cert-badge small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.cta-section {
    background: linear-gradient(135deg, var(--graphite), #1e293b);
    color: white;
    border-radius: 32px;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #020617;
    color: rgba(255,255,255,.75);
}

footer a {
    color: rgba(255,255,255,.75);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary);
}

footer ul li {
    transition: 0.3s;
}

footer ul li:hover {
    padding-left: 5px;
}

/* =========================
   ANIMATIONS
========================= */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .container-custom, 
    .container-wide {
        padding: 0 20px !important;
    }

    .hero {
        min-height: 700px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-text {
        font-size: 18px;
    }

    .section-title {
        font-size: 34px;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stat-number {
        font-size: 38px;
    }

    .section {
        padding: 60px 0;
    }

    .packaging-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-stat-number {
        font-size: 32px;
    }
}