/* Ёмко — лендинг. Палитра и шрифты — направление «Импульс» (yomko#15). */

@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/Unbounded.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f7f7fb;
  --card: #ffffff;
  --ink: #17171d;
  --muted: #686878;
  --line: #dcdce6;
  --soft: #eaeaff;
  --accent: #4847e8;
  --accent-ink: #ffffff;
  --button: #4847e8;
  --display: 'Unbounded', system-ui, sans-serif;
  --text: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 23px;
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17171d;
    --card: #202027;
    --ink: #f1f1f7;
    --muted: #b8b8ca;
    --line: #34343f;
    --soft: #2a2a40;
    --accent: #b1afff;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow > * {
  max-width: 780px;
}

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

/* ─── Шапка */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font: 700 26px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.logo-sm {
  font-size: 22px;
}

.top-nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
}

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

/* ─── Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font: 600 17px/1 var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px -12px rgba(72, 71, 232, 0.7);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(72, 71, 232, 0.8);
}

.btn .ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.btn-soon {
  background: var(--soft);
  color: var(--accent);
  box-shadow: none;
  cursor: default;
}

.btn-soon:hover {
  transform: none;
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: #4847e8;
  box-shadow: none;
}

.btn-light.btn-soon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Заголовки */

.kicker {
  font: 500 13px/1.4 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.h1 {
  font: 600 clamp(44px, 9vw, 84px) / 1.04 var(--display);
  letter-spacing: -0.045em;
}

.h1 em,
.scr-title em {
  font-style: normal;
  color: var(--accent);
}

.h1-sm {
  font-size: clamp(34px, 6vw, 52px);
}

.h2 {
  font: 600 clamp(28px, 4.6vw, 44px) / 1.12 var(--display);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

h3 {
  font: 600 19px/1.35 var(--text);
  margin-bottom: 8px;
}

/* ─── Первый экран */

.hero {
  padding: 40px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy .lead {
  margin-top: 26px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 34px;
}

.trial {
  font-size: 15px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 110px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ─── Макет телефона */

.phone {
  justify-self: center;
  width: min(340px, 100%);
  padding: 12px;
  border-radius: 46px;
  background: #17171d;
  box-shadow: 0 50px 80px -40px rgba(23, 23, 29, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(2.5deg);
}

.screen {
  border-radius: 36px;
  background: #f7f7fb;
  color: #17171d;
  padding: 22px 20px 18px;
  overflow: hidden;
}

.scr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-xs {
  font-size: 18px;
}

.logo-xs span {
  color: #4847e8;
}

.scr-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #70707c;
}

.scr-title {
  margin-top: 26px;
  font: 600 27px/1.08 var(--display);
  letter-spacing: -0.04em;
}

.scr-title em {
  color: #4847e8;
}

.rec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 82%;
  aspect-ratio: 1;
  margin: 26px auto 24px;
  border-radius: 50%;
  background: #eaeaff;
  position: relative;
}

.rec::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(72, 71, 232, 0.18);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.94);
    opacity: 1;
  }
  to {
    transform: scale(1.08);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec::before {
    animation: none;
  }
  .btn {
    transition: none;
  }
}

.rec-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #70707c;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5484d;
}

.rec-time {
  font: 400 40px/1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: #4847e8;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.rec-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.scr-card {
  border-radius: 20px;
  background: #ffffff;
  padding: 14px 16px 12px;
  box-shadow: 0 6px 20px -10px rgba(23, 23, 29, 0.25);
}

.scr-card-head {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
}

.scr-card-head small {
  font-size: 11px;
  font-weight: 400;
  color: #70707c;
}

.scr-tabs {
  display: flex;
  gap: 16px;
  margin: 10px 0 8px;
  font-size: 12px;
  color: #70707c;
  border-bottom: 1px solid #dcdce6;
}

.scr-tabs b {
  color: #4847e8;
  padding-bottom: 6px;
  border-bottom: 2px solid #4847e8;
  margin-bottom: -1px;
}

.scr-sum {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 12px;
  line-height: 1.45;
}

.scr-sum li {
  margin: 5px 0;
}

.scr-sum li::marker {
  color: #4847e8;
}

/* ─── Секции */

.sec {
  padding: 64px 0;
}

.sec-soft {
  background: var(--card);
}

@media (min-width: 900px) {
  .sec {
    padding: 88px 0;
  }
}

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.step {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--soft);
}

.num {
  display: block;
  font: 600 15px/1 var(--display);
  color: var(--accent);
  margin-bottom: 18px;
}

.step p,
.features p,
.privacy p,
.plan p {
  color: var(--muted);
  font-size: 16px;
}

.features {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 0 40px;
}

.features li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.privacy {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.privacy > div {
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

@media (min-width: 720px) {
  .steps,
  .privacy {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Цены */

.plans {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

.plan-best {
  border: 2px solid var(--accent);
}

.badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.plan .price {
  color: var(--ink);
  font: 600 36px/1.1 var(--display);
  letter-spacing: -0.03em;
  margin: 6px 0 12px;
  white-space: nowrap;
}

.plan .price small {
  font: 400 16px var(--text);
  color: var(--muted);
  letter-spacing: 0;
}

.note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* ─── Границы и вопросы */

.limits {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.limits li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--line);
}

.limits li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 25px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.faq {
  margin-top: 32px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font: 400 28px/1 var(--display);
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
}

/* ─── Финальный призыв */

.final {
  padding: 0 0 80px;
}

.final-box {
  max-width: 1120px;
}

.final-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 48px var(--gutter);
  border-radius: 32px;
  background: #4847e8;
  color: #fff;
}

.final-box .h2 {
  margin: 0;
  max-width: 14em;
}

@media (min-width: 900px) {
  .final-box {
    padding: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ─── Подвал */

.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 15px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
}

.foot-row p {
  margin-top: 8px;
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Документы и 404 */

.doc h1 {
  font: 600 clamp(30px, 5vw, 44px) / 1.15 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.doc h2 {
  font: 600 22px/1.3 var(--display);
  margin: 40px 0 14px;
}

.doc h3 {
  margin-top: 26px;
}

.doc p,
.doc li {
  margin-bottom: 12px;
}

.doc .table {
  overflow-x: auto;
  margin: 18px 0;
}

.doc table {
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.nf .lead {
  margin-top: 18px;
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 34px;
}

@media (max-width: 560px) {
  .top-nav {
    display: none;
  }
}
