/* ══════════════════════════════════════════
   CyberLab Website — Shared Styles
   ══════════════════════════════════════════ */
:root {
    --c-purple:   #d640f4;
    --c-purple-s: #a855f7;
    --c-purple-d: rgba(214,64,244,.12);
    --c-purple-b: rgba(214,64,244,.25);
    --c-bg:       #07070d;
    --c-bg2:      #0d0d18;
    --c-bg3:      #12121e;
    --c-card:     #0f0f1c;
    --c-border:   rgba(255,255,255,.07);
    --c-text:     #e2e8f0;
    --c-muted:    #64748b;
    --c-muted2:   #94a3b8;
    --c-cs2:      #f97316;
    --c-dota:     #ef4444;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── CONTAINER ── */
.w-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── NAV ── */
.w-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 0 32px;
    height: 64px;
    display: flex; align-items: center;
    background: rgba(7,7,13,.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-border);
    transition: border-color .3s, background .3s;
}
.w-nav.scrolled {
    background: rgba(7,7,13,.95);
    border-bottom-color: rgba(214,64,244,.2);
}
.w-nav-inner {
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 8px;
}
.w-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; letter-spacing: -.3px;
    color: #fff; flex-shrink: 0; margin-right: 16px;
}
.w-brand-logo {
    width: 32px; height: 32px;
    border-radius: 8px; object-fit: cover;
}
.w-nav-links {
    display: flex; align-items: center; gap: 4px; flex: 1;
}
.w-nav-link {
    padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
    color: var(--c-muted2);
    transition: color .2s, background .2s;
}
.w-nav-link:hover, .w-nav-link.active {
    color: #fff; background: rgba(255,255,255,.06);
}
.w-nav-link.active { color: var(--c-purple); }
/* --- Dropdown языка --- */
.w-lang-drop { position: relative; display: inline-flex; margin-left: auto; }
.w-lang-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: var(--c-muted); background: rgba(255,255,255,.04);
    border: 1px solid var(--c-border); cursor: pointer; transition: all .2s;
    letter-spacing: .02em;
}
.w-lang-toggle:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.w-lang-arrow { transition: transform .2s; flex-shrink: 0; }
.w-lang-drop.open .w-lang-arrow { transform: rotate(180deg); }
.w-lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 120px; background: #14141f; border: 1px solid var(--c-border);
    border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
    display: none; flex-direction: column; z-index: 200;
}
.w-lang-drop.open .w-lang-menu { display: flex; flex-direction: column; }
.w-lang-option {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 11px; border-radius: 7px; font-size: 13px; font-weight: 500;
    color: var(--c-muted); transition: all .15s; white-space: nowrap;
}
.w-lang-option:hover { color: #fff; background: rgba(255,255,255,.07); }
.w-lang-option.active { color: var(--c-purple); background: var(--c-purple-d); }
.w-lang-code {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
    background: rgba(255,255,255,.08); border-radius: 4px; padding: 1px 5px;
    color: inherit;
}
.w-lang-label { font-size: 13px; }
.w-lang-drop--up .w-lang-menu { top: auto; bottom: calc(100% + 8px); }
.w-login-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: #d8b4fe;
    background: var(--c-purple-d);
    border: 1px solid var(--c-purple-b);
    margin-left: 8px; flex-shrink: 0;
    transition: all .2s;
}
.w-login-btn:hover { background: rgba(214,64,244,.22); color: #f0abfc; }
.w-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.w-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--c-muted2); border-radius: 2px; transition: all .25s;
}
.w-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.w-burger.open span:nth-child(2) { opacity: 0; }
.w-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SECTIONS ── */
.w-section { padding: 96px 0; }
.w-section-alt { background: var(--c-bg2); }
.w-section-dark { background: var(--c-bg3); }
.w-section-label {
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--c-purple); margin-bottom: 10px;
}
.w-section-title {
    font-size: clamp(26px, 4vw, 44px); font-weight: 900; letter-spacing: -.03em;
    color: #f1f5f9; line-height: 1.1; margin-bottom: 14px;
}
.w-section-desc {
    font-size: 17px; color: var(--c-muted); line-height: 1.7; max-width: 560px;
}

/* ── GRADIENT TEXT ── */
.w-grad {
    background: linear-gradient(135deg, var(--c-purple) 0%, #f0abfc 50%, var(--c-purple-s) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w-grad-cs2 {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w-grad-dota {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w-grad-biz {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── BUTTONS ── */
.w-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 12px; font-size: 15px; font-weight: 700;
    transition: all .25s; cursor: pointer; border: none;
}
.w-btn-primary {
    background: linear-gradient(135deg, var(--c-purple), var(--c-purple-s));
    color: #fff;
    box-shadow: 0 0 28px rgba(214,64,244,.3);
}
.w-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(214,64,244,.5); color: #fff; }
.w-btn-ghost {
    background: rgba(255,255,255,.05); border: 1px solid var(--c-border);
    color: var(--c-muted2);
}
.w-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }
.w-btn-cs2 {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff; box-shadow: 0 0 28px rgba(249,115,22,.3);
}
.w-btn-cs2:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(249,115,22,.5); color: #fff; }
.w-btn-biz {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff; box-shadow: 0 0 28px rgba(16,185,129,.3);
}
.w-btn-biz:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(16,185,129,.5); color: #fff; }

/* ── CARDS ── */
.w-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    transition: border-color .25s, transform .25s;
}
.w-card:hover { border-color: var(--c-purple-b); transform: translateY(-3px); }
.w-card-p { padding: 28px 24px; }

/* ── BADGE ── */
.w-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 20px;
    background: var(--c-purple-d); border: 1px solid var(--c-purple-b); color: #d8b4fe;
    margin-bottom: 20px;
}

/* ── GLOW ── */
.w-glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(100px); opacity: .15;
}

/* ── DIVIDER ── */
.w-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-purple-b), transparent);
    border: none; margin: 0;
}

/* ── HERO ── */
.w-hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative; overflow: hidden;
}
.w-hero h1 {
    font-size: clamp(38px, 8vw, 80px);
    font-weight: 900; line-height: 1.02; letter-spacing: -.04em;
    margin-bottom: 20px;
}
.w-hero-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--c-muted); max-width: 580px; margin: 0 auto 40px; line-height: 1.65;
}
.w-hero-btns {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 64px;
}
.w-hero-stats {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 48px;
    padding-top: 48px; border-top: 1px solid var(--c-border);
}
.w-stat-num {
    font-size: 36px; font-weight: 900; letter-spacing: -.03em;
    background: linear-gradient(135deg, #fff, #d8b4fe);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w-stat-label { font-size: 12px; color: var(--c-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ── FEATURE GRID ── */
.w-features { display: grid; gap: 20px; }
.w-features-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.w-features-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.w-feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 16px;
}
.w-feat-title { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.w-feat-desc { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

/* ── STEPS ── */
.w-steps { counter-reset: step; }
.w-step {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px; border-radius: 14px;
    background: var(--c-card); border: 1px solid var(--c-border);
    margin-bottom: 16px;
}
.w-step-num {
    counter-increment: step;
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900;
    background: var(--c-purple-d); border: 1px solid var(--c-purple-b); color: var(--c-purple);
}
.w-step-title { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.w-step-desc { font-size: 13px; color: var(--c-muted); line-height: 1.55; }

/* ── TEAM ── */
.w-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.w-team-card {
    background: var(--c-card); border: 1px solid var(--c-border); border-radius: 16px;
    padding: 24px; text-align: center; transition: all .25s;
}
.w-team-card:hover { border-color: var(--c-purple-b); transform: translateY(-3px); }
.w-team-avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
    background: var(--c-purple-d); border: 2px solid var(--c-purple-b);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--c-purple);
}
.w-team-name { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.w-team-role { font-size: 12px; color: var(--c-muted); }

/* ── CONTACT FORM ── */
.w-form-row { display: grid; gap: 16px; }
.w-form-2 { grid-template-columns: 1fr 1fr; }
.w-field {
    display: flex; flex-direction: column; gap: 6px;
}
.w-label { font-size: 12px; font-weight: 600; color: var(--c-muted2); }
.w-input, .w-textarea {
    background: rgba(255,255,255,.05); border: 1px solid var(--c-border);
    border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #f1f5f9;
    outline: none; transition: border-color .2s; width: 100%;
    font-family: inherit;
}
.w-input::placeholder, .w-textarea::placeholder { color: var(--c-muted); }
.w-input:focus, .w-textarea:focus { border-color: var(--c-purple-b); background: rgba(214,64,244,.06); }
.w-textarea { resize: vertical; min-height: 120px; }

/* ── MAP ── */
.w-map-wrap {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--c-border); height: 320px;
}
.w-map-wrap iframe { width: 100%; height: 100%; border: none; filter: invert(.9) hue-rotate(180deg) saturate(.8); }

/* ── FOOTER ── */
.w-footer {
    background: var(--c-bg2);
    border-top: 1px solid var(--c-border);
    padding: 64px 0 0;
}
.w-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 48px;
}
.w-footer-desc { font-size: 13px; color: var(--c-muted); line-height: 1.7; margin: 10px 0 20px; max-width: 260px; }
.w-footer-socials { display: flex; gap: 10px; }
.w-social {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05); border: 1px solid var(--c-border);
    color: var(--c-muted); transition: all .2s;
}
.w-social:hover { background: var(--c-purple-d); border-color: var(--c-purple-b); color: var(--c-purple); }
.w-footer-col-title {
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 14px;
}
.w-footer-link {
    display: block; font-size: 14px; color: var(--c-muted2);
    padding: 4px 0; transition: color .2s;
}
.w-footer-link:hover { color: #fff; }
.w-footer-contact {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--c-muted); padding: 4px 0;
}
.w-footer-contact svg { flex-shrink: 0; color: var(--c-purple); }
.w-footer-bottom {
    border-top: 1px solid var(--c-border);
    padding: 20px 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: var(--c-muted);
}

/* ── COMING SOON BADGE ── */
.w-soon {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 5px;
    background: rgba(234,179,8,.15); border: 1px solid rgba(234,179,8,.3); color: #fbbf24;
    vertical-align: middle; margin-left: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .w-footer-grid { grid-template-columns: 1fr 1fr; }
    .w-form-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .w-nav { padding: 0 20px; }
    .w-nav-links {
        display: none; flex-direction: column; align-items: flex-start; gap: 4px;
        position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
        background: rgba(7,7,13,.97); padding: 24px 20px;
        border-top: 1px solid var(--c-border);
        overflow-y: auto;
    }
    .w-nav-links.open { display: flex; }
    .w-nav-link { padding: 10px 14px; font-size: 16px; width: 100%; }
    /* Навбар: dropdown в вертикальном overlay — делаем статичным чтобы не обрезался overflow */
    .w-nav-links .w-lang-drop { margin: 8px 0; margin-left: 0; width: 100%; }
    .w-nav-links .w-lang-toggle { width: 100%; justify-content: flex-start; }
    .w-nav-links .w-lang-menu { position: static; box-shadow: none; margin-top: 4px; width: 100%; border-radius: 8px; }
    .w-login-btn { width: 100%; justify-content: center; margin-left: 0; margin-top: 4px; }
    .w-burger { display: flex; }
    .w-section { padding: 64px 0; }
    .w-hero { padding: 100px 20px 60px; }
    .w-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .w-footer { padding: 48px 0 0; }
    .w-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .w-hero-stats { gap: 24px; }
    .w-team-grid { grid-template-columns: 1fr; }
}
