body { overflow-x: hidden; }
/* tonavi.css - Улучшенная версия с связанными блоками */

/* CSS Variables for Light Theme */
:root {
    /* Backgrounds — не белый как снег, а тёплые оттенки slate/pearl */
    --bg-primary: #f4f5f9;
    --bg-secondary: #eceef6;
    --bg-tertiary: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.92);

    /* Typography */
    --text-primary: #0f1225;
    --text-secondary: #4a5066;
    --text-tertiary: #8890a8;

    /* Borders & Dividers */
    --border-color: rgba(102, 126, 234, 0.15);
    --border-subtle: rgba(0, 0, 0, 0.07);

    /* Shadows — subtle depth */
    --shadow-color: rgba(80, 100, 180, 0.10);
    --shadow-hover: rgba(80, 100, 180, 0.18);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.06) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(102, 126, 234, 0.93) 0%, rgba(118, 75, 162, 0.93) 100%);
    --gradient-hero: linear-gradient(145deg, #eceef6 0%, #f4f5f9 60%, #ede8f8 100%);

    /* Accent */
    --accent-primary: #5a6fd6;
    --accent-secondary: #764ba2;
    --accent-hover: rgba(102, 126, 234, 0.10);
    --accent-electric: #5a6fd6;
    --primary: #5a6fd6;
    --secondary: #764ba2;
    --success: #27ae60;

    /* Cards */
    --card-bg: #ffffff;
    --card-shadow: rgba(80, 100, 180, 0.09);
    --card-hover-shadow: rgba(80, 100, 180, 0.18);
}

/* ===== LIGHT THEME SPECIFIC OVERRIDES ===== */
html:not([data-theme="dark"]) .header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.12) !important;
    box-shadow: 0 2px 20px rgba(80, 100, 180, 0.08) !important;
}
html:not([data-theme="dark"]) .logo-text { color: #0f1225; }
html:not([data-theme="dark"]) .nav-list a { color: #4a5066; }
html:not([data-theme="dark"]) .nav-list a:hover { color: #5a6fd6; background: rgba(102,126,234,0.08); }
html:not([data-theme="dark"]) .nav-list a.active { color: #5a6fd6; background: rgba(102,126,234,0.10); }

/* Hero */
html:not([data-theme="dark"]) .hero {
    background: linear-gradient(145deg, #eceef6 0%, #f0f1fa 55%, #ede8f8 100%) !important;
    color: #0f1225 !important;
}
html:not([data-theme="dark"]) .gradient-text {
    background: linear-gradient(135deg, #5a6fd6 0%, #764ba2 60%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
html:not([data-theme="dark"]) .hero-subtitle { color: #4a5066 !important; }
html:not([data-theme="dark"]) .hero-badge span {
    background: rgba(102,126,234,0.10); color: #5a6fd6;
    border: 1px solid rgba(102,126,234,0.20);
}
html:not([data-theme="dark"]) .hero-trust span { color: #4a5066; }
html:not([data-theme="dark"]) .hero-trust span i { color: #5a6fd6; }
html:not([data-theme="dark"]) .hero-social-proof { color: #4a5066; }

/* Sections backgrounds */
html:not([data-theme="dark"]) .services,
html:not([data-theme="dark"]) .process,
html:not([data-theme="dark"]) .about,
html:not([data-theme="dark"]) .contact { background: #f4f5f9 !important; }

html:not([data-theme="dark"]) .official-suppliers,
html:not([data-theme="dark"]) .portfolio,
html:not([data-theme="dark"]) .reviews,
html:not([data-theme="dark"]) .faq { background: #eceef6 !important; }

html:not([data-theme="dark"]) .tonavi-tariffs {
    background: #f0f1fa !important;
    border-top: 1px solid rgba(102,126,234,0.10) !important;
    border-bottom: 1px solid rgba(102,126,234,0.10) !important;
}

/* Typography */
html:not([data-theme="dark"]) h1,
html:not([data-theme="dark"]) h2,
html:not([data-theme="dark"]) h3,
html:not([data-theme="dark"]) h4 { color: #0f1225 !important; }
html:not([data-theme="dark"]) p,
html:not([data-theme="dark"]) .hero-subtitle,
html:not([data-theme="dark"]) .section-header p { color: #4a5066 !important; }

/* Cards */
html:not([data-theme="dark"]) .service-card,
html:not([data-theme="dark"]) .t-card,
html:not([data-theme="dark"]) .review-card,
html:not([data-theme="dark"]) .official-supplier-card,
html:not([data-theme="dark"]) .benefit-item,
html:not([data-theme="dark"]) .portfolio-item {
    background: #ffffff !important;
    border: 1px solid rgba(102,126,234,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
    color: #0f1225 !important;
}
html:not([data-theme="dark"]) .service-card:hover,
html:not([data-theme="dark"]) .t-card:hover,
html:not([data-theme="dark"]) .review-card:hover,
html:not([data-theme="dark"]) .portfolio-item:hover {
    box-shadow: 0 8px 32px rgba(80,100,180,0.16) !important;
}
html:not([data-theme="dark"]) .t-list { color: #4a5066 !important; }
html:not([data-theme="dark"]) .t-val { color: #0f1225 !important; font-weight: 600; }
html:not([data-theme="dark"]) .t-cat { color: #5a6fd6 !important; border-bottom-color: rgba(102,126,234,0.15) !important; }
html:not([data-theme="dark"]) .t-price { color: #0f1225 !important; }

/* Service icons */
html:not([data-theme="dark"]) .service-icon,
html:not([data-theme="dark"]) .step-icon,
html:not([data-theme="dark"]) .benefit-icon { background: var(--gradient-primary) !important; }

/* Process steps */
html:not([data-theme="dark"]) .process-step { border-color: rgba(102,126,234,0.12); }
html:not([data-theme="dark"]) .step-number { color: rgba(102,126,234,0.15); }

/* Animated bg — lighter */
html:not([data-theme="dark"]) .animated-background { opacity: 0.25; }

/* Portfolio stats */
html:not([data-theme="dark"]) .portfolio-stats {
    background: #f4f5f9 !important;
    border-top: 1px solid rgba(102,126,234,0.10) !important;
    color: #4a5066 !important;
}

/* Stats Section Theme Styling */
.tonavi-stats-section {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
html:not([data-theme="dark"]) .tonavi-stats-section {
    background: #f4f5f9 !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.10) !important;
}

/* FAQ */
html:not([data-theme="dark"]) .faq-item {
    background: #ffffff !important;
    border: 1px solid rgba(102,126,234,0.12) !important;
}
html:not([data-theme="dark"]) .faq-question h4 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .faq-answer p { color: #4a5066 !important; }

/* Footer stays dark */
html:not([data-theme="dark"]) .footer { background: #1a1d35 !important; color: #c8ccd8 !important; }
html:not([data-theme="dark"]) .footer h4 { color: #ffffff !important; }

/* Portfolio CTA */
html:not([data-theme="dark"]) .portfolio-cta,
html:not([data-theme="dark"]) .services-cta { background: #eceef6 !important; }

/* Reviews */
html:not([data-theme="dark"]) .review-author { color: #4a5066 !important; }
html:not([data-theme="dark"]) .star { color: #f0b429 !important; }

/* ===== КНОПКИ — светлая тема ===== */

/* Primary — мягкий indigo, не кричащий, текст белый и контрастный */
html:not([data-theme="dark"]) .btn-primary {
    background: linear-gradient(135deg, #6272d8 0%, #7c55b0 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(90, 111, 214, 0.22) !important;
    border: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
html:not([data-theme="dark"]) .btn-primary:hover {
    background: linear-gradient(135deg, #5563c8 0%, #6e46a0 100%) !important;
    box-shadow: 0 8px 28px rgba(90, 111, 214, 0.32) !important;
    color: #ffffff !important;
}

/* Outline — белый фон, тёмный текст, тонкая indigo-рамка */
html:not([data-theme="dark"]) .btn-outline {
    background: #ffffff !important;
    color: #2d3260 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    border: 1.5px solid rgba(90, 111, 214, 0.30) !important;
    box-shadow: 0 2px 8px rgba(80, 100, 180, 0.08) !important;
    backdrop-filter: none !important;
    text-shadow: none !important;
}
html:not([data-theme="dark"]) .btn-outline:hover {
    background: #f0f2ff !important;
    color: #2d3260 !important;
    border-color: rgba(90, 111, 214, 0.55) !important;
    box-shadow: 0 4px 18px rgba(80, 100, 180, 0.15) !important;
}
/* Не перекрашивать outline при fill-анимации после */
html:not([data-theme="dark"]) .btn-outline:hover:after {
    display: none !important;
}

/* Контрастный текст внутри кнопок — иконки */
html:not([data-theme="dark"]) .btn-primary i { color: rgba(255,255,255,0.90) !important; }
html:not([data-theme="dark"]) .btn-outline i { color: #5a6fd6 !important; }

/* Large buttons */
html:not([data-theme="dark"]) .btn-large {
    padding: 15px 30px !important;
    font-size: 1.05rem !important;
}

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

/* ===== HERO SUPPLIER LOGOS — базовые стили (обе темы) ===== */
.hero-supplier-logos {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    background: rgba(0,0,0,0.22);
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
}
.supplier-logos-active,
.supplier-logos-connecting {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;            /* always one line, on any mobile width */
    max-width: 100%;
    overflow-x: auto;            /* if truly too narrow → scroll, never wrap */
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.supplier-logos-active::-webkit-scrollbar,
.supplier-logos-connecting::-webkit-scrollbar { display: none; }
.supplier-logos-active > *,
.supplier-logos-connecting > * { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
    .supplier-logos-active, .supplier-logos-connecting { gap: 8px; }
    .hero-supplier-logos .supplier-logos-active span { padding: 6px 9px; gap: 6px; min-height: 38px; }
    .supplier-logos-active .supplier-label { font-size: .68rem; padding: 0; }
    .supplier-logos-active .supplier-name { font-size: .8rem; }
    .supplier-logos-active .supplier-name i { font-size: .85em; }
}
.supplier-label {
    font-size: 0.82rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.supplier-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.supplier-name.active {
    color: #ffffff;
}
.supplier-name.active i {
    color: var(--secondary, #764ba2);
    margin-right: 4px;
}
.supplier-name.connecting {
    color: #a0a0a0;
}
.supplier-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.12);
}

/* hero-trust — базовые (тёмная тема) */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.07);
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.10);
}
.hero-trust span i {
    color: var(--accent-primary, #667eea);
    font-size: 0.85rem;
}

/* hero-social-proof */
.hero-social-proof {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
}
.hero-social-proof i {
    color: #667eea;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== СВЕТЛАЯ ТЕМА — hero элементы ===== */
html:not([data-theme="dark"]) .hero-supplier-logos {
    background: rgba(90, 111, 214, 0.06) !important;
    border: 1px solid rgba(90, 111, 214, 0.14) !important;
}
html:not([data-theme="dark"]) .supplier-label {
    color: #8890a8 !important;
}
html:not([data-theme="dark"]) .supplier-name.active {
    color: #0f1225 !important;
}
html:not([data-theme="dark"]) .supplier-name.active i {
    color: #5a6fd6 !important;
}
html:not([data-theme="dark"]) .supplier-name.connecting {
    color: #8890a8 !important;
}
html:not([data-theme="dark"]) .supplier-divider {
    background: rgba(90, 111, 214, 0.18) !important;
}

html:not([data-theme="dark"]) .hero-trust span {
    color: #2d3260 !important;
    background: rgba(90, 111, 214, 0.07) !important;
    border: 1px solid rgba(90, 111, 214, 0.15) !important;
}
html:not([data-theme="dark"]) .hero-trust span i {
    color: #5a6fd6 !important;
}

html:not([data-theme="dark"]) .hero-social-proof {
    color: #4a5066 !important;
    background: rgba(90, 111, 214, 0.05) !important;
    border: 1px solid rgba(90, 111, 214, 0.12) !important;
}
html:not([data-theme="dark"]) .hero-social-proof i {
    color: #5a6fd6 !important;
}


/* Dark Theme Variables */
html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --border-color: #3a3a3a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-hover: rgba(102, 126, 234, 0.2);
    
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-hover-shadow: rgba(0, 0, 0, 0.5);
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden !important;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    position: relative;
}

.container {
    width: min(100% - 32px, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

@media(max-width:480px){
    .container {
        width: min(100% - 24px, 100%);
        padding-inline: 0;
    }
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 30s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    animation: float 15s ease-in-out infinite;
}

.shape-5 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 10%;
    animation: float 18s ease-in-out infinite reverse;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 10px) rotate(-5deg); }
    75% { transform: translate(10px, 20px) rotate(3deg); }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { 
    font-size: 3.5rem; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2.8rem; 
    position: relative;
    display: inline-block;
}

h3 { font-size: 2rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    position: relative;
    z-index: 1;
}

.btn-outline:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.btn-outline:hover:after {
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 160px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-label {
    position: relative;
    display: block;
    width: 64px;
    height: 32px;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 50%, #E0F6FF 100%);
    border-radius: 32px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.theme-toggle-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Stars for light theme */
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 100% 100%;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Clouds for light theme */
.theme-toggle-label::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 10px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50px;
    left: 10px;
    top: 45%;
    transform: translateY(-50%);
    box-shadow: 
        -7px 2px 0 -1px rgba(255, 255, 255, 0.65),
        7px -2px 0 -1px rgba(255, 255, 255, 0.55);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    z-index: 1;
    filter: blur(0.5px);
}

.theme-toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(255, 165, 0, 0.4),
        inset -2px -2px 4px rgba(0, 0, 0, 0.1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.theme-toggle-moon,
.theme-toggle-sun {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.theme-toggle-moon {
    left: 10px;
    opacity: 0;
    transform: translateY(-50%) rotate(-90deg) scale(0);
}

.theme-toggle-sun {
    right: 10px;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg) scale(1);
}

/* Dark theme - switch is ON */
.theme-toggle-checkbox:checked + .theme-toggle-label {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
}

.theme-toggle-checkbox:checked + .theme-toggle-label::before {
    opacity: 1;
    background: 
        /* Stars for dark theme */
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 15%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.8) 1.2px, transparent 1.2px),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
}

.theme-toggle-checkbox:checked + .theme-toggle-label::after {
    opacity: 0;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-slider::before {
    left: calc(100% - 26px);
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    box-shadow: 
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(102, 126, 234, 0.3),
        inset -3px -3px 6px rgba(0, 0, 0, 0.4),
        inset 2px 2px 6px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-moon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg) scale(1);
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-sun {
    opacity: 0;
    transform: translateY(-50%) rotate(90deg) scale(0);
}

/* Hover effects */
.theme-toggle-label:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-toggle-checkbox:checked + .theme-toggle-label:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* Active state */
.theme-toggle-label:active {
    transform: scale(0.95);
}

/* Header */
.header {
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px var(--shadow-color);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.98);
}

/* Smooth theme transition */
.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .animated-background {
    opacity: 0.3;
}

[data-theme="dark"] .shape {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
}

[data-theme="dark"] .portfolio-overlay {
    background: var(--gradient-overlay);
}

[data-theme="dark"] .portfolio-image {
    background: var(--gradient-primary);
}

[data-theme="dark"] .step-icon {
    background: rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .service-icon {
    background: var(--gradient-primary);
}

[data-theme="dark"] .benefit-icon {
    background: var(--gradient-primary);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 40px var(--shadow-hover);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(0.05rem, 0.4vw, 0.5rem);
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
    padding: 0.5rem clamp(0.3rem, 0.62vw, 0.6rem);
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    white-space: nowrap;
}

.nav-list a i {
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Адаптивная шапка: меню в ряд на десктопе, шапка шире контента; на узких десктопах прячем иконки, чтобы 10 пунктов влезли без наезда на кнопки */
@media (min-width: 1201px) {
    .header .container { width: min(100% - 24px, 1460px); }
}
@media (max-width: 1400px) {
    .header-marketplaces { display: none; }
    .header .container { width: min(100% - 20px, 100%); }
}
@media (max-width: 1360px) {
    .nav-list a .nav-icon { display: none; }
    .nav-list a { gap: 0; }
}
/* Навигацией управляет секция floating-header ниже (брейкпоинт 1280/1281) */

.nav-list a:hover {
    background: var(--accent-hover);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-list a:hover i {
    color: #667eea;
    transform: scale(1.1);
}

.nav-list a.active {
    background: var(--accent-hover);
    color: var(--accent-primary);
    font-weight: 500;
}

.nav-list a.active i {
    color: var(--accent-primary);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--accent-hover);
    color: var(--accent-primary);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: uppercase;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-content {
    flex: 0 0 50%;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
}

.tonavi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 600px;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.decoration-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

/* Services Section */
.services {
    background: white;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px var(--card-hover-shadow);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.service-features i {
    color: #4caf50;
}

.service-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.service-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.services-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 4rem;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Process Section */
.process {
    background: #f8f9fa;
    position: relative;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.process-timeline:before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 2px;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--card-shadow);
    flex: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.5rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    margin-bottom: 1rem;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.step-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.step-features i {
    color: #667eea;
    font-size: 0.9rem;
}

.process-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--card-hover-shadow);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.benefit-item h4 {
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: visible;
    position: relative;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--card-hover-shadow);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: visible;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0;
}

.portfolio-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.portfolio-item:hover .portfolio-image i {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.4);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    z-index: 10;
}


.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.portfolio-overlay p {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.portfolio-stats {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.portfolio-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.portfolio-stats i {
    color: var(--accent-primary);
}

.portfolio-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    width: 100%;
}

.portfolio-results .result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.portfolio-results .result-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.portfolio-results .result-item i {
    font-size: 1.2rem;
    color: #fff;
}

.portfolio-results .result-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.portfolio-cta {
    text-align: center;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 24px;
    margin-top: 4rem;
}

.portfolio-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.portfolio-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.frame-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid #667eea;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.founders-title {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature i {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature h4 {
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.about-mission {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--card-shadow);
}

.about-mission h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.partners {
    text-align: center;
}

.partners h3 {
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.partner-logo {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--card-hover-shadow);
}

.partner-logo i {
    font-size: 3rem;
    color: var(--accent-primary);
}

.partner-logo span {
    font-weight: 600;
    color: var(--text-primary);
}

.partner-logo small {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    margin-top: -0.5rem;
}

.partners-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--accent-hover);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Reviews Section */
.reviews {
    background: var(--bg-primary);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--card-hover-shadow);
}

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.reviewer-info h4 {
    margin-bottom: 0.25rem;
}

.reviewer-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.review-content p {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    font-size: 0.9rem;
}

.review-project {
    color: #667eea;
    font-weight: 600;
}

.review-date {
    color: #999;
}

.reviews-platforms {
    text-align: center;
}

.reviews-platforms h3 {
    margin-bottom: 2rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

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

.platform-link {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.platform-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.platform-link i {
    font-size: 1.5rem;
}

.platform-link span {
    font-weight: 600;
}

.platform-rating {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-content h4 {
    margin-bottom: 0.25rem;
}

.method-content a {
    display: block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.method-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.contact-hours {
    background: rgba(30, 30, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.contact-hours h4 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-item span:first-child {
    color: #9ca3af;
}

.hours-item span:last-child {
    color: #ffffff;
    font-weight: 600;
}

.hours-item:last-child {
    border-bottom: none;
}

.contact-social h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 20px var(--card-shadow);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--card-hover-shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px var(--accent-hover);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #667eea;
}

.checkbox-group span {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ Section */
.faq {
    background: #f8f9fa;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--card-shadow);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background: var(--accent-hover);
}

.faq-question h4 {
    margin-bottom: 0;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer p strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.faq-answer ul li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    border-left: 2px solid var(--accent-hover);
    margin-bottom: 0.5rem;
}

.faq-answer ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-answer ul li:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-link:hover {
    background: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.contact-item i {
    color: #667eea;
    width: 20px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
}

.contact-item a:hover {
    color: #667eea;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-info strong {
    color: #667eea;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    /* Always rendered; visibility toggled via .is-visible class (no display thrash on scroll). */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Hold a dedicated GPU layer so mobile doesn't repaint-flicker it during scroll. */
    transform: translateY(12px) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) translateZ(0);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1) translateZ(0);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 5% auto;
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover {
    color: #333;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #666;
}

.success-modal .modal-content {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 3rem;
}

.success-modal h2 {
    margin-bottom: 1rem;
}

.success-modal p {
    color: #666;
    margin-bottom: 2rem;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
    z-index: 1001;
    display: none;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(102, 126, 234, 0.3);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text i {
    font-size: 1.5rem;
    color: #667eea;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

.cookie-text a {
    color: #667eea;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Brief Form */
.brief-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brief-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-timeline:before {
        left: 30px;
    }
    
    .process-step {
        gap: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 1280px) {
    .nav-list {
        gap: 0.25rem;
    }
    
    .nav-list a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .header-content {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .tonavi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .nav {
        width: 100%;
        order: 3;
    }
    
    .nav-list {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 20px 20px;
        z-index: 999;
        gap: 0.5rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: flex-start;
        border-radius: 12px;
        font-size: 1rem;
    }
    
    .nav-list a:hover {
        transform: translateX(5px);
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .header-actions {
        order: 1;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .process-timeline:before {
        display: none;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .tonavi-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .review-card,
    .benefit-item {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 10% auto;
    }
}

/* TONAVI cockpit refresh */
:root {
    --bg-primary: #fbfaf4;
    --bg-secondary: #efede2;
    --bg-tertiary: #ffffff;
    --text-primary: #171915;
    --text-secondary: #4f554b;
    --text-tertiary: #7b8174;
    --border-color: rgba(23, 25, 21, 0.08);
    --shadow-color: rgba(17, 19, 14, 0.12);
    --shadow-hover: rgba(17, 19, 14, 0.18);
    --gradient-primary: linear-gradient(135deg, #0f1412 0%, #24564d 52%, #f0b429 100%);
    --gradient-secondary:
        radial-gradient(circle at 18% 15%, rgba(240, 180, 41, 0.18), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(46, 230, 200, 0.14), transparent 30%),
        linear-gradient(135deg, #f7f4e8 0%, #e9eadb 52%, #fdfaf0 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 20, 18, 0.92), rgba(36, 86, 77, 0.88));
    --accent-primary: #24564d;
    --accent-secondary: #f0b429;
    --accent-hover: rgba(36, 86, 77, 0.10);
    --accent-electric: #2ee6c8;
    --accent-lime: #a6f65a;
    --accent-coral: #ff6a4d;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-shadow: rgba(17, 19, 14, 0.10);
    --card-hover-shadow: rgba(17, 19, 14, 0.18);
    --shadow-border:
        0 0 0 1px rgba(15, 20, 18, 0.08),
        0 10px 30px rgba(15, 20, 18, 0.08);
    --shadow-border-hover:
        0 0 0 1px rgba(15, 20, 18, 0.12),
        0 20px 55px rgba(15, 20, 18, 0.16);
}

html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] {
    --bg-primary: #10130f;
    --bg-secondary: #151912;
    --bg-tertiary: #1e241b;
    --text-primary: #fbfaf4;
    --text-secondary: #d8dbc9;
    --text-tertiary: #a5ac99;
    --border-color: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #fbfaf4 0%, #a6f65a 44%, #f0b429 100%);
    --gradient-secondary:
        radial-gradient(circle at 18% 15%, rgba(240, 180, 41, 0.16), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(46, 230, 200, 0.12), transparent 30%),
        linear-gradient(135deg, #10130f 0%, #182018 55%, #11140f 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(16, 19, 15, 0.94), rgba(36, 86, 77, 0.9));
    --accent-primary: #a6f65a;
    --accent-secondary: #f0b429;
    --accent-hover: rgba(166, 246, 90, 0.12);
    --card-bg: rgba(30, 36, 27, 0.78);
    --card-shadow: rgba(0, 0, 0, 0.35);
    --card-hover-shadow: rgba(0, 0, 0, 0.55);
    --shadow-border: 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-border-hover: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p,
.hero-subtitle,
.stat-label {
    text-wrap: pretty;
}

.stat-number,
.result-item strong {
    font-variant-numeric: tabular-nums;
}

.shape {
    border-radius: 8px;
    opacity: 0.35;
    background: linear-gradient(135deg, rgba(240, 180, 41, 0.18), rgba(46, 230, 200, 0.10));
    box-shadow: 0 0 0 1px rgba(15, 20, 18, 0.05);
    transform: rotate(8deg);
}

.btn,
.service-card,
.portfolio-item,
.benefit-item,
.review-card,
.contact-form-wrapper {
    transition-property: transform, box-shadow, background-color, color, border-color, opacity, filter;
    transition-duration: 220ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #141712 0%, #24564d 58%, #f0b429 100%);
    box-shadow: 0 10px 28px rgba(36, 86, 77, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(36, 86, 77, 0.32);
}

.btn-outline {
    color: var(--text-primary);
    border: 1px solid rgba(36, 86, 77, 0.28);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(14px);
}

.btn-outline:after {
    background: linear-gradient(135deg, #24564d 0%, #0f1412 100%);
    border-radius: 7px;
}

.header {
    box-shadow: 0 1px 0 rgba(15, 20, 18, 0.08), 0 20px 50px rgba(15, 20, 18, 0.06);
}

.logo-text {
    background: linear-gradient(135deg, #0f1412 0%, #24564d 52%, #f0b429 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero {
    min-height: 92vh;
    padding: 138px 0 70px;
    text-align: left;
    border-bottom: 0;
    background:
        linear-gradient(90deg, rgba(15, 20, 18, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(15, 20, 18, 0.04) 1px, transparent 1px),
        var(--gradient-secondary);
    background-size: 44px 44px, 44px 44px, auto;
}

.services,
.process,
.portfolio,
.about,
.reviews,
.contact,
.faq,
.footer {
    color: var(--text-primary) !important;
    background: #121212 !important;
}

.services,
.portfolio,
.reviews,
.faq {
    background: #17171d !important;
}

.section-header h2,
.service-card h3,
.step-content h3,
.benefit-item h4,
.portfolio-overlay h4,
.portfolio-cta h3,
.about-text h3,
.about-mission h4,
.partners h3,
.review-content h4,
.contact-info h3,
.contact-form h3,
.faq-question h4 {
    color: var(--text-primary) !important;
}

.section-decoration .decoration-line {
    background: rgba(255, 255, 255, 0.10) !important;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(251, 250, 244, 0.92) 0%, rgba(251, 250, 244, 0.58) 45%, rgba(15, 20, 18, 0.04) 100%),
        repeating-linear-gradient(115deg, transparent 0 24px, rgba(240, 180, 41, 0.08) 24px 25px);
}

[data-theme="dark"] .hero::before {
    background:
        linear-gradient(110deg, rgba(16, 19, 15, 0.9) 0%, rgba(16, 19, 15, 0.55) 45%, rgba(240, 180, 41, 0.05) 100%),
        repeating-linear-gradient(115deg, transparent 0 24px, rgba(166, 246, 90, 0.06) 24px 25px);
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-content {
    flex: 0 0 55%;
    max-width: 55%;
    margin: 0;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 24px; /* Fix the vertical spacing arrows */
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: uppercase;
}


.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-lime);
    box-shadow: 0 0 18px rgba(166, 246, 90, 0.75);
    margin-right: 8px;
    flex-shrink: 0;
}

.hero-title {
    max-width: 760px;
    margin-bottom: 1.35rem;
    color: var(--text-primary);
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
}

h1,
.gradient-text {
    background: linear-gradient(135deg, #0f1412 0%, #24564d 46%, #f0b429 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] h1,
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a6f65a 50%, #f0b429 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 0 2rem;
    color: var(--text-secondary);
    font-size: clamp(1.06rem, 1.6vw, 1.35rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.3rem;
}


.hero-visual {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    margin-right: 0;
    display: block;
    z-index: 1;
}

.cockpit-shell {
    position: relative;
    overflow: hidden;
    
    border-radius: 8px;
    padding: 18px;
    color: #fbfaf4;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(145deg, #0f1412 0%, #1e2c24 58%, #332b16 100%);
    background-size: 34px 34px, 34px 34px, auto;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10),
        0 34px 80px rgba(15, 20, 18, 0.34);
    transform: rotateX(2deg) rotateY(-5deg);
    transform-style: preserve-3d;
    animation: cockpitFloat 6s ease-in-out infinite;
    
 width: 100%; min-height: 650px; max-width: 900px; }

.cockpit-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(166, 246, 90, 0.18) 48%, transparent 54%),
        radial-gradient(circle at 72% 20%, rgba(46, 230, 200, 0.18), transparent 24%);
    mix-blend-mode: screen;
    animation: cockpitScan 5s linear infinite;
}

.cockpit-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(251, 250, 244, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cockpit-logo {
    width: 122px;
    height: auto;
    max-height: 32px;
    object-fit: contain;
    outline: 0;
}

.cockpit-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dce9d3;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cockpit-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-lime);
    box-shadow: 0 0 18px rgba(166, 246, 90, 0.9);
}

.cockpit-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
    padding-top: 14px;
}

.cockpit-panel {
    min-height: 136px;
    border-radius: 8px;
    padding: 16px;
    background: rgba(251, 250, 244, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    /* backdrop-filter removed: over the solid shell bg it added nothing visible
       but made the spinning ring jank. */
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, background .4s ease;
}
/* tactile hover: panel lifts + on-brand glow; the sync ring spins up & brightens */
.cockpit-panel:hover {
    transform: translateY(-5px);
    background: rgba(124, 77, 255, 0.13) !important;
    box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.45), 0 24px 48px -24px rgba(124, 77, 255, 0.75);
}
.cockpit-panel:active { transform: translateY(-2px) scale(.995); }
.panel-sync:hover .sync-ring { box-shadow: 0 0 38px 0 rgba(34, 211, 238, 0.7); }
@media (prefers-reduced-motion: reduce) {
    .sync-ring { animation: none; }
    .cockpit-panel { transition: none; }
}

.panel-main,
.panel-flow {
    min-height: 180px;
}

.panel-flow strong {
    white-space: nowrap;
}

.cockpit-panel small {
    display: block;
    margin-bottom: 10px;
    color: rgba(251, 250, 244, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10.5px;
    white-space: nowrap;
}

.cockpit-panel strong {
    display: block;
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    line-height: 1.05;
    text-wrap: balance;
}

.cockpit-bars {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.cockpit-bars span {
    display: block;
    width: var(--bar);
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-electric), var(--accent-secondary));
    animation: barPulse 2.8s ease-in-out infinite;
}

.sync-ring {
    width: 82px;
    height: 82px;
    margin-top: 18px;
    border-radius: 50%;
    /* original filled "кружок" (conic disc + dark centre) — recoloured on-brand */
    background:
        conic-gradient(from 20deg,
            #5a6fd6 0 40%, #7c4dff 40% 64%, #22d3ee 64% 90%,
            rgba(255, 255, 255, 0.14) 90% 100%),
        radial-gradient(circle, #14182b 0 48%, transparent 49%);
    /* glow via box-shadow, NOT filter → the spin stays buttery (no per-frame raster) */
    box-shadow: 0 0 24px -2px rgba(124, 77, 255, 0.5);
    animation: spinSlow 7s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    transition: box-shadow .4s ease;
}

.supplier-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.supplier-pills span {
    border-radius: 8px;
    padding: 6px 9px;
    background: rgba(166, 246, 90, 0.16);
    color: #eafbd9;
    font-size: 0.78rem;
}

.flow-line {
    position: relative;
    overflow: hidden;
    height: 8px;
    margin: 42px 0 18px;
    border-radius: 999px;
    background: rgba(251, 250, 244, 0.16);
}

.flow-line span {
    position: absolute;
    inset: 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-secondary), var(--accent-electric));
    animation: flowMove 2.2s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.floating-chip {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 8px;
    padding: 10px 12px;
    color: #10130f;
    background: rgba(251, 250, 244, 0.90);
    box-shadow:
        0 0 0 1px rgba(15, 20, 18, 0.08),
        0 16px 36px rgba(15, 20, 18, 0.18);
    font-size: 0.9rem;
    animation: chipFloat 4s ease-in-out infinite;
}

.floating-chip i {
    color: var(--accent-primary);
}

.chip-one {
    top: 72px;
    right: -14px;
}

.chip-two {
    left: -20px;
    bottom: 86px;
    animation-delay: 1.2s;
}

.tonavi-stats-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
    margin: 14px 0 0;
}

.stat-item {
    border-radius: 8px;
    padding: 18px;
    text-align: left;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-border);
    backdrop-filter: blur(14px);
}

.stat-number {
    color: var(--accent-primary);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    line-height: 1;
}

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

.portfolio-image {
    border-radius: 8px 8px 0 0;
}

.portfolio-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background: linear-gradient(145deg, #10130f 0%, #26351f 56%, #f0b429 100%);
}

.portfolio-shot::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.16) 0 22%, transparent 22% 100%),
        linear-gradient(180deg, rgba(255,255,255,0.14) 0 16%, transparent 16% 100%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 22px),
        rgba(15, 20, 18, 0.30);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 20px 42px rgba(0, 0, 0, 0.18);
}

.portfolio-shot::after {
    content: "";
    position: absolute;
    left: 46px;
    right: 46px;
    bottom: 48px;
    height: 64px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, var(--accent-electric), var(--accent-secondary), var(--accent-coral));
    clip-path: polygon(0 72%, 18% 48%, 34% 56%, 52% 22%, 72% 34%, 100% 10%, 100% 100%, 0 100%);
    opacity: 0.86;
}

.portfolio-shot > i {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
}

.portfolio-shot-catalog {
    background: linear-gradient(145deg, #13201b 0%, #24564d 52%, #2ee6c8 100%);
}

.portfolio-shot-setup {
    background: linear-gradient(145deg, #171915 0%, #3d4930 54%, #a6f65a 100%);
}

.portfolio-shot-komus {
    background: linear-gradient(145deg, #131313 0%, #4c2d1c 52%, #ff6a4d 100%);
}

.image-frame {
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(166, 246, 90, 0.10), transparent 34%),
        #0f1412;
}

.image-frame img {
    outline: 1px solid rgba(255, 255, 255, 0.10);
    outline-offset: -1px;
}

.about-brand-photo {
    aspect-ratio: 5 / 4;
    object-fit: contain;
    padding: clamp(38px, 6vw, 72px);
}

.frame-decoration {
    border-color: var(--accent-secondary);
    border-radius: 8px;
}

.image-badge {
    border-radius: 8px;
    background: linear-gradient(135deg, #24564d 0%, #0f1412 100%);
}

/* Keep the landing readable even if scroll animation state is not active. */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

@keyframes cockpitFloat {
    0%, 100% { transform: rotateX(2deg) rotateY(-5deg) translateY(0); }
    50% { transform: rotateX(1deg) rotateY(-3deg) translateY(-10px); }
}

@keyframes cockpitScan {
    0% { transform: translateX(-24%); opacity: 0.45; }
    50% { opacity: 0.9; }
    100% { transform: translateX(24%); opacity: 0.45; }
}

@keyframes barPulse {
    0%, 100% { opacity: 0.72; transform: scaleX(0.94); transform-origin: left; }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

@keyframes flowMove {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(250%); }
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 1299px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-content,
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-social-proof {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        min-height: 430px;
        max-width: 680px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 118px 0 56px;
        text-align: left;
    }

    .hero-layout {
        gap: 1.5rem;
    }

    .hero-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust span,
    .hero-social-proof {
        width: 100%;
    }

    .hero-visual {
        min-height: 380px;
    }

    .cockpit-shell {
        min-height: auto;
        transform: none;
        animation: none;
    }

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

    .cockpit-panel {
        min-height: 112px;
    }

    .panel-main,
    .panel-flow {
        min-height: 136px;
    }

    .floating-chip {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .tonavi-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.45rem;
    }

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

    .cockpit-topbar {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .portfolio-shot::before {
        inset: 16px;
    }
}

/* TONAVI system-style landing pass: closer to the main cabinet UI. */
:root {
    --bg-primary: #121212;
    --bg-secondary: #17171d;
    --bg-tertiary: #1e1e25;
    --text-primary: #f4f2ff;
    --text-secondary: #aaa6be;
    --text-tertiary: #7e7a91;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.28);
    --shadow-hover: rgba(0, 0, 0, 0.42);
    --gradient-primary: linear-gradient(135deg, #7c4dff 0%, #03dac6 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(124, 77, 255, 0.13), rgba(3, 218, 198, 0.07));
    --gradient-overlay: linear-gradient(135deg, rgba(18, 18, 18, 0.94), rgba(30, 30, 37, 0.94));
    --accent-primary: #7c4dff;
    --accent-secondary: #03dac6;
    --accent-hover: rgba(124, 77, 255, 0.16);
    --accent-electric: #03dac6;
    --accent-lime: #40d27d;
    --accent-coral: #f7b955;
    --card-bg: #1e1e25;
    --card-shadow: rgba(0, 0, 0, 0.28);
    --card-hover-shadow: rgba(0, 0, 0, 0.42);
}

* {
    letter-spacing: 0 !important;
    transition-property: background-color, color, border-color;
}

html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        #121212 !important;
    background-size: 42px 42px;
}

.animated-background {
    opacity: 0.28;
}

.shape {
    display: none;
}

.header {
    background: rgba(18, 18, 18, 0.86) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list a,
.logo-text {
    color: var(--text-primary) !important;
}

.hero {
    min-height: 92vh;
    padding: 132px 0 54px;
    color: var(--text-primary);
    background:
        linear-gradient(135deg, rgba(124, 77, 255, 0.11), transparent 44%),
        linear-gradient(180deg, rgba(3, 218, 198, 0.06), transparent 64%);
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.06;
}

.gradient-text {
    background: linear-gradient(135deg, #bb86fc 0%, #03dac6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle,
.section-header p,
.service-card p,
.step-content p,
.benefit-item p,
.portfolio-cta p,
.about-text p,
.partners-note,
.faq-answer p,
.faq-answer li {
    color: var(--text-secondary) !important;
}

.hero-supplier-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.hero-supplier-logos span {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    background: rgba(30, 30, 37, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.hero-supplier-logos img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
    outline: 1px solid rgba(255, 255, 255, 0.10);
    outline-offset: -1px;
}

.official-suppliers {
    position: relative;
    padding: 44px 0 36px;
    background:
        linear-gradient(180deg, rgba(14, 15, 18, 0.96), rgba(18, 19, 24, 0.98)),
        radial-gradient(circle at 18% 0%, rgba(124, 77, 255, 0.16), transparent 36%),
        radial-gradient(circle at 78% 10%, rgba(3, 218, 198, 0.12), transparent 34%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.official-suppliers-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 8px;
    color: #c7fff6;
    background: rgba(3, 218, 198, 0.12);
    border: 1px solid rgba(3, 218, 198, 0.22);
    font-size: 0.86rem;
    font-weight: 800;
}

.official-suppliers-head h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.06;
}

.official-suppliers-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.65;
}

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

.official-supplier-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 18px;
    min-height: 226px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(30, 30, 37, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.supplier-logo-box {
    min-height: 188px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 244, 248, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.supplier-logo-box img {
    width: min(126px, 78%);
    max-height: 92px;
    object-fit: contain;
}

.supplier-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.supplier-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #b8ffe9;
    background: rgba(35, 199, 142, 0.12);
    border: 1px solid rgba(35, 199, 142, 0.20);
    font-size: 0.8rem;
    font-weight: 800;
}

.supplier-card-body h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.supplier-card-body p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.supplier-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.supplier-features span {
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
}

.official-suppliers-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .official-suppliers {
        padding: 34px 0 30px;
    }

    .official-suppliers-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .official-suppliers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .official-supplier-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .supplier-logo-box {
        min-height: 126px;
    }

    .official-suppliers-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.tonavi-tariffs {
    position: relative;
    padding: 44px 0 42px;
    background:
        linear-gradient(180deg, rgba(18, 19, 24, 0.98), rgba(14, 15, 18, 0.96)),
        radial-gradient(circle at 12% 12%, rgba(187, 134, 252, 0.12), transparent 34%),
        radial-gradient(circle at 88% 30%, rgba(3, 218, 198, 0.10), transparent 32%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tonavi-tariffs-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.tonavi-tariffs-head h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.06;
}

.tonavi-tariffs-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.65;
}

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

.tonavi-tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 520px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(30, 30, 37, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tonavi-tariff-card.is-featured {
    border-color: rgba(187, 134, 252, 0.48);
    box-shadow: 0 18px 48px rgba(187, 134, 252, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tariff-badge {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 8px;
    color: #c7fff6;
    background: rgba(3, 218, 198, 0.12);
    border: 1px solid rgba(3, 218, 198, 0.22);
    font-size: 0.8rem;
    font-weight: 800;
}

.tonavi-tariff-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.tariff-price {
    color: var(--accent-primary);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1;
}

.tariff-details {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.35;
}

.tariff-details strong {
    color: var(--text-primary);
}

.tariff-features {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.tariff-features span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tariff-features i {
    color: #03dac6;
    margin-top: 3px;
}

.tonavi-tariff-card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

@media (max-width: 1000px) {
    .tonavi-tariffs-grid {
        grid-template-columns: 1fr;
    }

    .tonavi-tariff-card {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .tonavi-tariffs-head {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.btn {
    border-radius: 8px !important;
    min-height: 44px;
    transition-property: background-color, color, box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #7c4dff 0%, #8d5cff 100%) !important;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.30) !important;
}

.btn-outline {
    color: var(--text-primary) !important;
    background: rgba(30, 30, 37, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.hero-badge,
.hero-social-proof,
.hero-trust span,
.service-card,
.step-content,
.benefit-item,
.portfolio-item,
.about-content,
.partner-logo,
.faq-item,
.contact-form {
    border-radius: 8px !important;
    background: rgba(30, 30, 37, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 44px rgba(0, 0, 0, 0.18) !important;
}
.about-content {
    border-radius: 16px !important;
}

.cockpit-shell,
.cockpit-panel {
    border-radius: 8px !important;
    background: #1e1e25 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 10px 15px -3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 10px 15px -3px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.cockpit-shell {
    animation: none;
    transform: none;
}

.cockpit-shell::before {
    opacity: 0.35;
}

.sync-ring {
    border-color: rgba(3, 218, 198, 0.18);
    border-top-color: #03dac6;
}

.portfolio-shot-growth {
    background: linear-gradient(145deg, #1e1e25 0%, #4c35a5 54%, #03dac6 100%) !important;
}

.portfolio-shot-catalog {
    background: linear-gradient(145deg, #1a1c23 0%, #24564d 54%, #03dac6 100%) !important;
}

.portfolio-shot-setup {
    background: linear-gradient(145deg, #1e1e25 0%, #5a4974 54%, #f7b955 100%) !important;
}

.portfolio-shot-komus {
    background: linear-gradient(145deg, #1e1e25 0%, #43356f 52%, #bb86fc 100%) !important;
}

.partners-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.partner-logo img {
    width: 94px;
    height: 52px;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    outline: 1px solid rgba(255, 255, 255, 0.10);
    outline-offset: -1px;
}

.partner-logo i {
    display: none;
}

.service-price,
.step-number,
.result-item,
.stat-number {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .header-content {
        min-height: 62px;
    }

    .nav {
        display: block !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.12 !important;
    }

    .hero {
        min-height: auto !important;
        padding: 92px 0 36px !important;
        text-align: left !important;
        background:
            linear-gradient(135deg, rgba(124, 77, 255, 0.12), transparent 48%),
            #121212 !important;
    }

    .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    .hero-content,
    .hero-subtitle {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-actions,
    .hero-trust {
        justify-content: flex-start !important;
    }

    .hero-visual {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 320px !important;
        margin: 6px 0 0 !important;
    }

    .cockpit-shell {
        min-height: auto !important;
        width: 100% !important;
    }

    .floating-chip {
        display: none !important;
    }

    .partners-grid {
        grid-template-columns: 1fr !important;
    }
}

/* TONAVI launch fixes: keep the approved visual, only functional/mobile polish. */
.logo-text,
.footer-logo .logo-text {
    display: none !important;
}

.partner-logo img {
    width: 96px;
    height: 52px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
}

.partner-logo i {
    display: none !important;
}

.hero-layout {
    align-items: center !important;
}

.hero-visual {
    align-items: center;
}

.cockpit-shell {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
    max-width: 100%;
}

.hero-title,
h1 {
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.gradient-text,
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #8b7cff 0%, #58b8ff 52%, #03dac6 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.tonavi-stats-grid .stat-item {
    background: #1e1e25 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18) !important;
}

.tonavi-stats-grid .stat-number {
    color: #03dac6 !important;
}

.tonavi-stats-grid .stat-label {
    color: var(--text-secondary) !important;
}

.service-icon,
.step-icon,
.benefit-icon,
.reviewer-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
}

.service-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .header-content {
        min-height: 64px;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .header-actions > .btn-primary {
        display: none !important;
    }

    .nav-list {
        display: none !important;
        position: fixed;
        left: 12px;
        right: 12px;
        top: 70px;
        z-index: 1200;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: var(--bg-tertiary);
        box-shadow: var(--shadow-hover);
    }

    .nav-list.active {
        display: flex !important;
    }

    .nav-list a {
        width: 100%;
        white-space: normal;
    }
}



/* ================================================================
   TONAVI LIGHT THEME — финальные переопределения (максимальный приоритет)
   Перекрывают все захардкоженные тёмные стили выше
   ================================================================ */

html:not([data-theme="dark"]) .nav-list a,
html:not([data-theme="dark"]) .logo-text { color: #2d3260 !important; }
html:not([data-theme="dark"]) .nav-list a:hover { color: #5a6fd6 !important; background: rgba(90,111,214,0.08) !important; }
html:not([data-theme="dark"]) .nav-list a.active { color: #5a6fd6 !important; background: rgba(90,111,214,0.10) !important; }

html:not([data-theme="dark"]) .gradient-text {
    background: linear-gradient(135deg, #5a6fd6 0%, #764ba2 60%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html:not([data-theme="dark"]) .hero-title,
html:not([data-theme="dark"]) h1 {
    color: #0f1225 !important;
    -webkit-text-fill-color: currentColor !important;
}
html:not([data-theme="dark"]) .hero-title .gradient-text,
html:not([data-theme="dark"]) h1 .gradient-text {
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

html:not([data-theme="dark"]) .hero-badge {
    background: rgba(90,111,214,0.08) !important;
    border: 1px solid rgba(90,111,214,0.18) !important;
    color: #5a6fd6 !important;
    box-shadow: none !important;
}
html:not([data-theme="dark"]) .hero-trust span {
    background: rgba(90,111,214,0.07) !important;
    border: 1px solid rgba(90,111,214,0.14) !important;
    color: #2d3260 !important;
    box-shadow: none !important;
    border-radius: 30px !important;
}
html:not([data-theme="dark"]) .hero-social-proof {
    background: rgba(90,111,214,0.05) !important;
    border: 1px solid rgba(90,111,214,0.10) !important;
    color: #4a5066 !important;
    box-shadow: none !important;
    border-radius: 12px !important;
}

html:not([data-theme="dark"]) .service-card,
html:not([data-theme="dark"]) .step-content,
html:not([data-theme="dark"]) .benefit-item,
html:not([data-theme="dark"]) .portfolio-item,
html:not([data-theme="dark"]) .about-content,
html:not([data-theme="dark"]) .partner-logo,
html:not([data-theme="dark"]) .faq-item,
html:not([data-theme="dark"]) .contact-form {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
    color: #0f1225 !important;
    border-radius: 12px !important;
}

html:not([data-theme="dark"]) .btn-primary {
    background: linear-gradient(135deg, #6272d8 0%, #7c55b0 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(90,111,214,0.22) !important;
    border: none !important;
    -webkit-text-fill-color: #ffffff !important;
}
html:not([data-theme="dark"]) .btn-outline {
    background: #ffffff !important;
    color: #2d3260 !important;
    font-weight: 700 !important;
    border: 1.5px solid rgba(90,111,214,0.28) !important;
    box-shadow: 0 2px 8px rgba(80,100,180,0.07) !important;
    -webkit-text-fill-color: #2d3260 !important;
    backdrop-filter: none !important;
}
html:not([data-theme="dark"]) .btn-outline:hover::after { display: none !important; }

html:not([data-theme="dark"]) .tonavi-stats-grid .stat-item {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 4px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .tonavi-stats-grid .stat-number { color: #5a6fd6 !important; }
html:not([data-theme="dark"]) .tonavi-stats-grid .stat-label { color: #4a5066 !important; }

html:not([data-theme="dark"]) h2,
html:not([data-theme="dark"]) h3,
html:not([data-theme="dark"]) h4,
html:not([data-theme="dark"]) h5 {
    color: #0f1225 !important;
    -webkit-text-fill-color: currentColor !important;
}
html:not([data-theme="dark"]) .section-header p,
html:not([data-theme="dark"]) .service-description,
html:not([data-theme="dark"]) .step-content p,
html:not([data-theme="dark"]) .about-text p,
html:not([data-theme="dark"]) .faq-answer p { color: #4a5066 !important; }

html:not([data-theme="dark"]) .faq-item {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
}

/* About section — image frame */
html:not([data-theme="dark"]) .about-image .image-frame,
html:not([data-theme="dark"]) .image-frame {
    background: linear-gradient(135deg, rgba(90,111,214,0.10) 0%, rgba(118,75,162,0.08) 100%) !important;
    border: 1px solid rgba(90,111,214,0.15) !important;
    border-radius: 20px !important;
}
html:not([data-theme="dark"]) .image-badge {
    background: linear-gradient(135deg, #6272d8 0%, #7c55b0 100%) !important;
    color: #fff !important;
}
html:not([data-theme="dark"]) .about-brand-photo {
    filter: none !important;
    border-radius: 14px !important;
}
html:not([data-theme="dark"]) .about-mission {
    background: rgba(90,111,214,0.06) !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    border-radius: 12px !important;
    color: #2d3260 !important;
}
html:not([data-theme="dark"]) .founders-title { color: #5a6fd6 !important; }
html:not([data-theme="dark"]) .feature h4 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .feature p { color: #4a5066 !important; }
html:not([data-theme="dark"]) .feature i { color: #5a6fd6 !important; }

/* Service features */
html:not([data-theme="dark"]) .service-features li { color: #4a5066 !important; }
html:not([data-theme="dark"]) .service-features li i { color: #5a6fd6 !important; }
html:not([data-theme="dark"]) .service-title { color: #0f1225 !important; }

/* Process */
html:not([data-theme="dark"]) .step-number { color: rgba(90,111,214,0.15) !important; }
html:not([data-theme="dark"]) .step-content h3 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .step-features span { color: #4a5066 !important; }
html:not([data-theme="dark"]) .step-features span i { color: #5a6fd6 !important; }

/* Reviews */
html:not([data-theme="dark"]) .review-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .review-content p { color: #4a5066 !important; }
html:not([data-theme="dark"]) .reviewer-name { color: #0f1225 !important; }
html:not([data-theme="dark"]) .reviewer-role { color: #8890a8 !important; }
html:not([data-theme="dark"]) .review-stars .star { color: #f0b429 !important; }

/* Contact */
html:not([data-theme="dark"]) .contact-form-wrapper,
html:not([data-theme="dark"]) .contact-info-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 4px 24px rgba(80,100,180,0.10) !important;
    border-radius: 16px !important;
}
html:not([data-theme="dark"]) input,
html:not([data-theme="dark"]) textarea,
html:not([data-theme="dark"]) select {
    background: #f4f5f9 !important;
    border: 1px solid rgba(90,111,214,0.20) !important;
    color: #0f1225 !important;
}
html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder { color: #8890a8 !important; }
html:not([data-theme="dark"]) label { color: #4a5066 !important; }

/* ================================================================ */

/* ================================================================
   TONAVI LIGHT THEME — контактная форма и секция контактов
   ================================================================ */

html:not([data-theme="dark"]) .contact-section,
html:not([data-theme="dark"]) .contact,
html:not([data-theme="dark"]) section.contact { background: #f0f2fa !important; }

html:not([data-theme="dark"]) .contact-form-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.14) !important;
    box-shadow: 0 8px 32px rgba(80,100,180,0.12) !important;
    border-radius: 20px !important;
    color: #0f1225 !important;
}

html:not([data-theme="dark"]) .contact-form-wrapper h2,
html:not([data-theme="dark"]) .contact-form-wrapper h3,
html:not([data-theme="dark"]) .contact-form-wrapper p {
    color: #0f1225 !important;
    -webkit-text-fill-color: currentColor !important;
}

html:not([data-theme="dark"]) .contact-form-wrapper .form-group label {
    color: #4a5066 !important;
}

html:not([data-theme="dark"]) .contact-form-wrapper input,
html:not([data-theme="dark"]) .contact-form-wrapper textarea,
html:not([data-theme="dark"]) .contact-form-wrapper select,
html:not([data-theme="dark"]) .contact-form input,
html:not([data-theme="dark"]) .contact-form textarea,
html:not([data-theme="dark"]) .contact-form select {
    background: #f4f5f9 !important;
    border: 1px solid rgba(90,111,214,0.20) !important;
    color: #0f1225 !important;
    border-radius: 10px !important;
    -webkit-text-fill-color: #0f1225 !important;
}

html:not([data-theme="dark"]) .contact-form-wrapper input::placeholder,
html:not([data-theme="dark"]) .contact-form-wrapper textarea::placeholder,
html:not([data-theme="dark"]) .contact-form input::placeholder,
html:not([data-theme="dark"]) .contact-form textarea::placeholder { color: #8890a8 !important; }

html:not([data-theme="dark"]) .contact-form-wrapper input:focus,
html:not([data-theme="dark"]) .contact-form-wrapper textarea:focus,
html:not([data-theme="dark"]) .contact-form input:focus,
html:not([data-theme="dark"]) .contact-form textarea:focus {
    background: #ffffff !important;
    border-color: rgba(90,111,214,0.50) !important;
    box-shadow: 0 0 0 3px rgba(90,111,214,0.10) !important;
    outline: none !important;
}

html:not([data-theme="dark"]) .contact-form-wrapper select option {
    background: #ffffff !important;
    color: #0f1225 !important;
}

html:not([data-theme="dark"]) .contact-form-wrapper .form-check label,
html:not([data-theme="dark"]) .contact-form .form-check label,
html:not([data-theme="dark"]) .contact-form-wrapper .checkbox-label {
    color: #4a5066 !important;
}

html:not([data-theme="dark"]) .contact-info-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 4px 24px rgba(80,100,180,0.10) !important;
    border-radius: 16px !important;
}
html:not([data-theme="dark"]) .contact-info-card h3,
html:not([data-theme="dark"]) .contact-info-card h4 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .contact-info-card p,
html:not([data-theme="dark"]) .contact-info-item p,
html:not([data-theme="dark"]) .contact-info-item span { color: #4a5066 !important; }
html:not([data-theme="dark"]) .contact-info-item a { color: #5a6fd6 !important; }
html:not([data-theme="dark"]) .contact-info-icon { color: #5a6fd6 !important; }

html:not([data-theme="dark"]) .working-hours-card,
html:not([data-theme="dark"]) .social-links-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 12px rgba(80,100,180,0.07) !important;
    border-radius: 12px !important;
    color: #0f1225 !important;
}
html:not([data-theme="dark"]) .working-hours-card h4,
html:not([data-theme="dark"]) .social-links-card h4 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .working-hours-card p { color: #4a5066 !important; }

/* Light-theme social buttons: accent-tinted so they don't look invisible */
html:not([data-theme="dark"]) .social-link {
    background: rgba(90, 111, 214, 0.10) !important;
    color: #5a6fd6 !important;
}
html:not([data-theme="dark"]) .social-link:hover {
    background: #5a6fd6 !important;
    color: #ffffff !important;
}
/* Footer social links (footer stays dark in both themes) — make circles brighter */
html:not([data-theme="dark"]) .footer-social .social-link {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}
html:not([data-theme="dark"]) .footer-social .social-link:hover {
    background: #5a6fd6 !important;
    color: #ffffff !important;
}

/* ================================================================ */

/* ===== Portfolio Cards (pf-card) ===== */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.pf-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg, #1e1e25);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transition: transform 0.28s cubic-bezier(0.2,0,0,1),
                box-shadow 0.28s cubic-bezier(0.2,0,0,1);
}
.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.pf-visual {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pf-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.20) 100%);
}
.pf-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.92);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}
.pf-badge {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 2;
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
}
.pf-body {
    padding: 20px 22px 22px;
}
.pf-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.pf-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 14px;
}
.pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pf-chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 4px 10px;
    border-radius: 20px;
}
.pf-chips span i { font-size: 0.72rem; }

/* Light theme overrides */
html:not([data-theme="dark"]) .pf-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.13) !important;
    box-shadow: 0 4px 20px rgba(80,100,180,0.10) !important;
}
html:not([data-theme="dark"]) .pf-card:hover {
    box-shadow: 0 16px 48px rgba(80,100,180,0.18) !important;
}
html:not([data-theme="dark"]) .pf-title { color: #0f1225 !important; }
html:not([data-theme="dark"]) .pf-desc { color: #4a5066 !important; }
html:not([data-theme="dark"]) .pf-chips span {
    color: #2d3260 !important;
    background: rgba(90,111,214,0.07) !important;
    border: 1px solid rgba(90,111,214,0.15) !important;
}

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

/* ================================================================
   TONAVI LIGHT THEME — секция поставщиков и kicker-элементы
   ================================================================ */

html:not([data-theme="dark"]) .section-kicker {
    background: rgba(90,111,214,0.08) !important;
    color: #5a6fd6 !important;
    border: 1px solid rgba(90,111,214,0.16) !important;
}
html:not([data-theme="dark"]) .section-kicker i { color: #5a6fd6 !important; }

html:not([data-theme="dark"]) .official-suppliers {
    background: #f4f5f9 !important;
}

html:not([data-theme="dark"]) .official-supplier-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.13) !important;
    box-shadow: 0 4px 20px rgba(80,100,180,0.09) !important;
}

html:not([data-theme="dark"]) .supplier-logo-box {
    background: linear-gradient(135deg, rgba(90,111,214,0.07) 0%, rgba(118,75,162,0.05) 100%) !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
}

html:not([data-theme="dark"]) .supplier-status {
    background: rgba(90,111,214,0.09) !important;
    color: #5a6fd6 !important;
    border: 1px solid rgba(90,111,214,0.18) !important;
}
html:not([data-theme="dark"]) .supplier-status i { color: #5a6fd6 !important; }

html:not([data-theme="dark"]) .supplier-card-body h3 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .supplier-card-body p { color: #4a5066 !important; }

html:not([data-theme="dark"]) .supplier-features span {
    background: rgba(90,111,214,0.07) !important;
    color: #2d3260 !important;
    border: 1px solid rgba(90,111,214,0.13) !important;
}

html:not([data-theme="dark"]) .official-suppliers-head h2 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .official-suppliers-head p { color: #4a5066 !important; }

/* Все section-kicker на странице */
html:not([data-theme="dark"]) .kicker,
html:not([data-theme="dark"]) .section-label,
html:not([data-theme="dark"]) .tag-label {
    background: rgba(90,111,214,0.08) !important;
    color: #5a6fd6 !important;
    border: 1px solid rgba(90,111,214,0.15) !important;
}

/* Benefit items (services section) */
html:not([data-theme="dark"]) .benefit-item h4 { color: #0f1225 !important; }
html:not([data-theme="dark"]) .benefit-item p { color: #4a5066 !important; }
html:not([data-theme="dark"]) .benefit-icon {
    background: linear-gradient(135deg, #6272d8 0%, #7c55b0 100%) !important;
    color: #fff !important;
}

/* Review cards */
html:not([data-theme="dark"]) .review-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .reviewer-name { color: #0f1225 !important; }
html:not([data-theme="dark"]) .reviewer-role { color: #8890a8 !important; }
html:not([data-theme="dark"]) .review-text,
html:not([data-theme="dark"]) .review-content p { color: #4a5066 !important; }
html:not([data-theme="dark"]) .review-stars .star { color: #f0b429 !important; }

/* Partners */
html:not([data-theme="dark"]) .partner-logo {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
}
html:not([data-theme="dark"]) .partner-name { color: #4a5066 !important; }

/* Tariff cards */
html:not([data-theme="dark"]) .tariff-card,
html:not([data-theme="dark"]) .tonavi-tariff-card {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.14) !important;
    box-shadow: 0 4px 20px rgba(80,100,180,0.09) !important;
}
html:not([data-theme="dark"]) .tariff-card:hover,
html:not([data-theme="dark"]) .tonavi-tariff-card:hover {
    box-shadow: 0 12px 40px rgba(80,100,180,0.18) !important;
}
html:not([data-theme="dark"]) .tariff-name { color: #0f1225 !important; }
html:not([data-theme="dark"]) .tariff-price { color: #5a6fd6 !important; }
html:not([data-theme="dark"]) .tariff-feature,
html:not([data-theme="dark"]) .tariff-features li { color: #4a5066 !important; }
html:not([data-theme="dark"]) .tariff-features li i { color: #5a6fd6 !important; }

/* Contact Hours Light Theme Overrides */
html:not([data-theme="dark"]) .contact-hours {
    background: #ffffff !important;
    border: 1px solid rgba(90, 111, 214, 0.12) !important;
    box-shadow: 0 4px 20px rgba(80, 100, 180, 0.06) !important;
    backdrop-filter: none !important;
}
html:not([data-theme="dark"]) .contact-hours h4 {
    color: #5a6fd6 !important;
}
html:not([data-theme="dark"]) .hours-item {
    border-bottom: 1px solid rgba(90, 111, 214, 0.12) !important;
}
html:not([data-theme="dark"]) .hours-item span:first-child {
    color: #4a5066 !important;
}
html:not([data-theme="dark"]) .hours-item span:last-child {
    color: #0f1225 !important;
}

/* Hero Badge Overrides */
.hero-supplier-logos span.supplier-label {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
}
html:not([data-theme="dark"]) .hero-supplier-logos span.supplier-name {
    background: #ffffff !important;
    color: #0f1225 !important;
    box-shadow: 0 0 0 1px rgba(90, 111, 214, 0.16) !important;
}
html:not([data-theme="dark"]) .hero-supplier-logos span.supplier-name.connecting {
    background: rgba(90, 111, 214, 0.08) !important;
    color: #4a5066 !important;
    box-shadow: none !important;
}

/* ================================================================ */

/* About image custom styling to remove background, frame, badge, and borders */
.about-image .image-frame {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

html:not([data-theme="dark"]) .about-image .image-frame {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.about-image .image-frame img {
    outline: none !important;
}

.about-image .about-brand-photo {
    padding: 0 !important;
    aspect-ratio: auto !important;
    width: 100% !important;
    height: auto !important;
}

.about-image .frame-decoration {
    display: none !important;
}

.about-image .image-badge {
    display: none !important;
}

/* ================================================================
   ABOUT BLOCK — redesign (content unchanged): breathing room on the
   plate, a balanced framed logo, brand-gradient accents.
   ================================================================ */
/* the plate now has real interior padding → text no longer kisses the edge;
   columns stretch to equal height so the logo panel balances the tall text. */
.about-content {
    padding: clamp(1.75rem, 3.4vw, 3.25rem) !important;
    gap: clamp(1.75rem, 3.4vw, 3.5rem) !important;
    align-items: stretch !important;
    background: linear-gradient(180deg, rgba(38,38,48,0.95), rgba(25,25,32,0.95)) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 22px !important;
    position: relative;
    overflow: hidden;
}
.about-content::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,77,255,.65), rgba(34,211,238,.65), transparent);
}

/* left column: frame the bare wordmark in a soft gradient-glow panel, centered
   and size-capped so it reads as intentional instead of floating/oversized. */
.about-image { display: flex; height: 100%; }
.about-image .image-frame {
    width: 100% !important;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.75rem) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(120% 120% at 50% 28%, rgba(124,77,255,.18), rgba(34,211,238,.07) 55%, transparent 76%),
        rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.about-image .about-brand-photo {
    width: auto !important;
    max-width: min(80%, 360px) !important;
    height: auto !important;
    filter: drop-shadow(0 10px 30px rgba(124,77,255,.38));
}

/* lead paragraph reads as a lead, not body text */
.about-text > p:first-child {
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    color: var(--text-primary);
}

/* feature icons → brand gradient tint (was the legacy #667eea) */
.about .feature i {
    background: linear-gradient(135deg, rgba(124,77,255,.20), rgba(34,211,238,.14)) !important;
    border: 1px solid rgba(124,77,255,.26);
    color: #c4b5ff !important;
}

/* mission card: gradient edge + gradient heading for cohesion */
.about-mission {
    position: relative;
    background: rgba(255,255,255,0.035) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    overflow: hidden;
}
.about-mission::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #7c4dff, #22d3ee);
}
.about-mission h4 {
    background: linear-gradient(92deg, #7c4dff, #22d3ee);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* stacked on mobile: keep the logo panel from getting too tall */
@media (max-width: 768px) {
    .about-image .about-brand-photo { max-width: min(70%, 300px) !important; }
}

/* ================================================================
   CONTACT block — form card hugs its content (was stretched to the
   taller left column → ~100px dead space under the button) + brand hairline.
   ================================================================ */
.contact-content { align-items: start !important; }
.contact-form-wrapper {
    position: relative;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: 22px !important;
    overflow: hidden;
}
.contact-form-wrapper::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,77,255,.65), rgba(34,211,238,.65), transparent);
}
/* transparent card — blends into the section; faint glass frame + hairline kept for definition.
   #contact prefix wins over the light-theme html:not([data-theme=dark]) rule, so it applies in both themes. */
#contact .contact-form-wrapper { background: transparent !important; box-shadow: none !important; }
#contact .contact-form { background: transparent !important; box-shadow: none !important; border: none !important; }

/* ================================================================
   FINAL MOBILE & LAYOUT POLISH OVERRIDES
   ================================================================ */

.vip-crown {
    color: #d4af37;
    font-size: 22px;
    display: inline-block;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: inline-flex !important;
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .footer { padding: 40px 0 20px !important; }
    .footer-content { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    
    .cookie-notice {
        bottom: 12px !important; left: 12px !important; right: 12px !important; width: calc(100% - 24px) !important;
        border-radius: 18px !important; padding: 16px !important; border-top: none !important;
        border: 1px solid rgba(102, 126, 234, 0.3) !important;
    }
    .cookie-content { flex-direction: column !important; gap: 12px !important; padding: 0 !important; align-items: stretch !important; }
    .cookie-text { align-items: flex-start !important; }
    .cookie-text i { margin-top: 4px; }
    .cookie-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; width: 100% !important; }
    .cookie-actions .btn { width: 100% !important; padding: 10px 16px !important; font-size: 0.9rem !important; min-width: auto !important; }
}
@media (max-width: 360px) { .cookie-actions { grid-template-columns: 1fr !important; } }

/* Light Theme Cookie */
html:not([data-theme="dark"]) .cookie-notice { background: #ffffff !important; color: #0f1225 !important; border: 1px solid rgba(102, 126, 234, 0.25) !important; }
html:not([data-theme="dark"]) .cookie-text p { color: #4a5066 !important; }
html:not([data-theme="dark"]) .cookie-text i, html:not([data-theme="dark"]) .cookie-text a { color: #5a6fd6 !important; }

/* ========================================================
   P0 HEADER, HERO, PORTFOLIO, PARTNERS — GUARDRAILS
   ======================================================== */

.header .nav-list, .header .nav-list li, .header .nav-list a { opacity: 1 !important; visibility: visible !important; }
.header .nav-list a { color: var(--text-secondary) !important; }
.header .nav-list a:hover, .header .nav-list a.active { color: var(--accent-primary) !important; }
[data-theme="dark"] .header .nav-list a { color: rgba(255,255,255,0.86) !important; }
[data-theme="dark"] .header .nav-list a:hover, [data-theme="dark"] .header .nav-list a.active { color: #8ea2ff !important; }

/* Header marketplace logos */
.header-marketplaces { display: flex; align-items: center; gap: 6px; margin: 0 4px; }
.header-mp-logo { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(102, 126, 234, 0.08); border: 1px solid rgba(102, 126, 234, 0.15); padding: 4px; transition: all 0.3s ease; text-decoration: none; }
.header-mp-logo:hover { background: rgba(102, 126, 234, 0.18); border-color: rgba(102, 126, 234, 0.4); transform: translateY(-2px) scale(1.1); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }
.header-mp-logo img { width: 100%; height: 100%; object-fit: contain; }
[data-theme="dark"] .header-mp-logo { background: rgba(142, 162, 255, 0.1); border-color: rgba(142, 162, 255, 0.2); }
[data-theme="dark"] .header-mp-logo:hover { background: rgba(142, 162, 255, 0.25); border-color: rgba(142, 162, 255, 0.5); }
@media (max-width: 1400px) { .header-marketplaces { display: none; } }

/* Desktop nav — compact, no icons (полное меню в ряд до ~1140, ниже — бургер) */
@media (min-width: 1141px) {
    .header .header-content { flex-wrap: nowrap !important; gap: 0.75rem !important; }
    .header .nav { display: flex !important; flex: 1 1 auto !important; justify-content: center !important; min-width: 0 !important; }
    .header .nav-list, .header .nav-list.active {
        display: flex !important; position: static !important; flex-direction: row !important;
        align-items: center !important; justify-content: center !important; width: auto !important;
        max-height: none !important; overflow: visible !important; transform: none !important;
        animation: none !important; pointer-events: auto !important; background: transparent !important;
        box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; gap: 0.1rem !important;
    }
    .header .nav-list a .nav-icon { display: none !important; }
    .header .nav-list a, .header .nav-list a:hover, .header .nav-list a.active {
        transform: none !important; padding: 0.35rem 0.5rem !important; font-size: 0.8rem !important; gap: 0 !important;
    }
    .mobile-menu-btn { display: none !important; }
    body.menu-open { overflow: auto !important; }
}

/* Mobile nav — hamburger dropdown (выпадающее меню ≤1140) */
@media (max-width: 1140px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    
    .scroll-top {
        bottom: 96px !important;
        right: 24px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
        border-radius: 50% !important;
        z-index: 10000 !important;
    }
    body.menu-open { overflow: hidden; }
    .header .container { max-width: 100%; }
    .header .header-content { flex-wrap: nowrap !important; gap: 0.75rem !important; }
    .header .logo { flex: 0 0 auto; min-width: 0; }
    .header .logo-img { max-width: min(34vw, 150px); height: 42px; object-fit: contain; }
    .header .header-actions { display: flex !important; flex: 0 0 auto; align-items: center; gap: 0.5rem !important; margin-left: auto; }
    .theme-toggle-wrapper { margin-right: 10px; transform: scale(0.85); transform-origin: left center; }
    .header .header-actions > .btn { display: inline-flex !important; }
    .header .nav { width: auto !important; flex: 0 0 auto !important; }
    .header .nav-list {
        display: flex !important; position: fixed !important; top: 76px !important; left: 12px !important; right: 12px !important;
        width: auto !important; max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 92px) !important;
        overflow-y: auto !important; flex-direction: column !important; align-items: stretch !important; gap: 0.5rem !important;
        padding: 1rem !important; border-radius: 16px !important;
        background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.98) !important;
        border: 1px solid rgba(102, 126, 234, 0.18) !important;
        box-shadow: 0 18px 44px var(--shadow-hover) !important;
        transform: translateY(-8px) !important; opacity: 0 !important; visibility: hidden !important;
        pointer-events: none !important; z-index: 1002 !important;
    }
    [data-theme="dark"] .header .nav-list { background: rgba(18, 18, 24, 0.98) !important; border-color: rgba(142, 162, 255, 0.24) !important; }
    .header .nav-list.active { transform: translateY(0) !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
    .header .nav-list li, .header .nav-list a { width: 100% !important; }
    .header .nav-list a, .header .nav-list a:hover, .header .nav-list a.active { justify-content: flex-start !important; transform: none !important; }
    .mobile-menu-btn {
        display: inline-flex !important;
        position: fixed !important;
        bottom: 24px !important;
        right: 24px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: var(--gradient-primary) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
        z-index: 10001 !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        /* Hold a dedicated GPU layer → no repaint-flicker during scroll on mobile. */
        transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
    }
    .mobile-menu-btn:hover {
        transform: scale(1.05) translateZ(0) !important;
        box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5) !important;
    }
    .mobile-menu-btn:active {
        transform: scale(0.95) translateZ(0) !important;
    }
    .mobile-menu-btn.active {
        background: linear-gradient(135deg, #ff4b5c 0%, #ff6b6b 100%) !important;
        box-shadow: 0 4px 20px rgba(255, 75, 92, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
    }
    .mobile-menu-btn.active i::before {
        content: "\f00d" !important;
    }
}

/* Hero guardrails & Logos Fix */
@media (min-width: 1201px) {
    .hero .container { max-width: 1440px; }
    .hero-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr) !important; align-items: center !important; gap: clamp(28px, 3.5vw, 56px) !important; }
    .hero-content { flex: initial !important; max-width: 720px !important; min-width: 0 !important; }
    .hero-visual { flex: initial !important; width: 100% !important; max-width: 700px !important; margin: 0 0 0 auto !important; }
    .cockpit-shell { max-width: 700px !important; margin-left: auto !important; }
}
@media (max-width: 1200px) {
    .hero-layout { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 2rem !important; }
    .hero-content { flex: initial !important; max-width: 760px !important; width: 100% !important; }
    .hero-visual { flex: initial !important; width: 100% !important; max-width: 680px !important; margin: 0 auto !important; }
    /* center the hero content (incl. h1) in the stacked column layout */
    .hero .hero-content { text-align: center !important; align-items: center !important; }
    .hero .hero-content .hero-title,
    .hero .hero-content .hero-subtitle { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
    .hero .hero-content .hero-badge,
    .hero .hero-content .hero-actions,
    .hero .hero-content .hero-trust,
    .hero .hero-content .hero-supplier-logos,
    .hero .hero-content .hero-social-proof { justify-content: center !important; }
}
.tonavi-stats-grid { grid-column: 1 / -1; }

/* Hero gradient orbs */
.hero-background { position: absolute; width: 100%; height: 100%; top: 0; left: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 20s infinite alternate ease-in-out; }
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(102,126,234,0.4) 0%, rgba(102,126,234,0) 70%); top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(118,75,162,0.3) 0%, rgba(118,75,162,0) 70%); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(90,111,214,0.3) 0%, rgba(90,111,214,0) 70%); top: 40%; left: 40%; animation-delay: -10s; }

/* Marketplace floating icons (hero) - FIXING SIZES */
.product-showcase { position: relative; width: 100%; height: 100%; }
.marketplace-icon { position: absolute; background: white; border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: float 6s infinite ease-in-out; z-index: 10; width: 70px !important; height: 70px !important; display: flex; align-items: center; justify-content: center; }
.marketplace-logo { width: 50px !important; height: 50px !important; object-fit: contain !important; display: block !important; }
.showcase-card-1 { top: -20px; left: -30px; }
.showcase-card-2 { bottom: 40px; right: -40px; animation-delay: -2s; }
.showcase-card-3 { top: 40%; left: -50px; animation-delay: -4s; }

/* ======== DEMO SHOWCASE (Пример магазина партнера) ======== */
.demo-showcase { padding: 80px 0; background: var(--bg-primary); }
.demo-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.demo-showcase .portfolio-item { border-radius: 16px; overflow: hidden; background: var(--card-bg); box-shadow: 0 4px 20px var(--card-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.demo-showcase .portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 8px 30px var(--card-hover-shadow); }
.demo-showcase .portfolio-image { height: 180px; position: relative; overflow: visible; display: flex; align-items: center; justify-content: center; border-radius: 16px 16px 0 0; }
.demo-showcase .portfolio-image i { font-size: 3rem; color: rgba(255, 255, 255, 0.4); }
.demo-showcase .portfolio-stats { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.85rem; }
/* .demo-showcase .portfolio-overlay removed */ /* hide overlay for demo showcase since it has its own logic */
.demo-showcase-cta { text-align: center; padding: 2rem 0; }
.demo-showcase-cta h3 { margin-bottom: 0.75rem; font-size: 1.4rem; color: var(--text-primary); }
.demo-showcase-cta p { margin-bottom: 1.5rem; color: var(--text-secondary); }
@media (max-width: 1024px) { .demo-showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .demo-showcase-grid { grid-template-columns: 1fr; } }

/* ======== PORTFOLIO (реализованные сайты — охуенный грид) ======== */
section.portfolio#portfolio { padding: 80px 0; background: var(--bg-secondary); }
section.portfolio#portfolio .section-header h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
section.portfolio#portfolio .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 0 !important;
}
.portfolio-site-card {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    height: 130px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid var(--border-color);
    padding: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.portfolio-site-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.portfolio-site-card:hover::before { opacity: 0.05; }
.portfolio-site-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: var(--accent-primary);
}
.portfolio-site-logo {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    position: relative;
    background: #000000 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-site-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.6) contrast(0.7) !important;
    opacity: 0.75;
    transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block !important;
    z-index: 1;
}
.portfolio-site-card:hover .portfolio-site-logo {
    background-color: var(--logo-brand-color, #000000) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}
.portfolio-site-card:hover .portfolio-site-logo img {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.1);
}
.portfolio-site-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
    z-index: 1;
}
.portfolio-site-card:hover .portfolio-site-name {
    color: var(--accent-primary);
}

/* ======== PARTNERS SHOWCASE ======== */
.partners-showcase { padding: 80px 0; background: var(--bg-primary); overflow: hidden; }
.partners-showcase-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.partners-showcase-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; }
.partners-carousel-wrapper {
    position: relative; padding: 1.6rem 0; width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
    mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}
/* the viewport is now a real scroller — drag / wheel / arrows navigate it */
.partners-carousel {
    overflow-x: auto; overflow-y: visible; scrollbar-width: none; -ms-overflow-style: none;
    cursor: grab; padding: 10px 0;
    overscroll-behavior-x: contain;
}
.partners-carousel::-webkit-scrollbar { display: none; }
.partners-carousel.grabbing { cursor: grabbing; }
.partners-carousel-track { display: flex; width: max-content; will-change: transform; }
.partners-carousel-group { display: flex; gap: 1.5rem; padding-right: 1.5rem; align-items: center; }

/* rectangular chip: never crops wordmarks, full-colour, high contrast on white */
.partner-logo-card {
    flex: 0 0 auto; height: 80px; min-width: 152px; max-width: 240px;
    display: flex; align-items: center; justify-content: center; padding: 0 30px;
    background: #fff; border-radius: 18px; border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 30px -16px rgba(0,0,0,.55);
    transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease;
    user-select: none; -webkit-user-select: none;
}
.partner-logo-card img {
    max-height: 46px; max-width: 180px; width: auto; height: auto;
    object-fit: contain; filter: none !important; opacity: 1 !important;
    display: block !important; -webkit-user-drag: none; pointer-events: none;
}
.partner-logo-card:hover {
    transform: scale(1.045);
    box-shadow: 0 18px 40px -18px rgba(124,77,255,.5), 0 0 22px -5px rgba(34,211,238,.5);
}
.partner-logo-card:active { transform: scale(1.01); }

/* navigation arrows */
.pcar-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
    background: rgba(18,18,28,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1rem; opacity: .9;
    transition: transform .25s ease, background .25s ease, opacity .25s ease;
}
.pcar-nav:hover { background: var(--accent-primary, #7c4dff); transform: translateY(-50%) scale(1.1); opacity: 1; }
.pcar-nav:active { transform: translateY(-50%) scale(.96); }
.pcar-nav:focus-visible { outline: 2px solid var(--accent-primary, #7c4dff); outline-offset: 3px; }
.partners-carousel:focus-visible { outline: 2px solid var(--accent-primary, #7c4dff); outline-offset: 4px; border-radius: 12px; }
.pcar-nav.prev { left: 6px; } .pcar-nav.next { right: 6px; }
@media (max-width: 620px) { .pcar-nav { display: none; } }

/* Partners Stats */
.partners-showcase-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 3rem; }
.partners-stat-item {
    text-align: center; background: rgba(255,255,255,0.05); padding: 1.5rem 2rem;
    border-radius: 16px; min-width: 180px; border: 1px solid var(--border-color); transition: transform 0.3s ease;
}
.partners-stat-item:hover { transform: translateY(-5px); }
.partners-stat-value { font-size: 2rem; font-weight: 700; color: var(--accent-primary); margin-bottom: 0.5rem; }
.partners-stat-label { font-size: 0.9rem; color: var(--text-secondary); }

/* ======== Responsive: All new sections ======== */
@media (max-width: 768px) {
    section.portfolio#portfolio .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; gap: 10px !important; }
    .portfolio-site-card { width: 110px; height: 110px; border-radius: 12px; }
    .portfolio-site-card::before { border-radius: 12px; }
    .portfolio-site-logo { width: 55px; height: 55px; border-radius: 50%; overflow: hidden; margin-bottom: 0; background: #000000 !important; border: 1.5px solid rgba(255, 255, 255, 0.08) !important; }
    html:not([data-theme="dark"]) .portfolio-site-logo { background: #eceef6 !important; border: 1.5px solid #d1d5db !important; }
    html:not([data-theme="dark"]) .portfolio-site-logo::after { top: 3px; left: 3px; right: 3px; bottom: 3px; }
    .portfolio-site-name { font-size: 0.65rem; margin-top: 4px; }
    /* rectangular chips (carousel scrolls horizontally → width isn't viewport-bound);
       img clamped to 100% of the padded box so wordmarks never spill outside the white card. */
    .partner-logo-card { width: auto; height: 68px; min-width: 128px; max-width: 200px; padding: 0 16px; overflow: hidden; }
    .partner-logo-card img { max-height: 36px; max-width: 100%; }
    .partners-carousel-group { gap: 1rem; padding-right: 1rem; }

    /* long-label CTAs: wrap + fit the (narrow) mobile container instead of overflowing right */
    .btn-large { white-space: normal; min-width: 0; max-width: 100%; padding-left: 22px; padding-right: 22px; }
    .cta-content .btn-large, .demo-showcase-cta .btn-large { width: 100%; }
    .partners-stat-item { min-width: 140px; padding: 1rem; }
    .partners-stat-value { font-size: 1.5rem; }
}

/* ======== SITE PREVIEW MODAL (парящее окно предпросмотра) ======== */
.site-preview-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.site-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}
.site-preview-external-btn {
    background: var(--gradient-primary, linear-gradient(135deg, #667eea, #764ba2));
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s ease,
                visibility 0.35s ease;
    z-index: 10001;
    opacity: 0;
    transform: translateY(10px);
}
.site-preview-overlay.active .site-preview-external-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}
.site-preview-external-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(102, 126, 234, 0.45),
                0 0 0 1.5px rgba(255, 255, 255, 0.2) inset;
}
.site-preview-external-btn:active {
    transform: translateY(0) scale(0.97);
}
.site-preview-external-btn i {
    font-size: 0.9rem;
}
.site-preview-window {
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    background: var(--card-bg, #1a1d23);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 60px rgba(14, 165, 233, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease;
}
.site-preview-overlay.active .site-preview-window {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.site-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 56px;
    flex-shrink: 0;
}
.site-preview-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-preview-toolbar-dots {
    display: flex;
    gap: 7px;
}
.site-preview-toolbar-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}
.site-preview-toolbar-dots span:nth-child(1) { background: #ff5f57; }
.site-preview-toolbar-dots span:nth-child(2) { background: #febc2e; }
.site-preview-toolbar-dots span:nth-child(3) { background: #28c840; }
.site-preview-url {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
    font-family: 'Inter', monospace;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-preview-url i {
    color: #28c840;
    font-size: 0.75rem;
}
.site-preview-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-preview-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.site-preview-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary, #f0f0f0);
    border-color: rgba(255, 255, 255, 0.15);
}
.site-preview-btn.close-btn:hover {
    background: rgba(255, 95, 87, 0.2);
    color: #ff5f57;
    border-color: rgba(255, 95, 87, 0.3);
}
.site-preview-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.site-preview-iframe {
    width: 166.67%;
    height: 166.67%;
    border: none;
    background: #fff;
    transform: scale(0.6);
    transform-origin: 0 0;
}
.site-preview-blocked {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--card-bg, #1a1d23);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 3;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
    padding: 2rem;
}
.site-preview-blocked.visible {
    display: flex;
}
.site-preview-blocked i {
    font-size: 3rem;
    color: var(--accent-primary, #0ea5e9);
    opacity: 0.6;
}
.site-preview-blocked p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
}
.site-preview-blocked .btn-open-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea, #764ba2));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.site-preview-blocked .btn-open-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.site-preview-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--card-bg, #1a1d23);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
    transition: opacity 0.4s ease;
}
.site-preview-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.site-preview-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-primary, #0ea5e9);
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
.site-preview-loader-text {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
    font-weight: 500;
}
/* Mobile adjustments for preview */
@media (max-width: 768px) {
    .site-preview-overlay {
        gap: 12px;
        padding: 10px;
    }
    .site-preview-window {
        width: 100%;
        height: 75vh;
        border-radius: 14px;
    }
    .site-preview-external-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .site-preview-toolbar {
        padding: 10px 14px;
        min-height: 48px;
    }
    .site-preview-toolbar-dots { display: none; }
    .site-preview-url {
        font-size: 0.75rem;
        max-width: 200px;
        padding: 5px 10px;
    }
}

/* ===== LIGHT THEME SPECIFIC OVERRIDES FOR MISSING COMPONENTS ===== */
html:not([data-theme="dark"]) .demo-showcase {
    background: #f4f5f9 !important;
}
html:not([data-theme="dark"]) .partners-showcase {
    background: #f4f5f9 !important;
}
html:not([data-theme="dark"]) .platform-link {
    background: #ffffff !important;
    color: #0f1225 !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .platform-link:hover {
    background: linear-gradient(135deg, #6272d8 0%, #7c55b0 100%) !important;
    color: #ffffff !important;
}
html:not([data-theme="dark"]) .platform-rating {
    background: #eceef6 !important;
    color: #4a5066 !important;
}
html:not([data-theme="dark"]) .portfolio-site-card {
    background: #ffffff !important;
    border-color: rgba(90,111,214,0.12) !important;
    color: #0f1225 !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .portfolio-site-card:hover {
    border-color: #5a6fd6 !important;
    box-shadow: 0 8px 32px rgba(80,100,180,0.16) !important;
}
html:not([data-theme="dark"]) .portfolio-site-name {
    color: #4a5066 !important;
}
html:not([data-theme="dark"]) .portfolio-site-logo {
    background: #eceef6 !important;
    border: 1.5px solid #d1d5db !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
html:not([data-theme="dark"]) .portfolio-site-logo::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease;
}
html:not([data-theme="dark"]) .portfolio-site-logo img {
    filter: invert(1) grayscale(100%) !important;
    opacity: 0.95;
}
html:not([data-theme="dark"]) .portfolio-site-card:hover .portfolio-site-logo {
    background-color: var(--logo-brand-color, #1e1e25) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}
html:not([data-theme="dark"]) .portfolio-site-card:hover .portfolio-site-logo::after {
    opacity: 0;
}
html:not([data-theme="dark"]) .portfolio-site-card:hover .portfolio-site-logo img {
    filter: invert(1) hue-rotate(180deg) !important;
    opacity: 1 !important;
}
html:not([data-theme="dark"]) .partner-logo-card {
    background: #ffffff !important;
    border-color: rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .partner-logo-card:hover {
    border-color: #5a6fd6 !important;
}
/* Partner logos read on a white tile in dark theme too (wordmark SVGs: Точка, 1С, Merlion…) */
html[data-theme="dark"] .partner-logo-card {
    background: #ffffff !important;
    border-color: rgba(255,255,255,0.10) !important;
}
html[data-theme="dark"] .partner-logo-card:hover {
    border-color: var(--accent-primary, #7c4dff) !important;
}
html:not([data-theme="dark"]) .partners-stat-item {
    background: #ffffff !important;
    border: 1px solid rgba(90,111,214,0.12) !important;
    box-shadow: 0 2px 16px rgba(80,100,180,0.08) !important;
}
html:not([data-theme="dark"]) .partners-stat-value {
    color: #5a6fd6 !important;
}
html:not([data-theme="dark"]) .partners-stat-label {
    color: #4a5066 !important;
}





    /* ── сайты, снятые с обслуживания на стороне заказчика ── */
    .portfolio-site-card[data-offline]{position:relative;opacity:.62;filter:grayscale(.75)}
    .portfolio-site-card[data-offline]:hover{opacity:.9;filter:grayscale(.3)}
    .portfolio-site-card[data-offline]::after{
        content:"не продлён";position:absolute;top:6px;right:6px;z-index:3;
        font-size:.62rem;font-weight:700;letter-spacing:.02em;line-height:1;
        padding:4px 7px;border-radius:999px;white-space:nowrap;
        background:rgba(255,176,32,.16);color:#ffb020;border:1px solid rgba(255,176,32,.42);
    }
