/* ========================================
   SEOLOVIN.COM v3 — ALIVE & PREMIUM
   Unbounded + Manrope
   Cursor Glow • Magnetic • Tilt • Noise
   ======================================== */

:root {
    --bg: #050509;
    --bg-2: #0a0a12;
    --bg-3: #12121c;
    --surface: rgba(20, 20, 32, 0.55);
    --surface-hi: rgba(30, 30, 48, 0.85);
    --line: rgba(255,255,255,0.06);
    --line-hi: rgba(255,255,255,0.12);
    
    --text: #f5f5fa;
    --text-2: rgba(245,245,250,0.7);
    --text-3: rgba(245,245,250,0.45);
    
    --neon: #00FFB2;
    --neon-2: #00B8FF;
    --gold: #FFD27A;
    --violet: #A78BFA;
    
    --grad: linear-gradient(135deg, #00FFB2 0%, #00B8FF 50%, #A78BFA 100%);
    --grad-text: linear-gradient(135deg, #fff 0%, #c8c8d4 100%);
    
    --font-d: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-b: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-m: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
    
    --fs-hero: clamp(2.25rem, 5.5vw + 0.5rem, 5.5rem);
    --fs-h1: clamp(2rem, 4.5vw, 4rem);
    --fs-h2: clamp(1.625rem, 3vw, 2.75rem);
    --fs-h3: clamp(1.25rem, 1.5vw, 1.625rem);
    --fs-body: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
    --fs-sm: 0.875rem;
    --fs-xs: 0.75rem;
    
    --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;
    
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: none;
}

@media (max-width: 1023px), (hover: none) {
    body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--neon); color: var(--bg); }

/* === Cursor Glow === */
.cursor-glow {
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,178,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, width 0.4s var(--ease), height 0.4s var(--ease);
    mix-blend-mode: screen;
}
@media (max-width: 1023px), (hover: none) { .cursor-glow { display: none; } }

/* === Scroll Progress === */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--grad);
    z-index: 200;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--neon);
}

/* === Animated Background === */
.animated-bg {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.noise-overlay {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    animation: noiseShift 8s infinite;
}
@keyframes noiseShift {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(-5%, -5%); }
}

.gradient-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,255,178,0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,184,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(167,139,250,0.08) 0%, transparent 50%);
    animation: meshFloat 20s infinite ease-in-out;
}
@keyframes meshFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: auroraDrift 25s infinite ease-in-out;
}
.aurora-1 { width: 500px; height: 500px; background: #00FFB2; top: -100px; right: -100px; }
.aurora-2 { width: 400px; height: 400px; background: #00B8FF; bottom: 10%; left: -100px; animation-delay: 8s; }
.aurora-3 { width: 350px; height: 350px; background: #A78BFA; top: 40%; left: 30%; opacity: 0.25; animation-delay: 16s; }
@keyframes auroraDrift {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(80px, -60px) scale(1.15); }
    66% { transform: translate(-60px, 80px) scale(0.9); }
}

/* === Layout === */
.container {
    width: min(1280px, 100% - 2.5rem);
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--font-d);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}
h1 { font-size: var(--fs-hero); font-weight: 600; }
h2 { font-size: var(--fs-h1); }
h3 { font-size: var(--fs-h2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: rgba(0,255,178,0.08);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}
.eyebrow::before {
    content: ""; width: 6px; height: 6px;
    background: var(--neon); border-radius: 50%;
    box-shadow: 0 0 8px var(--neon);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.section-title { margin-bottom: 1.25rem; }
.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0.9rem 1.75rem;
    border-radius: var(--r-md);
    font-family: var(--font-d);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: none;
}
@media (max-width: 1023px), (hover: none) { .btn { cursor: pointer; } }

.btn-primary {
    background: var(--grad);
    color: #001419;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,255,178,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,255,178,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-hi);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    border-color: var(--neon);
    background: rgba(0,255,178,0.06);
    color: var(--neon);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.125rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* === Header === */
.site-header {
    position: fixed;
    top: 1.25rem; left: 0; right: 0;
    z-index: 100;
    transition: top 0.4s var(--ease);
}
.site-header.scrolled { top: 0.75rem; }

.header-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 0.875rem 1.25rem 0.875rem 1rem;
    background: rgba(10,10,18,0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(0,255,178,0.08);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-sm);
    transition: transform 0.4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-text {
    font-family: var(--font-d);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.logo-text .dot { color: var(--neon); }

.nav-menu { display: flex; gap: 2rem; }
.nav-menu a {
    font-family: var(--font-b);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.3s;
    position: relative;
    padding: 6px 0;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a.active { color: var(--text); }
.nav-menu a.active::after {
    content: "";
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--grad);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon);
}

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

.lang-switcher { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 0.5rem 0.875rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--font-m);
    font-size: 0.8125rem;
    color: var(--text-2);
    transition: all 0.3s;
}
.lang-btn:hover { border-color: var(--line-hi); color: var(--text); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    min-width: 200px;
    background: var(--surface-hi);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-md);
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 10;
}
.lang-option {
    display: flex; justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    color: var(--text-2);
    transition: all 0.2s;
}
.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-option.active { background: rgba(0,255,178,0.08); color: var(--neon); }
.lang-code { font-family: var(--font-m); font-size: 0.75rem; opacity: 0.7; }

.mobile-toggle {
    display: none;
    width: 40px; height: 40px;
    position: relative;
    border-radius: var(--r-sm);
}
.mobile-toggle span {
    position: absolute;
    left: 10px; right: 10px;
    height: 2px; background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.mobile-toggle span:nth-child(1) { top: 16px; }
.mobile-toggle span:nth-child(2) { bottom: 16px; }
.mobile-toggle.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { bottom: 19px; transform: rotate(-45deg); }

.mobile-menu {
    margin-top: 0.75rem;
    padding: 1.5rem;
    background: var(--surface-hi);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-lg);
    display: flex; flex-direction: column; gap: 1.25rem;
}
.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
    display: block; padding: 0.875rem 1rem;
    font-size: 1.0625rem; font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-sm);
    transition: all 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text); }

/* === Hero === */
.hero {
    min-height: 100vh; min-height: 100dvh;
    padding: clamp(8rem, 14vh, 11rem) 0 clamp(4rem, 8vw, 6rem);
    display: flex; align-items: center;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: rgba(0,255,178,0.06);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: 0.8125rem;
    color: var(--neon);
    margin-bottom: 2rem;
}
.hero-badge .dot-live {
    width: 8px; height: 8px;
    background: var(--neon); border-radius: 50%;
    box-shadow: 0 0 12px var(--neon);
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
    color: var(--text-2);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.6;
}
.hero-subtitle .accent { color: var(--neon); font-weight: 600; }

.hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    max-width: 560px;
}
.hero-stat strong {
    display: block;
    font-family: var(--font-d);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat span { font-size: 0.8125rem; color: var(--text-3); }

/* Hero Visual - Floating Terminal */
.hero-visual { position: relative; perspective: 1500px; }

.terminal {
    background: var(--surface-hi);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: terminalFloat 8s infinite ease-in-out;
}
@media (min-width: 1024px) {
    .terminal { transform: rotateY(-10deg) rotateX(4deg); }
    @keyframes terminalFloat {
        0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
        50% { transform: rotateY(-10deg) rotateX(4deg) translateY(-20px); }
    }
}
@media (max-width: 1023px) {
    @keyframes terminalFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-12px); }
    }
}

.terminal-header {
    display: flex; align-items: center; gap: 10px;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--line);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-path {
    font-family: var(--font-m); font-size: 0.75rem;
    color: var(--text-3); margin-left: auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-m);
    font-size: 0.8125rem;
    line-height: 1.8;
    overflow-x: auto;
}
.terminal-body .k { color: #ff79c6; }
.terminal-body .s { color: #f1fa8c; }
.terminal-body .c { color: #6272a4; font-style: italic; }
.terminal-body .f { color: #50fa7b; }
.terminal-body .v { color: #bd93f9; }
.terminal-body .w { color: #f8f8f2; }

.cursor-blink {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--neon);
    vertical-align: middle;
    animation: blink 1s infinite;
    box-shadow: 0 0 8px var(--neon);
}
@keyframes blink { 50% { opacity: 0; } }

.floating-cards {
    position: absolute;
    z-index: 3;
}
.float-card {
    position: absolute;
    padding: 10px 16px;
    background: var(--surface-hi);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-md);
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-size: 0.875rem;
}
.float-card strong {
    font-family: var(--font-d);
    color: var(--neon);
    font-weight: 600;
}

.fc-1 { top: -20px; right: -10px; animation: float1 6s infinite ease-in-out; }
.fc-2 { bottom: 20%; left: -30px; animation: float2 7s infinite ease-in-out; }
.fc-3 { bottom: -15px; right: 30%; animation: float3 8s infinite ease-in-out; }

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(8px,-10px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(2deg); } }

@media (max-width: 1023px) {
    .floating-cards { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.5rem; }
    .float-card { position: static; animation: none !important; flex: 1; }
}

/* === Marquee (живая бегущая строка) === */
.marquee {
    padding: 2rem 0;
    background: var(--bg-2);
    border-block: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}
.marquee::before, .marquee::after {
    content: "";
    position: absolute; top: 0; bottom: 0; width: 120px;
    z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }

.marquee-track {
    display: flex; gap: 4rem;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}
.marquee-item {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--font-d);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-2);
    white-space: nowrap;
}
.marquee-item svg { flex-shrink: 0; }
.marquee-dot { color: var(--neon); }

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

/* === Trust Bar === */
.trust-bar { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg-2); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.trust-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
}
.trust-stat:hover {
    transform: translateY(-4px);
    border-color: var(--line-hi);
}
.trust-stat .stat-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 auto 1rem;
    background: rgba(0,255,178,0.08);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-md);
    color: var(--neon);
}
.stat-number {
    font-family: var(--font-d);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.stat-label { font-size: 0.875rem; color: var(--text-2); }

/* === Services === */
.services-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s;
    display: flex; flex-direction: column;
    transform-style: preserve-3d;
}
.service-card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0,255,178,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.service-card:hover {
    border-color: var(--line-hi);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,0.08);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-md);
    margin-bottom: 1.5rem;
    color: var(--neon);
    transition: all 0.4s var(--ease);
}
.service-card:hover .service-icon {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 0 20px rgba(0,255,178,0.3);
}

.service-title {
    font-size: var(--fs-h3);
    margin-bottom: 0.75rem;
}
.service-desc {
    color: var(--text-2);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-features {
    display: flex; flex-direction: column; gap: 0.625rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.5;
}
.service-features svg { flex-shrink: 0; color: var(--neon); margin-top: 3px; }

.service-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--neon); font-weight: 500; font-size: 0.9375rem;
    transition: gap 0.3s;
    margin-top: auto;
}
.service-link:hover { gap: 12px; }

/* === Why Section === */
.why-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .why-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.comparison {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}
@media (min-width: 640px) { .comparison { grid-template-columns: 1fr 1fr; } }

.comparison-item {
    padding: 1.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
}
.comparison-item.bad { border-color: rgba(255,90,95,0.2); background: rgba(255,90,95,0.04); }
.comparison-item.good { border-color: rgba(0,255,178,0.25); background: rgba(0,255,178,0.04); }

.comp-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 1rem;
}
.comp-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.bad .comp-icon { background: rgba(255,90,95,0.15); color: #ff5a5f; }
.good .comp-icon { background: rgba(0,255,178,0.15); color: var(--neon); }

.comp-head h4 { font-size: 1rem; font-weight: 600; }

.comparison-item ul { display: flex; flex-direction: column; gap: 0.625rem; }
.comparison-item li {
    padding-left: 24px; position: relative;
    font-size: 0.875rem; color: var(--text-2); line-height: 1.5;
}
.comparison-item li svg {
    position: absolute; left: 0; top: 2px;
}

.skills-chart {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.skills-chart h4 {
    font-family: var(--font-d);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.skill-bars { display: flex; flex-direction: column; gap: 1rem; }
.skill-bar { display: flex; flex-direction: column; gap: 6px; }
.skill-row { display: flex; justify-content: space-between; align-items: center; }
.skill-name { font-size: 0.875rem; font-weight: 500; }
.skill-percent { font-family: var(--font-m); font-size: 0.75rem; color: var(--neon); }
.bar-track {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,255,178,0.4);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s var(--ease-out);
}
.skill-bar.visible .bar-fill { transform: scaleX(1); }

/* === Cases === */
.cases-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.case-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    display: flex; flex-direction: column;
}
.case-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-hi);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.case-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    overflow: hidden;
}
.case-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.case-card:hover .case-image img { transform: scale(1.05); }

.case-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad);
    font-family: var(--font-d);
    font-size: 3.5rem; font-weight: 700;
    color: #001419;
}

.case-region {
    position: absolute; top: 14px; right: 14px;
    padding: 5px 12px;
    background: rgba(5,5,9,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: 0.6875rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-content {
    padding: 1.5rem;
    display: flex; flex-direction: column;
    flex-grow: 1;
}
.case-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.case-meta { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 1.25rem; }

.case-metric {
    display: flex; align-items: baseline; gap: 10px;
    padding: 1rem;
    background: rgba(0,255,178,0.05);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-sm);
    margin-bottom: 1.25rem;
}
.case-metric .val {
    font-family: var(--font-d);
    font-size: 1.5rem; font-weight: 600;
    color: var(--neon);
    letter-spacing: -0.02em;
}
.case-metric .lbl { font-size: 0.8125rem; color: var(--text-2); }

.case-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--neon); font-weight: 500; font-size: 0.9375rem;
    margin-top: auto;
    transition: gap 0.3s;
}
.case-link:hover { gap: 12px; }

.cases-cta { text-align: center; }

/* === Lead Magnet === */
.lead-magnet { padding: clamp(4rem, 8vw, 7rem) 0; }

.lead-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
}
.lead-card::before {
    content: "";
    position: absolute; top: -150px; right: -150px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--neon) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .lead-card { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.lead-title { font-size: var(--fs-h2); margin-bottom: 1rem; }
.lead-sub { font-size: 1.0625rem; color: var(--text-2); margin-bottom: 2rem; }

.lead-form { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--neon);
    background: rgba(0,255,178,0.04);
    box-shadow: 0 0 0 4px rgba(0,255,178,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23ffffff'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-select option { background: var(--bg-2); }

.audit-feats { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 1; }
.audit-feat {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: all 0.3s;
}
.audit-feat:hover { border-color: var(--line-hi); transform: translateX(4px); }
.audit-feat .feat-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,0.08);
    border: 1px solid rgba(0,255,178,0.2);
    border-radius: var(--r-sm);
    color: var(--neon);
}
.audit-feat h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.audit-feat p { font-size: 0.8125rem; color: var(--text-2); line-height: 1.5; }

/* === Testimonials === */
.testimonials-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}
.testimonials-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.testimonial-card {
    padding: 1.75rem;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
    display: flex; flex-direction: column;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-hi);
}

.test-rating {
    display: flex; gap: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
}
.test-rating svg { width: 16px; height: 16px; }

.test-text {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.test-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.test-avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d);
    font-weight: 600;
    color: #001419;
}
.test-info h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 2px; }
.test-info p { font-size: 0.75rem; color: var(--text-3); }

/* === Clients === */
.clients-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.clients-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 560px) { .clients-logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .clients-logos { grid-template-columns: repeat(8, 1fr); gap: 1rem; } }

.client-logo {
    padding: 1rem 0.75rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    height: 80px;
    transition: all 0.3s var(--ease);
    font-family: var(--font-d);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-2);
    letter-spacing: -0.01em;
}
.client-logo:hover {
    border-color: var(--line-hi);
    transform: translateY(-2px);
    color: var(--text);
}

/* === Footer === */
.site-footer {
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-tagline {
    color: var(--text-2);
    margin: 1rem 0 1.5rem;
    max-width: 320px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: all 0.3s;
}
.social-link:hover {
    background: var(--neon);
    color: var(--bg);
    border-color: var(--neon);
    transform: translateY(-2px);
}

.footer-nav h4, .footer-contact h4 {
    margin-bottom: 1rem;
    font-family: var(--font-m);
    font-size: 0.75rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-nav a, .footer-contact a {
    color: var(--text-2); font-size: 0.9375rem;
    transition: color 0.3s;
    display: inline-flex; align-items: center; gap: 6px;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--neon); }

.footer-bottom {
    display: flex; flex-direction: column; gap: 1rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p { color: var(--text-3); font-size: 0.8125rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.footer-legal a { color: var(--text-3); font-size: 0.8125rem; }
.footer-legal a:hover { color: var(--neon); }

/* === Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Mobile === */
@media (max-width: 1023px) {
    .nav-menu { display: none; }
    .header-actions .lang-switcher { display: none; }
    .header-actions .magnetic-btn { display: none; }
    .mobile-toggle { display: block; }
}
@media (min-width: 1024px) {
    .mobile-toggle, .mobile-menu { display: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile language switcher */
.mobile-lang { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mobile-lang-btn {
    padding: .625rem 0;
    text-align: center;
    font-family: var(--font-m);
    font-size: .8125rem;
    font-weight: 500;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: all .25s;
}
.mobile-lang-btn:hover { border-color: var(--line-hi); color: var(--text); }
.mobile-lang-btn.active {
    background: rgba(0,255,178,.08);
    border-color: rgba(0,255,178,.25);
    color: var(--neon);
}

/* ============ HERO v5: карточки в ряд под кодом ============ */

/* Терминал: код с переносами строк */
.terminal { animation: none; }
.terminal-body pre { margin: 0; }
.terminal-body code {
    display: block;
    font-family: var(--font-m);
    font-size: .8125rem;
    line-height: 1.95;
    white-space: pre;
}

/* Плавание терминала */
.terminal-wrap { position: relative; animation: wrapFloat 9s ease-in-out infinite; }
@keyframes wrapFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (min-width: 1024px) {
    .terminal { transform: rotateY(-8deg) rotateX(3deg); transition: transform .4s var(--ease-out); }
}

/* Построчное появление кода */
.cl { display: block; opacity: 0; transform: translateX(-10px); animation: clIn .45s var(--ease-out) forwards; animation-delay: calc(.5s + var(--i) * .14s); }
@keyframes clIn { to { opacity: 1; transform: none; } }

/* Орбита вокруг терминала */
.orbit-ring {
    position: absolute;
    inset: -9% -6%;
    border: 1px dashed rgba(0,255,178,.16);
    border-radius: 50%;
    animation: spin 50s linear infinite;
    pointer-events: none;
}
.orbit-ring::before {
    content: "";
    position: absolute;
    top: -5px; left: 50%;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 14px var(--neon);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ★★★ КАРТОЧКИ В РЯД ПОД ТЕРМИНАЛОМ ★★★ */
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1.75rem;
    position: relative;
    z-index: 3;
}
.metric-row .float-card {
    position: static;
    animation: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .875rem 1rem;
}
.metric-row .float-card svg { flex-shrink: 0; }
.metric-row .float-card strong { font-size: 1rem; }
.metric-row .float-card span { font-size: .8125rem; }

@media (max-width: 640px) {
    .metric-row { grid-template-columns: 1fr; gap: 10px; }
    .metric-row .float-card { justify-content: flex-start; }
}

/* Убираем старые плавающие позиции, если остались */
.floating-cards { display: none; }

/* Заголовок: line reveal (страховка) */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line-inner { display: block; transform: translateY(112%); animation: lineUp 1s var(--ease-out) forwards; }
.hero-title .line:nth-child(1) .line-inner { animation-delay: .15s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: .32s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-title em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Статистика с разделителями (страховка) */
.hero-stats { display: flex; max-width: 640px; padding-top: 2.25rem; }
.hstat { padding-right: 2.25rem; }
.hstat + .hstat { padding-left: 2.25rem; border-left: 1px solid var(--line); }
.hstat strong {
    display: block;
    font-family: var(--font-d);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}
.hstat strong.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hstat span { font-size: .8125rem; color: var(--text-3); }
@media (max-width: 560px) {
    .hero-stats { flex-direction: column; gap: 1.25rem; }
    .hstat { padding-right: 0; display: flex; align-items: baseline; gap: 12px; }
    .hstat + .hstat { padding-left: 0; border-left: none; }
}

/* География (страховка, если v4 не применялся) */
.regions-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.regions-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .regions-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.region-card {
    padding: 2rem;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    transition: all .4s var(--ease);
}
.region-card::after {
    content: attr(data-code);
    position: absolute;
    right: -12px; bottom: -34px;
    font-family: var(--font-d);
    font-size: 7rem;
    font-weight: 800;
    color: rgba(255,255,255,.03);
    letter-spacing: -.05em;
    pointer-events: none;
}
.region-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.region-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-m); font-size: .75rem;
    color: var(--neon);
    padding: 6px 12px;
    background: rgba(0,255,178,.07);
    border: 1px solid rgba(0,255,178,.2);
    border-radius: var(--r-full);
    margin-bottom: 1.25rem;
}
.region-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.region-list { display: flex; flex-direction: column; gap: .625rem; }
.region-list li { display: flex; gap: 10px; font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.region-list svg { flex-shrink: 0; color: var(--neon); margin-top: 3px; }

/* Финальный CTA (страховка) */
.final-cta { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.cta-card {
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(18, 18, 30, .9);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    text-align: center;
}
.cta-card::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(0,255,178,.12), transparent 85%);
    animation: spin 9s linear infinite;
    pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.cta-sub { color: var(--text-2); margin-bottom: 2rem; max-width: 520px; margin-inline: auto; }
.cta-mail {
    display: inline-flex; gap: 8px; align-items: center;
    margin-top: 1.5rem;
    font-family: var(--font-m);
    font-size: .875rem;
    color: var(--text-3);
    transition: color .3s;
}
.cta-mail:hover { color: var(--neon); }


/* ═══ RTL SUPPORT (Arabic: Tajawal) ═══ */
html[dir="rtl"] body,
body.rtl {
    font-family: "Tajawal", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4 {
    font-family: "Tajawal", "Geologica", -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

/* Arabic typography adjustments */
html[dir="rtl"] .hero-title { font-size: clamp(2.25rem, 4.5vw, 4.25rem); }
html[dir="rtl"] .section-title { letter-spacing: 0; }
html[dir="rtl"] .btn { font-family: "Tajawal", sans-serif; font-weight: 600; }

/* ═══ Typography Enhancements (Geologica features) ═══ */
h1, h2, h3, h4 {
    font-feature-settings: "ss01" 1, "ss02" 1, "cv11" 1;
    font-variation-settings: "wght" var(--heading-weight, 600);
}
body {
    font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1;
    font-variant-numeric: tabular-nums;
}
.hero-title {
    font-variation-settings: "wght" 600;
}
.eyebrow, .section-tag {
    font-feature-settings: "ss01" 1;
}

/* Optimize rendering on WebKit */
h1, h2, h3, h4, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === Метрики-карточки: БЕЗ переносов === */
.metric-row .float-card {
    white-space: nowrap;
    flex-wrap: nowrap;
    min-width: 0;
}
.metric-row .float-card svg { flex-shrink: 0; }
.metric-row .float-card strong,
.metric-row .float-card span {
    white-space: nowrap;
}
.metric-row .float-card strong { font-size: .95rem; letter-spacing: -.01em; }
.metric-row .float-card span { font-size: .8rem; }

/* Средние экраны: компактнее, чтобы влезало в ряд */
@media (max-width: 1100px) and (min-width: 641px) {
    .metric-row { gap: 8px; }
    .metric-row .float-card { padding: .75rem; gap: 6px; }
    .metric-row .float-card strong { font-size: .9rem; }
    .metric-row .float-card span { font-size: .75rem; }
}

/* === Vanilla UI states (без Alpine) === */
.lang-dropdown { display: none; }
.lang-dropdown.open { display: block; }
.lang-form, .lang-form-mobile { display: block; margin: 0; }
.lang-option {
    width: 100%; background: none; border: none;
    font: inherit; cursor: pointer; text-align: left;
}
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }
.lang-form-mobile { flex: 1; }
.mobile-lang { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* === FIX v6: курсор, адаптив, карточки === */

/* 1. Возвращаем видимый курсор (glow остаётся как фоновый эффект) */
html, body { cursor: auto !important; overflow-x: clip; }
a, button, .btn, select, input, textarea { cursor: pointer; }
input, textarea, select { cursor: text; }
select, button { cursor: pointer; }

/* 2. Карточки метрик: авто-адаптивная сетка (влезает на любом языке) */
.metric-row {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.metric-row .float-card {
    min-width: 0;
    padding: .875rem .75rem;
    gap: 8px;
    overflow: hidden;
}
.metric-row .float-card strong { font-size: .95rem; }
.metric-row .float-card span { font-size: .78rem; }

/* 3. Гарантированный адаптив (перебивает всё предыдущее) */
@media (max-width: 1023px) {
    .nav-menu,
    .header-actions .lang-switcher,
    .header-actions .magnetic-btn { display: none !important; }
    .mobile-toggle { display: flex !important; }
    .hero-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
    .terminal { transform: none !important; }
    .why-grid, .lead-card { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
    .hero { padding-top: 7.5rem; }
    .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta .btn { width: 100%; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .hstat { padding-right: 0; display: flex; align-items: baseline; gap: 12px; }
    .hstat + .hstat { border-left: none; padding-left: 0; }
    .services-grid, .cases-grid, .testimonials-grid,
    .regions-grid, .comparison { grid-template-columns: 1fr !important; }
    .trust-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .clients-logos { grid-template-columns: repeat(2, 1fr) !important; }
    .form-row { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .section-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
    .metric-row { grid-template-columns: 1fr; }
    .metric-row .float-card { justify-content: flex-start; }
}

@media (max-width: 380px) {
    .container { width: calc(100% - 2rem); }
    .trust-grid { grid-template-columns: 1fr !important; }
}

/* === FIX v7: segmented language switcher (mobile) === */
.mobile-lang {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.lang-form-mobile { display: block; margin: 0; }
.mobile-lang-btn {
    width: 100%;
    padding: .5625rem 0;
    background: transparent;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-m);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text-3);
    transition: all .25s var(--ease);
    min-height: 0 !important;
    display: block !important;
}
.mobile-lang-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.mobile-lang-btn.active {
    background: var(--grad);
    color: #001419;
    box-shadow: 0 4px 14px rgba(0, 255, 178, .3);
}

/* === FIX v8 === */

/* Мобильный segmented-переключатель (компактный, на ссылках) */
.mobile-lang {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    padding: 5px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.mobile-lang-btn {
    display: block !important;
    min-height: 0 !important;
    padding: .5rem 0 !important;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-m);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text-3);
    text-decoration: none;
    transition: all .25s var(--ease);
}
.mobile-lang-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.mobile-lang-btn.active {
    background: var(--grad);
    color: #001419;
    box-shadow: 0 4px 14px rgba(0, 255, 178, .3);
}

/* Метрики 20+/3/100+ — 3 В РЯД на мобильных */
@media (max-width: 640px) {
    .hero-stats {
        flex-direction: row !important;
        justify-content: space-between;
        gap: .75rem;
        padding-top: 1.5rem;
    }
    .hstat {
        display: block !important;
        padding-right: 0 !important;
        min-width: 0;
        flex: 1;
    }
    .hstat + .hstat {
        border-left: 1px solid var(--line) !important;
        padding-left: .75rem !important;
    }
    .hstat strong { font-size: 1.375rem; }
    .hstat span { font-size: .6875rem; line-height: 1.35; }
}

/* === FIX v9: мобильные метрики крупнее === */
@media (max-width: 640px) {
    .hstat strong {
        font-size: clamp(1.75rem, 7.5vw, 2.25rem);
        letter-spacing: -.02em;
    }
    .hstat span {
        font-size: .8125rem;
    }
    .hero-stats { gap: 1rem; }
    .hstat + .hstat { padding-left: 1rem !important; }
}

/* === FIX v10: мобильные метрики — гарантированно крупнее === */
@media (max-width: 640px) {
    .hstat strong {
        font-size: 2.125rem !important;
        line-height: 1.1 !important;
        letter-spacing: -.02em;
    }
    .hstat span {
        font-size: .875rem !important;
    }
    .hero-stats { gap: 1rem; padding-top: 1.75rem; }
    .hstat + .hstat { padding-left: 1rem !important; }
}

/* === FIX v11: MOBILE PERFORMANCE MODE ===
   Убираем причины мигания/дёргания на мобильных:
   1) backdrop-filter (стекло) — главный виновник фликера
   2) blur-анимации фона — нагрузка на GPU
   3) построчная "печать" кода — мерцание при загрузке
*/
@media (max-width: 1023px) {
    /* Тяжёлые фоновые эффекты — стоп */
    .noise-overlay, .cursor-glow { display: none !important; }
    .aurora { animation: none !important; opacity: .18; }
    .gradient-mesh { animation: none !important; }
    .terminal-wrap { animation: none !important; }
    .metric-row .float-card { animation: none !important; }
    .marquee-track { animation-duration: 55s; }

    /* Код в терминале: без "печати" — показываем сразу */
    .cl {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* backdrop-filter → плотные фоны (стабильный рендер) */
    .site-header, .header-nav, .lang-dropdown, .mobile-menu,
    .terminal, .float-card, .service-card, .case-card,
    .testimonial-card, .trust-stat, .region-card, .lead-card,
    .skills-chart, .audit-feat, .case-region {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .header-nav { background: rgba(10, 10, 18, .96) !important; }
    .mobile-menu, .lang-dropdown { background: rgba(14, 14, 24, .98) !important; }
    .terminal { background: rgba(18, 18, 30, .97) !important; }
    .service-card, .case-card, .testimonial-card, .trust-stat,
    .region-card, .skills-chart, .audit-feat { background: rgba(18, 18, 30, .92) !important; }
    .lead-card { background: linear-gradient(180deg, rgba(0,255,178,.05), rgba(14,14,24,.96)) !important; }
    .float-card { background: rgba(20, 20, 34, .96) !important; }
}

/* Слабые CPU / уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track, .aurora, .gradient-mesh, .terminal-wrap,
    .orbit-ring, .cl, .hero-title .line-inner { animation: none !important; }
    .hero-title .line-inner { transform: none !important; opacity: 1 !important; }
}

/* === FIX v12: метрики 2×2 на мобильных === */
@media (max-width: 640px) {
    .metric-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .metric-row .float-card {
        padding: .75rem .625rem;
        gap: 6px;
        justify-content: flex-start;
    }
    .metric-row .float-card svg { width: 16px; height: 16px; }
    .metric-row .float-card strong { font-size: .9rem; }
    .metric-row .float-card span { font-size: .72rem; }
}

/* Совсем узкие экраны — компактнее */
@media (max-width: 380px) {
    .metric-row { gap: 8px; }
    .metric-row .float-card { padding: .625rem .5rem; gap: 5px; }
    .metric-row .float-card strong { font-size: .82rem; }
    .metric-row .float-card span { font-size: .68rem; }
}

/* === FIX v12: метрики 2 в ряд на мобильных (все языки) === */
@media (max-width: 1023px) {
    .metric-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .metric-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .metric-row .float-card {
        justify-content: flex-start;
        padding: .75rem .625rem;
        gap: 6px;
        overflow: hidden;
    }
    .metric-row .float-card svg { width: 15px; height: 15px; }
    .metric-row .float-card strong { font-size: .9rem; }
    .metric-row .float-card span { font-size: .72rem; }
}

/* Узкие экраны (320-380px): ещё компактнее */
@media (max-width: 380px) {
    .metric-row { gap: 6px; }
    .metric-row .float-card { padding: .625rem .5rem; gap: 5px; }
    .metric-row .float-card strong { font-size: .82rem; }
    .metric-row .float-card span { font-size: .68rem; }
}

/* ============ ABOUT PAGE ============ */
.about-hero { padding: clamp(8rem, 14vh, 11rem) 0 4rem; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1.15fr .85fr; gap: 5rem; }
}
.about-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-sub {
    font-size: 1.125rem;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 2.5rem;
}
.about-stats { max-width: 560px; }

/* Profile card */
.profile-card {
    padding: 2.5rem 2rem;
    background: rgba(18, 18, 30, .9);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: "";
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(0,255,178,.18), transparent 70%);
    pointer-events: none;
}
.profile-avatar {
    width: 96px; height: 96px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-d);
    font-size: 2rem; font-weight: 700;
    color: #001419;
    box-shadow: 0 12px 40px rgba(0,255,178,.35);
    position: relative;
}
.profile-name { font-size: 1.375rem; margin-bottom: .375rem; }
.profile-role {
    font-family: var(--font-m);
    font-size: .8125rem;
    color: var(--neon);
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
}
.profile-geo { display: flex; justify-content: center; gap: 8px; margin-bottom: 1.5rem; }
.geo-chip {
    padding: 5px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: .75rem;
    color: var(--text-2);
}
.profile-line { height: 1px; background: var(--line); margin-bottom: 1.5rem; }
.profile-facts { display: flex; flex-direction: column; gap: .75rem; }
.pfact {
    display: flex; align-items: center; gap: 10px;
    font-size: .875rem; color: var(--text-2);
}
.pfact svg { color: var(--neon); flex-shrink: 0; }

/* ===== TIMELINE ===== */
.timeline-section { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.timeline { max-width: 900px; margin: 0 auto; }

.tl-item {
    display: grid;
    grid-template-columns: 110px 48px 1fr;
    grid-template-areas: "years dot card";
    position: relative;
    padding-bottom: 2.5rem;
}
.tl-item::before {
    content: "";
    position: absolute;
    left: calc(110px + 23px);
    top: 10px; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(0,255,178,.4), rgba(0,184,255,.12));
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }

.tl-years {
    grid-area: years;
    font-family: var(--font-d);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
    padding-top: 8px;
}
.tl-dotwrap { grid-area: dot; display: flex; justify-content: center; }
.tl-dot {
    width: 14px; height: 14px;
    margin-top: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--neon);
    box-shadow: 0 0 14px rgba(0,255,178,.6);
    position: relative;
    z-index: 1;
}
.tl-card {
    grid-area: card;
    padding: 1.75rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.tl-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.tl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1rem; }
.tl-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-sm);
    color: var(--neon);
}
.tl-title { font-size: 1.125rem; margin-bottom: 4px; }
.tl-focus {
    font-family: var(--font-m);
    font-size: .75rem;
    color: var(--text-3);
    letter-spacing: .03em;
}
.tl-desc { font-size: .9375rem; color: var(--text-2); line-height: 1.65; }

@media (max-width: 768px) {
    .tl-item {
        grid-template-columns: 32px 1fr;
        grid-template-areas:
            "dot years"
            "dot card";
        gap: 0 12px;
        padding-bottom: 2rem;
    }
    .tl-item::before { left: 15px; }
    .tl-years { text-align: left; padding: 6px 0 10px; font-size: 1rem; }
    .tl-dot { margin-top: 12px; }
}

/* ===== STACK ===== */
.stack-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) { .stack-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }

/* ===== PRINCIPLES ===== */
.principles-section { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.principles-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .principles-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.principle-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.principle-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.principle-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-md);
    color: var(--neon);
    margin-bottom: 1.25rem;
}
.principle-card h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.principle-card p { font-size: .9375rem; color: var(--text-2); line-height: 1.65; }

/* === FIX v13: ABOUT — полная адаптивность === */

/* Планшет */
@media (max-width: 1023px) {
    .about-grid { gap: 3rem; }
    .profile-card { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* Мобильные */
@media (max-width: 768px) {
    .about-hero { padding-top: 7.5rem; padding-bottom: 3rem; }
    .about-grid { gap: 2.5rem; }
    .about-sub { font-size: 1.0625rem; }

    /* Профиль-карточка */
    .profile-card { padding: 2rem 1.5rem; }
    .profile-avatar { width: 84px; height: 84px; font-size: 1.75rem; }
    .profile-name { font-size: 1.25rem; }
    .profile-role { font-size: .75rem; }

    /* Таймлайн */
    .tl-card { padding: 1.25rem; }
    .tl-head { gap: 12px; }
    .tl-icon { width: 40px; height: 40px; }
    .tl-icon svg { width: 19px; height: 19px; }
    .tl-title { font-size: 1.0625rem; }
    .tl-desc { font-size: .9rem; overflow-wrap: break-word; }

    /* Принципы */
    .principle-card { padding: 1.5rem; }
}

/* Узкие мобильные */
@media (max-width: 480px) {
    .about-title { font-size: clamp(1.625rem, 7vw, 2.125rem); }
    .about-sub { font-size: 1rem; }

    .profile-card { padding: 1.75rem 1.25rem; }
    .profile-geo { flex-wrap: wrap; }
    .geo-chip { font-size: .6875rem; padding: 4px 10px; }
    .pfact { font-size: .8125rem; }

    /* Таймлайн: компактная линия */
    .tl-item { grid-template-columns: 24px 1fr; gap: 0 10px; }
    .tl-item::before { left: 11px; }
    .tl-dot { width: 12px; height: 12px; border-width: 2px; margin-top: 12px; }
    .tl-years { font-size: .9375rem; padding-bottom: 8px; }
    .tl-card { padding: 1.125rem; }
    .tl-icon { width: 36px; height: 36px; border-radius: 8px; }
    .tl-icon svg { width: 17px; height: 17px; }
    .tl-title { font-size: 1rem; }
    .tl-focus { font-size: .6875rem; }
    .tl-desc { font-size: .85rem; }
}

/* Очень узкие (320px) */
@media (max-width: 380px) {
    .about-hero { padding-top: 7rem; }
    .about-title { font-size: 1.5rem; }
    .hstat strong { font-size: 1.375rem; }
    .hstat span { font-size: .625rem; }
    .hero-stats { gap: .625rem; }
    .hstat + .hstat { padding-left: .625rem !important; }
    .profile-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
    .tl-card { padding: 1rem; }
    .principle-card { padding: 1.25rem; }
    .principle-icon { width: 44px; height: 44px; }
}

/* === ABOUT ALIVE === */

/* Светящийся аватар */
.profile-avatar { animation: avatarGlow 3.5s ease-in-out infinite; }
@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 12px 40px rgba(0,255,178,.35); }
    50% { box-shadow: 0 12px 60px rgba(0,255,178,.65); }
}

/* Линия таймлайна рисуется при скролле */
.tl-item::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.1s var(--ease-out) .15s;
}
.tl-item.visible::before { transform: scaleY(1); }

/* Точки вспыхивают */
.tl-item .tl-dot { opacity: 0; transition: opacity .5s .4s; }
.tl-item.visible .tl-dot { opacity: 1; animation: dotGlow 2.8s ease-in-out infinite .9s; }
@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0,255,178,.5); }
    50% { box-shadow: 0 0 24px rgba(0,255,178,.95); }
}

/* Карточки таймлайна выезжают слева-спавa поочерёдно */
.tl-card { transition: all .7s var(--ease-out); }

/* RTL: зеркальный таймлайн */
html[dir="rtl"] .tl-item::before { left: auto; right: calc(110px + 23px); }
html[dir="rtl"] .tl-years { text-align: left; }
@media (max-width: 768px) {
    html[dir="rtl"] .tl-item::before { left: auto; right: 15px; }
    html[dir="rtl"] .tl-years { text-align: right; }
}
@media (max-width: 480px) {
    html[dir="rtl"] .tl-item::before { left: auto; right: 11px; }
}

/* === NUMBERS === */
.numbers-section { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.numbers-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 640px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .numbers-grid { grid-template-columns: repeat(4, 1fr); } }
.num-card {
    padding: 2rem 1.5rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all .4s var(--ease);
}
.num-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.num-val {
    font-family: var(--font-d);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline;
}
.num-sign {
    display: inline;
    font-family: var(--font-d);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.num-label { margin-top: 1rem; font-size: .9375rem; color: var(--text-2); line-height: 1.5; }

/* === GEO COMPETENCE === */
.geo-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.geo-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .geo-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.geo-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.geo-card::after {
    content: attr(data-code);
    position: absolute;
    right: -8px; bottom: -28px;
    font-family: var(--font-d);
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255,255,255,.03);
    letter-spacing: -.05em;
    pointer-events: none;
}
.geo-card:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.geo-flag { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.geo-card h3 { font-size: 1.375rem; margin-bottom: .375rem; }
.geo-sub { color: var(--text-3); font-size: .875rem; margin-bottom: 1.25rem; font-family: var(--font-m); }
.geo-list { display: flex; flex-direction: column; gap: .625rem; }
.geo-list li { display: flex; gap: 10px; font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.geo-list svg { flex-shrink: 0; color: var(--neon); margin-top: 3px; }

/* === STACK EVOLUTION === */
.stack-evolution { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.evo-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto 3rem;
}
@media (max-width: 768px) {
    .evo-grid { grid-template-columns: 1fr; gap: 1rem; }
    .evo-arrow { transform: rotate(90deg); }
}
.evo-col {
    padding: 2rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: rgba(18, 18, 30, .85);
}
.evo-then { border-color: rgba(255, 255, 255, .08); }
.evo-now { border-color: rgba(0, 255, 178, .3); box-shadow: 0 0 40px rgba(0,255,178,.08); }
.evo-label {
    font-family: var(--font-m);
    font-size: .75rem;
    color: var(--text-3);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.evo-now .evo-label { color: var(--neon); }
.evo-items { display: flex; flex-wrap: wrap; gap: 8px; }
.evo-chip {
    padding: 6px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: .8125rem;
    color: var(--text-2);
}
.evo-now .evo-chip {
    background: rgba(0,255,178,.08);
    border-color: rgba(0,255,178,.25);
    color: var(--text);
}
.evo-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon);
}

/* === BRIDGE === */
.bridge-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.bridge-card {
    padding: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(180deg, rgba(0,255,178,.04), rgba(14,14,24,.95));
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bridge-icon { margin-bottom: 1.5rem; }
.bridge-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
}
.bridge-text {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 1rem;
}
.bridge-card .btn { margin-top: 2rem; }

/* Адаптив */
@media (max-width: 640px) {
    .num-card { padding: 1.5rem 1rem; }
    .geo-card { padding: 1.5rem; }
    .evo-col { padding: 1.5rem; }
    .bridge-card { padding: 2rem 1.25rem; }
}

/* === FIX: отступы секции «Принципы» как у «Технологический стек» === */
.principles-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

/* === Фото Александра === */
.profile-photo-wrap {
    width: 148px;
    height: 148px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad);
    box-shadow: 0 12px 48px rgba(0,255,178,.35);
    animation: avatarGlow 3.5s ease-in-out infinite;
    position: relative;
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 50%;
    border: 3px solid var(--bg);
    display: block;
    filter: saturate(1.05) contrast(1.05);
}
@media (max-width: 480px) {
    .profile-photo-wrap { width: 120px; height: 120px; }
}

/* === Фото Александра === */
.profile-photo-wrap {
    width: 148px;
    height: 148px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad);
    box-shadow: 0 12px 48px rgba(0,255,178,.35);
    animation: avatarGlow 3.5s ease-in-out infinite;
    position: relative;
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 50%;
    border: 3px solid var(--bg);
    display: block;
    filter: saturate(1.05) contrast(1.05);
}
@media (max-width: 480px) {
    .profile-photo-wrap { width: 120px; height: 120px; }
}

/* ============ SERVICES PAGE ============ */
.srv-hero { padding: clamp(8rem, 14vh, 11rem) 0 2rem; }

/* Sticky nav */
.srv-nav {
    position: sticky;
    top: 84px;
    z-index: 60;
    padding: .75rem 0;
    background: rgba(5, 5, 9, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-block: 1px solid var(--line);
}
.srv-nav .container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.srv-pill {
    padding: .5rem 1.125rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: .8125rem;
    color: var(--text-2);
    transition: all .3s var(--ease);
    white-space: nowrap;
}
.srv-pill:hover { border-color: var(--line-hi); color: var(--text); }
.srv-pill.active {
    background: var(--grad);
    border-color: transparent;
    color: #001419;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,255,178,.3);
}

/* Service blocks */
.srv-block { padding: clamp(3rem, 6vw, 5rem) 0; scroll-margin-top: 140px; }
.srv-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    position: relative;
    overflow: hidden;
    transition: border-color .4s;
}
.srv-card:hover { border-color: var(--line-hi); }
.srv-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
}
@media (min-width: 1024px) {
    .srv-card { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.srv-num {
    position: absolute;
    top: 1.5rem; right: 2rem;
    font-family: var(--font-d);
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 800;
    color: rgba(255,255,255,.04);
    line-height: 1;
    pointer-events: none;
}
.srv-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-md);
    color: var(--neon);
    margin-bottom: 1.5rem;
}
.srv-title { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 1rem; }
.srv-desc { color: var(--text-2); line-height: 1.7; margin-bottom: 1.75rem; font-size: 1.0625rem; }
.srv-meta { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.srv-meta li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.srv-meta svg { color: var(--neon); flex-shrink: 0; }

.srv-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
}
@media (min-width: 560px) and (max-width: 1023px) { .srv-right { grid-template-columns: 1fr 1fr; } }
.srv-feat {
    display: flex; align-items: center; gap: 10px;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: .9375rem;
    color: var(--text);
    transition: all .3s var(--ease);
}
.srv-feat:hover {
    border-color: var(--border-accent);
    background: rgba(0,255,178,.05);
    transform: translateX(4px);
}
.srv-feat svg { color: var(--neon); flex-shrink: 0; }

/* Process */
.process-section { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.step {
    padding: 1.75rem 1.5rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
    transition: all .4s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.step-num {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad);
    border-radius: 50%;
    font-family: var(--font-d);
    font-weight: 700;
    color: #001419;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,255,178,.3);
}
.step h3 { font-size: 1.0625rem; margin-bottom: .625rem; }
.step p { font-size: .875rem; color: var(--text-2); line-height: 1.6; }
@media (min-width: 768px) {
    .step::after {
        content: "";
        position: absolute;
        top: 3.25rem; right: -1rem;
        width: 1rem; height: 2px;
        background: linear-gradient(90deg, rgba(0,255,178,.4), transparent);
    }
    .step:last-child::after { display: none; }
}

/* FAQ */
.faq-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .faq-list {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}
.faq-item {
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all .3s var(--ease);
    height: fit-content;
}
.faq-item:hover {
    border-color: var(--line-hi);
}
.faq-item.open { border-color: var(--border-accent); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.375rem 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-b);
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-chevron { transition: transform .4s var(--ease); color: var(--neon); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease);
}
.faq-a p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-2);
    line-height: 1.7;
    font-size: .9375rem;
}
.faq-bridge {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: rgba(0,255,178,.04);
    border: 1px solid rgba(0,255,178,.2);
    border-radius: var(--r-lg);
}
.faq-bridge p { color: var(--text-2); font-size: 1.0625rem; }

/* RTL */
html[dir="rtl"] .faq-q { text-align: right; }
html[dir="rtl"] .srv-feat:hover { transform: translateX(-4px); }
html[dir="rtl"] .step::after { right: auto; left: -1rem; background: linear-gradient(-90deg, rgba(0,255,178,.4), transparent); }

@media (max-width: 640px) {
    .srv-card { padding: 1.75rem 1.25rem; }
    .srv-num { top: 1rem; right: 1.25rem; font-size: 3.5rem; }
    .srv-nav { top: 70px; }
    .srv-pill { font-size: .75rem; padding: .4375rem .875rem; }
}

/* === Service Detail === */
.srv-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: .9375rem;
    margin-bottom: 2rem;
    transition: color .3s;
}
.srv-back:hover { color: var(--neon); }
.srv-detail-header { text-align: center; max-width: 720px; margin: 0 auto; }
.srv-icon-lg {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-lg);
    color: var(--neon);
}
.srv-detail-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
}
.srv-detail-desc {
    font-size: 1.125rem;
    color: var(--text-2);
    line-height: 1.65;
}

.srv-detail-body { padding: clamp(3rem, 6vw, 5rem) 0; }
.srv-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .srv-detail-grid { grid-template-columns: 1fr 360px; gap: 3rem; }
}
.srv-detail-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
}
.srv-detail-card h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.srv-detail-text { color: var(--text-2); line-height: 1.7; font-size: 1rem; }
.srv-feats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 640px) { .srv-feats-grid { grid-template-columns: 1fr 1fr; } }
.srv-detail-cta {
    padding: 2rem;
    background: rgba(0,255,178,.05);
    border: 1px solid rgba(0,255,178,.2);
    border-radius: var(--r-lg);
    text-align: center;
    position: sticky;
    top: 140px;
}
.srv-detail-cta h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.srv-detail-cta p { color: var(--text-2); margin-bottom: 1.5rem; }

/* === Форма на странице услуг === */
.srv-form-wrap {
    margin-top: 3rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(18, 18, 30, .85);
    border: 1px solid rgba(0,255,178,.2);
    border-radius: var(--r-xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.srv-form-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: .75rem;
    text-align: center;
}
.srv-form-sub {
    color: var(--text-2);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}
.srv-form { display: flex; flex-direction: column; gap: 1rem; }
.srv-form .form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .srv-form .form-row { grid-template-columns: 1fr 1fr; } }

/* === Адаптивность услуг === */

/* Планшет */
@media (max-width: 1023px) {
    .srv-card { padding: clamp(1.75rem, 3vw, 2.5rem); }
    .srv-num { font-size: 4rem; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid .step:last-child { grid-column: span 2; }
}

/* Мобильные */
@media (max-width: 640px) {
    .srv-hero { padding-top: 7.5rem; }
    .srv-card { padding: 1.5rem 1.25rem; }
    .srv-num { top: .75rem; right: 1rem; font-size: 3rem; }
    .srv-icon { width: 52px; height: 52px; margin-bottom: 1.25rem; }
    .srv-title { font-size: 1.5rem; }
    .srv-desc { font-size: 1rem; margin-bottom: 1.5rem; }
    .srv-meta { margin-bottom: 1.5rem; }
    .srv-right { gap: 10px; }
    .srv-feat { padding: .875rem 1rem; font-size: .875rem; }
    
    .process-grid { grid-template-columns: 1fr; }
    .process-grid .step:last-child { grid-column: auto; }
    .step { padding: 1.5rem 1.25rem; }
    .step::after { display: none; }
    
    .faq-q { padding: 1.125rem 1.25rem; font-size: 1rem; }
    .faq-a p { padding: 0 1.25rem 1.25rem; font-size: .875rem; }
    
    .srv-form-wrap { padding: 1.5rem 1.25rem; }
    .srv-form-title { font-size: 1.375rem; }
    .srv-form-sub { font-size: .9375rem; }
}

/* Узкие мобильные */
@media (max-width: 380px) {
    .srv-card { padding: 1.25rem 1rem; }
    .srv-num { font-size: 2.5rem; }
    .srv-feat { padding: .75rem .875rem; font-size: .8125rem; }
    .step { padding: 1.25rem 1rem; }
    .srv-form-wrap { padding: 1.25rem 1rem; }
}

/* RTL */
html[dir="rtl"] .srv-num { right: auto; left: 2rem; }
@media (max-width: 640px) { html[dir="rtl"] .srv-num { right: auto; left: 1rem; } }

/* === Подменю в навигации === */
.nav-has-submenu { position: relative; }
.nav-has-submenu > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-has-submenu > a svg { transition: transform .3s; }
.nav-has-submenu:hover > a svg { transform: rotate(180deg); }
.nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 280px;
    padding: 8px;
    background: rgba(18, 18, 30, .98);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s var(--ease);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    z-index: 100;
}
.nav-has-submenu:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-submenu-item {
    display: block;
    padding: .875rem 1rem;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: .9375rem;
    transition: all .2s;
}
.nav-submenu-item:hover { background: rgba(0,255,178,.08); color: var(--neon); }
.nav-submenu-title { display: block; }
@media (max-width: 1023px) { .nav-submenu { display: none; } }

/* === Service Detail === */
.srv-detail-hero { padding: 3rem 0 4rem; }
.srv-detail-head { max-width: 800px; }
.srv-detail-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: .75rem 0 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.srv-detail-sub {
    font-size: 1.25rem;
    color: var(--text-2);
    line-height: 1.6;
}

.srv-detail-desc { padding: 2rem 0 4rem; }
.srv-detail-card {
    padding: 3rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
}
.srv-detail-card h2 { margin-bottom: 1.5rem; }
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); }
.prose p { margin-bottom: 1rem; }
.prose h3, .prose h4 { color: var(--text); margin: 1.5rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--neon); text-decoration: underline; }

.srv-detail-features, .srv-detail-cases, .srv-detail-related {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.srv-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .srv-features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .srv-features-grid { grid-template-columns: repeat(3, 1fr); } }
.srv-feat-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.srv-feat-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.srv-feat-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-md);
    color: var(--neon);
    margin-bottom: 1.25rem;
}
.srv-feat-card h3 { font-size: 1.125rem; margin-bottom: .625rem; }
.srv-feat-card p { font-size: .9375rem; color: var(--text-2); line-height: 1.6; }

.srv-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .srv-related-grid { grid-template-columns: repeat(2, 1fr); } }
.srv-related-card {
    display: block;
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
    color: var(--text);
}
.srv-related-card:hover { transform: translateY(-4px); border-color: var(--line-hi); color: var(--text); }
.srv-related-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.srv-related-card p { color: var(--text-2); margin-bottom: 1rem; font-size: .9375rem; }
.srv-related-more { color: var(--neon); font-weight: 600; font-size: .875rem; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: var(--text-3);
    margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--text-2); transition: color .2s; }
.breadcrumbs a:hover { color: var(--neon); }
.breadcrumbs .sep { color: var(--text-3); }

@media (max-width: 640px) {
    .srv-detail-card { padding: 1.75rem 1.25rem; }
}

/* === SERVICE DETAIL: 16 BLOCKS === */

/* Hero */
.srv-hero { padding: 3rem 0 5rem; }
.srv-hero-inner { max-width: 900px; }
.srv-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: .75rem 0 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.srv-hero-sub {
    font-size: 1.25rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.srv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}
.srv-chip {
    padding: 8px 16px;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-full);
    font-size: .875rem;
    color: var(--neon);
    font-weight: 500;
}
.srv-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Sections */
.srv-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.srv-section:nth-child(even) { background: var(--bg-2); }

/* Для кого */
.for-whom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .for-whom-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .for-whom-grid { grid-template-columns: repeat(3, 1fr); } }
.for-whom-card {
    display: flex;
    gap: 12px;
    padding: 1.5rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.for-whom-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.for-whom-card svg { color: var(--neon); flex-shrink: 0; margin-top: 2px; }
.for-whom-card p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

/* Проблема */
.srv-pain { background: linear-gradient(135deg, rgba(255,107,107,.05), rgba(0,255,178,.03)); }
.pain-card {
    padding: clamp(2rem, 5vw, 4rem);
    background: rgba(18, 18, 30, .9);
    border: 1px solid rgba(255,107,107,.2);
    border-radius: var(--r-xl);
    text-align: center;
}
.pain-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: #00FFB2;
}
.pain-text {
    font-size: 1.125rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Результат */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .results-grid { grid-template-columns: 1fr 1fr; } }
.result-card {
    display: flex;
    gap: 16px;
    padding: 1.75rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.result-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.result-num {
    font-family: var(--font-d);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}
.result-card p { color: var(--text-2); font-size: 1rem; line-height: 1.6; }

/* Фичи */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.feat-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.feat-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,178,.08);
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-md);
    color: var(--neon);
    margin-bottom: 1.25rem;
}
.feat-card h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.feat-card p { font-size: .9375rem; color: var(--text-2); line-height: 1.6; }

/* Подход */
.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .approach-grid { grid-template-columns: repeat(3, 1fr); } }
.approach-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    position: relative;
    transition: all .4s var(--ease);
}
.approach-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.approach-num {
    font-family: var(--font-d);
    font-size: 3rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}
.approach-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.approach-card p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

/* Процесс */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    position: relative;
}
.process-step::before {
    content: "";
    position: absolute;
    left: 39px;
    top: 60px;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--neon), rgba(0,255,178,.1));
}
.process-step:last-child::before { display: none; }
.step-marker { position: relative; z-index: 1; }
.step-num {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad);
    border-radius: 50%;
    font-family: var(--font-d);
    font-size: 1.5rem;
    font-weight: 700;
    color: #001419;
    box-shadow: 0 8px 32px rgba(0,255,178,.3);
}
.step-content {
    padding: 1.75rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.step-content h3 { font-size: 1.25rem; margin-bottom: .625rem; }
.step-content p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

@media (max-width: 640px) {
    .process-step { grid-template-columns: 60px 1fr; gap: 1rem; }
    .step-num { width: 60px; height: 60px; font-size: 1.25rem; }
    .process-step::before { left: 29px; top: 50px; }
}

/* Сроки */
.timeline-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 640px) { .timeline-cards { grid-template-columns: repeat(3, 1fr); } }
.timeline-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
}
.tl-label {
    font-family: var(--font-m);
    font-size: .8125rem;
    color: var(--text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .625rem;
}
.tl-value {
    font-family: var(--font-d);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Пакеты */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .packages-grid { grid-template-columns: repeat(3, 1fr); } }
.package-card {
    padding: 2.5rem 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    transition: all .4s var(--ease);
}
.package-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.pkg-name {
    font-size: 1.75rem;
    margin-bottom: .75rem;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pkg-for {
    color: var(--text-2);
    font-size: .9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.pkg-items {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}
.pkg-items li {
    display: flex;
    gap: 10px;
    padding: .625rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    font-size: .9375rem;
}
.pkg-items li:last-child { border-bottom: none; }
.pkg-items svg { color: var(--neon); flex-shrink: 0; margin-top: 3px; }

/* Технологии */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}
.tech-chip {
    padding: 10px 20px;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-size: .9375rem;
    color: var(--text);
    transition: all .3s var(--ease);
}
.tech-chip:hover {
    border-color: var(--border-accent);
    background: rgba(0,255,178,.08);
    color: var(--neon);
}

/* Почему я */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-card {
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.why-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.why-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.why-card p { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

/* Гарантии */
.guarantees-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 768px) { .guarantees-list { grid-template-columns: 1fr 1fr; } }
.guarantee-item {
    display: flex;
    gap: 12px;
    padding: 1.25rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: all .3s var(--ease);
}
.guarantee-item:hover { border-color: var(--border-accent); }
.guarantee-item svg { color: var(--neon); flex-shrink: 0; margin-top: 2px; }
.guarantee-item span { color: var(--text-2); font-size: .9375rem; line-height: 1.6; }

/* FAQ */
.srv-faq { padding: clamp(4rem, 8vw, 7rem) 0; }

/* Связанные услуги */
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
    display: block;
    padding: 2rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
    color: var(--text);
}
.related-card:hover { transform: translateY(-4px); border-color: var(--line-hi); color: var(--text); }
.related-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.related-card p { color: var(--text-2); margin-bottom: 1rem; font-size: .9375rem; }
.related-more { color: var(--neon); font-weight: 600; font-size: .875rem; }

/* === Timeline Banner v2 (премиальный) === */
.timeline-banner {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(0,255,178,.06), rgba(0,184,255,.04)), rgba(18, 18, 30, .92);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-xl);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.tb-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
    transition: background .3s var(--ease);
}
.tb-item:hover { background: rgba(0,255,178,.04); }
.tb-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line-hi), transparent);
}
.tb-icon {
    width: 56px; height: 56px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad);
    border-radius: 50%;
    color: #001419;
    box-shadow: 0 8px 24px rgba(0,255,178,.3);
}
.tb-label {
    font-family: var(--font-m);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: .375rem;
}
.tb-value {
    font-family: var(--font-d);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
@media (max-width: 768px) {
    .timeline-banner { flex-direction: column; }
    .tb-divider {
        width: auto; height: 1px;
        background: linear-gradient(90deg, transparent, var(--line-hi), transparent);
    }
    .tb-item { padding: 1.75rem 1.5rem; }
}

/* === SIMPLE WORDS (На пальцах) === */
.simple-words-section { padding: 0 0 3rem; }
.simple-words-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,255,178,.08), rgba(0,184,255,.05));
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-xl);
}
.sw-icon { font-size: 2.5rem; line-height: 1; flex-shrink: 0; }
.sw-label {
    font-family: var(--font-m);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: .5rem;
}
.sw-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}
@media (max-width: 640px) {
    .simple-words-card { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .sw-text { font-size: 1.0625rem; }
}

/* === GLOSSARY (глоссарий) === */
.glossary-section { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.glossary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .glossary-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .glossary-grid { grid-template-columns: repeat(3, 1fr); } }
.glossary-card {
    padding: 1.75rem;
    background: rgba(18, 18, 30, .85);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .4s var(--ease);
}
.glossary-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.gl-term {
    display: inline-block;
    padding: 6px 14px;
    background: var(--grad);
    border-radius: var(--r-full);
    font-family: var(--font-d);
    font-size: .9375rem;
    font-weight: 700;
    color: #001419;
    margin-bottom: 1rem;
}
.glossary-card p { color: var(--text-2); font-size: .9375rem; line-height: 1.65; }

/* === Кликабельные карточки услуг === */
.srv-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .4s var(--ease);
}
.srv-card-link:hover {
    transform: translateY(-8px);
}
.srv-card-link:hover .srv-card {
    border-color: var(--line-hi);
    box-shadow: 0 20px 60px rgba(0,255,178,.15);
}

/* === Ссылки внутри карточек услуг === */
.srv-title-link {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, transparent 60%, rgba(0,255,178,.25) 60%);
    transition: all .3s var(--ease);
}
.srv-title-link:hover {
    background: linear-gradient(180deg, transparent 60%, rgba(0,255,178,.5) 60%);
    color: var(--neon);
}
.srv-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    color: var(--neon);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    transition: all .3s var(--ease);
}
.srv-more:hover {
    gap: 12px;
    color: var(--text);
}

/* === Плавная прокрутка к якорям === */
html {
    scroll-behavior: smooth;
}
/* Компенсация фиксированного header */
[id] {
    scroll-margin-top: 100px;
}

/* === Плавная прокрутка к якорям === */
html {
    scroll-behavior: smooth;
}
/* Компенсация фиксированного header */
[id] {
    scroll-margin-top: 100px;
}

/* === Финальная форма на странице услуги === */
.srv-final-cta {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.srv-final-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.srv-final-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .srv-final-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 640px) {
    .srv-final-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .srv-final-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}
}

.srv-final-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.srv-final-form label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
}

.srv-final-form .form-input,
.srv-final-form .form-textarea {
    padding: 0.75rem 0.875rem;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.srv-final-form .form-input:focus,
.srv-final-form .form-textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.1);
}

.srv-final-form .form-textarea {
    padding: 0.75rem 0.875rem;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.srv-final-form .form-footer {
    margin-top: 0.25rem;
}

.srv-final-form .form-privacy {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-3);
    text-align: center;
}

.srv-final-form .form-privacy a {
    color: var(--neon);
    text-decoration: underline;
}

.srv-final-form .form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.srv-final-form .success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.srv-final-form .form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.srv-final-form .form-success p {
    color: var(--text-2);
}

/* === Финальная форма на странице услуги === */
.srv-final-cta {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.srv-final-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.srv-final-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .srv-final-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

@media (min-width: 640px) {
    .srv-final-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .srv-final-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}
}

.srv-final-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.srv-final-form label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
}

.srv-final-form .form-input,
.srv-final-form .form-textarea {
    padding: 0.75rem 0.875rem;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.srv-final-form .form-input:focus,
.srv-final-form .form-textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, 0.1);
}

.srv-final-form .form-textarea {
    padding: 0.75rem 0.875rem;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.srv-final-form .form-footer {
    margin-top: 0.25rem;
}

.srv-final-form .form-privacy {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-3);
    text-align: center;
}

.srv-final-form .form-privacy a {
    color: var(--neon);
    text-decoration: underline;
}

.srv-final-form .form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.srv-final-form .success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.srv-final-form .form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.srv-final-form .form-success p {
    color: var(--text-2);
}

/* === FINAL FORM WIDTH (как у FAQ) === */
.srv-final-cta .cta-card {
    max-width: 900px;
    margin: 0 auto;
}

/* === PROFESSIONAL HERO BACKGROUND === */
.srv-hero, .hero {
    position: relative;
    overflow: hidden;
}
.srv-hero::before, .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,255,178,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,178,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
    pointer-events: none;
}
.srv-hero::after, .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(0,255,178,.08), transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0,184,255,.06), transparent 70%);
    pointer-events: none;
}
.srv-hero > .container, .hero > .container {
    position: relative;
    z-index: 1;
}

/* === CLEAN FINAL CTA V2: без луча === */
.srv-final-cta .cta-card,
.final-cta .cta-card {
    background: rgba(18, 18, 30, .92) !important;
}
.srv-final-cta .cta-card::before,
.srv-final-cta .cta-card::after,
.final-cta .cta-card::before,
.final-cta .cta-card::after {
    content: none !important;
    background: none !important;
    animation: none !important;
}
.srv-final-cta *, 
.srv-final-cta *::before, 
.srv-final-cta *::after {
    animation: none !important;
}

/* === PROFESSIONAL FORM V2 === */
.srv-final-cta .cta-title,
.srv-final-cta .cta-subtitle {
    text-align: center;
}

.srv-final-form {
    text-align: left;
    margin-top: 2rem;
}

.srv-final-form .form-group {
    text-align: left;
}

.srv-final-form label {
    display: block;
    text-align: left;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-2);
    margin-bottom: .5rem;
}

.srv-final-form .form-input {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    font-size: .9375rem;
    background: rgba(10, 10, 18, .6);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
}

.srv-final-form .form-textarea {
    width: 100%;
    min-height: 120px;
    padding: .875rem 1rem;
    font-size: .9375rem;
    background: rgba(10, 10, 18, .6);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    resize: vertical;
}

.srv-final-form .form-input::placeholder,
.srv-final-form .form-textarea::placeholder {
    color: var(--text-3);
}

.srv-final-form .form-input:focus,
.srv-final-form .form-textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 178, .12);
}

.srv-final-form .btn {
    height: 54px;
    font-size: 1rem;
    border-radius: 12px;
}

.srv-final-form .form-privacy {
    text-align: center;
}

/* === FORM DESIGN V3 (как на скрине) === */
.srv-final-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .srv-final-form .form-row { grid-template-columns: 1fr 1fr; }
}

.srv-final-form .form-input,
.srv-final-form .form-textarea {
    width: 100%;
    height: 58px;
    padding: 0 1.375rem;
    font-size: 1rem;
    color: var(--text);
    background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    transition: all .3s var(--ease);
}
.srv-final-form .form-textarea {
    height: auto;
    min-height: 140px;
    padding: 1.125rem 1.375rem;
    resize: vertical;
    margin-bottom: 1.25rem;
}
.srv-final-form .form-input::placeholder,
.srv-final-form .form-textarea::placeholder {
    color: var(--text-3);
}
.srv-final-form .form-input:focus,
.srv-final-form .form-textarea:focus {
    outline: none;
    border-color: rgba(0,255,178,.5);
    box-shadow: 0 0 0 3px rgba(0,255,178,.1);
    background: rgba(255,255,255,.04);
}

/* Select со стрелкой как на скрине */
.srv-final-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.375rem center;
    padding-right: 3rem;
    color: var(--text);
    cursor: pointer;
}
.srv-final-form .form-select:invalid,
.srv-final-form .form-select option[value=""] {
    color: var(--text-3);
}
.srv-final-form .form-select option {
    background: #12121e;
    color: var(--text);
}

/* Кнопка-градиент как на скрине */
.srv-final-form .btn-full {
    height: 64px;
    border-radius: 16px;
    font-size: 1.0625rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00ffb2 0%, #00b8ff 50%, #8b7cf6 100%);
    color: #001419;
    border: none;
    box-shadow: 0 12px 40px rgba(0,255,178,.25);
}
.srv-final-form .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px rgba(0,255,178,.35);
}

/* === FORM COMPACT V4 (как на скрине "Как должно быть") === */
.srv-final-cta .srv-final-form .form-row {
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.srv-final-cta .srv-final-form input.form-input,
.srv-final-cta .srv-final-form select.form-input {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 1.375rem !important;
    font-size: 1rem !important;
    line-height: 58px !important;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important;
}

.srv-final-cta .srv-final-form textarea.form-textarea {
    height: auto !important;
    min-height: 130px !important;
    max-height: 300px !important;
    padding: 1.125rem 1.375rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 16px !important;
    margin-bottom: 1.25rem !important;
}

.srv-final-cta .srv-final-form .btn-full {
    height: 60px !important;
    border-radius: 16px !important;
    margin-top: .25rem;
}

.srv-final-cta .srv-final-form .form-privacy {
    margin-top: 1rem !important;
}

/* Убираем лишние отступы у form-group если остались */
.srv-final-cta .srv-final-form .form-group {
    margin: 0 !important;
    gap: 0 !important;
}


/* ═══ FIX: выравнивание пунктов меню по вертикали (desktop) ═══ */
@media (min-width: 992px) {
    header nav ul,
    header .nav,
    header .nav-list,
    header .main-nav {
        align-items: center !important;
    }
    header nav li,
    header .nav-item,
    header .has-dropdown,
    header .nav-dropdown {
        display: flex !important;
        align-items: center !important;
    }
    header .nav-link,
    header .dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1.25 !important;
        height: 40px;
    }
    header .nav-link svg,
    header .dropdown-toggle svg,
    header .nav-link .caret {
        align-self: center;
        margin-top: 0 !important;
    }
}
/* ═══ END FIX ═══ */


/* ═══ Кнопка "Наверх" ═══ */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 178, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 178, 0.15), rgba(0, 180, 216, 0.15));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #00FFB2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 255, 178, 0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: linear-gradient(135deg, rgba(0, 255, 178, 0.3), rgba(0, 180, 216, 0.3));
    border-color: rgba(0, 255, 178, 0.6);
    box-shadow: 0 12px 40px rgba(0, 255, 178, 0.3);
    transform: translateY(-4px) scale(1.05);
}

.scroll-top:active {
    transform: translateY(-1px) scale(0.98);
}

/* На мобильных — меньше и ближе к краю */
@media (max-width: 640px) {
    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

/* RTL для арабского — зеркалим позицию */
[dir="rtl"] .scroll-top,
html[lang="ar"] .scroll-top {
    right: auto;
    left: 24px;
}
@media (max-width: 640px) {
    [dir="rtl"] .scroll-top,
    html[lang="ar"] .scroll-top {
        left: 16px;
    }
}
/* ═══ END Кнопка "Наверх" ═══ */


/* ═══ Цена пакета ═══ */
.package-price {
    font-family: var(--font-d);
    font-size: 1.375rem;
    font-weight: 700;
    color: #00FFB2;
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.01em;
}

/* ═══ Вехи 30/60/90 ═══ */
.srv-milestones { background: linear-gradient(180deg, rgba(0,255,178,.03), transparent); }
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .milestones-grid { grid-template-columns: 1fr; } }
.milestone-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: rgba(18, 18, 30, .9);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all 0.4s var(--ease);
}
.milestone-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,178,.4);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.milestone-days {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0,255,178,.15), rgba(0,184,255,.15));
    border: 1px solid rgba(0,255,178,.3);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #00FFB2;
    margin-bottom: 1rem;
}
.milestone-result {
    font-family: var(--font-d);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.625rem;
}
.milestone-detail {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.6;
}
/* ═══ END ═══ */


/* ═══ Формат пакета (вместо цены) ═══ */
.package-format {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0,255,178,.12), rgba(0,184,255,.12));
    border: 1px solid rgba(0,255,178,.25);
    border-radius: var(--r-full);
    font-family: var(--font-m);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #00FFB2;
    margin: 0.75rem 0 1rem;
    letter-spacing: 0.01em;
}

/* ═══ Секция бюджета ═══ */
.srv-budget { background: linear-gradient(180deg, rgba(0,255,178,.03), transparent); }
.budget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 700px) { .budget-grid { grid-template-columns: 1fr; } }
.budget-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(18, 18, 30, .9);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all 0.3s var(--ease);
}
.budget-point:hover {
    border-color: rgba(0,255,178,.3);
    transform: translateY(-2px);
}
.budget-point svg {
    flex-shrink: 0;
    color: #00FFB2;
    margin-top: 2px;
}
.budget-point span {
    font-size: 1rem;
    color: var(--text-1);
    line-height: 1.6;
}
/* ═══ END ═══ */
