/* ============================================================
   СТРОЙSHOP — компоненты страниц
   ============================================================ */

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

.cat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.cat-side {
  position: sticky;
  top: 96px;
  max-height: calc(100svh - 120px);
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 6px;
}

.cat-side h3 {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.side-group { margin-bottom: 26px; }

.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .25s, color .25s, background .25s;
}

.side-link small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.side-link:hover { border-color: var(--line-2); background: #fafafa; }
.side-link.active { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.side-link.sub { padding-left: 22px; font-size: 14.5px; font-weight: 400; }

.cat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  position: sticky;
  top: 71px; /* впритык под шапку (72px), без щели */
  z-index: 20;
  background: var(--bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0 14px;
  height: 46px;
  background: var(--bg);
  transition: border-color .25s;
}

.search:focus-within { border-color: var(--ink); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; width: 100%; height: 100%; background: none; font-size: 15px; }

.sel {
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0 12px;
  background: var(--bg);
  font-size: 14.5px;
  cursor: pointer;
}

.found-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prod {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 18px 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
  text-align: left;
  width: 100%;
  min-width: 0;
  position: relative;
}

.prod:hover { border-color: var(--accent); transform: translateY(-3px); }

/* фото в карточке: во всю ширину, без отступов сверху/по бокам */
.prod .p-media {
  display: block;
  margin: -18px -18px 2px;
  border-bottom: 1px solid var(--line);
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  background: #f4f4f5;
}

.prod .p-media img,
.prod .p-media video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}

.prod:hover .p-media img,
.prod:hover .p-media video { transform: scale(1.045); }

.prod.has-img { min-height: 0; }

.prod .p-vid {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

.prod .p-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.prod h3 {
  margin: 0; font-size: 16.5px; font-weight: 500; letter-spacing: 0; line-height: 1.3; text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod .p-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prod .p-price { font-family: var(--font-mono); font-size: 17px; font-weight: 500; white-space: nowrap; }
.prod .p-unit { font-size: 12px; color: var(--muted); font-family: var(--font-mono); font-weight: 400; }

/* кнопка «В корзину»: одинаковый размер во всех карточках каталога,
   витрины и мобильной сетки — фикс-высота, текст всегда в одну строку */
.p-cart {
  height: 44px;
  min-width: 128px;
  padding: 0 20px;
  flex: none;
  justify-content: center;
}

.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.status.order i { background: var(--line-2); box-shadow: inset 0 0 0 1.5px var(--muted); }

.fav {
  position: absolute;
  top: 14px; right: 14px;
  opacity: 0;
}

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

.chip {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .25s var(--ease);
  white-space: nowrap;
}

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

.load-more { display: flex; justify-content: center; padding-top: 34px; }

.empty {
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.empty b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 17px; }

/* ---------- Диалог товара ---------- */

dialog.pd {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
}

dialog.pd::backdrop { background: rgba(10, 10, 10, .5); }

.pd-in { padding: 28px; }

/* медиа-блок товара: фото и/или видео */
.pd-media { display: grid; gap: 10px; margin: 4px 0 14px; }
.pd-media[hidden] { display: none; }
.pd-media .pd-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: block;
}
.pd-media .pd-video {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: #0a0a0a;
  display: grid;
}
.pd-media .pd-video iframe, .pd-media .pd-video video {
  width: 100%; height: 100%; border: 0; display: block;
}
.pd-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.pd-head h3 { margin: 0; font-size: 22px; }
.pd-close { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; flex: none; transition: all .25s; }
.pd-close:hover { border-color: var(--ink); transform: rotate(90deg); }
.pd-close svg { width: 14px; height: 14px; }

.pd-rows { display: grid; gap: 0; margin: 18px 0 22px; }
.pd-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.pd-rows dt { color: var(--muted); }
.pd-rows dd { margin: 0; font-weight: 500; text-align: right; }

.pd-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-cta .btn { flex: 1 1 160px; }

/* ---------- Отзывы ---------- */

.rate-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.rate-big {
  font-size: clamp(4.4rem, 10vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
}

.rate-big small { display: block; font-size: 13px; font-family: var(--font-mono); font-weight: 400; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }

.hist { display: grid; gap: 7px; min-width: min(380px, 100%); }

.hist-row { display: grid; grid-template-columns: 34px 1fr 44px; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.hist-bar { height: 8px; background: #f0f0f2; border-radius: 100px; overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: var(--accent); border-radius: 100px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.vis .hist-bar i { transform: scaleX(var(--w, 1)); }

.stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }

.rev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.rev {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  transition: border-color .25s;
}

.rev:hover { border-color: var(--ink); }
.rev-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rev-top b { font-size: 15.5px; }
.rev-top time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.rev p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.rev .rev-src { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.rev .rev-src i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Контакты и карта ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.nap { display: grid; }
.nap > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.nap > div:first-child { padding-top: 0; }
.nap dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.nap dd { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; line-height: 1.35; }
.nap dd small { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.nap a:hover { color: var(--accent); }

.map-card {
  border: 1px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  min-height: 460px;
  display: grid;
}

.map-poster {
  position: relative;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(-45deg, #fafafa 0 14px, #f4f4f5 14px 28px);
  padding: 32px;
  text-align: center;
  min-height: 460px;
}

.map-poster .mp-in { max-width: 340px; display: grid; gap: 12px; justify-items: center; }
.map-poster .mp-pin { width: 44px; height: 44px; color: var(--accent); }

.map-frame { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(1) contrast(1.04); }

.map-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.map-haze i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--ink); }
.map-haze i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.map-haze i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.map-haze i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.map-haze i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.map-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 270px;
  box-shadow: 4px 4px 0 var(--accent-soft);
}

.map-badge b { display: block; font-size: 14.5px; }

.route-list { display: grid; gap: 10px; margin-top: 20px; }
.route-list li { list-style: none; display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.route-list li::before { content: "→"; font-family: var(--font-mono); color: var(--accent); flex: none; }

/* ---------- Услуги / преимущества (тайм-лайн) ---------- */

.serv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.serv {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: border-color .25s, transform .25s var(--ease);
}

.serv:hover { border-color: var(--accent); transform: translateY(-3px); }
.serv .s-ico { width: 40px; height: 40px; color: var(--accent); }
.serv .s-ico svg { width: 100%; height: 100%; }
.serv p { margin: 0; color: var(--muted); font-size: 15px; }

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

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Прозаические страницы (политики) ---------- */

.prose { max-width: 78ch; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 1em 0; }
.prose .doc-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; display: grid; gap: 4px; margin-bottom: 34px; }

/* ---------- CTA-блок ---------- */

.cta-band {
  border-top: 1px solid var(--ink);
  background: var(--bg);
}

.cta-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}

.cta-in h2 { margin: 0; max-width: 20ch; }
.cta-in .cta-actions { display: grid; gap: 10px; justify-items: stretch; min-width: min(320px, 100%); }

/* ---------- Cookie-баннер (152-ФЗ / 167-ФЗ) ---------- */

.ccookie {
  position: fixed;
  z-index: 120;
  left: 16px; right: 16px; bottom: 16px;
  margin-inline: auto;
  max-width: 520px;
  max-height: calc(100svh - 24px);
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--accent-soft);
  padding: 22px;
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
}

.ccookie.show { transform: none; opacity: 1; }

.ccookie h3 { font-size: 17px; margin-bottom: 8px; }
.ccookie p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.ccookie p a { text-decoration: underline; text-underline-offset: 3px; }
.ccookie p a:hover { color: var(--accent); }

.cc-cats { display: grid; gap: 8px; margin-bottom: 16px; }

.cc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 14px;
}

.cc-cat .cc-name { font-size: 13.5px; font-weight: 500; }
.cc-cat .cc-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 100px; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .5; }
.switch input:disabled { cursor: default; }

.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-actions .btn { padding: 12px 10px; font-size: 14px; }
.cc-more { width: 100%; text-align: center; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding-top: 10px; }
.cc-more:hover { color: var(--accent); }

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  z-index: 160;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .35s var(--ease);
}

.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: var(--accent); }
/* в графитовой теме акцент на тёмном тосте не виден */
html[data-accent="graphite"] .toast b { color: #d6d6dc; }

/* ---------- Админка ---------- */

.adm { padding: calc(72px + 40px) 0 80px; }

.adm-gate {
  max-width: 420px;
  margin: 8vh auto 0;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 34px 30px;
  display: grid;
  gap: 14px;
}

.adm-gate input {
  height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0 16px;
  font-size: 18px;
  letter-spacing: .3em;
  text-align: center;
  outline: none;
}

.adm-gate input:focus { border-color: var(--ink); }
.adm-gate .hint { font-size: 12.5px; color: var(--muted); text-align: center; }
.adm-gate .err { color: #c62828; font-size: 13px; text-align: center; min-height: 18px; }

.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 26px; }
.adm-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.adm-head .spacer { flex: 1; }

.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 28px; }

.adm-tabs button {
  padding: 12px 18px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.adm-tabs button:hover { color: var(--ink); }
.adm-tabs button.active { color: var(--ink); border-color: var(--accent); }

.adm-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.adm-bar .search { flex: 1 1 200px; max-width: 380px; }

.adm-table-wrap { border: 1px solid var(--line); border-radius: 4px; overflow: auto; max-height: 66vh; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.adm-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.adm-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:hover td { background: #fafafa; }
.adm-table .t-price { font-family: var(--font-mono); white-space: nowrap; }
.adm-table .t-name { font-weight: 500; max-width: 340px; }
.adm-table select, .adm-table input[type="text"], .adm-table input[type="number"] {
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 13.5px;
  background: var(--bg);
}
.adm-table input[type="number"] { width: 110px; font-family: var(--font-mono); }

.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 3px; display: inline-grid; place-items: center; transition: all .2s; }
.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.icon-btn.danger:hover { background: #c62828; border-color: #c62828; }
.icon-btn svg { width: 14px; height: 14px; }

.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.adm-card { border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.adm-card h3 { margin: 0; font-size: 16px; }
.adm-card .a-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.adm-card .a-row input[type="text"] { flex: 1; }

.adm-form { max-width: 640px; display: grid; gap: 14px; }
.adm-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.adm-form label span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.adm-form input[type="text"], .adm-form input[type="tel"], .adm-form input[type="url"], .adm-form textarea, .adm-form select {
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--bg);
  outline: none;
}
.adm-form input:focus, .adm-form textarea:focus { border-color: var(--ink); }
.adm-form textarea { min-height: 90px; resize: vertical; }

.adm-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 20px 0;
}
.adm-note b { display: block; margin-bottom: 4px; }
.adm-note code { font-family: var(--font-mono); background: #f4f4f5; padding: 1px 6px; border-radius: 3px; font-size: 12.5px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.stat-card b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-card span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ---------- Отзыв-карточка добавления ---------- */

.rev-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 24px 26px;
  margin-bottom: 26px;
  box-shadow: 5px 5px 0 var(--accent-soft);
}

.rev-cta p { margin: 0; font-weight: 500; font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 40ch; }
.rev-cta .rc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Мелочи ---------- */

.img-band { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.img-band img { width: 100%; height: clamp(280px, 44vw, 520px); object-fit: cover; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }

.list-check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--ink-2); }
.list-check li::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; border-radius: 1px; transform: rotate(45deg) translateY(-1px); }

.price-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 3px;
  transition: top .3s;
}
.skip-link:focus { top: 12px; }

@media (max-width: 1080px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; max-height: none; display: none; }
  .cat-side.open { display: block; border: 1px solid var(--line); border-radius: 4px; padding: 18px; margin-bottom: 20px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .rate-head { grid-template-columns: 1fr; gap: 20px; }
  .side-toggle { display: inline-flex !important; }
}

@media (max-width: 640px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod { padding: 14px 13px 12px; min-height: 0; gap: 9px; }
  .prod .p-media { margin: -14px -13px 0; }
  .prod h3 { font-size: 14px; -webkit-line-clamp: 2; }
  .prod .p-price { font-size: 15px; }
  .prod .p-bottom { flex-direction: column; align-items: flex-start; gap: 5px; }
  .cat-tools { top: 71px; padding: 10px 0; }
  .cta-in { grid-template-columns: 1fr; }
  .cc-actions { grid-template-columns: 1fr; }
  .ccookie { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  /* iOS: поля не должны зумиться при фокусе */
  .search input, .sel, .adm-form input, .adm-form textarea, .adm-form select, .adm-gate input { font-size: 16px; }
}

.side-toggle { display: none; align-items: center; gap: 8px; }
