/* ITANDSTART — тёмный техно-стиль: фиолетово-бирюзовый градиент, Unbounded + Manrope */

:root {
  --bg: #0b0b1a;
  --bg-alt: #0f0f23;
  --surface: #14142c;
  --surface-2: #1b1b3a;
  --field: #0e0e22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf8;
  --muted: #a3a3c2;
  --violet: #7c5cff;
  --violet-2: #a08bff;
  --cyan: #22d3ee;
  --danger: #ff7a95;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --btn: linear-gradient(135deg, #6e4bff 0%, #4c5cf0 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --f-head: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }
h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 26, 0.75);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 17px/1 var(--f-head); letter-spacing: 0.02em; }
.logo:hover { color: var(--text); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current='page'] { color: var(--text); background: rgba(124, 92, 255, 0.18); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); padding: 5px 9px; border-radius: 999px; }
.lang a:hover { color: var(--text); }
.lang a[aria-current='true'] { background: var(--surface-2); color: var(--text); }
.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font: 600 15px/1.25 var(--f-body);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 8px 24px -8px rgba(110, 75, 255, 0.7); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 32px -8px rgba(110, 75, 255, 0.9); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { color: var(--text); border-color: var(--violet-2); background: rgba(124, 92, 255, 0.12); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }

.card-logos { display: inline-flex; gap: 6px; flex: none; }
.card-logo { width: 44px; height: 28px; border-radius: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 82% 18%, rgba(124, 92, 255, 0.36), transparent 60%),
    radial-gradient(520px 380px at 96% 78%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(520px 420px at 4% 0%, rgba(79, 107, 255, 0.18), transparent 60%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 72%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 24px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero__title { font-size: clamp(1.9rem, 4.3vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 0; }
.facts__item dt { font: 600 1.35rem/1.2 var(--f-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts__item dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; }
.code-window {
  background: linear-gradient(180deg, rgba(27, 27, 58, 0.94), rgba(18, 18, 40, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 90px -20px rgba(124, 92, 255, 0.5);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
}
.code-window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-window__bar i:nth-child(2) { background: #febc2e; }
.code-window__bar i:nth-child(3) { background: #28c840; }
.code-window__bar span { margin-left: 10px; font: 500 12px var(--f-mono); color: var(--muted); }
.code-window__code { margin: 0; padding: 22px 24px 28px; font: 400 14px/1.8 var(--f-mono); color: #d6d6f0; overflow-x: auto; }
.t-k { color: #c792ea; }
.t-f { color: #22d3ee; }
.t-s { color: #a5e075; }
.t-c { color: #8686ad; }
.hero__badge {
  position: absolute;
  left: -28px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(20, 20, 44, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__title { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.section__title--sm { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 24px; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.note { margin: 32px 0 0; font-size: 14px; color: var(--muted); max-width: 780px; }
.more { margin: 36px 0 0; text-align: center; }
.link-arrow { font-weight: 700; color: var(--text); padding-bottom: 3px; border-bottom: 1px solid var(--violet); }
.link-arrow:hover { color: var(--cyan); border-color: var(--cyan); }

/* Направления */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dir { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s, transform 0.25s; }
.dir:hover { border-color: rgba(124, 92, 255, 0.55); transform: translateY(-3px); }
.dir__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(124, 92, 255, 0.15); color: var(--violet-2); margin-bottom: 20px; }
.dir__icon svg { width: 24px; height: 24px; }
.dir__title { font-size: 1.08rem; margin-bottom: 8px; }
.dir__text { color: var(--muted); margin: 0; font-size: 15px; }

/* Процесс */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.process__step { position: relative; padding-top: 60px; }
.process__step::before { content: ''; position: absolute; top: 20px; left: 52px; right: -12px; height: 1px; background: linear-gradient(90deg, rgba(124, 92, 255, 0.8), transparent); }
.process__step:last-child::before { display: none; }
.process__num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); font: 600 14px var(--f-head); color: var(--cyan); }
.process__title { font-size: 1rem; margin-bottom: 6px; }
.process__text { font-size: 14px; color: var(--muted); margin: 0; }

/* Тарифы и каталог */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.price-grid--3 { grid-template-columns: repeat(3, 1fr); }
.catalog-group + .catalog-group { margin-top: 72px; }
.catalog-group__title { font-size: 1.25rem; margin-bottom: 28px; }
.svc { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.svc--featured {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 60px -30px rgba(124, 92, 255, 0.6);
}
.svc__badge { position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #a08bff 0%, #22d3ee 100%); color: #0b0b1a; font-size: 12px; font-weight: 800; }
.svc__name { font-size: 1.12rem; margin-bottom: 8px; }
.svc__desc { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.svc__features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.svc__features li { position: relative; padding-left: 26px; }
.svc__features li::before, .ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.svc__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.svc__term { font-size: 13px; color: var(--muted); }
.svc__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.price { font: 600 1.45rem/1.2 var(--f-head); white-space: nowrap; }
.price__cur { font: 700 0.95rem var(--f-body); color: var(--muted); }

/* Почему мы */
.why { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
.why__item h3 { font-size: 1.02rem; margin-bottom: 8px; padding-top: 16px; position: relative; }
.why__item h3::before { content: ''; position: absolute; top: 0; left: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--grad); }
.why__item p { color: var(--muted); margin: 0; font-size: 15px; }
.stack { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stack__title { font-size: 1rem; margin-bottom: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font: 500 13px var(--f-mono); color: #cfcfea; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 0.2s; }
.faq__item[open] { border-color: rgba(124, 92, 255, 0.5); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.02rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 26px;
  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 0.2s;
}
.faq__item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); }
.faq__a p { margin: 0; }

/* CTA */
.section--cta { padding-top: 0; }
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(520px 300px at 0% 0%, rgba(124, 92, 255, 0.38), transparent 60%),
    radial-gradient(520px 300px at 100% 100%, rgba(34, 211, 238, 0.24), transparent 60%),
    var(--surface);
}
.cta__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta__text p { color: var(--muted); margin: 0; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Внутренние страницы ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(124, 92, 255, 0.26), transparent 60%),
    radial-gradient(420px 260px at 100% 100%, rgba(34, 211, 238, 0.12), transparent 60%);
}
.page-hero__title { font-size: clamp(1.7rem, 3.6vw, 2.75rem); max-width: 920px; }
.page-hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 740px; margin: 0; }
.card-logos--hero { margin-top: 24px; }
.card-logos--hero .card-logo { width: 54px; height: 34px; }

/* Оплата */
.pay-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel__title { font-size: 1.22rem; margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 700; color: #d6d6ea; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3c2' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #8888aa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.28); }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.field__error { margin: 0; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 8px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); }
.pay-form .btn--block { margin-top: 16px; }
.pay-form__foot { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pay-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.summary__name { font-size: 1.15rem; margin-bottom: 8px; }
.summary__desc { color: var(--muted); font-size: 14.5px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.summary__row span:last-child { color: var(--text); text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.summary__total strong { font: 600 1.55rem/1.2 var(--f-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.secure__title { font-size: 1rem; margin-bottom: 10px; }
.secure p { font-size: 14px; color: var(--muted); }
.secure__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.secure__tags span { padding: 5px 10px; border-radius: 8px; background: rgba(34, 211, 238, 0.1); color: var(--cyan); font-size: 12px; font-weight: 800; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 54px; min-height: 36px; color: var(--muted); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font: 600 14px var(--f-head);
  color: var(--cyan);
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }

.modal { border: 0; padding: 0; background: transparent; width: min(520px, calc(100% - 32px)); color: var(--text); }
.modal::backdrop { background: rgba(5, 5, 15, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__body { position: relative; padding: 32px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; }
.modal__title { font-size: 1.35rem; padding-right: 40px; }
.modal__body p { color: var(--muted); }
.modal__order strong { font-family: var(--f-mono); color: var(--cyan); }
.modal__sum { color: var(--text) !important; font-weight: 700; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }

/* Форма: обязательные поля, сводка ошибок, итог на телефоне */
.req-mark { color: var(--cyan); margin-left: 3px; }
.form-alert { margin: 0 0 20px; padding: 12px 16px; border: 1px solid rgba(255, 122, 149, 0.5); border-radius: 12px; background: rgba(255, 122, 149, 0.08); color: var(--danger); font-size: 14px; font-weight: 600; }
.form-alert:empty { display: none; }
.pay-form__req { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.pay-form__req span { color: var(--cyan); }
.pay-form__total { display: none; }

/* Результат оплаты */
.result { padding: 96px 0 112px; background: radial-gradient(600px 320px at 50% 0%, rgba(124, 92, 255, 0.25), transparent 65%); }
.result__inner { max-width: 720px; text-align: center; }
.result__icon { display: inline-grid; width: 88px; height: 88px; margin-bottom: 28px; color: var(--cyan); filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.45)); }
.result--fail .result__icon { color: var(--danger); filter: drop-shadow(0 0 24px rgba(255, 122, 149, 0.4)); }
.result__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.result__lead { color: var(--muted); font-size: 1.08rem; }
.result__order { display: inline-block; margin: 8px 0 0; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.result__order strong { font-family: var(--f-mono); color: var(--cyan); white-space: nowrap; }
.result__reasons { margin: 32px auto 0; padding: 24px 28px; max-width: 520px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.result__subtitle { font-size: 1rem; margin-bottom: 14px; }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Контакты и реквизиты */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color 0.2s; }
a.contact-card:hover { border-color: rgba(124, 92, 255, 0.55); color: var(--text); }
.contact-card__label { font-size: 13px; color: var(--muted); font-weight: 700; }
.contact-card__value { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-card__link { margin-top: 6px; font-size: 14px; color: var(--violet-2); font-weight: 700; }
.contact-card--wide { grid-column: 1 / -1; }
.req-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.req-panel__head .section__title { margin: 0; }
.req { margin: 0; }
.req__row { display: grid; grid-template-columns: minmax(170px, 280px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.req__row:last-child { border-bottom: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Юридические документы */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-nav__title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; }
.legal-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.legal-nav a[aria-current='page'] { background: rgba(124, 92, 255, 0.16); color: var(--text); }
.legal { max-width: 800px; font-size: 15.5px; color: #d2d2e6; }
.legal h2 { font-size: 1.1rem; margin: 40px 0 14px; color: var(--text); }
.legal > h2:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #08081a; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin: 16px 0; max-width: 340px; }
.footer__brand .footer__small { font-size: 12.5px; margin-top: 10px; }
.footer__title { font: 800 12px var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.footer__links a { color: var(--text); }
.footer__links a:hover { color: var(--cyan); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.footer__legal p { margin: 0; }

/* ---------- Появление при прокрутке ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.dir-grid > :nth-child(3n + 2), .process > :nth-child(2), .why__grid > :nth-child(2n) { transition-delay: 0.08s; }
.dir-grid > :nth-child(3n + 3), .process > :nth-child(3) { transition-delay: 0.16s; }
.process > :nth-child(4) { transition-delay: 0.24s; }
.process > :nth-child(5) { transition-delay: 0.32s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 960px) {
  .header__actions { margin-left: auto; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: transparent;
    cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(11, 11, 26, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .code-window { transform: none; }
  .hero__badge { left: 16px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .process__step::before { display: none; }
  .price-grid--3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-side { position: static; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { border: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section--cta { padding-top: 0; }
  .section__head { margin-bottom: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header__cta { display: none; }
  .hero { padding: 40px 0 72px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { gap: 16px 28px; }
  .code-window__code { font-size: 12px; padding: 16px 18px 20px; }
  .dir-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .process__step { padding: 0 0 0 58px; min-height: 40px; }
  .why__grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 48px 0 40px; }
  .panel { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .req__row { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 28px 20px; border-radius: 22px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .svc { padding: 24px 20px; }
}
@media (max-width: 960px) {
  .pay-form__total { display: grid; gap: 4px; margin: -4px 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
  .pay-form__total strong { font: 600 1.15rem/1.2 var(--f-head); color: var(--text); white-space: nowrap; }
}
@media (max-width: 600px) {
  /* Цели нажатия не меньше 44px по высоте */
  .btn { min-height: 44px; }
  .lang a { position: relative; }
  .lang a::after { content: ''; position: absolute; left: 0; right: 0; top: -7px; bottom: -7px; }
  .footer__links { gap: 0; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__links li:not(:has(a)) { padding: 10px 0; }
  .result { padding: 64px 0 80px; }
  .result__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .lang a { padding: 5px 7px; }
  .logo__text { font-size: 15px; }
}

/* Переносы только на узких экранах, где длинные слова иначе не помещаются */
@media (max-width: 600px) {
  h1, h2, h3 { hyphens: auto; }
}

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