/* ============================================
   VERMARKTER - UNIFIED STYLES
   Clean, consistent, production-ready CSS
   ============================================ */

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS VARIABLES (UNIFIED) === */
:root {
    /* Backgrounds */
    --bg-body: #030712;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-secondary: #0d1424;
    
    /* Text Colors */
    --text-main: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Brand Colors */
    --brand: #3B82F6;
    --brand-secondary: #8B5CF6;
    --accent: #10B981;
    --accent-secondary: #F59E0B;
    
    /* Ukrainian Colors */
    --ua-blue: #0057B7;
    --ua-yellow: #FFD700;
    
    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.4);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
}

/* === BASE STYLES === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(30, 27, 75, 0.5) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(30, 58, 138, 0.5) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 80%, rgba(30, 27, 75, 0.4) 0%, transparent 55%),
                radial-gradient(ellipse at 10% 90%, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--brand);
    color: white;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--brand-secondary);
}

/* === CONTAINER === */
.container {
    max-width: 1400px; /* ОНОВЛЕНО: більше простору */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%; /* ДОДАНО: використовує повну ширину */
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px; /* Для великих моніторів */
        padding: 0 4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* === HEADER (UNIFIED) === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    z-index: var(--z-sticky);
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.nav-menu a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Language Switcher (Custom Dropdown) */
.lang-switcher {
    position: relative;
}

.lang-button {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-button:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-glow);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 150px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    color: var(--text-secondary);
}

.lang-dropdown li:hover,
.lang-dropdown li.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand);
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    color: var(--text-main);
}

.theme-toggle:hover {
    border-color: var(--brand);
    transform: rotate(15deg);
}

/* Mobile Controls Group (lang-switcher + burger) */
.nav-controls-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

.breadcrumbs span {
    margin: 0 0.5rem;
}

.breadcrumbs .current {
    color: var(--text-main);
    font-weight: 600;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-google {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.badge-meta {
    background: linear-gradient(135deg, #1877f2, #e4405f);
    color: white;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* === HERO === */
.hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ukraine-gradient {
    background: linear-gradient(135deg, var(--ua-blue), var(--ua-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary, .cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
    color: white;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover, .cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-secondary:hover {
    background: var(--brand);
    color: white;
}

/* === STATS === */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.stat, .stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.stat:hover, .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number, .stat strong {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label, .stat .muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* === SECTIONS === */
section, .services-section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* === SERVICES GRID (3x2) === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Якщо 3 картки проблем - розтягнути на всю ширину */
.services-grid.problem-cards {
    grid-template-columns: 1fr 1fr 1fr !important;
    justify-items: stretch;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card, .card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all var(--transition-base);
}

.service-card::before, .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.service-card:hover, .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.5);
}

.service-icon, .card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3, .card h3 {
    margin-bottom: var(--spacing-sm);
}

.service-card p, .card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin: var(--spacing-sm) 0 0;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

/* Step Numbers */
.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: white;
}

.step-number-google {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

/* === SMART CALCULATOR STYLES (PREMIUM) === */
.calculator-section {
    padding: 15px 0; /* ULTRA COMPACT: з 40px */
    background: rgba(0, 0, 0, 0.2);
}

.calculator-section .section-header {
    margin-bottom: 0.8rem !important; /* ULTRA COMPACT: з 1.5rem */
}

.calculator-section .section-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem) !important; /* ULTRA COMPACT */
    margin-bottom: 0.3rem !important;
}

.calculator-section .section-subtitle {
    font-size: 0.9rem !important; /* COMPACT */
    margin-bottom: 0.3rem !important;
}

.calculator-description {
    font-size: 0.85rem !important; /* COMPACT */
    line-height: 1.4 !important;
}

.calculator {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px; /* COMPACT: з 24px */
    padding: 16px; /* ULTRA COMPACT: з 24px */
    box-shadow: var(--shadow);
    max-width: 950px; /* COMPACT: з 1400px */
    margin: 0 auto;
}

.calculator__header {
    text-align: center;
    margin-bottom: 8px; /* ULTRA COMPACT: з 12px */
}

.calculator__title {
    font-size: 1.5rem; /* ULTRA COMPACT: з 1.8rem */
    margin-bottom: 0.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.calculator__subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem; /* COMPACT: з 0.95rem */
    margin-bottom: 0 !important;
}

/* Hide trust/warning blocks on calculator for compact view */
.calculator__header > div[style*="max-width: 700px"] {
    display: none !important;
}

.calculator__preset {
    margin-bottom: 10px; /* ULTRA COMPACT: з 20px */
}

.calculator__preset label {
    display: block;
    margin-bottom: 6px; /* COMPACT */
    font-weight: 600;
    font-size: 0.9rem; /* COMPACT */
    color: var(--text-main);
}

.calculator__preset select,
.calculator__select {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px; /* ULTRA COMPACT: з 14px 16px */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem; /* COMPACT */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.calculator__preset select:hover,
.calculator__select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.calculator__preset select:focus,
.calculator__select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.calculator__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 60% на 40% */
    gap: 16px; /* ULTRA COMPACT: з 24px */
    max-width: 100%;
    overflow: visible;
}

/* --- Left Column: Inputs --- */
.calculator__inputs {
    display: flex;
    flex-direction: column;
    gap: 6px; /* ULTRA COMPACT: з 8px */
}

.calculator__input-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px; /* COMPACT: з 12px */
    padding: 8px 10px; /* ULTRA COMPACT: з 10px */
    transition: 0.3s ease;
}

.calculator__input-group:hover,
.calculator__input-group--active {
    border-color: var(--brand);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.calculator__input-group label {
    display: block;
    margin-bottom: 5px; /* КОМПАКТНО: зменшено */
    font-weight: 600;
    font-size: 0.9rem; /* Трохи менший шрифт */
    color: var(--text-main);
}

.calculator__input-row {
    display: flex;
    align-items: center;
    gap: 12px; /* ОНОВЛЕНО: було 16px */
    margin-bottom: 0; /* ОНОВЛЕНО: було 8px - повзунок і інпут на одній лінії */
}

.calculator__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
    font-family: 'Courier New', monospace;
    text-align: right;
    min-width: 60px;
}

.calculator__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.calculator__label-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand);
    font-family: monospace;
}

.calculator__controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Стилізація повзунка (Slider) */
input[type="range"] {
    -webkit-appearance: none;
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.15);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--brand);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.8);
}

/* Інпут з числом - PREMIUM DARK STYLE */
input[type="number"] {
    width: 100px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

input[type="number"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Remove arrows from number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* --- Right Column: Results --- */
.calculator__results {
    display: flex;
    flex-direction: column;
    gap: 6px; /* ULTRA COMPACT: для симетрії з лівою колонкою */
}

.calculator__result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px; /* Менший радіус */
    padding: 8px 14px; /* ULTRA COMPACT: vertical padding зменшено до 8px */
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.calculator__result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--brand);
    opacity: 0;
    transition: 0.3s;
}

.calculator__result-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.calculator__result-card:hover::before { opacity: 1; }

.calculator__result-label {
    font-size: 0.75rem; /* КОМПАКТНО: менший шрифт */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px; /* ULTRA COMPACT: менший відступ */
}

.calculator__result-value {
    font-size: 1.6rem; /* КОМПАКТНО: зменшено з 2rem */
    font-weight: 900;
    color: var(--text-main);
}

.calculator__result-value--primary { color: var(--brand); }
.calculator__result-value--success { color: var(--success); text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.calculator__result-value--error { color: var(--danger); }

/* ROAS Bar */
.calculator__roas-indicator {
    display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.calculator__roas-bar {
    flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden;
}
.calculator__roas-fill {
    height: 100%; background: var(--success); width: 0; transition: width 0.5s ease;
}
.calculator__roas-fill--low { background: var(--danger); }
.calculator__roas-text { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

/* Ніша Select */
.niche-select-group { margin-bottom: 10px; } /* COMPACT */
.niche-select {
    width: 100%; padding: 10px; /* COMPACT: з 14px */
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: white; border-radius: 8px; font-size: 14px; cursor: pointer; /* COMPACT */
}

/* Responsive */
@media (max-width: 900px) {
    .calculator__grid { grid-template-columns: 1fr; }
    .calculator__controls { flex-direction: column; align-items: stretch; }
    .calculator__number-input { width: 100%; }
}

/* === TESTIMONIALS (MARQUEE) === */
.testimonials-section {
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--spacing-md);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    gap: var(--spacing-md);
    min-width: 100%;
    animation: marquee 60s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Double Marquee Animations */
@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
}

.marquee-content.scroll-left {
    animation: scrollLeft 35s linear infinite;
}

.marquee-content.scroll-right {
    animation: scrollRight 35s linear infinite;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

/* Portfolio Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.portfolio-card img {
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-main);
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === FOOTER === */
footer, .footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-grid, .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column, .footer-section {
    display: flex;
    flex-direction: column;
}

.footer-column h4, .footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--brand);
}

.footer-column a, .footer-section a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}

.footer-column a:hover, .footer-section a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-md);
    z-index: var(--z-fixed);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* === CHATBOT === */
.chatbot-button {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE (TABLET & MOBILE) === */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid, .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    /* === MOBILE HEADER === */
    header {
        height: 70px;
        z-index: 1000 !important;
    }

    header nav {
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    /* Hide desktop nav */
    .nav-desktop {
        display: none !important;
    }

    .nav-menu {
        display: none !important;
    }

    /* Hide desktop-only elements */
    .nav-actions {
        display: none !important;
    }

    .theme-toggle {
        display: none !important;
    }

    /* === MOBILE BRAND: icon only, no text === */
    .brand span {
        display: none !important;
    }

    .brand svg {
        width: 28px !important;
        height: 28px !important;
    }

    .brand {
        gap: 0 !important;
        margin-left: 0 !important;
        display: flex !important;
    }

    /* === MOBILE HEADER: only [icon] ... [☰] === */
    /* Lang-switcher moves into mobile menu via JS */
    .nav-controls-mobile .lang-switcher {
        display: none !important;
    }

    .nav-controls-mobile {
        display: flex !important;
        align-items: center !important;
    }

    /* === BURGER BUTTON === */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1002;
        flex-shrink: 0;
    }

    /* === MOBILE MENU OVERLAY === */
    /* JS moves .mobile-menu outside <header> to avoid
       backdrop-filter containing block issue */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        z-index: 10000;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: flex !important;
    }

    .mobile-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.25rem;
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .mobile-menu a:hover {
        background: rgba(59, 130, 246, 0.2);
        color: var(--brand);
    }

    /* Mobile menu language switcher */
    .mobile-menu .mobile-lang-switcher {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu .mobile-lang-switcher a {
        display: flex;
        align-items: center;
        gap: 6px;
        width: auto;
        padding: 10px 16px;
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* === HERO SECTION FIX === */
    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
        padding-top: 2rem !important;
        min-height: auto !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .hero .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero .hero-image {
        transform: scale(1) !important;
    }

    /* === OTHER MOBILE FIXES === */
    section, .services-section {
        padding: var(--spacing-md) 0;
    }

    .footer-grid, .footer-content {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1;
    }

    .chatbot-button {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .audit-form, .contact-form {
        grid-template-columns: 1fr;
    }
}

/* === MOBILE ONLY (SMALL SCREENS) === */
@media (max-width: 480px) {
    .marquee-content {
        animation-duration: 40s;
    }
    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }
}

/* ============================================
   CTO FINAL FIX: MENU & WIDTH
   ============================================ */

/* 1. МЕНЮ (ГРУБА СИЛА) */
/* Це змусить розійтися будь-які елементи в навігації */
header nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important; /* Розрив між лого і меню */
}

/* Якщо там список ul li */
header nav ul {
    display: flex !important;
    gap: 30px !important; /* Розрив між словами */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Якщо там просто посилання a */
header nav a:not(.logo) {
    margin-left: 20px !important;
    display: inline-block !important;
    font-weight: 500 !important;
}

/* 2. КАЛЬКУЛЯТОР (КОМПАКТНІСТЬ) */
@media (min-width: 1024px) {
    /* Знаходимо і секцію, і сам калькулятор */
    .calculator-section, 
    .calculator {
        max-width: 900px !important; /* Жорстке обмеження ширини */
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    /* Якщо агент використав container */
    .calculator-section .container {
        max-width: 900px !important;
    }
}

/* 3. КОЛІР ІНПУТІВ (Ще раз для надійності) */
input, select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* КОНТАКТНА ФОРМА - ПОКРАЩЕНА ВИДИМІСТЬ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    background-color: rgba(0, 0, 0, 0.4) !important; /* ОНОВЛЕНО: темніший фон для кращої видимості */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* ОНОВЛЕНО: яскравіша рамка */
    color: white !important;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand) !important; /* ДОДАНО: рамка кольору бренду при фокусі */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: rgba(0, 0, 0, 0.5) !important;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   EMERGENCY CSS INJECTION (VISUALS & MENU)
   ============================================ */

/* --- 1. VISUAL BOXES (CSS ART) --- */
/* Робимо елементи всередині коробок видимими */
.visual-box {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); /* ОНОВЛЕНО: яскравіший фон */
    border: 1px solid rgba(255, 255, 255, 0.15); /* ОНОВЛЕНО: яскравіша рамка */
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); /* ДОДАНО: тінь */
}

/* Лінії пошуку (Audit) */
.glass-search-bar {
    height: 12px; width: 100%; 
    background: rgba(255,255,255,0.2); 
    border-radius: 6px; margin-bottom: 1rem;
}
.glass-line {
    height: 8px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 4px; margin-bottom: 8px;
}

/* Перемикачі (Setup) */
.toggle-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 10px; }
.toggle {
    width: 40px; height: 20px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 20px; position: relative;
}
.toggle.active { background: var(--brand); }
.toggle::after {
    content:''; position:absolute; left:2px; top:2px; 
    width:16px; height:16px; background:white; border-radius:50%;
}
.toggle.active::after { left: 22px; }
.line { height: 6px; flex: 1; background: rgba(255,255,255,0.05); border-radius: 4px; }

/* Графік (Growth) */
.chart-visual {
    flex-direction: row !important; 
    align-items: flex-end !important; 
    gap: 1rem !important; padding-bottom: 2rem;
}
.bar {
    flex: 1; background: rgba(255,255,255,0.1); 
    border-radius: 4px 4px 0 0;
}
.bar.success {
    background: linear-gradient(to top, var(--brand), #10B981);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Іконки по центру */
.search-icon-overlay, .gear-icon-overlay, .chart-icon-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem; opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* --- 2. LANGUAGE SWITCHER FIX --- */
/* Робимо так, щоб меню випадало при наведенні */
.lang-switcher { position: relative; display: inline-block; }
.lang-dropdown {
    display: none; /* Сховано за замовчуванням */
    position: absolute;
    top: 100%; right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 120px;
    z-index: 1000;
}
/* Магія CSS: показуємо при наведенні */
.lang-switcher:hover .lang-dropdown { display: block; }

.lang-dropdown a {
    display: block; padding: 8px 12px;
    color: white; text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.1); color: var(--brand); }

/* ============================================
   INTERACTION FIXES (MENU & Z-INDEX)
   ============================================ */

/* 1. Піднімаємо хедер над усім іншим (щоб меню не перекривалося) */
header {
    z-index: 9999 !important;
}

/* 2. Логіка випадаючого списку */
.lang-switcher {
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.lang-dropdown {
    display: none !important; /* Сховано */
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    min-width: 140px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    z-index: 10000 !important;
}

/* ГОЛОВНЕ: Показуємо при наведенні */
.lang-switcher:hover .lang-dropdown {
    display: block !important;
}

/* Стиль посилань у меню */
.lang-dropdown li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.lang-dropdown a {
    display: block !important;
    padding: 8px 12px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--brand) !important;
}

/* Lang button styling */
.lang-button {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: all 0.3s !important;
}

.lang-button:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--brand) !important;
}

/* ULTRA IMPORTANT: Force dropdown to work */
.lang-dropdown {
    list-style: none !important;
    padding: 10px !important;
    margin: 0 !important;
}

/* Make sure hover works even with high specificity */
header .lang-switcher:hover .lang-dropdown,
.lang-switcher:hover > .lang-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================
   LIGHT THEME SUPPORT
   ============================================ */

[data-theme='light'] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

[data-theme='light'] body {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
    color: var(--text-primary);
}

[data-theme='light'] header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .nav a {
    color: var(--text-primary);
}

[data-theme='light'] .theme-toggle {
    color: var(--text-primary) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme='light'] .lang-button {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme='light'] .lang-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme='light'] .lang-dropdown a {
    color: var(--text-primary) !important;
}

/* ============================================
   UI POLISH - PRICING SECTION
   ============================================ */

/* Price Row - Flexbox alignment for price + period */
.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin: 1rem 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Fix pricing text overlap in service cards */
.service-card .text-gradient {
    display: block !important;
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin: 1rem 0 !important;
    width: 100% !important;
}

.service-card p.text-muted {
    display: block !important;
    margin-top: 0 !important;
}

/* Pricing Cards - більше повітря та читабельності */
.pricing-card,
.service-card,
[class*="price"],
[class*="plan"] {
    padding: 2.5rem 2rem !important; /* ОНОВЛЕНО: більше padding для breathing room */
}

/* Списки в pricing cards - кращий line-height */
.pricing-card ul li,
.service-card ul li,
.service-features li,
[class*="price"] ul li,
[class*="plan"] ul li {
    line-height: 1.6 !important; /* ОНОВЛЕНО: більш читабельний spacing між пунктами */
    margin-bottom: 0.5rem;
}

/* ============================================
   VISUAL BOOST (MAKE IT VISIBLE)
   ============================================ */

/* 1. ВІЗУАЛЬНІ БЛОКИ (Zig-Zag) - Робимо їх світлішими */
.visual-box {
    /* Додаємо синій відтінок, щоб блок виділявся на чорному фоні */
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(59, 130, 246, 0.15)) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important; /* Світліша рамка */
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1) !important; /* Легке світіння */
}

/* 2. ЕЛЕМЕНТИ ВСЕРЕДИНІ (Лінії та графіки) */
.glass-line, .glass-search-bar, .bar, .toggle {
    background: rgba(255, 255, 255, 0.2) !important; /* Більш білі елементи */
    backdrop-filter: none !important; /* Прибираємо блюр, щоб було чіткіше */
}

/* 3. КАЛЬКУЛЯТОР (Інпути) */
/* Робимо поля вводу чітко видимими */
input[type="number"], select {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important; /* Синя рамка */
    color: white !important;
    font-weight: bold !important;
}

/* 4. КНОПКИ (Тіні) */
.btn-primary {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5) !important; /* Яскрава тінь */
}

/* ============================================
   DESKTOP OPTIMIZATION (27" MONITOR FIX)
   ============================================ */

@media (min-width: 1200px) {
    /* НЕ обмежуємо ширину - дозволяємо використовувати весь простір */

    /* 2. КАЛЬКУЛЯТОР: Робимо інпути в 2 колонки! */
    .calculator__inputs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Дві колонки */
        gap: 15px !important;
    }

    /* Розтягуємо останній інпут на всю ширину, якщо їх непарна кількість */
    .calculator__input-group:last-child {
        grid-column: span 2;
    }

    /* 3. Зменшуємо "повітря" всередині карток */
    .calculator__input-group {
        padding: 12px 20px !important; /* Менше відступів */
        margin-bottom: 0 !important;
    }

    .calculator__result-card {
        padding: 15px !important; /* Компактніші результати */
    }

    .calculator__result-value {
        font-size: 1.8rem !important; /* Трохи менші цифри */
    }

    /* 4. Загальний масштаб (зменшуємо гігантські шрифти) */
    h1 { font-size: 3.5rem !important; }
    h2 { font-size: 2.5rem !important; }

    /* Робимо секції ближчими одна до одної */
    section { padding: 3rem 0 !important; }
}

/* ============================================
   PRICING GRID SYMMETRY FIX
   ============================================ */

/* Якщо є 3 тарифи - третій по центру */
.pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 380px)) !important; /* Фіксована ширина карток */
    gap: 2.5rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    justify-content: center !important; /* Центруємо картки */
}

/* На планшетах - 2 колонки, третя картка по центру */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Третя картка займає 2 колонки і центрується */
    .pricing-card:nth-child(3) {
        grid-column: 1 / -1 !important;
        max-width: 450px !important;
        margin: 0 auto !important;
    }
}

/* На мобільних - 1 колонка */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-card:nth-child(3) {
        grid-column: auto !important;
        max-width: 100% !important;
    }
}

/* ============================================
   WIDESCREEN OPTIMIZATION (27" MONITOR)
   ============================================ */

@media (min-width: 1400px) {
    /* 1. Ширший контейнер (як на eBay) */
    .container, nav {
        max-width: 1600px !important;
        padding: 0 4rem !important;
    }

    /* 2. Калькулятор: НЕ робимо вкладену сітку - вона вже є в .calculator__grid */
    .calculator__inputs {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 3. Послуги: 3 в ряд (3x2 симетрія) */
    .services-grid:not(.problem-cards) {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* 4. Зменшуємо гігантські шрифти */
    h1 { font-size: 3.5rem !important; }
    h2 { font-size: 2.5rem !important; }

    /* 5. Компактні відступи */
    section { padding: 3rem 0 !important; }
    .hero { padding-top: 6rem !important; padding-bottom: 2rem !important; }
}

/* ============================================
   SYMMETRY & BALANCE FIXES
   ============================================ */

/* 1. КАЛЬКУЛЯТОР: АДАПТИВНА СІТКА БЕЗ ОБРІЗАННЯ */
.calculator__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Рівно навпіл */
    gap: 32px !important; /* Зменшено gap щоб більше місця */
    align-items: start !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important; /* Не обрізаємо праву колонку */
}

/* Вирівнюємо висоту карток результатів, щоб права колонка не виглядала куцою */
.calculator__results {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* Запобігаємо переповненню калькулятора */
.calculator__inputs,
.calculator__results {
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.calculator__input-group {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. МЕТОДОЛОГІЯ (ZIG-ZAG): ВЕРТИКАЛЬНЕ ВИРІВНЮВАННЯ */
/* Щоб текст був строго по центру навпроти картинки */
#process .calculator-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important; /* Більше повітря між текстом і картинкою */
    align-items: center !important; /* Центрування по вертикалі */
    margin-bottom: 80px !important;
}

/* 3. ТЕКСТОВІ БЛОКИ В МЕТОДОЛОГІЇ */
/* Якщо текст занадто вузький, він виглядає погано. Розтягнемо його. */
.calculator-inputs {
    width: 100% !important;
}

/* 4. ЦЕНТРУВАННЯ ЗАГОЛОВКІВ */
.section-header, h2 {
    text-align: center !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 5. ПОСЛУГИ (SERVICES) */
/* Робимо картки однакової висоти */
.services-grid {
    align-items: stretch !important;
}
.service-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
/* ============================================
   VISUAL BOXES: HIGH CONTRAST FIX
   ============================================ */

/* 1. Сам контейнер (Екран) */
.visual-box {
    /* Робимо фон світлішим і додаємо синє світіння */
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(59, 130, 246, 0.2)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15) !important;
}

/* 2. Елементи інтерфейсу (Лінії та Пошук) */
.glass-line, .glass-search-bar {
    /* Робимо їх ЯСКРАВО БІЛИМИ, а не прозорими */
    background: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

/* 3. Перемикачі (Toggles) */
.toggle {
    background: rgba(255, 255, 255, 0.3) !important;
}
.toggle.active {
    background: #3B82F6 !important; /* Яскравий синій */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6) !important;
}

/* 4. Графік (Bars) */
.bar {
    background: rgba(255, 255, 255, 0.3) !important;
}
.bar.success {
    background: linear-gradient(to top, #3B82F6, #10B981) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important; /* Зелене світіння */
}

/* 5. Іконки поверх (Лупа, Шестерня) */
.search-icon-overlay, .gear-icon-overlay, .chart-icon-overlay {
    opacity: 1 !important; /* Повна непрозорість */
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5)) !important;
    font-size: 5rem !important;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 7rem; /* Вище chatbot кнопки (2rem + 60px + 1rem = 7rem) */
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand), #2563EB);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.6);
}

/* ============================================
   COMPACT SIZING FIX (ANTI-GIGANTISM)
   ============================================ */

@media (min-width: 1024px) {
    /* 1. Зменшуємо шрифти заголовків */
    h1 { font-size: 3rem !important; }
    h2 { font-size: 2.2rem !important; }
    h3 { font-size: 1.5rem !important; }

    /* 2. ТАРИФИ (PRICING CARDS) - Стискаємо */
    .service-card, .pricing-card {
        padding: 1.5rem !important;
    }

    /* Ціна */
    .price-amount {
        font-size: 2.5rem !important;
    }

    /* Список опцій */
    .service-features li, .pricing-features li {
        font-size: 0.95rem !important;
        padding: 0.5rem 0 !important;
        line-height: 1.5 !important;
    }

    /* Кнопки */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* 3. КАЛЬКУЛЯТОР */
    .calculator__result-value {
        font-size: 1.8rem !important;
    }

    /* 4. ЗАГАЛЬНІ ВІДСТУПИ */
    section {
        padding: 4rem 0 !important;
    }

    /* 5. PRICING GRID - Рівна ширина (вже налаштовано вище) */
    /* Pricing grid styles inherited from line 1735 */

    /* 6. PRICING CARDS - Перенос довгих слів */
    .price-amount {
        word-break: break-word !important;
        hyphens: auto !important;
        overflow-wrap: break-word !important;
    }

    /* 7. PRICING CARD HOVER - Посилання */
    .pricing-card-link {
        text-decoration: none !important;
        color: inherit !important;
        display: block !important;
    }

    .pricing-card-link:hover .pricing-card {
        transform: translateY(-8px) !important;
        box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3) !important;
        border-color: var(--brand) !important;
    }
}

@media (max-width: 1023px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    }
}

/* ============================================
   BUNDLE GRID - ALWAYS 2 COLUMNS
   ============================================ */

/* Always 2 columns side by side, like on service pages */
.bundle-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section {
    padding: 20px 0; /* ULTRA COMPACT: з 40px */
    background: rgba(0, 0, 0, 0.2);
}

.calculator {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px; /* COMPACT: з 20px */
    padding: 18px; /* ULTRA COMPACT: з 25px */
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    max-width: 900px; /* COMPACT: з 950px */
    margin: 0 auto;
}

.calculator__header {
    text-align: center;
    margin-bottom: 12px; /* ULTRA COMPACT: з 20px */
}

.calculator__title {
    font-size: 1.6rem; /* ULTRA COMPACT: з 2rem */
    margin-bottom: 4px; /* COMPACT: з 8px */
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.calculator__subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem; /* COMPACT: з 0.95rem */
    margin-bottom: 0;
}

/* Grid Layout: Inputs (Left) vs Results (Right) */
.calculator__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px; /* ULTRA COMPACT: з 30px */
    align-items: start;
}

/* Inputs Column */
.calculator__inputs {
    display: flex;
    flex-direction: column;
    gap: 10px; /* ULTRA COMPACT: з 18px */
}

.niche-select {
    width: 100%;
    padding: 10px; /* COMPACT: з 12px */
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px; /* COMPACT: з 10px */
    font-size: 14px; /* COMPACT: з 15px */
    cursor: pointer;
    margin-bottom: 8px; /* COMPACT: з 15px */
    font-family: 'Inter', sans-serif;
}

.calculator__input-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px; /* COMPACT: з 10px */
    padding: 10px 12px; /* ULTRA COMPACT: з 15px */
    transition: 0.3s;
}

.calculator__input-group:hover {
    border-color: var(--brand);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.calculator__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px; /* ULTRA COMPACT: з 10px */
    font-weight: 600;
    font-size: 0.9rem; /* COMPACT */
    color: var(--text-primary);
}

.calculator__label-value {
    color: var(--brand);
    font-family: monospace;
    font-size: 14px; /* COMPACT: з 16px */
}

.calculator__controls {
    display: flex;
    gap: 10px; /* COMPACT: з 12px */
    align-items: center;
}

/* Sliders & Inputs */
.calculator__range {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.calculator__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.calculator__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.calculator__number-input {
    width: 90px; /* Зменшено з 100px */
    padding: 8px; /* Зменшено з 10px */
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 6px; /* Зменшено з 8px */
    color: white;
    text-align: center;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Results Column */
.calculator__results {
    display: grid;
    gap: 8px; /* ULTRA COMPACT: з 12px */
}

.calculator__result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 10px 12px; /* ULTRA COMPACT: з 15px */
    border-radius: 10px; /* COMPACT: з 12px */
    position: relative;
    overflow: hidden;
}

.calculator__result-label {
    font-size: 11px; /* COMPACT: з 12px */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px; /* COMPACT: з 0.8px */
    margin-bottom: 2px; /* COMPACT: з 4px */
}

.calculator__result-value {
    font-size: 22px; /* ULTRA COMPACT: з 28px */
    font-weight: 900;
    color: white;
}

.calculator__result-value--primary {
    color: var(--brand);
}

.calculator__result-value--success {
    color: #10B981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.calculator__result-value--error {
    color: #EF4444;
}

.calculator__result-card--highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

/* ROAS Bar */
.calculator__roas-indicator {
    margin-top: 8px; /* Зменшено з 10px */
    display: flex;
    align-items: center;
    gap: 8px; /* Зменшено з 10px */
}

.calculator__roas-bar {
    flex: 1;
    height: 6px; /* Зменшено з 8px */
    background: rgba(255,255,255,0.1);
    border-radius: 8px; /* Зменшено з 10px */
    overflow: hidden;
}

.calculator__roas-fill {
    height: 100%;
    background: #10B981;
    width: 0;
    transition: width 0.5s ease;
}

.calculator__roas-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Bundle Flex - Force 2 columns on desktop */
@media (min-width: 901px) {
    .bundle-flex-container {
        flex-wrap: nowrap !important;
    }

    .bundle-left,
    .bundle-right {
        flex: 1 1 45% !important;
        min-width: 0 !important; /* Reset min-width to allow shrinking */
    }
}

@media (max-width: 900px) {
    .calculator__grid {
        grid-template-columns: 1fr;
    }

    .calculator {
        padding: 30px 20px;
    }

    .calculator__title {
        font-size: 2rem;
    }

    .bundle-flex-container {
        flex-direction: column;
    }

    .bundle-left h3 {
        font-size: 2rem !important;
    }
}

/* ============================================
   FLOATING AI CHAT TRIGGER
   ============================================ */

.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    bottom: 35px;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.chatbot-trigger .icon {
    font-size: 1.5rem;
}

.chatbot-trigger .text {
    font-size: 1rem;
}

/* ============================================
   FLOATING WHATSAPP BUTTON (STICKY CTA)
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    bottom: 35px;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #20BA5A;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.whatsapp-button-text {
    white-space: nowrap;
}

/* Mobile: Show only icon */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        padding: 16px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }

    .whatsapp-button-text {
        display: none;
    }
}
/* --- ВИПРАВЛЕННЯ ЦЕНТРУВАННЯ ЦІН --- */
.pricing-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto !important;
}

.pricing-card {
    flex: 0 1 350px !important;
    width: 100%;
    max-width: 380px !important;
    margin: 0 auto;
}

/* ============================================
   BIG SCREEN OPTIMIZATION (27" FIX)
   Only affects screens wider than 1600px
   ============================================ */

@media (min-width: 1600px) {
    /* Обмежуємо ширину контейнерів для великих моніторів */
    .container {
        max-width: 1400px;
    }

    /* Трохи менший базовий шрифт */
    html {
        font-size: 15px;
    }
}

/* ============================================
   FORCE PRICE ON ONE LINE (Pricing Cards Fix)
   ============================================ */
.pricing-price,
.price-block {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 5px !important;
}

.pricing-price .price-amount,
.pricing-price .price-period {
    white-space: nowrap !important;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 180px; /* Left of WhatsApp button */
    width: 50px;
    height: 50px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background: var(--brand-secondary);
}

/* ============================================
   PRICING CARD FIX
   ============================================ */
.pricing-card .pricing-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 5px !important;
}

.pricing-card .price-amount {
    font-size: 2.5rem !important;
}

.pricing-card .price-period {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
}

/* ============================================
   SAFE UI OPTIMIZATION (COMPACT & FIT)
   ============================================ */

/* 1. КАЛЬКУЛЯТОР: ЗМЕНШЕННЯ ВІДСТУПІВ (SQUEEZE) */
/* Робимо менше пустих проміжків між інпутами */
.calculator__inputs {
    gap: 10px !important; /* Було 20px */
}

/* Робимо самі картки інпутів тоншими */
.calculator__input-group {
    padding: 10px 15px !important; /* Менше внутрішнього відступу */
    margin-bottom: 0 !important;
}

/* Підтягуємо заголовок інпуту ближче до повзунка */
.calculator__input-group label {
    margin-bottom: 5px !important;
    font-size: 0.9rem !important;
}

/* 2. ПРАЙС: БЕЗПЕЧНИЙ РЯДОК (SMART ROW) */
.service-card h3.text-gradient, 
.price-block {
    display: flex !important;
    flex-wrap: wrap !important; /* Дозволяємо перенос, якщо екран дуже вузький */
    align-items: baseline !important; /* Вирівнювання по низу */
    justify-content: center !important;
    gap: 6px !important;
    line-height: 1 !important;
}

/* Трохи зменшуємо шрифт ціни, щоб вона точно влізла в один рядок */
.service-card .text-gradient {
    font-size: 2.2rem !important; /* Було 2.5 або 3rem */
}

/* Стиль для "/ місяць" */
.service-card p.text-muted, 
.price-period {
    font-size: 1rem !important;
    margin: 0 !important;
    transform: translateY(-2px); /* Трохи підняти візуально */
}

/* ============================================
   FINAL LAYOUT FIXES (STRICT MODE)
   ============================================ */

/* 1. КРОС-НАВІГАЦІЯ (3 кнопки на всю ширину) */
/* Знаходимо контейнер з кнопками під калькулятором */
.calculator-section + section .cta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important; /* Три рівні колонки */
    gap: 15px !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.calculator-section + section .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

/* На мобільному - в стовпчик */
@media (max-width: 768px) {
    .calculator-section + section .cta-group {
        grid-template-columns: 1fr !important;
    }
}

/* 2. ПРАЙС (Жорстко в один рядок) */
.service-card h3.text-gradient, 
.price-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: center !important;
    flex-wrap: nowrap !important; /* ЗАБОРОНА ПЕРЕНОСУ */
    white-space: nowrap !important; /* ЗАБОРОНА ПЕРЕНОСУ */
    width: 100% !important;
}

/* Зменшуємо шрифт, щоб точно влізло */
.service-card .text-gradient {
    font-size: 2.2rem !important; 
}

.service-card p.text-muted,
.price-period {
    margin-left: 5px !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
}

/* ============================================
   CRM PRICING CARDS - PERFECT ALIGNMENT
   ============================================ */

/* Center price blocks horizontally and set consistent height */
.service-card h3.text-gradient,
.price-block,
.service-card .price-row {
    display: flex !important;
    justify-content: center !important;
    align-items: baseline !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 4rem !important;
    margin: 1.5rem 0 !important;
}

/* Text below price (one-time / разово) - centered */
.service-card p.text-muted {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    font-size: 0.9rem !important;
    opacity: 0.7 !important;
}

/* "Price on request" text styling */
.service-card .price-on-request,
.service-card h3:contains("Price"),
.service-card h3:contains("Цена"),
.service-card h3:contains("Preț"),
.service-card h3:contains("Cena") {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* ============================================
   FINAL ALIGNMENT FIX FOR "PRICE ON REQUEST"
   ============================================ */

/* 1. Скидаємо всі відступи для заголовка ціни */
.service-card h3.text-gradient {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    display: flex !important;
}

/* 2. Якщо текст всередині span, центруємо і його */
.service-card h3.text-gradient span {
    text-align: center !important;
    width: auto !important;
    margin: 0 !important;
}

/* 3. Гарантуємо, що батьківський блок теж по центру */
.price-block, .service-card .price-row {
    justify-content: center !important;
    text-align: center !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ============================================
   NUCLEAR ALIGNMENT FIX (PRICING)
   ============================================ */

/* 1. Контейнер ціни: Робимо його гнучким і центрованим */
.service-card .price-row,
.service-card .price-block,
.price-block {
    display: flex !important;
    justify-content: center !important; /* Горизонтальний центр */
    align-items: center !important;     /* Вертикальний центр */
    text-align: center !important;
    width: 100% !important;
    margin: 1rem 0 !important;
    padding: 0 !important;
}

/* 2. Сам текст ціни (H3): Прибираємо всі відступи, які його штовхають */
.service-card h3.text-gradient {
    margin: 0 !important;   /* Вбиваємо відступи з усіх боків */
    padding: 0 !important;
    text-align: center !important;
    width: auto !important; /* Хай займає стільки місця, скільки треба тексту */
    flex: 0 1 auto !important; /* Не розтягуватися на всю ширину */
}

/* 3. Текст періоду (/місяць): Тільки він має відступ зліва */
.service-card p.text-muted,
.price-period {
    margin: 0 0 0 5px !important; /* Тільки 5px зліва */
    padding: 0 !important;
    align-self: center !important;
}

/* 4. Фікс для тексту "Price on Request" (коли немає періоду) */
/* Якщо це єдиний елемент, він стане чітко по центру завдяки justify-content батька */

/* ============================================
   FEATURED HERO IMAGE STYLE
   Global class for service page hero images
   ============================================ */
.hero-dashboard-img {
    width: 100% !important;
    max-width: 650px !important;
    height: auto !important;
    border-radius: 20px !important;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.5s ease !important;
}

.hero-dashboard-img:hover {
    transform: scale(1.02) !important;
}

/* ============================================
   FORM SUCCESS MESSAGE STYLES
   ============================================ */
.form-success-message,
#form-success {
    display: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    animation: fadeInSuccess 0.5s ease-out;
}

.form-success-message .success-icon,
#form-success .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
}

.form-success-message .success-text,
#form-success .success-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--success);
    line-height: 1.6;
    margin: 0;
}

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

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   MOBILE UX FIXES (max-width: 768px)
   Critical fixes for modern smartphones
   ============================================ */

@media (max-width: 768px) {
    /* === 0. GLOBAL WIDTH LOCK (PREVENT HORIZONTAL SCROLL) === */

    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
        max-width: 100vw !important;
    }

    /* === 1. FLOATING BUTTONS POSITIONING (CRITICAL) === */

    /* Hide floating WhatsApp button on mobile - it's already in header */
    .whatsapp-float {
        display: none !important;
    }

    /* AI Chatbot button - positioning handled in section 14 */

    /* Chat widget positioning on mobile */
    .chat-widget,
    #chatWidget {
        width: calc(100vw - 20px) !important;
        max-width: 380px !important;
        right: 10px !important;
        bottom: 85px !important;
        max-height: calc(100vh - 150px) !important;
    }

    /* Scroll to top button - above social-float (messengers) stack */
    .scroll-to-top,
    .scroll-top-btn,
    #scrollToTop {
        bottom: 190px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 9997 !important;
    }

    /* === 2. METHODOLOGY ZIG-ZAG SECTIONS (VERTICAL STACK) === */

    #process .calculator-wrapper,
    .process-section .calculator-wrapper,
    .methodology-step {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Text comes first, then image */
    #process .calculator-wrapper > div:first-child,
    .process-section .calculator-wrapper > div:first-child,
    .calculator-inputs {
        order: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Image comes second */
    #process .calculator-wrapper > div:last-child,
    .process-section .calculator-wrapper > div:last-child,
    .calculator-results,
    .visual-box {
        order: 2 !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        margin-left: 0 !important;
    }

    /* Visual boxes - fixed height on mobile */
    .visual-box,
    .visual-box img,
    #process img,
    .process-image {
        height: 240px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }

    /* Remove any transforms that shift images */
    .calculator-wrapper img,
    .visual-box img {
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* === 3. SECTIONS SPACING & PADDING === */

    section {
        padding-bottom: 40px !important;
    }

    /* Pain points cards spacing */
    .problem-card,
    .pain-point-card,
    .issue-card {
        margin-bottom: 20px !important;
    }

    /* === 3.5. HORIZONTAL SCROLL FOR PAIN POINTS (SWIPE CARDS) === */

    /* Container that holds the 3 pain point cards */
    section > .container > div[style*="grid"] {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 0 20px 20px 20px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE/Edge */
    }

    /* Hide scrollbar for Chrome/Safari */
    section > .container > div[style*="grid"]::-webkit-scrollbar {
        display: none !important;
    }

    /* Individual pain point cards */
    .pain-card {
        min-width: 85vw !important;
        max-width: 85vw !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
    }

    /* === 4. HEADINGS CENTERING === */

    h2, h3,
    .section-title,
    .section-header h2,
    .section-header h3 {
        text-align: center !important;
    }

    /* === 5. CALCULATOR GRID - VERTICAL ON MOBILE === */

    .calculator__grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .calculator__inputs,
    .calculator__results {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* === 6. HERO GRID - VERTICAL ON MOBILE === */

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-text {
        text-align: center !important;
        order: 1 !important;
    }

    .hero-image {
        order: 2 !important;
        transform: none !important;
    }

    /* === 7. FOOTER GRID - STACK VERTICALLY === */

    .footer-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* ============================================
   KINETIC UI v3.1 — "ELECTRIC NEON GLASS" (60FPS)
   Bold + saturated + GPU-optimized.
   ============================================ */

/* === 0. PERFORMANCE: containment + GPU layers === */
section, .services-section, .calculator-section,
.testimonials-section, .pricing-section {
    contain: layout style !important;
}

/* === 1. DEEP CANVAS + ELECTRIC AURAS (GPU-composited) === */
body {
    background: #020617 !important;
}

body::before {
    content: '' !important;
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 60% 50% at 15% 50%, rgba(0, 242, 254, 0.40) 0%, transparent 60%),
        radial-gradient(ellipse 55% 60% at 85% 30%, rgba(139, 92, 246, 0.55) 0%, transparent 55%) !important;
    pointer-events: none !important;
    z-index: -3 !important;
    will-change: opacity !important;
    transform: translateZ(0) !important;
    animation: aura-breathe 20s ease-in-out infinite !important;
}

body::after {
    content: '' !important;
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    pointer-events: none !important;
    z-index: -2 !important;
    transform: translateZ(0) !important;
}

@keyframes aura-breathe {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

/* === 2. MATRIX RAIN CANVAS (GPU layer) === */
#matrix-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    transform: translateZ(0);
    will-change: contents;
    opacity: 0.18;               /* фонова текстура 0.15–0.20 — не відволікає від контенту */
    filter: blur(1px);           /* м'яке світіння — символи як цифровий пил, не різкий текст */
    -webkit-filter: blur(1px);
}

/* === 3. VIBRANT GLASS CARDS (optimized backdrop) === */
.service-card, .card, .pricing-card, .hero-card,
.stat, .stat-card, .testimonial-card, .faq-item,
.bundle-card, .portfolio-card {
    background: rgba(10, 10, 10, 0.65) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 40px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
}

.service-card:hover, .card:hover, .pricing-card:hover,
.stat:hover, .stat-card:hover, .testimonial-card:hover,
.portfolio-card:hover {
    border-color: rgba(0, 242, 254, 0.45) !important;
    backdrop-filter: blur(20px) saturate(250%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(250%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(0, 242, 254, 0.25),
        0 0 60px rgba(139, 92, 246, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-8px) translateZ(0) !important;
}

.pricing-card--featured,
.pricing-card:nth-child(2) {
    border: 1.5px solid rgba(0, 242, 254, 0.38) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 50px rgba(0, 242, 254, 0.15),
        0 0 80px rgba(139, 92, 246, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

/* Header: dark glass (fixed, GPU layer) */
header {
    background: rgba(2, 6, 23, 0.80) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

/* === 4. ICON GLOW CIRCLES === */
.service-card i,
.card i,
.service-icon i {
    background: rgba(16, 185, 129, 0.15) !important;
    border-radius: 50% !important;
    padding: 14px !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 0 40px rgba(16, 185, 129, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* === 5. BADGE TAGS on cards === */
.service-card::before,
.pricing-card::before {
    content: attr(data-badge) !important;
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    padding: 4px 12px !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 6px !important;
    z-index: 5 !important;
    pointer-events: none !important;
    background: #10b981 !important;
    color: #000 !important;
    display: none !important;
}

.service-card[data-badge]::before,
.pricing-card[data-badge]::before {
    display: block !important;
}

/* === 6. ELECTRIC TYPOGRAPHY (text-shadow, not filter) === */
h1 {
    background: linear-gradient(180deg, #ffffff 0%, #c7d2fe 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

h2 {
    background: linear-gradient(180deg, #f1f5f9 0%, #a5b4fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

/* Preserve brand gradient for .text-gradient spans */
h1 .text-gradient, h2 .text-gradient,
.hero h1 .text-gradient,
.section-title .text-gradient {
    background: linear-gradient(135deg, #00f2fe, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Stat numbers — neon glow */
.stat-number, .stat strong {
    text-shadow: 0 0 14px rgba(59, 130, 246, 0.5) !important;
}

/* === 7. NEON BUTTONS — Pulse + Shimmer (GPU) === */
.btn-primary, .cta {
    position: relative !important;
    overflow: hidden !important;
    animation: btn-pulse 3s ease-in-out infinite !important;
    will-change: box-shadow !important;
    transform: translateZ(0) !important;
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.30), 0 0 40px rgba(139, 92, 246, 0.10); }
    50%      { box-shadow: 0 0 40px rgba(0, 242, 254, 0.50), 0 0 80px rgba(139, 92, 246, 0.20); }
}

.btn-primary::after, .cta::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    ) !important;
    pointer-events: none !important;
    transform: translateX(-100%) translateZ(0) !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover::after, .cta:hover::after {
    transform: translateX(100%) translateZ(0) !important;
}

.btn-primary:hover, .cta:hover {
    animation: none !important;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.50), 0 0 100px rgba(139, 92, 246, 0.20) !important;
}

.btn-secondary {
    position: relative !important;
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.btn-secondary::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important; height: 100% !important;
    background: linear-gradient(120deg, transparent 30%, rgba(139, 92, 246, 0.18) 50%, transparent 70%) !important;
    transform: translateX(-100%) translateZ(0) !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-secondary:hover::after {
    transform: translateX(100%) translateZ(0) !important;
}

/* === 8. CRISP SCROLL REVEAL (GPU-composited) === */
.kinetic-hidden {
    opacity: 0 !important;
    transform: translateY(50px) scale(0.92) translateZ(0) !important;
    will-change: transform, opacity !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.kinetic-hidden.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) translateZ(0) !important;
}

/* Staggered children — snappy */
.is-visible .service-card,
.is-visible .pricing-card,
.is-visible .stat,
.is-visible .stat-card,
.is-visible .faq-item,
.is-visible .portfolio-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95) translateZ(0);
    animation: kinetic-child 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.is-visible :nth-child(1) { animation-delay: 0.06s; }
.is-visible :nth-child(2) { animation-delay: 0.12s; }
.is-visible :nth-child(3) { animation-delay: 0.18s; }
.is-visible :nth-child(4) { animation-delay: 0.24s; }
.is-visible :nth-child(5) { animation-delay: 0.30s; }
.is-visible :nth-child(6) { animation-delay: 0.36s; }

@keyframes kinetic-child {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) translateZ(0);
    }
}

/* === 9a. CALCULATOR GLASS — Strong blur to block rain behind inputs === */
.calculator, .calculator__grid, .calculator__inputs,
.calculator__results, .calculator__result-card,
.calculator__input-group, .niche-select-group {
    position: relative;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    background: rgba(2, 6, 23, 0.75) !important;
}

/* === 9. CALCULATOR — Neon Scan Lines (transform, not top/bottom) === */
.calculator-section {
    position: relative !important;
    overflow: hidden !important;
    contain: layout style !important;
}

.calculator-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 242, 254, 0.6) 25%,
        rgba(0, 242, 254, 1) 50%,
        rgba(0, 242, 254, 0.6) 75%,
        transparent 100%) !important;
    animation: scan-down 5s ease-in-out infinite !important;
    z-index: 10 !important;
    pointer-events: none !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5), 0 0 30px rgba(0, 242, 254, 0.2) !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
}

.calculator-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.6) 25%,
        rgba(139, 92, 246, 1) 50%,
        rgba(139, 92, 246, 0.6) 75%,
        transparent 100%) !important;
    animation: scan-up 6s ease-in-out infinite !important;
    z-index: 10 !important;
    pointer-events: none !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5), 0 0 30px rgba(139, 92, 246, 0.2) !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
}

@keyframes scan-down {
    0%   { transform: translateY(0) translateZ(0); opacity: 1; }
    50%  { transform: translateY(calc(100vh)) translateZ(0); opacity: 0.6; }
    100% { transform: translateY(0) translateZ(0); opacity: 1; }
}

@keyframes scan-up {
    0%   { transform: translateY(100vh) translateZ(0); opacity: 0.6; }
    50%  { transform: translateY(0) translateZ(0); opacity: 1; }
    100% { transform: translateY(100vh) translateZ(0); opacity: 0.6; }
}

/* === 10. MICRO-INTERACTIONS (no filter on scroll) === */
.logo, .brand {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.35) !important;
    transition: text-shadow 0.3s ease !important;
}

.logo:hover, .brand:hover {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6) !important;
}

.nav-menu a:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.35) !important;
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.28), 0 0 40px rgba(139, 92, 246, 0.10) !important;
    border-color: rgba(0, 242, 254, 0.45) !important;
}

.bundle-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(0, 242, 254, 0.22),
        0 0 80px rgba(139, 92, 246, 0.10),
        0 16px 48px rgba(0, 0, 0, 0.6) !important;
}

/* === 11. CUSTOM SCROLLBAR (Neon) === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f2fe, #8b5cf6);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #67e8f9, #a78bfa);
}

/* === 12. MOBILE (lighter effects) === */
@media (max-width: 768px) {
    body::before {
        animation-duration: 25s !important;
    }

    .service-card, .card, .pricing-card,
    .stat, .stat-card, .testimonial-card {
        backdrop-filter: blur(8px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(150%) !important;
    }

    .kinetic-hidden {
        transform: translateY(30px) scale(0.95) translateZ(0) !important;
    }

    #matrix-canvas {
        opacity: 0.14 !important;
        filter: blur(1px) !important;
        -webkit-filter: blur(1px) !important;
    }
}

/* === 13. PREFERS-REDUCED-MOTION === */
@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none !important; }
    .btn-primary, .cta { animation: none !important; }
    .calculator-section::before, .calculator-section::after { animation: none !important; }
    .kinetic-hidden { opacity: 1 !important; transform: none !important; transition: none !important; }
    #matrix-canvas { display: none !important; }
    * { will-change: auto !important; }
}

/* ============================================
   14. FLOATING BUTTONS STACK + HEADER WHATSAPP
   Fix: Chatbot (bottom) → WhatsApp (middle) → Telegram (top)
   ============================================ */

/* --- Header WhatsApp: official green --- */
.nav-actions a[href*="wa.me"],
.nav-actions .btn-secondary[href*="wa.me"] {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}

.nav-actions a[href*="wa.me"]:hover,
.nav-actions .btn-secondary[href*="wa.me"]:hover {
    background: #20BA5A !important;
    border-color: #20BA5A !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4) !important;
}

/* ── Social float container: iron stack above chatbot ──
   Stack order (bottom → top): Chatbot 20px → WhatsApp 85px → Telegram 150px
   social-float is flex-column: first child = Telegram (top), second = WhatsApp (bottom)
   So container bottom = WhatsApp bottom = 85px, Telegram sits above via flex gap
*/
.social-float {
    position: fixed !important;
    bottom: 85px !important;
    right: 20px !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
}

/* ── Individual floating buttons: Luxury Tech glass ── */
.social-float a {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Telegram button: #0088cc brand + white glow */
.social-float a[aria-label="Telegram"],
.social-float a[href*="t.me"] {
    background: linear-gradient(135deg, #2AABEE, #0088cc) !important;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.45),
                0 0 20px rgba(255, 255, 255, 0.08) !important;
}

.social-float a[aria-label="Telegram"]:hover,
.social-float a[href*="t.me"]:hover {
    transform: scale(1.12) translateZ(0) !important;
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.6),
                0 0 35px rgba(0, 136, 204, 0.25),
                0 0 12px rgba(255, 255, 255, 0.1) !important;
}

/* WhatsApp button: #25D366 brand + white glow */
.social-float a[aria-label="WhatsApp"],
.social-float a[href*="wa.me"] {
    background: #25D366 !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45),
                0 0 20px rgba(255, 255, 255, 0.08) !important;
}

.social-float a[aria-label="WhatsApp"]:hover,
.social-float a[href*="wa.me"]:hover {
    transform: scale(1.12) translateZ(0) !important;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6),
                0 0 35px rgba(37, 211, 102, 0.25),
                0 0 12px rgba(255, 255, 255, 0.1) !important;
}

/* ── Chatbot button: very bottom (20px), blue gradient + white glow ── */
.chatbot-button,
#chatbotButton {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4),
                0 0 20px rgba(255, 255, 255, 0.08) !important;
}

/* ── Mobile: 15% smaller, tighter stack ── */
@media (max-width: 768px) {
    .social-float {
        bottom: 78px !important;
        right: 15px !important;
        gap: 10px !important;
    }

    .social-float a {
        width: 44px !important;
        height: 44px !important;
    }

    .social-float a svg,
    .social-float a img {
        width: 20px !important;
        height: 20px !important;
    }

    .chatbot-button,
    #chatbotButton {
        bottom: 20px !important;
        right: 15px !important;
        width: 48px !important;
        height: 48px !important;
        z-index: 10000 !important;
    }

    .chatbot-button svg,
    #chatbotButton svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* ============================================================
   MOBILE LAYOUT FIX — vermarkter.eu (max-width: 768px)
   Symmetric, readable layout on iPhone & Android.
   Design unchanged: Matrix, Glassmorphism untouched.
   ============================================================ */
@media (max-width: 768px) {

    /* ── 1. GLOBAL PADDING — no text touching screen edges ── */
    .container,
    section > .container,
    .hero .container,
    .services-section .container,
    .calculator-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* ── 2. SERVICE CARDS & PROBLEM CARDS — 1 column ── */
    .services-grid,
    .problem-cards,
    .pricing-grid,
    div[style*="grid-template-columns"][class*="service"],
    div[style*="repeat(auto-fit"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* Force all service cards to full width */
    .service-card,
    .problem-card,
    .pain-point-card,
    .pain-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
    }

    /* Pricing cards: full width on mobile */
    .pricing-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* ── 3. HERO STATS COUNTER — no overflow ── */
    .stat-number,
    .stat .text-gradient,
    .stat-card .text-gradient,
    [data-target] {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;   /* % and + stay on same line */
    }

    /* Stats grid: 2 columns on mobile (не в одну колонку) */
    .stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Stat card: compact padding */
    .stat-card {
        padding: 1.2rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }

    /* ── 4. HEADINGS — adaptive clamp, never overflow ── */
    h1,
    .hero h1,
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
    }

    h2,
    .section-title,
    .calculator__title {
        font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    h3 {
        font-size: clamp(1.2rem, 6vw, 1.8rem) !important;
        line-height: 1.25 !important;
    }

    /* ── 5. FLOATING BUTTONS — handled in section 14 above ── */

    /* Scroll to top — above messenger stack */
    .scroll-to-top,
    .scroll-top-btn,
    #scrollToTop {
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        bottom: 190px !important;
    }

    /* ── 6. HERO SECTION PADDING ── */
    .hero,
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* ── 7. BUNDLE SECTION ── */
    .bundle-flex-container,
    .bundle-grid,
    div[class*="bundle"][style*="flex"] {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .bundle-left,
    .bundle-right,
    .bundle-offer,
    .bundle-content {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* ── 8. TESTIMONIALS SCROLL ── */
    .testimonials-track,
    [class*="testimonial"][style*="display: flex"] {
        gap: 16px !important;
    }

    .testimonial-card {
        min-width: 280px !important;
        padding: 1.2rem !important;
    }

    /* ── 9. PROCESS / ZIG-ZAG ── */
    .calculator-wrapper[style*="grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* ── 10. CALCULATOR SECTION ── */
    .calculator {
        padding: 20px 16px !important;
    }

    .calculator__grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* ── 11. PORTFOLIO GRID ── */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .portfolio-card {
        height: 220px !important;
    }

    /* ── 12. FOOTER ── */
    .footer-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* ── Extra small: 375px (iPhone SE) ── */
@media (max-width: 400px) {
    .stat-number,
    .stat .text-gradient,
    [data-target] {
        font-size: 1.75rem !important;
    }

    h1, .hero-title {
        font-size: clamp(1.6rem, 9vw, 2rem) !important;
    }

    .stats {
        grid-template-columns: 1fr !important;  /* iPhone SE: 1 col */
    }

    .chatbot-button,
    #chatbotButton {
        width: 44px !important;
        height: 44px !important;
    }

    .social-float a {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================================================
   MOBILE AUDIT FIXES (March 2026)
   ============================================================ */

/* ── FIX 2: STATS NUMBERS — Nuclear breakout, ігнорує відступи батька ── */
@media (max-width: 768px) {
    .stats-grid {
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }

    .stat-item {
        padding: 12px 2px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .stat-value {
        font-size: clamp(1.4rem, 6vw, 2.2rem) !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .stat-label {
        font-size: clamp(0.65rem, 2.5vw, 0.95rem) !important;
        line-height: 1.3 !important;
        display: block !important;
        margin-top: 4px !important;
    }
}

/* ══════════════════════════════════════════════════════
   COOKIE CONSENT BANNER v2  (3-button: Accept All / Analytics / Settings)
   ══════════════════════════════════════════════════════ */

/* Banner base */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 15, 28, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1.25rem 0;
    z-index: 9998;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
}
.cookie-banner.show { display: block; }

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Кнопка А: Прийняти все (яскрава, фірмовий градієнт) ── */
.cookie-btn--primary {
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
}
.cookie-btn--primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── Кнопка Б: Тільки аналітика (обводка, менш помітна) ── */
.cookie-btn--secondary {
    padding: 0.65rem 1.2rem;
    border: 1px solid rgba(100, 116, 139, 0.55);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    background: transparent;
    color: var(--text-secondary, #94a3b8);
}
.cookie-btn--secondary:hover {
    border-color: rgba(59, 130, 246, 0.6);
    color: #e2e8f0;
}

/* ── Посилання В: Налаштування (маленький сірий текст) ── */
.cookie-btn--link {
    padding: 0.4rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.cookie-btn--link:hover { color: #94a3b8; }

/* ── Settings panel ── */
.cookie-settings {
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    padding-top: 1rem;
    margin-top: 0.75rem;
}

.cookie-settings__grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}
.cookie-toggle input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}
.cookie-toggle input[disabled] { cursor: not-allowed; opacity: 0.5; }
.cookie-toggle__label { display: flex; align-items: center; gap: 0.4rem; }
.cookie-toggle__badge {
    font-size: 0.7rem;
    background: rgba(16,185,129,0.15);
    color: #10b981;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .cookie-content { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .cookie-btn--primary, .cookie-btn--secondary { flex: 1; text-align: center; }
}

/* ── FIX 4: MATRIX RAIN — more visible on mobile ── */
@media (max-width: 768px) {
    #matrix-canvas {
        opacity: 0.4 !important;
        filter: saturate(2) brightness(1.6) !important;
        -webkit-filter: saturate(2) brightness(1.6) !important;
    }
}
