/* Токены из Figma (NEW-PROJECT). Gilroy коммерческий — если его нет в системе,
   ponytail: падаем на Manrope (ближайший бесплатный гротеск); купите лицензию
   Gilroy и положите woff2 рядом, чтобы получить 1:1 с макетом. */
:root {
  --blue: #285cb6;
  --ink: #09090c;
  --text: #161616;
  --muted: #959595;
  --blue-gray: #92a2bb;
  --soft: #f9f9f9;
  --line: #e8e8e8;
  --card-line: #ececec;
  --font-display: "Gilroy", "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --gutter: 16px;
  --panel-inset: 16px;
  --section-gap: 72px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --panel-inset: 24px; --section-gap: 88px; } }
@media (min-width: 1200px) { :root { --gutter: 72px; --section-gap: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); line-height: normal; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, figure, blockquote { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1296px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.panel { max-width: 1392px; margin: var(--section-gap) var(--panel-inset) 0; background: var(--soft); border: 1px solid var(--line); border-radius: 36px; position: relative; }
@media (min-width: 1440px) { .panel { margin-inline: auto; } }

.logo { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.4; color: var(--blue); letter-spacing: -0.01em; }
.title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); text-align: center; }
.br-mobile { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.btn--primary { background: var(--blue); color: #fff; font-weight: 600; border-radius: 16px; }
.btn--primary:hover { background: #1f4c9b; }
.btn--primary:active { transform: translateY(1px); }
.btn--outline { border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 8px; padding: 8px 16px; font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.4; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--lg { height: 72px; padding: 0 64px; font-size: 24px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1312px, 100% - 2 * var(--gutter)); }
.nav { display: flex; gap: 36px; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--blue); }
.header__burger, .header__user { display: none; }

@media (max-width: 1023px) {
  .header { background: rgba(249, 249, 249, .95); }
  .header__inner { height: 65px; }
  .header .logo { font-size: 28px; position: absolute; left: 50%; transform: translateX(-50%); }
  .header__login { display: none; }
  .header__user { display: block; color: var(--blue); }
  .header__burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 32px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; }
  .header__burger span { display: block; height: 2px; width: 24px; background: var(--blue); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav { position: fixed; inset: 65px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: #fff; box-shadow: 0 16px 32px rgba(9, 9, 12, .08); font-size: 18px; color: var(--ink);
         opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { padding-inline: var(--panel-inset); }
.hero__card { max-width: 1392px; height: 822px; margin-inline: auto; position: relative; overflow: hidden; border-radius: 36px; border: 1px solid var(--line); background: #f6f6f6; container-type: size; display: grid; place-items: center; }
.hero__card::before { content: ""; position: absolute; inset: 0; background: url("images/circuit.webp") center / cover; opacity: .045; pointer-events: none; }

.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; margin-top: -20px; }
.hero__icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; filter: drop-shadow(8.3px 8.3px 10.4px rgba(65, 65, 65, .25)); margin-bottom: 48px; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.2vw, 72px); line-height: 1; letter-spacing: -0.01em; }
.hero__content p { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); color: var(--muted); max-width: 798px; margin-top: 24px; line-height: 1.25; }
.hero__content .btn { margin-top: 48px; }

/* Декор позиционируется от центра карточки в долях её размера (cqw/cqh),
   поэтому одинаково ложится и на 1392×822, и на мобильные 358×530. */
.hero__decor { position: absolute; inset: 0; pointer-events: none; }
.hero__decor > * { --s: 1; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(var(--s)) rotate(var(--r, 0deg)); }
.glass { width: 172px; height: 100px; --x: -36.6cqw; --y: -35.5cqh; }
.glass > * { position: absolute; }
.glass--clock, .glass--coins, .glass--chart { display: flex; padding: 12.8px; border-radius: 19.2px; border: .8px solid #fff; background: rgba(255, 255, 255, .2); box-shadow: 6.6px 6.6px 16.6px rgba(65, 65, 65, .25); }
.float, .ring { opacity: .55; }
.float { background: #fff; border-radius: 12.8px; padding: 17.6px; box-shadow: 6.6px 6.6px 16.6px rgba(65, 65, 65, .25); font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.float--timer { width: 235px; --x: 36.1cqw; --y: -34cqh; --r: 9.35deg; }
.float--price { --x: -36.7cqw; --y: 36cqh; --r: -4.28deg; }
.float__status { display: flex; gap: 6.4px; align-items: center; color: var(--blue); font-size: 12.8px; }
.float hr { border: 0; border-top: .8px solid #e9eeff; margin: 12.8px 0; }
.float__label { color: var(--blue-gray); font-size: 12.8px; }
.float__price { font-weight: 700; font-size: 25.6px; margin-top: 5px; }
.timer { display: flex; gap: 6.4px; margin-top: 6.4px; }
.timer span { display: flex; flex-direction: column; align-items: center; font-weight: 400; font-size: 11.2px; color: var(--blue-gray); }
.timer b, .timer i { font-style: normal; font-weight: 700; font-size: 25.6px; color: var(--blue); }
.ring { width: 130px; height: 130px; border-radius: 50%; background: #fff; filter: drop-shadow(8.8px 8.8px 11px rgba(65, 65, 65, .25)); --x: 40.6cqw; --y: 33.2cqh; --r: 9.93deg; }
.ring__track { position: absolute; inset: 13.8px; width: 102.6px; }
.ring__arc { position: absolute; left: 8.7px; top: 28.3px; width: 56.1px; }
.ring span { position: absolute; left: 48px; top: 54px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #71a5ff; }

/* Три «стеклянные» иконки — одна группа, внутренние координаты из макета */
.hero__decor .glass { background: none; border: 0; box-shadow: none; padding: 0; }
.glass > .glass--clock { left: 0; top: 0; transform: rotate(-7.12deg); opacity: .55; }
.glass > .glass--coins { left: 97px; top: 4px; transform: rotate(14.52deg); opacity: .55; }
.glass > .glass--chart { left: 48px; top: 23px; transform: rotate(2.02deg); padding: 12.4px; }

@media (max-width: 1199px) {
  .hero__card { height: 720px; }
  .hero__decor > * { --s: .72; }
}
@media (max-width: 767px) {
  .hero__card { height: 530px; border-radius: 32px; }
  .hero__decor > * { --s: .45; }
  .glass { --y: -41.9cqh; }
  .float--timer { --y: -42.8cqh; }
  .float--price { --x: -35cqw; --y: 42.6cqh; }
  .ring { --x: 36cqw; --y: 40.8cqh; }
  .hero__icon { width: 48px; height: 48px; margin-bottom: 32px; }
  .hero__icon img { width: 26px; height: 26px; }
  .hero__content .btn { margin-top: 40px; }
  .btn--lg { height: 52px; padding: 0 24px; font-size: 18px; border-radius: 12px; }
}

/* ---------- Как работает ---------- */
.how { margin-top: var(--section-gap); }
.how__board { margin: 48px 12px 0; border: 1px solid var(--line); border-bottom: 0; position: relative; }
.how__steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.how__steps li { position: relative; padding: 36px 16px 56px 36px; display: flex; flex-direction: column; gap: 16px; }
.how__steps li + li { border-left: 1px solid var(--line); }
.how__steps li::before, .how__steps li:last-child::after { content: ""; position: absolute; top: -12.5px; left: -12.5px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.how__steps li:last-child::after { left: auto; right: -12.5px; }
.how__steps h3 { font-weight: 600; font-size: 24px; color: var(--text); margin-bottom: -8px; }
.how__steps p { font-size: 16px; color: var(--muted); max-width: 242px; }
.how__preview { padding: 0 36px; }
.how__preview img { width: 100%; height: auto; border-radius: 40px 40px 0 0; }

@media (max-width: 1023px) {
  .how__board { border: 0; margin: 40px 0 0; }
  .how__steps { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .how__steps li { padding: 0; align-items: center; text-align: center; gap: 12px; }
  .how__steps li + li { border: 0; }
  .how__steps li::before, .how__steps li:last-child::after { display: none; }
  .how__steps h3 { font-size: 20px; margin-bottom: -4px; }
  .how__steps p { font-size: 15px; }
  .how__preview { padding: 0; margin-top: 40px; }
  .how__preview img { border-radius: 24px 24px 0 0; }
}
@media (max-width: 767px) { .br-mobile { display: inline; } .how__steps h3 { font-size: 18px; } .how__steps p { font-size: 14px; } }

/* ---------- Кому подойдет ---------- */
.audience { margin-top: var(--section-gap); }
.audience__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 359px)); justify-content: center; gap: 32px 64px; margin-top: 42px; }
.audience__card { background: rgba(234, 234, 234, .28); border-radius: 24px; padding: 31px 32px; display: flex; flex-direction: column; font-family: var(--font-display); }
.audience__card h3 { font-weight: 600; font-size: 28px; line-height: 33px; color: #000; padding-left: 18px; border-left: 2px solid var(--accent); }
.audience__card p { font-size: 17px; line-height: 27.3px; color: #343434; margin: 8px 0 32px; max-width: 295px; }
.audience__card strong { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 28px; line-height: 28px; color: #000; }
.audience__card strong i { width: 4.3px; height: 4.5px; border-radius: 50%; background: var(--accent); }
.audience__card strong em { font-style: normal; color: var(--accent); margin-right: -6px; }
.audience__card span { font-size: 16px; line-height: 27.3px; color: var(--blue-gray); margin-top: 4px; text-transform: lowercase; }
.audience__card:nth-child(1) { --accent: #285cb6; }
.audience__card:nth-child(2) { --accent: #0ab816; }
.audience__card:nth-child(3) { --accent: #b68928; }

@media (max-width: 1199px) { .audience__grid { gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .audience__grid { grid-template-columns: minmax(0, 560px); gap: 24px; margin-top: 32px; }
  .audience__card { padding: 24px 16px; }
  .audience__card h3 { font-size: 22px; line-height: 28px; padding-left: 10px; }
  .audience__card p { font-size: 15px; line-height: 1.4; margin: 8px 0 20px; max-width: none; }
  .audience__card strong { font-size: 22px; }
  .audience__card span { font-size: 14px; }
}

/* ---------- Панели: общий заголовок ---------- */
.panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; position: relative; }
.panel__head .title { text-align: left; }
.panel__head p { font-size: 24px; color: var(--muted); }
@media (max-width: 1199px) {
  .panel__head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .panel__head .title { text-align: center; }
  .panel__head p { font-size: 18px; max-width: 320px; }
}

/* ---------- Преимущества ---------- */
.adv { padding: 47px; }
.adv__sparkle { position: absolute; right: -26px; top: -16px; transform: rotate(23.21deg); }
.adv__grid { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 44px; }
.adv__card { --basis: 512; flex: 0 0 calc((100% - 32px) * var(--basis) / 1264); height: 410px; background: #fff; border-radius: 32px; overflow: hidden; position: relative; }
.adv__card--wide { --basis: 752; }
.adv__img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.adv__card--side .adv__img { left: auto; right: 0; width: min(427px, calc(100% - 294px)); height: 100%; object-fit: cover; object-position: left top; }
.adv__logo { position: absolute; left: 36px; top: 36px; }
.adv__text { position: absolute; left: 36px; right: 36px; bottom: 36px; display: flex; flex-direction: column; gap: 8px; }
.adv__card--side .adv__text { right: auto; width: 258px; }
.adv__text h3 { font-weight: 600; font-size: 24px; color: var(--text); }
.adv__text p { font-size: 16px; color: var(--muted); max-width: 440px; }

@media (max-width: 1023px) {
  .adv { padding: 32px 12px 12px; }
  .adv__sparkle { display: none; }
  .adv__grid { flex-direction: column; gap: 24px; margin-top: 28px; }
  .adv__card { flex: none; height: auto; border-radius: 24px; }
  .adv__img, .adv__card--side .adv__img { position: static; width: 100%; height: auto; }
  .adv__card--side .adv__img { max-height: 340px; object-fit: cover; object-position: left top; }
  .adv__logo { display: none; }
  .adv__text, .adv__card--side .adv__text { position: static; width: auto; padding: 16px 24px 28px; }
  .adv__text h3 { font-size: 20px; }
  .adv__text p { font-size: 14px; }
}

/* ---------- Отзывы ---------- */
.reviews { margin-top: var(--section-gap); }
.reviews .title { margin-bottom: 48px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reviews__col { display: flex; flex-direction: column; gap: 32px; }
.review { background: var(--soft); border: 1px solid var(--card-line); border-radius: 36px; padding: 36px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.review--tall { min-height: 450px; }
.review blockquote { font-size: 20px; color: #3b3b3b; }
.stars { display: flex; gap: 12px; }
.stars img { width: 24px; height: 24px; }
.author { display: flex; gap: 12px; margin-top: 24px; }
.author img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.author p { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--muted); }
.author b { font-weight: 600; font-size: 20px; color: var(--ink); }
.reviews__photo { flex: 1; min-height: 300px; border-radius: 36px; overflow: hidden; }
.reviews__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

@media (max-width: 1199px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .reviews__col { display: contents; }
  .review, .review--tall { min-height: 0; border-radius: 24px; }
  .reviews__photo { display: none; }
}
@media (max-width: 767px) {
  .reviews .title { margin-bottom: 32px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .review { padding: 24px; gap: 24px; }
  .review blockquote { font-size: 17px; }
  .author b { font-size: 16px; }
  .author p { font-size: 12px; }
  .author img { width: 36px; height: 36px; border-radius: 8px; }
}

/* ---------- Как подключиться ---------- */
.connect { padding: 48px; }
.connect__badge { position: absolute; right: 35px; top: -42px; padding: 16px; box-sizing: content-box; background: #fff; border-radius: 24px; filter: drop-shadow(0 0 5px rgba(128, 128, 128, .3)); transform: rotate(-7.12deg); }
.connect__steps { display: flex; align-items: flex-start; margin-top: 48px; }
.connect__steps li { flex: 0 0 calc(20% + 30px); margin-left: -30px; height: 80px; background: #fff; border-radius: 8px; box-shadow: 0 0 10.1px rgba(128, 128, 128, .1); border-top: 4px solid var(--c); display: flex; align-items: center; gap: 8px; padding: 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--blue-gray); }
.connect__steps li:first-child { flex-basis: 20%; margin-left: 0; }
.connect__steps li:nth-child(1) { --c: #ecba1a; }
.connect__steps li:nth-child(2) { --c: #0f9d57; margin-top: 13px; }
.connect__steps li:nth-child(3) { --c: #18c4d1; margin-top: 26px; }
.connect__steps li:nth-child(4) { --c: #fd7542; margin-top: 39px; }
.connect__steps li:nth-child(5) { --c: #7e36fd; margin-top: 52px; }
.connect__steps .is-active { color: #ecba1a; }

@media (max-width: 1199px) {
  .connect { padding: 32px 24px; }
  .connect__badge { display: none; }
  .connect__steps { flex-direction: column; align-items: stretch; gap: 24px; padding: 0; margin-top: 32px; }
  .connect__steps li, .connect__steps li:first-child { flex: none; margin: 0 !important; border-radius: 16px; border-top-width: 6px; }
}

/* ---------- Форма ---------- */
.lead { max-width: 1392px; margin: var(--section-gap) var(--panel-inset) 0; min-height: 533px; padding: 48px; border-radius: 36px; overflow: hidden; position: relative; background: linear-gradient(110.67deg, #e7f0ff 0%, #fff 100%); }
@media (min-width: 1440px) { .lead { margin-inline: auto; } }
.lead__body { position: relative; z-index: 1; width: min(528px, 100%); }
.lead h2 { font-family: var(--font-display); font-weight: 600; font-size: 36px; }
.lead__sub { font-size: 24px; color: var(--blue-gray); margin-top: 8px; }
.lead__form { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.lead__form input { height: 77px; padding: 0 32px; border: 1px solid var(--card-line); border-radius: 24px; background: #fff; font-weight: 600; font-size: 20px; color: var(--ink); transition: border-color .2s; }
.lead__form input::placeholder { color: var(--muted); }
.lead__form input:focus { outline: none; border-color: var(--blue); }
.lead__form input:user-invalid { border-color: #e11d1d; }
.btn--form { height: 77px; font-size: 20px; }
.btn--form:disabled { opacity: .7; cursor: progress; }
.lead__status { font-size: 16px; color: var(--blue); min-height: 1em; margin-top: -16px; }
.lead__status:empty { display: none; }
.lead__mock { position: absolute; left: 659px; top: 48px; width: 733px; max-width: none; }

@media (max-width: 1099px) {
  .lead { min-height: 0; background: linear-gradient(160deg, #e7f0ff 0%, #e3f1fd 100%); }
  .lead__mock { display: none; }
  .lead__body { margin-inline: auto; text-align: center; }
}
@media (max-width: 767px) {
  .lead { padding: 32px; border-radius: 32px; }
  .lead h2 { font-size: 24px; }
  .lead__sub { font-size: 16px; }
  .lead__form { gap: 24px; margin-top: 24px; }
  .lead__form input { height: 52px; padding: 0 24px; border-radius: 16px; font-size: 16px; }
  .btn--form { height: 52px; font-size: 16px; border-radius: 12px; }
  .lead__status { margin-top: -8px; font-size: 14px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--soft); margin-top: var(--section-gap); padding: 36px 0; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 50px; }
.footer__logo { font-weight: 900; font-size: 36px; }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 16px; }
.footer__contact span { color: #b4b4b4; }
.footer__contact a { font-weight: 600; color: var(--blue); }
.footer__social { display: flex; gap: 24px; }
.footer__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; transition: transform .2s; }
.footer__social a:hover { transform: translateY(-2px); }
.footer__social a img:not([width]) { width: 56.2px; height: 56.2px; max-width: none; margin: -10px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #dcdcdc; font-size: 16px; color: #b4b4b4; }
.footer__bottom a:hover { color: var(--blue); }

@media (max-width: 1023px) {
  .footer__top { display: grid; grid-template-columns: 1fr auto; gap: 32px 16px; }
  .footer__social { gap: 16px; order: 1; }
  .footer__contact { order: 2; }
  .footer__contact:nth-of-type(1) { align-items: flex-start; }
}
@media (max-width: 767px) {
  .footer__logo { font-size: 32px; }
  .footer__contact { font-size: 14px; }
  .footer__contact span { font-size: 12px; }
  .footer__bottom { flex-direction: column-reverse; align-items: center; text-align: center; font-size: 12px; border-top: 0; margin-top: 40px; padding-top: 0; }
  .footer__bottom a { padding-bottom: 12px; border-bottom: 1px solid #dcdcdc; width: 100%; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
