:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0b0e13;
  --surface: rgba(18, 22, 29, 0.86);
  --surface-strong: #12171e;
  --surface-muted: #171c24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f8fa;
  --text-soft: #b7bec8;
  --text-muted: #858e9b;
  --accent: #ff6a00;
  --accent-light: #ff9a3d;
  --accent-deep: #d94c00;
  --success: #66d19e;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --content-width: 1180px;
  --page-pad: clamp(18px, 4vw, 34px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 106, 0, 0.12), transparent 31rem),
    radial-gradient(circle at 13% 76%, rgba(255, 106, 0, 0.055), transparent 27rem),
    linear-gradient(180deg, #080a0e 0%, #07090d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(7, 9, 13, 0.22), transparent 35%, transparent 65%, rgba(7, 9, 13, 0.18));
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: #111;
  background: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 12px var(--page-pad) 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  min-height: 42px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: clamp(136px, 35vw, 200px);
  height: auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(255, 106, 0, 0.18);
}

.brand__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: baseline;
  line-height: 1;
}

.brand__name {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.brand__product {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.brand__product::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
}

.header-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(12, 15, 20, 0.64);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 750;
}

.header-chip__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(102, 209, 158, 0.1);
}

.hero {
  display: grid;
  gap: clamp(14px, 2.4vh, 22px);
  align-items: start;
  justify-items: center;
  width: min(100%, 720px);
  min-height: calc(100svh - 112px);
  margin: 0 auto;
  padding: clamp(14px, 2.6vh, 30px) var(--page-pad) 20px;
}

.hero__intro {
  text-align: center;
}

.hero__title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(29px, 7vw, 50px);
  font-weight: 900;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__title::after {
  display: block;
  width: 88px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 106, 0, 0));
  content: "";
}

.hero__subtitle {
  max-width: 560px;
  margin: 11px auto 0;
  color: var(--text-soft);
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.42;
  text-wrap: pretty;
}

.garage-preview {
  width: min(100%, 560px);
  margin: 0 auto;
}

.garage-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.garage-slot {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 64px;
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  opacity: 0.78;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 106, 0, 0.07), transparent 54%),
    rgba(13, 17, 23, 0.56);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.garage-slot__mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: rgba(255, 208, 170, 0.82);
  background: rgba(255, 106, 0, 0.06);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.08);
  font-size: 16px;
  font-weight: 900;
}

.garage-slot__label {
  color: rgba(210, 217, 226, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.garage-preview__caption {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 720;
  text-align: center;
}

.budget-cue {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin: -3px auto -2px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 999px;
  color: #ffbc83;
  background: rgba(255, 106, 0, 0.07);
  font-size: 11px;
  font-weight: 850;
}

.budget-cue::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.budget-step {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.085), rgba(255, 106, 0, 0.025)),
    rgba(12, 16, 22, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.22);
}

.budget-step::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.92), rgba(255, 188, 131, 0.12));
  content: "";
}

.budget-step__label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 106, 0, 0.24);
  border-radius: 999px;
  color: #ffbc83;
  background: rgba(255, 106, 0, 0.08);
  font-size: 12px;
  font-weight: 850;
}

.budget-step__title {
  margin: 8px 0 11px;
  font-size: clamp(21px, 4.6vw, 28px);
  line-height: 1.08;
}

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

.budget-option {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 11px 45px 11px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.14), rgba(255, 106, 0, 0.025) 38%),
    rgba(19, 24, 32, 0.94);
  text-decoration: none;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.budget-option::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  content: "";
}

.budget-option::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(255, 208, 170, 0.95);
  border-right: 2px solid rgba(255, 208, 170, 0.95);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.budget-option:hover {
  border-color: rgba(255, 106, 0, 0.62);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.2), rgba(255, 106, 0, 0.045) 38%),
    rgba(25, 30, 39, 0.98);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    0 13px 29px rgba(255, 106, 0, 0.12),
    0 12px 26px rgba(0, 0, 0, 0.2);
}

.budget-option:active {
  transform: translateY(1px) scale(0.99);
}

.budget-option--popular {
  border-color: rgba(255, 106, 0, 0.58);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.23), rgba(255, 106, 0, 0.055) 42%),
    rgba(22, 27, 35, 0.98);
}

.budget-option__main,
.budget-option__sub,
.budget-option__badge {
  display: block;
}

.budget-option__main {
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.12;
}

.budget-option__sub {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.budget-option__badge {
  justify-self: start;
  margin-bottom: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #111;
  background: #ffd0aa;
  font-size: 10px;
  font-weight: 900;
}

.budget-step__microcopy {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.telegram-fallback[hidden] {
  display: none !important;
}

.telegram-fallback {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 16px;
  background: rgba(255, 106, 0, 0.08);
  text-align: center;
}

.telegram-fallback__text {
  margin: 0 0 9px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.telegram-fallback__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.budget-option:focus-visible,
.telegram-fallback__button:focus-visible,
.footer-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(255, 165, 95, 0.9);
  outline-offset: 4px;
}

.site-footer {
  width: 100%;
  padding: 0 var(--page-pad) calc(22px + var(--safe-bottom));
}

.site-footer__inner {
  display: flex;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-copy {
  margin: 0;
  color: #636c78;
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  justify-content: flex-end;
}

.footer-link {
  color: #7e8793;
  border: 0;
  padding: 0;
  font-size: 11px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.footer-link:hover,
.footer-link--button:hover {
  color: var(--text-soft);
  text-decoration-color: currentColor;
}

.footer-link--button {
  font-family: inherit;
  text-decoration-line: underline;
}

/* Legal pages */
.legal-body {
  background: #090c11;
}

.legal-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 50px var(--page-pad) 80px;
}

.legal-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 22, 29, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.72;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-meta {
  margin: 0 0 28px !important;
  color: var(--text-muted) !important;
  font-size: 12px !important;
}

.required-value {
  display: inline;
  padding: 1px 5px;
  border: 1px dashed rgba(255, 154, 61, 0.52);
  border-radius: 5px;
  color: #ffd0a9;
  background: rgba(255, 106, 0, 0.08);
}

.legal-note {
  margin-top: 34px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 106, 0, 0.07);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(14px, 2.4vh, 20px);
  }

  .hero__title {
    font-size: clamp(29px, 7.6vw, 46px);
  }
}

@media (max-width: 767px) {
  :root {
    --page-pad: 16px;
  }

  body {
    background:
      radial-gradient(circle at 90% 15%, rgba(255, 106, 0, 0.12), transparent 22rem),
      linear-gradient(180deg, #080a0e 0%, #07090d 100%);
  }

  body::before {
    background-size: 36px 36px;
    opacity: 0.14;
  }

  .site-header {
    padding-top: 10px;
  }

  .site-header__inner {
    min-height: 40px;
  }

  .brand {
    flex-shrink: 1;
  }

  .brand__logo {
    width: clamp(124px, 35vw, 168px);
  }

  .header-chip {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding-top: 13px;
    padding-bottom: 18px;
  }

  .hero__intro {
    align-self: auto;
  }

  .hero__title {
    max-width: 520px;
    font-size: clamp(28px, 8.4vw, 39px);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .hero__title::after {
    width: 76px;
    height: 4px;
    margin-top: 9px;
  }

  .hero__subtitle {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.42;
  }

  .garage-slot {
    min-height: 58px;
    padding: 7px 6px;
    border-radius: 13px;
  }

  .garage-slots {
    gap: 7px;
  }

  .garage-slot__mark {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .garage-slot__label {
    font-size: 10.5px;
  }

  .garage-preview__caption {
    margin-top: 6px;
    font-size: 11px;
  }

  .budget-cue {
    min-height: 24px;
    margin-top: -4px;
    margin-bottom: -2px;
    padding: 4px 9px;
    font-size: 10.5px;
  }

  .budget-step {
    padding: 10px;
  }

  .budget-step__label {
    min-height: 27px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .budget-step__title {
    margin: 7px 0 9px;
    font-size: 23px;
  }

  .budget-options {
    gap: 8px;
  }

  .budget-option {
    min-height: 60px;
    padding: 10px 40px 10px 15px;
    border-radius: 15px;
  }

  .budget-option::after {
    right: 14px;
    width: 9px;
    height: 9px;
  }

  .budget-option__main {
    font-size: 17px;
  }

  .budget-option__sub {
    font-size: 11.5px;
  }

  .budget-option__badge {
    font-size: 9.5px;
  }

  .site-footer {
    padding-bottom: calc(14px + var(--safe-bottom));
  }

  .site-footer__inner {
    display: block;
    padding-top: 12px;
  }

  .footer-copy {
    margin-bottom: 10px;
  }

  .footer-links {
    gap: 8px 14px;
    justify-content: flex-start;
  }

}

@media (max-width: 370px) {
  .hero {
    gap: 12px;
    padding-top: 11px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 12.5px;
  }

  .garage-slot {
    min-height: 55px;
    padding: 7px 5px;
  }

  .budget-option {
    min-height: 60px;
  }

}

@media (min-width: 768px) and (max-height: 760px) {
  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .hero__title {
    font-size: clamp(34px, 5vw, 50px);
  }

  .hero__subtitle {
    margin-top: 15px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .wai-cookie-consent,
  .header-chip {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }
}
