/*
 * Лендинг «ИИзучалка · Математика».
 * Только этот файл: в странице нет style-атрибутов и <style>, шрифты свои —
 * страница проходит CSP «style-src 'self'; font-src 'self'».
 *
 * Шрифты — подмножества файлов репозитория google/fonts, коммит
 * 4c1db3aec83c67dd223dd82a68c039cab30917a9, лицензии OFL рядом в fonts/:
 *   onest.woff2          — копия шрифта приложения (docs/product/ai/conventions.md);
 *   jetbrains-mono.woff2 — ofl/jetbrainsmono/JetBrainsMono[wght].ttf,
 *                          SHA-256 48715a42ec242c21e9f02692891e147d022299a52e48d5e413e1a942193ffeda,
 *                          набор знаков как у onest.woff2;
 *   caveat.woff2         — ofl/caveat/Caveat[wght].ttf,
 *                          SHA-256 0bdb6b660482d31531b3945849fba5916b3ef8695da7024a9e6b9ee3c4157988,
 *                          набор U+0020-0040, U+0401, U+0410-044F, U+0451, U+2212.
 */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #316BFF;
  --accent-dark: #1F4FD6;
  --accent-soft: #F0F4FF;
  --accent-tint: #E6EDFF;
  --accent-on-dark: #8FB0FF;
  --ink: #0A0F1F;
  --ink-2: #3A4155;
  --ink-3: #5B6275;
  --ink-4: #8A90A2;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --paper: #FFFDF7;
  --pen: #1B2A6B;
  --error: #E5484D;
  --error-text: #C2363B;
  --success: #137A42;
  --bar-good: #1F9D55;
  --bar-warn: #F2A93B;
  --dark-2: #141A2E;
  --dark-text: #C9CEDB;
  --dark-muted: #8A93AD;
  --placeholder: #FFD966;
  --line: rgba(10, 15, 31, .06);
  --line-2: rgba(10, 15, 31, .08);
  --line-3: rgba(10, 15, 31, .1);

  --font: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --h2: clamp(34px, 4.2vw, 56px);
}

/* База */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.nowrap {
  white-space: nowrap;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.h2 {
  font-size: var(--h2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--dark {
  color: var(--accent-on-dark);
}

/* Заполнить перед публикацией */
.ph {
  font-family: var(--mono);
  font-size: .85em;
  background: #FFF3C4;
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
}

.ph--dark {
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--placeholder);
}

/* Кнопки */

.btn {
  display: inline-block;
  border-radius: 14px;
  font-weight: 700;
  font-size: 19px;
  padding: 20px 34px;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--glow {
  box-shadow: 0 10px 30px -10px rgba(49, 107, 255, .7);
}

.btn--on-dark:hover {
  background: #fff;
  color: var(--ink);
}

.btn--white {
  background: #fff;
  color: var(--ink);
  padding: 22px 40px;
  font-size: 20px;
  box-shadow: 0 20px 40px -15px rgba(10, 15, 31, .45);
}

.btn--white:hover {
  background: var(--ink);
  color: #fff;
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 250, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__sub {
  color: var(--ink-4);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

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

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

.header__cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color .15s;
}

.header__cta:hover {
  background: var(--accent);
  color: #fff;
}

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

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 440px;
}

/* Тетрадь с ошибкой */

.notebook-scene {
  position: relative;
  margin: 0;
  padding: 20px 0 40px;
}

.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(49, 107, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 107, 255, .13) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--pen);
  font-family: var(--hand);
}

.notebook {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(10, 15, 31, .06), 0 30px 60px -25px rgba(10, 15, 31, .3);
  padding: 56px 40px 96px;
  transform: rotate(-2deg);
}

.notebook__title {
  font-size: 30px;
  margin-bottom: 24px;
}

.sum {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 58px;
  line-height: 1;
}

.frac {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frac__bar {
  width: 36px;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
}

.frac__bar--wide {
  width: 50px;
}

.sum__wrong {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}

.sum__wrong::after {
  content: "";
  position: absolute;
  inset: -18px -10px;
  border: 3px solid var(--error);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.hint {
  position: absolute;
  right: clamp(0px, 2vw, 20px);
  bottom: 0;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 24px 50px -20px rgba(10, 15, 31, .35), 0 0 0 1px rgba(10, 15, 31, .05);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hint__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}

.hint__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hint__label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

.hint__text {
  font-size: 15px;
  line-height: 1.45;
}

/* 2 · Не чат-бот */

.why {
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: start;
}

.why__title {
  flex: 1 1 300px;
  max-width: 400px;
  position: sticky;
  top: 110px;
}

.why__list {
  flex: 2 1 460px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: why;
  border-bottom: 1px solid var(--line-3);
}

.why__item {
  counter-increment: why;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line-3);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.why__item::before {
  content: counter(why, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  padding-top: 4px;
}

.mark-error {
  background: rgba(229, 72, 77, .1);
  color: var(--error-text);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* 3 · Четыре способа */

.ways {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.ways__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px;
}

.way {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.way__head {
  position: relative;
  background: var(--accent-soft);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  min-height: clamp(150px, 15vw, 190px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.way__icon {
  position: absolute;
  right: clamp(16px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(96px, 11vw, 140px);
  height: clamp(96px, 11vw, 140px);
  color: var(--accent);
}

.way__num {
  position: relative;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.way__body {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.way__title {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

.way__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.way__punch {
  color: var(--ink);
  font-weight: 700;
}

.way__punch span {
  background: var(--accent-tint);
  padding: 3px 8px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 4 · Переписка */

.dark {
  background: var(--ink);
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack--24 {
  gap: 24px;
}

.chat {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat__who {
  font-size: 13px;
  color: var(--dark-muted);
}

.chat__student {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.chat__photo {
  background-size: 18px 18px;
  border-radius: 18px 18px 4px 18px;
  padding: 22px 28px;
}

.chat__photo .sum {
  gap: 12px;
  font-size: 36px;
}

.chat__photo .frac__bar {
  width: 22px;
  height: 2px;
  margin: 3px 0;
  border-radius: 0;
}

.chat__photo .frac__bar--wide {
  width: 30px;
}

.chat__tutor {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}

.chat__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.chat__bubble {
  background: #fff;
  color: var(--ink);
  border-radius: 18px 18px 18px 4px;
  padding: 18px 20px;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

.chat__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 48px;
}

.chip {
  border: 1.5px solid var(--accent);
  color: #BFD0FF;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

/* 5 · Родителю */

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.qr-note {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.qr-note::before {
  content: "";
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, var(--ink) 50%, transparent 50%),
    linear-gradient(var(--ink) 50%, transparent 50%);
  background-size: 11px 11px;
  opacity: .85;
  border: 3px solid #fff;
  outline: 2px solid var(--ink);
}

.report {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(10, 15, 31, .05), 0 30px 60px -30px rgba(10, 15, 31, .3);
  overflow: hidden;
}

.report__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(10, 15, 31, .07);
  font-weight: 600;
  font-size: 15px;
}

.report__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.report__tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-4);
}

.report__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report__bars {
  display: flex;
  gap: 8px;
}

.report__bars span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--bar-good);
}

.report__bars .warn {
  background: var(--bar-warn);
}

.report__text {
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.report__todo {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 17px;
  font-weight: 600;
}

.report__todo .eyebrow {
  font-size: 12px;
  font-weight: 400;
}

/* 6 · Тарифы */

.price {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.plan--main {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 24px 50px -20px rgba(49, 107, 255, .65);
}

.plan__name {
  font-size: 18px;
  font-weight: 600;
}

.plan__cost {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--ink-3);
}

.plan--main .plan__cost {
  color: #fff;
}

.plan__sum {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.plan--main .plan__sum {
  color: #fff;
}

.volume {
  background: var(--bg);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px 56px;
  align-items: start;
  margin-top: -24px;
}

.volume__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.volume__col + .volume__col {
  gap: 16px;
}

.volume__title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

.volume__text {
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.small {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.small--muted {
  color: var(--ink-3);
}

.small b {
  color: var(--ink);
}

.meter {
  height: 10px;
  border-radius: 5px;
  background: var(--accent-soft);
  overflow: hidden;
}

.meter::before {
  content: "";
  display: block;
  width: 62%;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}

.trial {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}

.trial__text {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.free {
  border: 1px solid var(--line-3);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}

.free__sum {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--success);
}

.free__text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.free__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

/* 7 · Вопросы */

.faq-section {
  border-bottom: 0;
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq__item {
  border-top: 1px solid var(--line-3);
}

.faq__item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 500;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  padding: 0 56px 28px 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* 8 · Финал */

.final {
  background-color: var(--accent);
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
}

.final__inner {
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.final__title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}

.final__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 560px;
}

/* 9 · Подвал */

.footer {
  background: var(--ink);
  color: var(--dark-text);
  font-size: 14px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col:first-child {
  gap: 14px;
}

.footer .brand,
.footer .brand:hover {
  color: #fff;
}

.footer .brand__sub {
  color: var(--dark-muted);
}

.footer__requisites {
  line-height: 1.6;
}

.footer__head {
  color: #fff;
  font-weight: 600;
}

.footer a {
  color: var(--dark-text);
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
}

.pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pay li {
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark-muted);
}

.footer__bottom .ph--dark {
  font-size: 12px;
}

/* Узкие экраны */

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

  .header__cta {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .brand__sub--header {
    display: none;
  }

  .header__cta {
    padding: 9px 14px;
    font-size: 14px;
  }

  .notebook {
    padding: 40px 22px 90px;
  }

  .notebook .sum {
    font-size: 40px;
    gap: 10px;
  }

  .why__title {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
