/* ============================================================
   Ветклиника «на Котовского» — основные стили
   Акцент: голубой (#0c8ce9 и оттенки), светлая тема
   ============================================================ */

:root {
  --blue-900: #0b3d63;
  --blue-700: #0a6cb8;
  --blue-600: #0c8ce9;
  --blue-500: #2da4f5;
  --blue-400: #5cb9f8;
  --blue-100: #d9eefd;
  --blue-50:  #eef7fe;
  --ink:      #14283a;
  --ink-soft: #4a6076;
  --line:     #dceaf5;
  --bg:       #ffffff;
  --bg-tint:  #f3f9fe;
  --radius:   20px;
  --radius-sm: 14px;
  --shadow:    0 10px 40px rgba(12, 95, 158, 0.10);
  --shadow-sm: 0 4px 16px rgba(12, 95, 158, 0.08);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }

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

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.container--narrow { width: min(860px, 100% - 40px); }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Переливающийся градиент на акцентном тексте */
.accent {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500), var(--blue-400), var(--blue-700));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-600);
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

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

.btn--lg { padding: 16px 30px; font-size: 16px; }

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: 0 8px 24px rgba(12, 140, 233, 0.35);
  position: relative;
  overflow: hidden;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(12, 140, 233, 0.45);
}
/* Пробегающий блик */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 4s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 60% { left: -80%; }
  100% { left: 160%; }
}

.btn--ghost {
  background: var(--blue-50);
  color: var(--blue-700);
}
.btn--ghost:hover { background: var(--blue-100); }

.btn--outline {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn--outline:hover { border-color: var(--blue-400); background: var(--blue-50); }

.btn--light {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 8px 24px rgba(4, 48, 80, 0.25);
}
.btn--light:hover { transform: translateY(-2px); }

/* ---------- Верхняя плашка ---------- */

.topbar {
  background: var(--blue-900);
  color: #cfe8fb;
  font-size: 13.5px;
  font-weight: 500;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0;
}

.topbar__item { display: inline-flex; align-items: center; gap: 7px; }

.topbar__address { margin-left: auto; transition: color .2s; }
.topbar__address:hover { color: #fff; }

.topbar__phone { color: #fff; font-weight: 700; transition: color .2s; }
.topbar__phone:hover { color: var(--blue-400); }

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(12, 95, 158, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}

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

.logo__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(12, 140, 233, 0.35);
}
.logo__mark svg { width: 28px; height: 28px; }

.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-size: 18px; font-weight: 800; }
.logo__tagline { font-size: 12px; color: var(--ink-soft); font-weight: 600; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
  transition: right .25s ease;
}
.nav a:hover { color: var(--blue-700); }
.nav a:hover::after { right: 0; }

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

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--blue-50);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2.5px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--blue-100) 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 90%, #e3f2fd 0%, transparent 55%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg-tint) 100%);
}

/* Фоновое фото на всю ширину */
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.07);
  will-change: transform;
}
/* Градиент: слева — почти белый под текст, справа фото остаётся видимым;
   снизу — плавный переход к следующему блоку */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0) 72%, rgba(243, 249, 254, 0.95) 100%),
    linear-gradient(90deg,
      rgba(251, 253, 255, 0.98) 0%,
      rgba(251, 253, 255, 0.94) 30%,
      rgba(251, 253, 255, 0.72) 48%,
      rgba(251, 253, 255, 0.25) 64%,
      rgba(251, 253, 255, 0) 80%);
}

.hero__inner {
  display: flex;
  align-items: center;
  min-height: clamp(540px, 72vh, 720px);
  padding: 48px 0 96px;
  position: relative;
  z-index: 1;
}

.hero__content { max-width: 620px; }

/* Плавающая карточка «Мы открыты» поверх фото */
.hero__card {
  position: absolute;
  right: 0;
  bottom: 64px;
  z-index: 2;
}

/* Плавающие декоративные элементы */
.hero__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-paw {
  position: absolute;
  color: var(--blue-400);
  opacity: 0.22;
  animation: float-drift 9s ease-in-out infinite;
}
.float-paw--1 { width: 64px; height: 64px; top: 12%; left: 4%; transform: rotate(-18deg); animation-duration: 10s; }
.float-paw--2 { width: 44px; height: 44px; top: 64%; left: 46%; transform: rotate(14deg); animation-duration: 8s; animation-delay: -3s; }
.float-paw--3 { width: 88px; height: 88px; top: 8%; right: 6%; transform: rotate(22deg); animation-duration: 12s; animation-delay: -6s; }

@keyframes float-drift {
  0%, 100% { translate: 0 0; }
  33% { translate: 8px -16px; }
  66% { translate: -6px 10px; }
}

.float-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: blob-breathe 12s ease-in-out infinite;
}
.float-blob--1 { width: 360px; height: 360px; top: -120px; right: 18%; background: rgba(92, 185, 248, 0.25); }
.float-blob--2 { width: 300px; height: 300px; bottom: -100px; left: -60px; background: rgba(13, 140, 233, 0.14); animation-delay: -5s; }

@keyframes blob-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.18) translateY(14px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #19c37d;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(25, 195, 125, 0.35);
  animation: pulse 1.8s ease-out infinite;
}
.pulse-dot--light { background: #6ee7b7; }
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero__title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 26px;
}

.hero__features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chip .icon { color: var(--blue-600); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}
.stat__label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

.hero__photo-card {
  animation: card-bob 4.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow);
}
.hero__photo-card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
}
.hero__photo-card span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.hero__photo-card strong { font-size: 14px; }
.hero__photo-card small { font-size: 12.5px; color: var(--ink-soft); }

@keyframes card-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Бегущая строка ---------- */

.ticker {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
  color: #fff;
  overflow: hidden;
  padding: 13px 0;
  margin-top: 44px;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  white-space: nowrap;
}
.ticker__group span { font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em; }
.ticker__group i { font-style: normal; font-size: 13px; opacity: 0.8; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Преимущества ---------- */

.advantages { padding: 34px 0 0; }

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.advantage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.advantage:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.advantage:hover .advantage__icon { animation: icon-wiggle .5s ease; }

.advantage__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.advantage__icon .icon { width: 24px; height: 24px; }

.advantage h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.advantage p { font-size: 14px; color: var(--ink-soft); }

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

.section { padding: 90px 0; }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 640px; margin-bottom: 48px; }

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__subtitle { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* ---------- Услуги ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-400);
}

.service__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: background .25s, color .25s;
}
.service__icon .icon { width: 25px; height: 25px; }
.service:hover .service__icon {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  animation: icon-wiggle .5s ease;
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg) scale(1.06); }
  60% { transform: rotate(6deg) scale(1.06); }
}

.service h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.service p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Экспресс-диагностика ---------- */

.express__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.express__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.express__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.express__item:hover .express__icon { animation: icon-wiggle .5s ease; }

.express__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.express__icon .icon { width: 23px; height: 23px; }

.express__item p { font-weight: 700; font-size: 15px; }

/* ---------- Лечение ---------- */

.treatment__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.treatment__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.treatment__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.treatment__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(12, 140, 233, 0.3);
}
.treatment__icon .icon { width: 27px; height: 27px; }

.treatment__card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.treatment__card > p { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }

.treatment__list { list-style: none; display: grid; gap: 10px; }
.treatment__list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 600;
}
.treatment__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6cb8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Ночная помощь / CTA ---------- */

.emergency {
  background:
    radial-gradient(700px 360px at 90% 10%, rgba(92, 185, 248, 0.25) 0%, transparent 60%),
    linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: #fff;
}

.emergency__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 0;
}

.emergency__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.emergency h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.emergency p { color: #cfe8fb; max-width: 560px; font-size: 15.5px; }

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

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(12, 140, 233, 0.3);
}

.step h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); }

.step { transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step:hover .step__num { animation: num-pop .45s ease; }

@keyframes num-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

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

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

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item[open] { border-color: var(--blue-400); box-shadow: var(--shadow-sm); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 20px; top: 50%;
  width: 22px; height: 22px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c8ce9' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(180deg); }

.faq__item p {
  padding: 0 22px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.faq__item[open] p { animation: faq-open .35s ease; }

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.contacts__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contacts__info { display: grid; gap: 16px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card__icon .icon { width: 23px; height: 23px; }

.contact-card h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 3px; }
.contact-card p { font-weight: 700; font-size: 16px; }
.contact-card a { color: var(--blue-700); transition: color .2s; }
.contact-card a:hover { color: var(--blue-500); }

.contacts__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 440px;
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

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

.footer {
  background: var(--blue-900);
  color: #b9d9f1;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding: 48px 0 32px;
  flex-wrap: wrap;
}

.logo--footer .logo__name { color: #fff; }
.logo--footer .logo__tagline { color: #8fc1e6; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { font-size: 14.5px; font-weight: 600; transition: color .2s; }
.footer__nav a:hover { color: #fff; }

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
  text-align: right;
}
.footer__phone { color: #fff; font-weight: 800; font-size: 18px; }
.footer__phone:hover { color: var(--blue-400); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 26px;
  font-size: 13px;
  color: #7fafd3;
  display: grid;
  gap: 4px;
}

/* ---------- Плавающая кнопка звонка ---------- */

.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: 0 10px 28px rgba(12, 140, 233, 0.5);
  animation: fab-ring 2.6s ease-in-out infinite;
}
.fab-call .icon { width: 26px; height: 26px; }

@keyframes fab-ring {
  0%, 100% { transform: rotate(0); }
  4% { transform: rotate(-12deg); }
  8% { transform: rotate(10deg); }
  12% { transform: rotate(-8deg); }
  16% { transform: rotate(6deg); }
  20% { transform: rotate(0); }
}

/* ---------- Модальное окно ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s, visibility .25s;
}
.modal.is-open { visibility: visible; opacity: 1; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 65, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 40px 44px;
  text-align: center;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 30px 80px rgba(4, 35, 60, 0.35);
  transform: translateY(14px) scale(.97);
  transition: transform .28s ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.modal__close:hover { background: var(--blue-100); }

.modal__icon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(12, 140, 233, 0.35);
}
.modal__icon .icon { width: 28px; height: 28px; }

.modal__dialog h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal__hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }

.modal__number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  transition: color .2s;
}
.modal__number:hover { color: var(--blue-700); }

.modal__copy { width: 100%; }

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab-call { animation: none; }
  .pulse-dot::after { animation: none; }
  .accent { animation: none; }
  .btn--primary::before { animation: none; }
  .float-paw, .float-blob { animation: none; }
  .ticker__track { animation: none; }
  .hero__photo-card { animation: none; }
}

/* ---------- Адаптив ---------- */

/* Затемнение под мобильным меню */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 65, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 140;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* Кнопки внутри мобильного меню — на десктопе скрыты */
.nav__call, .nav__route { display: none; }

@media (max-width: 1024px) {
  .hero__inner { gap: 36px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .express__grid { grid-template-columns: repeat(2, 1fr); }
  .header__route { display: none; }
  .float-paw--3 { width: 60px; height: 60px; }
}

@media (max-width: 880px) {
  .topbar__address { display: none; }
  .topbar__inner { justify-content: space-between; }

  .header__inner { gap: 14px; padding: 11px 0; }
  .logo__mark { width: 42px; height: 42px; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    gap: 6px;
    padding: 88px 26px calc(26px + env(safe-area-inset-bottom));
    box-shadow: -20px 0 60px rgba(10, 60, 100, 0.18);
    transform: translateX(105%);
    transition: transform .3s ease;
    z-index: 150;
    margin-left: 0;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { font-size: 18px; padding: 11px 0; border-bottom: 1px solid var(--blue-50); }
  .nav a::after { display: none; }

  /* Кнопки в нижней части меню */
  .nav__call {
    display: inline-flex;
    margin-top: 18px;
    border-bottom: none !important;
    font-size: 16px !important;
    padding: 14px 22px !important;
  }
  .nav__route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 12px 0 !important;
    border-bottom: none !important;
    color: var(--blue-700);
    font-size: 15px !important;
    font-weight: 700;
  }

  .burger { display: flex; position: relative; z-index: 160; }
  .header__call { display: none; }

  /* На мобильном фото — блоком сверху, текст под ним на светлом фоне.
     Кадрируем к правой части, где врач с собакой (слева на фото пустой фон) */
  .hero__bg { position: relative; aspect-ratio: 4 / 3; }
  .hero__bg img { transform: none; object-position: 100% center; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(251, 253, 255, 0) 55%, #fbfdff 100%);
  }
  .hero__inner { min-height: 0; padding: 4px 0 52px; }
  .hero__card { display: none; }
  .hero__badge { font-size: 12.5px; padding: 7px 13px; margin-bottom: 16px; }
  .hero__subtitle { font-size: 15.5px; margin-bottom: 20px; }
  .hero__features { margin-bottom: 24px; }
  .hero__actions { margin-bottom: 30px; }
  .hero__stats { gap: 20px; flex-wrap: wrap; padding-top: 20px; }
  .stat__num { font-size: 24px; }

  /* Упрощаем декор: убираем тяжёлые размытые пятна и лапку в зоне текста */
  .float-blob { display: none; }
  .float-paw--2 { display: none; }
  .float-paw--1 { width: 44px; height: 44px; top: 6%; left: 3%; }
  .float-paw--3 { top: 4%; right: 4%; }

  .ticker { margin-top: 36px; padding: 11px 0; }

  .section { padding: 60px 0; }
  .section__head { margin-bottom: 34px; }

  .treatment__grid,
  .contacts__grid { grid-template-columns: 1fr; }
  .treatment__card { padding: 28px 22px; }

  .emergency__inner { flex-direction: column; align-items: flex-start; padding: 46px 0; }
  .emergency .btn { width: 100%; }

  .footer__inner { flex-direction: column; gap: 26px; padding: 40px 0 28px; }
  .footer__contacts { text-align: left; }

  /* Плавающая кнопка звонка с учётом «бороды» iPhone */
  .fab-call {
    display: grid;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }

  .topbar { font-size: 12.5px; }
  .topbar__inner { gap: 10px; padding: 7px 0; }

  .logo__name { font-size: 16px; }
  .logo__tagline { font-size: 11px; }

  .hero__title { font-size: clamp(26px, 7.4vw, 32px); }
  /* На узких экранах — квадратный кадр: врач с собакой занимают весь кадр */
  .hero__bg { aspect-ratio: 1 / 1; }

  .chip { font-size: 12.5px; padding: 8px 12px; }

  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }

  /* Цифры — в столбик: число и подпись в одну строку */
  .hero__stats { flex-direction: column; gap: 12px; }
  .stat { flex-direction: row; align-items: baseline; gap: 10px; }
  .stat__num { font-size: 22px; min-width: 64px; }
  .stat__label { font-size: 13.5px; }

  .services__grid,
  .advantages__grid,
  .steps__grid,
  .express__grid { grid-template-columns: 1fr; gap: 14px; }

  .service, .advantage, .step { padding: 22px 20px; }
  .service__icon, .advantage__icon { margin-bottom: 14px; }

  .ticker__group { gap: 18px; padding-right: 18px; }
  .ticker__group span { font-size: 13px; }

  .section { padding: 50px 0; }
  .section__subtitle { font-size: 15px; }

  .treatment__card h3 { font-size: 19px; }
  .treatment__list li { font-size: 14.5px; }

  .emergency h2 { font-size: 23px; }
  .emergency p { font-size: 14.5px; }

  .faq__item summary { padding: 15px 46px 15px 18px; font-size: 14.5px; }
  .faq__item p { padding: 0 18px 15px; font-size: 14px; }

  .contact-card { padding: 16px 18px; }
  .contact-card p { font-size: 15px; }
  .contacts__buttons .btn { flex: 1 1 100%; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }

  .footer__nav { gap: 14px 20px; }
  .footer__bottom { font-size: 12px; }

  .modal__dialog { padding: 30px 22px; }
  .modal__number { font-size: 24px; }
}

/* Совсем маленькие экраны (iPhone SE и уже) */
@media (max-width: 360px) {
  .hero__title { font-size: 24px; }
  .topbar__item:first-child { display: none; }
  .topbar__inner { justify-content: center; }
}
