/* ============ ЛИМАВЕТ — токены бренда ============ */
:root {
  --blue: #01a4ef;
  --blue-dark: #0189c9;
  --green: #7fba00;
  --yellow: #ffb901;
  --yellow-dark: #eda700;
  /* Фирменный жёлтый из брендбука клиники. Раньше под белую иконку брали
     затемнённый #d99400 ради контраста — заказчица попросила везде брендовый. */
  --yellow-ico: #ffb901;
  --coral: #f84d23;
  --ink: #171717;
  --muted: #6f7479;
  --surface: #ffffff;
  --warm: #fff6e9;
  --warm-soft: #fffaf3;
  --page: #f5f7f8;
  --line: #ece7e1;
  --line-soft: #eef1f2;

  --font: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --shadow-card: 0 12px 36px rgb(25 66 94 / 8%);
  --shadow-soft: 0 6px 20px rgb(25 66 94 / 6%);
  --shadow-btn: 0 10px 24px rgb(1 164 239 / 26%);
  --shadow-btn-yellow: 0 10px 24px rgb(255 185 1 / 34%);
  --container: 1240px;
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(var(--container), 100% - clamp(32px, 5vw, 80px));
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ============ Иконки ============ */
.ico {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--20 { width: 20px; height: 20px; }
.ico--24 { width: 24px; height: 24px; }
.ico--28 { width: 28px; height: 28px; }
.ico--44 { width: 44px; height: 44px; stroke-width: 1.5; }
/* Белая иконка внутри цветного круга: линия толще, иначе на насыщенном фоне пропадает */
.ico--46 { width: 46px; height: 46px; stroke-width: 2; }
.ico--blue { color: var(--blue); }
.ico--green { color: var(--green); }
.ico--yellow { color: var(--yellow); }
.ico--coral { color: var(--coral); }

/* Бейдж иконки: насыщенный круг с белой иконкой внутри.
   Единый стиль для всех блоков — как в «Наших услугах» (просьба заказчицы:
   иконки должны быть крупными и яркими, а не бледными кружками). */
.ico-badge {
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  color: #fff;
}
/* Специфичность 0,2,0 — перебивает цвет из .ico--green и размер из .ico--28 */
.ico-badge .ico { color: #fff; stroke-width: 2; }
.ico-badge--blue { background: var(--blue); box-shadow: 0 8px 18px rgb(1 164 239 / 30%); }
.ico-badge--green { background: var(--green); box-shadow: 0 8px 18px rgb(127 186 0 / 30%); }
.ico-badge--yellow { background: var(--yellow-ico); box-shadow: 0 8px 18px rgb(255 185 1 / 34%); }
.ico-badge--coral { background: var(--coral); box-shadow: 0 8px 18px rgb(248 77 35 / 28%); }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgb(1 164 239 / 45%); outline-offset: 3px; }
.btn__ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Двойной класс — специфичность выше контейнерных правил вида «.foo a»,
   иначе кнопка-ссылка внутри такого блока перекрашивается и текст пропадает. */
.btn.btn--blue { color: #fff; }
/* На жёлтом белый текст почти не читается (контраст 1.7) — берём тёмный */
.btn.btn--yellow { color: var(--ink); }
.btn.btn--white, .btn.btn--outline { color: var(--ink); }

.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-btn); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-btn-yellow); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--white { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn--white:hover { color: var(--blue); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { color: var(--blue); border-color: rgb(1 164 239 / 45%); }

.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: clamp(15px, 1.2vw, 17px); }
.btn--block { width: 100%; }

/* ============ Шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.header.is-stuck {
  box-shadow: 0 6px 24px rgb(25 66 94 / 8%);
  border-color: var(--line-soft);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: clamp(40px, 3.4vw, 50px); height: auto; }
.logo__text { display: flex; flex-direction: column; gap: 2px; }
.logo__word {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}
.logo__word--blue { color: var(--blue); }
.logo__word--green { color: var(--green); }
.logo__sub {
  font-size: clamp(9px, 0.72vw, 11px);
  color: var(--muted);
  letter-spacing: .01em;
  line-height: 1.2;
}
.logo--sm .logo__mark { width: 44px; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); }
.nav__link {
  position: relative;
  font-size: 15px;
  color: #464b50;
  padding: 6px 0;
  transition: color .18s ease;
}
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue); font-weight: 700; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px clamp(16px, 5vw, 32px) 22px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.mobile-menu__link {
  padding: 12px 4px;
  font-size: 17px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__phone {
  padding: 14px 4px 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
}
.mobile-menu .btn { margin-top: 8px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--warm);
  padding-top: clamp(28px, 3.6vw, 48px);
  padding-bottom: 0;
}
.hero::after {
  /* нижняя часть секции переходит в цвет страницы под панелью преимуществ */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(60px, 8vw, 96px);
  background: var(--page);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  padding-bottom: clamp(36px, 4.4vw, 68px);
}
.hero__copy { position: relative; padding-block: clamp(8px, 2vw, 40px); }
.hero__title {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.hero__lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.25vw, 18px);
  color: #4d5257;
  max-width: 30ch;
}
.hero__copy .btn { margin-top: clamp(22px, 2.6vw, 34px); }

.hero__heart { position: absolute; pointer-events: none; }
.hero__heart--1 { width: clamp(28px, 2.6vw, 36px); top: -6px; right: 16%; transform: rotate(-8deg); }
.hero__heart--2 { width: clamp(16px, 1.5vw, 21px); top: 30px; right: 9%; transform: rotate(12deg); }
.hero__paws {
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: clamp(160px, 18vw, 250px);
  pointer-events: none;
  z-index: -1;
}

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: clamp(56px, 8vw, 130px) var(--r-lg) var(--r-lg) clamp(56px, 8vw, 130px);
  overflow: hidden;
  box-shadow: 0 22px 50px rgb(25 66 94 / 12%);
  aspect-ratio: 1.22;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(1 164 239 / 12%);
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}
.hero__media::before {
  /* синяя дуга-обводка вокруг фото */
  content: "";
  position: absolute;
  inset: -14px -14px -14px -14px;
  border: 3px solid rgb(1 164 239 / 55%);
  border-radius: clamp(66px, 9vw, 146px) 46px 46px clamp(66px, 9vw, 146px);
  -webkit-mask-image: linear-gradient(128deg, #000 0%, #000 34%, transparent 62%);
  mask-image: linear-gradient(128deg, #000 0%, #000 34%, transparent 62%);
  pointer-events: none;
}

.hero__hours {
  position: absolute;
  left: clamp(-56px, -4vw, -20px);
  bottom: clamp(24px, 5vw, 62px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 20px 12px 14px;
  box-shadow: var(--shadow-card);
}
.hero__hours-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgb(1 164 239 / 30%);
}
.hero__hours-ico .ico { color: #fff; width: 24px; height: 24px; stroke-width: 2; }
.hero__hours-text { display: flex; flex-direction: column; line-height: 1.3; }
.hero__hours-text strong { font-size: 15px; }
.hero__hours-text span { font-size: 13px; color: var(--muted); }

/* ============ Панель преимуществ ============ */
.promises {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2vw, 28px) clamp(12px, 1.4vw, 20px);
}
.promise {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  /* Поджали отступы: круг-бейдж съел ширину, а заголовки должны влезать в строку */
  padding: 4px clamp(10px, 1.2vw, 18px);
  border-left: 1px solid var(--line-soft);
}
.promise:first-child { border-left: 0; }
/* 46px — компромисс: круг заметный, но заголовок «Опыт и профессионализм»
   ещё влезает в одну строку на 1440px */
.promise__ico { width: 46px; height: 46px; }
.promise__ico .ico { width: 24px; height: 24px; }
.promise h3 { font-size: 15px; font-weight: 700; line-height: 1.25; }
.promise p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ============ Секции ============ */
.section { padding-block: clamp(44px, 5vw, 78px); }
.section--tight { padding-block: clamp(28px, 3.2vw, 48px); }
.section__title {
  text-align: center;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  margin-bottom: clamp(26px, 3vw, 42px);
}
.section__action { display: flex; justify-content: center; margin-top: clamp(22px, 2.6vw, 34px); }

/* ============ Услуги ============ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(22px, 2.2vw, 30px) 18px clamp(18px, 1.8vw, 24px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgb(1 164 239 / 25%); }
.service:focus-visible { outline: 3px solid rgb(1 164 239 / 40%); outline-offset: 3px; }
/* Насыщенный круг с белой иконкой — по референсу заказчика */
.service__ico {
  display: grid;
  place-items: center;
  width: clamp(76px, 6.2vw, 88px);
  height: clamp(76px, 6.2vw, 88px);
  border-radius: 50%;
  color: #fff;
  flex: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service__ico--blue { background: var(--blue); box-shadow: 0 10px 22px rgb(1 164 239 / 28%); }
.service__ico--green { background: var(--green); box-shadow: 0 10px 22px rgb(127 186 0 / 28%); }
.service__ico--yellow { background: var(--yellow-ico); box-shadow: 0 10px 22px rgb(255 185 1 / 32%); }
.service__ico--coral { background: var(--coral); box-shadow: 0 10px 22px rgb(248 77 35 / 26%); }
.service:hover .service__ico { transform: scale(1.06); }

.service__name {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 700;
  line-height: 1.3;
  margin-top: auto;
}
.service__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f5f6;
  color: #8b9096;
  transition: background-color .2s ease, color .2s ease;
}
.service__go .btn__ico { width: 16px; height: 16px; }
.service:hover .service__go { background: var(--blue); color: #fff; }

/* ============ Диагностика ============ */
.diag {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}
.diag__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--warm-soft);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.4vw, 36px);
}
.diag__title { font-size: clamp(19px, 1.8vw, 25px); font-weight: 700; line-height: 1.25; }
.diag__text { font-size: clamp(14px, 1.05vw, 15px); color: var(--muted); }
.diag__card .btn { align-self: flex-start; margin-top: auto; }
.diag__shot { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.diag__shot img { width: 100%; height: 100%; object-fit: cover; min-height: clamp(220px, 24vw, 330px); }

/* ============ Почему выбирают нас ============ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px) clamp(24px, 3vw, 48px);
}
.why__ico {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-bottom: 16px;
  color: #fff;
}
.why__ico .ico { color: #fff; width: 34px; height: 34px; stroke-width: 2; }
.why__ico--green { background: var(--green); box-shadow: 0 10px 22px rgb(127 186 0 / 28%); }
.why__ico--blue { background: var(--blue); box-shadow: 0 10px 22px rgb(1 164 239 / 28%); }
.why__ico--yellow { background: var(--yellow-ico); box-shadow: 0 10px 22px rgb(255 185 1 / 32%); }
.why__ico--coral { background: var(--coral); box-shadow: 0 10px 22px rgb(248 77 35 / 26%); }
.why h3 { font-size: clamp(15px, 1.25vw, 18px); font-weight: 700; line-height: 1.3; }
.why p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ============ Специалисты ============ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.team { margin: 0; }
.team img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Подпись под фото: имя и должность */
.team figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  text-align: center;
}
.team__name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.team__role { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ============ Отзывы ============ */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(20px, 2vw, 28px);
  box-shadow: var(--shadow-soft);
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__ico { width: 46px; height: 46px; }
.review__ico .ico { width: 26px; height: 26px; }
.review__head h3 { font-size: 16px; font-weight: 700; }
.review__text { font-size: 14px; color: var(--muted); }
.review__author { margin-top: auto; padding-top: 12px; text-align: right; font-size: 13px; color: #9aa0a5; }

/* ---- Отзывы с 2ГИС ---- */
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.review__meta { min-width: 0; margin-right: auto; }
.review__meta h3 { font-size: 15px; font-weight: 700; line-height: 1.25; }
.review__date { font-size: 12px; color: #9aa0a5; }

.stars { display: inline-flex; gap: 2px; flex: none; }
.ico--16 { width: 16px; height: 16px; }
.stars .ico { fill: currentColor; stroke: none; }
.star--on { color: var(--yellow); }
.star--off { color: #dfe3e6; }

.review__source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: #9aa0a5;
}
.review__source .ico { color: var(--green); fill: none; stroke: currentColor; }

/* Бейдж с рейтингом над карточками */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  margin-bottom: clamp(20px, 2.4vw, 32px);
  padding: clamp(16px, 1.8vw, 22px) clamp(20px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.rating__main { display: flex; align-items: center; gap: 14px; }
.rating__score { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; line-height: 1; }
.rating__body { display: flex; flex-direction: column; gap: 4px; }
.rating__note { font-size: 13px; color: var(--muted); }
.rating__link,
.link-gis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.rating__link:hover, .link-gis:hover { color: var(--blue-dark); }

.section__action--pair { flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .rating { flex-direction: column; text-align: center; }
}

/* ============ CTA ============ */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 20px;
  background: var(--warm);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px);
  min-height: clamp(220px, 20vw, 280px);
}
.cta__title { font-size: clamp(21px, 2.2vw, 32px); font-weight: 700; line-height: 1.2; }
.cta__text { margin-top: 12px; font-size: clamp(14px, 1.1vw, 16px); color: #4d5257; }
.cta__copy .btn { margin-top: clamp(18px, 2vw, 26px); }
/* Жёлтые круги-декор: обрезаются краями блока, как в макете */
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta::before {
  left: clamp(-90px, -6vw, -50px);
  bottom: clamp(-110px, -7vw, -70px);
  width: clamp(150px, 17vw, 230px);
  height: clamp(150px, 17vw, 230px);
  background: rgb(255 185 1 / 20%);
}
.cta::after {
  right: clamp(28%, 30%, 34%);
  top: clamp(-130px, -9vw, -80px);
  width: clamp(130px, 15vw, 200px);
  height: clamp(130px, 15vw, 200px);
  background: rgb(255 185 1 / 30%);
}
.cta__media {
  position: relative;
  align-self: end;
  justify-self: stretch;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  /* вытягиваем за внутренний отступ блока: фото упирается прямо в край,
     и его обрез совпадает с границей секции, а не висит в воздухе */
  margin-right: calc(-1 * clamp(24px, 3.4vw, 56px));
}
.cta__pets {
  width: auto;
  max-width: min(100%, 470px);
  max-height: calc(100% + clamp(28px, 3.4vw, 52px));
  margin-bottom: calc(-1 * clamp(28px, 3.4vw, 52px));
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 16px 26px rgb(25 66 94 / 12%));
}
.cta__heart {
  position: absolute;
  top: 8%;
  left: 8%;
  width: clamp(24px, 2.4vw, 34px);
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 2;
}

/* ============ Контакты ============ */
.contacts {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.contacts__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.contact {
  display: block;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(18px, 1.9vw, 26px);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.contact:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.contact__ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  color: #fff;
}
.contact__ico .ico { color: #fff; width: 28px; height: 28px; stroke-width: 2; }
.contact__ico--blue { background: var(--blue); box-shadow: 0 8px 18px rgb(1 164 239 / 28%); }
.contact__ico--green { background: var(--green); box-shadow: 0 8px 18px rgb(127 186 0 / 28%); }
.contact__ico--coral { background: var(--coral); box-shadow: 0 8px 18px rgb(248 77 35 / 26%); }
.contact h3 { font-size: 16px; font-weight: 700; }
.contact p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.contact__phone { font-size: 18px !important; font-weight: 700; color: var(--ink) !important; }
/* Две ссылки в одной плашке: вложенные <a> запрещены, поэтому карточка — div,
   а кликабельны сами номера. Второй номер прижат к первому, размер тот же. */
.contact--phones:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.contact--phones .contact__phone + .contact__phone { margin-top: 4px; }
.contact__phone a { color: inherit; transition: color .2s ease; }
.contact__phone a:hover { color: var(--coral); }
.contact__link { font-size: 15px !important; font-weight: 700; color: var(--ink) !important; word-break: break-word; }

/* Официальный виджет карты 2ГИС вместо нарисованной схемы */
.contacts__map {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
  line-height: 0;
}
.contacts__map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 28vw, 360px);
  border: 0;
}
/* Элемент грида .contacts — отступ задаёт gap контейнера, свой margin не нужен */
.contacts__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  transition: color .18s ease;
}
.contacts__map-link:hover { color: var(--blue-dark); }

/* ============ Подвал ============ */
.footer {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(30px, 3.4vw, 46px);
  margin-top: clamp(24px, 3vw, 40px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.7fr 1.1fr;
  gap: clamp(22px, 3vw, 40px);
}
.footer__slogan { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.footer__contacts { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.footer__contacts a { font-size: 14px; font-weight: 700; color: var(--ink); transition: color .18s ease; }
.footer__contacts a:hover { color: var(--blue); }
.footer__copy { margin-top: 14px; font-size: 12px; color: #9aa0a5; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.footer__col a { font-size: 13.5px; color: var(--muted); transition: color .18s ease; }
.footer__col a:hover { color: var(--blue); }
.footer__services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.footer__col--social { align-items: flex-start; }
.socials { display: flex; gap: 10px; margin-top: 2px; }
.social { width: 40px; height: 40px; transition: transform .18s ease, filter .18s ease; }
.social svg { width: 100%; height: 100%; display: block; }
.social:hover { transform: translateY(-3px); filter: brightness(1.06); }
.footer__rights { margin-top: auto; font-size: 12px; color: #9aa0a5; }
/* Подпись разработчика — правый нижний угол подвала */
.footer__author { margin-top: 6px; font-size: 12px; color: #9aa0a5; }
.footer__author a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #7d838a;
  transition: color .18s ease;
}
.footer__author a:hover { color: var(--blue); }

/* ============ Модалки ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.4vw, 28px);
}
/* display у .modal перебивает атрибут hidden — возвращаем скрытие явно */
.modal[hidden], .mobile-menu[hidden], [hidden] { display: none !important; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  /* Без backdrop-filter: он создаёт композитный слой, из-за которого текст
     на кнопках внутри модалки терял сглаживание и «замыливался». */
  background: rgb(12 32 45 / 58%);
  animation: fade .2s ease;
}
.modal__card {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - clamp(24px, 5vw, 56px));
  overflow-y: auto;
  background: #fff;
  border-radius: clamp(18px, 2vw, 28px);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 30px 80px rgb(9 27 40 / 28%);
  animation: pop .22s ease;
}
.modal__card--wide { width: min(1080px, 100%); }
.modal__close {
  position: absolute;
  top: clamp(12px, 1.6vw, 20px);
  right: clamp(12px, 1.6vw, 20px);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.modal__close svg { width: 18px; height: 18px; fill: none; }
.modal__close:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: rgb(1 164 239 / 10%);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
}
.modal__title { margin-top: 14px; font-size: clamp(21px, 2.2vw, 30px); font-weight: 700; line-height: 1.2; padding-right: 52px; }
.modal__lead { margin-top: 12px; font-size: clamp(14px, 1.1vw, 16px); color: var(--muted); max-width: 62ch; }

/* Содержимое инфо-модалки */
.info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(20px, 2.2vw, 28px);
}
.info__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--warm-soft);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.info__item h3 { font-size: 16px; font-weight: 700; }
.info__item p { font-size: 14px; color: var(--muted); }
.info__item img { width: 100%; border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; }
.info__list { margin: clamp(18px, 2vw, 26px) 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.info__list li { position: relative; padding-left: 30px; font-size: 15px; color: #4d5257; }
.info__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgb(127 186 0 / 16%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fba00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.info__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(18px, 2vw, 26px); }
.info__shots img { border-radius: var(--r-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.info__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(20px, 2.4vw, 30px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid var(--line-soft);
}
.info__foot p { font-size: 13.5px; color: var(--muted); }
/* :not(.btn) — иначе кнопка-ссылка получает синий текст на синем фоне */
.info__foot a:not(.btn) { color: var(--blue); font-weight: 700; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* Без scale — он оставлял композитный слой и мылил текст внутри модалки */
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

body.is-locked { overflow: hidden; }

/* ============ Анимация появления ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service:hover, a.contact:hover, .social:hover { transform: none; }
  .service:hover .service__ico { transform: none; }
  .modal__backdrop, .modal__card { animation: none; }
}

/* ============ Адаптив ============ */
/* На широких мониторах даём макету больше воздуха, чтобы страница не казалась мелкой */
@media (min-width: 1700px) {
  :root { --container: 1400px; --header-h: 100px; }
  body { font-size: 17px; }
}
@media (min-width: 2100px) {
  :root { --container: 1560px; }
}

@media (max-width: 1180px) {
  :root { --header-h: 84px; }
  .nav { gap: 14px; }
  .nav__link { font-size: 14px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1.5fr 1fr; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: block; }
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .promise:nth-child(odd) { border-left: 0; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diag { grid-template-columns: 1fr 1fr; }
  .diag__card { grid-column: span 2; }
  .diag__card .btn { margin-top: 6px; }
  /* 4 карточки складываются ровно в 2×2 */
  .contacts__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header__actions .btn--sm { display: none; }
  .cta { grid-template-columns: 1fr; }
  .cta__media { justify-self: center; margin-right: 0; justify-content: center; }
  .cta__pets { max-width: min(84%, 420px); margin-inline: auto; }
  .cta::after { right: 8%; top: -70px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .review { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .review__head { flex-basis: 100%; }
  .review__author { width: 100%; }
  .review__source { width: 100%; }
}

@media (max-width: 780px) {
  .hero { padding-top: 22px; }
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 30px; }
  .hero__copy { text-align: left; }
  .hero__heart--1 { right: 6%; top: -2px; }
  .hero__heart--2 { right: 1%; top: 26px; }
  .hero__paws { right: 0; bottom: auto; top: 62%; width: min(170px, 34vw); }
  .hero__frame { aspect-ratio: 1.45; border-radius: 60px 26px 26px 60px; }
  .hero__media::before { inset: -10px; border-radius: 68px 34px 34px 68px; }
  .hero__hours {
    position: static;
    margin: -26px auto 0;
    width: max-content;
    max-width: 100%;
  }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .team__name { font-size: 14px; }
  .team__role { font-size: 12px; }
  .info__shots { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .promises { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
  .promise { border-left: 0; padding: 0; }
  .why__grid { grid-template-columns: 1fr; gap: 22px; }
  .diag { grid-template-columns: 1fr; }
  .diag__card { grid-column: auto; }
  .diag__shot img { min-height: 200px; max-height: 260px; }
  .contacts__cards { grid-template-columns: 1fr; }
  /* Карточки сотрудников компактные — на узком экране их держим по две в ряд */
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team img { aspect-ratio: 16 / 10; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__col--social { align-items: flex-start; }
  .footer__rights { margin-top: 12px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__card {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    padding: 26px 20px 30px;
  }
  .modal__title { padding-right: 44px; }
}

@media (max-width: 460px) {
  /* На узких экранах длинные подписи кнопок переносим, иначе кнопка распирает сетку */
  .btn {
    white-space: normal;
    height: auto;
    min-height: 52px;
    padding: 12px 20px;
    line-height: 1.25;
    text-align: center;
  }
  .btn--lg { min-height: 56px; }
  .diag > *, .contacts > *, .contacts__cards > *, .services__grid > * { min-width: 0; }
}

@media (max-width: 430px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 16px 18px; }
  .service__name { margin-top: 0; flex: 1; }
  /* Карточка легла в строку — круг уменьшаем, иначе он съедает всю ширину */
  .service__ico { width: 58px; height: 58px; }
  .service__ico .ico--46 { width: 32px; height: 32px; stroke-width: 2.2; }
  .hero__frame { aspect-ratio: 1.24; }
  .hero__paws { display: none; }
  .cta__pets { max-width: 92%; }
  .btn--lg { width: 100%; }
  .diag__card .btn, .cta__copy .btn { width: 100%; }
}
