/* ФОЛЬК43 — запчасти VW, Киров */

:root {
  --ink: #1c232b;
  --ink-2: #46525f;
  --ink-3: #7a8794;
  --line: #e1e7ed;
  --bg: #ffffff;
  --mist: #f3f6f9;
  --sky-50: #f4f8fc;
  --sky-100: #e9f1f9;
  --sky-200: #d8e6f3;
  --sky-300: #c6daee;
  --sky-500: #5e93c6;
  --blue-700: #24507a;
  --ok: #2f8a5b;

  --gutter: clamp(16px, 2.6vw, 40px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 1px 2px rgba(28, 35, 43, 0.06), 0 8px 24px rgba(28, 35, 43, 0.06);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 2px; border-radius: 6px; }

.wrap { padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- типографика ---------- */

.h-serif {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h-sans {
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }

.section-head { text-align: center; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head .lead { margin-top: 12px; }

section { padding-block: clamp(56px, 7vw, 104px); }

/* ---------- кнопки, пилюли ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border: 0; border-radius: 12px;
  background: var(--ink); color: #fff;
  font-weight: 500; font-size: 18px; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: #2d3843; }
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn--lg { height: 64px; font-size: 20px; padding: 0 32px; }
.btn--light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--light:hover { background: var(--mist); }
.btn--sky { background: var(--sky-200); color: var(--ink); }
.btn--sky:hover { background: var(--sky-300); }
.btn--block { width: 100%; white-space: normal; text-align: center; min-height: 56px; height: auto; padding-block: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: 15px; font-weight: 500;
  transition: background-color .2s;
}
.pill:hover { background: var(--sky-100); }
.pill--soft { box-shadow: inset 0 0 0 1px var(--line); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 6px; background: var(--sky-200); color: var(--blue-700);
  font-size: 13px; font-weight: 500;
}
.tag--new { background: #dff1e7; color: #1f6b44; }
.tag--grey { background: var(--mist); color: var(--ink-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-border);
}

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(28, 35, 43, 0.06);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; }
.nav a { white-space: nowrap; }
.nav a:not(.pill) { position: relative; padding-block: 6px; }
.nav a:not(.pill)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.pill):hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }
.burger {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px; border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a:not(.pill) { padding: 14px 16px; border-radius: 12px; font-size: 17px; }
  .nav a:not(.pill):hover { background: var(--sky-100); }
  .nav a::after { display: none; }
  .nav .pill { margin: 8px; justify-content: center; height: 48px; }
  .site-header__in { height: 72px; }
  .logo img { height: 22px; }
}

/* ---------- герой со стрелками ---------- */

.hero { padding-block: 4px 0; }
/* Плашка растягивается по ширине, острие и шевроны масштабируются по высоте (--h), без искажений */
.hero__stage {
  --h: clamp(460px, 36vw, 560px);
  position: relative; display: flex; height: var(--h);
}
.hero__body { flex: 1; min-width: 0; background: #c6daee; border-radius: 24px 0 0 24px; }
.hero__tip, .hero__chev { height: var(--h); flex: none; display: block; }
.hero__tip { width: calc(var(--h) * 160 / 540); }
.hero__chev { width: calc(var(--h) * 274 / 540); margin-left: calc(var(--h) * -50 / 540); }
.hero__content {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: 0;
  /* справа оставляем место под машину */
  right: calc(var(--h) * 1.5);
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 24px clamp(28px, 4.2vw, 64px);
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(36px, 3.9vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero__sub { margin-top: 18px; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-2); max-width: 34em; }
.hero__sub b { color: var(--ink); font-weight: 600; }
.hero__car {
  position: absolute; z-index: 2;
  right: calc(var(--h) * 0.03); bottom: calc(var(--h) * 0.14); width: calc(var(--h) * 1.38);
  filter: drop-shadow(0 28px 22px rgba(28, 35, 43, 0.22));
  pointer-events: none;
  animation: car-in 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes car-in { from { opacity: 0; transform: translateX(6%); } }
.hero__chip {
  position: absolute; z-index: 3; right: calc(var(--h) * 0.06); top: calc(var(--h) * 0.08);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  font-size: 14px; line-height: 1.3;
  box-shadow: 0 10px 30px rgba(28, 35, 43, 0.12);
}
.hero__chip b { display: block; font-size: 15px; }
.hero__chip-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
/* до 1600px: убираем третий шеврон, машина меньше — тексту просторнее */
@media (max-width: 1599px) {
  .hero__chev--3 { display: none; }
  .hero__content { right: calc(var(--h) * 1.16); }
  .hero__car { width: calc(var(--h) * 1.05); bottom: calc(var(--h) * 0.2); }
}
@media (max-width: 1180px) { .hero__chip { display: none; } }

.search {
  display: flex; gap: 12px; margin-top: clamp(22px, 2.4vw, 34px); max-width: 640px;
}
.search { flex-wrap: wrap; }
/* поле не уже 210px; если не помещается — кнопка уходит вниз на всю ширину */
.search__field {
  position: relative; flex: 3 1 210px; min-width: 0;
}
.search > .btn { flex: 1 0 auto; }
.search__field input {
  width: 100%; height: 64px; padding: 0 20px 0 52px;
  border: 1.5px solid #fff; border-radius: 12px; background: #fff;
  font-size: 19px; outline: none;
  box-shadow: 0 1px 2px rgba(28, 35, 43, 0.08);
  transition: border-color .2s;
}
.search__field input::placeholder { color: #9aa6b2; }
.search__field input:focus { border-color: var(--ink); }
.search__field svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--ink-3); }

.rating-line { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; flex-wrap: wrap; }
.rating-line__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; }
/* привычные жёлтые звёзды рейтинга */
.stars i { display: grid; place-items: center; }
.stars i svg { width: 22px; height: 22px; color: #f5a623; }
.stars i.off svg { color: var(--line); }
.stars--sm i svg { width: 16px; height: 16px; }

/* до 1100px: текст сверху, машина под ним, плашка по высоте контента со стрелкой вниз */
@media (max-width: 1100px) {
  .hero__tip, .hero__chev { display: none; }
  .hero__stage { display: block; height: auto; background: #c6daee; border-radius: 24px; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px) 0; margin-bottom: 64px; }
  .hero__body { display: none; }
  .hero__stage::after {
    content: ''; position: absolute; left: 50%; bottom: -46px; width: 120px; height: 120px; z-index: 0;
    background: #c6daee; border-radius: 22px; transform: translateX(-50%) scaleY(.75) rotate(45deg);
  }
  .hero__content { position: relative; inset: auto; padding: 0; max-width: 640px; }
  .hero__car { position: relative; inset: auto; width: min(100%, 620px); margin: 6px auto -44px; }
  .hero__chip { display: none; }
}
@media (max-width: 560px) {
  .search { flex-direction: column; }
  /* в столбик flex-basis 210px становится высотой поля — тогда иконка уезжает под поле */
  .search__field, .search > .btn { flex: none; }
  .search .btn { height: 56px; }
  .search__field input { height: 56px; font-size: 17px; }
}

/* ---------- как купить ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.step__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.step:hover .step__img img { transform: scale(1.04); }
.step__chip {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  padding: 12px 14px; border-radius: 14px; font-size: 13px; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.step__chip b { color: var(--ink); font-size: 16px; font-weight: 600; display: block; }
.step__chip--top { bottom: auto; top: 16px; right: auto; }
.step__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--sky-300);
  display: grid; place-items: center; font-weight: 600; margin: 22px 0 14px;
}
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--ink-2); }

@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- отзывы (голубая подложка) ---------- */

.band {
  background: var(--sky-100);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.band--full { border-radius: var(--r-xl); }
/* голубая панель с полями от краёв экрана; внутри — одинаковый отступ */
.panel { margin-inline: var(--gutter); padding-inline: clamp(16px, 3vw, 48px); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.review {
  position: relative; background: #fff; border-radius: var(--r-lg);
  padding: 56px 28px 28px; margin-top: 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.review__ava {
  position: absolute; top: -40px; left: 50%; translate: -50% 0;
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(140deg, var(--sky-200), var(--sky-300));
  border: 4px solid #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 26px; color: var(--blue-700);
}
.review q { font-size: 17px; line-height: 1.5; quotes: '«' '»'; }
.review__by { font-size: 13px; color: var(--ink-3); margin-top: auto; }
.review__by b { color: var(--ink-2); font-weight: 500; }

@media (max-width: 960px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* белая панель, наезжающая на голубую */
.lift { background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(-1 * var(--r-xl)); position: relative; }

/* ---------- лента свежих объявлений ---------- */

.ticker { position: relative; overflow: hidden; padding-block: 6px; }
.ticker::before,
.ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.ticker__track { display: flex; gap: 16px; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tcard {
  display: flex; gap: 14px; align-items: stretch; width: 330px; padding: 10px;
  background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}
.tcard:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tcard img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; }
.tcard__body { display: flex; flex-direction: column; min-width: 0; padding-block: 2px; }
.tcard__t { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__p { margin-top: 4px; font-weight: 600; }
.tcard__d { margin-top: auto; font-size: 12px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker__track { animation: none; }
  .hero__car { animation: none; }
}

/* ---------- рейтинг + модели ---------- */

.rating-big { text-align: center; }
.rating-big__line { margin-top: 18px; display: inline-flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-2); flex-wrap: wrap; justify-content: center; }
.rating-big__line a { text-decoration: underline; text-underline-offset: 3px; }

.models-row {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px clamp(20px, 2.6vw, 40px);
}
.models-row h3 { font-size: 17px; font-weight: 600; margin-right: 4px; }
/* модели — явные кнопки-чипы, а не серый текст */
.models-row a {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--mist); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; transition: background-color .2s;
}
.models-row a:hover { background: var(--sky-100); }
.models-row a small { font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* ---------- карточки «Покупайте уверенно» ---------- */

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.icard { background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.icard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icard__img { aspect-ratio: 16 / 10; overflow: hidden; }
.icard__img img { width: 100%; height: 100%; object-fit: cover; }
.icard__b { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.icard__b h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.icard__b p { color: var(--ink-2); font-size: 15px; }
.icard__b .link-arrow { margin-top: auto; padding-top: 8px; }

@media (max-width: 960px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }

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

.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 8px; }
.faq details { background: var(--sky-50); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--sky-100); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  width: 24px; height: 24px; border-radius: 50%; background: var(--sky-300); flex: none;
  display: grid; place-items: center; transition: transform .25s;
}
.faq summary i svg { width: 12px; height: 12px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); max-width: 60ch; }

@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .faq__list { gap: 6px; }
  .faq summary { padding: 12px 14px; font-size: 15px; line-height: 1.35; gap: 12px; }
  .faq details p { padding: 0 14px 14px; font-size: 15px; }
}

/* ---------- разделы каталога ---------- */

.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.band-sub { color: var(--ink-2); margin-bottom: clamp(24px, 3vw, 40px); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat {
  display: flex; gap: 14px; align-items: center; padding: 12px; background: #fff; border-radius: var(--r);
  transition: transform .2s, box-shadow .2s;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.cat b { display: block; font-weight: 600; font-size: 17px; }
.cat span { font-size: 13px; color: var(--ink-3); }
.cat svg { margin-left: auto; color: var(--ink-3); flex: none; }
@media (max-width: 560px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cat { gap: 10px; padding: 8px; border-radius: 14px; }
  .cat img { width: 44px; height: 44px; border-radius: 10px; }
  .cat b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
  .cat span { font-size: 12px; }
  .cat > span { min-width: 0; }
  .cat svg { display: none; }
}

/* ---------- финальный CTA со стрелками ---------- */

.cta { position: relative; padding-block: clamp(40px, 5vw, 64px); }
.cta__stage { position: relative; }
.cta__shapes { width: 100%; height: auto; display: block; }
.cta__shapes--m { display: none; }
.cta__content {
  position: absolute; top: 0; bottom: 0; left: 45%; right: 9%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
}
.cta__content .search { margin-top: 4px; width: 100%; }
@media (max-width: 960px) {
  .cta__shapes { display: none !important; }
  .cta__stage { background: #c6daee; border-radius: 24px; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); margin-bottom: 40px; }
  .cta__stage::after {
    content: ''; position: absolute; left: 50%; bottom: -40px; width: 100px; height: 100px; z-index: 0;
    background: #c6daee; border-radius: 20px; transform: translateX(-50%) scaleY(.75) rotate(45deg);
  }
  .cta__content { position: relative; z-index: 1; inset: auto; max-width: 640px; }
}

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

.site-footer { background: var(--sky-200); padding-block: clamp(48px, 6vw, 80px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.footer-brand .pill { margin-top: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(28, 35, 43, 0.12); display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); text-align: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- страница: шапка раздела ---------- */

.page-head { padding-block: clamp(20px, 3vw, 40px) clamp(20px, 2.5vw, 32px); }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: 14px; background: var(--sky-100); color: var(--ink-2); font-size: 14px;
}
.notice svg { color: var(--blue-700); width: 20px; height: 20px; margin-top: 1px; }

/* ---------- каталог ---------- */

.cat-hero {
  position: relative; overflow: hidden;
  background: var(--sky-200); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}
.cat-hero::after {
  content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 46%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'%3E%3Cpath d='M20 0h90l70 100-70 100H20l70-100z' fill='%23c6daee'/%3E%3Cpath d='M150 0h60l70 100-70 100h-60l70-100z' fill='%23c6daee'/%3E%3C/svg%3E") right / auto 100% no-repeat;
  pointer-events: none;
}
.cat-hero > * { position: relative; z-index: 1; }
.cat-hero .search { max-width: 760px; }
.cat-hero .h-sans { max-width: 16ch; }
.cat-hero__meta { margin-top: 10px; color: var(--ink-2); }

.filters { position: sticky; top: 84px; z-index: 20; padding-block: 14px; margin-top: 8px; }
.filters.is-stuck { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--mist); font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--sky-100); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; }
.chip small { font-size: 12px; opacity: .6; }
.filters__row2 { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.filters__opts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.select {
  height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 0; background: var(--mist);
  appearance: none; cursor: pointer; font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231c232b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg button[aria-pressed='true'] { background: #fff; box-shadow: 0 1px 3px rgba(28, 35, 43, .12); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
/* каждое объявление — отдельная плашка: фото, цена, название и кнопки внутри одной рамки */
.pcard {
  display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-lg); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(28, 35, 43, 0.04); transition: box-shadow .2s;
}
.pcard:hover { box-shadow: inset 0 0 0 1px var(--sky-200), var(--shadow); }
.pcard__img { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.gchip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
}
.pcard__count { position: absolute; right: 10px; bottom: 10px; }
.pcard__b { padding: 12px 8px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__price { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pcard__price s { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.pcard__t { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__m { font-size: 13px; color: var(--ink-3); }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-3); }
.pcard__foot a { color: var(--blue-700); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.pcard__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty { text-align: center; padding: 64px 16px; color: var(--ink-2); }
.empty b { display: block; font-size: 22px; color: var(--ink); margin-bottom: 8px; }

.ask-bar {
  margin-top: clamp(40px, 5vw, 64px); border-radius: var(--r-xl); background: var(--ink); color: #fff;
  padding: clamp(24px, 3vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.ask-bar h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.ask-bar p { color: #b7c2cd; margin-top: 6px; }
.ask-bar .btn { background: var(--sky-300); color: var(--ink); }
.ask-bar .btn:hover { background: var(--sky-200); }

/* ---------- карточка товара ---------- */

.item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--mist); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); border: 1px solid var(--glass-border);
}
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__counter { position: absolute; right: 14px; bottom: 14px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; opacity: .6; outline-offset: 2px; transition: opacity .2s; }
.gallery__thumbs button[aria-current='true'] { opacity: 1; outline: 2px solid var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.buy { position: sticky; top: 100px; display: grid; gap: 18px; }
.buy h1 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.buy__price { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -0.02em; }
.buy__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.buy__actions { display: grid; gap: 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; margin: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.buy > * { min-width: 0; }
.seller-mini {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}
.seller-mini:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.seller-mini img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.seller-mini b { display: block; }
.seller-mini span { font-size: 13px; color: var(--ink-2); }
.desc { margin-top: clamp(28px, 3vw, 40px); }
.desc h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.desc p { white-space: pre-line; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 900px) { .item { grid-template-columns: minmax(0, 1fr); } .buy { position: static; } }

/* ---------- о продавце ---------- */

.seller-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch;
}
.seller-card { background: var(--sky-200); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.seller-card__top { display: flex; gap: 18px; align-items: center; }
.seller-card__top img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.seller-card h1 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.seller-card__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; }
.badge-ok svg { color: var(--ok); width: 16px; height: 16px; }
.seller-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; }
.seller-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seller-photo .step__chip { right: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--mist); border-radius: var(--r); padding: 18px 20px; }
.stat b { display: block; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--ink-2); }

.dist { display: grid; gap: 8px; max-width: 460px; }
.dist__row { display: grid; grid-template-columns: 16px 1fr 36px; gap: 12px; align-items: center; font-size: 14px; }
.dist__bar { height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.dist__bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.rating-summary { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.rating-summary__score b { font-size: clamp(56px, 6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; display: block; }

.rlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; }
.rcard[hidden] { display: none; }
.rcard { padding: 22px; border-radius: var(--r-lg); background: var(--sky-50); box-shadow: inset 0 0 0 1px var(--sky-100); display: flex; flex-direction: column; gap: 10px; }
.rcard__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rcard__h b { font-weight: 600; }
.rcard__h span { font-size: 13px; color: var(--ink-3); }
.rcard__item { font-size: 13px; color: var(--ink-3); }
.rcard p, .review q { overflow-wrap: anywhere; }
.rcard__ans { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink-2); }
.rcard__ans b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .seller-hero { grid-template-columns: minmax(0, 1fr); } .rating-summary { grid-template-columns: minmax(0, 1fr); } }

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

.contacts { display: grid; grid-template-columns: minmax(300px, 1fr) 1.6fr; gap: clamp(16px, 2.5vw, 32px); align-items: stretch; }
.ccards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.ccard { padding: 22px 24px; border-radius: var(--r-lg); background: var(--mist); display: grid; gap: 6px; }
.ccard__k { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.ccard__v { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ccard p { color: var(--ink-2); font-size: 14px; }
.ccard .btn { margin-top: 10px; }
.ccard--accent { background: var(--sky-200); }
.map { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 520px; background: var(--mist); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__chip { position: absolute; left: 16px; top: 16px; padding: 12px 16px; border-radius: 14px; font-size: 14px; z-index: 2; max-width: calc(100% - 32px); }
.map__chip b { display: block; font-size: 16px; }
@media (max-width: 860px) { .contacts { grid-template-columns: minmax(0, 1fr); } .map { min-height: 380px; } }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================= магазин ================= */

/* шапка: телефон и корзина */
.header-tools { display: flex; align-items: center; gap: 12px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hdr-phone svg { width: 18px; height: 18px; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-100); transition: background-color .2s;
}
.cart-btn:hover { background: var(--sky-200); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__n {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.cart-btn__n[hidden] { display: none; }
.site-header__in { gap: 20px; }
.site-header__in .nav { margin-left: auto; }
@media (max-width: 1100px) { .hdr-phone span { display: none; } .hdr-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--sky-100); } }

/* кнопка «В корзину» в карточке */
.pcard__add {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: background-color .2s;
}
.pcard__add:hover { background: #2d3843; }
.pcard__add.is-added, .btn.is-added { background: var(--sky-200); color: var(--ink); }
.pcard__add svg { width: 16px; height: 16px; }

/* уведомление */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 12px 12px 18px; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(28, 35, 43, .18); font-size: 14px; transition: opacity .25s, translate .25s;
  background: rgba(255, 255, 255, .86);
}
.toast.is-on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast > svg { width: 22px; height: 22px; color: var(--ok); flex: none; }
.toast b { display: block; }
.toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* модальное окно */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: clamp(22px, 3vw, 36px); border: 0; border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(28, 35, 43, .25); color: var(--ink);
}
.modal::backdrop { background: rgba(28, 35, 43, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; display: grid; place-items: center; }
.modal__x svg { width: 18px; height: 18px; }

/* формы */
.form { display: grid; gap: 14px; }
.form__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; padding-right: 40px; }
.form__note { color: var(--ink-2); font-size: 15px; margin-top: -4px; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 16px; font-weight: 400; outline: none; transition: border-color .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { color: #b42318; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.radios legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.radio:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sky-50); }
.radio input { margin: 3px 0 0; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.radio span { font-size: 13px; color: var(--ink-2); }
.radio b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

.done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 0; }
.done__ico { width: 64px; height: 64px; border-radius: 50%; background: #dff1e7; color: var(--ok); display: grid; place-items: center; }
.done__ico svg { width: 30px; height: 30px; }
.done h3 { font-size: 24px; font-weight: 600; }
.done p { color: var(--ink-2); }
.done--page { padding: clamp(32px, 6vw, 80px) 16px; gap: 16px; }

/* мессенджеры */
.msgs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msg {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  color: #fff; font-size: 15px; font-weight: 500; transition: filter .2s, transform .2s;
}
.msg:hover { filter: brightness(1.08); transform: translateY(-1px); }
.msg svg { width: 20px; height: 20px; }
.msg--wa { background: #1fa855; }
.msg--tg { background: #229ed9; }
.msg--vb { background: #7360f2; }
.msgs--sm .msg { width: 40px; height: 40px; padding: 0; justify-content: center; }
.msgs--sm .msg:not(:has(+ *)), .msgs--sm .pill { width: auto; }
.buy__contact .msgs--sm .msg { width: auto; padding: 0 14px; font-size: 14px; }

/* блок «Как нас найти» перед подвалом */
.cband {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(20px, 3vw, 48px); align-items: stretch;
  padding-block: clamp(56px, 7vw, 96px);
}
.cband__info { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: center; }
.cband__phone { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.cband__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cband__map { min-height: 440px; }
@media (max-width: 860px) { .cband { grid-template-columns: minmax(0, 1fr); } .cband__map { min-height: 340px; } }
/* телефон: мессенджеры в ряд одинаковой ширины, кнопки на всю ширину */
@media (max-width: 560px) {
  .msgs:not(.msgs--sm) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .msgs:not(.msgs--sm) .msg { justify-content: center; padding: 0 8px; font-size: 14px; gap: 6px; }
  .cband__info { align-items: stretch; }
  .cband__actions { display: grid; }
  .cband__info .link-arrow { align-self: flex-start; }
}

.footer-phone { display: inline-block; margin-top: 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.footer-brand .msgs { margin-top: 14px; }
.footer-brand .msgs .pill { margin-top: 0; }

/* товар: контакты */
.buy__contact { display: flex; flex-direction: column; gap: 10px; }
.buy__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; }
.buy__phone svg { width: 20px; height: 20px; }

/* корзина */
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto 40px; gap: 16px; align-items: center;
  padding: 12px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line);
}
.cart-line__img img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.cart-line__info { display: grid; gap: 4px; min-width: 0; }
.cart-line__t { font-weight: 500; line-height: 1.3; }
.cart-line__m { font-size: 13px; color: var(--ink-3); }
.cart-line__avito { font-size: 13px; color: var(--blue-700); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.cart-line__p { font-weight: 600; font-size: 18px; white-space: nowrap; text-align: right; min-width: 110px; }
.cart-line__x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; display: grid; place-items: center; }
.cart-line__x svg { width: 16px; height: 16px; }
.qty { display: inline-flex; align-items: center; background: var(--mist); border-radius: 999px; padding: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.qty span { min-width: 32px; text-align: center; font-weight: 600; }
.summary { position: sticky; top: 100px; display: grid; gap: 16px; }
.summary__box { padding: 20px 24px; border-radius: var(--r-lg); background: var(--sky-100); display: grid; gap: 10px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__total { padding-top: 10px; border-top: 1px solid rgba(28, 35, 43, .1); font-size: 20px; }
.summary__hint { font-size: 13px; color: var(--ink-2); }
.summary .form { padding: 24px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 72px auto minmax(0, 1fr) 36px; grid-template-areas: 'img info info x' 'img qty p p'; gap: 8px 12px; }
  .cart-line__img { grid-area: img; } .cart-line__img img { width: 72px; height: 72px; }
  .cart-line__info { grid-area: info; } .qty { grid-area: qty; justify-self: start; }
  .cart-line__p { grid-area: p; min-width: 0; justify-self: end; } .cart-line__x { grid-area: x; width: 36px; height: 36px; }
}

/* контакты */
.contacts__side { display: grid; gap: 16px; align-content: start; }
.contacts__side .map { min-height: 420px; }
.form-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); }
.ccard__v--big { font-size: clamp(26px, 2.6vw, 34px); }
.ccard .msgs { margin-top: 10px; }

/* текстовые страницы */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 28px 0 8px; }
.prose p { color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* шапка ниже 960px — 72px, липкие фильтры каталога встают сразу под ней */
@media (max-width: 960px) { .filters { top: 72px; } }
/* совсем узкие телефоны: мессенджеры без иконок, чтобы три кнопки влезли в ряд */
@media (max-width: 360px) {
  .msgs:not(.msgs--sm) .msg svg { display: none; }
  .msgs:not(.msgs--sm) .msg { font-size: 13px; padding: 0 4px; }
}

/* узкие телефоны: широкий логотип ФОЛЬК43 чуть ниже, чтобы не сжимался */
@media (max-width: 360px) { .site-header .logo img { height: 16px; } .header-tools { gap: 8px; } }

/* фото въезда */
.entrance { display: grid; gap: 14px; }
.cband .entrance { grid-column: 1 / -1; }
.contacts + .entrance { margin-top: clamp(20px, 3vw, 32px); }
.entrance__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.entrance__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entrance__item {
  display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: var(--ink-2); font-size: 14px;
}
.entrance__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.entrance__item:hover img { transform: scale(1.02); }
@media (max-width: 760px) {
  .entrance__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .entrance__list::-webkit-scrollbar { display: none; }
  .entrance__item { scroll-snap-align: start; }
}
.modal--photo { width: min(1100px, calc(100% - 24px)); padding: 0; background: #0f1419; overflow: hidden; }
.modal--photo img { width: 100%; max-height: 80vh; object-fit: contain; display: block; }
.modal--photo p { margin: 0; padding: 12px 18px 16px; color: #e6edf3; font-size: 15px; }
.modal--photo .modal__x { background: rgba(255, 255, 255, .9); }

/* текст о магазине и «часто ищут» — для покупателей и поисковиков */
.seo { padding-block: clamp(40px, 5vw, 72px) 0; display: grid; gap: 16px; }
.seo h2 { font-size: clamp(24px, 2.4vw, 32px); }
.seo p { color: var(--ink-2); max-width: 75ch; }
.seo__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px clamp(20px, 3vw, 40px); }
.seo__cols p { font-size: 15px; }
.seo__h { font-size: 18px; font-weight: 600; margin-top: 8px; }
.seo__links { display: flex; flex-wrap: wrap; gap: 8px; }
.seo__links .chip { height: 36px; font-size: 14px; }
@media (max-width: 960px) { .seo__cols { grid-template-columns: minmax(0, 1fr); } }
/* на компьютере абзацы «подробнее» стоят в общей сетке, на телефоне свёрнуты под кнопку */
.seo__more { display: contents; }
.seo__toggle { display: none; justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--blue-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .seo { gap: 12px; }
  .seo:not(.is-open) .seo__more { display: none; }
  .seo:not(.is-open) .seo__toggle { display: inline; }
  /* «Часто ищут» — одна строка с прокруткой вбок вместо столбика на два экрана */
  .seo__links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .seo__links::-webkit-scrollbar { display: none; }
  .seo__links .chip { flex: none; }
}

/* на телефоне «Как купить», отзывы и «Покупайте уверенно» листаются вбок, а не идут столбиком на несколько экранов */
@media (max-width: 560px) {
  .steps, .reviews, .cards3 {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; padding-bottom: 4px;
  }
  .steps::-webkit-scrollbar, .reviews::-webkit-scrollbar, .cards3::-webkit-scrollbar { display: none; }
  .steps > *, .reviews > *, .cards3 > * { scroll-snap-align: start; }
}

/* на телефоне каталог в две колонки, как на Авито: карточки компактнее, кнопка «В корзину» на всю ширину */
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcard { padding: 6px; border-radius: 18px; }
  .pcard__img { border-radius: 13px; }
  .pcard__badges { left: 6px; top: 6px; }
  .pcard__count { right: 6px; bottom: 6px; }
  .pcard .gchip { height: 24px; padding: 0 8px; font-size: 11.5px; }
  .pcard__b { padding: 8px 4px 2px; gap: 4px; }
  .pcard__price { font-size: 16px; }
  .pcard__price s { display: block; margin: 0; font-size: 12px; }
  .pcard__t { font-size: 13.5px; }
  .pcard__m { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 6px; }
  .pcard__add { justify-content: center; height: 34px; padding: 0 10px; font-size: 13px; }
  .pcard__foot a { justify-content: center; font-size: 12.5px; }
}

/* ---------- телефон: логика как в приложении Авито ---------- */

/* лента на главной видна только на телефоне */
.mfeed { display: none; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.more[hidden] { display: none; }
.mbar { display: none; }

@media (max-width: 760px) {
  .mfeed { display: grid; gap: 10px; padding-top: 20px; }
  .mfeed .chips { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .mfeed .chip { height: 38px; font-size: 14.5px; }
  .mfeed__models .chip { background: var(--sky-100); font-weight: 600; }
  .mfeed__head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
  .mfeed__head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
  .mfeed__head a { color: var(--blue-700); font-weight: 500; font-size: 15px; }
  .mfeed__all { margin-top: 4px; }

  /* то, что на телефоне дублирует ленту: бегущая строка, модели, разделы, «Покупайте уверенно» */
  .m-hide, .lift > .section-head, .lift > .ticker, .models-row { display: none !important; }
  .lift .rating-big { margin-top: 0 !important; padding-top: clamp(40px, 8vw, 64px); }

  /* каталог: шапка и фильтры компактнее и не висят над товарами */
  .cat-hero { padding: 20px 16px; border-radius: 22px; }
  .cat-hero::after { display: none; }
  .cat-hero .h-sans { font-size: 28px; }
  .cat-hero__meta { font-size: 14px; margin-top: 6px; }
  .filters { position: static; padding-block: 10px 6px; }
  .filters .chip { height: 36px; font-size: 14px; }
  .filters__row2 { margin-top: 8px; display: grid; gap: 8px; }
  .filters .chips { margin-inline: -16px; padding-inline: 16px; }
  .filters__opts { flex-wrap: nowrap; justify-content: space-between; }
  .filters__opts .select { flex: 1 1 auto; width: 100%; min-width: 0; }
  .filters__opts .seg { flex: none; }
  .filters__opts .seg button { padding-inline: 10px; font-size: 13.5px; }
  .filters__opts .select { font-size: 14px; padding-right: 30px; background-position: right 12px center; }
  /* поиск в каталоге срабатывает по мере ввода, отдельная кнопка «Найти» на телефоне не нужна */
  .cat-hero .search > .btn { display: none; }
  .cat-hero .search { margin-top: 14px; }
  .cat-hero__meta { display: none; }
  .cat-hero .crumbs { font-size: 13px; }
  .notice { padding: 10px 12px; font-size: 13px; gap: 8px; }
  .notice svg { width: 16px; height: 16px; }

  /* товар: кнопки «Позвонить» и «В корзину» закреплены внизу */
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--line);
  }
  .mbar .btn { height: 50px; font-size: 16px; justify-content: center; }
  body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .buy__actions [data-add], .buy__phone { display: none; }
  .buy { gap: 14px; }
  .buy h1 { font-size: 22px; }
  .buy__price { font-size: 28px; }
  .gallery__main { border-radius: 20px; }
  .gallery__thumbs button { width: 60px; height: 60px; }
  .buy__contact .msgs--sm .msg { padding: 0 12px; font-size: 13px; height: 36px; }

  /* низ каждой страницы: карта ниже, подвал без длинных списков ссылок (они есть в меню) */
  .cband__map { min-height: 240px; }
  .footer-grid > :not(.footer-brand) { display: none; }
  .footer-bottom { margin-top: 24px; }
  .site-footer { padding-block: 36px 24px; }
}

/* главная на телефоне: шапка короче, чтобы лента объявлений начиналась уже на первом экране */
@media (max-width: 560px) {
  .hero__stage { padding: 22px 18px 0; margin-bottom: 52px; border-radius: 22px; }
  .hero h1 { font-size: 30px; line-height: 1.08; }
  .hero__sub { font-size: 15px; margin-top: 10px; }
  .hero .search { margin-top: 16px; gap: 8px; }
  .hero .rating-line { margin-top: 14px; }
  .hero__car { width: 74%; margin: 0 auto -34px; }
  /* стрелка под шапкой меньше и не заезжает на чипы моделей */
  .hero__stage::after { width: 72px; height: 72px; bottom: -24px; border-radius: 14px; }
  .mfeed { padding-top: 44px; }
}


/* «Как купить» на телефоне: все три этапа на одном экране — фото слева, номер и короткий текст справа */
@media (max-width: 560px) {
  .steps {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 10px;
    overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none;
  }
  .step { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 14px; align-items: start; }
  .step__img { grid-row: 1 / 4; aspect-ratio: 1; border-radius: 16px; }
  .step__chip { display: none; }
  .step__num { width: 26px; height: 26px; font-size: 13px; margin: 6px 0 6px; }
  .step h3 { font-size: 17px; }
  .step p { margin-top: 2px; font-size: 14px; line-height: 1.4; }
  .section-head:has(+ .steps) .lead { display: none; }
}
