/* ============================================================
   Магазин ТД БОВИД на Троицком тракте — vanilla CSS
   Палитра: тёплый кремовый + синий бренд + чёрно-кофейный текст.
   Один шрифт Inter, маленькие скругления (4–12px).
   ============================================================ */

:root {
  /* Brand palette — final iteration from chat: warm cream + deeper blue */
  --bg:           #F4F2EC;
  --surface:      #FFFFFF;
  --surface-alt:  #EBE7DC;
  --ink:          #1A1815;
  --ink-soft:     #3A352C;
  --muted:        #766E62;
  --line:         #E2DCCB;
  --line-soft:    #ECE6D5;

  --brand:        #0046B8;
  --brand-dark:   #003089;
  --brand-soft:   #E0E9F4;

  --open:         #1F8A4C;

  /* Layout */
  --container:    1280px;
  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-lg:    8px;
  --radius-xl:    12px;
  --radius-pill:  999px;

  --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
*:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, dl, dd { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 56px; }
.section { padding: 88px 0; }
.section--no-top { padding-top: 0; }
/* Sticky topbar is 64px tall — when clicking an anchor link from nav,
   browsers must offset the scroll target by this much, otherwise the section's
   title hides behind the topbar. */
:where(#popular, #catalog, #map, #why, #faq, #top) { scroll-margin-top: 80px; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section__title { font-size: clamp(28px, 4vw, 46px); line-height: 1.04; letter-spacing: -0.03em; margin: 12px 0 14px; }
.section__lead { font-size: 15px; color: var(--muted); max-width: 620px; margin: 0; line-height: 1.55; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.117em;
  text-transform: uppercase;
}
.eyebrow--on-dark { color: rgba(255,255,255,0.55); }
.eyebrow--on-blue { color: rgba(255,255,255,0.7); }

/* ---- Status pill (Open / Closed) ---- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(31, 138, 76, .35);
  animation: bovid-pulse 2.2s infinite;
}
@keyframes bovid-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 138, 76, .45); }
  70%  { box-shadow: 0 0 0 6px rgba(31, 138, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); }
}
.status.is-closed .status__dot { background: #9CA3AF; animation: none; box-shadow: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: translateY(0); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.btn--lg { height: 54px; padding: 0 22px; font-size: 15px; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--surface); border-color: var(--ink-soft); }
.btn--white { background: #fff; color: var(--brand); border-color: #fff; }
.btn--white:hover { background: var(--brand-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: #fff; }
/* .btn--on-dark is a semantic marker on dark sections — no own styles, the
   actual colors come from .btn--white / .btn--outline-light next to it. */

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 236, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .15s ease;
}
.topbar.is-scrolled { box-shadow: 0 2px 14px rgba(15, 23, 42, .04); }
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.brand__logo { height: 36px; width: auto; object-fit: contain; }
.brand__sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.topbar__nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  flex-wrap: nowrap;
  min-width: 0;
}
.topbar__nav a {
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
  white-space: nowrap;
}
.topbar__nav a:hover { color: var(--brand); }
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.status--inline { background: var(--surface); flex-shrink: 0; }
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.topbar__phone:hover { color: var(--brand); background: var(--brand-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 72px 0 88px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__col { display: flex; flex-direction: column; }
.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.117em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0;
}
.hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 22px 0 0;
  max-width: 520px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.hero__link:hover { color: var(--ink); }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin: 48px 0 0;
}
.hero__stats > div { padding-right: 20px; }
.hero__stats dt { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.hero__stats dd { font-size: 13px; color: var(--muted); margin-top: 4px; }

.hero__photo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  overflow: hidden;
  aspect-ratio: 960 / 500;
}
.hero__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.status--floating { position: absolute; top: 18px; left: 18px; z-index: 2; }
.hero__photo-pin {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
}
.hero__photo-pin > svg { color: rgba(255,255,255,0.85); flex-shrink: 0; }
.hero__photo-pin-text { flex: 1; min-width: 0; }
.hero__photo-pin-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.hero__photo-pin-text span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}
.hero__photo-pin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.hero__photo-pin-link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ============================================================
   TRUST BAND
   ============================================================ */
.trust { background: var(--ink); color: #fff; padding: 26px 0; }
.trust__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust__item {
  padding: 0 26px;
  border-left: 1px solid rgba(255,255,255,0.10);
}
.trust__item:first-child { border-left: none; padding-left: 0; }
.trust__item strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.trust__item span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
}

/* ============================================================
   CATEGORIES (POPULAR)
   ============================================================ */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.cat {
  padding: 28px 28px 32px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.cat:nth-child(3n) { border-right: none; padding-right: 0; }
.cat:nth-child(3n+1) { padding-left: 0; }
.cat:nth-last-child(-n+3) { border-bottom: none; }
.cat h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.022em; margin: 0; }
.cat p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 8px 0 0; }
.cat__link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat__link:hover { color: var(--brand-dark); }

/* ============================================================
   CATALOG (DARK CARD WITH MARQUEE)
   ============================================================ */
.catalog {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 60px 0 52px;
  overflow: hidden;
  position: relative;
}
.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 56px;
  margin-bottom: 28px;
}
.catalog__head > div:first-child { max-width: 720px; }
.catalog__title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 12px 0 0;
}
.catalog__lead {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 12px 0 0;
  line-height: 1.55;
}
.catalog__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 460px;
}
.catalog__tab {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.catalog__tab:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); color: #fff; }
.catalog__tab.is-active { background: #fff; color: var(--ink); border-color: #fff; }

/* marquee */
.catalog__strip { position: relative; overflow: hidden; }
.catalog__strip::before,
.catalog__strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.catalog__strip::before { left: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(26,24,21,0) 100%); }
.catalog__strip::after  { right: 0; background: linear-gradient(-90deg, var(--ink) 0%, rgba(26,24,21,0) 100%); }
.catalog__track {
  display: flex;
  gap: 16px;
  padding: 4px 56px;
  width: max-content;
  animation: bovid-marquee var(--marquee-duration, 80s) linear infinite;
}
.catalog__strip:hover .catalog__track,
.catalog__track.is-paused { animation-play-state: paused; }
@keyframes bovid-marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.catalog__track--empty {
  /* shown briefly while script.js hasn't injected tiles */
  padding: 16px 56px;
  width: 100%;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-size: 14px;
  animation: none;
}

.catalog__foot {
  padding: 32px 56px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog__note { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; }
.catalog__foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Product tiles (rendered by script.js) */
.product-tile {
  width: 280px;
  min-height: 380px;
  flex-shrink: 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-tile__image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-tile__image { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-tile__body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-tile__meta { font-size: 12px; color: var(--muted); font-weight: 500; }
.product-tile__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tile__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 8px; }
.product-tile__stock { font-size: 11px; color: var(--muted); font-weight: 500; }
.product-tile__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.product-tile__link {
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.product-tile__link:hover { background: var(--ink-soft); }
/* Placeholder shown when the item has no page on tdbovid.ru — phone CTA
   replaces the link. Same height as the link button so the row doesn't jump. */
.product-tile__note {
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   HOURS BLOCK
   ============================================================ */
.hours {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
.hours__title {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 14px 0 0;
}
.hours__lead { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 480px; margin: 16px 0 0; line-height: 1.55; }
.hours__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hours__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hours__grid > div {
  padding: 22px;
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.hours__grid > div:nth-child(2n) { border-right: none; }
.hours__grid > div:nth-last-child(-n+2) { border-bottom: none; }
.hours__grid dt { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500; }
.hours__grid dd { font-size: 20px; font-weight: 700; margin: 4px 0 0; letter-spacing: -0.015em; }
.hours__grid span { display: block; font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ============================================================
   MAP + CONTACTS
   ============================================================ */
.map {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 20px;
  margin-top: 32px;
}
.map__frame {
  position: relative;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.map__frame iframe { width: 100%; height: 100%; border: 0; }
.map__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map__logo { padding-bottom: 4px; }
.map__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
.map__list dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 5px;
}
.map__list dd {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.map__phone {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.012em;
}
.map__phone:hover { color: var(--brand-dark); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
}
.map__buttons { display: flex; gap: 8px; margin-top: auto; }
.map__buttons .btn { flex: 1; }

/* ============================================================
   WHY US
   ============================================================ */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.why__item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.why__item:first-child { padding-left: 0; }
.why__item:last-child { border-right: none; padding-right: 0; }
.why__item h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.why__item p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 48px;
}
.faq__head .section__title { margin-top: 14px; }
.faq__head .btn { margin-top: 24px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  cursor: pointer;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.faq__item[open] summary::after {
  content: "+";
  background: var(--ink);
  color: #fff;
  transform: rotate(45deg);
}
.faq__item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 12px 0 0;
  max-width: 560px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 52px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: flex-end;
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.05;
  margin: 14px 0 0;
}
.final-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.final-cta__buttons { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 28px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer__logo { filter: brightness(0) invert(1); margin-bottom: 14px; height: 42px; }
.footer__text { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.55; margin: 0; max-width: 280px; }
.footer h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer p { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.55; margin: 0; }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: rgba(244, 242, 236, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  gap: 8px;
}
.mobile-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.mobile-bar__btn:active { transform: scale(0.98); }
.mobile-bar__btn--primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.mobile-bar__btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line); background: #fff; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 110;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__text { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.cookie-banner__text a { font-weight: 700; color: var(--brand); }
.cookie-banner__btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   PRIVACY
   ============================================================ */
.policy { min-height: 100vh; padding: 56px 0 72px; }
.policy__back { display: inline-flex; align-items: center; margin-bottom: 24px; font-weight: 700; color: var(--brand); text-decoration: none; }
.policy__title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; letter-spacing: -0.028em; }
.policy__lead { margin: 0 0 28px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.policy__section { padding: 22px 0; border-top: 1px solid var(--line); }
.policy__section h2 { margin-bottom: 10px; font-size: 22px; }
.policy__section p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .hero__grid { gap: 32px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat:nth-child(3n) { border-right: 1px solid var(--line); padding-right: 28px; }
  .cat:nth-child(3n+1) { padding-left: 28px; }
  .cat:nth-child(2n) { border-right: none; padding-right: 0; }
  .cat:nth-child(2n+1) { padding-left: 0; }
  .cat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cat:nth-last-child(-n+2) { border-bottom: none; }
  .hours { padding: 36px; grid-template-columns: 1fr; gap: 32px; }
  .map { grid-template-columns: 1fr; }
  .map__frame { height: 380px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why__item { border-right: 1px solid var(--line); padding: 24px; }
  .why__item:nth-child(2n) { border-right: none; padding-right: 0; }
  .why__item:nth-child(2n+1) { padding-left: 0; }
  .why__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .final-cta { padding: 40px; grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .catalog__head { padding: 0 36px; }
  .catalog__foot { padding: 28px 36px 0; }
  .catalog__track { padding: 4px 36px; }
  .catalog__strip::before,
  .catalog__strip::after { width: 36px; }
  .topbar__nav { gap: 18px; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  /* Cookie banner sits above mobile-bar (78px) — without this, banner overlaps
     the Позвонить/Маршрут sticky buttons. */
  .cookie-banner {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
  .topbar__nav { display: none; }
  .topbar__inner { gap: 12px; }
  .topbar__actions { margin-left: auto; gap: 10px; }
  .status--inline { display: none; }
  .brand__sub { display: none; }
  .topbar__phone span { display: none; }
  .topbar__phone svg { width: 18px; height: 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__photo-pin { gap: 12px; padding: 14px 16px; }
  .hero__photo-pin-text strong { font-size: 14px; }
  .hero__photo-pin-text span { font-size: 12px; }
  .hero__photo-pin-link { display: none; }
  .hero__stats { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; margin-top: 36px; }
  .hero__stats > div { padding-right: 0; }
  .hero__stats dt { font-size: 17px; }
  .trust__row { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .trust__item { padding-left: 18px; padding-right: 18px; }
  .trust__item:nth-child(3) { border-left: none; padding-left: 0; }
  .trust__item:nth-child(2n+1) { padding-left: 0; }
  .trust__item:nth-child(2n) { padding-right: 0; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 18px; }
  .hours { padding: 28px; }
  .hours__grid { grid-template-columns: 1fr; }
  .hours__grid > div { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
  .hours__grid > div:last-child { border-bottom: none !important; }
  .catalog { padding: 36px 0 32px; border-radius: var(--radius-lg); }
  .catalog__head { padding: 0 24px; }
  .catalog__title { font-size: 26px; line-height: 1.06; letter-spacing: -0.015em; }
  .catalog__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .catalog__tabs::-webkit-scrollbar { display: none; }
  .catalog__tab { flex-shrink: 0; }
  .catalog__track { padding: 4px 24px; gap: 12px; }
  .catalog__strip::before,
  .catalog__strip::after { width: 24px; }
  .product-tile { width: 240px; min-height: 350px; }
  .catalog__foot { padding: 24px 24px 0; flex-direction: column; align-items: flex-start; }
  .why { grid-template-columns: 1fr; }
  .why__item { border-right: none; padding: 22px 0; border-bottom: 1px solid var(--line) !important; }
  .why__item:last-child { border-bottom: none !important; }
  .final-cta { padding: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mobile-bar { display: flex; }
  .container { padding: 0 20px; }
  .map__buttons { flex-direction: column; }
}

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 34px; letter-spacing: -0.025em; }
  .hero__lead { font-size: 15px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .trust__row { grid-template-columns: 1fr; gap: 12px; }
  .trust__item { border-left: none !important; padding: 0 !important; }
  .cats { grid-template-columns: 1fr; }
  .cat { padding: 22px 0 !important; min-height: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .cat:last-child { border-bottom: none; }
  .section__head .btn { width: 100%; }
  .section__head { gap: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .topbar__phone svg { width: 20px; height: 20px; }
  .map__frame { height: 320px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 30px; }
  .cookie-banner { left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; padding: 12px; }
  .cookie-banner__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .catalog__track { animation: none; }
}
