/* Сайт Vespier по макету Figma (фреймы MacBook 1280, iPad 834, iPhone 393).
 *
 * Шрифты: Montserrat свой; Druk Wide («Vespier») и Versus (заголовок тёмного
 * блока) заменены контурами из макета — wordmark.svg и heading-losing.svg, а
 * Involve в навигации — Montserrat: файлов этих шрифтов в проекте нет.
 *
 * Мелкий текст намеренно крупнее макета: 8 px там читаются только в Figma.
 */
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/montserrat-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/montserrat-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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f5f8;
  --surface: #fcfcfb;
  --ink: #0f1115;
  --muted: #7e7e88;
  --muted-dark: #7a7a85;
  --faint: #9ba1ae;
  --accent: #ff7345;
  --navy: #0b286d;
  --black: #030303;
  --panel: rgba(77, 77, 77, .2);
  --panel-line: #1d1c1c;
  --card-shadow: 0 108px 43px rgba(41, 41, 41, .02), 0 61px 36px rgba(41, 41, 41, .06), 0 27px 27px rgba(41, 41, 41, .1), 0 7px 15px rgba(41, 41, 41, .12);
  --gutter: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.22 Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
/* Наведение на картинку не нужно ни одной из них, а браузер рисует поверх свой
   значок поиска по изображению: у обрезанной картинки он тоже оказывался обрезан. */
img, video { pointer-events: none; }
.contacts a, .foot-row > a { display: block; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { position: relative; z-index: 1; width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Кнопка */
.btn {
  display: inline-block; padding: 12.7px 20px; border-radius: 12.7px; background: var(--accent);
  color: var(--bg); font-size: 22.4px; font-weight: 600; line-height: 1.25; white-space: nowrap;
  box-shadow: 0 12px 24px rgba(255, 115, 69, .28); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(255, 115, 69, .36); }
.btn-lg { padding: 15px 22px; border-radius: 14.9px; font-size: 26.2px; }

/* Шары: координаты из макета, от центра страницы */
.orb { position: absolute; z-index: 0; max-width: none; pointer-events: none; user-select: none; }
.orb-1 { width: 978px; left: calc(50% - 640px - 387.5px); top: -145px; opacity: .67; transform: rotate(-19.66deg); }
.orb-2 { width: 2132px; left: calc(50% - 640px + 335.5px); top: -703.5px; opacity: .67; transform: rotate(4.62deg); }

/* Верх страницы */
.top { position: relative; overflow: clip; padding-bottom: 41px; background: var(--bg); }
/* Без z-index: он отрезал бы видео от фона, и multiply оставил бы белый прямоугольник. */
.top > .wrap { z-index: auto; }
.head { display: flex; align-items: center; justify-content: space-between; height: 150px; }
.head-logo { display: block; flex: none; }
.logo { display: block; width: 63px; height: 52px; transform: scaleY(-1); }
.nav { display: flex; gap: 25px; font-size: 20px; font-weight: 400; }
.nav a { transition: color .15s; }
.nav a:hover { color: var(--accent); }

.hero { margin-top: 34px; text-align: center; }
.hero h1 { width: min(524px, 100%); margin-inline: auto; }
.hero h1 img { width: 100%; height: auto; }
.lead { width: min(540px, 100%); margin: 32px auto 17px; font-size: 16.87px; line-height: 1.22; }
.lead span { display: block; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 143px; }
.fact { display: flex; gap: 15px; }
.fact img { flex: none; width: 46px; height: 46px; object-fit: contain; }
.fact b { display: block; margin-bottom: 8px; color: var(--muted); font-size: 16px; font-weight: 500; }
.fact p { color: var(--muted); font-size: 12.2px; font-weight: 500; line-height: 1.1; letter-spacing: .02em; }

/* Три карточки */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; margin-top: 71px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px 27px 27px; border-radius: 28px; background: var(--surface); box-shadow: var(--card-shadow); }
.card h2 { margin-bottom: 13px; font-size: 18.75px; font-weight: 600; text-align: center; }
.card .sub { margin-bottom: 10px; font-size: 13px; font-weight: 500; }
.card .note { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.card .note p + p { margin-top: 0; }
.bul li { font-size: 12px; line-height: 1.39; }
.bul li + li { margin-top: 2px; }
.bul { margin-bottom: 16px; }
.chart { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.card .chart { margin-top: auto; padding-top: 14px; }
.chart text { font-family: Montserrat, Arial, sans-serif; }
.funnel-h { margin-top: 16px; font-size: 12px; font-weight: 600; line-height: 1.39; }
.funnel-s { font-size: 12px; font-weight: 500; line-height: 1.39; }
.funnel-m { margin: 2px 0 4px; font-size: 10px; line-height: 1.39; }
.bar { display: flex; justify-content: space-between; align-items: center; height: 22px; margin-top: 3px; padding-inline: 6px; border-radius: 3px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.bar-1 { width: 100%; background: var(--accent); color: var(--surface); }
.bar-2 { width: 62%; background: rgba(255, 115, 69, .9); }
.bar-3 { width: 54%; background: rgba(255, 115, 69, .7); }
.bar-4 { width: 46%; background: rgba(255, 115, 69, .5); }
.tbl { width: 100%; margin-top: 4px; padding: 6px 10px; border-collapse: separate; border-radius: 9.3px; background: #f4f4f4; font-size: 11px; }
.tbl th { font-weight: 500; text-align: center; }
.tbl td { text-align: center; }
.tbl th + th, .tbl td + td { border-left: 1px solid #d9d9d9; }
.shot { width: min(205px, 100%); height: auto; margin: auto auto 0; border-radius: 18px; box-shadow: 0 12px 28px rgba(15, 17, 21, .28); }

/* Телефон с видео */
.demo { position: relative; width: min(402px, 100%); margin: 56px auto 0; aspect-ratio: 9 / 16; }
.demo video { width: 100%; height: 100%; mix-blend-mode: multiply; }

/* Тёмный блок */
.losing { position: relative; overflow: clip; padding: 127px 0 116px; background: var(--ink); color: var(--bg); }
.orb-3 { width: 390px; left: calc(50% - 640px - 143.5px); top: -42.5px; opacity: .52; transform: rotate(-13.64deg); }
/* Стекло: снаружи панели шар резкий, сквозь панель размыт. Маска стоит на
   неповёрнутой обёртке, как группа в макете: шар поворачивается внутри неё. */
.gl { position: absolute; z-index: 0; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.gl img { position: absolute; max-width: none; }
.gl-4a { left: calc(50% + 368px); top: 264.5px; width: 184px; height: 129.5px; -webkit-mask-image: url(assets/mask-orb4a.svg); mask-image: url(assets/mask-orb4a.svg); }
.gl-4a img { left: -271px; top: -515.5px; width: 879px; opacity: .43; filter: blur(2px); transform: rotate(-13.64deg); }
.gl-4b { left: calc(50% + 349.5px); top: -12.5px; width: 357.5px; height: 406.7px; -webkit-mask-image: url(assets/mask-orb4b.svg); mask-image: url(assets/mask-orb4b.svg); }
.gl-4b img { left: -252.5px; top: -238.5px; width: 879px; opacity: .52; transform: rotate(-13.64deg); }
.losing h2 { width: min(489px, 100%); margin: 0 auto 60px; }
.losing h2 img { width: 100%; height: auto; }
.panel { padding: 20px 30px 22px; border: 1.3px solid var(--panel-line); border-radius: 13px; background: var(--panel); }
.panel h3, .plain h3 { font-size: 19.9px; font-weight: 500; }
.panel p, .plain p { color: var(--muted-dark); font-size: 13.27px; }
.panel h3 + p { margin-top: 16px; }
.panel p + p { margin-top: 16px; }
.panel-wide p { max-width: 874px; }
.losing-grid { display: grid; grid-template-columns: 495px minmax(0, 1fr); gap: 36px; margin-top: 46px; }
.plain { margin-top: 46px; }
.plain h3 { margin-bottom: 20px; }
.chart-3 { margin-top: 0; }

/* Никакого чёрного ящика */
.box { position: relative; overflow: clip; min-height: 560px; padding: 121px 0 80px; background: var(--surface); }
.box h2 { font-size: 35.67px; font-weight: 500; letter-spacing: -.06em; }
.box .lead-2 { width: min(480px, 100%); margin-top: 8px; font-size: 13px; color: #000; }
.perks { width: min(400px, 100%); margin-top: 62px; }
.perks li { position: relative; padding-left: 29px; }
.perks li + li { margin-top: 34px; }
.perks img { position: absolute; left: 0; top: 0; width: 16px; height: 16px; object-fit: contain; }
.perks b { display: block; margin-bottom: 4px; color: #000; font-size: 14px; font-weight: 500; }
.perks p { color: var(--muted); font-size: 12px; font-weight: 500; }
/* Телефон целиком, без обрезки: прозрачный вырез (фон снимка убран), а не
   повёрнутая картинка под самодельной маской, которая срезала его по краям. */
.box { min-height: 760px; }
.box-phone {
  position: absolute; z-index: 0; top: 36px; left: calc(50% + 60px);
  width: min(488px, calc(50vw - 80px)); height: auto; max-width: none;
  filter: drop-shadow(0 28px 36px rgba(20, 22, 30, .22));
}

/* Цифры */
.proof { position: relative; overflow: clip; padding: 90px 0 45px; }
.proof-row { display: grid; grid-template-columns: 485px minmax(0, 1fr); gap: 74px; }
.proof h3 { color: var(--ink); font-size: 22.45px; font-weight: 600; }
.proof .t { margin-top: 26px; color: var(--muted); font-size: 14.97px; font-weight: 500; letter-spacing: -.03em; }
.proof .t + .t { margin-top: 18px; }
.cover { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 15px 14px; align-items: center; font-size: 11px; font-weight: 500; line-height: 1.39; }
.cover-l { text-align: center; }
.cover-b { display: flex; align-items: center; height: 26px; }
.cover-b i { display: block; height: 100%; border-radius: 5.4px; }
.cover-b span { flex: none; margin-left: 8px; }
.foot { color: var(--faint); font-size: 12.4px; font-weight: 500; }
.cover + .foot { margin-top: 12px; }
.proof-2 { margin-top: 70px; }
.proof-2 h3.big { font-size: 24.12px; }
.proof-2 .t { margin-top: 12px; }
.chart-5 { width: min(765px, 100%); margin: 24px auto 0; }
.foot-c { display: block; width: min(760px, 100%); margin: 12px auto 0; font-size: 11px; font-weight: 400; }

/* Скидки */
.refer { position: relative; z-index: 1; margin: 0 auto; width: min(1181px, calc(100% - 40px)); padding: 50px 75px 28px; border: .7px solid #8f8f8f; border-radius: 73px; background: rgba(125, 125, 125, .05); text-align: center; }
.refer h2 { font-size: 35.67px; font-weight: 500; letter-spacing: -.06em; }
.refer > p { margin-top: 14px; font-size: 15.43px; }
.friends { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; text-align: left; }
.friend { display: flex; gap: 14px; }
.friend > b { font-size: 102px; font-weight: 500; line-height: 1; }
.friend-3 > b { letter-spacing: -.08em; }
.friend div { padding-top: 12px; }
.friend strong { display: block; font-size: 35.8px; font-weight: 600; line-height: 1.2; }
.friend span { display: block; width: min(255px, 100%); font-size: 16.37px; }
.friend-3 span { width: auto; white-space: nowrap; }
.refer small { display: block; margin-top: 34px; color: var(--faint); font-size: 10.85px; text-align: left; }
.refer-wrap { position: relative; margin-top: 40px; }
.gl-7b { left: calc(50% + 429px); top: -262px; width: 256.1px; height: 612.2px; -webkit-mask-image: url(assets/mask-orb7b.svg); mask-image: url(assets/mask-orb7b.svg); }
.gl-7b img { left: -374.3px; top: -280.3px; width: 1135.6px; opacity: .67; transform: rotate(-24.37deg); }
.gl-7a { left: calc(50% + 352.5px); top: 1px; width: 234px; height: 262px; -webkit-mask-image: url(assets/mask-orb7a.svg); mask-image: url(assets/mask-orb7a.svg); }
.gl-7a img { left: -297.8px; top: -543.3px; width: 1135.6px; opacity: .52; filter: blur(2.55px); transform: rotate(-24.37deg); }
.gl-5b { left: calc(50% - 741px); top: -71.5px; width: 231.1px; height: 254.6px; -webkit-mask-image: url(assets/mask-orb5b.svg); mask-image: url(assets/mask-orb5b.svg); }
.gl-5b img { left: -143.5px; top: -145px; width: 553px; opacity: .67; transform: rotate(-23.97deg); }
.gl-5a { left: calc(50% - 594.5px); top: 1px; width: 120.5px; height: 182px; -webkit-mask-image: url(assets/mask-orb5a.svg); mask-image: url(assets/mask-orb5a.svg); }
.gl-5a img { left: -290px; top: -217.5px; width: 553px; opacity: .53; filter: blur(2.91px); transform: rotate(-23.97deg); }
.orb-6 { width: 355px; left: calc(50% - 561px); top: -86px; filter: blur(2.9px); opacity: .36; transform: rotate(-1.38deg); }

/* Подписка */
.plan { position: relative; overflow: clip; background: var(--black); color: var(--bg); text-align: center; }
.plan-mac { position: relative; width: min(1357px, 106%); left: 50%; transform: translateX(-49.5%); }
/* Стол на картинке обрывается: на широком экране края уходят в чёрный плавно. */
.plan-mac img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.plan-t { position: relative; z-index: 1; margin-top: -115px; padding-inline: 16px; }
.plan-t h2 { font-size: 35.67px; font-weight: 500; letter-spacing: -.06em; }
.plan-t p { margin-top: 6px; font-size: 24.12px; font-weight: 500; letter-spacing: -.06em; }

/* Частые вопросы: настоящий текст на странице для поиска и для людей, которым
   мало заголовков (картинки и графики выше поисковик читает хуже). */
.faq { padding: 90px 0; background: var(--surface); }
.faq h2 { font-size: 35.67px; font-weight: 500; letter-spacing: -.06em; }
.faq-list { width: min(820px, 100%); margin: 36px 0 0; }
.faq-i { padding: 22px 0; border-top: 1px solid rgba(15, 17, 21, .12); }
.faq-i:last-child { border-bottom: 1px solid rgba(15, 17, 21, .12); }
.faq dt { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.faq dd { margin: 8px 0 0; color: var(--muted-dark); font-size: 15px; font-weight: 500; line-height: 1.5; }
.faq a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.final { position: relative; overflow: clip; padding-top: 169px; background: var(--black); color: var(--bg); text-align: center; }
.orb-8 { width: 1108px; left: calc(50% - 554px); top: -307px; filter: blur(7.6px); opacity: .26; transform: rotate(-10.26deg); }
.final h2 { position: relative; z-index: 1; font-size: 88.47px; font-weight: 400; letter-spacing: -.02em; }
.final .btn { position: relative; z-index: 1; margin-top: 20px; }

.foot-site { position: relative; z-index: 1; margin-top: 142px; padding-bottom: 40px; color: var(--bg); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.foot-row .logo { width: 60px; height: 53px; }
.foot-site .nav { font-size: 20px; }
.contacts { display: flex; gap: 35px; }
.contacts img { width: 40px; height: 40px; object-fit: contain; }
.legal { margin-top: 28px; color: var(--faint); font-size: 12px; text-align: center; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--bg); }

/* Ноутбук поменьше */
@media (max-width: 1240px) {
  :root { --gutter: 40px; }
  .cards { gap: 24px; }
  .card { padding-inline: 20px; }
  .losing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .friends { gap: 28px; }
  .refer { padding-inline: 40px; }
}

/* Планшет: фрейм iPad 834 */
@media (max-width: 1000px) {
  .head { height: 120px; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 90px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .card:nth-child(3) { grid-column: 1 / -1; width: min(420px, 100%); margin-inline: auto; }
  .losing-grid, .proof-row { grid-template-columns: minmax(0, 1fr); }
  .losing-grid { gap: 30px; }
  .box { min-height: 560px; padding-bottom: 60px; }
  .box-phone { left: auto; right: 16px; width: clamp(240px, 36vw, 360px); top: 60px; }
  .friends { flex-wrap: wrap; }
  .refer { border-radius: 48px; }
  .final h2 { font-size: 72px; }
  .foot-row { flex-wrap: wrap; justify-content: center; }
}

/* Телефон: фрейм iPhone 393 */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .head { height: 84px; gap: 12px; }
  .logo, .foot-row .logo { width: 36px; height: 30px; }
  .nav { gap: 12px; font-size: 13px; }
  .foot-site .nav { font-size: 13px; }
  .hero { margin-top: 16px; }
  .lead { margin-top: 20px; font-size: 14px; }
  .lead span { display: inline; }
  .btn { font-size: 18px; padding: 11px 18px; }
  .btn-lg { font-size: 20px; padding: 13px 20px; }
  .orb-1 { width: 560px; left: -250px; top: -60px; }
  .orb-2 { width: 1200px; left: 120px; top: -380px; }
  .facts { margin-top: 48px; gap: 18px 14px; }
  .fact { gap: 8px; }
  .fact img { width: 34px; height: 34px; }
  .fact b { font-size: 13px; margin-bottom: 4px; }
  .fact p { font-size: 11px; }
  .cards { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .card:nth-child(3) { width: 100%; }
  .demo { margin-top: 40px; width: min(320px, 100%); }
  .losing { padding: 70px 0; }
  .losing h2 { margin-bottom: 36px; }
  .panel { padding: 16px; }
  .orb-3 { width: 220px; left: -90px; }
  .gl-4a { display: none; }
  .gl-4b { left: auto; right: -130px; top: -30px; transform: scale(.55); transform-origin: top right; }
  .box { min-height: 0; padding: 60px 0 calc(min(270px, 70vw) * 1.394 + 56px); }
  .box h2, .faq h2 { font-size: 28px; }
  .faq { padding: 56px 0; }
  .faq dt { font-size: 16px; }
  .perks { margin-top: 32px; }
  .box-phone { left: 50%; right: auto; top: auto; bottom: 24px; width: min(270px, 70vw); transform: translateX(-50%); }
  .proof { padding-top: 56px; }
  /* Девятнадцать подписей в ширину телефона не влезают читаемо: у графика своя прокрутка. */
  .scroll-x { overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; -webkit-overflow-scrolling: touch; }
  .chart-5 { width: 680px; max-width: none; }
  .chart-3 > text { font-size: 10px; }
  .refer { width: calc(100% - 24px); padding: 32px 18px 20px; border-radius: 32px; }
  .refer h2 { font-size: 26px; }
  .friends { flex-direction: column; gap: 22px; justify-content: flex-start; }
  .friend > b { font-size: 72px; min-width: 88px; }
  .friend div { padding-top: 6px; }
  .friend strong { font-size: 26px; }
  .friend span { font-size: 14px; }
  .plan-mac { width: 150%; transform: translateX(-50%); }
  .plan-t { margin-top: -40px; }
  .plan-t h2 { font-size: 24px; }
  .plan-t p { font-size: 18px; }
  .final { padding-top: 90px; }
  .final h2 { font-size: 52px; }
  .foot-site { margin-top: 90px; }
  .contacts { gap: 20px; }
  .contacts img { width: 32px; height: 32px; }
  .gl-5a, .gl-5b, .gl-7a, .gl-7b, .orb-6 { display: none; }
  .friend-3 span { white-space: normal; }
}

/* Уже фрейма iPhone 393: пять пунктов меню при отступе 12px упираются в край */
@media (max-width: 392px) {
  .nav, .foot-site .nav { gap: 8px; font-size: 12px; }
  /* 320px и уже: меню не влезает в строку и переносится, а не уходит за край */
  .head .nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}
