/*
  Радар — лендинг для автошкол.
  Цвета, радиусы и шрифт — из кабинета: apps/web/src/styles/tokens.css и DESIGN.md.
  Оранжевый — только кнопки и мелкие акценты; на оранжевом — тёмный текст (5.3:1).
  Сначала телефон (от 320 px), потом компьютер.
*/

/* ── Шрифт: Onest, как в кабинете; свои копии файлов, без внешних запросов ── */

@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Токены ── */

:root {
  --font: 'Onest Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ink: #1f2125;
  --ink-2: #4d525b;
  --ink-3: #6b7079;

  --canvas: #f3f4f6;
  --surface: #ffffff;
  --fill: #eceef1;
  --fill-hover: #e3e6ea;
  --line: #e6e8ec;
  --line-strong: #d3d7dd;

  --brand: #e77320;
  --brand-hover: #f08a3e;
  --brand-press: #de6c1c;
  --on-brand: #1f2125;
  --brand-text: #b04e08;
  --brand-soft: #fdefe2;
  --brand-soft-text: #7a3606;

  --info-text: #0e6e80;
  --chat: #e8edf2;
  --chrome: #1f2125;
  --focus: #0e6e80;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-raise: 0 1px 2px rgb(17 19 23 / 0.06);
  --shadow-pop: 0 12px 32px rgb(17 19 23 / 0.14), 0 2px 8px rgb(17 19 23 / 0.06);
  --shadow-shot: 0 28px 56px -18px rgb(17 19 23 / 0.28), 0 6px 16px rgb(17 19 23 / 0.06);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --d-1: 120ms;
  --d-2: 200ms;

  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
  }
}

/* Повышенный контраст в настройках системы: вторичный текст и линии темнее. */
@media (prefers-contrast: more) {
  :root {
    --ink-2: #2f3238;
    --ink-3: #464a52;
    --line: #c9cdd3;
    --line-strong: #858a93;
  }
}

/* ── Основа ── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex: none;
}

a {
  color: var(--info-text);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nw {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--d-1) var(--ease),
    border-color var(--d-1) var(--ease),
    transform var(--d-1) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:active {
  background: var(--brand-press);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--brand-hover);
  }

  .btn-secondary:hover {
    background: var(--fill);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(255 255 255 / 0.82);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: 2px;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
  }
}

@media (hover: hover) and (min-width: 1024px) {
  .nav a:hover {
    background: var(--fill);
    color: var(--ink);
  }
}

/* ── Общее для разделов ── */

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--canvas);
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 960px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  letter-spacing: -0.022em;
}

.eyebrow + .section-title {
  margin-top: 12px;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.section-note {
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* Квадратик со значком: в болях, MAX, сигналах и надёжности. */
.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.section--alt .tile-icon {
  background: var(--surface);
}

/* ── Рамки снимков: телефон и окно браузера ── */

.phone {
  position: relative;
  width: 100%;
  padding: 3.2%;
  border-radius: 14% / 6.5%;
  background: var(--chrome);
  box-shadow: var(--shadow-shot);
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: 11.5% / 5.3%;
  background: var(--canvas);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-shot);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--fill);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser img {
  width: 100%;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top left;
  background: var(--canvas);
}

@media (min-width: 768px) {
  .browser-bar {
    height: 36px;
    padding: 0 16px;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 64px;
}

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

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.375rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.hero-lead {
  max-width: 36em;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.ticks svg {
  width: 18px;
  height: 18px;
  color: var(--brand-text);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 8px 0;
}

/* Круги радара за телефоном — единственное украшение страницы. */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 820px;
  height: 820px;
  transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 67px, var(--line-strong) 67px 68px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 66%);
  mask-image: radial-gradient(circle, #000 20%, transparent 66%);
  pointer-events: none;
}

.phone--hero {
  width: min(76%, 300px);
}

.notice {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: min(280px, 78%);
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.notice p {
  margin-top: 6px;
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.notice-time {
  margin-left: auto;
  font-weight: 500;
}

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }

  .notice {
    left: -4%;
  }
}

/* ── 2. Боли ── */

.pain-grid {
  display: grid;
  gap: 12px;
}

.pain {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

/* Карточка боли белая и на сером полотне: квадратик значка — серый. */
.section--alt .pain .tile-icon {
  background: var(--fill);
}

.pain h3 {
  margin-top: 18px;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.pain p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

.bridge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin-top: 36px;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.4;
}

.bridge svg {
  width: 32px;
  height: 32px;
  margin-top: 1px;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pain {
    padding: 28px;
  }

  .bridge {
    margin-top: 48px;
  }
}

/* ── 3. По ролям ── */

.role-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.role-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--d-1) var(--ease);
}

@media (hover: hover) {
  .role-nav a:hover {
    background: var(--fill-hover);
  }
}

.role {
  display: grid;
  align-items: center;
  gap: 36px;
}

.role + .role {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.role-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 0.875rem;
  font-weight: 650;
}

.role h3 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -0.02em;
}

.role-text > p:not(.role-label) {
  margin-top: 12px;
  color: var(--ink-2);
}

.benefits {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.benefits li {
  position: relative;
  padding-left: 36px;
}

.benefits li::before {
  content: '';
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a3606' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.benefits strong {
  font-weight: 650;
}

.role-media {
  display: flex;
  justify-content: center;
}

.phones-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  width: min(100%, 500px);
}

.phones-pair .phone:nth-child(2) {
  margin-top: 40px;
}

.phone--single {
  width: min(64%, 290px);
}

.inline-cta {
  margin-top: 56px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--canvas);
  color: var(--ink-2);
}

.inline-cta a {
  font-weight: 650;
}

@media (min-width: 960px) {
  .role {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .role--wide {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .role--wide.role--flip {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .role--flip .role-media {
    order: -1;
  }

  .role + .role {
    margin-top: 88px;
    padding-top: 88px;
  }

  .phones-pair .phone:nth-child(2) {
    margin-top: 64px;
  }

  .inline-cta {
    margin-top: 88px;
    text-align: center;
  }
}

/* «Подключаем по запросу школы» — серая панель после ролей. */
.extras {
  margin-top: 56px;
  padding: 24px 16px 16px;
  border-radius: var(--r-xl);
  background: var(--canvas);
}

.extras-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  max-width: 760px;
  padding-inline: 8px;
}

.extras .tile-icon {
  background: var(--surface);
}

.extras h3 {
  padding-top: 6px;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
}

.extras-head p {
  margin-top: 10px;
  color: var(--ink-2);
}

.extras-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.extras-list li {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
}

.extras-list h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
}

.extras-list p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .extras-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 960px) {
  .extras {
    margin-top: 88px;
    padding: 40px 40px 32px;
  }

  .extras-head {
    padding-inline: 0;
  }

  .extras-list {
    margin-top: 32px;
    gap: 12px;
  }
}

/* ── Списки «значок + текст»: MAX и сигналы ── */

.feature-list,
.signal-list {
  display: grid;
}

.feature-list {
  gap: 24px;
}

.feature-list li,
.signal-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.feature-list h3,
.signal-list h3 {
  padding-top: 2px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.feature-list p,
.signal-list p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ── 4. MAX: макет переписки с ботом ── */

.max-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

.chat-figure {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.chat {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-shot);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chrome);
  color: #fff;
  font-weight: 700;
}

.chat-name {
  font-weight: 650;
  line-height: 1.25;
}

.chat-sub {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.chat-body {
  display: grid;
  gap: 16px;
  padding: 16px 14px 20px;
  background: var(--chat);
}

.msg {
  max-width: 100%;
}

@media (min-width: 400px) {
  .msg {
    max-width: 94%;
  }
}

.msg-bubble {
  padding: 12px 14px 8px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  box-shadow: var(--shadow-raise);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.msg-time {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  text-align: right;
}

.kb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.kb--one {
  grid-template-columns: 1fr;
}

.kb--three {
  grid-template-columns: 1fr;
}

.kb li {
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-raise);
  color: var(--info-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.chat-figure figcaption {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 480px) {
  .kb--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .max-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 80px;
  }
}

/* ── 5. Сигналы ── */

.signals-grid {
  display: grid;
  align-items: center;
  gap: 40px;
}

.signal-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.signal-list li:first-child {
  padding-top: 0;
}

.signal-list li:last-child {
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .signals-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

/* ── 6. Переезд ── */

.migration-grid {
  display: grid;
  align-items: center;
  gap: 40px;
}

.num-list {
  display: grid;
  gap: 24px;
}

.num-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.num-list h3 {
  padding-top: 6px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.num-list p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1rem;
}

.note-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 36px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 1rem;
}

.note-line svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .migration-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .note-line {
    margin-top: 56px;
  }
}

/* ── 7. Надёжность и закон ── */

.trust-grid {
  display: grid;
  gap: 12px;
}

.trust-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--canvas);
}

.trust-card .tile-icon {
  background: var(--surface);
}

.trust-card h3 {
  margin-top: 18px;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.trust-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-card {
    padding: 28px;
  }
}

/* ── 8. Как начать ── */

.steps {
  display: grid;
  gap: 12px;
}

.step {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 1.125rem;
  font-weight: 700;
}

.step h3 {
  margin-top: 20px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 479px) {
  .center-cta .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .step {
    padding: 32px 28px;
  }
}

/* ── 9. Тарифы ── */

.perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: -12px auto 32px;
}

.perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
}

.perks svg {
  width: 20px;
  height: 20px;
}

.plans {
  display: grid;
  gap: 12px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--canvas);
}

.plan--featured {
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
}

.plan h3 {
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.plan-for {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 1rem;
}

.plan-price {
  margin-top: 20px;
}

.plan-student {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.plan-sum {
  display: block;
  font-size: clamp(2rem, 1.7rem + 1vw, 2.375rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.plan-per {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.plan-student {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1rem;
}

.plan-student strong {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.plan-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
}

.plan-list li::before {
  content: '';
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b04e08' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.plans-calc {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--canvas);
  font-size: 1rem;
}

.plans-calc p + p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* Расчёт — отдельной строкой. */
.plans-calc .calc {
  margin-top: 4px;
  color: var(--ink);
}

.plans-calc strong {
  font-weight: 650;
}

.plans-include + .plans-include {
  margin-top: 12px;
}

.plans-include a {
  font-weight: 600;
  white-space: nowrap;
}

.plans-include {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--ink-2);
  font-size: 1rem;
  text-align: center;
}

.plans-include strong {
  color: var(--ink);
  font-weight: 650;
}

@media (min-width: 960px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
  }

  .plan {
    padding: 32px 28px;
  }

  /* Метка — на верхней границе карточки: названия тарифов стоят на одной линии. */
  .plan--featured {
    position: relative;
  }

  .plan-badge {
    position: absolute;
    top: -14px;
    left: 26px;
    margin: 0;
  }

  .perks {
    margin-bottom: 44px;
  }

  .plans-calc {
    margin-top: 36px;
    padding: 20px 28px;
    text-align: center;
  }

  .plans-include {
    margin-top: 28px;
  }
}

/* ── 10. Вопросы ── */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-radius: var(--r-lg);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fill)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2125' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  transition: transform var(--d-2) var(--ease);
}

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

.answer {
  padding: 0 20px 22px;
  color: var(--ink-2);
}

.answer p + p {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .faq summary {
    padding: 20px 24px;
    font-size: 1.125rem;
  }

  .answer {
    padding: 0 24px 24px;
    max-width: 68ch;
  }
}

/* ── 11. Демо ── */

.demo-card {
  max-width: 900px;
  margin-inline: auto;
  padding: 36px 20px;
  border-radius: var(--r-xl);
  background: var(--canvas);
  text-align: center;
}

.demo-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: block;
}

.demo-card .section-lead {
  max-width: 40em;
  margin-inline: auto;
}

.demo-hint {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.contact-grid {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: background-color var(--d-1) var(--ease), transform var(--d-1) var(--ease);
}

.contact:active {
  transform: scale(0.99);
}

.contact svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
}

.contact-title {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
}

.contact-sub {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact--primary {
  border-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}

.contact--primary .contact-sub {
  color: var(--on-brand);
}

@media (hover: hover) {
  .contact:hover {
    background: var(--fill);
  }

  .contact--primary:hover {
    background: var(--brand-hover);
  }
}

@media (min-width: 768px) {
  .demo-card {
    padding: 56px 48px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 36px;
  }

  .contact {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 4px;
    padding: 22px 16px;
    text-align: center;
  }

  .contact svg {
    grid-row: auto;
    margin-bottom: 6px;
  }
}

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

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-inner p {
  margin-top: 8px;
  max-width: 34em;
}

.logo--small {
  font-size: 1.125rem;
}

.logo--small svg {
  width: 26px;
  height: 26px;
}

.footer-note {
  align-self: end;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* ── Доступность: меньше движения, режим высокой контрастности ── */

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

  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .btn,
  .pain,
  .trust-card,
  .step,
  .faq details,
  .contact,
  .plan,
  .perks li,
  .tile-icon,
  .msg-bubble,
  .kb li,
  .inline-cta,
  .extras,
  .extras-list li,
  .plans-calc,
  .note-line {
    border: 1px solid CanvasText;
  }
}
