/* ItCity Mobile — лендинг
   Светлая тема в духе Apple: много воздуха, крупная типографика, мягкие поверхности.
   Движение по принципам Эмиля Ковальски: только transform/opacity, свои кривые,
   короткие длительности для интерфейса, отключение движения по prefers-reduced-motion. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f2f5;   /* единый фон всех карточек */
  --surface-3: #e8e8ed;   /* наведение на карточку */
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);

  --green: #9efc3c;        /* фирменный зелёный: заливки, акценты на тёмном */
  --green-hover: #8eee2a;
  --green-ink: #3b7a00;    /* тот же оттенок для текста на белом: #9efc3c на белом не читается */
  --on-green: #0e1a00;

  --dark: #141615;         /* тёмный из логотипа */
  --dark-2: #1f2220;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;

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

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 60px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, system-ui, sans-serif;

  color-scheme: light;
}

/* ───────── База ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }
.muted { color: var(--text-2); }
.accent { color: var(--green-ink); }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--green-ink); letter-spacing: 0; margin-bottom: 12px; }
.lead { font-size: clamp(19px, 2vw, 21px); line-height: 1.45; letter-spacing: -0.015em; }

.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ───────── Кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .i { width: 20px; height: 20px; stroke-width: 2; }
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--ghost { color: var(--text); border: 1.5px solid rgba(0, 0, 0, 0.14); background: rgba(255, 255, 255, 0.6); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 18px; }
.btn--block { display: flex; width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--green-hover); }
  .btn--ghost:hover { border-color: rgba(0, 0, 0, 0.3); background: #fff; }
}

.round {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); color: var(--text);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.35; cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .round:not(:disabled):hover { background: var(--surface-3); }
}

.link { color: var(--green-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ───────── Навигация ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav[data-scrolled] { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__logo img { height: 34px; width: auto; border-radius: 8px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav__links a { color: var(--text-2); transition: color 200ms ease; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 16px; margin-left: 12px; }
.nav__phone { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav__hours { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav__hours .i { width: 18px; height: 18px; color: var(--green-ink); stroke-width: 2; }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav__burger span {
  position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px; background: var(--text);
  transition: transform 240ms var(--ease-out);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__links, .nav__phone { display: none; }
  .nav__right { margin-left: auto; gap: 12px; }
  .nav__burger { display: block; }
}

/* Мобильное меню: выезжает сверху из-под шапки */
.sheet { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; }
.sheet[hidden] { display: none; }
.sheet__scrim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22);
  opacity: 0; transition: opacity 240ms ease;
}
.sheet__panel {
  position: relative;
  background: var(--bg);
  padding: 8px var(--gutter) 24px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0; transform: translateY(-12px);
  transform-origin: top center;
  transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-drawer);
}
.sheet[data-open] .sheet__scrim { opacity: 1; }
.sheet[data-open] .sheet__panel { opacity: 1; transform: none; }
.sheet__links { display: flex; flex-direction: column; }
.sheet__links a { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; }
.sheet__foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sheet__phone { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet__foot .btn { margin-top: 12px; }

/* ───────── Первый экран ───────── */
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--nav-h)));
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; display: block; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  /* Снизу фото растворяется в белом, чтобы не было стыка с карточками */
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0.75) 9%, rgba(255, 255, 255, 0) 26%),
    linear-gradient(90deg, var(--bg) 0%, rgba(255, 255, 255, 0.92) 32%, rgba(255, 255, 255, 0) 62%);
}
.hero__content { padding-block: 64px; }
.hero__title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 820px;
}
.hero__lead { margin-top: 20px; max-width: 30em; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--text-2); letter-spacing: -0.015em; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__media { position: relative; inset: auto; width: 100%; height: 360px; order: 2; }
  .hero__media img { object-position: 50% 30%; }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0.75) 10%, rgba(255, 255, 255, 0) 30%),
      linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, 0) 30%);
  }
  .hero__content { order: 1; padding-block: 32px 8px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ───────── Факты ───────── */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 8px; position: relative; z-index: 2;
}
.fact {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 28px;
}
/* Цифры и иконки — тёмно-зелёным, без подложки */
.fact__num {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: var(--green-ink);
  margin-bottom: 12px;
  height: 48px;
}
.fact__num small { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }
.fact__num--icon .i { width: 44px; height: 44px; stroke-width: 1.6; }
.fact p { color: var(--text-2); font-size: 16px; line-height: 1.45; }

@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr; margin-top: 0; gap: 12px; padding-top: 0; }
  .fact { display: flex; align-items: center; gap: 18px; padding: 20px; }
  .fact__num { margin: 0; flex: none; min-width: 84px; height: auto; font-size: 34px; }
}

/* ───────── Бренды ───────── */
.brands { padding: 56px 0 8px; position: relative; overflow: hidden; }
.brands__row { display: flex; justify-content: center; }
.brands__track { display: flex; }
.brands__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.brands__list li { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #86868b; white-space: nowrap; }
.brands__list--clone { display: none; }

/* Блик: салатовая полоса едет поверх строки. lighten берёт более светлый цвет:
   белый фон остаётся белым, серые буквы становятся салатовыми.
   Двигается только transform; пробег ~2,4 с, потом пауза */
.brands::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(105deg, rgba(158, 252, 60, 0) 0%, #9efc3c 42%, #d9ffb0 50%, #9efc3c 58%, rgba(158, 252, 60, 0) 100%);
  mix-blend-mode: lighten;
  pointer-events: none;
  transform: translateX(-100%);
  animation: brands-glint 6s ease-in-out infinite;
}
@keyframes brands-glint {
  0%   { transform: translateX(-100%); }
  40%  { transform: translateX(250%); }
  100% { transform: translateX(250%); }
}

/* Телефон: бесконечная бегущая строка. Две одинаковые копии, сдвиг на -50% — шов не виден.
   Постоянное движение — linear; анимация на CSS, идёт вне основного потока */
@media (max-width: 767px) {
  .brands__row {
    padding-inline: 0; overflow: hidden; justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .brands__track { width: max-content; animation: brands-marquee 36s linear infinite; }
  .brands__list, .brands__list--clone { display: flex; flex-wrap: nowrap; gap: 0 28px; padding-right: 28px; }
  .brands__list li { font-size: 17px; }
}
@keyframes brands-marquee { to { transform: translateX(-50%); } }

/* Без движения: серый текст без блика, на телефоне — список с переносом */
@media (prefers-reduced-motion: reduce) {
  .brands::after { display: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .brands__row { padding-inline: var(--gutter); justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .brands__track { width: auto; animation: none; }
  .brands__list { flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding-right: 0; }
  .brands__list--clone { display: none; }
}



/* ───────── Секции ───────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }
/* Фон у секций один, поэтому у соседних не удваиваем отступ */
.section + .section { padding-top: 0; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section__head .lead { margin-top: 16px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* ───────── Преимущества (bento) ───────── */
.bento { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; }
.bento__photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: #4b7d1d;
  min-height: 420px;
}
.bento__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
}
.bento__photo figcaption {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1;
  color: #fff; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
}
.bento__photo figcaption strong { display: block; font-size: clamp(64px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.05em; color: var(--green); }

.bento__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.card .i { width: 28px; height: 28px; color: var(--green-ink); margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.card:last-child { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento__photo { min-height: 0; aspect-ratio: 1 / 0.9; }
}
@media (max-width: 480px) {
  .bento__list { grid-template-columns: 1fr; }
  /* Иконка слева, описание — под заголовком, по его левому краю */
  .card { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; padding: 20px; }
  .card .i { margin: 0; }
  .card h3 { grid-column: 2; }
  .card p { grid-column: 2; }
}

/* ───────── Вызов мастера ───────── */
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--green); color: var(--on-green);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.callout h2 { font-size: clamp(28px, 3.6vw, 40px); }
.callout p { margin-top: 8px; font-size: 18px; max-width: 34em; opacity: 0.85; }
.callout .btn--primary { background: var(--dark); color: #fff; flex: none; }
@media (hover: hover) and (pointer: fine) { .callout .btn--primary:hover { background: #000; } }
@media (max-width: 720px) {
  .callout { flex-direction: column; align-items: stretch; }
  .callout .btn { width: 100%; }
}

/* ───────── Гидрогель ───────── */
.promo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.promo__media { display: grid; place-items: center; }
.promo__media img { width: min(100%, 560px); }
.promo__text h2 { margin-bottom: 20px; }
.promo__text .lead { margin-bottom: 16px; }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 767px) {
  .promo { grid-template-columns: 1fr; }
  .promo__media img { width: 100%; }
}

/* ───────── Прайс ───────── */
.price { background: var(--surface-2); border-radius: var(--radius-lg); padding: 8px 28px; }
.price__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; font-size: 18px;
}
.price__row + .price__row { border-top: 1px solid var(--line); }
.price__row dt { font-weight: 500; }
.price__row dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__row--free dd { color: var(--green-ink); }
.price__cta { margin-top: 28px; text-align: center; }
@media (max-width: 480px) {
  .price { padding: 4px 20px; }
  .price__row { font-size: 17px; padding: 17px 0; }
  .price__cta .btn { width: 100%; }
}

/* ───────── Доверие ───────── */
.trust { background: var(--dark); color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0; }
.trust__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.trust h2 { color: #fff; }
.trust__item { border-top: 2px solid var(--green); padding-top: 20px; }
.trust__item h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.trust__item p { color: var(--on-dark-2); font-size: 17px; }
@media (max-width: 860px) { .trust__grid { grid-template-columns: 1fr; } }

/* ───────── Отзывы ───────── */
.rating {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 10px 18px; border-radius: 999px; background: var(--surface-2);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.rating:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .rating:hover { background: var(--surface-3); } }
.rating__score { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.rating__stars { color: #f5a623; letter-spacing: 2px; }
.rating__src { color: var(--text-2); font-size: 15px; }

.carousel__track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.review {
  flex: 0 0 min(360px, 84vw);
  scroll-snap-align: start;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.review blockquote { font-size: 18px; line-height: 1.5; letter-spacing: -0.012em; }
.review blockquote::before { content: "«"; }
.review blockquote::after { content: "»"; }
.review__name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.carousel__nav { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.carousel__nav .link { margin-left: auto; font-size: 15px; }

/* ───────── Адреса и своя карта ───────── */
.places { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }

.places__map {
  position: sticky; top: calc(var(--nav-h) + 16px);
  height: min(620px, calc(100svh - var(--nav-h) - 32px));
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2);
}
/* MapLibre ставит контейнеру position: relative, поэтому селектор усилен */
.places__map .map { position: absolute; inset: 0; }
.map__fallback {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px;
  color: var(--green-ink); font-weight: 600;
}
.places__map[data-state="error"] .map__fallback { display: grid; }

.places__list { background: var(--surface-2); border-radius: var(--radius-lg); padding: 6px; }
.place { display: flex; align-items: center; gap: 4px; border-radius: var(--radius-sm); transition: background-color 200ms ease; }
.place + .place { margin-top: 2px; }
.place.is-active { background: #fff; }
.place__pick {
  flex: 1; min-width: 0; text-align: left;
  display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 1px; align-items: center;
  padding: 11px 6px 11px 12px; border-radius: var(--radius-sm);
}
.place__num {
  grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--text-2);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease, color 200ms ease;
}
.place.is-active .place__num { background: var(--green); color: var(--on-green); }
.place__pick b { font-weight: 600; font-size: 16px; }
.place__addr { color: var(--text-2); font-size: 14px; }
.place__route {
  flex: none; margin-right: 8px;
  font-size: 14px; font-weight: 600; color: var(--green-ink);
  padding: 8px 12px; border-radius: 999px;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.place__route:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .place:not(.is-active):hover { background: rgba(0, 0, 0, 0.025); }
  .place__route:hover { background: rgba(158, 252, 60, 0.3); }
}

/* Метка: внешний элемент двигает MapLibre, масштабируем только внутренний */
.pin { width: 32px; height: 32px; cursor: pointer; }
.pin__dot {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--on-green);
  font: 700 13px/1 var(--font); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2.5px #fff;  /* белое кольцо, не тень */
  transition: transform 200ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.pin.is-active { z-index: 2; }
.pin.is-active .pin__dot { background: var(--dark); color: #fff; transform: scale(1.18); }
@media (hover: hover) and (pointer: fine) { .pin:not(.is-active):hover .pin__dot { transform: scale(1.1); } }

/* Всплывающая карточка точки. Префикс .places__map перебивает стили MapLibre */
.places__map .maplibregl-popup-content {
  padding: 12px 14px 12px; border-radius: 14px;
  font: 400 14px/1.4 var(--font); color: var(--text);
  box-shadow: none; border: 1px solid var(--line);
}
.places__map .maplibregl-popup-content b { display: block; font-size: 15px; font-weight: 600; }
.places__map .maplibregl-popup-content span { color: var(--text-2); }
.places__map .maplibregl-popup-content a { display: inline-block; margin-top: 8px; color: var(--green-ink); font-weight: 600; }
.places__map .maplibregl-popup-close-button { display: none; }
.maplibregl-popup { animation: pop 180ms var(--ease-out); }
@keyframes pop { from { opacity: 0; } }
.places__map .maplibregl-ctrl-group { border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
.maplibregl-cooperative-gesture-screen { font: 500 15px/1.4 var(--font) !important; }

@media (max-width: 860px) {
  .places { grid-template-columns: 1fr; }
  .places__map { position: relative; top: auto; height: 380px; }
}

/* ───────── Подвал ───────── */
.footer { background: var(--dark); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 26em; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }
.footer__col a:not(.btn) { color: var(--on-dark); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:not(.btn):hover { color: var(--green); } }
.footer__phone { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.footer__col .btn { margin-top: 6px; }
.footer__legal {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px;
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ───────── Плавающая кнопка звонка (телефон) ───────── */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 320ms var(--ease-drawer);
  }
  .callbar[data-visible] { transform: none; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ───────── Телефон: шапка, отступы, размеры заголовков ───────── */
@media (max-width: 767px) {
  /* Звонок на телефоне — только нижней кнопкой и кнопкой первого экрана */
  .nav__right .btn { display: none; }
  .facts { margin-top: 16px; }
  .hero__title { font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; }
  .hero__lead { margin-top: 5px; margin-bottom: 55px; font-size: 16px; line-height: 1.25; }
  h2 { font-size: 27px; line-height: 1.12; }
  .callout h2 { font-size: 24px; }
  .trust__item h3 { font-size: 19px; }
  .bento__photo figcaption { font-size: 20px; left: 20px; bottom: 20px; }
  .bento__photo figcaption strong { font-size: 56px; }
  .sheet__links a { font-size: 24px; }
}

/* ───────── Появление при прокрутке ─────────
   Только при включённом JS, один раз, без блокировки взаимодействия. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .sheet__panel { transform: none; transition: opacity 200ms ease; }
  .callbar { transition: none; }
  .maplibregl-popup { animation: none; }
  .pin__dot { transition: background-color 200ms ease, color 200ms ease; }
  .btn:active, .round:active, .rating:active { transform: none; }
}
