/* ==========================================================================
   Ветклиника «Девять жизней», Казань — прототип нового сайта
   Палитра: тёплый кремовый фон, глубокий хвойный акцент, янтарный вторичный
   ========================================================================== */

:root {
  /* Поверхности */
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-warm: #f4ece1;
  --deep: #14332a;
  --deep-soft: #1c4436;

  /* Текст */
  --ink: #1f2a26;
  --ink-muted: #5d6b64;
  --on-deep: #eef5f1;
  --on-deep-muted: #a9c4b8;

  /* Акценты */
  --accent: #1e6b52;
  --accent-hover: #175843;
  --amber: #d98330;
  --amber-soft: #fbecd9;

  /* Линии */
  --line: #e3d9cb;
  --line-deep: rgba(238, 245, 241, 0.16);

  /* Радиусы */
  --r-card: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* Тени */
  --shadow: 0 18px 40px -24px rgba(31, 42, 38, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(31, 42, 38, 0.45);

  /* Ритм */
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 118px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Onest', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 22px); }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }

.wrap {
  width: min(1180px, 100% - var(--pad) * 2);
  margin-inline: auto;
}

section { padding-block: var(--section); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--ink-muted); font-size: 18px; margin: 0; }

/* --- Плашка прототипа ------------------------------------------------ */
.proto-bar {
  background: var(--deep);
  color: var(--on-deep-muted);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}
.proto-bar strong { color: var(--on-deep); font-weight: 600; }

/* --- Кнопки ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--surface-warm); }

.btn-outline-light { background: transparent; color: var(--on-deep); border-color: var(--line-deep); }
.btn-outline-light:hover { border-color: var(--on-deep); }

.btn-sm { padding: 11px 20px; font-size: 15px; }

/* --- Навигация -------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 240, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(31,42,38,.5); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
}
.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .18s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Герой ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
.hero-orb.a { width: 460px; height: 460px; top: -160px; right: -110px; background: radial-gradient(circle, #bfe0cf, transparent 68%); }
.hero-orb.b { width: 380px; height: 380px; bottom: -180px; left: -120px; background: radial-gradient(circle, #f6dcbd, transparent 68%); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.06;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 15px;
  color: var(--ink-muted);
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 107, 82, .16);
}

/* Карточка «сегодня» */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 18px; margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.hero-card li {
  display: flex; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { margin-left: auto; font-family: 'Onest', sans-serif; white-space: nowrap; }
.hero-card .btn { width: 100%; }

/* --- Полоса фактов ---------------------------------------------------- */
.facts { padding-block: 0; }
.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.fact { background: var(--bg); padding: 26px 24px; }
.fact b {
  display: block;
  font-family: 'Onest', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.fact span { font-size: 14.5px; color: var(--ink-muted); line-height: 1.4; display: block; }

/* --- Услуги ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3c6b3; }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface-warm);
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 15.5px; margin: 0; }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(30, 107, 82, .09);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

/* --- Тёмная полоса (Илизаров) ----------------------------------------- */
.band {
  background: var(--deep);
  color: var(--on-deep);
  position: relative;
  overflow: hidden;
}
.band::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 175, 138, .3), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
}
.band h2 { color: #fff; }
.band .eyebrow { color: #7fc9a4; }
.band p { color: var(--on-deep-muted); }

.band-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.band-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.band-list li {
  display: flex; gap: 13px;
  padding: 17px 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-deep);
  border-radius: var(--r-sm);
  font-size: 15.5px;
  line-height: 1.5;
}
.band-list li b { color: #fff; display: block; margin-bottom: 2px; font-family: 'Onest', sans-serif; }
.band-list li span { color: var(--on-deep-muted); }

/* --- Цены ------------------------------------------------------------- */
.price-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.price-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row:nth-child(odd) { background: rgba(244, 236, 225, .42); }
.price-row .name { flex: 1; }
.price-row .name b { display: block; font-weight: 500; }
.price-row .name small { color: var(--ink-muted); font-size: 14px; display: block; margin-top: 2px; line-height: 1.45; }
.price-row .val {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 19px;
  white-space: nowrap;
}
.price-cat {
  padding: 16px 26px;
  background: var(--deep);
  color: #fff;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}
.price-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

/* --- Акции ------------------------------------------------------------ */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.promo {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  background: var(--amber-soft);
}
.promo b {
  display: block;
  font-family: 'Onest', sans-serif;
  font-size: 30px;
  color: var(--amber);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.promo h3 { font-size: 18px; margin-bottom: 6px; }
.promo p { font-size: 15px; color: var(--ink-muted); margin: 0; }

/* --- Врачи ------------------------------------------------------------ */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  text-align: center;
}
.doc .avatar {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 25px;
  color: var(--accent);
  background: linear-gradient(150deg, #dcebe2, #f4ece1);
}
.doc h3 { font-size: 17px; margin-bottom: 5px; }
.doc p { font-size: 14.5px; color: var(--ink-muted); margin: 0; }
.doc .role {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Доверие ---------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.trust-item {
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--surface-warm);
  border: 1px solid var(--line);
}
.trust-item .ico { font-size: 26px; margin-bottom: 12px; display: block; }
.trust-item h3 { font-size: 17px; margin-bottom: 7px; }
.trust-item p { font-size: 15px; color: var(--ink-muted); margin: 0; }

/* --- FAQ -------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-muted); font-size: 16px; }

/* --- Контакты --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line-deep);
  font-size: 18px;
}
.contact-list small { display: block; font-size: 13px; color: var(--on-deep-muted); margin-bottom: 2px; }
.contact-list a, .contact-list b {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

/* QR-визитка. Лежит на белой карточке: код должен быть тёмным по светлому,
   иначе камеры читают его через раз. */
.vcard-qr {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 20px 24px;
  margin: 0 0 26px;
}
.vcard-qr img { width: 116px; height: 116px; flex: none; display: block; }
.vcard-qr b {
  display: block;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}
.vcard-qr span { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

@media (max-width: 560px) {
  .vcard-qr { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.form {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
}
.form h3 { color: var(--ink); font-size: 21px; margin-bottom: 6px; }
.form > p { color: var(--ink-muted); font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 107, 82, .13);
}
.form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--ink-muted); margin: 14px 0 0; text-align: center; line-height: 1.5; }
.form-status { font-size: 15px; margin: 14px 0 0; text-align: center; color: var(--accent); font-weight: 600; min-height: 22px; }

/* --- Футер ------------------------------------------------------------ */
.footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--line);
  padding-block: 44px 34px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.legal {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
  opacity: .85;
}

/* --- Внутренние страницы ---------------------------------------------- */
.page-hero {
  padding-block: clamp(38px, 5vw, 62px) clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); max-width: 18em; }
.page-hero p { color: var(--ink-muted); font-size: 18px; max-width: 44em; margin: 0; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Прайс: якорное меню категорий */
.price-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .18s, border-color .18s, color .18s;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.price-block { margin-bottom: 34px; scroll-margin-top: 96px; }
.price-block > h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }

.val.tbd { color: var(--ink-muted); font-weight: 500; font-size: 16px; }

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout b { font-family: 'Onest', sans-serif; }

/* Блог: список */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3c6b3; }
.post-card .kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.post-card h2 { font-size: 21px; margin-bottom: 10px; }
.post-card p { color: var(--ink-muted); font-size: 15.5px; margin: 0 0 16px; }
.post-card .more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--accent); }

/* Статья */
.article { max-width: 760px; }
.article h2 { font-size: clamp(23px, 2.8vw, 30px); margin-top: 1.7em; }
.article h3 { font-size: 20px; margin-top: 1.5em; }
.article p, .article li { font-size: 17.5px; line-height: 1.68; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 1.2em; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 600; }
.article .lead { font-size: 20px; color: var(--ink-muted); line-height: 1.55; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.article th, .article td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.article th { font-family: 'Onest', sans-serif; font-weight: 600; background: var(--surface-warm); }
.article-cta {
  margin-top: 46px;
  padding: 30px;
  border-radius: var(--r-card);
  background: var(--deep);
  color: var(--on-deep);
}
.article-cta h3 { color: #fff; margin-top: 0; }
.article-cta p { color: var(--on-deep-muted); }
.table-scroll { overflow-x: auto; }

/* --- Экстренная страница ----------------------------------------------- */
.sos-hero { background: #3d1a14; color: #fdece7; border-bottom: 0; }
.sos-hero h1 { color: #fff; }
.sos-hero p { color: #f0c3b6; }
.sos-hero .crumbs, .sos-hero .crumbs a { color: #d9a294; }
.sos-hero .eyebrow { color: #ff9d7e; }

.sos-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 15.5px;
}
.sos-strip a.btn { flex: none; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid #c0563a;
  border-radius: var(--r-sm);
  padding: 24px 22px;
}
.case h3 { font-size: 18px; margin-bottom: 10px; }
.case p { font-size: 15.5px; color: var(--ink-muted); margin-bottom: 10px; }
.case p:last-child { margin-bottom: 0; }
.case .do, .case .dont {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.case .do { color: var(--accent); }
.case .dont { color: #c0563a; }

.danger {
  border: 1px solid #e8bfb2;
  border-left: 4px solid #c0563a;
  background: #fdf1ec;
  border-radius: var(--r-sm);
  padding: 22px 26px;
  margin: 28px 0;
}
.danger h3 { margin-top: 0; font-size: 19px; }
.danger ul { margin-bottom: 0; }
.danger p:last-child, .danger ul:last-child { margin-bottom: 0; }

/* --- Навигатор по симптомам -------------------------------------------- */
.symptoms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.symptom {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.symptom:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.symptom .ico { font-size: 24px; flex: none; }
.symptom.urgent { border-color: #e8bfb2; background: #fdf1ec; }
.symptom.urgent:hover { border-color: #c0563a; }

.urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.urgency.now { background: #fdf1ec; color: #a8452c; border: 1px solid #e8bfb2; }
.urgency.today { background: var(--amber-soft); color: #9a5b16; border: 1px solid #eccfa8; }
.urgency.plan { background: rgba(30,107,82,.1); color: var(--accent); border: 1px solid rgba(30,107,82,.25); }

/* --- Карта (загружается по клику) --------------------------------------- */
.map-box {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-deep);
  background: #23503f;
  min-height: 300px;
}
.map-box iframe { display: block; width: 100%; height: 340px; border: 0; }
.map-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 26px;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 30%, rgba(127,201,164,.22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px),
    #23503f;
  border: 0;
  font: inherit;
  color: var(--on-deep);
}
.map-facade b { font-family: 'Onest', sans-serif; font-size: 18px; }
.map-facade span { font-size: 14.5px; color: var(--on-deep-muted); max-width: 30em; }
.map-pin { font-size: 34px; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* --- Лендинг услуги ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--ink-muted); margin: 0; }

.myths { display: grid; gap: 14px; }
.myth {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 22px 24px;
}
.myth b {
  display: block;
  font-family: 'Onest', sans-serif;
  font-size: 17px;
  margin-bottom: 7px;
  color: #a8452c;
}
.myth p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }
.myth p em { font-style: normal; color: var(--accent); font-weight: 600; }

.price-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.price-hero div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.price-hero b {
  display: block;
  font-family: 'Onest', sans-serif;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 4px;
}
.price-hero span { font-size: 15px; color: var(--ink-muted); }

/* --- Анимация появления ----------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* --- Адаптив ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid, .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-card { order: -1; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-phone { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 22px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 15px 0; font-size: 17px; color: var(--ink); }
  .nav-cta .btn { padding: 11px 18px; font-size: 15px; }
}

/* Узкие телефоны: ужимаем шапку, чтобы CTA и бургер помещались */
@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .nav-cta { gap: 8px; }
  .logo { font-size: 17px; gap: 9px; }
  .logo small { display: none; }
  .logo-mark { width: 34px; height: 34px; font-size: 17px; }
  .nav-cta .btn { padding: 10px 14px; font-size: 14px; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:nth-child(1) { top: 13px; }
  .burger span:nth-child(2) { top: 19px; }
  .burger span:nth-child(3) { top: 25px; }
}

/* Совсем узкие экраны: в шапке остаётся знак, кнопка звонка и бургер */
@media (max-width: 400px) {
  .logo > span:last-child { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts-inner { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; gap: 6px; padding: 16px 20px; }
  .price-cat { padding: 14px 20px; }
  .hero-actions .btn { width: 100%; }
  .card, .promo, .doc, .trust-item { padding: 22px 20px; }
}

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