/* Лендинг sonya-bot.ru (план 33, задача 9).

   Вид – артборды «Лендинг · десктоп» (1440) и «Лендинг · телефон» (390) канвы
   `Landing.dc.html`: кремовый фон, персик и лаванда, заголовки Unbounded, текст
   IBM Plex Sans. Телефон – до 768, десктоп – от 1024, между ними вёрстка плавно
   переходит: шапка со ссылками появляется с 768, колонка растёт, а блоки с
   телефонами остаются в «телефонной» раскладке, пока рядом не хватает места.

   Это обычный статический файл из `web/public`, без сборки: Vite копирует его в
   `dist` как есть. Поэтому здесь нет ни препроцессора, ни импортов.

   Шрифты – свои, из /fonts. Ссылок на fonts.googleapis.com быть не может:
   сторонний домен у российского провайдера не откроется, а политика (4.4)
   обещает, что сайт не ходит к чужим серверам. */

/* ---------- шрифты ---------- */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400.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+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-ruble-400.woff2') format('woff2');
  unicode-range: U+20BD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-500.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+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Знак рубля в Plex лежит в «latin-ext» (U+20A0-20C0), а весь поднабор – это
   ещё 11 КБ. Здесь только сам знак, 0,7 КБ: цена на странице – главное, что
   проверяет банк, и системный «₽» другого веса рядом с цифрами выглядел бы
   чужим. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-ruble-500.woff2') format('woff2');
  unicode-range: U+20BD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600.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+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/unbounded-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/unbounded-latin-400.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+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-latin-500.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+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- цвета и размеры ---------- */

:root {
  /* Цвета макета записаны в oklch, как в канве. Для браузеров без oklch ниже
     лежит блок с теми же значениями в sRGB. */
  --bg: oklch(0.975 0.014 80);
  --ink: oklch(0.3 0.04 300);
  --ink-2: oklch(0.45 0.04 300);
  --ink-3: oklch(0.56 0.035 300);
  --line: oklch(0.9 0.025 70);
  --line-2: oklch(0.86 0.035 70);
  --line-month: oklch(0.84 0.05 50);
  --white: oklch(1 0 0);
  --brand: oklch(0.62 0.14 300);
  --brand-hover: oklch(0.56 0.15 300);
  --brand-ink: oklch(0.48 0.13 300);
  --on-brand: oklch(0.99 0.005 80);
  --link: oklch(0.5 0.14 300);
  --link-hover: oklch(0.42 0.15 300);
  --outline: oklch(0.78 0.06 300);
  --peach: oklch(0.7 0.15 50);
  --dot: oklch(0.75 0.14 50);
  --badge-bg: oklch(0.94 0.045 60);
  --badge-ink: oklch(0.5 0.12 50);
  --tint-lav: oklch(0.94 0.035 300);
  --tint-peach: oklch(0.94 0.045 60);
  --glow-peach: oklch(0.9 0.07 50);
  --glow-lav: oklch(0.9 0.06 300);
  --month-line: oklch(0.85 0.06 40);
  --phone: oklch(0.26 0.025 300);
  --phone-line: oklch(0.36 0.03 300);
  --shadow-phone: oklch(0.4 0.08 320 / 0.28);
  --shadow-card: oklch(0.6 0.08 60 / 0.1);
  --shadow-month: oklch(0.6 0.1 40 / 0.22);
  --shadow-btn: oklch(0.62 0.14 300 / 0.3);
  --grad: linear-gradient(160deg, var(--glow-peach), var(--glow-lav));

  --font-text: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --font-head: 'Unbounded', 'IBM Plex Sans', sans-serif;

  /* Поля колонки; сама колонка – 1120 px полезной ширины, как в макете. */
  --gutter: 20px;
  --content: 1120px;
  /* Масштаб блоков с телефонами: 1 только там, где слева и справа от колонки
     хватает места под выступающую подложку. */
  --s: 1;
}

@supports not (color: oklch(0 0 0)) {
  :root {
    --bg: #fcf6ed;
    --ink: #31293f;
    --ink-2: #585069;
    --ink-3: #777086;
    --line: #e9dccd;
    --line-2: #e0ceb9;
    --line-month: #e6c2ae;
    --white: #ffffff;
    --brand: #9470cd;
    --brand-hover: #835cbe;
    --brand-ink: #6a499b;
    --on-brand: #fefbf8;
    --link: #714ca6;
    --link-hover: #5b3291;
    --outline: #bdafd9;
    --peach: #e77f3e;
    --dot: #f49157;
    --badge-bg: #ffe5ce;
    --badge-ink: #984b16;
    --tint-lav: #eee6ff;
    --tint-peach: #ffe5ce;
    --glow-peach: #ffd1b5;
    --glow-lav: #e4d6ff;
    --month-line: #f1c1b1;
    --phone: #26212e;
    --phone-line: #3f3a4b;
    --shadow-phone: rgba(91, 56, 98, 0.28);
    --shadow-card: rgba(164, 117, 78, 0.1);
    --shadow-month: rgba(179, 107, 81, 0.22);
    --shadow-btn: rgba(148, 112, 205, 0.3);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 56px;
    --s: 0.74;
  }
}
@media (min-width: 1100px) {
  :root {
    --s: 0.8;
  }
}
@media (min-width: 1180px) {
  :root {
    --s: 0.9;
  }
}
@media (min-width: 1280px) {
  :root {
    --gutter: 80px;
    --s: 1;
  }
}

/* ---------- основа ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-feature-settings: 'tnum';
  -webkit-font-smoothing: antialiased;
  /* Подложки телефонов выступают за колонку на 60 px (как в макете); без этого
     на узком окне рядом с ними появилась бы горизонтальная прокрутка. */
  overflow-x: clip;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 500;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  display: block;
}

/* Колонка: полезная ширина --content, поля по краям внутри max-width. */
.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- кнопки ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 24px var(--shadow-btn);
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}
.btn--outline {
  border: 1.5px solid var(--outline);
  color: var(--brand-ink);
}
.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn--lg {
  height: 52px;
}

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top__in {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.brand span {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
}
.top__right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.top__nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.top__nav a:not(.btn) {
  font-size: 15px;
  color: var(--ink-2);
}
.top__nav a:not(.btn):hover {
  color: var(--ink);
}
.top .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* Под шапкой, что липнет к верху, якорь не должен прятать заголовок. */
[id] {
  scroll-margin-top: 72px;
}

@media (min-width: 768px) {
  .top__nav {
    display: flex;
  }
  .top .btn {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }
}
@media (min-width: 1024px) {
  .top__in {
    height: 72px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand span {
    font-size: 19px;
  }
  .top__right,
  .top__nav {
    gap: 36px;
  }
  [id] {
    scroll-margin-top: 88px;
  }
}

/* ---------- рамка телефона и экраны ---------- */

.phone {
  width: 300px;
  height: 600px;
  border-radius: 42px;
  background: var(--phone);
  padding: 10px;
  border: 1px solid var(--phone-line);
  box-shadow: 0 30px 60px var(--shadow-phone);
}
.phone__scr {
  width: 280px;
  height: 580px;
  border-radius: 33px;
  overflow: hidden;
}
.phone__scr img {
  width: 280px;
  height: 580px;
}

/* Телефон на цветной подложке: подложка во всю колонку, телефон по центру. */
.stage {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  border-radius: 48px;
}
/* Рамка телефона 300 px шире колонки на экране уже 340 px. */
@media (max-width: 339px) {
  .stage {
    zoom: 0.88;
  }
}
.stage--lav {
  background: var(--tint-lav);
}
.stage--peach {
  background: var(--tint-peach);
}

/* Составная картинка с двумя телефонами: внутри все размеры в «макетных»
   пикселях, наружу она вписывается в масштаб --s (на узком окне меньше). */
.fit {
  position: relative;
  width: calc(var(--w) * var(--s));
  height: calc(var(--h) * var(--s));
}
.fit__in {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: var(--h);
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.abs {
  position: absolute;
}
.sc {
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
}

@keyframes om-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes om-blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -14px) scale(1.06);
  }
}

/* ---------- первый экран ---------- */

.hero__text {
  padding-top: 44px;
  background: radial-gradient(ellipse 420px 320px at 95% 0%, var(--glow-peach) 0%, transparent 70%);
}
.hero__text .wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 13px;
  font-weight: 500;
}
.hero h1 {
  /* 34 px на 390; на самых узких телефонах «вскармливание» иначе не влезает. */
  font-size: clamp(27px, 8.7vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero__cta .btn {
  align-self: stretch;
}
.hero__cta a:not(.btn) {
  font-size: 16px;
}
.hero__note {
  font-size: 14px;
  color: var(--ink-3);
}

.hero__vis {
  position: relative;
  height: 560px;
  margin-top: 40px;
  overflow: hidden;
  background: radial-gradient(ellipse 380px 440px at 50% 40%, var(--glow-lav) 0%, transparent 70%);
}
.hero__vis::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__box {
  position: relative;
  width: 390px;
  height: 560px;
  margin-inline: auto;
}
.hero__blob {
  display: none;
}
.hv-today {
  left: 150px;
  top: 40px;
  --k: 0.8;
}
.hv-chat {
  left: 20px;
  top: 0;
  --k: 0.86;
}

@media (min-width: 768px) {
  .hero__text {
    padding-top: 64px;
  }
  .badge {
    font-size: 14px;
    padding: 8px 14px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero__lead {
    font-size: 19px;
    max-width: 560px;
  }
  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .hero__cta .btn {
    align-self: auto;
  }
  .hero__note {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(580px * var(--s));
    column-gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 96px max(var(--gutter), calc((100% - var(--content)) / 2)) 104px;
    background: radial-gradient(ellipse 760px 560px at 84% 42%, var(--glow-lav) 0%, transparent 70%),
      radial-gradient(ellipse 620px 440px at 6% 96%, var(--glow-peach) 0%, transparent 70%);
  }
  .hero__text {
    padding: 0;
    background: none;
    position: relative;
    z-index: 1;
    max-width: 560px;
  }
  .hero__text .wrap {
    padding: 0;
    gap: 28px;
  }
  .hero h1 {
    font-size: clamp(40px, 3.75vw, 54px);
    line-height: 1.1;
  }
  .hero__lead {
    font-size: 21px;
    max-width: none;
  }
  .hero__cta {
    padding-top: 4px;
  }
  .hero__cta .btn {
    height: 56px;
    padding: 0 28px;
    font-size: 17px;
  }
  .hero__cta a:not(.btn) {
    font-size: 17px;
  }
  .hero__vis {
    height: calc(660px * var(--s));
    margin: 0;
    overflow: visible;
    background: none;
  }
  .hero__vis::after {
    display: none;
  }
  .hero__box {
    width: 580px;
    height: 660px;
    margin: 0;
    transform: scale(var(--s));
    transform-origin: 0 0;
  }
  .hero__blob {
    display: block;
    left: 0;
    top: 30px;
    width: 580px;
    height: 600px;
    border-radius: 290px 290px 200px 200px;
    background: var(--grad);
  }
  .hv-today {
    left: 270px;
    top: 60px;
    --k: 0.92;
    opacity: 0.92;
  }
  .hv-chat {
    left: 30px;
    top: 0;
    --k: 1;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero__blob {
    animation: om-blob 12s ease-in-out infinite;
  }
  .hv-chat {
    animation: om-float 7s ease-in-out infinite;
  }
}

/* ---------- заголовки разделов ---------- */

.h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .h2 {
    font-size: 30px;
  }
}
@media (min-width: 1024px) {
  .h2 {
    font-size: 34px;
  }
}

.section {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .section {
    padding-block: 72px;
  }
}

/* ---------- что умеет ---------- */

.features {
  padding-top: 40px;
}
.features .wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.feature p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
/* Составная картинка первого блока – только на десктопе. */
.feature__duo {
  display: none;
}
.duo-arch {
  left: 60px;
  top: 40px;
  width: 520px;
  height: 560px;
  border-radius: 260px 260px 48px 48px;
  background: var(--tint-lav);
}
.duo-back {
  left: 260px;
  top: 40px;
  --k: 0.92;
}
.duo-front {
  left: 20px;
  top: 0;
}

@media (min-width: 768px) {
  .features .wrap {
    gap: 56px;
  }
  .feature h3 {
    font-size: 24px;
  }
  .feature p {
    font-size: 17px;
  }
  .feature__text {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .features {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .features .wrap {
    gap: 24px;
  }
  .features__title {
    margin-bottom: 0;
  }
  .feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    align-items: center;
    padding-block: 40px;
  }
  .feature__text {
    gap: 16px;
    max-width: 440px;
  }
  .feature h3 {
    font-size: clamp(24px, 2.2vw, 28px);
    line-height: 1.2;
  }
  .feature p {
    font-size: 18px;
  }
  /* Чётные блоки: картинка слева, текст справа. */
  .feature--flip .feature__text {
    order: 2;
  }
  .feature__duo {
    display: block;
  }
  .feature__single {
    display: none;
  }
}
@media (min-width: 1280px) {
  .feature {
    column-gap: 80px;
  }
}

/* ---------- как начать ---------- */

.band {
  width: calc(100% - 24px);
  max-width: 1280px;
  margin-inline: auto;
  border-radius: 32px;
}
.steps {
  margin-top: 56px;
  padding: 56px 20px;
  background: var(--tint-lav);
}
.steps__in {
  max-width: var(--content);
  margin-inline: auto;
}
.steps ol {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.steps__n {
  font-size: 30px;
  line-height: 1;
  color: var(--peach);
}
.steps__t {
  font-size: 17px;
  line-height: 1.4;
  text-wrap: pretty;
}
.steps__note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .band {
    width: calc(100% - 2 * var(--gutter));
  }
  .steps {
    padding: 64px 48px;
  }
}
@media (min-width: 1024px) {
  .band {
    width: calc(100% - 2 * var(--gutter));
    border-radius: 48px;
  }
  .steps {
    padding: 72px 80px;
    margin-top: 0;
  }
  .steps ol {
    margin-top: 40px;
    flex-direction: row;
    gap: 40px;
  }
  .steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
  }
  .steps__n {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.02em;
  }
  .steps__t {
    font-size: 19px;
  }
  .steps__note {
    margin-top: 40px;
    font-size: 16px;
  }
}
@media (min-width: 1280px) {
  .steps {
    padding-inline: 80px;
  }
}

/* ---------- на чём основаны ответы ---------- */

.basis .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.basis p {
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}
.basis p + p {
  color: var(--ink-2);
}
.basis__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .basis .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .basis h2 {
    max-width: 420px;
    text-wrap: balance;
  }
  .basis p {
    font-size: 19px;
  }
}

/* ---------- тарифы ---------- */

.plans {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px var(--shadow-card);
}
.plan--month {
  order: -1;
  background: var(--grad);
  border-color: var(--month-line);
  box-shadow: 0 18px 44px var(--shadow-month);
}
/* На телефоне «Месяц» идёт сразу после «Бесплатно» (макет и бриф). */
.plan--free {
  order: -2;
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan__name {
  font-size: 15px;
  color: var(--ink-3);
}
.plan__tag {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 500;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan__sum {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.plan__term {
  font-size: 15px;
  color: var(--ink-3);
}
.plan__q {
  font-size: 15px;
}
.plan__rule {
  height: 1px;
  background: var(--line);
}
.plan--month .plan__rule {
  background: var(--line-month);
}
.plan__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan__inc {
  font-size: 14px;
  color: var(--ink-3);
}
.plan li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
}
.plan li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--dot);
}
.plan .btn {
  height: 50px;
}
.plans__note {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .plans {
    max-width: 520px;
  }
  .plans__note {
    max-width: 520px;
  }
}
@media (min-width: 1024px) {
  .plans {
    max-width: none;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    margin-top: 36px;
  }
  .plan {
    flex: 1;
    gap: 22px;
    padding: 32px 28px;
    border-radius: 32px;
  }
  .plan--free,
  .plan--month {
    order: 0;
  }
  .plan__name,
  .plan__term {
    font-size: 16px;
  }
  .plan__sum {
    font-size: 44px;
  }
  .plan__q,
  .plan li {
    font-size: 16px;
  }
  .plan li::before {
    margin-top: 8px;
  }
  .plan__body,
  .plan__list {
    gap: 12px;
  }
  .plan .btn {
    height: 52px;
  }
  .plans__note {
    margin-top: 36px;
    font-size: 16px;
    max-width: 760px;
  }
}

/* ---------- условия ---------- */

.terms {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.terms > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.terms dt {
  font-size: 16px;
  font-weight: 500;
}
.terms dd {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.terms dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--outline);
}
@media (min-width: 768px) {
  .terms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
  }
}
@media (min-width: 1024px) {
  .terms {
    gap: 32px 64px;
    margin-top: 36px;
  }
  .terms > div {
    gap: 8px;
    padding-top: 16px;
  }
  .terms dt {
    font-size: 17px;
  }
  .terms dd {
    font-size: 16px;
  }
}

/* ---------- частые вопросы ---------- */

.faq .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq__list {
  display: flex;
  flex-direction: column;
}
.faq details {
  border-top: 1px solid var(--line-2);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--peach);
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (min-width: 1024px) {
  .faq .wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }
  .faq summary {
    gap: 24px;
    padding: 20px 0;
    font-size: 19px;
  }
  .faq summary::after {
    width: 24px;
    font-size: 24px;
  }
  .faq details p {
    padding: 0 48px 22px 0;
    font-size: 17px;
  }
}

/* ---------- последний призыв ---------- */

.final {
  margin: 0 auto 40px;
  padding: 56px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: var(--grad);
}
.final h2 {
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.final p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  text-wrap: pretty;
}
.final .btn {
  margin-top: 8px;
  align-self: stretch;
}
@media (min-width: 768px) {
  .final .btn {
    align-self: center;
    padding: 0 28px;
  }
}
@media (min-width: 1024px) {
  .final {
    margin: 0 auto 80px;
    padding: 120px 160px;
    gap: 20px;
  }
  .final h2 {
    font-size: 40px;
  }
  .final p {
    font-size: 20px;
  }
  .final .btn {
    margin-top: 12px;
    height: 56px;
    font-size: 17px;
  }
}

/* ---------- подвал ---------- */

.foot {
  padding-block: 40px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.foot .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.foot__cols {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.foot__name img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.foot__ip {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.foot__ip b {
  font-weight: 400;
  color: var(--ink);
}
.foot__docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot__bottom > div {
  white-space: nowrap;
}
.foot__bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .foot__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .foot__docs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .foot__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .foot {
    padding-block: 48px 40px;
    font-size: 14px;
  }
  .foot .wrap {
    gap: 32px;
  }
  .foot__cols {
    gap: 64px;
  }
  .foot__brand {
    gap: 12px;
  }
  .foot__name {
    font-size: 16px;
  }
  .foot__name img {
    width: 28px;
    height: 28px;
  }
  .foot__ip {
    gap: 4px;
  }
  .foot__docs,
  .foot__bottom {
    font-size: 13px;
  }
}
