/* ==========================================================================
   «Дрова От Производителя» — дизайн-система
   01. Токены, сброс, типографика, кнопки, поля, утилиты
   ========================================================================== */

:root {
  /* Базовая палитра «Тёплая логистика» */
  --bg: #F6F3ED;
  --bg-alt: #EFEAE0;
  --ink: #1E2522;
  --ink-soft: #3D4741;
  --ink-mute: #6B756E;
  --accent: #B86535;
  --accent-hover: #C77443;
  --accent-soft: #EAD7C6;
  --deep: #2F6451;
  --deep-hover: #3A7662;
  --sand: #E6D7C4;
  --line: #E9ECE8;
  --white: #FFFFFF;
  --danger: #B5342F;
  --ok: #2F6451;
  --whatsapp: #2AAE4A;
  --amber: #E8A04A;

  /* Акцент поддомена переопределяется из PHP (--dd-accent / --dd-deep) */
  --dd-accent: var(--accent);
  --dd-deep: var(--deep);

  /* Типографика */
  --font-head: "Manrope", "Golos Text", "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Радиусы и тени */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 3px rgba(30, 37, 34, .07), 0 4px 14px rgba(30, 37, 34, .05);
  --shadow-md: 0 2px 8px rgba(30, 37, 34, .08), 0 12px 30px rgba(30, 37, 34, .09);
  --shadow-lg: 0 4px 14px rgba(30, 37, 34, .10), 0 24px 60px rgba(30, 37, 34, .14);
  --shadow-accent: 0 8px 26px rgba(184, 101, 53, .32);

  /* Ритм */
  --section-y: clamp(56px, 8vw, 110px);
  --gutter: clamp(16px, 2.4vw, 24px);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html, body { max-width: 100vw; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--dd-deep); text-decoration: none; transition: color .18s ease, border-color .18s ease; }
a:hover { color: var(--dd-accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.16;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  font-weight: 800;
}
h1 { font-size: clamp(28px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { margin: 0 0 1em; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--dd-accent) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--dd-accent); color: #fff; }

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

.icon { width: 1.15em; height: 1.15em; vertical-align: -.18em; stroke-linecap: round; }
.icon--xl { width: 56px; height: 56px; }

.muted { color: var(--ink-mute); }
.small { font-size: 13px; color: var(--ink-mute); }

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 920px; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #EDEAE3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 780px; margin-bottom: clamp(30px, 4vw, 52px); }
.section__head p { color: var(--ink-mute); font-size: 17px; margin: 0; }
.section--dark .section__head p { color: #B9BDB4; }
.section__head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dd-accent); margin-bottom: 14px;
}
.section__kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--dd-accent); border-radius: 2px;
}
.section__kicker--light { color: var(--amber); }
.section__kicker--light::before { background: var(--amber); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 700; font-size: 15.5px; line-height: 1.25;
  border: 2px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { flex: none; }

.btn-primary {
  background: linear-gradient(160deg, var(--dd-accent), color-mix(in srgb, var(--dd-accent) 75%, #7a3c14));
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(184, 101, 53, .42); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #0f1513; transform: translateY(-2px); }

.btn-outline {
  background: transparent; border-color: rgba(255,255,255,.7); color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--ink); }

.btn-max {
  background: linear-gradient(135deg, #6D3BEF, #9B4DFF 60%, #C86BFA);
  color: #fff;
  position: relative; overflow: hidden;
}
.btn-max:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(109, 59, 239, .4); }
.btn-max::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 60px at 20% 0%, rgba(255,255,255,.24), transparent);
  opacity: 0; transition: opacity .2s;
}
.btn-max:hover::after { opacity: 1; }

.btn-link {
  padding: 6px 0; border-radius: 0;
  color: var(--dd-deep); font-weight: 700;
  border-bottom: 2px solid transparent;
}
.btn-link .icon { transition: transform .18s ease; }
.btn-link:hover { color: var(--dd-accent); }
.btn-link:hover .icon { transform: translateX(4px); }

.btn--lg { padding: 17px 34px; font-size: 17px; border-radius: 16px; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn.is-loading { color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1;
}
.badge--hit { background: var(--dd-accent); color: #fff; box-shadow: 0 4px 14px rgba(184,101,53,.4); }
.badge--tag { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(4px); }
.badge--sale { background: var(--danger); color: #fff; }
.badge--ok { background: var(--dd-deep); color: #fff; }

/* ---------- Поля форм ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field label small { color: var(--ink-mute); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfd6d0; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--dd-deep); outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dd-deep) 14%, transparent);
}
.field.is-error input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(181,52,47,.12); }
.field.is-ok input { border-color: var(--ok); }
.form-agree { font-size: 12.5px; color: var(--ink-mute); margin: 10px 0 0; line-height: 1.5; }
.form-agree a { text-decoration: underline; }

.bigform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field--wide { grid-column: 1 / -1; }
.bigform__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bigform__foot .form-agree { margin: 0; max-width: 380px; }

/* ---------- Чипы ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--dd-deep); color: var(--dd-deep); transform: translateY(-1px); }
.chip.is-active {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ---------- Точки статуса ---------- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot--ok { background: #35a06b; box-shadow: 0 0 0 3px rgba(53,160,107,.18); animation: pulse 2.2s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53,160,107,.18); }
  50% { box-shadow: 0 0 0 6px rgba(53,160,107,.06); }
}

.pulse-dot {
  width: 11px; height: 11px; border-radius: 50%; background: #35a06b; flex: none;
  box-shadow: 0 0 0 0 rgba(53,160,107,.5);
  animation: pulseBig 1.8s ease-out infinite;
}
@keyframes pulseBig {
  0% { box-shadow: 0 0 0 0 rgba(53,160,107,.5); }
  70% { box-shadow: 0 0 0 9px rgba(53,160,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,160,107,0); }
}

/* ---------- Списки с галочками ---------- */
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--dd-deep) 14%, #fff) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5l4 4L18 8.5" fill="none" stroke="%232F6451" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/11px no-repeat;
}

.num-list { counter-reset: num; }
.num-list li { counter-increment: num; position: relative; padding-left: 44px; margin-bottom: 14px; }
.num-list li::before {
  content: counter(num); position: absolute; left: 0; top: -1px;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: var(--amber);
  font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 20px 0 0; display: flex; justify-content: center; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-mute); }
.breadcrumbs li + li::before { content: "·"; color: #B6BDB6; }
.breadcrumbs a { color: var(--ink-mute); border-bottom: 1px dashed transparent; }
.breadcrumbs a:hover { color: var(--dd-accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Таблицы ---------- */
.spec-table { width: 100%; font-size: 15px; }
.spec-table th, .spec-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec-table th { font-weight: 600; color: var(--ink-mute); width: 40%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:hover td, .spec-table tr:hover th { background: #FBF9F4; }

/* ---------- Вкладки ---------- */
.tabs__nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 2px solid var(--line); margin-bottom: 28px;
}
.tabs__tab {
  padding: 13px 20px; border-radius: 12px 12px 0 0;
  font-weight: 700; font-size: 15px; color: var(--ink-mute);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .18s;
}
.tabs__tab:hover { color: var(--dd-accent); background: #ffffff80; }
.tabs__tab.is-active { color: var(--dd-accent); border-bottom-color: var(--dd-accent); background: #fff; }
.tabs__pane { display: none; animation: fadeUp .35s ease; }
.tabs__pane.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Хотелки-счётчики ---------- */
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty__btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--white); border: 2px solid var(--line);
  display: grid; place-items: center;
  transition: all .16s;
}
.qty__btn:hover { border-color: var(--dd-deep); color: var(--dd-deep); }
.qty__input {
  width: 76px; text-align: center;
  padding: 9px 8px; border: 2px solid var(--line); border-radius: 12px;
  font-weight: 700; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty__input::-webkit-inner-spin-button { display: none; }
.qty__unit { color: var(--ink-mute); font-size: 14px; margin-left: 4px; }

/* ---------- Тосты ---------- */
.toast-zone {
  position: fixed; z-index: 1000;
  right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(380px, calc(100vw - 36px));
}
.toast {
  background: var(--ink); color: #fff;
  border-radius: 16px; padding: 15px 18px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px); opacity: 0;
  animation: toastIn .34s cubic-bezier(.2,.9,.3,1.2) forwards;
}
.toast.is-out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(12px); opacity: 0; } }
.toast__icon {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  color: var(--amber);
}
.toast__body { flex: 1; font-size: 14px; line-height: 1.4; }
.toast__body b { display: block; font-size: 14.5px; }
.toast__act { color: var(--amber); font-weight: 700; white-space: nowrap; }

/* ---------- Reveal-анимации ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ==========================================================================
   02. Каркас: топбар, шапка, навигация, дроверы, модалка, подвал, stickybar
   ========================================================================== */

/* ---------- Топбар ---------- */
.topbar {
  background: var(--ink); color: #C9CFC7;
  font-size: 13.5px;
  position: relative; z-index: 60;
}
.topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__badge { display: inline-flex; align-items: center; gap: 7px; color: var(--amber); font-weight: 700; }
.topbar__worktime { display: inline-flex; align-items: center; gap: 7px; }
.topbar__link { color: #C9CFC7; font-weight: 600; }
.topbar__link:hover { color: #fff; }
.topbar__phone { color: #fff; font-weight: 800; letter-spacing: .02em; }
.topbar__phone:hover { color: var(--amber); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 55;
  background: rgba(246, 243, 237, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30,37,34,.08);
  transition: box-shadow .25s ease;
}
.header.is-stuck { box-shadow: var(--shadow-md); }
.header__row {
  display: flex; align-items: center; gap: 22px;
  padding-block: 12px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.logo__mark {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(30,37,34,.25);
  transition: transform .25s ease;
}
.logo:hover .logo__mark { transform: rotate(-4deg) scale(1.05); }
.logo__svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.12; }
.logo__brand {
  font-family: var(--font-head); font-weight: 800; font-size: 17.5px; letter-spacing: -.02em;
  color: var(--ink); white-space: nowrap;
}
.logo__accent { color: var(--dd-accent); }
.logo__slogan { font-size: 11px; color: var(--ink-mute); letter-spacing: .06em; }

.city-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--white); border: 1.5px solid var(--line);
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all .18s;
  flex: none;
}
.city-btn:hover { border-color: var(--dd-deep); transform: translateY(-1px); }
.city-btn .icon:first-child { color: var(--dd-accent); }
.city-btn__chev { transition: transform .2s; }
.city-btn[aria-expanded="true"] .city-btn__chev { transform: rotate(180deg); }

.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav__link {
  padding: 10px 14px; border-radius: 11px;
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  position: relative;
  transition: all .18s;
}
.mainnav__link:hover { color: var(--dd-accent); background: #fff; }
.mainnav__link.is-active { color: var(--dd-accent); }
.mainnav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 3px; border-radius: 2px; background: var(--dd-accent);
}

.header__contacts { display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 800; font-size: 16.5px; color: var(--ink);
  white-space: nowrap;
}
.header__phone .icon { color: var(--dd-deep); }
.header__phone:hover { color: var(--dd-accent); }
.header__max {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #6D3BEF, #9B4DFF); color: #fff;
  display: grid; place-items: center;
  transition: transform .18s, box-shadow .18s;
}
.header__max:hover { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 8px 20px rgba(109,59,239,.45); color: #fff; }

.cart-btn {
  position: relative;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; flex: none;
  transition: transform .18s, box-shadow .2s;
}
.cart-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cart-btn__count {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: var(--dd-accent); color: #fff;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  transition: transform .2s;
}
.cart-btn__count.is-zero { transform: scale(0); }
.cart-btn.bump .cart-btn__count { animation: bump .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes bump { 40% { transform: scale(1.45); } }

.burger {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--white); border: 1.5px solid var(--line);
  display: none; place-items: center; gap: 5px; flex-direction: column;
}
.burger span {
  display: block; width: 20px; height: 2.4px; border-radius: 2px;
  background: var(--ink); transition: all .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20,24,22,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  overscroll-behavior: contain; touch-action: none;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(40px); transition: transform .3s cubic-bezier(.2,.9,.3,1);
  display: flex; flex-direction: column;
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
}
.mobile-menu__close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.mobile-menu__nav { flex: 1; overflow: auto; padding: 14px 16px; }
.mobile-menu__nav a {
  display: flex; padding: 13px 14px; border-radius: 12px;
  font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.mobile-menu__nav a:hover { background: #fff; color: var(--dd-accent); }
.mobile-menu__foot { padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); }

/* ---------- Дровер городов ---------- */
.city-drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,24,22,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.city-drawer.is-open { opacity: 1; pointer-events: auto; }
.city-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(520px, 100vw);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(-40px); transition: transform .3s cubic-bezier(.2,.9,.3,1);
  display: flex; flex-direction: column;
}
.city-drawer.is-open .city-drawer__panel { transform: none; }
.city-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 12px;
}
.city-drawer__head h2 { margin: 0; font-size: 24px; }
.city-drawer__close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.city-drawer__search {
  margin: 6px 24px 12px; position: relative;
}
.city-drawer__search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.city-drawer__search input {
  width: 100%; padding: 14px 14px 14px 44px;
  border: 2px solid var(--line); border-radius: 13px;
  background: #fff; font-size: 15.5px;
}
.city-drawer__search input:focus { border-color: var(--dd-deep); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--dd-deep) 12%, transparent); }
.city-drawer__current { padding: 0 24px 12px; font-size: 13.5px; color: var(--ink-mute); }
.city-drawer__list { flex: 1; overflow: auto; padding: 0 14px 20px; scrollbar-width: thin; }
.city-drawer__group-title {
  position: sticky; top: 0; z-index: 2;
  padding: 12px 12px 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dd-accent); background: var(--bg);
}
.city-drawer__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--ink);
  transition: background .15s;
}
.city-drawer__item span { font-weight: 700; font-size: 15.5px; }
.city-drawer__item small { color: var(--ink-mute); font-size: 12px; text-align: right; }
.city-drawer__item:hover { background: #fff; }
.city-drawer__item.is-active { background: var(--ink); }
.city-drawer__item.is-active span, .city-drawer__item.is-active small { color: #fff; }
.city-drawer__item.is-hidden { display: none; }
.city-drawer__empty { padding: 30px 24px; text-align: center; color: var(--ink-mute); }

/* ---------- Модалка ---------- */
.modal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(20,24,22,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 18px;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
  overflow: auto;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative;
  width: min(480px, 100%);
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98); transition: transform .28s cubic-bezier(.2,.9,.3,1.15);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line);
  display: grid; place-items: center;
}
.modal__close:hover { border-color: var(--ink); }
.modal__subtitle { color: var(--ink-mute); margin-top: -6px; }
.modal__success { text-align: center; padding: 16px 4px 6px; }
.modal__success-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 24px; background: color-mix(in srgb, var(--dd-deep) 12%, #fff);
  color: var(--dd-deep);
  display: grid; place-items: center;
}
.modal__success-icon .icon { width: 34px; height: 34px; }

/* ---------- Подвал ---------- */
.footer {
  background: var(--ink); color: #B9BDB4;
  padding: clamp(44px, 6vw, 72px) 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
}
.footer .logo__brand, .footer .logo__slogan { color: #fff; }
.footer .logo--footer { margin-bottom: 16px; }
.footer__about { font-size: 14.5px; line-height: 1.7; }
.footer__phone { display: block; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: #fff; margin-bottom: 4px; }
.footer__phone:hover { color: var(--amber); }
.footer__email { color: var(--amber); font-weight: 600; }
.footer__addr { font-size: 13.5px; margin-top: 12px; }
.footer__col .btn { margin-top: 16px; }
.footer__title { font-family: var(--font-head); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { color: #B9BDB4; font-size: 14.5px; }
.footer__list a:hover { color: var(--amber); }
.footer__cities { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; }
.footer__cities-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__cities-row a { color: #9FA69C; font-size: 13.5px; }
.footer__cities-row a:hover { color: var(--amber); }
.footer__cities-all { font-weight: 700; color: #fff !important; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #9FA69C; text-decoration: underline; }

/* ---------- Липкая нижняя панель (мобайл) ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  grid-template-columns: 1fr 1.4fr 56px; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(30,37,34,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stickybar a, .stickybar button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 10px; border-radius: 13px;
  font-weight: 800; font-size: 14px; color: #fff;
}
.stickybar__call { background: rgba(255,255,255,.13); }
.stickybar__quiz { background: linear-gradient(160deg, var(--dd-accent), color-mix(in srgb, var(--dd-accent) 75%, #7a3c14)); }
.stickybar__cart { background: rgba(255,255,255,.13); position: relative; }
.stickybar__count {
  position: absolute; top: 2px; right: 6px;
  min-width: 19px; height: 19px; border-radius: 99px;
  background: var(--dd-accent); font-size: 11px;
  display: grid; place-items: center;
}

/* ---------- Мобильный логотип: герб города вместо марки бренда ---------- */
.logo__crest { display: none; }
@media (max-width: 640px) {
  .logo__mark { display: none; }
  .logo__crest {
    display: block; width: 38px; height: 38px; flex: none;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(30,37,34,.25));
  }
}

/* ---------- Кнопка меню — «три точки» ---------- */
.burger { gap: 3.5px; }
.burger span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  display: block;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg) scale(1.15); border-radius: 2px; height: 3px; width: 18px; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg) scale(1.15); border-radius: 2px; height: 3px; width: 18px; }
.burger[aria-expanded="true"] span { border-radius: 3px; }
.burger[aria-expanded="true"] { flex-direction: column; }
/* ==========================================================================
   03. Главная страница: hero, акции, подбор, квиз, витрина, рейтинг, прочее
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  color: #fff;
  overflow: clip;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.04); animation: heroDrift 22s ease-in-out infinite alternate; }
@keyframes heroDrift { to { transform: scale(1.1) translateX(-1.4%); } }
.hero__embers {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; mix-blend-mode: screen;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(78deg, rgba(16,20,18,.88) 0%, rgba(16,20,18,.55) 44%, rgba(16,20,18,.18) 72%),
    linear-gradient(0deg, rgba(16,20,18,.72) 0%, transparent 34%);
}
.hero__row {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 99px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 600;
  color: #F4E7D3;
  margin-bottom: 22px;
}
.hero__chip .icon { color: var(--amber); }
.hero__title {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.06;
  margin: 0 0 20px;
  max-width: 13ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #F3B25C, #E07F3E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: #E9E2D4; max-width: 52ch;
  margin-bottom: 30px;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero__metrics {
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(14px, 2.4vw, 34px);
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 24px;
}
.hero__metrics b {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(19px, 2.2vw, 27px);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero__metrics span { font-size: 13px; color: #CFC7B6; line-height: 1.35; display: block; max-width: 15ch; }

/* Блок "Сейчас на складе" */
.hero__stock {
  background: rgba(246,243,237,.96);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: stockFloat 7s ease-in-out infinite;
}
@keyframes stockFloat { 50% { transform: translateY(-9px); } }
.hero__stock-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.hero__stock-head b { font-family: var(--font-head); font-size: 17px; display: block; }
.hero__stock-head small { color: var(--ink-mute); font-size: 12px; }
.hero__stock-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px;
  border-radius: 14px;
  transition: background .18s;
}
.hero__stock-list li:hover { background: #fff; }
.hero__stock-list li + li { border-top: 1px solid rgba(30,37,34,.07); }
.hero__stock-list img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.hero__stock-list div { flex: 1; min-width: 0; }
.hero__stock-list a { font-weight: 700; font-size: 14.5px; color: var(--ink); display: block; }
.hero__stock-list a:hover { color: var(--dd-accent); }
.hero__stock-list span { font-size: 12px; color: var(--ink-mute); }
.hero__stock-list b { font-size: 14.5px; white-space: nowrap; color: var(--dd-deep); font-variant-numeric: tabular-nums; }
.hero__stock-all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 13px 16px;
  border-radius: 14px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14.5px;
  transition: all .18s;
}
.hero__stock-all:hover { background: var(--dd-accent); color: #fff; transform: translateY(-2px); }

/* ---------- Акционные плашки ---------- */
.promos { padding-block: clamp(26px, 4vw, 44px); margin-top: calc(var(--section-y) * -.45); position: relative; z-index: 4; }
.promos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo {
  display: flex; flex-direction: column; gap: 9px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--dd-accent);
  color: var(--ink);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.promo::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dd-accent) 16%, transparent), transparent 70%);
}
.promo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.promo__icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: color-mix(in srgb, var(--dd-accent) 12%, #fff);
  color: var(--dd-accent);
  display: grid; place-items: center;
}
.promo__icon--big { width: 58px; height: 58px; border-radius: 16px; font-size: 1.4em; margin-bottom: 12px; }
.promo b { font-family: var(--font-head); font-size: 17.5px; }
.promo span:not(.promo__icon) { color: var(--ink-mute); font-size: 14px; line-height: 1.5; }

/* ---------- Подбор по задаче ---------- */
.tasks__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.task {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  min-height: 240px;
  display: flex; align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.task:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.task__img { position: absolute; inset: 0; z-index: -1; }
.task__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.task:hover .task__img img { transform: scale(1.07); }
.task::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(8deg, rgba(16,20,18,.88) 8%, rgba(16,20,18,.22) 55%, transparent);
}
.task__body { position: relative; z-index: 1; padding: 20px 22px; color: #fff; width: 100%; }
.task__body b { font-family: var(--font-head); font-size: 20px; display: block; margin-bottom: 3px; }
.task__body span { font-size: 13.5px; color: #D6D0C2; display: block; margin-bottom: 8px; }
.task__body em {
  font-style: normal; font-weight: 800; font-size: 14.5px;
  color: var(--amber); font-variant-numeric: tabular-nums;
}

/* ---------- Калькулятор / квиз ---------- */
.quiz-section { background: linear-gradient(135deg, var(--ink) 0%, #24312B 100%); color: #fff; }
.quiz {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 52px);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px);
  backdrop-filter: blur(6px);
}
.quiz__head h2 { color: #fff; }
.quiz__head p { color: #B9C4BA; }
.quiz__progress { position: relative; margin-bottom: 30px; }
.quiz__progress-bar {
  position: absolute; top: 17px; left: 0; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--amber), var(--dd-accent));
  transition: width .45s cubic-bezier(.2,.8,.3,1);
  z-index: 1;
}
.quiz__steps-labels {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; z-index: 0;
}
.quiz__steps-labels::before {
  content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 4px;
  background: rgba(255,255,255,.12); border-radius: 4px;
}
.quiz__steps-labels li { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: #8D9589; }
.quiz__steps-labels i {
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; font-style: normal; font-weight: 800;
  transition: all .3s;
}
.quiz__steps-labels li.is-active { color: #fff; }
.quiz__steps-labels li.is-active i {
  background: var(--dd-accent); border-color: var(--dd-accent);
  box-shadow: 0 6px 18px rgba(184,101,53,.45);
}
.quiz__steps-labels li.is-done i { background: var(--dd-deep); border-color: var(--dd-deep); color: #fff; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: fadeUp .4s ease; }
.quiz__step h3 { color: #fff; margin-bottom: 20px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz__options--compact { grid-template-columns: 1fr; }
.quiz__opt {
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  color: #fff; text-align: left;
  transition: all .2s;
}
.quiz__opt .icon { font-size: 26px; color: var(--amber); margin-bottom: 4px; }
.quiz__opt b { font-size: 16.5px; }
.quiz__opt span { font-size: 13px; color: #B9C4BA; }
.quiz__opt:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.quiz__opt.is-active, .quiz__opt--row.is-active {
  background: color-mix(in srgb, var(--dd-accent) 22%, transparent);
  border-color: var(--dd-accent);
  box-shadow: 0 8px 24px rgba(184,101,53,.25);
}
.quiz__opt--row { flex-direction: row; align-items: center; gap: 14px; }
.quiz__opt--row span { margin-left: auto; }

.quiz__volume { display: grid; gap: 22px; margin-bottom: 20px; }
.quiz__field label { display: block; font-weight: 700; margin-bottom: 10px; color: #fff; }
.quiz__field label small { color: #8D9589; font-weight: 500; }
.quiz__field output { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--amber); margin-left: 10px; }
.quiz__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz__chips .chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.quiz__chips .chip.is-active { background: var(--dd-accent); border-color: var(--dd-accent); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 8px;
  background: rgba(255,255,255,.14);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); border: 3px solid #fff;
  cursor: pointer;
}

.quiz__estimate {
  display: flex; align-items: baseline; gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--r-md);
  padding: 16px 20px; margin-bottom: 22px;
}
.quiz__estimate b { font-family: var(--font-head); font-size: 26px; color: var(--amber); font-variant-numeric: tabular-nums; }
.quiz__nav { display: flex; gap: 12px; margin-top: 8px; }

.quiz__result {
  display: grid; gap: 10px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 20px;
  font-size: 15px;
}
.quiz__result-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,.12); padding-bottom: 8px; }
.quiz__result-row b { color: var(--amber); font-variant-numeric: tabular-nums; }
.quiz__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.quiz__form .field label { color: #fff; }
.quiz__success { text-align: center; padding-block: 20px; }
.quiz__success h3 { color: #fff; }
.quiz__success p { color: #B9C4BA; }
.quiz__success .modal__success-icon { background: rgba(255,255,255,.1); color: #6FD398; }

/* ---------- Сетка товаров ---------- */
.pgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pgrid--related { grid-template-columns: repeat(4, 1fr); }

.pcard {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,37,34,.05);
  display: flex; flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__media {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(20,24,22,.82); color: #fff;
  backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(8px);
  transition: all .22s ease;
  cursor: pointer;
}
.pcard:hover .pcard__quick { opacity: 1; transform: none; }
.pcard__quick:hover { background: var(--dd-accent); }

.pcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__stock { font-size: 12.5px; color: var(--ink-mute); display: flex; align-items: center; }
.pcard__title { margin: 0; font-size: 18px; line-height: 1.3; }
.pcard__title a { color: var(--ink); }
.pcard__title a:hover { color: var(--dd-accent); }
.pcard__specs { display: grid; gap: 5px; font-size: 13px; }
.pcard__specs li { display: flex; justify-content: space-between; gap: 10px; }
.pcard__specs span { color: var(--ink-mute); }
.pcard__specs b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard__score { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-mute); }
.pcard__bar {
  flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden;
}
.pcard__bar i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #E8A04A, var(--dd-accent));
}
.pcard__score b { color: var(--ink); font-variant-numeric: tabular-nums; }

.pcard__price-row { margin-top: auto; }
.pcard__price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pcard__price b { font-family: var(--font-head); font-size: 23px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pcard__price span { color: var(--ink-mute); font-size: 13px; }
.pcard__price s { color: #B6BDB6; font-size: 14px; }
.pcard__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.pcard__buy { justify-content: center; }
.pcard__fast { white-space: nowrap; }

/* ---------- Рейтинг пород ---------- */
.rating__table-wrap {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.rating__table { width: 100%; min-width: 820px; }
.rating__table th {
  text-align: left; padding: 16px 18px;
  font-family: var(--font-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.rating__table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rating__table tbody tr { transition: background .15s; }
.rating__table tbody tr:hover { background: #FBF8F2; }
.rating__table tbody tr:last-child td { border-bottom: 0; }
.rating__table td b { font-family: var(--font-head); font-size: 16px; }
.rating__meter {
  display: inline-block; width: 96px; height: 8px; border-radius: 8px;
  background: var(--line); overflow: hidden; vertical-align: middle; margin-right: 8px;
}
.rating__meter i {
  display: block; height: 100%; width: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--dd-deep), var(--amber), var(--dd-accent));
  transition: width .9s cubic-bezier(.2,.8,.3,1) .15s;
}
.rating__val { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.rating__price { font-weight: 800; white-space: nowrap; color: var(--dd-deep); font-variant-numeric: tabular-nums; }
.rating__note { font-size: 13px; color: var(--ink-mute); margin-top: 14px; }

/* ---------- Каталог по условиям ---------- */
.conds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cond {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border-radius: var(--r-lg); padding: 24px;
  color: var(--ink);
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.cond:hover { border-color: var(--dd-accent); transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }
.cond .icon { font-size: 30px; color: var(--dd-accent); }
.cond b { font-family: var(--font-head); font-size: 17px; }
.cond span { font-size: 13.5px; color: var(--ink-mute); }

/* ---------- Контроль качества ---------- */
.quality__row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.quality__step {
  background: #fff; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
}
.quality__step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quality__photo { position: relative; aspect-ratio: 4/3; }
.quality__photo img { width: 100%; height: 100%; object-fit: cover; }
.quality__photo span {
  position: absolute; top: 10px; left: 10px;
  background: rgba(20,24,22,.8); color: var(--amber);
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  padding: 4px 10px; border-radius: 8px;
  backdrop-filter: blur(4px);
}
.quality__step b { display: block; padding: 13px 14px 4px; font-size: 14.5px; }
.quality__step p { padding: 0 14px 14px; font-size: 12.5px; color: var(--ink-mute); margin: 0; line-height: 1.5; }

/* ---------- Прайс услуг ---------- */
.sprice__wrap {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.sprice__table { width: 100%; min-width: 760px; }
.sprice__table th {
  text-align: left; padding: 15px 18px;
  font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-mute); border-bottom: 2px solid var(--line);
}
.sprice__table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sprice__table tbody tr { transition: background .15s; }
.sprice__table tbody tr:hover { background: #FBF8F2; }
.sprice__table tbody tr:last-child td { border-bottom: 0; }
.sprice__table td a { font-weight: 700; color: var(--ink); }
.sprice__table td a:hover { color: var(--dd-accent); }
.sprice__val { font-weight: 800; white-space: nowrap; color: var(--dd-deep); font-variant-numeric: tabular-nums; }
.sprice__cond { color: var(--ink-mute); font-size: 13.5px; }

/* ---------- Доставка (главная) ---------- */
.delivery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.delivery__list { display: grid; gap: 16px; margin: 26px 0 28px; }
.delivery__list li { display: flex; gap: 14px; align-items: flex-start; }
.delivery__list .icon {
  font-size: 40px; color: var(--dd-deep);
  background: color-mix(in srgb, var(--dd-deep) 10%, #fff);
  padding: 9px; border-radius: 13px;
}
.delivery__list b { display: block; }
.delivery__list span { color: var(--ink-mute); font-size: 14px; }
.delivery__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.delivery__map { display: flex; flex-direction: column; gap: 18px; }
.delivery__zone {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.delivery__zone img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.delivery__zone-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(246,243,237,.94);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
}
.delivery__zone-badge b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dd-accent); }
.delivery__zone-badge span { font-weight: 700; font-size: 15px; }
.delivery__cities { background: #fff; border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.delivery__cities-head { font-weight: 700; margin-bottom: 10px; font-size: 14.5px; }
.delivery__cities-row { display: flex; flex-wrap: wrap; gap: 8px; }
.delivery__cities-row a {
  padding: 7px 13px; border-radius: 99px;
  background: var(--bg); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: all .16s;
}
.delivery__cities-row a:hover { background: var(--ink); color: #fff; }
.delivery__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; }

/* ---------- 10 фишек ---------- */
.features__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-md);
  padding: 20px 18px;
  transition: all .22s;
}
.feature:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); border-color: rgba(232,160,74,.4); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(232,160,74,.22), rgba(184,101,53,.22));
  color: var(--amber);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature b { display: block; color: #fff; font-family: var(--font-head); font-size: 15.5px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: #ADB6AC; margin: 0; line-height: 1.55; }

/* ---------- Работы ---------- */
.works__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work {
  position: relative; margin: 0;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--ink);
  transition: transform .24s, box-shadow .24s;
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.05); }
.work figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 14px 13px;
  background: linear-gradient(0deg, rgba(16,20,18,.92), transparent);
  color: #fff;
}
.work figcaption b { display: block; font-size: 15px; }
.work figcaption span { display: block; font-size: 12.5px; color: #D6D0C2; }
.work figcaption small { font-size: 11.5px; color: #A9A294; }
.works__note { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color .2s;
}
.faq__item.is-open { border-color: color-mix(in srgb, var(--dd-accent) 40%, transparent); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.faq__q:hover { color: var(--dd-accent); }
.faq__chev { flex: none; transition: transform .25s; color: var(--dd-accent); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 22px 20px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- SEO текст ---------- */
.seotext__body {
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  font-size: 15.5px; color: var(--ink-soft); line-height: 1.75;
}

/* ---------- Финальный CTA ---------- */
.cta-final { padding-top: 0; }
.cta-final__box {
  position: relative;
  background:
    radial-gradient(1200px 400px at 15% 0%, rgba(232,160,74,.16), transparent),
    linear-gradient(140deg, var(--ink), #26332C);
  border-radius: var(--r-xl);
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(22px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-final__box::after {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,74,.2), transparent 70%);
}
.cta-final__text h2 { color: #fff; }
.cta-final__text p { color: #B9C4BA; margin: 0; }
.cta-final__form .field label { color: #fff; }
.cta-final__form .field input { background: rgba(255,255,255,.96); }
.cta-final__form .form-agree { color: #8D9589; }
.cta-final__form .form-agree a { color: #C9CFC7; }
/* ==========================================================================
   04. Внутренние страницы: каталог, карточка, услуги, корзина, акции, прочее
   ========================================================================== */

/* ---------- Каталог: фильтры ---------- */
.catalog__bar {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: 16px;
  position: sticky; top: 78px; z-index: 30;
}
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fgroup__label { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); margin-right: 4px; }
.catalog__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.catalog__sort select {
  padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-weight: 600;
}
.catalog__result {
  display: flex; align-items: center; gap: 18px;
  margin: 4px 2px 18px; font-size: 14px; color: var(--ink-mute);
}
.catalog__empty {
  text-align: center; padding: 60px 20px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.catalog__empty .icon { font-size: 44px; color: var(--ink-mute); margin: 0 auto 12px; }
.catalog__seo {
  margin-top: clamp(36px, 5vw, 60px);
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft); line-height: 1.75;
}
.pcard.is-filtered-out { display: none; }

/* ---------- Карточка товара ---------- */
.product__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(22px, 3.4vw, 48px);
  margin-bottom: clamp(30px, 4vw, 54px);
}
.product__main-img {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3; background: var(--sand);
}
.product__main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product__main-img:hover img { transform: scale(1.04); }
.product__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumb {
  width: 96px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 2.5px solid transparent; padding: 0;
  opacity: .7; transition: all .18s;
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb:hover { opacity: 1; }
.product__thumb.is-active { border-color: var(--dd-accent); opacity: 1; box-shadow: var(--shadow-sm); }

.product__info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.product__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: var(--ink-mute); }
.product__stock { display: inline-flex; align-items: center; font-weight: 600; }
.product__rating-mini { display: inline-flex; align-items: center; gap: 6px; }
.product__rating-mini .icon { color: var(--dd-accent); }

.product__pricebox {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: grid; gap: 16px;
  margin-bottom: 16px;
  border-top: 4px solid var(--dd-accent);
}
.product__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product__price b { font-family: var(--font-head); font-size: 36px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.product__price > span { color: var(--ink-mute); }
.product__price s { color: #B6BDB6; font-size: 19px; }
.product__save {
  background: color-mix(in srgb, var(--danger) 10%, #fff); color: var(--danger);
  font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px;
}
.product__total {
  font-size: 15px; color: var(--ink-mute);
  border-top: 1px dashed var(--line); padding-top: 13px;
}
.product__total b { color: var(--ink); font-size: 21px; font-variant-numeric: tabular-nums; }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product__assure { display: grid; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.product__assure .icon { color: var(--dd-deep); margin-right: 6px; }

.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; margin-top: 22px; }
.score { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.score span:first-child { min-width: 150px; color: var(--ink-mute); }
.score__bar { flex: 1; height: 9px; border-radius: 9px; background: var(--line); overflow: hidden; }
.score__bar i {
  display: block; height: 100%; width: 0; border-radius: 9px;
  background: linear-gradient(90deg, var(--dd-deep), var(--amber), var(--dd-accent));
  transition: width .9s cubic-bezier(.2,.8,.3,1);
}
.score b { font-variant-numeric: tabular-nums; }

.product__faq, .product__related { margin-top: clamp(34px, 5vw, 58px); }
.product__faq h2, .product__related h2 { margin-bottom: 20px; }

/* ---------- Услуги ---------- */
.scats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sgrid--small { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.scard {
  display: flex; gap: 16px;
  background: #fff; border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30,37,34,.05);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scard__icon {
  width: 50px; height: 50px; flex: none; border-radius: 15px;
  background: color-mix(in srgb, var(--dd-deep) 10%, #fff);
  color: var(--dd-deep);
  display: grid; place-items: center; font-size: 22px;
}
.scard__cat { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--dd-accent); margin-bottom: 5px; }
.scard__title { font-size: 16.5px; margin: 0 0 8px; }
.scard__title a { color: var(--ink); }
.scard__title a:hover { color: var(--dd-accent); }
.scard__short { font-size: 13.5px; color: var(--ink-mute); line-height: 1.55; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.scard__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.scard__price small { color: var(--ink-mute); font-weight: 600; }
.scard__price i { font-style: normal; color: var(--dd-deep); font-size: 14px; }
.scard__actions { display: flex; align-items: center; gap: 10px; }
.sgrid__item.is-filtered-out { display: none; }

.sintent__head { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.sintent__lead { font-size: 17.5px; color: var(--ink-soft); }
.sintent__price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 20px; }
.sintent__price b { font-family: var(--font-head); font-size: 34px; font-variant-numeric: tabular-nums; }
.sintent__price span { color: var(--ink-mute); }
.sintent__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sintent__details, .sintent__local { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 34px); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.sintent__similar { margin-top: 30px; }

/* ---------- Доставка (страница) ---------- */
.delivery-page__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 3.6vw, 44px); align-items: start; }
.delivery-page__photo { margin: 0; position: sticky; top: 96px; }
.delivery-page__photo img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.delivery-page__photo figcaption { font-size: 13px; color: var(--ink-mute); padding-top: 10px; }
.delivery-page__cols { display: grid; gap: 16px; }
.dcard {
  background: #fff; border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.dcard h2 { font-size: 20px; margin-bottom: 12px; }
.dcard > .icon { font-size: 26px; color: var(--dd-deep); margin-bottom: 10px; }
.dcard b { font-family: var(--font-head); font-size: 16.5px; display: block; margin-bottom: 6px; }
.dcard p { font-size: 14.5px; color: var(--ink-mute); margin: 0; }
.delivery-page__cta {
  margin-top: clamp(32px, 5vw, 56px);
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-md);
  border-left: 5px solid var(--dd-accent);
}
.price__notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }

/* ---------- Акции ---------- */
.akcii__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.akcia {
  background: #fff; border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--dd-accent);
  display: flex; flex-direction: column; align-items: flex-start;
}
.akcia p { color: var(--ink-mute); flex: 1; }
.akcia .btn { margin-top: 6px; }

/* ---------- О компании ---------- */
.about__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.about__text { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.about__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 28px 0;
}
.about__stats div {
  background: #fff; border-radius: var(--r-md); padding: 18px 14px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.about__stats b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 30px; color: var(--dd-accent); font-variant-numeric: tabular-nums;
}
.about__stats span { font-size: 12.5px; color: var(--ink-mute); }
.about__media { position: sticky; top: 96px; display: grid; gap: 16px; }
.about__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

/* ---------- Отзывы ---------- */
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review {
  margin: 0; background: #fff; border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  position: relative;
}
.review__quote { color: var(--sand); font-size: 34px; margin-bottom: 8px; }
.review blockquote { margin: 0 0 16px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.review figcaption b { display: block; font-size: 14.5px; }
.review figcaption span { font-size: 12.5px; color: var(--ink-mute); }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.contacts__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Города ---------- */
.cities__search { position: relative; max-width: 560px; margin-bottom: 26px; }
.cities__search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
.cities__search input {
  width: 100%; padding: 15px 16px 15px 46px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px;
}
.cities__search input:focus { border-color: var(--dd-deep); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--dd-deep) 12%, transparent); }
.cities__group { margin-bottom: 30px; }
.cities__group h2 { font-size: 19px; margin-bottom: 14px; }
.cities__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cities__link {
  padding: 8px 14px; border-radius: 99px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: all .16s;
}
.cities__link:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.cities__link.is-hidden { display: none; }
.cities__empty { padding: 26px; background: #fff; border-radius: var(--r-md); text-align: center; }

/* ---------- Корзина ---------- */
.cart-page__grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 24px; align-items: start; }
.cart-page__empty {
  text-align: center; padding: 60px 20px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.cart-page__empty .icon { font-size: 44px; color: var(--ink-mute); margin: 0 auto 12px; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto auto 40px; gap: 16px; align-items: center;
  background: #fff; border-radius: var(--r-md);
  padding: 14px 18px 14px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.cart-item__img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.cart-item__title { font-weight: 700; font-size: 15.5px; line-height: 1.35; display: block; }
.cart-item__unit { font-size: 12.5px; color: var(--ink-mute); }
.cart-item__price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-item__sum { font-family: var(--font-head); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 110px; text-align: right; }
.cart-item__rm { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-mute); transition: all .16s; }
.cart-item__rm:hover { background: color-mix(in srgb, var(--danger) 10%, #fff); color: var(--danger); }
.cart-page__side {
  background: #fff; border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
  display: grid; gap: 12px;
}
.cart-page__totals { display: grid; gap: 9px; font-size: 15px; }
.cart-page__totals > div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.cart-page__grand { font-size: 17px; }
.cart-page__grand b { font-family: var(--font-head); font-size: 22px; color: var(--dd-accent); }

/* ---------- Оформление ---------- */
.checkout__items { background: #fff; border-radius: var(--r-lg); padding: 8px 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.checkout__row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.checkout__row:last-child { border-bottom: 0; }
.checkout__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout__totals {
  display: flex; justify-content: flex-end; gap: 16px; align-items: baseline;
  font-size: 17px; margin-bottom: 22px;
}
.checkout__totals b { font-family: var(--font-head); font-size: 26px; color: var(--dd-accent); font-variant-numeric: tabular-nums; }
.checkout__success { text-align: center; padding: 50px 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---------- Блог ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: post; }
.bpost {
  background: #fff; border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bpost:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bpost__num {
  position: absolute; top: 10px; right: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 60px;
  color: rgba(30,37,34,.06); line-height: 1;
}
.bpost h2 { font-size: 19px; padding-right: 60px; }
.bpost p { font-size: 14.5px; color: var(--ink-mute); line-height: 1.68; margin: 0; }

/* ---------- 404 ---------- */
.page404__box { text-align: center; padding: clamp(30px, 6vw, 70px) 20px; }
.page404__flame {
  width: 96px; height: 96px; margin: 0 auto 22px;
  border-radius: 28px;
  background: var(--ink); color: var(--amber);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.page404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.page404 p { color: var(--ink-mute); }

/* ---------- Политика ---------- */
.policy { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.policy h2 { font-size: 20px; margin-top: 26px; }
.policy p { color: var(--ink-soft); line-height: 1.75; }

/* ---------- Quick view (быстрый просмотр) ---------- */
.qv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.qv img { border-radius: var(--r-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.qv__price { font-family: var(--font-head); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 10px 0 4px; }
.qv__specs { font-size: 14px; margin: 12px 0; }
.qv__specs li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.qv__specs span { color: var(--ink-mute); }
.modal__panel--wide { width: min(820px, 100%); }
@media (max-width: 700px) { .qv { grid-template-columns: 1fr; } }
/* ==========================================================================
   05. Адаптивность: контрольные ширины 1920/1680/1440/1280/1024/980/820/640/420/360
   ========================================================================== */

/* ----- до 1280 ----- */
@media (max-width: 1280px) {
  .pgrid--related { grid-template-columns: repeat(3, 1fr); }
  .quality__row { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .hero__row { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .85fr); }
}

/* ----- до 1024: сокращаем меню, 3 карточки в ряду ----- */
@media (max-width: 1024px) {
  .topbar__left .topbar__badge { display: none; }
  .mainnav__link { padding: 10px 9px; font-size: 14px; }
  .header__phone span { display: none; }
  .header__phone { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; }
  .header__phone .icon { margin: 0; }
  .hero__row { grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 72px); }
  .hero__stock { max-width: 480px; animation: none; }
  .hero__title { max-width: 16ch; }
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .works__grid { grid-template-columns: repeat(3, 1fr); }
  .quiz { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .delivery__grid { grid-template-columns: 1fr; }
  .delivery-page__photo { position: static; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: static; }
}

/* ----- до 980: мобильное меню, 2 колонки ----- */
@media (max-width: 980px) {
  .mainnav { display: none; }
  .burger { display: grid; }
  .header__row { gap: 12px; }
  .pgrid, .pgrid--related { grid-template-columns: repeat(2, 1fr); }
  .sgrid { grid-template-columns: repeat(2, 1fr); }
  .tasks__grid { grid-template-columns: repeat(2, 1fr); }
  .conds__grid { grid-template-columns: repeat(2, 1fr); }
  .promos__grid { grid-template-columns: 1fr; }
  .promo { flex-direction: row; align-items: center; }
  .promo br { display: none; }
  .reviews__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
  .cart-page__grid { grid-template-columns: 1fr; }
  .cart-page__side { position: static; }
  .contacts__grid { grid-template-columns: 1fr; }
  .akcii__grid { grid-template-columns: 1fr; }
  .price__notes { grid-template-columns: 1fr; }
  .catalog__bar { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ----- до 820: 2 карточки, таблицы прокручиваются ----- */
@media (max-width: 820px) {
  body { font-size: 15.5px; }
  .topbar__right .topbar__link { display: none; }
  .hero { min-height: 0; }
  .hero__metrics { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .quality__row { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .product__grid { grid-template-columns: 1fr; }
  .sprice__wrap, .rating__table-wrap { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .bigform__grid { grid-template-columns: 1fr; }
  .cta-final__box { grid-template-columns: 1fr; }
  .sgrid--small { grid-template-columns: 1fr; }
}

/* ----- до 640: 2 товара, CTA на всю ширину, stickybar ----- */
@media (max-width: 640px) {
  .topbar__worktime { display: none; }
  .topbar__row { justify-content: center; }
  .topbar__left { display: none; }
  .city-btn__name { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo__slogan { display: none; }
  .logo__brand { font-size: 15px; white-space: normal; line-height: 1.1; }
  .header { border-bottom: 0; }
  .pgrid, .pgrid--related { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 13px 13px 15px; }
  .pcard__title { font-size: 15px; }
  .pcard__specs { display: none; }
  .pcard__price b { font-size: 18px; }
  .pcard__fast { display: none; }
  .pcard__actions { grid-template-columns: 1fr; }
  .pcard__buy { font-size: 13.5px; padding: 11px 10px; }
  .pcard__quick { display: none; }
  .sgrid { grid-template-columns: 1fr; }
  .tasks__grid { grid-template-columns: 1fr; }
  .task { min-height: 200px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .quiz__options { grid-template-columns: 1fr 1fr; }
  .quiz__form-grid { grid-template-columns: 1fr; }
  .quiz__steps-labels li span { display: none; }
  .conds__grid { grid-template-columns: 1fr; }
  .quality__row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer { padding-bottom: 76px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .stickybar { display: grid; }
  .cart-item { grid-template-columns: 64px 1fr 38px; }
  .cart-item__img { width: 64px; height: 64px; }
  .cart-item .qty { grid-column: 2; }
  .cart-item__sum { grid-column: 2; text-align: left; }
  .cart-item__rm { grid-column: 3; grid-row: 1 / span 2; }
  .toast-zone { bottom: 84px; }
  .score-grid { grid-template-columns: 1fr; }
}

/* ----- до 420: единая колонка, безопасная типографика ----- */
@media (max-width: 420px) {
  .pgrid, .pgrid--related { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__title { font-size: 27px; }
  .hero__metrics { gap: 14px; }
  .hero__metrics b { font-size: 17px; }
  .hero__metrics span { font-size: 11.5px; }
  .hero__stock { margin-top: 26px; }
  .btn--lg { width: 100%; justify-content: center; }
  .modal__panel { padding: 26px 18px 22px; border-radius: 22px; }
  .quiz__options { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .city-btn { padding: 9px 11px; }
  .header__contacts .header__max { display: none; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* ----- до 360 ----- */
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  body { font-size: 14.5px; }
  h1 { font-size: 25px; }
  h2 { font-size: 22px; }
  .hero__title { font-size: 24px; }
  .quality__row { grid-template-columns: 1fr; }
  .pcard__price b { font-size: 16px; }
  .cart-item__sum { font-size: 15px; }
  .topbar { display: none; }
}

/* ----- Печать ----- */
@media print {
  .topbar, .header, .stickybar, .city-drawer, .modal, .toast-zone, .cta-final, .hero__embers { display: none !important; }
  body { background: #fff; }
  .hero { min-height: 0; color: #000; }
  .hero__bg { display: none; }
}
/* ==========================================================================
   06. Дополнительные компоненты: скроллбар, герб города, прелоадер-шиммеры,
       печать витрины, мелкие состояния, подсказки, кнопки «наверх» и прочее
   ========================================================================== */

/* ---------- Скроллбары ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #B9BDB4; border-radius: 8px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--dd-accent); }
.city-drawer__list::-webkit-scrollbar { width: 8px; }

/* ---------- Герб города в hero ---------- */
.hero__crest { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.hero__chip { backdrop-filter: blur(10px); }

/* ---------- Шиммер для ленивых изображений ---------- */
img[loading="lazy"] { background: linear-gradient(100deg, var(--sand) 30%, #F1E9DC 50%, var(--sand) 70%); background-size: 200% 100%; }
.pcard__media img, .task__img img, .work img { background: none; }

/* ---------- Секция витрины: плавающий бейдж ---------- */
.pcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255,255,255,.14), transparent 30%);
  pointer-events: none;
}

/* ---------- Число-счётчик корзины анимация появления ---------- */
#cartCount:not(.is-zero) { transform: scale(1); }

/* ---------- Подсказка у витрины ---------- */
.hint {
  display: inline-flex; align-items: flex-start; gap: 10px;
  background: color-mix(in srgb, var(--dd-deep) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--dd-deep) 20%, transparent);
  border-radius: var(--r-md);
  padding: 13px 16px; font-size: 13.5px; color: var(--ink-soft);
  max-width: 640px;
}
.hint .icon { color: var(--dd-deep); flex: none; margin-top: 2px; }

/* ---------- «Сейчас на складе»: тикер-полоса на узких экранах ---------- */
@media (max-width: 640px) {
  .hero__stock-list li img { width: 46px; height: 46px; }
}

/* ---------- Строка фильтров в каталоге: мобильная липкость ---------- */
@media (max-width: 640px) {
  .catalog__bar {
    position: sticky; top: 66px; z-index: 40;
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0; box-shadow: var(--shadow-md);
    max-height: 46vh; overflow: auto;
  }
}

/* ---------- Фокус-кольца фирменные ---------- */
.btn:focus-visible, .chip:focus-visible, .mainnav__link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dd-accent) 60%, transparent);
  outline-offset: 2px;
}

/* ---------- Подсветка активного hero при печати ---------- */
@media print {
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #666; }
  .hero__stock, .promos, .delivery, .features, .works, #quiz, .cta-final { display: none !important; }
}

/* ---------- Плавный переход по хешам ---------- */
html:focus-within { scroll-behavior: smooth; }

/* ---------- Доп. состояния карточек услуг ---------- */
.scard { position: relative; overflow: hidden; }
.scard::before {
  content: ""; position: absolute; inset: auto auto -40px -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dd-accent) 10%, transparent), transparent 70%);
  pointer-events: none;
}

/* ---------- Маркер скидка в прайсе ---------- */
.sprice__table td b { font-variant-numeric: tabular-nums; }

/* ---------- Подзаголовок секции на тёмном ---------- */
.section--dark .section__head p a { color: var(--amber); }

/* ---------- Узкие таблицы на мобильном: скролл-подсказка ---------- */
.rating__table-wrap, .sprice__wrap { position: relative; }
.rating__table-wrap::after, .sprice__wrap::after {
  content: "→ листайте";
  position: absolute; top: 10px; right: 14px;
  font-size: 11px; color: var(--ink-mute);
  display: none;
}
@media (max-width: 820px) {
  .rating__table-wrap::after, .sprice__wrap::after { display: block; }
}

/* ---------- Скругления и тени: повышенная читаемость ---------- */
.task__body { backdrop-filter: none; }
.hero__stock-list a:visited { color: var(--ink); }

/* ---------- Квиз: анимация появления результата ---------- */
.quiz__result-row { animation: fadeUp .35s ease both; }
.quiz__result-row:nth-child(2) { animation-delay: .07s; }
.quiz__result-row:nth-child(3) { animation-delay: .14s; }
.quiz__result-row:nth-child(4) { animation-delay: .21s; }

/* ---------- Прочие мелочи ---------- */
.js-hidden { display: none !important; }
.no-scroll { overflow: hidden !important; }

/* ---------- Города: активный город на странице /goroda/ ---------- */
.cities__link.is-current { background: var(--dd-accent); color: #fff; }
/* ==========================================================================
   07. Расширенные компоненты: состояния полей, тултипы, пагинация,
       скелетоны, таблицы, переходы, доступность
   ========================================================================== */

/* ---------- Поля: расширенные состояния ---------- */
.field { position: relative; }
.field input::placeholder { color: #9AA39B; transition: opacity .2s; }
.field input:focus::placeholder { opacity: .45; }
.field.is-error label { color: var(--danger); }
.field.is-error .field__hint { display: block; }
.field__hint { display: none; font-size: 12.5px; color: var(--danger); margin-top: 2px; }
.field.is-ok::after {
  content: ""; position: absolute; right: 14px; bottom: 13px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5l4 4L18 8.5" fill="none" stroke="white" stroke-width="3" stroke-linecap="round"/></svg>') center/10px no-repeat;
  pointer-events: none;
}
.field--inline { flex-direction: row; align-items: center; gap: 12px; }
.field--inline label { min-width: 130px; margin: 0; }
.field input[disabled], .field select[disabled] { background: #EFEFEA; color: var(--ink-mute); cursor: not-allowed; }
.field input[readonly] { border-style: dashed; }

/* textarea для больших комментариев */
.field textarea { min-height: 96px; resize: vertical; }

/* ---------- Кастомный select ---------- */
select {
  appearance: none; -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" fill="none" stroke="%236B756E" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px !important;
}

/* ---------- Чекбоксы и радио (для фильтров расширенных) ---------- */
.check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 0;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  border: 2px solid #C9CFC7; background: #fff;
  transition: all .16s;
  position: relative;
}
.check input:checked + .box {
  background: var(--dd-accent); border-color: var(--dd-accent);
}
.check input:checked + .box::after {
  content: ""; position: absolute; inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5l4 4L18 8.5" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/13px no-repeat;
}
.check:hover .box { border-color: var(--dd-accent); }
.check input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--dd-accent) 40%, transparent); }

/* ---------- Тултип ---------- */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 9px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 60;
}
[data-tip]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
  opacity: 0; transition: opacity .18s;
  z-index: 60;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px;
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: all .16s;
}
.pagination a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.pagination .is-current { background: var(--dd-accent); color: #fff; }
.pagination .is-dots { background: transparent; box-shadow: none; color: var(--ink-mute); }

/* ---------- Скелетоны ---------- */
.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(100deg, #ECE7DD 30%, #F5F1E8 50%, #ECE7DD 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------- Таблицы: подробнее ---------- */
.sprice__table--full td:nth-child(1) { min-width: 260px; }
.sprice__table .btn--sm { white-space: nowrap; }
.rating__table td .rating__meter { box-shadow: inset 0 1px 2px rgba(30,37,34,.1); }

/* ---------- Ссылки-карточки в подвале: подчёркивание ---------- */
.footer__list a { position: relative; }
.footer__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--amber);
  transition: width .2s;
}
.footer__list a:hover::after { width: 100%; }

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 96px; z-index: 65;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--dd-accent); }

/* ---------- Печать ---------- */
@media print {
  .btn, .chip, .tabs__nav { box-shadow: none !important; }
  .pcard, .scard, .dcard { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- Крупные контрольные точки для таблиц ---------- */
@media (min-width: 1680px) {
  .container { max-width: 1360px; }
  .pgrid { gap: 26px; }
  .section { --section-y: 120px; }
}
@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  .hero__row { max-width: 1440px; }
}

/* ---------- Фокус на hero ---------- */
.hero__cta .btn { letter-spacing: .01em; }
.hero__cta .btn .icon { transition: transform .2s; }
.hero__cta .btn:hover .icon { transform: translateX(4px); }

/* ---------- Акции: hover-перелив ---------- */
.promo::before {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.promo:hover::before { left: 130%; }

/* ---------- Дровер: плавность пунктов ---------- */
.city-drawer__item { position: relative; }
.city-drawer__item.is-active::after {
  content: "✓"; color: var(--amber); font-weight: 800; font-size: 13px;
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
}
.city-drawer__item.is-active small { padding-right: 18px; }

/* ---------- Модалка: защита контента на узких ---------- */
@media (max-width: 420px) {
  .modal { place-items: end center; padding: 0; }
  .modal__panel { border-radius: 22px 22px 0 0; width: 100%; max-height: 92vh; overflow: auto; }
}

/* ---------- Ошибка 404: анимация пламени ---------- */
.page404__flame svg { animation: flameSway 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flameSway {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}

/* ---------- Сетка характеристик на карточке ---------- */
.spec-table { border-spacing: 0; }
.spec-table th { letter-spacing: .01em; }

/* ---------- Опт: карточки с иконками ---------- */
.features__grid--light .dcard { transition: transform .2s, box-shadow .2s; }
.features__grid--light .dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Блог ---------- */
.bpost { border-left: 4px solid var(--sand); }
.bpost:hover { border-left-color: var(--dd-accent); }

/* ---------- Контакты ---------- */
.contacts__card a { font-weight: 600; }

/* ---------- Гербы городов (карточка-легенда на странице городов) ---------- */
.crest-badge { width: 26px; height: 26px; vertical-align: -6px; margin-right: 6px; border-radius: 7px; }

/* ---------- Hero: метрики — мобильная сетка ---------- */
@media (min-width: 821px) and (max-width: 980px) {
  .hero__metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__metrics span { font-size: 12px; }
}

/* ---------- Кнопки: ghost на темном для квиза ---------- */
.quiz .btn-ghost-dark { color: #C9CFC7; border-color: rgba(255,255,255,.2); }
.quiz .btn-ghost-dark:hover { border-color: #fff; color: #fff; }

/* ---------- Липкая панель: активный квиз ---------- */
.stickybar__quiz:active { transform: scale(.97); }

/* ---------- Карточка товара: старая цена ---------- */
.product__price s { text-decoration-thickness: 2px; }

/* ---------- Форма в CTA: тёмные поля ---------- */
.cta-final__form .field input { border-color: transparent; }

/* ---------- Каталог: активные чипы с иконками ---------- */
.chip .icon { font-size: 15px; }

/* ---------- Табы: скролл на мобильном ---------- */
@media (max-width: 640px) {
  .tabs__nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs__nav::-webkit-scrollbar { display: none; }
  .tabs__tab { white-space: nowrap; }
}

/* ---------- Правая колонка корзины ---------- */
.cart-page__side .btn-link { justify-self: center; }

/* ---------- Заголовки секции: кикер анимация ---------- */
.section__kicker { position: relative; }
.section__kicker::after {
  content: ""; position: absolute; right: -18px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--dd-accent);
  animation: blink 2.4s ease infinite;
}
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Крупные экраны: усиление витрины ---------- */
@media (min-width: 1440px) {
  .hero__title { font-size: 60px; }
  .promos__grid { gap: 22px; }
}

/* ---------- Визитка: печать ---------- */
@media print {
  .topbar, .header, .footer, .stickybar { display: none !important; }
}
/* ==========================================================================
   08. Тонкая настройка страниц: все варианты блоков, состояния при
       малых высотах, ландшафтной ориентации, больших мониторах
   ========================================================================== */

/* ---------- Главная: hero при очень широких экранах ---------- */
@media (min-width: 1680px) {
  .hero { min-height: min(92vh, 900px); }
  .hero__stock { padding: 26px; }
  .hero__stock-list li { padding: 13px 10px; }
  .hero__metrics { gap: 44px; }
}

/* ---------- Главная: ландшафтный мобильный ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__row { padding-block: 30px; }
  .hero__metrics { grid-template-columns: repeat(4, 1fr); }
  .promos { margin-top: 0; }
}

/* ---------- Главная: задачи — большие карточки на десктопе ---------- */
.tasks__grid .task:first-child { grid-row: span 1; }
@media (min-width: 981px) {
  .task { min-height: 260px; }
  .task:nth-child(1), .task:nth-child(6) { }
}

/* ---------- Квиз: вертикальный компакт ---------- */
@media (min-width: 1025px) {
  .quiz__step { min-height: 380px; }
}
@media (max-width: 1024px) {
  .quiz__step { min-height: 340px; }
}

/* ---------- Витрина: ритм сетки ---------- */
.pcard__body { position: relative; }
.pcard__buy { letter-spacing: .01em; }

/* ---------- Рейтинг пород: адаптив чисел ---------- */
@media (max-width: 980px) {
  .rating__table th, .rating__table td { padding: 12px 12px; }
  .rating__meter { width: 64px; }
}

/* ---------- Условия: иконка-контур ---------- */
.cond .icon { transition: transform .25s; }
.cond:hover .icon { transform: rotate(-6deg) scale(1.08); }

/* ---------- Качество: фото-наклейка шага ---------- */
.quality__photo { border-bottom: 3px solid var(--dd-accent); }

/* ---------- Прайс: зебра ---------- */
.sprice__table tbody tr:nth-child(2n) td { background: #FBF9F3; }

/* ---------- Доставка: зона-карта ---------- */
.delivery__zone-badge { max-width: 290px; }

/* ---------- Фишки: контер на тёмном ---------- */
.feature { position: relative; }
.feature::after {
  content: ""; position: absolute; top: 14px; right: 16px;
  font-family: var(--font-head); font-weight: 800; font-size: 12px;
  color: rgba(255,255,255,.28);
}
.feature:nth-child(1)::after { content: "01"; }
.feature:nth-child(2)::after { content: "02"; }
.feature:nth-child(3)::after { content: "03"; }
.feature:nth-child(4)::after { content: "04"; }
.feature:nth-child(5)::after { content: "05"; }
.feature:nth-child(6)::after { content: "06"; }
.feature:nth-child(7)::after { content: "07"; }
.feature:nth-child(8)::after { content: "08"; }
.feature:nth-child(9)::after { content: "09"; }
.feature:nth-child(10)::after { content: "10"; }

/* ---------- Работы: четвёртая строка ---------- */
.works__grid--page .work img { aspect-ratio: 4/3; }

/* ---------- SEO: колонки на широких ---------- */
@media (min-width: 1280px) {
  .seotext__body { columns: 1; }
}

/* ---------- FAQ: открытый вариант ---------- */
.faq__item.is-open .faq__q { color: var(--dd-accent); }

/* ---------- Карточка товара: мета ---------- */
.product__meta .product__stock { color: #35a06b; }

/* ---------- Услуги: большая сетка ---------- */
@media (min-width: 1440px) {
  .sgrid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Услуга: шапка ---------- */
.sintent__head h1 { margin-top: 10px; }

/* ---------- О компании: статистика ---------- */
@media (max-width: 640px) {
  .about__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Отзывы: цитата ---------- */
.review { border-left: 4px solid var(--sand); }

/* ---------- Контакты: карточки ровно ---------- */
.contacts__grid .dcard { display: flex; flex-direction: column; }

/* ---------- Города: группы ---------- */
.cities__group h2 { border-bottom: 2px solid var(--sand); padding-bottom: 10px; }

/* ---------- Корзина: ширина на больших экранах ---------- */
@media (min-width: 1280px) {
  .cart-page__grid { grid-template-columns: 1.7fr .8fr; }
}

/* ---------- Оформление: успех ---------- */
.checkout__success h2 { margin-bottom: 8px; }

/* ---------- Служебные страницы ---------- */
.page404__box { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); margin-top: 30px; }

/* ---------- Кросс-браузерное сглаживание ---------- */
@supports (-webkit-backdrop-filter: none) {
  .header { -webkit-backdrop-filter: blur(14px); }
  .hero__chip { -webkit-backdrop-filter: blur(10px); }
  .pcard__quick { -webkit-backdrop-filter: blur(8px); }
  .stickybar { -webkit-backdrop-filter: blur(12px); }
}

/* ---------- Reduced motion: полить анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
  .hero__stock { animation: none; }
  .quiz__progress-bar { transition: none; }
  .task__img img, .pcard__media img, .work img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Тёмная схема системы: лёгкая поддержка инверсии ---------- */
@media (prefers-color-scheme: dark) {
  .header { border-bottom-color: rgba(30,37,34,.12); }
}

/* ---------- Печать страницы цен ---------- */
@media print {
  .sprice__table th { font-size: 11px; }
  .sprice__table td { padding: 8px 10px; }
  .catalog__bar, .stickybar, .hero__cta { display: none !important; }
}

/* ---------- HERO: подзаголовок — макс. ширина ---------- */
.hero__sub { text-wrap: balance; }
.hero__title { text-wrap: balance; }
.section__head h2 { text-wrap: balance; }

/* ---------- Формы: автозаполнение ---------- */
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 99999s ease-in-out 0s;
}

/* ---------- Ссылка на телефон: домашний блок ---------- */
.topbar__phone { position: relative; }
.topbar__phone::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s;
}
.topbar__phone:hover::after { transform: scaleX(1); }

/* ---------- Прайс: первая колонка ---------- */
.sprice__table td:first-child { font-weight: 600; }

/* ---------- Финал ---------- */
.cta-final__box { isolation: isolate; }
.cta-final__box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 85% 110%, rgba(47,100,81,.35), transparent);
}

/* ---------- Страховка высот: модалка + дровер ---------- */
.city-drawer__panel, .mobile-menu__panel, .modal__panel { will-change: transform; }
/* ==========================================================================
   09. Темы акцентов поддоменов (детерминированы по городу) и состояния
       ночного фона, фокус при навигации с клавиатуры
   ========================================================================== */

/* Темы задаются корневыми переменными из PHP (inline <style> в header);
   здесь — мягкие градации и вспомогательные классы под них. */

/* Производные тона от accent для каждого модуля */
.badge--tag { box-shadow: 0 1px 0 rgba(30,37,34,.08) inset; }
.promo { border-top-color: var(--dd-accent); }
.catalog__bar { border-top: 3px solid var(--dd-deep); border-radius: 22px; }

/* Акцентирование активного города в списке */
.city-drawer__item.is-active { box-shadow: inset 4px 0 0 var(--dd-accent); }

/* Акцентные ссылки в тексте */
.seotext__body a, .about__text a, .catalog__seo a, .tabs__pane a, .bpost a {
  color: var(--dd-deep);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--dd-accent) 45%, transparent);
  text-underline-offset: 3px;
}
.seotext__body a:hover, .about__text a:hover, .catalog__seo a:hover, .tabs__pane a:hover, .bpost a:hover {
  color: var(--dd-accent);
}

/* Кикер со световым пятном */
.section__kicker { animation: kickerIn .5s ease both; }
@keyframes kickerIn { from { opacity: 0; transform: translateY(6px); } }

/* Интерактивные строки таблицы прайса */
.sprice__table tbody tr { cursor: default; }
.sprice__table tbody tr:hover .btn { box-shadow: 0 4px 14px rgba(30,37,34,.18); }

/* Плавное появление логотипа при загрузке */
.logo__mark { animation: logoPop .5s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes logoPop { from { transform: scale(.7); opacity: 0; } }

/* Мягкая тень у hero-блока склада при скролле страницы */
.header.is-stuck { animation: headerIn .3s ease; }
@keyframes headerIn { from { transform: translateY(-4px); opacity: .9; } }

/* Тёмная секция: полупрозрачные карточки с обводкой */
.section--dark .feature { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }

/* Классы-модификаторы доступных состояний ссылок */
.link-strong { font-weight: 800; }
.link-underlined { text-decoration: underline; text-underline-offset: 3px; }

/* Курсивное выделение цены в hero */
.hero__title em { padding-right: .04em; }

/* Дискретное свечение кнопки WhatsApp */

/* Бейдж «В наличии» с мягкой пульсацией точки */
.pcard__stock .dot--ok { flex: none; }

/* Акцент кнопки города при открытом дровере */
.city-btn[aria-expanded="true"] { border-color: var(--dd-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dd-deep) 10%, transparent); }

/* Отскок иконки стрелки у ссылок */
.btn-link { display: inline-flex; align-items: center; gap: 6px; }

/* Разделители в футере */
.footer__grid { border-bottom: 1px solid rgba(255,255,255,.08); }

/* Состояние загрузки карточек */
.pcard.is-loading .pcard__media img { filter: blur(2px); }

/* Подчёркивание заголовков карточек при наведении */
.scard__title a, .pcard__title a { background-image: linear-gradient(var(--dd-accent), var(--dd-accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s; padding-bottom: 2px; }
.scard__title a:hover, .pcard__title a:hover { background-size: 100% 2px; }

/* Герб рядом с именем города (в дровере и футере) */
.city-crest { display: inline-flex; align-items: center; gap: 8px; }
.city-crest img { width: 26px; height: 26px; border-radius: 7px; box-shadow: var(--shadow-sm); }

/* Полоса доверия: иконки вырубаются цветом темы */
.topbar .icon { color: var(--amber); }
/* ==========================================================================
   10. Утилиты-модификаторы верстальщика (используются в шаблонах и
       для быстрых правок без правки компонентов)
   ========================================================================== */

/* Выравнивания */
.ta-c { text-align: center; }
.ta-l { text-align: left; }
.ta-r { text-align: right; }
.va-m { vertical-align: middle; }

/* Отступы-буквы (ритм 4px) */
.mt-8  { margin-top: 8px; }  .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }  .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.p-16 { padding: 16px; } .p-20 { padding: 20px; } .p-24 { padding: 24px; } .p-32 { padding: 32px; }

/* Раскладки */
.d-flex { display: flex; gap: 12px; }
.d-flex-c { display: flex; gap: 12px; align-items: center; }
.d-flex-sb { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.d-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.d-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.d-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.shrink0 { flex: none; }

/* Текст */
.fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; } .fs-15 { font-size: 15px; }
.fs-17 { font-size: 17px; } .fs-19 { font-size: 19px; } .fs-21 { font-size: 21px; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.c-mute { color: var(--ink-mute); } .c-accent { color: var(--dd-accent); } .c-deep { color: var(--dd-deep); }
.c-white { color: #fff; } .c-danger { color: var(--danger); }
.tt-upper { text-transform: uppercase; letter-spacing: .08em; }
.lh-relaxed { line-height: 1.75; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Поверхности */
.bg-white { background: #fff; } .bg-alt { background: var(--bg-alt); } .bg-ink { background: var(--ink); color: #EDEAE3; }
.rounded-md { border-radius: var(--r-md); } .rounded-lg { border-radius: var(--r-lg); } .rounded-xl { border-radius: var(--r-xl); }
.shadow-sm { box-shadow: var(--shadow-sm); } .shadow-md { box-shadow: var(--shadow-md); } .shadow-lg { box-shadow: var(--shadow-lg); }
.bordered { border: 1px solid var(--line); }

/* Видимость */
.hidden { display: none !important; }
.visible-mobile { display: none !important; }
@media (max-width: 640px) {
  .visible-mobile { display: block !important; }
  .hidden-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .hidden-desktop { display: none !important; }
}

/* Безопасная ширина контента */
.maxw-640 { max-width: 640px; }
.maxw-820 { max-width: 820px; }
.mx-auto { margin-inline: auto; }

/* Для скринридеров */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Дополнительный контейнер */
.container--wide { max-width: 1440px; }

/* Списки-строки */
.hr-soft { border: 0; height: 1px; background: var(--line); margin: 26px 0; }

/* ---------- Герб в чипах городов ---------- */
.cities__link { display: inline-flex; align-items: center; gap: 8px; }
.cities__crest { border-radius: 7px; flex: none; }
