@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #050b17;
  --panel: #0b1729;
  --panel-hi: #0d1e33;
  --line: rgba(139, 180, 214, 0.15);
  --line-strong: rgba(139, 180, 214, 0.28);
  --text: #e9f4ff;
  --muted: #9cb1c6;
  --muted-2: #8399af;
  --accent: #54d9ff;
  --accent-ink: #04121d;
  --ok: #43d6a0;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;

  font-family: "Golos Text", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  font-synthesis-weight: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 16% -8%, rgba(84, 217, 255, 0.12), transparent 65%)
      no-repeat,
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a[href],
button,
summary,
select,
label:has(input[type="radio"]),
label:has(input[type="checkbox"]) {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
}

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

::selection {
  background: rgba(84, 217, 255, 0.28);
}

.wrap {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-m) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}

.brand-mark--sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.header-tg {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.header-tg:hover {
  border-color: rgba(84, 217, 255, 0.5);
  background: rgba(84, 217, 255, 0.07);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hero-kicker {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 54ch;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

.hero-index {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.hero-index-title {
  margin: 16px 0 6px;
  color: var(--muted-2);
  font-size: 12px;
}

.hero-index ul {
  display: grid;
  gap: 2px;
}

.hero-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-index a:hover {
  color: var(--text);
}

.code {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(100deg, #8feaff 0%, #57a8ff 100%);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(84, 217, 255, 0.4);
  background: rgba(84, 217, 255, 0.07);
}

.btn-block {
  width: 100%;
}

/* ---------- section head ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 40ch;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- builder ---------- */

.builder {
  padding: clamp(32px, 5vw, 60px) 0;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.step legend,
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.builder-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  color: var(--muted);
  font-size: 14px;
}

.builder-state-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.builder-state-text {
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.6;
}

.builder-state .btn {
  margin-top: 6px;
}

/* ---------- options ---------- */

.options {
  display: grid;
  gap: 8px;
}

.options--locations {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.options--terms {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.options--plans {
  grid-template-columns: 1fr;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(11, 23, 41, 0.7);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover {
  border-color: var(--line-strong);
  background: rgba(15, 32, 55, 0.85);
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option:has(input:checked) {
  border-color: rgba(84, 217, 255, 0.55);
  background: linear-gradient(
    180deg,
    rgba(84, 217, 255, 0.1),
    rgba(84, 217, 255, 0.02)
  );
}

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

.option-name {
  font-size: 14px;
  font-weight: 600;
}

.option--term {
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
}

.option--plan {
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}

.option-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
}

.plan-spec {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.plan-price {
  margin-left: auto;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- custom ranges ---------- */

.custom {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
}

.custom[hidden] {
  display: none;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
}

.range-label {
  color: var(--muted);
  font-size: 13px;
}

.range-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.range-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 32px;
  margin: 0;
  accent-color: var(--accent);
}

/* ---------- select ---------- */

.select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239cb1c6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  font-size: 14px;
  appearance: none;
}

.select:hover {
  border-color: var(--line-strong);
}

/* ---------- summary ---------- */

.summary {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--panel-hi), #0a1626);
  box-shadow: 0 20px 48px rgba(2, 8, 18, 0.55);
}

.summary-title {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.summary-list dt {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.summary-list dd {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-total span {
  color: var(--muted-2);
  font-size: 12px;
}

.summary-total strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.summary-hint {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------- locations ---------- */

.locations {
  padding: clamp(32px, 5vw, 60px) 0;
}

.loc-list {
  border-top: 1px solid var(--line);
}

.loc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.loc-name {
  font-size: 15px;
  font-weight: 600;
}

.loc-region {
  color: var(--muted-2);
  font-size: 13px;
  text-align: right;
}

.loc-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.loc-state--on .dot {
  background: var(--ok);
}

/* ---------- process ---------- */

.process {
  padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 96px);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 40px;
}

.process-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
}

.process-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.process-list h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.process-list p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  color: var(--muted-2);
  font-size: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(156, 177, 198, 0.35);
}

.footer-inner a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.footer-copy {
  margin-left: auto;
}

/* ---------- dialog ---------- */

.dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: #0a1728;
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.dialog::backdrop {
  background: rgba(3, 8, 16, 0.72);
}

.dialog-inner {
  padding: 22px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dialog-head h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease,
    background-color 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.order-text {
  max-height: 40dvh;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #061020;
  color: #cfe6f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dialog-actions .btn {
  flex: 1 1 180px;
}

.dialog-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.55;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .builder-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 960px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-index ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0 16px;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 8px 16px;
    padding: 10px 0 0;
    min-height: 0;
  }

  .brand {
    margin-right: auto;
  }

  .header-tg {
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding: 2px 0 8px;
    border-top: 1px solid var(--line);
    gap: 18px;
    font-size: 13px;
  }

  .options--locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .options--terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .loc-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .loc-region {
    display: none;
  }

  .summary-list > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .summary-list dd {
    text-align: left;
  }

  .footer-copy {
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .options--locations {
    grid-template-columns: 1fr;
  }

  .options--terms {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
