:root {
  --bg: #fff;
  --bg-soft: #f6f7f9;
  --card: #fff;
  --ink: #151515;
  --muted: #6b6e76;
  --line: rgba(17, 17, 17, 0.08);
  --accent: #E30613;
  --accent-hover: #c10510;
  --shadow: 0 18px 50px rgba(20, 20, 30, 0.06);
}

html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-padding-top: calc(var(--top-h, 80px) + 12px); }
body { background: var(--bg); color: var(--ink); padding-top: var(--top-h, 80px); padding-bottom: var(--cookie-h, 0px); }
.menu-btn {
  appearance: none; -webkit-appearance: none; -webkit-text-fill-color: var(--ink);
  color: var(--ink); background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.16); font-family: inherit; font-size: 14px;
  font-weight: 600; line-height: 1; align-items: center; justify-content: center;
}
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top.scrolled { box-shadow: 0 8px 24px rgba(20, 20, 30, 0.06); }
.btn-dark { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-dark:hover { background: var(--accent-hover); }
.btn-line { background: #fff; }
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.red { color: var(--accent); }
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 36;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: #151515; color: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 62em; font-size: 14px; line-height: 1.45; }
.cookie-bar a { color: #fff; }
.cookie-bar button {
  flex: none; border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  min-height: 44px; padding: 0 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.float-dock {
  position: fixed; right: 22px; bottom: calc(22px + var(--cookie-h, 0px)); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.float-btn {
  width: 46px; height: 46px; border: 0; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 20, 30, 0.16);
}
.float-btn svg { width: 22px; height: 22px; display: block; }
.float-max {
  background: linear-gradient(145deg, #2563eb 0%, #5b3df5 52%, #c026d3 100%);
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: -0.04em;
}
.float-max:hover { filter: brightness(1.08); color: #fff; }
.float-wa { background: #25D366; }
.float-wa:hover { background: #1ebe5d; color: #fff; }
.float-tg { background: #2AABEE; }
.float-tg:hover { background: #1e96d4; color: #fff; }
.float-mail { background: #151515; }
.float-mail:hover { background: #2a2a2a; color: #fff; }
.float-note {
  position: absolute; right: 56px; top: 6px; margin: 0;
  padding: 8px 10px; border-radius: 10px; background: #151515; color: #fff;
  font-size: 13px; line-height: 1.2; white-space: nowrap;
  opacity: 0; pointer-events: none;
}
.float-note.show { opacity: 1; }
.float-dock #back-top {
  position: static; right: auto; bottom: auto; margin: 0;
  background: var(--accent); color: #fff; z-index: auto;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.28);
}
.top.open { z-index: 50; }
.kicker { display: block; max-width: 100%; overflow-wrap: anywhere; }
.kicker .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.lh-hero-grid > *, .niche-grid > *, .mat-split > *, .zayavka > *,
.catalog-layout > *, .about-grid > *, .contact-grid > *, .product-layout > * { min-width: 0; }
.lh-marquee, .table-scroll, .wrap { max-width: 100%; }
.lh-marquee, .table-scroll { width: 100%; contain: inline-size; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand img { height: 58px; width: auto; display: block; }

.about-copy { display: grid; gap: 14px; max-width: 740px; }
.about-copy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.about-copy a, .cards .card a { color: var(--accent); }
.delivery-note { margin-top: 18px; max-width: none; }
.top-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.nav { display: flex; gap: 14px; margin-left: 8px; }
.nav a {
  white-space: nowrap; text-decoration: none; font-size: 14px; color: #3a3a3a;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.nav a.active:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.phones { display: flex; flex-direction: column; line-height: 1.2; }
.phone { text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 14px; color: var(--ink); }
.search {
  display: flex; width: 196px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; flex: 0 0 auto;
}
.search input { border: 0; min-width: 0; flex: 1; height: 36px; padding: 0 12px; background: transparent; font-size: 13px; }
.search input:focus { outline: none; }
.search button {
  border: 0; background: transparent; color: var(--ink); width: 34px; padding: 0; font-size: 0; cursor: pointer;
}
.search button::before { content: "⌕"; font-size: 16px; }
.mobile-tools { display: none; padding-bottom: 16px; }
.mobile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mobile-links a {
  flex: 1 1 calc(50% - 8px); min-height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; text-decoration: none; font-weight: 600;
}

.lh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 760px;
  padding: 56px 0 64px;
  background: #f7f5f3;
}
.lh-hero .wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.lh-hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.22);
  transform-origin: right center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 42%);
}
.lh-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #f7f5f3 0%, #f7f5f3 32%, rgba(247,245,243,.4) 46%, rgba(247,245,243,0) 60%);
}
.lh-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 40px; align-items: center; width: 100%; }
.hero-lead {
  justify-self: end;
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(20, 20, 30, 0.12);
  padding: 26px 24px 18px;
  display: grid;
  gap: 12px;
}
.hero-lead b { font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.hero-lead > p { margin: -4px 0 2px; color: #727272; font-size: 14px; }
.hero-lead input {
  width: 100%;
  min-width: 0;
  background: #f6f6f6;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.hero-lead input:focus { outline: none; border-color: var(--accent); background: #fff; }
.hero-lead-row { display: flex; gap: 10px; align-items: stretch; }
.hero-lead-row input { flex: 1; }
.hero-lead-row .btn { flex: 0 0 auto; min-height: 50px; padding: 0 18px; border-radius: 12px; }
.hero-lead .fine { margin: 0; text-align: center; font-size: 11px; line-height: 1.45; color: #8a8a8a; }
.hero-lead .fine a { color: inherit; text-decoration: underline; }
.hero-lead .form-ok { margin: 0; text-align: center; }
.lh-hero h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; max-width: min(11em, 100%); }
.lh-hero .lead { margin-top: 16px; max-width: 540px; color: #3a3d44; font-size: 16px; }
.lh-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 28px; }
.lh-stats div { margin: 0; padding: 0; }
.lh-stats b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.cards.cards-2 { grid-template-columns: 1fr 1fr; }

.picker {
  position: relative;
  z-index: 1;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  box-shadow: var(--shadow); display: grid; gap: 12px; min-width: 0;
}
.picker-head, .picker-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.picker-head span {
  font-size: 12px; color: var(--accent); background: #fff1f2; border-radius: 999px; padding: 4px 8px; font-weight: 700;
  white-space: normal;
}
.agree {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: var(--muted);
}
.agree span { min-width: 0; flex: 1 1 auto; }
.niche-hero b, .niche-hero em, .niche-pair em, .niche-right em { min-width: 0; overflow-wrap: anywhere; }
.agree input { width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.picker-visual { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; background: var(--bg-soft); border-radius: 16px; padding: 10px; }
.picker-tag { background: #fff; border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.picker-tag strong { font-size: 13px; }
.picker-tag small, .picker fieldset legend, .fine { color: var(--muted); }
.picker-visual img { width: 100%; height: 112px; object-fit: cover; border-radius: 12px; }
.picker fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.picker legend { font-size: 12px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 32px; padding: 0 10px;
  cursor: pointer; font-size: 13px;
}
.chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.picker-summary { font-size: 13px; }
.picker .btn { width: 100%; }

.lh-marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 12px 0; color: var(--muted); }
.lh-marquee .marquee-group { gap: 28px; }

.section-head h2 { letter-spacing: -0.045em; font-weight: 800; max-width: 12em; line-height: 0.98; }
.niche-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.niche-left, .niche-pair, .niche-right { display: grid; gap: 12px; }
.niche-pair, .niche-right { grid-template-columns: 1fr 1fr; }
.niche-hero, .niche-pair a, .niche-right a, .niche-black {
  border-radius: 18px; background: var(--bg-soft); text-decoration: none; position: relative; overflow: hidden;
}
.niche-pair a, .niche-right a { min-height: 118px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.niche-hero { min-height: 280px; aspect-ratio: 16 / 9; color: #fff; }
.niche-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
.niche-hero span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  display: grid;
}
.niche-hero small, .niche-pair small, .niche-right small { color: var(--muted); font-size: 12px; }
.niche-hero small { color: rgba(255,255,255,.8); }
.niche-black {
  grid-column: 1 / -1; min-height: 92px; background: #151515; color: #fff; border: 0; text-align: left;
  padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
}
.niche-black b { font-size: 18px; max-width: 16em; }
.niche-black .niche-black-copy {
  width: auto; height: auto; display: grid; gap: 4px; min-width: 0;
  border-radius: 0; background: transparent; place-items: start;
}
.niche-black-copy em { font-style: normal; font-weight: 500; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.82); }
.niche-black span {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}

.mat-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: stretch; }
.mat-split figure { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: #111; }
.mat-split img { display: block; width: 100%; height: auto; object-fit: contain; }
.mat-split figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 8px;
}
.mat-split figcaption span { background: rgba(255,255,255,.92); border-radius: 12px; padding: 8px 10px; font-size: 13px; font-weight: 700; }
.mat-split figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.mat-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mat-list a {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.mat-list small { color: var(--muted); }
.mat-list em { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.mat-list i { font-style: normal; color: var(--accent); font-size: 12px; font-weight: 700; }

.prod-panel { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; color: #fff; }
.prod-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-copy { position: relative; z-index: 1; max-width: 360px; padding: 28px; }
.prod-copy b { font-size: 28px; display: block; }
.prod-copy b span { font-size: 72px; line-height: .9; display: block; color: var(--accent); }
.prod-panel ol {
  position: relative; z-index: 1; list-style: none; margin: 180px 16px 16px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.prod-panel li { background: rgba(255,255,255,.94); color: var(--ink); border-radius: 16px; padding: 14px; }
.prod-panel li small, .prod-panel li em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.prod-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.5), transparent 52%); pointer-events: none; }

.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.cmp th { background: var(--bg-soft); color: var(--ink); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:nth-child(2) { color: var(--ink); font-weight: 700; }
.cmp td:nth-child(2)::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.cmp td:nth-child(3) { color: var(--muted); }

.zayavka {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; background: var(--bg-soft);
  border-radius: 28px; padding: 28px;
}
.zayavka h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; font-weight: 800; line-height: 1.02; }
.z-contacts { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.z-contacts small { display: block; color: var(--muted); }
#lead { background: #fff; border-radius: 22px; padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow); }
#lead input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
#lead .agree input {
  width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px;
  padding: 0; border-radius: 4px; flex: 0 0 18px;
}
#lead input:focus { outline: none; border-color: var(--accent); }
.form-ok:empty { display: none; }
.form-ok { display: block; font-weight: 600; }

.page-head h1 {
  font-size: clamp(34px, 4vw, 52px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; max-width: 16em;
}
.page-head .lead { margin-top: 12px; max-width: 46em; color: #3a3d44; }
.cat-grid, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.cat-card, .product-card {
  display: flex; flex-direction: column; background: var(--bg-soft); border-radius: 22px; overflow: hidden;
  text-decoration: none; min-height: 260px; transition: transform .18s ease;
}
.cat-card:hover, .product-card:hover { transform: translateY(-2px); }
.cat-banner {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 260px; margin: 0; padding: 22px; border: 0; border-radius: 22px;
  background: #151515; color: #fff; text-align: left; cursor: pointer; font: inherit;
}
.cat-banner small { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cat-banner b { font-size: 28px; letter-spacing: -0.04em; line-height: 1.05; }
.cat-banner span { color: rgba(255,255,255,.72); font-size: 15px; max-width: 22em; }
.cat-banner i {
  align-self: flex-start; margin-top: 8px; font-style: normal; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 16px;
}
.cat-banner:hover i { background: var(--accent-hover); }
.cat-card img, .product-card .ph {
  width: 100%; height: auto; aspect-ratio: 1600 / 1069; max-width: none;
  object-fit: cover; object-position: center; background: #fff; display: block;
}
.product-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; object-position: center; background: #fff;
}
.card-shot {
  position: relative; display: block; overflow: hidden; background: #fff;
  aspect-ratio: 1600 / 1069; height: auto;
}
.card-marks {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  pointer-events: none;
}
.mark {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 8px 5px 6px; border-radius: 999px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  line-height: 1; text-transform: uppercase;
}
.mark svg { width: 12px; height: 12px; display: block; flex: none; }
.mark-new { background: var(--accent); }
.mark-hit { background: #151515; }
.cat-card b, .cat-card span, .product-card b, .product-card strong { padding: 0 16px; }
.cat-card b, .product-card b { margin-top: 14px; font-size: 18px; letter-spacing: -0.02em; }
.cat-card span { color: var(--muted); font-size: 13px; padding-bottom: 16px; }
.product-card strong { color: var(--accent); padding-bottom: 16px; margin-top: auto; }
.product-card .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.catalog-layout, .about-grid, .contact-grid, .product-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
.about-grid, .contact-grid, .product-layout { grid-template-columns: 1.15fr 0.85fr; }
.side {
  display: flex; flex-direction: column; gap: 4px; background: var(--bg-soft);
  border-radius: 22px; padding: 16px; position: sticky; top: 88px;
}
.side .kicker { margin-bottom: 8px; }
.side a { text-decoration: none; padding: 8px 10px; border-radius: 12px; }
.side a.active, .side a:hover { background: #fff; color: var(--ink); }
.side a.active { color: var(--accent); font-weight: 700; }
.ask-line {
  margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #151515; color: #fff; border-radius: 22px; padding: 22px 24px;
}
.ask-line p { margin: 4px 0 0; color: rgba(255,255,255,.72); }
.ask-line .btn { flex: 0 0 auto; }
.buy-card { background: var(--bg-soft); border-radius: 22px; padding: 22px; }
.buy-card .lead, .buy-card p { margin-top: 10px; }
.buy-card .price { margin-top: 16px; }
.product-tabs { margin-top: 42px; }
.product-tabs h2, .product-grid + h2, .wrap > h2, .folder-copy h2 {
  margin: 28px 0 12px; font-size: 28px; letter-spacing: -0.04em; font-weight: 800;
}
.product-tabs .rich, .spec-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.check-list p { position: relative; margin: 0 0 14px; padding-left: 16px; }
.check-list b { display: block; }
.check-list p::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.fact-list p { margin: 0 0 16px; }
.fact-list a { text-decoration: none; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 6px 0 16px; min-width: 0; }
.phone-grid a { white-space: nowrap; min-width: 0; }
.map-caption { margin: 22px 0 8px; color: var(--muted); }
.tabs, .pager { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { margin: 12px 0 18px; }
.tabs a, .pager a { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); }
.tabs a.active, .pager a.active { background: var(--accent); color: #fff; }
.crumbs { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.price { font-size: 36px; font-weight: 800; color: var(--accent); }
.product-photo {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.product-photo > img {
  display: block; width: 100%; height: auto; max-width: none; max-height: none;
  object-fit: contain; object-position: center; border-radius: 22px; background: #fff;
}
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; align-items: baseline; }
.specs dt { color: var(--muted); white-space: nowrap; }
.specs dd { margin: 0; }
@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr; gap: 2px; }
  .specs dt { white-space: normal; padding-top: 12px; }
  .specs dt:first-of-type { padding-top: 0; }
  .specs dd { font-weight: 650; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card:hover, .product-card:hover { transform: none; }
}
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 1.2em; }
.rich li { margin: 0 0 6px; }
.folder-copy { margin-top: 36px; }
.folder-copy .rich, .folder-copy .specs {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
}
.folder-copy .specs { margin: 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid div { background: var(--bg-soft); border-radius: 16px; padding: 16px; }
.stat-grid b { display: block; color: var(--accent); font-size: 28px; }
.about-photo { width: 100%; border-radius: 18px; height: 320px; object-fit: cover; }
.about-hero { text-align: center; }
.about-hero .crumbs { text-align: left; }
.about-hero .kicker { color: var(--accent); letter-spacing: 0.01em; text-transform: none; font-size: 15px; font-weight: 600; }
.about-hero h1 { margin: 8px auto 0; max-width: 12em; font-size: clamp(40px, 5.2vw, 68px); }
.about-hero h1 span { display: block; color: #8d9096; }
.about-hero .lead { margin: 16px auto 0; }
.hero-actions { align-items: center; }
.about-hero .hero-actions { justify-content: center; align-items: center; }
main > .section:last-child { padding-bottom: 56px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--accent-hover); }
.about-stage { position: relative; margin: 36px 0 0; }
.about-stage img {
  width: 100%; height: min(520px, 58vw); object-fit: cover; object-position: center 62%;
  border-radius: 28px; background: #f3f1ee;
}
.about-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 14px 8px 8px;
  box-shadow: 0 10px 28px rgba(20, 20, 30, 0.12); font-size: 14px; color: #3a3d44;
}
.about-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; flex: 0 0 auto; }
.about-chip i::before, .about-chip i::after {
  content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.about-chip i::before { width: 10px; height: 2px; }
.about-chip i::after { width: 2px; height: 10px; }
.about-chip b { color: var(--ink); }
.chip-a { left: 8%; bottom: 28%; }
.chip-b { right: 7%; bottom: 22%; }
.map { display: block; width: 100%; height: 420px; border: 0; border-radius: 18px; background: var(--bg-soft); }
.map-link { margin: 10px 0 0; }
.page-head { padding-top: 28px; padding-bottom: 48px; }
.stack-form, .modal-card form { display: grid; gap: 10px; }
.stack-form { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.stack-form h2 { font-size: 28px; letter-spacing: -0.04em; font-weight: 800; }
.stack-form input, .modal-card input, .modal-card textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.stack-form .agree input, .modal-card .agree input, form .agree input {
  width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; border-radius: 4px;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: var(--bg-soft); border-radius: 18px; padding: 18px; }

.footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); padding: 28px 0 18px; }
.footer .foot-grid a, .footer .foot-grid span, .footer .foot-bottom, .footer .foot-bottom a { color: var(--ink); }
.foot-bottom { border-top-color: var(--line); }
.footer .brand img { height: 52px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(17,17,17,.45); }
.modal-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 28px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-soft); cursor: pointer; }

@media (max-width: 1240px) and (min-width: 981px) {
  .search { width: 168px; }
  .nav { gap: 12px; }
  .top-actions { gap: 8px; }
  .phone { font-size: 13px; }
}
@media (max-width: 1100px) and (min-width: 981px) {
  .search { width: 150px; }
  .nav { gap: 8px; margin-left: 0; }
  .top-row { gap: 10px; }
  .top-actions .btn { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 980px) {
  html { scroll-padding-top: calc(var(--top-h, 72px) + 12px); }
  body { padding-top: var(--top-h, 72px); }
  .wrap, .table-scroll, .picker, .stack-form {
    width: min(1160px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }
  .lh-hero .lead, .page-head .lead, .fact-list p, .picker-summary, .picker-head span, .rich {
    overflow-wrap: anywhere;
  }
  .phone-grid a { white-space: normal; }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; max-width: 100%; }
  .brand img { height: 44px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
  .top { width: 100%; max-width: 100%; }
  .top-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 10px; min-height: 56px;
  }
  .menu-btn { display: inline-flex; grid-column: 2; grid-row: 1; margin-left: 0; }
  .top-actions, .nav, .top.open .top-actions { display: none; }
  .top.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; width: 100%;
    grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 6px 0 12px;
  }
  .lh-hero { display: block; min-height: 0; padding: 22px 0 28px; box-sizing: border-box; }
  .lh-hero .wrap { width: calc(100% - 32px); max-width: calc(100% - 32px); margin: 0 auto; }
  .lh-hero .lead { max-width: 100%; }
  .lh-hero-bg {
    inset: 0; width: 100%; height: 100%;
    transform: none;
    object-position: right center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 62%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 62%);
  }
  .lh-hero::before {
    background: linear-gradient(180deg, #f7f5f3 0%, rgba(247,245,243,.94) 58%, rgba(247,245,243,.35) 100%);
  }
  .lh-hero-grid { align-items: start; }
  .hero-lead { justify-self: stretch; width: 100%; }
  .hero-lead-row { flex-direction: column; }
  .hero-lead-row .btn { width: 100%; }
  .lh-hero h1 { font-size: clamp(30px, 8.4vw, 40px); max-width: 100%; overflow-wrap: break-word; }
  .lh-hero .lead { max-width: 100%; overflow-wrap: break-word; }
  .top.open { background: #fff; backdrop-filter: none; bottom: 0; overflow-y: auto; }
  .top.open .mobile-tools { display: block; }
  .top.open .mobile-tools .search, .top.open .mobile-tools .btn { width: 100%; }
  .lh-hero-grid, .niche-grid, .mat-split, .zayavka, .catalog-layout, .about-grid, .contact-grid, .product-layout, .cards, .cards.cards-2 {
    grid-template-columns: 1fr;
  }
  .side {
    position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; background: transparent; padding: 0 0 2px; border-radius: 0;
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { height: 0; }
  .side .kicker { display: none; }
  .side a { flex: 0 0 auto; white-space: nowrap; background: var(--bg-soft); border-radius: 999px; padding: 8px 12px; }
  .ask-line { flex-direction: column; align-items: flex-start; }
  .about-chip { position: static; margin: 8px 6px 0; }
  .about-stage { display: flex; flex-wrap: wrap; justify-content: center; }
  .about-stage img { height: 240px; }
  .prod-panel { display: flex; flex-direction: column; min-height: 0; color: var(--ink); }
  .prod-panel > img {
    position: relative; inset: auto; width: 100%; height: 240px;
    object-fit: cover; object-position: 78% 46%;
  }
  .prod-copy { position: relative; z-index: 1; max-width: none; padding: 16px 4px 0; }
  .prod-panel ol { grid-template-columns: 1fr 1fr; margin: 12px 0 0; }
  .prod-panel::after { display: none; }
  .cat-grid, .product-grid, .faq { grid-template-columns: 1fr 1fr; }
  .niche-hero { width: 100%; max-width: 100%; min-height: 200px; aspect-ratio: auto; }
  .niche-left, .niche-right, .niche-pair, .niche-grid { min-width: 0; max-width: 100%; }
  .niche-grid { display: flex; flex-direction: column; }
  .niche-left, .niche-right, .niche-pair { display: contents; }
  .niche-ord-1 { order: 1; }
  .niche-ord-2 { order: 2; }
  .niche-ord-3 { order: 3; }
  .niche-ord-4 { order: 4; }
  .niche-ord-5 { order: 5; }
  .niche-ord-6 { order: 6; }
  .niche-ord-7 { order: 7; }
  .niche-ord-8 { order: 8; }
  .niche-ord-6, .niche-ord-7, .niche-right a, .niche-black { width: 100%; }
  .product-photo > img { height: auto; }
}

@media (max-width: 640px) {
  .catalog-layout .side { display: none; }
  .cat-grid, .product-grid, .faq, .niche-pair, .niche-right, .prod-panel ol, .stat-grid, .cards { grid-template-columns: 1fr; }
  .lh-stats { grid-template-columns: 1fr; gap: 10px; }
  .z-contacts { flex-direction: column; gap: 10px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .picker-visual, .picker-row { grid-template-columns: 1fr; display: grid; }
  .picker-head { flex-wrap: wrap; align-items: flex-start; }
  .phone-grid { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: stretch; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .cookie-bar button { width: 100%; }
  .float-dock { right: 12px; bottom: calc(14px + var(--cookie-h, 0px)); gap: 6px; }
  .float-btn, .float-dock #back-top { width: 42px; height: 42px; }
  .float-btn svg { width: 20px; height: 20px; }
  .float-max { font-size: 12px; }
  .float-note { right: 50px; }
}

@media (max-height: 700px) {
  .float-dock { gap: 6px; }
  .float-btn, .float-dock #back-top { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .float-max:hover { filter: none; }
}

@media (min-width: 801px) {
  .faq { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 980px) {
  .wrap, .picker, .stack-form, .fact-list, .lh-hero .lead, .page-head .lead, .fact-list p, .picker-summary {
    max-width: calc(100vw - 36px);
    box-sizing: border-box;
  }
  .lh-hero .lead, .page-head .lead, .fact-list p, .picker-summary, .rich p {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .lh-hero { padding-left: 16px; padding-right: 16px; }
  .lh-hero .wrap { width: 100%; max-width: 100%; margin: 0; }
  .lh-hero .lead { display: block; width: auto; max-width: calc(100vw - 64px); }
  .picker-head { flex-wrap: wrap; align-items: flex-start; max-width: 100%; }
  .picker-head span { max-width: 100%; white-space: normal; }
  .picker-row fieldset:last-child { padding-right: 52px; }
  body > section, body > footer, body > header {
    max-width: 100vw;
    overflow-x: hidden;
  }
  p.lead, .fact-list p, .picker-summary, .page-head .lead, .rich p, .map-caption, .about-copy p, .about-copy li {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .lh-hero p.lead {
    max-width: calc(100vw - 72px) !important;
  }
}


