/* ==========================================================================
   Vegela — звёздная тема
   ========================================================================== */

:root {
    --bg: #05071a;
    --bg-2: #0a0f2e;
    --panel: rgba(18, 24, 64, 0.55);
    --panel-solid: #0e1438;
    --border: rgba(160, 180, 255, 0.14);
    --border-strong: rgba(160, 180, 255, 0.3);
    --text: #e8edff;
    --muted: #9aa6d1;
    --violet: #8b7bff;
    --blue: #5b7cff;
    --cyan: #5ee0ff;
    --gold: #ffd58a;
    --danger: #ff7a8a;
    --success: #6ff0b4;
    --radius: 18px;
    --radius-sm: 10px;
    --font-display: 'Unbounded', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
    --glow: 0 0 40px rgba(94, 224, 255, 0.25), 0 0 80px rgba(139, 123, 255, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Защита от горизонтальной прокрутки на мобильных */
html, body { overflow-x: clip; }
h1, h2, h3 { overflow-wrap: break-word; }
input, select, textarea { max-width: 100%; min-width: 0; }
.form-grid > *, .order-wrap > *, .features > *, .services > *, .steps > *,
.ai-grid > *, .ai-flow > *, .grid-2 > *, .crm-form > *, .kpis > * { min-width: 0; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.gradient-text {
    background: linear-gradient(90deg, #fff 0%, #bcd4ff 40%, var(--violet) 75%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.6em;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: 600 15px/1 var(--font-body);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cyan); color: #fff; }
.btn-primary {
    border: none;
    background: linear-gradient(120deg, var(--violet), var(--blue) 50%, var(--cyan));
    box-shadow: var(--glow);
    color: #fff;
}
.btn-primary:hover { box-shadow: 0 0 50px rgba(94, 224, 255, .45), 0 0 100px rgba(139, 123, 255, .35); }
.btn-sm { padding: .55em 1.1em; font-size: 14px; }
.btn-danger { border-color: rgba(255, 122, 138, .4); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: rgba(255, 122, 138, .1); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }

/* ==========================================================================
   ЛЕНДИНГ
   ========================================================================== */

.sky {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 75% 20%, rgba(91, 124, 255, .16), transparent 70%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(139, 123, 255, .12), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #070b26 60%, var(--bg) 100%);
}
.sky canvas { width: 100%; height: 100%; display: block; }

.site { position: relative; z-index: 1; }

/* Шапка */
.site-header {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(5, 7, 26, .55);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }
.menu-root { display: contents; }
.nav-toggle {
    display: none; position: relative; flex: none;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--border-strong); border-radius: 12px;
    background: rgba(255, 255, 255, .04); cursor: pointer;
}
.nav-toggle span {
    position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
    background: var(--text); transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
html.menu-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
html.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
html.menu-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex; align-items: center;
    overflow: hidden;
    padding: 80px 0;
}
.hero-photo {
    position: absolute; inset: 0; z-index: -1;
    background-size: cover; background-position: center 45%;
    opacity: .55;
    mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 30%, transparent 80%);
    animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.hero-content { max-width: 760px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(139, 123, 255, .08);
    color: #cdd6ff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 26px;
}
.eyebrow::before { content: '✦'; color: var(--cyan); }
.hero h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -.01em; margin-bottom: 24px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #c4cdf0; max-width: 620px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats b { display: block; font: 600 32px/1 var(--font-display); color: #fff; }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* Секции */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .kicker { color: var(--cyan); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 20px 60px rgba(20, 30, 90, .45); }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(139, 123, 255, .25), rgba(94, 224, 255, .15));
    border: 1px solid var(--border-strong);
    font-size: 24px; margin-bottom: 20px;
}
.service h3 { font-size: 19px; }
.service p { color: var(--muted); margin: 0 0 16px; }
.service .price { color: var(--gold); font-weight: 600; font-size: 15px; }

/* Этапы — созвездие */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
    content: ''; position: absolute; left: 6%; right: 6%; top: 27px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
    opacity: .6;
}
.step { position: relative; padding-top: 70px; }
.step-star {
    position: absolute; top: 10px; left: 0;
    width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: 50%; background: var(--bg-2); border: 1px solid var(--border-strong);
    color: var(--cyan); font: 600 14px var(--font-display);
    box-shadow: 0 0 24px rgba(94, 224, 255, .35);
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; }

/* Почему мы */
.features { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list li::before { content: '✦'; color: var(--cyan); font-size: 18px; line-height: 1.5; text-shadow: 0 0 12px var(--cyan); }
.feature-list b { display: block; color: #fff; }
.feature-list span { color: var(--muted); }
.orbit-visual { position: relative; width: 100%; aspect-ratio: 1; max-width: 440px; margin-inline: auto; }
.orbit-visual .ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px dashed rgba(160, 180, 255, .25);
    animation: spin 60s linear infinite;
}
.orbit-visual .ring:nth-child(2) { inset: 16%; animation-duration: 40s; animation-direction: reverse; border-style: solid; border-color: rgba(139, 123, 255, .25); }
.orbit-visual .ring:nth-child(3) { inset: 32%; animation-duration: 25s; }
.orbit-visual .ring::after {
    content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 16px var(--cyan);
}
.orbit-visual .ring:nth-child(2)::after { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.orbit-visual .ring:nth-child(3)::after { background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.orbit-visual .core {
    position: absolute; inset: 38%; display: grid; place-items: center;
    filter: drop-shadow(0 0 30px rgba(140, 190, 255, .8));
}
.orbit-visual .core img { width: 100%; height: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Форма заказа */
.order-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.order-aside h2 { font-size: clamp(28px, 4vw, 42px); }
.order-aside p { color: var(--muted); }
.contacts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.contacts li { color: #cdd6ff; }
.contacts li span { color: var(--muted); display: inline-block; width: 96px; }

.order-card { padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.form-grid .full { grid-column: 1 / -1; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label, .form-label { font-size: 14px; color: #c4cdf0; font-weight: 500; }
.form-row label.required::after { content: ' *'; color: var(--cyan); }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(5, 8, 30, .6);
    color: var(--text);
    font: inherit; font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: var(--panel-solid); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94, 224, 255, .15); }
input::placeholder, textarea::placeholder { color: #5f6a99; }

.checkbox-row { flex-direction: row; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--violet); width: 18px; height: 18px; }

.form-errors, .form-row ul { list-style: none; margin: 4px 0 0; padding: 0; color: var(--danger); font-size: 13px; }
.form-errors-global { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 122, 138, .08); border: 1px solid rgba(255, 122, 138, .35); margin-bottom: 18px; }
.has-error input, .has-error select, .has-error textarea { border-color: rgba(255, 122, 138, .6); }

.hp-row { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-footer small { color: var(--muted); }

.success-box {
    text-align: center; padding: 50px 30px;
}
.success-box .big-star { font-size: 56px; color: var(--cyan); text-shadow: 0 0 30px var(--cyan); line-height: 1; }
.success-box h3 { margin-top: 20px; }
.success-box p { color: var(--muted); }

/* Футер */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer img { height: 30px; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-photo, .orbit-visual .ring { animation: none; }
}

/* Текстовые страницы */
.prose { max-width: 760px; padding: 80px 0; }
.prose p, .prose li { color: #c4cdf0; }

/* ==========================================================================
   CRM
   ========================================================================== */

.crm { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.crm-sidebar {
    border-right: 1px solid var(--border);
    background: rgba(8, 11, 38, .85);
    backdrop-filter: blur(12px);
    padding: 24px 18px;
    display: flex; flex-direction: column; gap: 28px;
    position: sticky; top: 0; height: 100vh;
}
.crm-sidebar .brand img { height: 34px; }
.crm-nav { display: flex; flex-direction: column; gap: 4px; }
.crm-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 500;
}
.crm-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.crm-nav a.active { background: linear-gradient(90deg, rgba(139, 123, 255, .22), rgba(94, 224, 255, .06)); color: #fff; box-shadow: inset 2px 0 0 var(--cyan); }
.crm-nav .ico { width: 20px; text-align: center; color: var(--cyan); }
.crm-user { margin-top: auto; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; }
.crm-user b { color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; }

.crm-main { padding: 32px 40px 60px; min-width: 0; }
.crm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.crm-top h1 { font-size: 26px; margin: 0; }
.crm-top .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.crm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.panel h2 { font-size: 17px; margin-bottom: 18px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { display: block; font: 600 28px/1.2 var(--font-display); margin-top: 8px; color: #fff; }
.kpi.accent { border-color: rgba(94, 224, 255, .35); box-shadow: inset 0 0 40px rgba(94, 224, 255, .06); }

.status-bars { display: grid; gap: 12px; }
.status-bar { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: 12px; font-size: 14px; }
.status-bar .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.status-bar .fill { height: 100%; border-radius: 99px; }
.status-bar b { text-align: right; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid rgba(160, 180, 255, .07); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .02); }
.table .muted, .muted { color: var(--muted); }
.table a.row-link { color: var(--text); font-weight: 600; }
.table a.row-link:hover { color: var(--cyan); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
    border: 1px solid currentColor;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-blue { color: #7fa2ff; background: rgba(91, 124, 255, .1); }
.badge-violet { color: #b4a8ff; background: rgba(139, 123, 255, .1); }
.badge-amber { color: var(--gold); background: rgba(255, 213, 138, .08); }
.badge-cyan { color: var(--cyan); background: rgba(94, 224, 255, .08); }
.badge-green { color: var(--success); background: rgba(111, 240, 180, .08); }
.badge-gray { color: #8790b5; background: rgba(135, 144, 181, .08); }
.fill-blue { background: #7fa2ff; } .fill-violet { background: #b4a8ff; } .fill-amber { background: var(--gold); }
.fill-cyan { background: var(--cyan); } .fill-green { background: var(--success); } .fill-gray { background: #8790b5; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filters input[type=search] { max-width: 320px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.chip:hover { color: #fff; border-color: var(--border-strong); }
.chip.active { color: #fff; border-color: var(--cyan); background: rgba(94, 224, 255, .08); }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.pre { white-space: pre-wrap; color: #cdd6ff; }

.crm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.crm-form .full { grid-column: 1 / -1; }
.crm-form-actions { display: flex; gap: 10px; margin-top: 22px; align-items: center; }

.quick-status { display: flex; gap: 8px; align-items: center; }
.quick-status select { width: auto; padding: 8px 34px 8px 12px; }

.flash { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; }
.flash-success { color: var(--success); border-color: rgba(111, 240, 180, .35); background: rgba(111, 240, 180, .06); }
.flash-error { color: var(--danger); border-color: rgba(255, 122, 138, .35); background: rgba(255, 122, 138, .06); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big-star { font-size: 36px; color: var(--violet); display: block; margin-bottom: 10px; }

/* Вход */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px; position: relative; z-index: 1; }
.auth-card { width: min(420px, 100%); padding: 40px; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-card .brand img { height: 46px; }
.auth-card h1 { font-size: 20px; text-align: center; margin-bottom: 24px; }
.auth-card .form-row { margin-bottom: 16px; }
.auth-card .btn { width: 100%; margin-top: 8px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .features, .order-wrap, .grid-2 { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .crm { grid-template-columns: 1fr; }
    .crm-sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 20px; }
    .crm-nav { flex-direction: row; flex-wrap: wrap; }
    .crm-user { margin: 0 0 0 auto; border: 0; padding: 0; }
    .crm-main { padding: 24px 20px 50px; }
}
@media (max-width: 720px) {
    .nav, .header-cta { display: none; }
    .nav-toggle { display: block; }

    /* Полноэкранное меню */
    html.menu-open { overflow: hidden; }
    .mobile-menu {
        display: flex; flex-direction: column; justify-content: space-between;
        position: fixed; inset: 0; z-index: 15;
        height: 100vh; height: 100dvh; overflow-y: auto;
        padding: 100px 24px 32px;
        background:
            radial-gradient(ellipse 80% 45% at 85% 10%, rgba(91, 124, 255, .22), transparent 70%),
            radial-gradient(ellipse 70% 40% at 0% 100%, rgba(139, 123, 255, .18), transparent 70%),
            rgba(5, 7, 26, .97);
        backdrop-filter: blur(16px);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    }
    .mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
    .mobile-menu-nav { display: flex; flex-direction: column; }
    .mobile-menu-nav a {
        display: flex; align-items: center; gap: 14px;
        padding: 16px 0; border-bottom: 1px solid var(--border);
        font: 600 26px/1.2 var(--font-display); color: #fff;
        opacity: 0; transform: translateY(12px);
        transition: opacity .4s ease, transform .4s ease;
        transition-delay: calc(var(--i, 0) * 60ms + 80ms);
    }
    .mobile-menu.open .mobile-menu-nav a { opacity: 1; transform: none; }
    .mobile-menu-nav a:active { color: var(--cyan); }
    .mm-star { color: var(--cyan); font-size: 16px; text-shadow: 0 0 12px var(--cyan); }
    .mobile-menu-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 36px; }
    .mobile-menu-footer .btn { width: 100%; margin-bottom: 8px; }
    .services, .steps, .form-grid, .crm-form { grid-template-columns: 1fr; }
    .hero-stats { gap: 28px; }
    .section { padding: 80px 0; }
    .order-card { padding: 24px; }
    .dl { grid-template-columns: 1fr; gap: 2px; }
    .dl dd { margin-bottom: 10px; }
    .status-bar { grid-template-columns: 100px 1fr 30px; }
}

/* ==========================================================================
   ИИ-разработка, стек технологий
   ========================================================================== */

.service-accent {
    border-color: rgba(94, 224, 255, .35);
    background: linear-gradient(160deg, rgba(139, 123, 255, .18), rgba(18, 24, 64, .55) 55%);
    box-shadow: inset 0 0 50px rgba(94, 224, 255, .06);
}
.service-more { display: inline-block; margin-left: 14px; font-size: 14px; font-weight: 600; }

.ai-section::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 45% 35% at 85% 15%, rgba(94, 224, 255, .10), transparent 70%),
        radial-gradient(ellipse 50% 40% at 10% 70%, rgba(139, 123, 255, .14), transparent 70%);
}
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ai-card h3 { font-size: 19px; }
.ai-card p { color: var(--muted); margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; color: #cdd6ff;
    border: 1px solid var(--border); background: rgba(139, 123, 255, .08);
}
.tag-lg { font-size: 14px; padding: 6px 14px; }

.ai-flow {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
    margin-top: 56px; position: relative;
}
.ai-flow::before {
    content: ''; position: absolute; left: 10%; right: 10%; top: 17px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), var(--violet), transparent);
    opacity: .7;
}
.flow-node { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow-star {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--cyan);
    box-shadow: 0 0 24px rgba(94, 224, 255, .35); margin-bottom: 10px;
}
.flow-node b { color: #fff; font-size: 15px; }
.flow-node span:last-child { color: var(--muted); font-size: 13px; }

.ai-cta {
    margin-top: 56px; padding: 28px 32px; border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: linear-gradient(120deg, rgba(139, 123, 255, .16), rgba(94, 224, 255, .06));
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.ai-cta p { margin: 0; font-size: 18px; color: #dfe6ff; max-width: 680px; }

.stack { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 60px; }
.stack-title { color: var(--cyan); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-right: 10px; }

@media (max-width: 1000px) {
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-flow { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
    .ai-flow::before { display: none; }
}
@media (max-width: 720px) {
    .ai-grid { grid-template-columns: 1fr; }
    .ai-flow { grid-template-columns: 1fr 1fr; }
    .ai-cta { padding: 22px; }
}

/* ==========================================================================
   Переключатель языка
   ========================================================================== */
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
    display: inline-flex; gap: 2px; padding: 3px;
    border: 1px solid var(--border-strong); border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}
.lang-switch a {
    padding: 4px 10px; border-radius: 999px;
    font: 600 12px/1.4 var(--font-body); letter-spacing: .06em;
    color: var(--muted);
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: linear-gradient(120deg, var(--violet), var(--blue)); color: #fff; }
.lang-switch-lg a { padding: 8px 20px; font-size: 15px; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 720px) {
    .header-right { gap: 10px; }
}
