/* =========================================================
   AXE VPS — стили
   ========================================================= */

:root {
  --bg: #0a0c10;
  --bg-2: #0e1116;
  --surface: #12161c;
  --surface-2: #171c23;
  --surface-3: #1e242c;
  --border: #222932;
  --border-2: #2e3641;
  --text: #e9ecf1;
  --muted: #9aa4b2;
  --dim: #6c7684;
  --accent: #ff6a2b;
  --accent-2: #ffae3d;
  --accent-soft: rgba(255, 106, 43, .12);
  --grad: linear-gradient(135deg, #ffb347 0%, #ff6a2b 52%, #ff3f5e 100%);
  --on-accent: #1c0e05;
  --green: #3ddc84;
  --red: #ff5c67;
  --yellow: #ffc94d;
  --blue: #5eb0ff;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; padding: .1em .35em; border-radius: 5px; background: rgba(255, 255, 255, .07); }
[hidden] { display: none !important; }
::selection { background: rgba(255, 106, 43, .35); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--dim); }
.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.show-xs { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.2em;
  border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--text);
  font: 600 15px/1.2 var(--font);
  white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 28px -10px rgba(255, 106, 43, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 106, 43, .85); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-danger { background: rgba(255, 92, 103, .08); border-color: rgba(255, 92, 103, .3); color: var(--red); }
.btn-danger:hover { background: rgba(255, 92, 103, .16); }
.btn-sm { padding: .52em .9em; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: .92em 1.5em; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, .75);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 800; }
.brand-sub {
  font: 500 12px/1 var(--mono); font-style: normal; color: var(--dim);
  border: 1px solid var(--border-2); padding: 4px 7px; border-radius: 6px; margin-left: 2px;
}
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .nav-extra { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.nav-toggle {
  display: none; width: 40px; height: 40px; place-items: center;
  border: 1px solid var(--border-2); border-radius: 10px;
  background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 80px 104px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 420px at 78% 22%, rgba(255, 106, 43, .2), transparent 70%),
    radial-gradient(520px 320px at 8% 0%, rgba(255, 174, 61, .09), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 11px; border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(255, 255, 255, .03); font-size: 13px; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 20px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; row-gap: 16px; }
.hero-stats li { display: flex; flex-direction: column; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--border); }
.hero-stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats b { font: 700 20px/1.3 var(--mono); }
.hero-stats span { color: var(--dim); font-size: 13px; }

.hero-visual { position: relative; }
.terminal {
  background: linear-gradient(180deg, #13171d, #0d1014);
  border: 1px solid var(--border-2); border-radius: 16px;
  box-shadow: var(--shadow), 0 0 80px -30px rgba(255, 106, 43, .35);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a424d; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-bar em { margin: 0 auto; padding-right: 40px; font: 500 12px var(--mono); font-style: normal; color: var(--dim); }
.terminal-body { padding: 18px 20px 24px; font: 13.5px/1.8 var(--mono); color: #c9d1db; min-height: 318px; overflow-x: auto; }
.tl { white-space: pre; }
.tl .p { color: var(--green); }
.tl .h { color: var(--blue); }
.tl .c { color: var(--text); }
.tl.out { color: var(--muted); }
.tl.ok { color: var(--green); }
.terminal-body.js-anim .tl:not(.shown) { display: none; }
.cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 1px; background: var(--accent); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; left: -28px; bottom: -30px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(23, 28, 35, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: var(--shadow); font-size: 13px;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.float-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.float-icon .icon { width: 20px; height: 20px; }
.online {
  margin-left: 6px; padding: 3px 9px; border-radius: 999px;
  font: 600 11px/1.4 var(--mono); color: var(--green);
  background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .3);
}

/* ---------- Секции ---------- */
.section { padding-block: 100px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--border-2); }
.plan-featured {
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  border-color: transparent;
  box-shadow: 0 30px 60px -32px rgba(255, 106, 43, .5);
}
.plan.is-selected:not(.plan-featured) { border-color: rgba(255, 106, 43, .55); }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--grad); color: var(--on-accent);
  font: 700 11px/1.35 var(--font); text-transform: uppercase; letter-spacing: .06em;
}
.plan h3 { font: 800 22px/1.2 var(--mono); letter-spacing: 0; }
.plan header p { color: var(--dim); font-size: 14px; margin-top: 5px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 18px; }
.plan-price b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.plan-price span { color: var(--dim); font-size: 15px; }
.plan-specs { list-style: none; margin: 0 0 18px; padding: 14px 0; border-block: 1px solid var(--border); display: grid; gap: 8px; }
.plan-specs li { display: flex; justify-content: space-between; font-size: 14.5px; }
.plan-specs span { color: var(--muted); }
.plan-specs b { font-family: var(--mono); font-weight: 600; }
.plan-extras { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.plan-extras li { display: flex; gap: 9px; align-items: center; }
.plan-extras .icon { color: var(--green); width: 16px; height: 16px; }
.plan .btn { margin-top: auto; }

.custom-plan {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border: 1px dashed var(--border-2); border-radius: var(--radius); background: rgba(255, 255, 255, .015);
}
.custom-plan > div { display: flex; gap: 16px; align-items: center; }
.custom-plan .icon { width: 28px; height: 28px; color: var(--accent); }
.custom-plan b { display: block; }
.custom-plan span { color: var(--muted); font-size: 14px; }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.feature:hover { border-color: var(--border-2); }
.feature-icon {
  width: 46px; height: 46px; margin-bottom: 20px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255, 106, 43, .25);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- ОС ---------- */
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.os-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.os-card:hover { border-color: var(--border-2); background: var(--surface-2); }
.os-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface-2); }
.os-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.os-logo svg { width: 28px; height: 28px; }
.os-ubuntu { background: #e95420; }
.os-debian { background: #a80030; }
.os-meta b { display: block; font-weight: 700; }
.os-meta small { color: var(--dim); font: 12.5px var(--mono); }
.tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.4 var(--font); border: 1px solid; white-space: nowrap; }
.tag-new { color: var(--accent-2); border-color: rgba(255, 174, 61, .35); background: rgba(255, 174, 61, .08); }
.tag-hot { color: var(--green); border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .08); }
.tag-ok { color: var(--blue); border-color: rgba(94, 176, 255, .35); background: rgba(94, 176, 255, .08); }
.tag-old { color: var(--dim); border-color: var(--border-2); }
.os-note { margin-top: 18px; color: var(--dim); font-size: 14px; }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -19px; width: 20px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 50%; border: 1px solid rgba(255, 106, 43, .35); background: var(--accent-soft);
  font: 700 14px var(--mono); color: var(--accent);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Заявка ---------- */
.section-order { background: radial-gradient(700px 420px at 15% 35%, rgba(255, 106, 43, .08), transparent 70%); }
.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.order-intro .lead { margin-top: 16px; }
.order-points { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.order-points li { display: flex; gap: 11px; align-items: flex-start; }
.order-points .icon { color: var(--accent); margin-top: 3px; }
.order-points a { color: var(--accent-2); }
.summary { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.summary h3 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.summary-row span { color: var(--muted); }
.summary-row b { text-align: right; font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.summary-total span { color: var(--muted); font-size: 14px; }
.summary-total b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.summary small { display: block; margin-top: 10px; color: var(--dim); font-size: 13px; }

.order-form { padding: 32px; display: grid; gap: 22px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend, .field-label { font-weight: 600; font-size: 14px; padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--dim); font-size: 13px; margin-left: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.counter { margin-left: auto; font: 12px var(--mono); color: var(--dim); }

input[type="text"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 10px;
  font: 15px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:disabled { opacity: .5; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select option, select optgroup { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 104px; }

.input-prefix {
  display: flex; align-items: stretch;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-prefix span { display: grid; place-items: center; padding-left: 14px; color: var(--accent); font: 600 16px var(--mono); }
.input-prefix input { border: 0; background: transparent; padding-left: 6px; font-family: var(--mono); box-shadow: none !important; }

.hint { font-size: 13px; color: var(--dim); }
.error { font-size: 13px; color: var(--red); }
.error:empty { display: none; }
.has-error input[type="text"], .has-error select, .has-error textarea, .has-error .input-prefix { border-color: var(--red); }
.has-error .check input { border-color: var(--red); }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: background-color .15s, color .15s; }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, .5); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; color: var(--muted); cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin: 1px 0 0;
  display: grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 6px; background: var(--bg-2); cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: -8px; }

.alert { padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: 14px; }
.alert-error { background: rgba(255, 92, 103, .08); border-color: rgba(255, 92, 103, .3); color: #ffb3b8; }
.alert-ok { background: rgba(61, 220, 132, .08); border-color: rgba(61, 220, 132, .3); color: #a6f0c6; }
.alert-warn { background: rgba(255, 201, 77, .08); border-color: rgba(255, 201, 77, .3); color: #ffe1a0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 17px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: 60px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.3fr; gap: 36px; }
.footer-brand p { color: var(--dim); font-size: 14px; margin-top: 14px; max-width: 300px; }
.site-footer h4 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 14px; }
.footer-col a { display: block; width: fit-content; color: var(--muted); font-size: 14.5px; padding: 3px 0; transition: color .2s; }
.footer-col a:hover, .footer-legal a:hover, .footer-bottom a:hover { color: var(--text); }
.footer-legal p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.footer-legal .legal-name { color: var(--text); font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--dim); font-size: 13px;
}

/* ---------- Спасибо / документы / ошибки ---------- */
.page-narrow .container { max-width: 720px; }
.thanks { padding: 48px 40px; text-align: center; box-shadow: var(--shadow); }
.thanks-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(61, 220, 132, .12); color: var(--green); border: 1px solid rgba(61, 220, 132, .3);
}
.thanks-icon .icon { width: 34px; height: 34px; }
.thanks h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; }
.thanks .lead { margin: 12px auto 0; }
.thanks .lead b { color: var(--text); font-family: var(--mono); }
.order-code {
  display: inline-flex; flex-direction: column; gap: 4px; margin: 30px 0;
  padding: 16px 30px; border: 1px dashed rgba(255, 106, 43, .6); border-radius: 14px; background: var(--accent-soft);
}
.order-code span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.order-code b { font: 800 30px/1.2 var(--mono); letter-spacing: .14em; color: var(--accent-2); }
.details-list { margin: 0 0 30px; text-align: left; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.details-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; text-align: right; font-weight: 600; }
.next { text-align: left; }
.next h2 { font-size: 18px; margin-bottom: 10px; }
.next ol { margin: 0; padding-left: 22px; color: var(--muted); display: grid; gap: 6px; font-size: 15px; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

.prose { max-width: 800px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 21px !important; margin: 36px 0 12px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 0 0 12px; }

.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.error-code { font: 800 clamp(96px, 16vw, 168px)/1 var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.error-page h1 { font-size: 28px; margin: 12px 0 10px; }
.error-page .lead { margin: 0 auto 28px; }

/* ---------- Вход ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding-block: 40px;
  background: radial-gradient(520px 360px at 50% 30%, rgba(255, 106, 43, .12), transparent 70%);
}
.auth-card { width: 100%; max-width: 400px; margin-inline: 20px; padding: 36px 32px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }

/* ---------- Админка ---------- */
.admin-wrap { padding-block: 32px 72px; }
.flash-list { display: grid; gap: 8px; margin-bottom: 18px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-top h1 { font-size: 28px; font-weight: 800; }
.search { display: flex; gap: 8px; }
.search input { width: 300px; padding-block: 9px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--muted); font-size: 14px; transition: border-color .2s, color .2s;
}
.tabs a:hover { color: var(--text); border-color: var(--border-2); }
.tabs a i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.tabs a span { font: 600 12px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text); }
.tabs a.active { background: var(--surface-2); border-color: var(--accent); color: var(--text); }

.status-new { --st: var(--accent); }
.status-in_progress { --st: var(--blue); }
.status-waitlist { --st: var(--yellow); }
.status-done { --st: var(--green); }
.status-rejected { --st: var(--dim); }

.orders { display: grid; gap: 14px; }
.order { display: grid; grid-template-columns: 1fr 340px; gap: 14px 32px; padding: 20px 24px; border-left: 3px solid var(--st); scroll-margin-top: calc(var(--header-h) + 16px); }
.order:target { box-shadow: 0 0 0 3px var(--accent-soft); }
.order-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-id { display: flex; align-items: center; gap: 12px; }
.order-id b { font: 700 16px var(--mono); letter-spacing: .08em; }
.status-pill {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--st);
  background: color-mix(in srgb, var(--st) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--st) 38%, transparent);
}
.order-head time { color: var(--dim); font: 13px var(--mono); }
.order-client { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tg-link { display: inline-flex; align-items: center; gap: 8px; font: 700 18px var(--mono); color: var(--blue); word-break: break-all; }
.tg-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border: 1px solid var(--border-2); border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); }
.icon-btn.copied { color: var(--green); border-color: var(--green); }
.order-meta { display: grid; gap: 4px; margin: 0 0 12px; }
.order-meta div { display: flex; gap: 12px; font-size: 14px; }
.order-meta dt { color: var(--dim); min-width: 56px; }
.order-meta dd { margin: 0; }
.order-comment {
  margin: 0 0 12px; padding: 10px 14px; font-size: 14px;
  background: var(--bg-2); border-left: 2px solid var(--border-2); border-radius: 0 8px 8px 0;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.order-tech { font: 12px var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.order-edit { display: grid; gap: 12px; align-content: start; }
.order-edit select, .order-edit textarea { padding: 9px 12px; font-size: 14px; }
.order-edit textarea { min-height: 76px; }
.order-actions { display: flex; justify-content: space-between; gap: 8px; }
.order-edit.dirty .btn-primary { box-shadow: 0 0 0 3px rgba(255, 106, 43, .35), 0 10px 28px -10px rgba(255, 106, 43, .7); }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero { padding-block: 56px 88px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 580px; }
  .float-card { left: 16px; bottom: -28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .os-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .order-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .order { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav .nav-extra { display: block; }
  .nav-toggle { display: inline-grid; }
  .hide-md { display: none; }
}

@media (max-width: 600px) {
  .section { padding-block: 68px; }
  .section-head { margin-bottom: 32px; }
  .plans, .features, .os-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .order-form { padding: 22px 18px; }
  .summary { padding: 18px; }
  .thanks { padding: 36px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats li { padding-right: 18px; margin-right: 18px; }
  .hero-stats b { font-size: 17px; }
  .terminal-body { font-size: 12px; min-height: 290px; padding-inline: 16px; }
  .float-card { left: 12px; right: 12px; bottom: -36px; }
  .custom-plan { padding: 18px; }
  .search, .search input { width: 100%; }
  .order { padding: 18px; }
}

@media (max-width: 440px) {
  .container { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 17px; }
  .brand .logo { width: 30px; height: 30px; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  .hero-cta .btn { width: 100%; }
}
