/* ============================================================
   CodingDEV.RU — основные стили
   ============================================================ */

/* ============ СВЕТЛАЯ ТЕМА ============ */
:root, [data-theme="light"]{
    --bg: #F7F8FA;
    --bg-2: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F1F3F7;
    --border: #E4E7EC;
    --border-2: #D0D5DD;
    --text: #0F172A;
    --text-2: #344054;
    --muted: #667085;
    --muted-2: #98A2B3;

    --accent: #1E40AF;
    --accent-2: #3B82F6;
    --green: #10B981;
    --green-soft: #D1FAE5;
    --amber: #F59E0B;
    --red: #EF4444;
    --purple: #8B5CF6;

    --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
    --shadow-md: 0 4px 8px -2px rgba(16,24,40,0.08), 0 2px 4px -2px rgba(16,24,40,0.05);
    --shadow-lg: 0 12px 16px -4px rgba(16,24,40,0.08), 0 4px 6px -2px rgba(16,24,40,0.03);
    --header-bg: rgba(255,255,255,0.85);
    --header-bg-scrolled: rgba(255,255,255,0.95);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

/* ============ ТЁМНАЯ ТЕМА ============ */
[data-theme="dark"]{
    --bg: #0B0D12;
    --bg-2: #101319;
    --surface: #161A22;
    --surface-2: #1F232C;
    --border: #262B36;
    --border-2: #363D4A;
    --text: #F1F3F7;
    --text-2: #C7CCD6;
    --muted: #8A93A2;
    --muted-2: #5E6675;

    --accent: #60A5FA;
    --accent-2: #60A5FA;
    --green: #34D399;
    --green-soft: rgba(52,211,153,0.15);
    --amber: #FBBF24;
    --red: #F87171;
    --purple: #A78BFA;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px -2px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 16px -4px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.4);
    --header-bg: rgba(11,13,18,0.85);
    --header-bg-scrolled: rgba(11,13,18,0.95);
}

/* ============ БАЗА ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html{
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body{
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 15px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition:
            background-color 0.4s ease,
            border-color 0.4s ease,
            color 0.3s ease,
            fill 0.3s ease !important;
}

img, svg, video, canvas{ max-width: 100%; height: auto; }

.cta-email,
.footer-col a,
.footer-req,
.eco-card__domain,
.about-list .val,
.company-card__list .val{
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce){
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .marquee { animation: none !important; }
    .node, .link, .link-dashed,
    .scheme-node, .scheme-link{
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
    .diagram-packets, .scheme-packet{ display: none !important; }
    .hero-bg-pipeline svg *{ animation: none !important; }
    .hero-bg-pipeline{ display: none !important; }
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ============ LOGO SVG ============ */
.logo{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.logo:hover{ transform: translateY(-1px) }
.logo-svg{
    width: auto;
    height: 34px;
    display: block;
    overflow: visible;
}

/* ============ HEADER ============ */
header{
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    padding-top: env(safe-area-inset-top);
}
header.scrolled{
    background: var(--header-bg-scrolled);
    box-shadow: var(--shadow-sm);
}
nav{
    display: flex; align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.nav-links{
    display: flex; gap: 4px; list-style: none;
}
.nav-links a{
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus-visible{
    color: var(--text);
    background: var(--surface-2);
    outline: none;
}

/* ============ ПОРТАЛЫ ============ */
.nav-portals{
    display: flex;
    gap: 6px;
    padding-left: 12px;
    margin-left: 8px;
    border-left: 1px solid var(--border);
}
.nav-portal{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-portal:hover,
.nav-portal:focus-visible{
    background: var(--surface-2);
    color: var(--text);
    outline: none;
}
.nav-portal__dot{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.nav-controls{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============ ГАМБУРГЕР ============ */
.nav-burger{
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.nav-burger:hover{ background: var(--surface) }
.nav-burger:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-burger span{
    position: relative;
    display: block;
    width: 18px; height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: background 0.2s;
}
.nav-burger span::before,
.nav-burger span::after{
    content: '';
    position: absolute;
    left: 0;
    width: 18px; height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: transform 0.25s, top 0.25s, opacity 0.2s;
}
.nav-burger span::before{ top: -6px }
.nav-burger span::after{ top: 6px }
body.nav-open .nav-burger span{ background: transparent }
body.nav-open .nav-burger span::before{ top: 0; transform: rotate(45deg) }
body.nav-open .nav-burger span::after{ top: 0; transform: rotate(-45deg) }

/* ============ МОБИЛЬНОЕ МЕНЮ ============ */
.mobile-nav{
    position: fixed;
    inset: calc(64px + env(safe-area-inset-top)) 0 0 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 99;
    padding: 20px 24px calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
body.nav-open .mobile-nav{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mobile-nav__list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}
.mobile-nav__list a{
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav__list a:hover,
.mobile-nav__list a:active{ background: var(--surface-2); color: var(--text) }
.mobile-nav__portals{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}
.mobile-nav__portal{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.mobile-nav__portal .nav-portal__dot{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}
.mobile-nav__cta{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
body.nav-open{ overflow: hidden }

/* ============ ПЕРЕКЛЮЧАТЕЛИ ============ */
.lang-switch{
    display: inline-flex;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2px;
}
.lang-switch button{
    padding: 6px 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}
.lang-switch button:hover{ color: var(--text) }
.lang-switch button:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 1px; }
.lang-switch button.active{
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.theme-toggle{
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.theme-toggle:hover{ border-color: var(--border-2); background: var(--surface); }
.theme-toggle:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 2px; }
.theme-toggle svg{
    width: 18px; height: 18px;
    color: var(--text-2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    position: absolute;
}
.theme-toggle .icon-sun{ opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon-moon{ opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon-sun{ opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .icon-moon{ opacity: 1; transform: rotate(0) scale(1); color: var(--amber); }

.status-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--green-soft);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.2s;
}
.status-badge:hover{ transform: translateY(-1px) }
[data-theme="light"] .status-badge{ color: #047857 }
.status-badge .dot{
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse{
    0%,100%{ box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
    50%{ box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}

.btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    letter-spacing: -0.01em;
}
.btn:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn-primary{
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover{
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-ghost{
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover{ border-color: var(--border-2); background: var(--surface-2); }
.btn .arrow{ transition: transform 0.2s }
.btn:hover .arrow{ transform: translateX(2px) }

/* ============ HERO ============ */
.hero{
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.hero-bg-pipeline{
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
    transition: opacity 0.6s ease;
}
[data-theme="dark"] .hero-bg-pipeline{ opacity: 0.28 }
@media (max-width: 1100px){
    .hero-bg-pipeline{ opacity: 0.22 }
    [data-theme="dark"] .hero-bg-pipeline{ opacity: 0.15 }
}
@media (max-width: 900px){
    .hero-bg-pipeline{ display: none }
}

.hero-bg-pipeline svg{
    width: 100%;
    height: 100%;
    display: block;
    color: var(--text);
    filter: blur(0.2px);
}

.hero-bg-pipeline::after{
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 55% 60% at 50% 45%, transparent 25%, var(--bg-2) 95%);
    pointer-events: none;
}
[data-theme="dark"] .hero-bg-pipeline::after{
    background:
            radial-gradient(ellipse 55% 60% at 50% 45%, transparent 15%, var(--bg-2) 95%);
}

.hero-grid{
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-left{ padding-top: 20px }

.hero-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-badge .dot{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

.hero h1{
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}
.hero h1 .accent{
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85em;
}
.hero-desc{
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-desc strong{ color: var(--text); font-weight: 600; }
.hero-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-notice{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--green);
    line-height: 1.5;
    max-width: 520px;
}
[data-theme="light"] .hero-notice{ color: #047857 }
.hero-notice::before{
    content: '✓';
    flex-shrink: 0;
    font-weight: 700;
}

/* ============ COMPANY CARD ============ */
.company-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.company-card::before{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-2), var(--green));
}
.company-card__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.company-card__brand{
    display: flex;
    align-items: center;
    gap: 12px;
}
.company-card__mark{
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.company-card__name{
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    line-height: 1.2;
}
.company-card__sub{
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}
.company-card__status{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.company-card__status::before{
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    animation: pulse 2s infinite;
}

.company-card__list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.company-card__list li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    transition: all 0.2s;
}
.company-card__list li:hover{
    border-color: var(--accent-2);
    transform: translateX(3px);
}
.company-card__list .lbl{
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.company-card__list .val{
    color: var(--text);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-align: right;
}
.company-card__list .val.green{ color: var(--green) }

/* ============ MARQUEE ============ */
.marquee-wrap{
    padding: 20px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.marquee-wrap::before,
.marquee-wrap::after{
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrap::before{ left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee-wrap::after{ right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee{
    display: flex;
    gap: 32px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}
.marquee-item{
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 32px;
    letter-spacing: -0.01em;
}
.marquee-item::after{
    content: '•';
    color: var(--accent-2);
    font-size: 14px;
}
@keyframes scroll{ to{ transform: translateX(-50%) } }

/* ============ SECTION ============ */
section{ padding: 80px 0; position: relative }
.section-head{ margin-bottom: 48px; max-width: 720px }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center }
.section-label{
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-2);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 6px;
}
.section-title{
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text);
}
.section-sub{
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

/* ============ REVEAL ============ */
.reveal{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.in{ opacity: 1; transform: translateY(0) }

/* ============ STATS ============ */
.stats-bar{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}
.stat{
    padding: 24px 20px;
    background: var(--surface);
    transition: background 0.2s;
}
.stat:hover{ background: var(--surface-2) }
.stat-num{
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.stat-label{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============ SERVER CARD ============ */
.server-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.server-info{ display: flex; align-items: center; gap: 16px }
.server-icon{
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.server-name{
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}
.server-sub{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}
.server-metrics{ display: flex; gap: 32px; flex-wrap: wrap }
.server-metric .lbl{
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.server-metric .val{
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.server-metric .val.status{
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.server-metric .val.status::before{
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
}

/* ============ ABOUT ============ */
.arch-wrap{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.arch-visual{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}
.arch-flow{ display: flex; flex-direction: column; gap: 12px }
.arch-node{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text);
    transition: all 0.2s;
}
.arch-node:hover{
    background: var(--surface);
    border-color: var(--accent-2);
    transform: translateX(4px);
}
.arch-node-icon{
    width: 28px; height: 28px;
    background: var(--surface);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.arch-node-label{ flex: 1 }
.arch-node-status{
    font-size: 10px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
}
.arch-node-status::before{
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
}
.arch-arrow{
    text-align: center;
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1;
}

.about-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.about-card h4{
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-card h4::before{
    content: '●';
    color: var(--green);
    font-size: 8px;
}
.about-list{ display: flex; flex-direction: column }
.about-list li{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
    list-style: none;
}
.about-list li:last-child{ border-bottom: none }
.about-list .key{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: -0.01em;
}
.about-list .val{
    color: var(--text);
    font-weight: 500;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.about-list .val.green{ color: var(--green) }
.about-list .val.green::before{
    content: '●';
    margin-right: 6px;
    font-size: 8px;
}

/* ============ PRINCIPLES ============ */
.team-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.team-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
}
.team-card:hover{
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.team-avatar{
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}
.team-card:nth-child(2) .team-avatar{ background: linear-gradient(135deg, var(--purple), #6D28D9) }
.team-card:nth-child(3) .team-avatar{ background: linear-gradient(135deg, var(--green), #047857) }
.team-card:nth-child(4) .team-avatar{ background: linear-gradient(135deg, var(--amber), #B45309) }

.team-name{
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.015em;
}
.team-role{
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--accent-2);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.team-desc{
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

/* ============ SERVICES ============ */
.services-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.service-card:hover{
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.service-icon{
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: var(--surface-2);
}
.service-card.c-blue .service-icon{ background: rgba(59,130,246,0.1) }
.service-card.c-green .service-icon{ background: rgba(16,185,129,0.1) }
.service-card.c-purple .service-icon{ background: rgba(139,92,246,0.1) }
.service-card.c-amber .service-icon{ background: rgba(245,158,11,0.1) }
.service-card.c-red .service-icon{ background: rgba(239,68,68,0.1) }
.service-card.c-cyan .service-icon{ background: rgba(6,182,212,0.1) }

.service-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.service-card h3{
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
}
.service-status{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--green-soft);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}
[data-theme="light"] .service-status{ color: #047857 }
.service-status::before{
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
}
.service-status.new{
    background: rgba(139,92,246,0.1);
    color: var(--purple);
}
.service-status.new::before{ background: var(--purple) }

.service-cat{
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}
.service-desc{
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 16px;
    flex: 1;
}
.service-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
}
.service-tags span{
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-2);
    letter-spacing: -0.01em;
}
.service-foot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.service-price{
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.service-price-label{
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
}

/* ============ ECOSYSTEM ============ */
.ecosystem-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.eco-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.eco-card:hover{
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.eco-card__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.eco-card__mark{
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    flex-shrink: 0;
}
.eco-card:nth-child(2) .eco-card__mark{ background: linear-gradient(135deg, var(--purple), #6D28D9) }
.eco-card:nth-child(3) .eco-card__mark{ background: linear-gradient(135deg, var(--green), #047857) }
.eco-card__domain{
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent-2);
    letter-spacing: -0.01em;
}
.eco-card h3{
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}
.eco-card p{
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 16px;
    flex: 1;
}
.eco-card__list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.eco-card__list li{
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
}
.eco-card__list li::before{
    content: '›';
    color: var(--accent-2);
    font-weight: 700;
}
.eco-card__cta{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-2);
    margin-top: auto;
}
.eco-card__cta .arrow{ transition: transform 0.2s }
.eco-card:hover .eco-card__cta .arrow{ transform: translateX(3px) }

/* ============ AUTOMATION ============ */
.automation{
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.automation-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.auto-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.auto-card::before{
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--accent-2), var(--green));
    opacity: 0;
    transition: opacity 0.25s;
}
.auto-card:hover{
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.auto-card:hover::before{ opacity: 1 }

.auto-icon{
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    background: rgba(59,130,246,0.1);
    color: var(--accent-2);
}
.auto-card:nth-child(2) .auto-icon{ background: rgba(16,185,129,0.1); color: var(--green) }
.auto-card:nth-child(3) .auto-icon{ background: rgba(245,158,11,0.1); color: var(--amber) }
.auto-card:nth-child(4) .auto-icon{ background: rgba(139,92,246,0.1); color: var(--purple) }
.auto-card:nth-child(5) .auto-icon{ background: rgba(239,68,68,0.1); color: var(--red) }
.auto-card:nth-child(6) .auto-icon{ background: rgba(6,182,212,0.1); color: #06B6D4 }

.auto-card h3{
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text);
}
.auto-card p{
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 16px;
    flex: 1;
}
.auto-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}
.auto-tags span{
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-2);
}
.auto-foot{
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
}
.auto-foot .price{ color: var(--text); font-weight: 600 }

/* ============ AUTOMATION SCHEME ============ */
.automation-scheme{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.automation-scheme__head{
    text-align: center;
    margin-bottom: 24px;
}
.automation-scheme__title{
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 6px;
}
.automation-scheme__sub{
    font-size: 13.5px;
    color: var(--muted);
}
.automation-scheme__canvas{
    width: 100%;
    aspect-ratio: 1000 / 380;
}
.automation-scheme__canvas svg{
    width: 100%;
    height: 100%;
    display: block;
    color: var(--text);
}
.scheme-node-wrap{ transition: transform 0.3s ease; }
.scheme-node-wrap:hover{ transform: translateY(-3px); }
.scheme-node-wrap:hover .scheme-node rect:first-of-type{ filter: url(#autoGlow); }
.scheme-node{
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: schemeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.scheme-node-1{ animation-delay: 0.1s }
.scheme-node-2{ animation-delay: 0.3s }
.scheme-node-3{ animation-delay: 0.5s }
.scheme-node-4{ animation-delay: 0.7s }
@keyframes schemeIn{
    from{ opacity: 0; transform: translateY(10px) }
    to{ opacity: 1; transform: translateY(0) }
}
.scheme-link{
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.scheme-link-1{ animation-delay: 0.25s }
.scheme-link-2{ animation-delay: 0.45s }
.scheme-link-3{ animation-delay: 0.65s }
.scheme-packet circle{ transform-box: fill-box; }

/* ============ PROCESS DIAGRAM ============ */
.process-diagram{
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.process-diagram::before{
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 15% 15%, rgba(59,130,246,0.06), transparent 40%),
            radial-gradient(circle at 85% 85%, rgba(139,92,246,0.06), transparent 40%);
    pointer-events: none;
}
.process-diagram__head{
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.process-diagram__label{
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-2);
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 6px;
    margin-bottom: 12px;
}
.process-diagram__title{
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}
.process-diagram__sub{
    font-size: 14px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}
.process-diagram__canvas{
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 640;
    z-index: 1;
}
.process-diagram__canvas svg{
    width: 100%;
    height: 100%;
    display: block;
    color: var(--text);
}
.diagram-grid{ color: var(--border-2); }
.diagram-packets circle{ transform-box: fill-box; }

.node-wrap{ transition: transform 0.3s ease; }
.node-wrap:hover{ transform: translateY(-3px); }
.node-wrap:hover .node rect:first-of-type{ filter: url(#glow); }

.node{
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: nodeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.node-client{ animation-delay: 0.1s }
.node-analysis{ animation-delay: 0.25s }
.node-dev{ animation-delay: 0.45s }
.node-test{ animation-delay: 0.65s }
.node-deploy{ animation-delay: 0.85s }
.node-support{ animation-delay: 1.05s }

@keyframes nodeIn{
    from{ opacity: 0; transform: translateY(12px) }
    to{ opacity: 1; transform: translateY(0) }
}

.link{
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.link-dashed{
    stroke-dasharray: 6 6 !important;
    stroke-dashoffset: 0 !important;
    animation: fadeIn 1s ease 1.2s forwards;
    opacity: 0;
}
#link-1{ animation-delay: 0.2s }
#link-2{ animation-delay: 0.5s }
#link-3{ animation-delay: 0.8s }
#link-4{ animation-delay: 1.1s }
#link-5{ animation-delay: 1.35s }

@keyframes drawLine{ to{ stroke-dashoffset: 0 } }
@keyframes fadeIn{ to{ opacity: 1 } }

.diagram-feedback-label{ color: var(--text); }

.process-diagram__legend{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.legend-item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: -0.01em;
}
.legend-dot{
    width: 10px; height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ============ PORTFOLIO ============ */
.portfolio-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.work{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.work:hover{
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.work-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.work-cat{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.work-status{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--green);
    letter-spacing: 0.03em;
}
.work-status::before{
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
}
.work-status.wip{ color: var(--amber) }
.work-status.wip::before{ background: var(--amber) }
.work h3{
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.3;
}
.work p{
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}
.work-metrics{
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}
.work-metric .num{
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}
.work-metric .num span{ color: var(--accent-2) }
.work-metric .lbl{
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.work-tags{ display: flex; flex-wrap: wrap; gap: 5px }
.work-tags span{
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-2);
}

/* ============ PROCESS ============ */
.process-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.process-step{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
}
.process-step:hover{
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.process-num{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-2);
    margin-bottom: 16px;
    padding: 4px 10px;
    background: rgba(59,130,246,0.08);
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
}
.process-step h4{
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    letter-spacing: -0.015em;
}
.process-step p{
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ============ FAQ ============ */
.faq-list{
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-item{ border-bottom: 1px solid var(--border) }
.faq-item:last-child{ border-bottom: none }
.faq-q{
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s;
    letter-spacing: -0.01em;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.faq-q:hover{ background: var(--surface-2) }
.faq-q:focus-visible{ outline: 2px solid var(--accent-2); outline-offset: -2px; }
.faq-toggle{
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--muted);
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
    font-weight: 300;
    line-height: 1;
}
.faq-item.open .faq-toggle{
    transform: rotate(45deg);
    color: var(--accent-2);
}
.faq-a{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.65;
    padding: 0 24px;
}
.faq-item.open .faq-a{ padding: 0 24px 20px; }

/* ============ CTA ============ */
.cta{
    text-align: center;
    padding: 80px 0;
    position: relative;
}
.cta-card{
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cta-card::before{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--green));
}
.cta h2{
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text);
}
.cta h2 .accent{
    color: var(--accent-2);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85em;
}
.cta-sub{
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}
.cta-email{
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    padding: 14px 28px;
    background: var(--text);
    color: var(--bg);
    border-radius: 10px;
    transition: all 0.25s;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    text-decoration: none;
}
.cta-email:hover{
    background: var(--accent-2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.cta-channels{
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.channel{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
    cursor: pointer;
}
.channel:hover,
.channel:focus-visible{
    background: var(--surface);
    border-color: var(--accent-2);
    color: var(--text);
    transform: translateY(-1px);
    outline: none;
}
.channel.phone-protected .phone-text{
    font-family: var(--font-mono);
    font-size: 12.5px;
}

/* ============ FOOTER ============ */
footer{
    padding: 48px 0 32px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 80px;
}
.footer-grid{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand .logo{ margin-bottom: 16px }
.footer-brand p{
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 20px;
}
.footer-req{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    letter-spacing: -0.01em;
}
.footer-req strong{ color: var(--text); font-weight: 600 }
.footer-col h5{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}
.footer-col a{
    display: block;
    color: var(--text-2);
    text-decoration: none;
    font-size: 13.5px;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover,
.footer-col a:focus-visible{
    color: var(--accent-2);
    outline: none;
}
.footer-bottom{
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px){
    .container{ padding: 0 20px }
    .nav-links a{ padding: 8px 11px; font-size: 13.5px }
    .nav-portal{ padding: 7px 10px; font-size: 12.5px }
}

@media (max-width: 1100px){
    .nav-links{ display: none }
    .nav-portals{ display: none }
    .nav-burger{ display: inline-flex }
    .status-badge{ display: none }

    .hero{ padding: 120px 0 64px }
    .hero-grid{ gap: 40px }
    .arch-wrap{ gap: 40px }
    .automation-scheme{ padding: 24px }
    .process-diagram{ padding: 32px 20px }
}

@media (max-width: 1024px){
    .hero-grid{ grid-template-columns: 1fr }
    .arch-wrap{ grid-template-columns: 1fr }
    .services-grid{ grid-template-columns: repeat(2, 1fr) }
    .automation-grid{ grid-template-columns: repeat(2, 1fr) }
    .team-grid{ grid-template-columns: repeat(2, 1fr) }
    .portfolio-grid{ grid-template-columns: 1fr }
    .process-grid{ grid-template-columns: repeat(2, 1fr) }
    .footer-grid{ grid-template-columns: 1fr 1fr; gap: 36px }
    .stats-bar{ grid-template-columns: repeat(2, 1fr) }
    .ecosystem-grid{ grid-template-columns: 1fr }
    .hero h1{ font-size: clamp(32px, 5vw, 44px) }
    .section-title{ font-size: clamp(26px, 4vw, 36px) }
}

@media (max-width: 900px){
    .container{ padding: 0 18px }
    nav{ height: 60px }

    section{ padding: 64px 0 }
    .section-head{ margin-bottom: 36px }
    .hero{ padding: 110px 0 56px }
    .hero-desc{ font-size: 16px }
    .hero-actions{ gap: 10px }
    .btn{ padding: 12px 18px; font-size: 14px; min-height: 44px }

    .company-card{ padding: 24px 22px }
    .about-card{ padding: 22px }
    .services-grid,
    .automation-grid{ gap: 16px }
    .service-card,
    .auto-card{ padding: 24px 22px }
    .team-card{ padding: 22px }
    .team-avatar{ width: 48px; height: 48px; font-size: 22px }
    .process-step{ padding: 22px }
    .server-card{ padding: 18px 20px }
    .server-metrics{ gap: 20px }

    .cta-card{ padding: 48px 28px }
    .cta h2{ font-size: clamp(26px, 5vw, 34px) }
    .cta-email{ font-size: 16px; padding: 13px 22px }

    .footer-grid{ gap: 28px }
    .footer-req{ padding: 12px 14px; font-size: 11.5px }

    .automation-scheme{ padding: 20px 16px; margin-top: 24px }
    .process-diagram{ padding: 28px 16px; border-radius: 16px }
    .process-diagram__legend{ gap: 14px; margin-top: 20px; padding-top: 16px }
    .legend-item{ font-size: 11px }
    .marquee{ animation-duration: 55s }
}

@media (max-width: 700px){
    .container{ padding: 0 16px }
    nav{ height: 58px; gap: 10px }
    .logo-svg{ height: 28px }
    .theme-toggle{ width: 36px; height: 36px }
    .lang-switch button{ padding: 6px 8px; font-size: 11px }

    section{ padding: 56px 0 }
    .section-head{ margin-bottom: 28px }
    .section-label{ font-size: 11px; padding: 3px 8px }
    .hero{ padding: 96px 0 48px }
    .hero-badge{ font-size: 11px; padding: 5px 12px }
    .hero h1{ font-size: clamp(28px, 8vw, 38px); margin-bottom: 18px }
    .hero h1 .accent{ font-size: 0.8em }
    .hero-desc{ font-size: 15.5px; margin-bottom: 24px }
    .hero-notice{ font-size: 13px; padding: 11px 14px }
    .hero-actions{ flex-direction: column; align-items: stretch }
    .hero-actions .btn{ justify-content: center; width: 100% }

    .company-card{ padding: 22px 18px }
    .company-card__head{ flex-direction: column; align-items: flex-start; gap: 10px }
    .company-card__list li{ padding: 11px 12px; font-size: 13px }
    .company-card__list .lbl{ font-size: 10px }
    .company-card__list .val{ font-size: 12px }

    .stats-bar{ grid-template-columns: 1fr 1fr }
    .stat{ padding: 20px 16px }
    .stat-num{ font-size: 26px }

    .server-card{
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        gap: 16px;
    }
    .server-metrics{ width: 100%; justify-content: space-between; gap: 14px }
    .server-metric .lbl{ font-size: 10px }
    .server-metric .val{ font-size: 13px }

    .arch-visual{ padding: 22px 18px }
    .arch-node{ padding: 12px 14px; font-size: 12px }
    .arch-node-icon{ width: 26px; height: 26px; font-size: 12px }
    .about-list li{ padding: 9px 0 }
    .about-list .key{ font-size: 11.5px }
    .about-list .val{ font-size: 12px }

    .services-grid,
    .automation-grid,
    .team-grid,
    .process-grid,
    .footer-grid,
    .portfolio-grid,
    .ecosystem-grid{ grid-template-columns: 1fr }

    .service-card,
    .auto-card,
    .team-card,
    .process-step,
    .work,
    .eco-card{ padding: 22px 20px }

    .service-card h3,
    .auto-card h3{ font-size: 15.5px }
    .service-desc,
    .auto-card p{ font-size: 13px }
    .service-tags span,
    .auto-tags span,
    .work-tags span{ font-size: 10px; padding: 3px 7px }

    .work-metrics{ gap: 14px }
    .work-metric .num{ font-size: 16px }
    .work-metric .lbl{ font-size: 9.5px }

    .automation-scheme{ padding: 18px 12px; border-radius: 14px }
    .automation-scheme__title{ font-size: 16px }
    .automation-scheme__sub{ font-size: 12.5px }
    .process-diagram{ padding: 22px 12px; border-radius: 14px }
    .process-diagram__title{ font-size: 20px }
    .process-diagram__sub{ font-size: 13px }

    .faq-q{ padding: 16px 18px; font-size: 14.5px }
    .faq-a{ font-size: 13.5px; padding: 0 18px }
    .faq-item.open .faq-a{ padding: 0 18px 18px }

    .cta{ padding: 64px 0 }
    .cta-card{ padding: 36px 22px; border-radius: 14px }
    .cta h2{ font-size: clamp(24px, 7vw, 30px) }
    .cta-sub{ font-size: 14px }
    .cta-email{ font-size: 15px; padding: 12px 18px; width: 100%; text-align: center }
    .cta-channels{ flex-direction: column; align-items: stretch }
    .channel{ justify-content: center; width: 100%; min-height: 44px }

    footer{ margin-top: 56px; padding: 36px 0 24px }
    .footer-grid{ grid-template-columns: 1fr; gap: 26px; margin-bottom: 28px }
    .footer-brand p{ font-size: 13px; max-width: 100% }
    .footer-col a{ font-size: 13.5px; padding: 4px 0 }
    .footer-bottom{ font-size: 11px; flex-direction: column; align-items: flex-start; gap: 6px }
}

@media (max-width: 480px){
    .container{ padding: 0 14px }
    .hero h1{ font-size: clamp(26px, 8.5vw, 32px) }
    .section-title{ font-size: clamp(22px, 7vw, 28px) }
    .section-sub{ font-size: 14px }

    .stats-bar{ grid-template-columns: 1fr }
    .stat{ padding: 18px 14px }
    .stat-num{ font-size: 24px }

    .company-card__list li{
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .company-card__list .val{ text-align: left }

    .about-list li{
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    .about-list .val{ text-align: left }

    .work-metrics{ flex-wrap: wrap; gap: 12px 20px }

    .cta-email{ font-size: 14px; letter-spacing: -0.02em }
    .footer-req{ font-size: 11px }
}

@media (max-width: 360px){
    .container{ padding: 0 12px }
    .logo-svg{ height: 26px }
    .nav-burger{ width: 36px; height: 36px }
    .lang-switch button{ padding: 5px 7px; font-size: 10.5px }

    .hero h1{ font-size: 25px }
    .hero-badge{ font-size: 10.5px }
    .btn{ font-size: 13.5px; padding: 11px 14px }

    .service-card,
    .auto-card,
    .team-card,
    .process-step,
    .work,
    .eco-card{ padding: 18px 16px }
    .service-icon,
    .auto-icon{ width: 42px; height: 42px; font-size: 20px }

    .automation-scheme,
    .process-diagram{ padding: 16px 10px }
}

@media (max-height: 500px) and (orientation: landscape){
    .hero{ padding: 80px 0 40px }
    section{ padding: 40px 0 }
    .mobile-nav{ inset: calc(58px + env(safe-area-inset-top)) 0 0 0; padding: 16px 20px 28px }
    .mobile-nav__list a{ padding: 10px 14px; font-size: 15px }
}

@media (hover: none){
    .service-card:hover,
    .auto-card:hover,
    .team-card:hover,
    .process-step:hover,
    .work:hover,
    .eco-card:hover,
    .stat:hover,
    .arch-node:hover{
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    .company-card__list li:hover{ transform: none; border-color: var(--border) }
    .btn-primary:hover,
    .btn-ghost:hover,
    .cta-email:hover{ transform: none }

    .nav-links a,
    .footer-col a,
    .faq-q,
    .channel,
    .nav-portal{
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .footer-col a{ display: block; padding: 6px 0 }
}

@media (prefers-reduced-motion: reduce){
    .reveal{ opacity: 1 !important; transform: none !important; transition: none !important }
    .marquee{ animation: none !important }
    html{ scroll-behavior: auto }
}

@media (prefers-contrast: more){
    :root, [data-theme="light"]{
        --border: #98A2B3;
        --border-2: #667085;
        --muted: #475467;
    }
    [data-theme="dark"]{
        --border: #475467;
        --border-2: #667085;
        --muted: #C7CCD6;
    }
    .btn-ghost,
    .channel,
    .nav-burger{ border-width: 2px }
}

@media (prefers-reduced-transparency: reduce){
    header{
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media print{
    header, footer, .marquee-wrap, .cta-channels, .theme-toggle, .lang-switch, .nav-burger, .mobile-nav{
        display: none !important;
    }
    body{ background: #fff; color: #000; font-size: 12pt }
    section{ padding: 16px 0; page-break-inside: avoid }
    .service-card,
    .auto-card,
    .work,
    .faq-list{ box-shadow: none; border: 1px solid #ccc }
    .reveal{ opacity: 1 !important; transform: none !important }
    a[href^="http"]::after{ content: " (" attr(href) ")"; font-size: 9pt; color: #555 }
    .hero-bg-pipeline{ display: none !important }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar{ width: 10px }
::-webkit-scrollbar-track{ background: var(--bg) }
::-webkit-scrollbar-thumb{
    background: var(--border-2);
    border-radius: 5px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover{ background: var(--muted-2) }

::selection{ background: rgba(59,130,246,0.2); color: var(--text) }

body.lang-switching .lang-content{
    opacity: 0.4;
    transition: opacity 0.15s;
}

/* ============ WP CORE ============ */
.wp-caption, .wp-caption-text, .gallery-caption{ max-width: 100% }
.alignleft{ float: left; margin: 0 24px 16px 0 }
.alignright{ float: right; margin: 0 0 16px 24px }
.aligncenter{ display: block; margin: 16px auto }
.screen-reader-text{
    border: 0; clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.pagination{
    display: flex; gap: 8px; justify-content: center; margin-top: 32px;
    font-family: var(--font-mono); font-size: 13px;
}
.pagination .page-numbers{
    padding: 8px 12px; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); text-decoration: none;
}
.pagination .page-numbers.current{
    background: var(--accent-2); color: #fff; border-color: var(--accent-2);
}