/* ===================================
   ULTRAPLEX - Industrial Cinematic Design
   B2B Premium Landing Page
   ultraplex.com.ua
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Industrial Cinematic Palette */
    --primary: #0F172A;
    --primary-light: #1E293B;
    --primary-lighter: #334155;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --accent-dark: #D97706;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --cyan: #06B6D4;
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dark: #64748B;
    --surface: rgba(30, 41, 59, 0.8);
    --surface-glass: rgba(15, 23, 42, 0.7);
    --border: rgba(148, 163, 184, 0.1);
    --border-light: rgba(148, 163, 184, 0.2);
    
    /* Gradients */
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    
    /* Spacing */
    --section-padding: 120px;
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --blur: blur(20px);
    --shadow-glow: 0 0 60px rgba(245, 158, 11, 0.2);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Border radius */
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

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

/* Smooth scrolling optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100%;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ========================================
   CINEMATIC ANIMATED BACKGROUND
   ======================================== */

/* Main background container - subtle gradient only */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.015) 0%, transparent 60%);
    animation: bgPulse 20s ease-in-out infinite;
}

/* Animated gradient orbs - very subtle */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    animation: orbRotate 40s linear infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes orbRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-muted); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

::selection {
    background: var(--accent);
    color: var(--primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--primary-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(245, 158, 11, 0.5),
        0 0 40px rgba(245, 158, 11, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    color: var(--primary);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
    backdrop-filter: var(--blur);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    box-shadow:
        0 0 20px rgba(245, 158, 11, 0.3),
        inset 0 0 20px rgba(245, 158, 11, 0.05);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--surface-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* Sections */
.section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

/* Animated background for sections - дуже тонкий */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.015) 50%,
        transparent 100%
    );
    animation: sectionGlow 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes sectionGlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.333%); }
}

.section-dark {
    background: var(--gradient-dark);
    position: relative;
}

/* Розділювач лише для section-dark (не darker) */
.section-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.5) 30%,
        rgba(245, 158, 11, 0.7) 50%,
        rgba(245, 158, 11, 0.5) 70%,
        transparent 100%
    );
    animation: borderPulse 4s ease-in-out infinite;
    z-index: 10;
}

/* Не додаємо section-darker::after тут, бо він конфліктує з конкретними секціями */

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    }
}

.section-darker {
    background: #020617;
    position: relative;
}

/* Додаємо розділювач для КОНКРЕТНИХ секцій */
/* About section - використовуємо ::after для розділювача */
.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.5) 30%,
        rgba(245, 158, 11, 0.7) 50%,
        rgba(245, 158, 11, 0.5) 70%,
        transparent 100%
    );
    animation: borderPulse 4s ease-in-out infinite;
    z-index: 100;
    pointer-events: none;
}

/* Applications - має свій ::before, використовуємо ::after */
.applications-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.5) 30%,
        rgba(245, 158, 11, 0.7) 50%,
        rgba(245, 158, 11, 0.5) 70%,
        transparent 100%
    );
    animation: borderPulse 4s ease-in-out infinite;
    z-index: 100;
    pointer-events: none;
}

/* Lead section */
.lead-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.5) 30%,
        rgba(245, 158, 11, 0.7) 50%,
        rgba(245, 158, 11, 0.5) 70%,
        transparent 100%
    );
    animation: borderPulse 4s ease-in-out infinite;
    z-index: 100;
    pointer-events: none;
}

/* Ensure section content is above transition gradients */
.section > .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--text);
    margin-bottom: 16px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--surface-glass);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--accent);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-link.active {
    color: var(--accent) !important;
    background: rgba(245, 158, 11, 0.08);
}

/* Nav Dropdown (Продукція) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    white-space: nowrap;
    padding: 8px 0;
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    color: var(--text);
    background: rgba(245, 158, 11, 0.08);
    padding-left: 24px;
}

/* ===================================
   NAVBAR ACTIONS - Clean & Professional
   =================================== */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher - Modern Design */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
}

.lang-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.lang-switcher .dropdown-menu {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 160px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-switcher .dropdown-item {
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-switcher .dropdown-item:hover {
    background: var(--surface);
    color: var(--text);
}

.lang-switcher .dropdown-item.active {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.header-phone i {
    color: var(--accent);
}

/* Іконка трубки на мобілках - ПОЗА navbar-collapse, поруч з toggler */
.header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.header-phone-icon:hover {
    background: rgba(245, 158, 11, 0.25);
    transform: scale(1.05);
    color: var(--accent);
    border-color: var(--accent);
}

.navbar-toggler {
    display: none;
    padding: 10px;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: visible;
    padding-top: 80px;
    padding-bottom: 0;
    margin-bottom: -200px;
    transform: translateZ(0);
    will-change: transform;
}

/* Minimal particles - barely visible, professional */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.06), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(245, 158, 11, 0.1), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.04), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.07), transparent);
    background-size: 200% 200%, 180% 180%, 220% 220%, 190% 190%, 210% 210%, 170% 170%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%, 90% 60%;
    animation: particleFloat 30s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%, 90% 60%;
    }
    25% {
        background-position: 100% 50%, 0% 50%, 80% 20%, 20% 80%, 90% 60%, 10% 90%;
    }
    50% {
        background-position: 50% 100%, 50% 0%, 20% 80%, 90% 60%, 10% 90%, 80% 20%;
    }
    75% {
        background-position: 0% 50%, 100% 50%, 90% 60%, 10% 90%, 80% 20%, 50% 50%;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 300px);
    background-size: cover;
    background-position: center 40%;
    opacity: 1;
    filter: saturate(1.1);
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hero image fade out at the bottom */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(15, 23, 42, 0.15) 40%,
        rgba(15, 23, 42, 0.5) 70%,
        rgba(15, 23, 42, 0.85) 90%,
        var(--primary) 100%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.1) 40%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
    will-change: opacity;
    transform: translateZ(0);
}

/* Animated 3D grid overlay */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    transform-origin: center;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
        opacity: 0.3;
    }
    50% {
        background-position: 40px 40px;
        opacity: 0.5;
    }
    100% {
        background-position: 80px 80px;
        opacity: 0.3;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
    z-index: 1;
    animation: heroOrb 12s ease-in-out infinite;
}

@keyframes heroOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(-50px, 30px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(30px, -40px) scale(0.95);
        opacity: 1;
    }
}

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

.hero-content {
    max-width: 800px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.hero-badge i {
    color: var(--accent);
}

.hero-headline {
    color: var(--text);
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    max-width: 700px;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.7;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-eco {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
    padding: 24px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--blur);
}

.hero-stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
}

.hero-stat-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.hero-stat h3 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 4px;
}

.hero-stat p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About */
.about-section {
    background: transparent;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--primary) 150px,
        var(--primary) 100%);
    position: relative;
    padding-top: 250px;
}

/* Animated radial gradient background - мінімальний */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle at center,
        rgba(245, 158, 11, 0.03) 0%,
        transparent 60%
    );
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

/* ВИДАЛЕНО - конфлікт з розділювачем */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.about-stat-card {
    padding: 28px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.about-stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.about-stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-stat-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.about-image-caption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--surface-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.about-image-caption i {
    font-size: 1.5rem;
    color: var(--accent);
}

.about-image-caption span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* Advantages */
.advantages-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Mesh gradient background effect - професійний */
.advantages-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(245, 158, 11, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.015) 0%, transparent 50%);
    animation: meshRotate 50s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Розділювач для advantages з вищим пріоритетом */
.advantages-section::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.5) 30%,
        rgba(245, 158, 11, 0.7) 50%,
        rgba(245, 158, 11, 0.5) 70%,
        transparent 100%
    ) !important;
    animation: borderPulse 4s ease-in-out infinite !important;
    z-index: 100 !important;
    pointer-events: none !important;
}

@keyframes meshRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.advantage-card {
    position: relative;
    padding: 40px 32px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 60px rgba(245, 158, 11, 0.3);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.1);
}

.advantage-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.advantage-card h3 {
    color: var(--text);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Products */
.products-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Animated gradient waves - тонкий */
.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(245, 158, 11, 0.015) 50%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: gradientWave 20s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Product Showcase - Featured Package Image */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.product-showcase-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-showcase-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.product-showcase:hover .product-showcase-image img {
    transform: scale(1.03);
}

.product-showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.product-showcase-content {
    padding: 20px 0;
}

.product-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-showcase-content h3 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 16px;
}

.product-showcase-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-showcase-specs {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.spec-item {
    text-align: center;
}

.spec-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent);
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 991px) {
    .product-showcase {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }
    
    .product-showcase-image img {
        max-height: 300px;
    }
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 40px rgba(245, 158, 11, 0.2);
}

.product-image {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.product-placeholder i {
    font-size: 4rem;
    margin-bottom: 12px;
    color: var(--accent);
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--gradient-accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
}

.product-body {
    padding: 28px;
}

.product-title {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-specs {
    list-style: none;
    margin-bottom: 24px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs strong {
    color: var(--text-muted);
    font-weight: 500;
}

.product-specs span {
    color: var(--text);
    font-weight: 600;
}

/* Packages Block - standalone table below showcase */
.packages-block {
    margin-bottom: 60px;
    padding: 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
}

.packages-block-header {
    margin-bottom: 32px;
}

.packages-block-header h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.packages-block-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.packages-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.packages-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.packages-table-row:last-child {
    border-bottom: none;
}

.packages-table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.packages-table-cell {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.packages-table-cell--thickness {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.packages-table-cell--size {
    color: var(--text);
    font-weight: 600;
    font-family: var(--font-heading);
}

.packages-table-cell--qty {
    color: var(--text-muted);
    text-align: right;
}

.packages-table-header {
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.packages-table-header:hover {
    background: transparent;
}

.packages-table-cell--head {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .packages-block {
        padding: 24px 20px;
        margin-bottom: 40px;
    }

    .packages-table-row {
        padding: 14px 16px;
    }

    .packages-table-cell {
        font-size: 0.85rem;
    }

    .packages-table-cell--thickness {
        font-size: 0.9rem;
    }

    .packages-table-cell--head {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .packages-block {
        padding: 20px 16px;
    }

    .packages-table-header {
        display: none;
    }

    .packages-table-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .packages-table-cell--qty {
        text-align: left;
    }

    .packages-table-cell {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .packages-table-cell::before {
        content: attr(data-label);
        flex-shrink: 0;
        min-width: 80px;
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

/* Applications */
.applications-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Pulsing spotlight effect - професійний */
.applications-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(
        circle at center,
        rgba(245, 158, 11, 0.03) 0%,
        transparent 60%
    );
    animation: spotlight 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes spotlight {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Application Featured - Cross Section Image */
.application-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.application-featured::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--accent) 100%);
}

.application-featured-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-featured-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.application-featured:hover .application-featured-image img {
    transform: scale(1.02);
}

.application-featured-content {
    padding: 20px 0;
}

.application-featured-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.application-featured-content h3 {
    font-size: 2.25rem;
    color: var(--text);
    margin-bottom: 16px;
}

.application-featured-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.application-features {
    list-style: none;
}

.application-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text);
}

.application-features li i {
    color: var(--accent);
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .application-featured {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    
    .application-featured-image img {
        max-height: 350px;
    }
    
    .application-featured-content h3 {
        font-size: 1.75rem;
    }
}

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

.application-card {
    position: relative;
    padding: 40px 24px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.application-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.application-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
}

.application-card:hover::after {
    transform: scaleX(1);
}

.application-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.application-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.application-card h3 {
    color: var(--text);
    margin-bottom: 12px;
}

.application-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Certificates */
.certificates-section {
    background: var(--primary);
    position: relative;
}

.certificates-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.certificate-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.certificate-clickable {
    cursor: pointer;
}

.certificate-clickable:hover {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.certificate-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.certificate-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.certificate-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.certificate-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.certificate-info h4 {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}

.certificate-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Certificate Modal */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cert-modal.active {
    display: flex;
}

.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.cert-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cert-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cert-modal-close:hover {
    background: var(--accent);
    color: var(--primary);
}

.cert-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cert-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.cert-modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Partners */
.partners-section {
    background: var(--primary);
    padding: 80px 0;
    position: relative;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    height: 40px;
    width: auto;
}

/* Distributors */
.distributors-section {
    background: var(--primary);
    position: relative;
}

.distributors-map-full {
    width: 100%;
    height: 450px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

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

.distributor-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.distributor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.distributors-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.distributors-pagination .page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.distributors-pagination .page-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.distributors-pagination .page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.distributors-pagination .page-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.distributor-card {
    padding: 24px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.distributor-card:hover,
.distributor-card.active {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.05);
}

.distributor-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.distributor-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.distributor-address i {
    color: var(--accent);
    margin-top: 3px;
}

.distributor-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.distributor-contacts a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.distributor-contacts a:hover {
    color: var(--accent);
}

.distributor-contacts i {
    color: var(--accent);
}

/* Lead Form */
.lead-section {
    position: relative;
    background: var(--primary);
    overflow: hidden;
}

/* Subtle ambient glow - не неон */
.lead-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    animation: neonPulse 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(40px);
    }
    50% {
        opacity: 1;
        filter: blur(60px);
    }
}

.lead-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.lead-content h2 {
    margin-bottom: 24px;
}

.lead-content .lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.lead-benefits {
    list-style: none;
}

.lead-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text);
    font-size: 1.05rem;
}

.lead-benefits i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.75rem;
}

.lead-form-card {
    padding: 48px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--blur);
}

.lead-form-card h3 {
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

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

.form-control,
.form-select {
    width: 100%;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: var(--primary);
    color: var(--text);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.form-check-input:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contacts */
.contacts-section {
    background: var(--primary);
    position: relative;
}

/* Contacts — 2×2 card grid */
.contacts-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(245, 158, 11, 0.04);
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    margin: 0 auto 16px;
}

.contact-card-icon i {
    font-size: 1.4rem;
    color: var(--accent);
}

.contact-card-body {
    min-width: 0;
    text-align: center;
}

.contact-card h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contact-card a:hover {
    color: var(--accent-hover);
}


/* Footer */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

/* Ambient footer glow - тонкий */
.footer::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(245, 158, 11, 0.03) 0%,
        transparent 60%
    );
    z-index: 0;
    pointer-events: none;
}

.footer > * {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.footer h5 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

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

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contacts i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal */
.modal-content {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.modal-body {
    padding: 48px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 50%;
}

.success-icon i {
    font-size: 3rem;
    color: #22C55E;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-showcase {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }

    /* Navbar Mobile */
    .navbar-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        display: none;
        z-index: 999;
    }

    .navbar-nav.show {
        display: flex;
    }

    .navbar-toggler {
        display: flex;
        z-index: 1001;
    }

    /* На мобілці navbar-actions прихований, бо трубка тепер поруч з toggler */
    .navbar > .container > .navbar-actions {
        display: none !important;
    }

    /* =============================================
       MOBILE MENU — Fullscreen Overlay
       ============================================= */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 14, 26, 0.97) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 9999;
        padding: 80px 32px 40px;
        display: none;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        animation: mobileMenuIn 0.3s ease forwards;
    }

    @keyframes mobileMenuIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Close button */
    .navbar-close {
        position: absolute;
        top: 22px;
        right: 22px;
        width: 44px;
        height: 44px;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: var(--text);
        font-size: 1.3rem;
        cursor: pointer;
        z-index: 10000;
        transition: all 0.3s ease;
    }

    .navbar-collapse.show .navbar-close {
        display: flex;
    }

    .navbar-close:hover {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(245, 158, 11, 0.1);
        transform: rotate(90deg);
    }

    /* Nav list */
    .navbar-collapse .navbar-nav {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        background: transparent;
    }

    /* Nav links */
    .navbar-collapse .nav-link {
        font-size: 1.15rem;
        font-weight: 500;
        padding: 16px 20px;
        text-align: left;
        border-bottom: none;
        border-radius: 12px;
        color: var(--text-muted);
        transition: all 0.2s ease;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:active {
        color: var(--text);
        background: rgba(255, 255, 255, 0.06);
    }

    .navbar-collapse .nav-link.active {
        color: var(--accent) !important;
        background: rgba(245, 158, 11, 0.08);
    }

    /* Dropdown in mobile */
    .navbar-collapse .nav-dropdown {
        border-radius: 12px;
    }

    .navbar-collapse .nav-dropdown.open {
        background: rgba(255, 255, 255, 0.03);
    }

    .navbar-collapse .nav-dropdown-menu {
        position: static;
        min-width: auto;
        white-space: normal;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 8px 0;
    }

    .navbar-collapse .nav-dropdown.open .nav-dropdown-menu {
        display: block;
        animation: dropdownSlide 0.25s ease forwards;
    }

    @keyframes dropdownSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .navbar-collapse .nav-dropdown-item {
        font-size: 1rem;
        font-weight: 400;
        padding: 12px 20px 12px 48px;
        text-align: left;
        color: var(--text-muted);
        border-bottom: none;
        border-radius: 8px;
        margin: 0 8px;
        transition: all 0.2s ease;
    }

    .navbar-collapse .nav-dropdown-item:hover {
        padding-left: 48px;
        color: var(--text);
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-collapse .nav-dropdown-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .navbar-collapse .nav-dropdown.open .nav-dropdown-arrow {
        transform: rotate(180deg);
    }

    .navbar-collapse .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    /* Divider before actions */
    .navbar-collapse .navbar-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    /* Language Switcher - Mobile */
    .navbar-collapse .lang-switcher {
        width: 100%;
    }

    .navbar-collapse .lang-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: center;
        border-radius: 12px;
    }

    .navbar-collapse .lang-switcher .dropdown-menu {
        min-width: 100%;
        max-height: 240px;
        overflow-y: auto;
        left: 0 !important;
        transform: none !important;
        border-radius: 12px;
    }

    .navbar-collapse .lang-switcher .dropdown-menu[data-popper-placement^="top"] {
        bottom: calc(100% + 8px) !important;
        top: auto !important;
    }

    .navbar-collapse .lang-switcher .dropdown-menu[data-popper-placement^="bottom"] {
        top: calc(100% + 8px) !important;
        bottom: auto !important;
    }

    .navbar-collapse .lang-switcher .dropdown-item {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Phone CTA - Mobile */
    .navbar-collapse .header-phone {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        font-size: 1.15rem;
        font-weight: 600;
        padding: 16px 24px;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
        border: 1px solid rgba(245, 158, 11, 0.3);
        border-radius: 14px;
        color: var(--accent);
        transition: all 0.3s ease;
    }

    .navbar-collapse .header-phone:hover {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
        border-color: var(--accent);
    }

    .navbar-collapse .btn-accent {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
    }


    /* Grids */
    .about-grid,
    .lead-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacts-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .distributors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .distributors-map-full {
        height: 350px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-stat {
        padding: 16px 12px;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .hero-stat p {
        font-size: 0.75rem;
    }

    .about-section {
        padding-top: 150px;
    }

    /* Product showcase */
    .product-showcase-specs {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Application featured */
    .application-featured {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .application-featured-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 50px;
    }

    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
        margin-bottom: 0; /* Прибираємо негативний margin на мобілці */
    }

    .hero-bg {
        height: 100%;
    }

    .hero-overlay {
        height: 100%;
    }

    .hero {
        padding-top: 120px; /* Відступ від navbar на планшетах */
    }

    .hero-headline {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
        margin-top: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    /* Hero badges - компактні 2x2 */
    .hero-badges {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .hero-badge {
        width: auto !important;
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 20px;
        white-space: nowrap;
    }

    .hero-badge i {
        font-size: 0.65rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
        padding-top: 24px;
    }

    .hero-stat {
        padding: 20px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .hero-stat-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    /* About */
    .about-section {
        padding-top: 50px; /* Нормальний відступ без overlap */
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .about-stat-card {
        padding: 20px 16px;
    }

    .about-stat-card h3 {
        font-size: 1.75rem;
    }

    .about-stat-card p {
        font-size: 0.8rem;
    }

    .about-image-main {
        height: 300px;
    }

    .about-image-caption {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 24px 20px;
    }

    .advantage-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .advantage-icon i {
        font-size: 1.5rem;
    }

    /* Products */
    .product-showcase {
        padding: 24px;
        gap: 24px;
    }

    .product-showcase-content h3 {
        font-size: 1.5rem;
    }

    .product-showcase-specs {
        gap: 16px;
        padding-top: 16px;
    }

    .spec-value {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 16px;
        justify-content: flex-start;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* Applications */
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .application-card {
        padding: 24px 20px;
    }

    .application-icon {
        width: 70px;
        height: 70px;
    }

    .application-icon i {
        font-size: 1.75rem;
    }

    .application-featured {
        padding: 20px;
    }

    .application-featured-image img {
        max-height: 250px;
    }

    .application-featured-content h3 {
        font-size: 1.25rem;
    }

    /* Certificates */
    .certificates-grid {
        gap: 12px;
    }

    .certificate-card {
        padding: 16px;
        flex-direction: row;
        text-align: left;
        width: 100%;
    }

    .certificate-icon {
        width: 40px;
        height: 40px;
    }

    .certificate-icon i {
        font-size: 1.5rem;
    }

    /* Distributors */
    .distributors-map-full {
        height: 300px;
    }

    .distributors-grid {
        grid-template-columns: 1fr;
    }

    .distributor-card {
        padding: 16px;
    }

    .distributor-card h4 {
        font-size: 1rem;
    }

    /* Lead form */
    .lead-form-card {
        padding: 24px 20px;
    }

    .lead-form-card h3 {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .form-control,
    .form-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .lead-benefits li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand .logo-text {
        font-size: 1.25rem;
    }

    .footer-about {
        font-size: 0.85rem;
    }

    .footer h5 {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .footer-links a,
    .footer-contacts li {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 24px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Section titles */
    .section-title {
        margin-bottom: 40px;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .section-label {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    /* Modal */
    .modal-body {
        padding: 32px 24px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon i {
        font-size: 2.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-stat-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }

    .about-stat-card h3 {
        margin-bottom: 0;
    }

    .hero-stat {
        padding: 16px;
    }

    .product-showcase-specs {
        flex-direction: column;
        align-items: flex-start;
    }

    .spec-item {
        text-align: left;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.5); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    display: none !important;
}

/* Leaflet Map Custom Styles */
.leaflet-container {
    background: var(--primary) !important;
    font-family: var(--font-body);
}

.custom-marker {
    background: transparent;
}

.custom-marker .marker-pin {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.custom-marker:hover .marker-pin {
    transform: scale(1.2);
}

.leaflet-popup-content-wrapper {
    background: var(--primary-light);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 0.9rem;
}

.leaflet-popup-tip {
    background: var(--primary-light);
    border: 1px solid var(--border);
}

.leaflet-control-zoom a {
    background: var(--primary-light) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--surface) !important;
}


/* Tablet-specific styles (991px) are defined above in the main responsive section */

/* Fix for very small screens */
@media (max-width: 400px) {
    h1 { font-size: 1.8rem; }
    .btn { width: 100%; margin-bottom: 10px; }
    .hero-badges { justify-content: center; }

    /* Кнопка dropdown НЕ розтягується на весь екран */
    .navbar-collapse .lang-switcher .btn {
        min-width: 100px !important;
        max-width: 120px !important;
        width: auto !important;
        padding: 10px 18px !important;
    }

    .navbar-collapse .lang-switcher .dropdown-menu {
        min-width: 170px !important;
        max-width: 190px !important;
    }
}

/* =====================================================
   MOBILE FIXES - COMPLETE RESPONSIVE OVERHAUL
   Стилі ТІЛЬКИ для мобільних пристроїв (< 768px)
   ===================================================== */

/* MOBILE STYLES */
@media (max-width: 767px) {

    /* КРИТИЧНИЙ ФІКС: Прибираємо ВСІ скроли крім body */
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Всі елементи без власного скролу */
    section,
    .section,
    .hero,
    .about-section,
    .advantages-section,
    .products-section,
    .applications-section,
    .certificates-section,
    .lead-section,
    .distributors-section,
    .contacts-section,
    .container,
    .row {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* Виключення для елементів що потребують скрол */
    .distributors-grid {
        grid-template-columns: 1fr !important;
    }

    .navbar-collapse {
        overflow-y: auto !important;
    }

    /* Hero badges стилі визначені вище в основному блоці 767px */

    /* === ФОТО 3: Product specs в один ряд === */
    .product-showcase-specs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-around !important;
        gap: 8px !important;
        padding-top: 16px;
        width: 100%;
    }

    .spec-item {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .spec-value {
        font-size: 1.1rem;
        display: block;
    }

    .spec-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    /* === ФОТО 2: Сертифікація - центрування тексту === */
    .certificate-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 16px;
        width: 100%;
    }

    .certificate-icon {
        margin-bottom: 12px;
    }

    .certificate-info {
        text-align: center;
    }

    .certificate-info h4,
    .certificate-info p {
        text-align: center;
    }

    .certificates-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* === Контактна секція (мобілка) === */
    .contacts-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card {
        padding: 20px;
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .contact-card-body {
        flex: 1;
        text-align: left;
    }

    .contact-card-icon {
        margin: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .contact-card-icon i {
        font-size: 1.2rem;
    }

    .contact-card h4 {
        font-size: 0.85rem;
        margin-bottom: 4px;
        color: var(--accent);
    }

    .contact-card p {
        font-size: 0.82rem;
        margin-bottom: 2px;
        line-height: 1.4;
    }

    .contact-card a {
        font-size: 0.82rem;
    }


    /* === Загальні фікси === */

    /* Hero section - БЕЗ фіксованої висоти */
    .hero {
        padding: 110px 0 30px; /* Більший відступ зверху на мобілках */
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .hero-headline {
        font-size: 2.2rem !important;
        line-height: 1.15 !important;
        margin-bottom: 16px;
        letter-spacing: -0.02em !important;
        margin-top: 0;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Hero Stats */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .hero-stat {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 12px;
    }

    .hero-stat-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .hero-stat-text {
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }

    .hero-stat-text h3 {
        font-size: 1.25rem;
        margin: 0;
        color: var(--text);
    }

    .hero-stat-text p {
        font-size: 0.8rem;
        margin: 0;
        color: var(--text-muted);
    }

    .hero-stat-icon {
        width: 44px;
        height: 44px;
        margin: 0;
        flex-shrink: 0;
    }

    .hero-stat-icon i {
        font-size: 1.2rem;
    }

    .hero-stat h3 {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .hero-stat p {
        font-size: 0.75rem;
    }

    /* Section padding */
    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .advantage-card {
        padding: 20px;
    }

    .advantage-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }

    .advantage-icon i {
        font-size: 1.4rem;
    }

    .advantage-card h3 {
        font-size: 1.1rem;
    }

    .advantage-card p {
        font-size: 0.85rem;
    }

    /* Products */
    .product-showcase {
        padding: 20px;
        gap: 20px;
    }

    .product-showcase-content h3 {
        font-size: 1.3rem;
    }

    .product-showcase-content p {
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Applications */
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .application-card {
        padding: 20px;
    }

    .application-icon {
        width: 64px;
        height: 64px;
    }

    .application-featured {
        padding: 16px;
        gap: 20px;
    }

    .application-featured-content h3 {
        font-size: 1.2rem;
    }

    /* Lead Form */
    .lead-wrapper {
        gap: 30px;
    }

    .lead-content h2 {
        font-size: 1.4rem;
    }

    .lead-form-card {
        padding: 20px;
    }

    .lead-form-card h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    /* Distributors */
    .distributors-map-full {
        height: 250px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        gap: 24px;
    }

    .footer-bottom {
        padding-top: 20px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-headline {
        font-size: 1.75rem !important;
        letter-spacing: -0.01em !important;
        line-height: 1.15 !important;
    }

    /* Фікс кнопки dropdown на дуже малих екранах */
    .navbar-collapse .lang-switcher .btn {
        min-width: 110px;
        max-width: 130px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

    .hero-badge {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .spec-value {
        font-size: 1rem;
    }

    .spec-label {
        font-size: 0.6rem;
    }

    .certificate-card {
        padding: 16px 12px;
    }

    .contact-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .contact-card-icon i {
        font-size: 1.1rem;
    }
}

/* Приховати reCAPTCHA badge - ПЕРЕБИВАЄМО INLINE СТИЛІ */
.grecaptcha-badge,
div.grecaptcha-badge,
div[class*="grecaptcha"],
[data-style*="bottom"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    bottom: -1000px !important;
    right: -1000px !important;
    left: auto !important;
    top: auto !important;
    z-index: -9999 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Прибираємо всі iframe reCAPTCHA */
iframe[src*="recaptcha"],
iframe[title*="reCAPTCHA"],
iframe[name^="a-"] {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -9999 !important;
}

/* Прибираємо логотип, помилки та textarea */
.grecaptcha-logo,
.grecaptcha-error,
.g-recaptcha-response,
textarea#g-recaptcha-response,
textarea[name="g-recaptcha-response"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Перебиваємо контейнер */
body > div:last-of-type {
    background: transparent !important;
    box-shadow: none !important;
}

/* Footer bottom links з reCAPTCHA notice */
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 767px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
}