:root {
  color-scheme: light;

  /* Palette — calm clinical white-teal */
  --white: #ffffff;
  --tint: #f7fbfa;
  --primary: #0f6e56;
  --accent: #1d9e75;
  --surface: #e1f5ee;
  --ink: #16201c;
  --muted: #566660;
  --border: #e4eeea;

  --container: 1080px;
  --radius-card: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Обязательно ПОСЛЕ правила выше. Заголовок карточки 20px с шагом 1.2 давал ровно
   24px — столько же, сколько абзац под ним (15px × 1.6). Два разных уровня шли в
   одном вертикальном ритме. */
h3 {
  line-height: 1.3;
}

button,
input,
textarea {
  font: inherit;
}

/* ---------- Layout primitives ---------- */
.section-inner,
.site-header-inner,
.site-footer-inner,
.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--tint);
}

.eyebrow {
  margin: 0 0 14px;
  /* --accent даёт 3.39:1 на белом — для 14px это ниже нормы AA 4.5:1.
     --primary даёт 6.20:1 при том же начертании. */
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-heading p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Buttons ---------- */
.small-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  background: var(--primary);
  color: var(--white);
}

.primary-button:hover {
  background: #0c5b47;
}

.secondary-button {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.secondary-button:hover {
  background: var(--surface);
}

.small-button {
  /* Размеры намеренно НЕ переопределяются: общее правило выше даёт min-height 44px —
     это минимальная зона касания, и здесь она нужнее всего. Ниже 960px вся верхняя
     навигация скрывается, и «Скачать» остаётся единственной целью в шапке. */
  background: var(--primary);
  color: var(--white);
}

.small-button:hover {
  background: #0c5b47;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Был blur(10px) поверх rgba(255,255,255,.9). Фон под шапкой всегда либо #ffffff,
     либо #f7fbfa, поэтому результат неотличим от сплошного белого — а размытие
     пересчитывается на каждом кадре прокрутки. Платы за эффект нет, значит и снятие
     ничего не стоит. */
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  /* Кнопка меню отнимает место в узкой шапке, и название ломалось на «Ритм / сердца».
     Название продукта переносить не должно. */
  white-space: nowrap;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--muted);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ghost-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.ghost-link:hover {
  color: var(--primary);
}

/* ---------- Кнопка меню ---------- */
/* На широком экране не нужна: меню и так видно. Показывается медиа-запросом ниже. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  /* 44px — минимальная зона касания; отдельно важно здесь, потому что на телефоне
     это единственный путь к разделам сайта. */
  width: 44px;
  height: 44px;
  /* Без этого флексбокс ужимает кнопку до ~42px, когда в шапке мало места —
     и зона касания оказывается меньше минимума. */
  flex: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .bar {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  /* Полоски поворачиваются вокруг центра значка, иначе крестик собирается криво. */
  transform-origin: 12px 12px;
  transition: transform 0.18s ease, opacity 0.12s ease;
}

/* Открыто — три полоски складываются в крестик. */
.nav-toggle[aria-expanded='true'] .bar-top {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .bar-mid {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .bar-bottom {
  transform: translateY(-5px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle .bar {
    transition: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-copy {
  min-width: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}

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

.hero-note {
  max-width: 540px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--muted);
  /* Та же оговорка, что и в подвале: 14px для неё мало. */
  font-size: 16px;
  line-height: 1.6;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.ecg-figure {
  display: block;
  width: 100%;
  height: auto;
}

.ecg-base {
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.25;
}

.ecg-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-visual figcaption {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 110, 86, 0.18);
}

.hero-visual figcaption strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.hero-visual figcaption span {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--tint);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--primary);
}

.trust-item h3 {
  margin-top: 16px;
  font-size: 20px;
}

.trust-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- App identity (apps section) ---------- */
.app-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.app-identity-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.app-identity-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 110, 86, 0.06);
}

/* ---------- Stats (Почему важно) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.stat-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.stat-card strong {
  display: block;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Benefits ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.benefit-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.benefit-card h3 {
  margin-top: 18px;
  font-size: 20px;
}

.benefit-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Device ---------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.device-card h3 {
  font-size: 20px;
}

.device-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.device-card-lead {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-color: rgba(15, 110, 86, 0.16);
}

.device-disc {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.device-card-lead h3 {
  margin-top: 28px;
}

/* ---------- Downloads / apps ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-card img {
  width: 140px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.download-card h3 {
  font-size: 20px;
}

.download-card p {
  margin-top: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.doc-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.instruction-card .primary-button,
.instruction-card .secondary-button {
  margin-top: auto;
}

/* ---------- Workflow ---------- */
.workflow-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

.step-index {
  display: inline-block;
  /* Номер шага был 22px акцентным цветом — крупнее собственного заголовка шага (19px),
     то есть иерархия перевёрнута. Уменьшение размера обязано идти ВМЕСТЕ со сменой
     цвета: 3.39:1 у --accent проходит только как «крупный текст», при 14px это провал. */
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.workflow-step h3 {
  margin-top: 14px;
  font-size: 20px;
}

.workflow-step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Forms ---------- */
.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.form-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.form-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.doctor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.form-card {
  display: grid;
  gap: 18px;
}

.form-row {
  display: flex;
  gap: 16px;
}

label {
  display: grid;
  flex: 1;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  /* 16px обязателен: Safari на iPhone увеличивает страницу при фокусе на поле мельче
     16px и обратно масштаб НЕ возвращает — после первого касания «ФИО» страница
     остаётся увеличенной и съезжает вбок. Без этого правила поля берут 14px
     из `font: inherit` (строка 66). */
  font-size: 16px;
  /* Рамка --border (#e4eeea) давала контраст 1.19:1 на белом фоне карточки: подпись
     видно, а где само поле — нет. WCAG 1.4.11 требует 3:1 для границ элементов
     управления; #7f8d88 даёт 3.46:1. */
  border: 1px solid #7f8d88;
  border-radius: var(--radius-input);
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  /* было #97a39e — 2.61:1, ниже нормы 4.5:1. Подсказка «Кардиолог, аритмолог…» —
     единственное объяснение врачу, что писать в поле, её надо видеть. */
  color: #5f6c67;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18);
}

.form-card button {
  justify-self: start;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status[data-tone="ok"] {
  color: var(--primary);
}

.form-status[data-tone="error"] {
  color: #b42318;
}

/* ---------- Legal / content pages ---------- */
.legal {
  padding: 64px 0 88px;
}

.legal-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.legal-back:hover {
  color: var(--primary);
}

.legal h1 {
  font-size: clamp(30px, 4.5vw, 44px);
}

.legal .legal-lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.legal-section {
  margin-top: 44px;
}

.legal-section h2 {
  font-size: clamp(22px, 3vw, 28px);
}

.legal-section h3 {
  margin-top: 24px;
  font-size: 18px;
}

.legal-section p {
  margin-top: 14px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.legal-section p.legal-muted {
  color: var(--muted);
}

.legal-section ul,
.legal-section ol {
  margin-top: 14px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.legal-section li {
  margin-top: 8px;
}

.legal-note {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  line-height: 1.6;
}

.legal-callout {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--tint);
}

.legal-callout strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.legal-callout span,
.legal-callout a {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* Ссылка ВНУТРИ строки реквизитов остаётся в строке: телефон писался под подписью
   «Телефон:», как будто это отдельный пункт, а не значение того же поля. */
.legal-callout span a {
  display: inline;
  margin-top: 0;
  font-size: inherit;
}


.legal-callout a {
  color: var(--primary);
  font-weight: 600;
  /* Ссылки шли строками по 24px с зазором 6px — два почтовых адреса подряд почти
     невозможно развести пальцем. 44px — минимальная зона касания. */
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.placeholder {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(29, 158, 117, 0.14);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* FAQ (support page) */
.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
}

.faq-item h3 {
  font-size: 20px;
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item ol {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .legal-inner {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--tint);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.footer-brand {
  max-width: 560px;
}

.footer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.footer-disclaimer {
  margin-top: 16px;
  /* Был 13px приглушённым — мельче и бледнее любого другого содержательного текста
     страницы, при том что это единственная оговорка о границах применения. Навигация
     подвала рядом (14px, вес 600) выглядела важнее. Важность утверждения не должна
     быть обратна его кеглю. */
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

/* Реквизиты продавца в подвале. Требование платёжного провайдера: покупатель должен
   видеть, кому он платит, на каждой странице, а не только в оферте. Набран так же, как
   бренд-блок рядом, чтобы читался как сведения, а не как мелкий шрифт договора. */
.footer-legal {
  max-width: 420px;
}

.footer-legal strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.footer-legal span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-legal .footer-payments {
  margin-top: 10px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .footer-legal {
    max-width: none;
  }
}

.footer-reg {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  /* Раньше здесь стояло просто display:none — навигация исчезала совсем, и на
     телефоне до разделов «Врачам» и «Заказать» можно было добраться только слепой
     прокруткой всей страницы. Теперь то же меню становится выпадающей панелью,
     которую открывает кнопка. */
  .nav-toggle {
    display: inline-flex;
    /* Визуально — в конец строки, хотя в разметке кнопка стоит раньше меню
       (см. комментарий в index.html про порядок обхода с клавиатуры). */
    order: 5;
  }

  .top-nav {
    display: none;
    /* Позиционируется относительно .site-header (он sticky, а значит уже является
       точкой отсчёта), поэтому панель растягивается на всю ширину шапки. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 18px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(22, 32, 28, 0.08);
  }

  .top-nav[data-open='true'] {
    display: flex;
  }

  .top-nav a {
    display: flex;
    align-items: center;
    /* Зона касания: пункты идут подряд, и промахнуться пальцем по соседнему легко. */
    min-height: 48px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
  }

  .top-nav a:last-child {
    border-bottom: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .form-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-grid,
  .benefit-grid,
  .device-grid,
  .workflow-row,
  .trust-inner {
    /* .trust-inner не был в этом списке и держал ЖЁСТКИЕ три колонки вплоть до 601px:
       телефон в альбомной ориентации и малые планшеты получали три сжатых столбца. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-card-lead {
    grid-row: auto;
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .section-inner,
  .site-header-inner,
  .site-footer-inner,
  .hero-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .header-actions .ghost-link {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .stat-grid,
  .benefit-grid,
  .device-grid,
  .workflow-row,
  .trust-inner {
    grid-template-columns: 1fr;
  }

  .device-card-lead {
    grid-column: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    /* flex: 1 делил строку пополам — на 375px под «Скачать приложение» оставалось
       ~117px, и надпись всегда переносилась. Каждая кнопка занимает свою строку. */
    flex: 1 1 100%;
  }
}

/* ---------- Ссылки внутри текста ---------- */
/* Глобальное `a { color: inherit; text-decoration: none }` делает ссылку в абзаце
   неотличимой от обычного текста — в ответах FAQ и в политике по ним просто никто
   не переходит, потому что не видно, что это ссылка. */
.faq-item p a,
.faq-item ol a,
.faq-item ul a,
.legal-section p a,
.legal-section li a,
.trust-item p a,
.footer-disclaimer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Заголовок для скринридера там, где визуальный заголовок не нужен. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Оговорка о пилоте в оферте: документ описывает ПЛАТНУЮ услугу, а оплаты пока нет.
   Читается первой и должна отличаться от обычной серой врезки, иначе её пролистают. */
.legal-note-pilot {
  border-color: #b32b45;
  border-left-width: 4px;
  background: rgba(179, 43, 69, 0.05);
}
.legal-note-pilot strong { color: #b32b45; }
