/* ==========================================================================
   Курсачев — лендинг
   Идея: тетрадь в клетку и титульный лист. Всё, что «заполняет» человек,
   пишется синей ручкой (Caveat), остальное — спокойный Golos Text.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --bg: #f3f6fa;
  --grid: #dde6f0;
  --ink: #1a2238;
  --ink-soft: #4a5470;
  --ink-mute: #7a839b;
  --line: #cfd8e6;
  --pen: #2443c9;
  --pen-deep: #1a32a0;
  --pen-soft: #e8edfc;
  --margin: #e5484d;
  --marker: #ffe45c;
  --tg: #229ed9;
  --ok: #1f8a52;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --gost: "Times New Roman", Times, "PT Serif", serif;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 12px;
  --shadow-sheet: 0 1px 0 rgba(26, 34, 56, .04), 0 18px 40px -18px rgba(26, 34, 56, .28);
  --shadow-pop: 0 18px 40px -16px rgba(26, 34, 56, .35);

  --on-pen: #fff;          /* текст на синей кнопке */
  --on-ink: #fff;          /* текст на кнопке, залитой цветом текста */
  --top-bg: rgba(255, 255, 255, .92);
  --placeholder: #b6bfd0;
  --warn-ink: #8a2a22;
  --warn-bg: #fdeceb;
  --final-bg: #1a2238;
  --final-soft: #c3c9d9;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%232443c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Титульный лист — всегда «бумажный», даже в тёмной теме */
  --sheet: #ffffff;
  --sheet-ink: #222;
  --sheet-pen: #2443c9;
  --sheet-marker: #ffe45c;

  color-scheme: light dark;
}

/* Тёмная тема: включается сама, если на устройстве выбрано тёмное оформление.
   Ночная тетрадь — тёмно-синяя бумага, светлые чернила. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b2c;
    --bg: #0e1321;
    --grid: #1a2235;
    --ink: #e7ebf4;
    --ink-soft: #b0b8cc;
    --ink-mute: #808aa3;
    --line: #2b3550;
    --pen: #93a9ff;
    --pen-deep: #b4c3ff;
    --pen-soft: #1f2a4f;
    --margin: #ff6b70;
    --marker: rgba(255, 214, 51, .34);
    --tg: #2aa5df;
    --ok: #46c487;

    --shadow-sheet: 0 1px 0 rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .75);
    --shadow-pop: 0 18px 40px -16px rgba(0, 0, 0, .7);
    --on-pen: #0e1321;
    --on-ink: #0e1321;
    --top-bg: rgba(21, 27, 44, .9);
    --placeholder: #4f5a78;
    --warn-ink: #ffb4ae;
    --warn-bg: rgba(255, 107, 112, .14);
    --final-bg: #0a0e19;
    --final-soft: #a3acc2;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2393a9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    /* лист чуть приглушён, чтобы не слепил в темноте */
    --sheet: #e8ebf2;
    --sheet-ink: #1d2233;
    --sheet-pen: #2443c9;
    --sheet-marker: #f5d63d;
  }
  .sheet { filter: brightness(.94); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pen); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--pen); color: var(--on-pen); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

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

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Тетрадь в клетку */
.grid-paper {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--pen { background: var(--pen); color: var(--on-pen); }
.btn--pen:hover { background: var(--pen-deep); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: #1b87bb; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pen); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--top-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo { font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo__dot { color: var(--pen); }
.logo--sm { font-size: 20px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--pen); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__in {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 88px;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.04;
  max-width: 13ch;
}
.lead { margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; margin-top: 36px; display: grid; gap: 10px; max-width: 34em; }
.facts li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 16px; }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 15px; height: 9px;
  border-left: 2.5px solid var(--pen); border-bottom: 2.5px solid var(--pen);
  transform: rotate(-48deg); border-radius: 1px;
}

/* Титульный лист */
.sheet-wrap { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.sheet {
  position: relative;
  aspect-ratio: 1 / 1.414;
  background: var(--sheet);
  border-radius: 3px;
  box-shadow: var(--shadow-sheet);
  padding: 9% 10% 8%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-family: var(--gost); color: var(--sheet-ink);
  transform: rotate(1.6deg);
  container-type: inline-size;
}
.sheet p { line-height: 1.35; }
.t-small { font-size: 3.1cqi; }
.t-small + .t-small { margin-top: 3.5cqi; }
.t-type { margin-top: 15cqi; font-size: 5.6cqi; font-weight: 700; letter-spacing: .06em; }
.t-line { margin-top: 3cqi; font-size: 3.6cqi; }
.t-topic { min-height: 22cqi; }
.t-sign { margin-top: auto; align-self: flex-end; text-align: left; font-size: 3.1cqi; display: grid; gap: 3cqi; width: 70%; }
.t-sign p { display: flex; gap: 2cqi; align-items: flex-end; }
.blank { flex: 1; border-bottom: 1px solid var(--sheet-ink); min-width: 12cqi; height: 1em; }
.t-city { margin-top: 10cqi; font-size: 3.2cqi; }

.hand {
  display: inline-block;
  font-family: var(--hand); font-weight: 600; color: var(--pen);
  font-size: 1.45em; line-height: 1.05;
  letter-spacing: 0;
}
.sheet .hand { color: var(--sheet-pen); }
.hand--topic { display: block; margin-top: 1.5cqi; font-size: 6.4cqi; line-height: 1.1; }
.hand.is-writing { animation: write .9s steps(28, end) both; }
@keyframes write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.t-type.is-writing, .tag span.is-writing { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Бирка с ценой */
.tag {
  position: absolute; right: -18px; top: 56%;
  display: grid; gap: 2px;
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: 10px; padding: 12px 16px;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.tag__price { font-weight: 700; font-size: 19px; background: linear-gradient(transparent 55%, var(--marker) 55%); padding: 0 2px; }
.tag__term { font-size: 14px; color: var(--ink-soft); }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--bg); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.section__head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

/* Цены */
.price-table { border-top: 2px solid var(--ink); }
.pt-row {
  display: grid; grid-template-columns: 2.2fr 1.2fr 1fr 1.1fr 132px; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.pt-row--head { padding: 12px 0; font-size: 14px; color: var(--ink-mute); font-weight: 500; }
.pt-name { font-weight: 600; font-size: 19px; }
.pt-note { display: block; font-weight: 400; font-size: 15px; color: var(--ink-mute); margin-top: 2px; }
.pt-cell { color: var(--ink-soft); font-size: 16px; }
.pt-price { font-weight: 700; font-size: 20px; white-space: nowrap; }
.pt-row .btn { min-height: 42px; font-size: 15px; padding: 0 16px; }
.pt-row .btn--ghost { border-width: 1.5px; }

.subjects { margin-top: 56px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.subjects h3 { font-size: 20px; padding-top: 6px; }
.subjects__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.subjects__list li {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; color: var(--ink-soft); background: var(--paper);
}

/* Шаги */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 64px 28px 0 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 600 30px/1 var(--hand); color: var(--pen);
  border: 2px solid var(--pen);
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  background: var(--paper);
  z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; left: 52px; right: 8px; top: 22px;
  border-top: 2px dashed var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 20px; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; max-width: 26ch; }

/* ---------- Форма-тетрадь ---------- */
.order { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notebook {
  position: relative;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow-sheet);
}
.notebook::before { /* красные поля */
  content: ""; position: absolute; top: 0; bottom: 0; left: 64px;
  border-left: 2px solid var(--margin); opacity: .75; pointer-events: none;
}
.order__form {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0;
}
.fields { padding: 40px 48px 44px 96px; display: grid; gap: 30px; min-width: 0; border-right: 1px solid var(--line); }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hint { margin-top: 6px; font-size: 14px; color: var(--ink-mute); }
.err { margin-top: 6px; font-size: 14px; color: var(--margin); font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.err--form { margin-top: 12px; }
.captcha-note { margin-top: -4px; font-size: 13px; }
.captcha-note a { color: inherit; }
.done__title span { white-space: nowrap; margin-right: .12em; }

/* Поля-строчки, заполненные «ручкой» */
.line {
  width: 100%; display: block;
  border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  background: transparent; padding: 4px 2px 6px;
  font: 600 26px/1.25 var(--hand); color: var(--pen);
  transition: border-color .15s;
}
.line::placeholder { color: var(--placeholder); font-weight: 500; }
.line:hover { border-bottom-color: var(--ink-mute); }
.line:focus { outline: none; border-bottom-color: var(--pen); box-shadow: 0 2px 0 var(--pen); }
.line[type="date"] { font-size: 24px; min-height: 44px; }
.line--area {
  resize: vertical; min-height: 128px; line-height: 32px; padding-top: 0;
  border: 0;
  background-image: linear-gradient(transparent 31px, var(--line) 31px);
  background-size: 100% 32px;
  background-attachment: local;
}
.line--area:focus { box-shadow: none; background-image: linear-gradient(transparent 31px, var(--pen) 31px); }
.field.has-error .line { border-bottom-color: var(--margin); }

/* Выбор «обвести ручкой» */
.chips { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px;
  font-size: 16px; font-weight: 500; color: var(--ink-soft);
  border: 2px solid transparent;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transition: color .15s, border-color .15s, background-color .15s;
}
.chip:hover span { color: var(--ink); background: var(--pen-soft); }
.chip input:checked + span {
  color: var(--pen); border-color: var(--pen); background: transparent; font-weight: 600;
}
.chip input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.chips--small .chip span { font-size: 15px; padding: 7px 14px; }

.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--pen); flex: none; }
.check small { color: var(--ink-mute); }
.field--consent .check { font-size: 15px; }

.file { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.file__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border: 1.5px dashed var(--ink-mute); border-radius: 10px;
  font-weight: 500; font-size: 15px; color: var(--ink);
  max-width: 100%;
}
.file__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__btn:hover { border-color: var(--pen); color: var(--pen); }
#file:focus-visible + .file__btn { outline: 3px solid var(--pen); outline-offset: 2px; }
.file.has-file .file__btn { border-style: solid; border-color: var(--pen); color: var(--pen); background: var(--pen-soft); }
.file__clear { background: none; border: 0; color: var(--ink-mute); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }
.file .hint { margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Направление: системный выбор (на телефоне открывается родное колесо iOS/Android) */
.line--select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 32px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 6px center;
}
.line--select.is-empty { color: var(--placeholder); font-weight: 500; }
.line--select option { font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--paper); }
#discipline:not([hidden]) { margin-top: 10px; }

/* На компьютере: компактный список вместо огромного системного меню.
   Работает в Chrome/Edge (appearance: base-select); в Safari и Firefox остаётся системное меню
   обычного размера. На телефонах не трогаем — там удобнее родное колесо. */
@media (hover: hover) and (pointer: fine) {
  @supports (appearance: base-select) {
    .line--select, .line--select::picker(select) { appearance: base-select; }
    .line--select::picker-icon { display: none; }
    .line--select::picker(select) {
      margin-top: 6px; padding: 6px;
      max-height: min(340px, 60vh); overflow-y: auto;
      background: var(--paper); color: var(--ink);
      border: 1px solid var(--line); border-radius: 12px;
      box-shadow: var(--shadow-pop);
    }
    .line--select option {
      padding: 8px 12px; border-radius: 8px;
      font: 400 16px/1.35 var(--font); color: var(--ink);
    }
    .line--select option::checkmark { display: none; }
    .line--select option:hover, .line--select option:focus-visible { background: var(--pen-soft); color: var(--pen); outline: none; }
    .line--select option:checked { color: var(--pen); font-weight: 600; }
    .line--select option[value=""] { color: var(--ink-mute); }
  }
}

/* Оценка */
.estimate {
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(var(--paper), var(--paper)) padding-box;
}
@media (min-width: 961px) {
  .estimate { position: sticky; top: 84px; align-self: start; }
}
.estimate__label { font-size: 15px; font-weight: 600; }
.estimate__empty { color: var(--ink-mute); font-size: 16px; min-height: 64px; }
.estimate__price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.estimate__price mark, .done__price mark {
  background: linear-gradient(100deg, transparent 2%, var(--marker) 4%, var(--marker) 96%, transparent 98%);
  background-size: 100% 52%; background-repeat: no-repeat; background-position: 0 85%;
  color: inherit; padding: 0 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.estimate__factors { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.estimate__factors li { display: flex; justify-content: space-between; gap: 12px; }
.estimate__factors b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.estimate__warn, .done__warn {
  font-size: 14px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 10px 12px;
}
.estimate__note { font-size: 14px; color: var(--ink-mute); margin-top: auto; padding-top: 8px; }
.estimate.bump .estimate__price mark { animation: bump .35s ease; }
@keyframes bump { 40% { background-size: 100% 70%; } }

/* Успех */
.done { padding: 48px 48px 48px 96px; display: grid; gap: 16px; justify-items: start; max-width: 760px; }
.done:focus { outline: none; }
.done, .order__form, #order, #prices, #how, #faq { scroll-margin-top: 76px; }
.done__title { font-size: 34px; }
.done__title span { font-family: var(--hand); color: var(--pen); font-size: 1.25em; }
.done__price { font-size: 22px; font-weight: 600; }
.done > p { color: var(--ink-soft); max-width: 40em; }
.done .btn { margin-top: 8px; }

/* Условия */
.terms { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.terms > div { padding: 24px 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; font-size: 20px; }
.terms dd { margin: 8px 0 0; color: var(--ink-soft); max-width: 40ch; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--pen); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 62ch; }

/* Финал и подвал */
.final { background: var(--final-bg); color: #fff; padding: 88px 0; }
.final__in { display: grid; justify-items: start; gap: 16px; }
.final h2 { font-size: clamp(30px, 3.6vw, 44px); }
.final p { color: var(--final-soft); font-size: 18px; margin-bottom: 12px; }
.foot { padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-mute); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot a { color: var(--ink-mute); margin-left: auto; }

/* Плавающая кнопка Telegram (мобильные) */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--tg); color: #fff;
  box-shadow: 0 8px 24px -6px rgba(34, 158, 217, .6);
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
}
.fab .ico { width: 26px; height: 26px; }
.fab.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__in { gap: 40px; }
  .order__form { grid-template-columns: minmax(0, 1fr) 300px; }
  .fields { padding-left: 88px; padding-right: 36px; }
}

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; }
  .hero h1 { max-width: 16ch; }
  .sheet-wrap { width: min(86%, 400px); }
  .order__form { grid-template-columns: 1fr; }
  .fields { border-right: 0; }
  .estimate { border-top: 1px dashed var(--line); padding: 28px 48px 36px 96px; }
  .estimate__note { margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .steps li:nth-child(2)::after { display: none; }
  .pt-row { grid-template-columns: 1.8fr 1fr 1fr auto; }
  .pt-row > :nth-child(2) { display: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .top__in { justify-content: space-between; min-height: 60px; }
  .lead { font-size: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .tag { right: -6px; padding: 10px 12px; }
  .tag__price { font-size: 17px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head p { font-size: 17px; }

  .pt-row--head { display: none; }
  .pt-row {
    grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0;
  }
  .pt-row > :nth-child(1) { grid-column: 1 / -1; }
  .pt-row > :nth-child(2) { display: none; }
  .pt-row > :nth-child(3) { grid-column: 1; grid-row: 2; }
  .pt-row > :nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .pt-row > :nth-child(5) { grid-column: 1 / -1; margin-top: 10px; }
  .pt-row .btn { width: 100%; }
  .subjects { grid-template-columns: 1fr; gap: 14px; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
  .steps li::after { display: none; }

  .notebook::before { left: 28px; }
  .fields { padding: 28px 20px 28px 44px; gap: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 26px; }
  #type-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  #type-chips .chip span { display: block; padding: 9px 12px; }
  .estimate { padding: 24px 20px 28px 44px; }
  .estimate__price { font-size: 28px; }
  .line { font-size: 24px; }
  .done { padding: 32px 20px 32px 44px; }
  .done__title { font-size: 28px; }
  .done .btn { width: 100%; }

  .terms { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding-right: 36px; }
  .faq details p { padding-right: 0; }
  .final { padding: 64px 0 96px; }
  .final .btn { width: 100%; }
  .foot a { margin-left: 0; }
  .fab { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
