@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212, U+2215;
}

:root {
  --ink: #241f2a;
  --muted: #6e677d;
  --plum: #931680;
  --coral: #d92f5c;
  --coral-hover: #c0244f;
  --lilac: #ab7eea;
  --haze: #f7f7fc;
  --line: #dfdeed;
  --white: #fff;
  --radius: 14px;
  --wrap: 1200px;
  --head: "Onest", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

h1, h2, h3 {
  font-family: var(--head);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--plum);
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
}
p { margin: 0; text-wrap: pretty; }

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

.muted { color: var(--muted); }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--body);
  color: var(--white); background: var(--coral);
  border: 0; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--coral-hover); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 10px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 700 1.125rem/1 var(--head); letter-spacing: .06em;
}
.logo img { width: auto; height: 24px; }
.logo:hover { color: var(--ink); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgb(255 255 255 / .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__row { display: flex; align-items: center; gap: 32px; height: 68px; }
.top__nav { display: flex; gap: 26px; margin-right: auto; }
.top__nav a, .top__login {
  color: var(--ink); text-decoration: none; font-size: .9375rem;
}
.top__nav a:hover, .top__login:hover { color: var(--plum); }
.top__actions { display: flex; align-items: center; gap: 20px; }

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; z-index: -1;
  right: -12%; top: -10%;
  width: 70%; height: 120%;
  background:
    radial-gradient(closest-side at 60% 45%, rgb(171 126 234 / .13), transparent 75%),
    radial-gradient(closest-side at 30% 75%, rgb(239 129 106 / .08), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.hero__text h1 { max-width: 14ch; }
.lead { margin-top: 24px; font-size: 1.1875rem; color: #3b3542; max-width: 34em; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero__price { color: var(--muted); font-size: .9375rem; max-width: 22em; line-height: 1.45; }
.hero__price strong { color: var(--ink); font-weight: 600; }
.duo { position: relative; }
.frame.duo__field { overflow: visible; }
.duo__field img { border-radius: var(--radius); }
.duo__link { display: block; width: 100%; height: 56px; overflow: visible; }
.duo__link path {
  fill: none; stroke: var(--plum); stroke-width: 1.5;
  stroke-dasharray: 4 4; vector-effect: non-scaling-stroke;
}
.duo__replica {
  position: relative;
  width: 62%; margin-left: 4%;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(36 31 42 / .04), 0 18px 40px -20px rgb(80 40 110 / .25);
}
.duo__replica img { border-radius: 12px; border: 1px solid #efd98f; }
.duo figcaption { margin-top: 20px; max-width: 36em; }

.frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(36 31 42 / .04), 0 18px 48px -20px rgb(80 40 110 / .22);
}

figure { margin: 0; }
figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section--haze { background: var(--haze); }
.section h2 + * { margin-top: 20px; }

.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.steps li {
  counter-increment: step;
  padding: 28px 32px 0 0;
}
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font: 500 .875rem/1 var(--head); color: var(--plum); letter-spacing: .04em;
}
.steps p { margin-top: 10px; color: #3b3542; }

.trace__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 56px; align-items: start;
}
.section .trace__head h2 + * { margin-top: 0; }
.trace__text { display: grid; gap: 16px; color: #3b3542; }
.trace__text .muted { font-size: .9375rem; }
.wide { margin-top: 48px; }

.pin {
  position: absolute;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--plum); color: var(--white);
  font: 600 .875rem/1 var(--head);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgb(255 255 255 / .9);
}

.pair {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 40px 72px;
  justify-content: center;
}
.pair__item { width: 100%; max-width: 400px; margin-inline: auto; }
.pair figcaption { margin-top: 24px; font-size: 1rem; color: #3b3542; }
.pair figcaption h3 { color: var(--ink); }
.pair figcaption p { margin-top: 8px; }

.intro { max-width: 46em; }
.intro p { margin-top: 20px; color: #3b3542; }
.stack { margin-top: 48px; display: grid; gap: 20px; }
.stack figcaption { margin-top: 0; }

.facts {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px;
}
.facts > div { padding-top: 22px; border-top: 2px solid var(--ink); }
.facts p { margin-top: 10px; color: #3b3542; }

.section--price { background: var(--ink); color: var(--white); }
.section--price h2 { color: #e9b4dd; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.price__sum { margin-top: 20px; font-size: 1.25rem; color: #d5d0dc; }
.price__sum span {
  display: block;
  font: 650 clamp(3rem, 2rem + 4vw, 5.5rem)/1 var(--head);
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 8px;
}
.price__text p { color: #d5d0dc; max-width: 30em; margin-bottom: 28px; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.faq__list { border-top: 1px solid var(--line); }
.faq .faq__list { margin-top: 0; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  font: 600 1.0625rem/1.4 var(--head);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px;
  border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum);
  transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
summary:hover { color: var(--plum); }
details p { padding: 0 40px 24px 0; color: #3b3542; }

/* Form */
.request { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.request__text p { color: #3b3542; max-width: 24em; }
.form {
  background: var(--white);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 32px;
  display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-size: .9375rem; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); font-size: .8125rem; margin-left: 4px; }
.field input, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--white);
  border: 1px solid #cfcde0; border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field textarea:hover { border-color: #b7b3cc; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--plum);
  box-shadow: 0 0 0 3px rgb(147 22 128 / .14);
}
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: #3b3542; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); }
.form .btn { justify-self: start; }
.form__status { font-size: .9375rem; min-height: 1.4em; }
.form__status.is-error { color: #b0173f; }
.form__status.is-ok { color: #1c7a4a; }
.form.is-done .field, .form.is-done .check, .form.is-done .form__row, .form.is-done .btn { display: none; }
.form.is-done .form__status { font-size: 1.0625rem; }

/* Footer */
.foot { padding: 36px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.foot__row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; margin-right: auto; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--plum); }
.logo--small { font-size: 1rem; }

/* Privacy page */
.doc { padding: 64px 0 104px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 40px; color: var(--ink); }
.doc p, .doc li { color: #3b3542; }
.doc p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
.note { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--haze); border: 1px solid var(--line); }

@media (max-width: 1080px) {
  .top__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__text h1 { max-width: 18ch; }
  .trace__head, .faq, .request, .price { grid-template-columns: 1fr; gap: 36px; }
  .hero::before { width: 120%; right: -40%; top: 30%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__row { height: 60px; gap: 16px; }
  .top__actions { margin-left: auto; gap: 14px; }
  .hero { padding: 32px 0 64px; }
  .lead { font-size: 1.0625rem; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .pair, .facts { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .pin { width: 22px; height: 22px; font-size: .75rem; }
}

@media (max-width: 420px) {
  .top__login { display: none; }
}
