/* Стиль страницы: много воздуха, крупный шрифт, мягкие карточки.
   Один файл без сборщика — лендинг должен открываться мгновенно на телефоне
   со слабым интернетом, а лишний CSS-бандл этому только мешает. */

:root {
  /* Системный шрифт: на iPhone это SF Pro, на Android — Roboto. Своих шрифтов
     не грузим: каждый веб-шрифт это ещё 100+ КБ и прыжок текста при загрузке. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --bg: #ffffff;
  --bg-muted: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);

  /* Акцент — спокойный сине-зелёный: в медицине он читается как «чисто и
     безопасно», в отличие от красного, который здесь означает тревогу. */
  --accent: #0f766e;
  --accent-strong: #115e56;
  --accent-soft: #e6f4f1;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 14px 40px rgba(0, 0, 0, 0.07);

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;

  --container: 1120px;
  --header-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-muted: #101012;
    --bg-card: #1a1a1d;
    --text: #f5f5f7;
    --text-muted: #a1a1a6;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  /* Якоря не должны уезжать под липкую шапку. */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  /* Место под липкую кнопку звонка на мобильном, иначе она накрывает подвал. */
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- Шапка --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.header__brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

.header__nav a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__nav a:hover { color: var(--text); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__nav + .header__actions { margin-left: 22px; }

.lang {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang:hover { color: var(--text); border-color: var(--text-muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { color: #04201d; }
}

.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 17px 36px; font-size: 19px; }

.btn__phone { font-variant-numeric: tabular-nums; }

/* --- Секции -------------------------------------------------------------- */

.section { padding: 96px 0; }
.section--muted { background: var(--bg-muted); }

.section__head { max-width: 720px; margin-bottom: 44px; }

h1, h2, h3 { letter-spacing: -0.03em; font-weight: 600; margin: 0; }

h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.07;
}

h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.12;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 18px 0 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

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

.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
  /* Мягкое свечение вместо фотографии: пока фото нет, экран всё равно
     не выглядит пустым, а когда появится — свечение останется фоном. */
  background:
    radial-gradient(1000px 420px at 78% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(760px 380px at 8% 8%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__text { max-width: 700px; }
.hero .lead { margin-top: 22px; max-width: 560px; }

.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.hero__cta-note {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  max-width: 520px;
}

.fact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.fact__label { font-size: 13px; color: var(--text-muted); }
.fact__value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }

/* Панель справа от заголовка: что человек получает за сутки. Пока нет
   фотографий, она держит первый экран содержательным, а когда появятся —
   фото встанет сверху той же карточки. */
.hero__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero__photo { aspect-ratio: 4 / 3; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__panel-body { padding: 26px 28px 8px; }

.hero__panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero__panel .checklist li:last-child { border-bottom: 0; }

/* --- Карточки ------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-muted); }

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.card__list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.card__list-title {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
}

.card__list-value { color: var(--text); font-weight: 500; white-space: nowrap; }

.card__note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Боль: те же карточки, но приглушённые — они не должны перетягивать
   внимание с выгод, это лишь узнавание ситуации. */
.card--pain { background: transparent; box-shadow: none; }
.card--pain h3 { color: var(--text); }

.resolution {
  margin-top: 36px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  max-width: 860px;
}

/* --- Клиники рядом ------------------------------------------------------- */

.nearby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.nearby__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.nearby__time {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.nearby__unit { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.nearby__name {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.nearby__note { margin: 22px 0 0; font-size: 15px; color: var(--text-muted); }

/* --- Шаги ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--accent);
}

.step__n {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* --- Цена ---------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Тариф с уходом выделен рамкой: это то, ради чего сюда и звонят,
   а голое проживание — выбор меньшинства. */
.plan--featured {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-md);
}

.plan__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.plan__price {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.plan__price span { font-size: 0.55em; font-weight: 500; }
.plan__unit { font-size: 15px; color: var(--text-muted); margin-top: 2px; }

.plan__for {
  margin: 18px 0 6px;
  color: var(--text-muted);
  font-size: 16px;
}

.plan .checklist { margin-bottom: 24px; }
.plan .checklist li:last-child { border-bottom: 0; }
.plan .btn { margin-top: auto; width: 100%; }

.price__extra {
  margin-top: 36px;
  max-width: 720px;
}

.price__note { margin-top: 18px; font-size: 15px; color: var(--text-muted); }

.checklist { margin: 0; padding: 0; list-style: none; }

.checklist__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

.checklist--extra li::before {
  background: var(--bg-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10h8' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Те же тарифы, но одной строкой — для панели в первом экране. */
.plan-mini-list { margin: 0; padding: 0; list-style: none; }

.plan-mini {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.plan-mini__name { color: var(--text-muted); font-size: 15px; }

.plan-mini__price {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.plan-mini__unit { font-size: 13px; font-weight: 400; color: var(--text-muted); }

.hero__panel-note {
  margin: 14px 0 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Оффер --------------------------------------------------------------- */

.offer {
  background: linear-gradient(165deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.offer h2 { color: #fff; }
.offer p { color: rgba(255, 255, 255, 0.86); font-size: clamp(17px, 2vw, 20px); margin: 20px auto 0; max-width: 640px; }

.offer__bullets {
  list-style: none;
  margin: 32px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 820px;
}

.offer__bullets li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
}

.offer .btn {
  margin-top: 36px;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.offer .btn:hover { background: #f5f5f7; }
.offer__note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* --- FAQ ----------------------------------------------------------------- */

.faq { max-width: 820px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq p {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 700px;
}

/* --- Контакты ------------------------------------------------------------ */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact__label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.contact__value { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.contact__value a { text-decoration: none; }
.contact__value a:hover { color: var(--accent); }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
}

.map-link:hover { text-decoration: underline; }

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

.footer {
  padding: 48px 0 calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__disclaimer { max-width: 760px; margin: 0 0 20px; line-height: 1.5; }

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

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

/* --- Липкая кнопка звонка на мобильном ----------------------------------- */

.sticky-call {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 12px 20px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.sticky-call__label { white-space: nowrap; }

.sticky-call__hint {
  font-size: 12px;
  opacity: 0.82;
  font-weight: 400;
}

/* --- Появление при прокрутке --------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Без JS содержимое всё равно должно быть видно: класс .reveal вешает скрипт,
   но если он не загрузился, .no-js оставляет всё на месте. */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* --- Мобильная адаптация ------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { order: 2; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .price__tag { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .header__nav { display: none; }
  .header__actions { margin-left: auto; }
  .header .btn { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fact { padding: 13px 14px; }
  .card { padding: 24px; }
  .sticky-call { display: flex; }
  .hero__cta .btn { width: 100%; }
  .btn { flex-wrap: wrap; text-align: center; }
  .btn--lg { font-size: 17px; padding: 15px 22px; }
  .hero__cta-note { max-width: none; }
  .offer { padding: 36px 22px; border-radius: var(--radius); }
  .faq summary { font-size: 17px; }
}
