/* Сброс и базовая типографика */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }
/* Плавно — только якоря внутри страницы: класс ставит main.js после загрузки.
   Иначе переход /ceny/#раздел с другой страницы ехал от верха прайса секунды две */
html.is-loaded { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-loaded { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* страховка от горизонтального скролла */
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

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

ul { list-style: none; padding: 0; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

input, select, textarea { font: inherit; }

h1, h2, h3, h4 { font-weight: inherit; line-height: 1.1; }

section { overflow: hidden; }

/* Контейнер 1440 с полями 72 (на мобиле 20) */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Заголовок секции (Prata, у Prata нет болда) */
.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: normal;
  color: var(--ink);
}
/* Внутренние страницы (Figma 67:2): заголовки секций 30 */
.h2--sm { font-size: 30px; }
@media (max-width: 768px) {
  .h2, .h2--sm { font-size: 22px; }
}

/* Кнопки — радиус 8, Golos 16 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--rose);
  color: #fff;
  padding: 15px 30px;
  border: 1.5px solid var(--rose);
}
.btn--primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn--ghost {
  color: var(--rose);
  padding: 15px 30px;
  border: 1.5px solid var(--rose);
  background: transparent;
}
.btn--ghost:hover { background: rgba(138, 74, 94, 0.06); }
/* Шапка: компактная */
.btn--sm { font-size: 14px; padding: 10px 20px; border-width: 0; }
/* Блок врача: 15px */
.btn--md { font-size: 15px; padding: 14.5px 27.5px; }

/* Бейдж «Онкология молочных желёз» — лента как рамка */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: #fff;
  border: 1px solid var(--pink);
  border-radius: var(--r-pill);
  color: var(--rose);
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
}
.badge img { width: 10px; height: 13px; }

/* Заглушка под фото (до реальной съёмки) */
.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--haze);
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.5;
  padding: 16px;
}

/* Ловушка для ботов в формах */
.hp { display: none !important; } /* только display:none — Chromium автозаполняет поле, спрятанное сдвигом за экран (10-10-2026, см. память honeypot-autofill-false-positive) */

/* Скрыть визуально, оставить скринридеру (подписи полей) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
