/* ==========================================================================
   Основа — стройбаза. Публичный сайт и общий слой компонентов для CRM.
   Tokens → base → components → pages → responsive
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.a0064451d155.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.4b85b07d04f8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.38aca987fd31.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.9c323913ada2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #10201b;
  --ink-2: #22342d;
  --muted: #63756d;
  --muted-2: #84938c;
  --line: #dde4df;
  --line-strong: #c9d3cc;
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-2: #eaece5;
  --surface-3: #f7f7f3;
  --accent: #0f6b4f;
  --accent-ink: #0a513c;
  --accent-soft: #e3f1ea;
  --accent-2: #0d2a21;
  --amber: #ef9f22;
  --amber-ink: #a2600a;
  --amber-soft: #fdf1db;
  --danger: #b03a2e;
  --danger-soft: #fbeae7;
  --info: #1f5f8b;
  --info-soft: #e8f1f7;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 27, 0.06);
  --shadow: 0 2px 4px rgba(16, 32, 27, 0.04), 0 20px 40px -24px rgba(16, 32, 27, 0.3);
  --shadow-lg: 0 30px 70px -30px rgba(9, 26, 21, 0.45);
  --container: 1240px;
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted-2);
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ── Icons ───────────────────────────────────────────────────────────────── */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon--xs {
  width: 14px;
  height: 14px;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

/* ── Type helpers ────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 19px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.kicker--light {
  color: var(--amber);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-ink);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--light {
  background: #f4efe3;
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
}

.btn--sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn--lg {
  height: 54px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 14px;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: 46px;
  padding: 0;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.link-more:hover {
  color: var(--accent-ink);
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  background: var(--surface-2);
  color: var(--ink-2);
}

.badge--sale {
  background: var(--amber);
  color: #2b1a02;
}

.badge--hit {
  background: var(--accent);
  color: #fff;
}

.badge--out {
  background: rgba(16, 32, 27, 0.72);
  color: #fff;
}

.badge--new {
  background: var(--info-soft);
  color: var(--info);
}

.badge--progress {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.badge--quote {
  background: #efe9fb;
  color: #5b3fc4;
}

.badge--won {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge--lost {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--muted {
  background: var(--surface-2);
  color: var(--muted);
}

.badge--role {
  background: var(--surface-2);
  color: var(--ink-2);
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}

.input::placeholder {
  color: var(--muted-2);
}

.input--area {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.input--sm {
  height: 40px;
  font-size: 13.5px;
  border-radius: 10px;
}

.input--file {
  height: auto;
  padding: 10px 12px;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2322342d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.checkbox {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.check-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.radio {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid--single {
  grid-template-columns: 1fr;
}

.form-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--danger);
}

.errorlist li + li {
  margin-top: 3px;
}

.form-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

/* ── Quantity stepper ────────────────────────────────────────────────────── */
.qty {
  display: inline-flex;
  align-items: center;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.qty button {
  width: 46px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: grid;
  place-items: center;
}

.qty button:hover {
  background: var(--surface-3);
}

.qty input {
  width: 54px;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty--sm {
  height: 42px;
  border-radius: 11px;
}

.qty--sm button {
  width: 36px;
}

.qty--sm input {
  width: 42px;
  font-size: 14px;
}

/* ── Flash / toast / dialog ──────────────────────────────────────────────── */
.flash-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 36px));
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: flash-in 0.25s ease-out;
}

.flash .icon {
  color: var(--accent);
  margin-top: 1px;
}

.flash--error .icon {
  color: var(--danger);
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 210;
  transform: translate(-50%, 20px);
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgba(8, 22, 18, 0.55);
  backdrop-filter: blur(2px);
}

.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
}

.dialog__head h2 {
  font-size: 24px;
}

.dialog__head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.dialog__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
}

.dialog__body {
  padding: 0 24px 24px;
}

/* ── Product visual tiles ────────────────────────────────────────────────── */
.tile--sand { --tile-bg: #efe7d8; --tile-ink: #7b5c2e; }
.tile--steel { --tile-bg: #e5eaeb; --tile-ink: #3f545a; }
.tile--amber { --tile-bg: #f8ecd4; --tile-ink: #8a5a08; }
.tile--aqua { --tile-bg: #dfebec; --tile-ink: #2e5c67; }
.tile--graphite { --tile-bg: #e3e6e3; --tile-ink: #38423e; }
.tile--clay { --tile-bg: #f0e2d9; --tile-ink: #7c4b33; }
.tile--moss { --tile-bg: #e4eade; --tile-ink: #46593c; }
.tile--stone { --tile-bg: #e9e7e0; --tile-ink: #4b4b43; }

.pvar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: var(--tile-bg, #efe7d8);
  color: var(--tile-ink, #7b5c2e);
  overflow: hidden;
}

.pvar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
}

.pvar::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.35);
}

.pvar__icon {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 52%;
  height: 52%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.pvar__spec {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 90%;
}

.pvar__brand {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.pvar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Flash/header utility ────────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--surface);
}

.topbar {
  background: var(--accent-2);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 40px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.topbar__item:hover {
  color: #fff;
}

.topbar__hours {
  color: rgba(255, 255, 255, 0.5);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.topbar__links a:hover {
  color: #fff;
}

.header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.logo__text {
  display: grid;
  line-height: 1;
}

.logo__text b {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo__text span {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.catalog-btn:hover {
  background: var(--accent-ink);
}

.catalog-btn__chev {
  transform: rotate(90deg);
  opacity: 0.7;
  transition: transform 0.2s;
}

.catalog-btn[aria-expanded="true"] .catalog-btn__chev {
  transform: rotate(-90deg);
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 160px;
  height: 46px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-3);
  transition: border-color 0.15s, background 0.15s;
}

.searchbar:focus-within {
  border-color: var(--accent);
  background: var(--surface);
}

.searchbar__icon {
  color: var(--muted);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.searchbar input:focus {
  outline: none;
}

.searchbar__btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.searchbar__btn:hover {
  background: var(--accent);
}

.header__phone {
  display: grid;
  gap: 1px;
  flex: none;
  line-height: 1.2;
}

.header__phone span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.header__phone small {
  font-size: 10.5px;
  color: var(--muted);
}

.header__cart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.header__cart-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface-2);
}

.header__cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.header__cart-count[data-empty="true"],
.header__cart-count:empty {
  display: none;
}

.header__cart-text {
  display: grid;
  line-height: 1.25;
}

.header__cart-text small {
  font-size: 10.5px;
  color: var(--muted);
}

.header__cart-text b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  place-items: center;
  flex: none;
}

/* ── Mega menu ───────────────────────────────────────────────────────────── */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 70;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(16, 32, 27, 0.4);
  max-height: calc(100vh - 124px);
  overflow-y: auto;
}

.mega[hidden] {
  display: none;
}

.mega__in {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 28px 0 32px;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
}

.mega__col {
  min-width: 0;
}

.mega__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.mega__head b {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
}

.mega__head:hover b {
  color: var(--accent);
}

.mega__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--tile-bg);
  color: var(--tile-ink);
  flex: none;
}

.mega__icon svg {
  width: 20px;
  height: 20px;
}

.mega__list {
  display: grid;
  gap: 4px;
}

.mega__list a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--muted);
}

.mega__list a:hover {
  color: var(--accent);
}

.mega__all {
  font-weight: 600;
  color: var(--accent) !important;
}

.mega__promo {
  align-self: start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--accent-2);
  color: #fff;
}

.mega__promo-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.mega__promo b {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
}

.mega__promo p {
  margin: 8px 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.mega__promo .btn {
  width: 100%;
}

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--surface);
  overflow-y: auto;
  padding: 16px 20px 32px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.mobile-nav__head button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  display: grid;
  place-items: center;
}

.searchbar--mobile {
  margin-bottom: 20px;
}

.mobile-nav__label {
  margin: 22px 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mnav-cat {
  border-bottom: 1px solid var(--line);
}

.mnav-cat summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.mnav-cat summary::-webkit-details-marker {
  display: none;
}

.mnav-cat summary .icon {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s;
}

.mnav-cat[open] summary .icon {
  transform: rotate(90deg);
}

.mnav-cat__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--tile-bg);
  color: var(--tile-ink);
}

.mnav-cat__icon svg {
  width: 20px;
  height: 20px;
}

.mnav-cat__links {
  display: grid;
  gap: 2px;
  padding: 0 0 12px 46px;
}

.mnav-cat__links a {
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.mnav-link {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.mobile-nav__call {
  margin-top: 22px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--accent-2);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(900px 380px at 82% -10%, rgba(239, 159, 34, 0.22), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  pointer-events: none;
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
  padding: 58px 0 72px;
}

.hero__text {
  max-width: 620px;
}

.hero .kicker {
  color: var(--amber);
}

.hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  color: #f7f2e6;
}

.hero__lead {
  max-width: 530px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 6px 6px 6px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  max-width: 560px;
}

.hero__search .icon {
  color: var(--muted);
}

.hero__search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 14.5px;
}

.hero__search input:focus {
  outline: none;
}

.hero__search .btn {
  height: 44px;
  flex: none;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.hero__tags a {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.hero__tags a:hover {
  border-color: var(--amber);
  color: #fff;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stats dt {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f7f2e6;
}

.hero__stats dd {
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Showcase */
.hero__showcase {
  position: relative;
}

.showcase {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(6px);
}

.showcase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.showcase__head a {
  color: var(--amber);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 12px;
}

.showcase__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 8px;
  transition: transform 0.15s;
}

.showcase__card:hover {
  transform: translateX(3px);
}

.showcase__tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--tile-bg);
  color: var(--tile-ink);
  flex: none;
}

.showcase__tile svg {
  width: 32px;
  height: 32px;
}

.showcase__body {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.showcase__body b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.showcase__meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase__price {
  display: grid;
  gap: 1px;
  text-align: right;
  flex: none;
}

.showcase__price b {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
}

.showcase__stock {
  font-size: 10px;
  color: var(--accent);
}

.showcase__stock.is-out {
  color: var(--amber-ink);
}

.showcase__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}

.showcase__foot .icon {
  color: var(--amber);
}

/* ── USP ─────────────────────────────────────────────────────────────────── */
.usp {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.usp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 8px;
  border-radius: 20px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.usp__item {
  display: flex;
  gap: 13px;
  padding: 20px;
  background: var(--surface);
}

.usp__item:first-child {
  border-radius: 14px 0 0 14px;
}

.usp__item:last-child {
  border-radius: 0 14px 14px 0;
}

.usp__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.usp__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
}

.usp__item p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  padding: 66px 0 0;
}

.section--cats {
  padding-top: 72px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section__head h2 {
  margin-top: 8px;
}

/* ── Categories ──────────────────────────────────────────────────────────── */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cat-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.cat-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--tile-bg);
  color: var(--tile-ink);
  flex: none;
}

.cat-card__icon svg {
  width: 30px;
  height: 30px;
}

.cat-card h3 {
  font-size: 17px;
}

.cat-card h3 a:hover {
  color: var(--accent);
}

.cat-card__head span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.cat-card__list {
  display: grid;
  gap: 5px;
  flex: 1;
}

.cat-card__list a {
  font-size: 13px;
  color: var(--muted);
}

.cat-card__list a:hover {
  color: var(--accent);
}

.cat-card__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Product grid & card ─────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.pcard:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.pcard__visual {
  display: block;
  width: 100%;
  height: 100%;
}

.pcard__visual .pvar {
  padding: 14px;
}

.pcard__visual .pvar__spec {
  font-size: 13px;
}

.pcard__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 14px 14px;
}

.pcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.pcard__brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard__sku {
  white-space: nowrap;
  flex: none;
}

.pcard__name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.005em;
  min-height: 37px;
}

.pcard__name a:hover {
  color: var(--accent);
}

.pcard__spec {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--muted);
}

.pcard__stock .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}

.pcard__stock.is-in {
  color: var(--accent);
}

.pcard__stock.is-in .dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.14);
}

.pcard__stock.is-out {
  color: var(--amber-ink);
}

.pcard__stock.is-out .dot {
  background: var(--amber);
}

.pcard__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.pcard__price-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.pcard__price-main b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pcard__price-main s {
  font-size: 11.5px;
  color: var(--muted-2);
}

.pcard__unit {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.pcard__add {
  flex: none;
}

.pcard__add-btn {
  height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12.5px;
  gap: 6px;
}

.pcard__add-btn .icon {
  width: 15px;
  height: 15px;
}

/* ── B2B band ────────────────────────────────────────────────────────────── */
.b2b {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--accent-2);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.b2b::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 60px solid rgba(239, 159, 34, 0.09);
}

.b2b__text {
  position: relative;
  z-index: 1;
}

.b2b h2 {
  margin: 12px 0 14px;
  color: #f7f2e6;
}

.b2b p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
}

.b2b__list {
  display: grid;
  gap: 9px;
  margin: 20px 0 26px;
}

.b2b__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.b2b__list .icon {
  color: var(--amber);
}

.b2b__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b2b__facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.b2b__facts div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.b2b__facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.02em;
}

.b2b__facts span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps__item {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-ink);
  letter-spacing: 0.08em;
}

.steps__item b {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.steps__item p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Services ────────────────────────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.services--page {
  margin-bottom: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service-card b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.service-card p {
  margin: 6px 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.service-card__price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ── About strip ─────────────────────────────────────────────────────────── */
.about-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.about-strip h2 {
  margin: 10px 0 14px;
}

.about-strip__text p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.about-strip__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.about-strip__facts > div {
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-3);
}

.about-strip__facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-strip__facts span {
  font-size: 11px;
  color: var(--muted);
}

.about-strip__note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.about-strip__facts .link-more {
  grid-column: 1 / -1;
}

/* ── SEO block ───────────────────────────────────────────────────────────── */
.seo-block {
  margin: 70px 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.seo-block h2 {
  margin-bottom: 12px;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.seo-block p {
  max-width: 900px;
  font-size: 13px;
  line-height: 1.7;
}

.seo-block p + p {
  margin-top: 9px;
}

.seo-block--catalog {
  margin-top: 34px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.crumbs {
  padding: 20px 0 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span {
  color: var(--ink-2);
}

/* ── Page head ───────────────────────────────────────────────────────────── */
.page-head {
  padding: 22px 0 26px;
}

.page-head h1 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.page-head p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ── Catalog ─────────────────────────────────────────────────────────────── */
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0 18px;
}

.catalog-head h1 {
  font-size: clamp(30px, 3.6vw, 46px);
}

.catalog-head__lead {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-head__count {
  text-align: right;
  flex: none;
}

.catalog-head__count b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.catalog-head__count span {
  font-size: 11px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 30px;
  padding-bottom: 20px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
}

.filters__close {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-3);
  place-items: center;
}

.filters__group {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.filters__title {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ftree {
  display: grid;
  gap: 2px;
}

.ftree__root {
  padding: 3px 0;
}

.ftree__root > a {
  font-size: 13px;
  font-weight: 600;
}

.ftree__root > span {
  float: right;
  font-size: 10.5px;
  color: var(--muted-2);
}

.ftree__root.is-active > a {
  color: var(--accent);
}

.ftree__sub {
  display: grid;
  gap: 1px;
  margin: 3px 0 6px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.ftree__sub a {
  display: block;
  padding: 2px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.ftree__sub li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ftree__sub span {
  font-size: 10px;
  color: var(--muted-2);
}

.ftree a:hover {
  color: var(--accent);
}

.ftree__sub .is-active a {
  color: var(--accent);
  font-weight: 600;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.price-range label {
  position: relative;
}

.price-range label span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  color: var(--muted-2);
  pointer-events: none;
}

.price-range input {
  padding-left: 30px;
}

.price-range i {
  font-style: normal;
  color: var(--muted-2);
}

.filters__brands {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.filters__brands .check-row {
  font-size: 12.5px;
}

.filters__brands i {
  font-style: normal;
  color: var(--muted-2);
  font-size: 10.5px;
}

.filters__actions {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.filters__reset {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters__reset:hover {
  color: var(--accent);
}

.catalog-main {
  min-width: 0;
}

.catalog-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filters-toggle {
  display: none;
}

.catalog-bar__found {
  font-size: 12.5px;
  color: var(--muted);
}

.catalog-bar__found b {
  color: var(--ink);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.catalog-sort label {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-sort .input {
  width: auto;
  min-width: 190px;
}

.products-grid--catalog {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 30px 0 10px;
}

.pager__page,
.pager__arrow {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.pager__page:hover,
.pager__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager__page.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pager__arrow.is-prev .icon {
  transform: rotate(180deg);
}

.pager__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pager__dots {
  color: var(--muted-2);
  padding: 0 2px;
}

/* ── Empty ───────────────────────────────────────────────────────────────── */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--muted-2);
}

.empty b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.empty p {
  max-width: 420px;
  margin: 6px 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.empty--catalog {
  margin-top: 6px;
}

/* ── Product page ────────────────────────────────────────────────────────── */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  padding: 14px 0 10px;
}

.product__media {
  min-width: 0;
}

.product__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.product__frame .pvar {
  padding: 30px;
}

.product__frame .pvar__spec {
  font-size: 24px;
}

.product__frame .pvar__brand {
  font-size: 12px;
}

.product__sale {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  padding: 6px 10px;
}

.product__media-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.product__media-notes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.product__media-notes .icon {
  color: var(--accent);
}

.product__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product__thumbs img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.product__info {
  min-width: 0;
  padding-top: 6px;
}

.product__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.product__brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__info h1 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.12;
}

.product__lead {
  color: var(--muted);
  font-size: 14px;
}

.product__specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.spec-chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
}

.spec-chip i {
  font-style: normal;
  color: var(--muted-2);
  margin-right: 4px;
}

.product__buy {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product__price-row b {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.product__price-row s {
  font-size: 14px;
  color: var(--muted-2);
}

.product__unit {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.product__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.product__stock .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.product__stock.is-in {
  color: var(--accent);
}

.product__stock.is-in .dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.14);
}

.product__stock.is-out {
  color: var(--amber-ink);
}

.product__form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.product__add {
  flex: 1;
}

.product__secondary {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product__secondary .btn {
  flex: 1;
  height: 42px;
  font-size: 12.5px;
}

.product__delivery {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product__delivery li {
  display: flex;
  gap: 11px;
}

.product__delivery .icon {
  color: var(--accent);
  margin-top: 2px;
}

.product__delivery b {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
}

.product__delivery span {
  font-size: 11.5px;
  color: var(--muted);
}

.product-tabs {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.product-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.product-tabs__nav button {
  position: relative;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}

.product-tabs__nav button.is-active {
  color: var(--ink);
}

.product-tabs__nav button.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.product-tabs__panel {
  display: none;
  padding: 24px 0;
}

.product-tabs__panel.is-active {
  display: block;
}

.spec-table {
  max-width: 760px;
  font-size: 13.5px;
}

.spec-table tr {
  border-bottom: 1px solid var(--line);
}

.spec-table th,
.spec-table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 44%;
  padding-right: 20px;
  font-weight: 400;
  color: var(--muted);
}

.spec-table td {
  color: var(--ink-2);
  font-weight: 500;
}

.prose {
  max-width: 820px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 10px;
}

.prose ul,
.prose ol {
  margin: 10px 0;
  padding-left: 20px;
  list-style: disc;
}

.prose li + li {
  margin-top: 4px;
}

.prose h2,
.prose h3 {
  margin: 24px 0 8px;
}

.prose table {
  margin: 14px 0;
  font-size: 13px;
}

.prose th,
.prose td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section--related {
  padding-bottom: 20px;
}

/* ── Cart ────────────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
  padding-bottom: 30px;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-row {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-row__media {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
}

.cart-row__media .pvar {
  padding: 10px;
}

.cart-row__media .pvar__icon {
  width: 54%;
  height: 54%;
}

.cart-row__media .pvar__spec {
  font-size: 10px;
}

.cart-row__media .pvar__brand {
  display: none;
}

.cart-row__brand {
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

.cart-row__main h2 {
  margin: 4px 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.cart-row__main h2 a:hover {
  color: var(--accent);
}

.cart-row__meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.cart-row__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-row__remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  color: var(--muted);
}

.cart-row__remove:hover {
  color: var(--danger);
}

.cart-row__price {
  text-align: right;
  white-space: nowrap;
}

.cart-row__price b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.cart-row__price span {
  font-size: 10.5px;
  color: var(--muted-2);
}

.cart-summary {
  position: sticky;
  top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-summary h2 {
  margin-bottom: 14px;
  font-size: 19px;
}

.cart-summary__list {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-summary__list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.cart-summary__list dd {
  color: var(--ink-2);
  font-weight: 600;
}

.cart-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.cart-summary__total span {
  font-size: 12.5px;
  color: var(--muted);
}

.cart-summary__total b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-summary .btn {
  margin-bottom: 8px;
}

.cart-summary__notes {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-summary__notes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.cart-summary__notes .icon {
  color: var(--accent);
  margin-top: 1px;
}

/* ── Checkout ────────────────────────────────────────────────────────────── */
.checkout__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
  padding-bottom: 30px;
}

.checkout__form {
  display: grid;
  gap: 14px;
}

.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 17px;
}

.form-card h2 span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.radio-cards--inline {
  grid-template-columns: 1fr 1fr;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio-card input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.radio-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.radio-card small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
}

.checkout__address {
  display: none;
}

.checkout__address.is-visible {
  display: grid;
}

.checkout__summary {
  position: sticky;
  top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.checkout__summary h2 {
  margin-bottom: 14px;
  font-size: 19px;
}

.checkout__items {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout__items li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout__thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--tile-bg);
  color: var(--tile-ink);
  flex: none;
}

.checkout__thumb svg {
  width: 24px;
  height: 24px;
}

.checkout__item-main {
  flex: 1;
  min-width: 0;
}

.checkout__item-main b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

.checkout__item-main small {
  font-size: 10.5px;
  color: var(--muted);
}

.checkout__item-sum {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.checkout__summary .cart-summary__list {
  padding-top: 12px;
}

.checkout__note {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted-2);
}

.check-row--consent {
  margin-top: 4px;
}

/* ── Success ─────────────────────────────────────────────────────────────── */
.success {
  max-width: 720px;
  margin: 20px auto 40px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.success__icon .icon {
  width: 30px;
  height: 30px;
}

.success h1 {
  margin: 10px 0;
  font-size: clamp(26px, 3vw, 36px);
}

.success > p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.success__card {
  margin: 26px 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-3);
  text-align: left;
}

.success__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.success__row span {
  color: var(--muted);
}

.success__items {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.success__items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.success__items b {
  font-family: var(--font-display);
  font-size: 12px;
}

.success__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.success__note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted-2);
}

/* ── Info pages ──────────────────────────────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 46px;
  align-items: start;
  padding: 18px 0 30px;
}

.page-body h1 {
  margin: 10px 0 20px;
  font-size: clamp(30px, 3.4vw, 44px);
}

.page-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.aside-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.aside-card b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.aside-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.aside-card__phone {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
}

.aside-card > span {
  font-size: 11px;
  color: var(--muted-2);
}

.aside-card--links a {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.aside-card--links a:last-child {
  border-bottom: 0;
}

.aside-card--links a:hover {
  color: var(--accent);
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--accent-2);
  color: #fff;
}

.inline-cta b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.inline-cta p {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Contacts ────────────────────────────────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-card b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-card a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card span:not(.contact-card__icon) {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.map-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.map-card__map {
  position: relative;
  min-height: 380px;
  background: #e7ece4;
  overflow: hidden;
}

.map-card__grid {
  position: absolute;
  inset: -20%;
  background-image: linear-gradient(rgba(15, 107, 79, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(15, 107, 79, 0.1) 2px, transparent 2px);
  background-size: 56px 56px;
  transform: rotate(-8deg);
}

.map-card__grid::after {
  content: "";
  position: absolute;
  left: 18%;
  top: -10%;
  width: 16px;
  height: 130%;
  background: rgba(239, 159, 34, 0.35);
  transform: rotate(24deg);
}

.map-card__pin {
  position: absolute;
  left: 52%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(15, 107, 79, 0.6);
}

.map-card__pin .icon {
  width: 26px;
  height: 26px;
}

.map-card__label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-card__label b {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.map-card__label span {
  font-size: 11px;
  color: var(--muted);
}

.map-card__side {
  padding: 32px;
}

.map-card__side h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.map-card__side > p {
  color: var(--muted);
  font-size: 13.5px;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber);
}

.map-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.requisites {
  margin: 18px 0 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.requisites b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.requisites div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ── Services page extras ────────────────────────────────────────────────── */
.tariff-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--accent-2);
  color: #fff;
  align-items: center;
}

.tariff-card h2 {
  margin: 10px 0 12px;
  color: #f7f2e6;
  font-size: 26px;
}

.tariff-card p {
  margin-bottom: 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}

.tariff-table {
  font-size: 13px;
}

.tariff-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tariff-table th {
  padding: 10px 0;
  font-weight: 400;
  text-align: left;
  color: rgba(255, 255, 255, 0.6);
}

.tariff-table td {
  padding: 10px 0;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--amber);
}

.service-price {
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.service-price b {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}

/* ── Error page ──────────────────────────────────────────────────────────── */
.error-page {
  max-width: 560px;
  margin: 60px auto 80px;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent-soft);
}

.error-page h1 {
  margin: 8px 0 10px;
  font-size: 32px;
}

.error-page p {
  color: var(--muted);
  font-size: 14px;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  margin-top: 76px;
  background: var(--accent-2);
  color: rgba(255, 255, 255, 0.6);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr;
  gap: 40px;
  padding: 48px 0 36px;
}

.logo--footer .logo__text b {
  color: #f7f2e6;
}

.logo--footer .logo__text span {
  color: rgba(255, 255, 255, 0.4);
}

.footer__brand p {
  max-width: 320px;
  margin: 14px 0 16px;
  font-size: 12.5px;
  line-height: 1.55;
}

.footer__phone {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #f7f2e6;
}

.footer__mail {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}

.footer__brand a:hover {
  color: #fff;
}

.footer__hours {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.footer__title {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer__col ul {
  display: grid;
  gap: 7px;
}

.footer__col a {
  font-size: 12.5px;
}

.footer__col a:hover {
  color: #fff;
}

.footer__pay {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__pay span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__pay b {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__disclaimer {
  margin-left: auto;
}

.footer__crm {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__crm:hover {
  color: #fff;
}

/* ── Mobile bar ──────────────────────────────────────────────────────────── */
.mobile-bar {
  display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .header__phone {
    display: none;
  }

  .hero__in {
    gap: 36px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid--catalog {
    grid-template-columns: repeat(3, 1fr);
  }

  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero__in {
    grid-template-columns: 1fr;
    padding: 46px 0 56px;
  }

  .hero__showcase {
    max-width: 560px;
  }

  .hero__stats {
    margin-top: 26px;
  }

  .cart-layout,
  .checkout__layout {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout__summary {
    position: static;
  }

  .catalog-layout {
    grid-template-columns: 236px 1fr;
    gap: 22px;
  }

  .page-layout {
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }

  .product {
    gap: 32px;
  }

  .b2b {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-strip {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .header__in {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0 14px;
    gap: 10px;
  }

  .logo {
    margin-right: auto;
  }

  .catalog-btn {
    display: none;
  }

  .searchbar {
    order: 5;
    flex-basis: 100%;
    height: 44px;
  }

  .header__cart {
    border-left: 0;
    padding-left: 0;
  }

  .header__cart-text {
    display: none;
  }

  .burger {
    display: grid;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 150;
    width: min(360px, 92vw);
    border-radius: 0;
    border: 0;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lg);
  }

  .filters.is-open {
    transform: translateX(0);
  }

  .filters__close {
    display: grid;
  }

  .filters__head {
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .catalog-bar {
    flex-wrap: wrap;
  }

  .catalog-sort {
    margin-left: auto;
  }

  .catalog-sort .input {
    min-width: 170px;
  }

  .filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(8, 22, 18, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .filters-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .map-card {
    grid-template-columns: 1fr;
  }

  .map-card__map {
    min-height: 280px;
  }

  .tariff-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 64px;
  }

  .container {
    width: min(var(--container), 100% - 32px);
  }

  .header__in {
    padding: 10px 0 12px;
  }

  .logo__mark {
    width: 38px;
    height: 38px;
  }

  .logo__text b {
    font-size: 20px;
  }

  .header__cart-icon {
    width: 38px;
    height: 38px;
  }

  .burger {
    width: 38px;
    height: 38px;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero__stats dt {
    font-size: 22px;
  }

  .hero__search {
    flex-wrap: wrap;
    padding: 8px;
  }

  .hero__search .icon {
    margin-left: 6px;
  }

  .hero__search input {
    flex-basis: calc(100% - 40px);
    height: 40px;
  }

  .hero__search .btn {
    width: 100%;
  }

  .usp {
    margin-top: -18px;
  }

  .usp__grid {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .usp__item {
    border-radius: 12px !important;
    padding: 16px;
  }

  .section {
    padding-top: 46px;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .products-grid,
  .products-grid--catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pcard__body {
    padding: 10px;
  }

  .pcard__sku {
    display: none;
  }

  .pcard__name {
    font-size: 13px;
  }

  .pcard__spec {
    display: none;
  }

  .pcard__price-main b {
    font-size: 16px;
  }

  .pcard__add-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
  }

  .pcard__add-btn span {
    display: none;
  }

  .cat-card {
    padding: 16px;
  }

  .cats {
    grid-template-columns: 1fr;
  }

  .cat-card__list {
    display: none;
  }

  .cat-card__head {
    margin-bottom: 0;
  }

  .cat-card__all {
    margin-top: 10px;
  }

  .b2b {
    padding: 26px 20px;
    border-radius: var(--radius);
  }

  .b2b__facts {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product__frame {
    aspect-ratio: 4 / 3;
  }

  .product__form {
    flex-wrap: wrap;
  }

  .product__add {
    flex-basis: 100%;
  }

  .product__secondary {
    flex-direction: column;
  }

  .cart-row {
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }

  .cart-row__media {
    width: 78px;
    height: 78px;
  }

  .cart-row__price {
    grid-column: 2;
    text-align: left;
    margin-top: 2px;
  }

  .cart-row__price b {
    display: inline;
    margin-right: 6px;
  }

  .cart-row__controls {
    flex-wrap: wrap;
    gap: 10px;
  }

  .success {
    padding: 26px 18px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .map-card__side {
    padding: 22px;
  }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .radio-cards {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: 48px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 0 24px;
  }

  .footer__disclaimer {
    margin-left: 0;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(16, 32, 27, 0.35);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bar a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 0 7px;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--muted);
  }

  .mobile-bar a.is-active,
  .mobile-bar a:hover {
    color: var(--accent);
  }

  .mobile-bar .icon {
    width: 21px;
    height: 21px;
  }

  .mobile-bar__badge {
    position: absolute;
    top: 4px;
    left: 50%;
    margin-left: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
  }

  .mobile-bar__badge[data-empty="true"],
  .mobile-bar__badge:empty {
    display: none;
  }

  .toast {
    bottom: 78px;
  }

  .page-aside {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    display: none;
  }

  .showcase__card {
    padding: 9px;
  }

  .showcase__tile {
    width: 46px;
    height: 46px;
  }

  .showcase__price b {
    font-size: 13px;
  }

  .pcard__badges .badge--hit {
    display: none;
  }

  .catalog-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .catalog-head__count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }

  .catalog-head__count b {
    font-size: 26px;
  }

  .catalog-bar__found {
    display: none;
  }

  .catalog-sort label {
    display: none;
  }

  .catalog-sort .input {
    min-width: 0;
    width: 100%;
  }

  .catalog-sort {
    flex: 1;
  }

  .product-tabs__nav {
    overflow-x: auto;
  }

  .product-tabs__nav button {
    white-space: nowrap;
    padding: 12px 10px;
    font-size: 12.5px;
  }

  .product__media-notes {
    gap: 6px 12px;
  }

  .radio-cards--inline {
    grid-template-columns: 1fr;
  }
}

/* Category label inside product tiles */
.pvar__cat {
  position: absolute;
  top: 12px;
  right: 14px;
  left: auto;
  text-align: right;
  z-index: 1;
  max-width: 72%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product__frame .pvar__cat {
  top: 24px;
  right: 30px;
  left: auto;
  font-size: 11px;
}

/* В карточке подпись категории не нужна — её заменяют хлебные крошки и фильтры */
.pcard .pvar__cat {
  display: none;
}

.pcard .pvar__spec {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: -6px;
  width: fit-content;
  max-width: calc(100% + 6px);
}

.cart-row__media .pvar__cat {
  display: none;
}

.check-row--consent {
  margin-top: 12px;
  align-items: center;
}

.checkout__delivery-note {
  margin: -4px 0 12px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted-2);
}
