/* ===================== ТЕМЫ ===================== */
:root {
  --bg: #f4efe6;
  --bg2: #ebe3d4;
  --surface: #ffffff;
  --ink: #24201b;
  --muted: #6e655a;
  --line: #ddd3c1;
  --brand: #2e5a2b;
  --brand-h: #23471f;
  --brand-ink: #ffffff;
  --accent: #39772a;
  --accent-soft: #e3ebdb;
  --dark: #2a241e;
  --dark-ink: #efe8dc;
  --dark-muted: #b9ae9e;
  --top: #2e5a2b;
  --top-ink: #eaf0e4;
  --head: "Literata", Georgia, serif;
  --head-w: 500;
  --head-ls: -0.01em;
  --head-tt: none;
  --r: 22px;
  --r-sm: 14px;
  --pill: 999px;
  --btn-tt: none;
  --btn-w: 700;
  --btn-ls: 0;
  --logo-tree: #39772a;
  --logo-word: #2e5a2b;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1280px;
  --gut: clamp(16px, 4vw, 40px);
}

/* ===================== БАЗА ===================== */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}
h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: var(--head-w);
  letter-spacing: var(--head-ls);
  margin: 0;
  line-height: 1.12;
}
h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  font-weight: var(--btn-w);
  text-transform: var(--btn-tt);
  letter-spacing: var(--btn-ls);
  font-size: 15px;
  transition: 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover {
  background: var(--brand-h);
}
.btn-ghost {
  border-color: currentColor;
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(127, 127, 127, 0.12);
}
.btn-light {
  background: var(--surface);
  color: var(--ink);
}
.link-arrow {
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.link-arrow:after {
  content: "→";
}
.sec {
  padding: clamp(48px, 7vw, 96px) 0;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hide {
  display: none !important;
}

:root {
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* ===================== ШАПКА: 2 УРОВНЯ ===================== */
header.site {
  position: relative;
  z-index: 50;
}
.h-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.h-top {
  background: var(--bg);
  border-bottom: 0;
}
.h-top .wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  height: 92px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.logo .tree {
  width: 52px;
  color: var(--logo-tree);
}
.logo .word {
  width: 190px;
  color: var(--logo-word);
}
.logo small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.h-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.35;
}
.h-info .lbl {
  font-size: 12px;
  color: var(--muted);
}
.h-info .ph {
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.01em;
}
.h-info a.mail {
  color: var(--accent);
  font-weight: 600;
}
.h-sep {
  width: 1px;
  align-self: stretch;
  margin: 22px 0;
  background: var(--line);
}
.h-cart {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.h-cart .ic {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--pill);
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  transition: background 0.2s;
}
.h-cart:hover .ic {
  background: var(--brand-h);
}
.h-cart .cnt {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  transition: transform 0.3s var(--ease);
}
.h-cart .cnt.bump {
  transform: scale(1.35);
}
.h-cart small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.h-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.h-bar {
  background: var(--bg);
  border-bottom: 0;
}
.h-bar .wrap {
  background: var(--surface);
  border-radius: var(--pill);
  padding: 6px 6px 6px 6px;
  margin-bottom: 14px;
}
.h-bar .wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 58px;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--pill);
  height: 46px;
  padding: 0 20px;
  font-weight: var(--btn-w);
  text-transform: var(--btn-tt);
  letter-spacing: var(--btn-ls);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s;
}
.cat-btn:hover {
  background: var(--brand-h);
}
.cat-btn .bi {
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.cat-btn .bi i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
.cat-btn .bi i:nth-child(1) {
  top: 0;
}
.cat-btn .bi i:nth-child(2) {
  top: 5px;
}
.cat-btn .bi i:nth-child(3) {
  top: 10px;
}
.cat-btn[aria-expanded="true"] .bi i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.cat-btn[aria-expanded="true"] .bi i:nth-child(2) {
  opacity: 0;
}
.cat-btn[aria-expanded="true"] .bi i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
nav.main {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  margin-left: 8px;
}
nav.main > a,
nav.main > .has-dd > a {
  display: block;
  padding: 10px 13px;
  border-radius: var(--pill);
  transition:
    background 0.2s,
    color 0.2s;
}
nav.main > a:hover,
nav.main > .has-dd > a:hover {
  background: var(--bg);
}
nav.main a.cur {
  color: var(--accent);
}
.has-dd {
  position: relative;
}
.has-dd .car {
  display: inline-block;
  transition: transform 0.25s var(--ease);
  font-size: 11px;
  margin-left: 4px;
}
.has-dd:hover .car,
.has-dd:focus-within .car {
  transform: rotate(180deg);
}
.dd {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0s 0.22s;
}
.has-dd:hover .dd,
.has-dd:focus-within .dd {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.dd-in {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  padding: 8px;
  min-width: 230px;
}
.dd-in a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s;
}
.dd-in a:hover {
  background: var(--bg);
}
.h-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 46px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  width: min(340px, 30vw);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.h-search {
  background: var(--bg);
  border-color: transparent;
}
.h-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.h-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  padding: 0 16px;
  min-width: 0;
  color: var(--ink);
}
.h-search button {
  height: 100%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0 18px;
  transition: background 0.2s;
}
.h-search button:hover {
  background: var(--brand-h);
}
/* мега-меню с анимацией */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0s 0.28s;
  pointer-events: none;
}
.mega.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
  pointer-events: auto;
}
.mega .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 30px;
}
.mega h5 {
  margin: 0 0 10px;
  font: 700 12.5px/1.2 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.mega a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 14.5px;
  transition: color 0.15s;
}
.mega a:hover {
  color: var(--accent);
}
.mega a span {
  color: var(--muted);
  font-size: 13px;
}
.mega .all {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.mega.open .wrap > div {
  animation: rise 0.35s var(--ease) both;
}
.mega.open .wrap > div:nth-child(2) {
  animation-delay: 0.03s;
}
.mega.open .wrap > div:nth-child(3) {
  animation-delay: 0.06s;
}
.mega.open .wrap > div:nth-child(4) {
  animation-delay: 0.09s;
}
.mega.open .wrap > div:nth-child(5) {
  animation-delay: 0.12s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s,
    visibility 0s 0.28s;
}
.scrim.on {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.scrim.top {
  z-index: 350;
}
/* мобильное меню — выезжает слева */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  place-items: center;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(380px, 88vw);
  background: var(--surface);
  z-index: 400;
  transform: translateX(-102%);
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s;
  overflow-y: auto;
  visibility: hidden;
}
.drawer.open {
  transform: none;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
  visibility: visible;
}
.drawer:not(.open) {
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s,
    visibility 0s 0.32s;
}
.drawer .dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer .dh button {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
}
.drawer nav {
  padding: 8px 20px 28px;
  display: grid;
}
.drawer nav > a,
.drawer summary {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}
.drawer summary::-webkit-details-marker {
  display: none;
}
.drawer details .sub {
  display: grid;
  padding: 4px 0 10px 12px;
}
.drawer details .sub a {
  padding: 7px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.drawer .contacts {
  padding: 0 20px 28px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.drawer .contacts b {
  color: var(--ink);
  font-size: 17px;
}

/* ===================== ГЛАВНАЯ · ВАРИАНТ 1 ===================== */
.h1-hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 6vw, 80px);
}
.h1-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.h1-hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  margin: 18px 0 20px;
}
.h1-hero .lead {
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 520px;
  color: var(--muted);
}
.h1-hero .cta {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.h1-hero .mini {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.h1-hero .mini b {
  display: block;
  font-family: var(--head);
  font-size: 28px;
  font-weight: 500;
}
.h1-hero .mini span {
  font-size: 13.5px;
  color: var(--muted);
}
.hero-img {
  position: relative;
}
.hero-img img {
  width: 100%;
  aspect-ratio: 1/1.02;
  object-fit: cover;
  border-radius: 220px 28px 28px 28px;
}
.calc-card {
  position: absolute;
  left: -32px;
  bottom: 34px;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  box-shadow: 0 24px 50px rgba(40, 30, 15, 0.18);
  max-width: 300px;
}
.calc-card h3 {
  font-size: 21px;
  margin-bottom: 6px;
}
.calc-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.brands {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brands .wrap {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-top: 26px;
  padding-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.brands .lbl {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.brands a {
  font-family: var(--head);
  font-size: clamp(20px, 2vw, 27px);
  white-space: nowrap;
  opacity: 0.85;
}
.brands a:hover {
  opacity: 1;
  color: var(--accent);
}
.cats1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat1 {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.cat1 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s;
}
.cat1:hover img {
  transform: scale(1.04);
}
.cat1:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 15, 10, 0.62));
  z-index: -1;
}
.cat1 .t {
  padding: 24px;
}
.cat1 h3 {
  font-size: 27px;
}
.cat1 span {
  font-size: 14px;
  opacity: 0.9;
}
.cat1.big {
  grid-row: span 2;
  min-height: 620px;
}
.cat1.plain {
  background: var(--bg2);
  color: var(--ink);
}
.cat1.plain:after {
  display: none;
}
.cat1.plain.green {
  background: var(--brand);
  color: #fff;
}
.cat1.plain h3 {
  font-size: 30px;
}
.advs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.adv svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 12px;
}
.adv b {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.adv span {
  font-size: 14px;
  color: var(--muted);
}
.promo {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.pcard {
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.pcard img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.pcard .b {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pcard .n {
  font-weight: 600;
  line-height: 1.3;
}
.pcard .p {
  margin-top: auto;
  font-weight: 800;
  font-size: 17px;
}
.pcard .p small {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}
.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(26px, 3vw, 40px);
}
.cta-band p {
  margin: 10px 0 0;
  opacity: 0.85;
  max-width: 620px;
}
.cta-band .btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bcard {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bcard img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.bcard h3 {
  font-size: 21px;
  padding: 20px 22px 24px;
  line-height: 1.25;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.steps li:before {
  content: "0" counter(s);
  font-family: var(--head);
  color: var(--accent);
  font-size: 22px;
  min-width: 34px;
}
.seo {
  background: var(--bg2);
}
.seo-text {
  max-width: 860px;
  color: var(--muted);
  columns: 1;
}
.seo-text h2 {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 14px;
}
.seo-text p {
  margin: 0 0 12px;
}
.seo-text.clip {
  max-height: 190px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
}
.more-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent);
}

/* ===================== ПОДВАЛ ===================== */
footer.site {
  background: var(--dark);
  color: var(--dark-ink);
  font-size: 14.5px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}
footer.site h6 {
  margin: 0 0 14px;
  font: 700 12px/1.2 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
footer.site a {
  display: block;
  padding: 4px 0;
  opacity: 0.9;
}
footer.site a:hover {
  opacity: 1;
  color: #8fd07d;
}
footer.site .logo .word {
  color: #fff;
}
footer.site .logo .tree {
  color: #6cc45a;
}
footer.site .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  padding-bottom: 26px;
  color: var(--dark-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site .legal a {
  display: inline;
  padding: 0;
}

@media (max-width: 1180px) {
  .advs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 960px) {
  .h1-hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-img {
    max-width: 560px;
  }
  .calc-card {
    left: 16px;
    bottom: 16px;
    right: 16px;
    max-width: none;
  }
  .cats1 {
    grid-template-columns: 1fr 1fr;
  }
  .cat1.big {
    grid-row: auto;
    min-height: 300px;
    grid-column: 1/-1;
  }
  .blog {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  footer.site .cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 15px;
  }
  .advs {
    grid-template-columns: 1fr 1fr;
  }
  .cats1,
  .cats3,
  .blog {
    grid-template-columns: 1fr;
  }
  .cat1 {
    min-height: 240px;
  }
  .adv-strip .wrap {
    justify-content: flex-start;
    gap: 10px 20px;
  }
  .h1-hero .mini {
    gap: 20px;
  }
  .btn {
    height: 48px;
    padding: 0 22px;
  }
  .h1-hero .cta .btn {
    flex: 1;
  }
  footer.site .cols {
    grid-template-columns: 1fr;
  }
  .brandbox {
    padding: 18px 20px;
  }
  .cta-band .btns {
    width: 100%;
  }
  .cta-band .btn {
    flex: 1;
  }
}

/* ===================== ОБЩЕЕ ДЛЯ ВНУТРЕННИХ ===================== */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs a {
  color: var(--accent);
}
.crumbs a:hover {
  text-decoration: underline;
}
.ptitle {
  padding: 10px 0 26px;
}
.ptitle h1 {
  font-size: clamp(30px, 4vw, 52px);
}
.ptitle h1::first-letter {
  text-transform: uppercase;
}
.layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 90px);
}
/* ===================== КАТАЛОГ (/shop/) ===================== */
.side {
  background: var(--surface);
  border-radius: var(--r);
  padding: 10px;
  border: 1px solid var(--line);
  position: sticky;
  top: 60px;
}
.side {
  border-color: transparent;
}
.acc {
  border-bottom: 1px solid var(--line);
}
.acc:last-child {
  border-bottom: 0;
}
.acc-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: 0;
  padding: 11px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 10px;
  transition: background 0.15s;
}
.acc-h:hover {
  background: var(--bg);
}
.acc-h .ch {
  transition: transform 0.28s var(--ease);
  color: var(--muted);
  flex: none;
}
.acc.open .acc-h .ch {
  transform: rotate(180deg);
}
.acc-b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.acc.open .acc-b {
  grid-template-rows: 1fr;
}
.acc-b > div {
  overflow: hidden;
}
.acc-b a {
  display: block;
  padding: 7px 10px 7px 22px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition:
    color 0.15s,
    background 0.15s;
}
.acc-b a:hover {
  color: var(--accent);
  background: var(--bg);
}
.acc-b a.all {
  color: var(--accent);
  font-weight: 600;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.tile {
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.tile {
  border-color: transparent;
  border-radius: var(--r);
}
.tile .im {
  overflow: hidden;
}
.tile img {
  aspect-ratio: 1.2/1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.tile:hover img {
  transform: scale(1.05);
}
.tile .b {
  padding: 14px 16px 16px;
  text-align: center;
}
.tile b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
.tile b {
  font-family: var(--head);
  font-weight: 500;
  font-size: 19px;
}
.tile small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.tile .cnt {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.side-toggle {
  display: none;
}
/* липкие боковые колонки: своя прокрутка в пределах экрана */
@media (min-width: 961px) {
  .side,
  .filters {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .side::-webkit-scrollbar,
  .filters::-webkit-scrollbar {
    width: 6px;
  }
  .side::-webkit-scrollbar-thumb,
  .filters::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
  }
}
/* ===================== ПОДОБРАТЬ ПОЛ ===================== */
.filters {
  background: var(--surface);
  border-radius: var(--r);
  padding: 8px 22px 22px;
  border: 1px solid var(--line);
  position: sticky;
  top: 60px;
}
.filters {
  border-color: transparent;
}
.f-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 16px;
}
.fgroup {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fgroup h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
}
.fgroup label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14.5px;
  cursor: pointer;
}
.fgroup label span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}
.fgroup input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
}
.dual {
  position: relative;
  height: 26px;
  margin: 4px 6px 6px;
}
.dual input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  margin: 0;
}
.dual input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  cursor: pointer;
  margin-top: -8px;
}
.dual input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  cursor: pointer;
}
.dual input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.dual .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.dual .fill {
  position: absolute;
  top: 11px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
}
.rv {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}
.found {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
}
.reset {
  width: 100%;
  margin-top: 12px;
}
.intro {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 900px;
}
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.pc {
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    opacity 0.25s;
}
.pc {
  border-color: transparent;
  border-radius: var(--r);
}
.pc:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}
.pc .im {
  position: relative;
  overflow: hidden;
}
.pc img {
  aspect-ratio: 1.1/1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.pc:hover img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #c9432f;
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 9px;
  border-radius: 6px;
}
.pc .b {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pc .n {
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.3;
}
.pc .n {
  font-family: var(--head);
  font-weight: 500;
  font-size: 19px;
}
.pc dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  font-size: 13.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pc dt {
  color: var(--muted);
}
.pc dd {
  margin: 0;
}
.pc .pr {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.pc .pr small {
  color: var(--muted);
}
.pc .pr b {
  font-size: 21px;
  font-weight: 800;
}
.pc .pr s {
  color: var(--muted);
  font-size: 13px;
}
.pc .btn {
  height: 44px;
  font-size: 14px;
}
.more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.filter-open {
  display: none;
}
/* ===================== ТОВАР ===================== */
.prod-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas: "head ." "img buy" "thumbs links";
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 12px;
  align-items: stretch;
  padding-bottom: 40px;
}
.p-head {
  grid-area: head;
  align-self: end;
}
.gallery,
.p-right {
  display: contents;
}
.g-main {
  grid-area: img;
}
.thumbs {
  grid-area: thumbs;
  margin-top: 0 !important;
}
.buy {
  grid-area: buy;
}
.links4 {
  grid-area: links;
  margin-top: 0 !important;
  align-self: start;
}
.g-main {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  min-height: 0;
  aspect-ratio: 1/1;
  height: 100%;
}
.g-main img {
  position: absolute;
  inset: 0;
}
.g-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.g-main .badge {
  left: 16px;
  top: 16px;
  font-size: 13px;
}
.g-main .badge.g {
  background: var(--brand);
  top: 50px;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.thumbs button {
  width: 84px;
  height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--surface);
  transition: border-color 0.2s;
}
.thumbs button.on {
  border-color: var(--brand);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.p-h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 8px 0 22px;
  line-height: 1.1;
}
.p-h1::first-letter {
  text-transform: uppercase;
}
.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.p-chips span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.buy {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--line);
}
.buy {
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(60, 45, 20, 0.08);
}
.base-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.base-price b {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.base-price s {
  color: var(--muted);
}
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 20px;
}
.tier {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.tier .t {
  font-size: 13px;
  color: var(--muted);
}
.tier b {
  display: block;
  font-size: 18px;
}
.tier em {
  font-style: normal;
  color: #c9432f;
  font-weight: 800;
  font-size: 13px;
}
.tier.on {
  border-color: var(--brand);
  background: var(--accent-soft);
}
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.step {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  overflow: hidden;
  background: var(--bg);
}
.step button {
  width: 48px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 22px;
  transition: background 0.15s;
}
.step button:hover {
  background: var(--line);
}
.step input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  text-align: center;
  font: 700 18px var(--font);
  outline: 0;
  color: var(--ink);
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.total .l {
  font-size: 14px;
  color: var(--muted);
}
.total .sum {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.total .save {
  color: #c9432f;
  font-weight: 700;
  font-size: 14px;
  min-height: 20px;
  transition: opacity 0.2s;
}
.add {
  width: 100%;
  height: 56px;
  font-size: 16px;
}
.add.done {
  background: var(--accent);
}
.buy-notes {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.buy-notes span:before {
  content: "• ";
  color: var(--accent);
}
.links4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.links4 a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.links4 a svg {
  color: var(--accent);
  flex: none;
}
.links4 a:hover {
  border-color: var(--accent);
}
.links4 a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  border: 0;
  background: none;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
}
.tabs button:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.tabs button.on {
  color: var(--ink);
}
.tabs button.on:after {
  transform: none;
}
.tabpane {
  display: none;
  animation: fade 0.3s var(--ease);
}
.tabpane.on {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.desc {
  max-width: 820px;
  font-size: 16.5px;
  color: var(--ink);
}
.desc h3 {
  font-size: 22px;
  margin: 22px 0 10px;
}
.desc p {
  margin: 0 0 12px;
}
.spec-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.spec-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.spec-table td:first-child {
  color: var(--muted);
  width: 45%;
}
.similar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.similar .pc {
  scroll-snap-align: start;
}
.m-buybar {
  display: none;
}

/* блок покупки — по высоте фото */
.buy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(18px, 2vw, 28px) !important;
}
.price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.total .l b {
  color: var(--ink);
  font-weight: 700;
}
.prod-top > *,
.prod-top .gallery > *,
.prod-top .p-right > * {
  min-width: 0;
}
@media (max-width: 600px) {
  .buy .buy-notes {
    white-space: normal;
  }
}
.next-tier {
  font-size: 13.5px;
  font-weight: 700;
  color: #c9432f;
  min-height: 1.4em;
  transition: color 0.2s;
}
.next-tier.max {
  color: var(--accent);
}
.price-row .p-unit {
  font-size: 13px;
  color: var(--muted);
}
.buy .base-price b {
  font-size: clamp(28px, 2.6vw, 36px);
}
.buy .tiers {
  margin: 0;
  gap: 8px;
}
.buy .tier {
  padding: 8px 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.buy .tier .t {
  width: 100%;
  font-size: 12px;
}
.buy .tier b {
  display: inline;
  font-size: 16px;
}
.buy .tier em {
  font-size: 12.5px;
}
.calc2 {
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}
.cf label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf label .hint {
  font-weight: 500;
  letter-spacing: 0;
}
.cf .step,
.cf .sel-btn {
  height: 44px;
}
.cf .sel-btn {
  padding: 0 14px;
  font-size: 14px;
}
.cf.res .resv {
  height: 44px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding-top: 9px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--brand);
}
.cf.res .resv span {
  font-weight: 600;
  font-size: 14px;
}
.cf label small {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}
.cf.res b {
  font-size: 20px;
  line-height: 1.1;
}
.buy .total {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}
.buy .total .tt {
  min-width: 0;
}
.buy .total .l {
  font-size: 13px;
}
.buy .total .sum {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
}
.buy .total .save {
  font-size: 12.5px;
  min-height: 0;
}
.buy .add {
  width: auto;
  flex: none;
  height: 52px;
  padding: 0 26px;
  font-size: 15.5px;
}
.buy .buy-notes {
  display: block;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.links4 {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.links4 a {
  padding: 10px 12px;
  font-size: 13.5px;
}
/* калькулятор v2 */
.calc2 {
  display: grid;
  gap: 12px;
}
.crow {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 6px 14px;
}
.crow > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}
.crow .hint {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--muted);
}
.crow .step {
  height: 48px;
}
.crow.res {
  padding-top: 6px;
}
.crow.res b {
  font-size: 20px;
}
.crow.res small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12.5px;
}
.sel {
  position: relative;
}
.sel-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  transition: border-color 0.2s;
}
.sel-btn:hover,
.sel.open .sel-btn {
  border-color: var(--accent);
}
.sel-btn svg {
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.sel.open .sel-btn svg {
  transform: rotate(180deg);
}
.sel-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0s 0.2s;
}
.sel.open .sel-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.sel-list li {
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14.5px;
  transition: background 0.15s;
}
.sel-list li:hover {
  background: var(--bg);
}
.sel-list li.on {
  color: var(--accent);
  font-weight: 700;
}
/* характеристики в 2 колонки */
.specs2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}
.sr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.sr span {
  color: var(--muted);
}
.sr b {
  font-weight: 700;
  text-align: right;
}
.sr a {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
  transition: color 0.15s;
}
.sr a:hover {
  text-decoration: underline;
}
/* мессенджеры */
.msg-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: conic-gradient(from 210deg, #4cc2f0, #5b6cf0, #7a3fe0, #4cc2f0);
  box-shadow: 0 12px 30px rgba(70, 60, 200, 0.35);
  transition:
    transform 0.25s var(--ease),
    bottom 0.3s var(--ease);
}
.msg-fab:hover {
  transform: scale(1.07);
}
.msg-fab:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(91, 108, 240, 0.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 108, 240, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(91, 108, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 108, 240, 0);
  }
}
.msg-fab .ico {
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
  position: absolute;
}
.msg-fab .x {
  opacity: 0;
  transform: rotate(-90deg);
}
body.msg-open .msg-fab .ico.c {
  opacity: 0;
  transform: rotate(90deg);
}
body.msg-open .msg-fab .x {
  opacity: 1;
  transform: none;
}
body.buybar-on .msg-fab {
  bottom: 88px;
}
.msg-ov {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 20, 20, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0s 0.25s;
}
body.msg-open .msg-ov {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.msg-box {
  position: relative;
  background: #fff;
  color: #222;
  border-radius: 24px;
  padding: 28px 28px 30px;
  width: min(780px, 100%);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease);
  font-family: var(--font);
}
body.msg-open .msg-box {
  transform: none;
}
.msg-box h3 {
  font: 800 clamp(22px, 2.6vw, 30px) / 1.2 var(--font);
  text-align: center;
  margin: 0 0 26px;
  letter-spacing: -0.01em;
  color: #222;
}
.msg-close {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #8a8a8a;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.msg-close:hover {
  background: #666;
}
.msg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.msg-qr {
  position: relative;
  background: #f1f3f7;
  border-radius: 20px;
  padding: 34px 30px 26px;
  display: grid;
  place-items: center;
}
.msg-qr .lbl {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9dbfa;
  color: #2b3a55;
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.msg-qr .frame {
  position: relative;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
}
.msg-qr .frame:before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 4px solid #c9dbfa;
  border-radius: 16px;
  -webkit-mask:
    linear-gradient(#000 0 0) top left/26px 26px no-repeat,
    linear-gradient(#000 0 0) top right/26px 26px no-repeat,
    linear-gradient(#000 0 0) bottom left/26px 26px no-repeat,
    linear-gradient(#000 0 0) bottom right/26px 26px no-repeat;
  mask:
    linear-gradient(#000 0 0) top left/26px 26px no-repeat,
    linear-gradient(#000 0 0) top right/26px 26px no-repeat,
    linear-gradient(#000 0 0) bottom left/26px 26px no-repeat,
    linear-gradient(#000 0 0) bottom right/26px 26px no-repeat;
}
.msg-qr svg {
  width: 190px;
  height: 190px;
  display: block;
}
.msg-qr small {
  margin-top: 14px;
  color: #6b7280;
  font-size: 12.5px;
  text-align: center;
}
.msg-btns {
  background: #f1f3f7;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}
.mb {
  display: flex;
  align-items: center;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.mb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.mb i {
  width: 62px;
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.08);
  flex: none;
}
.mb span {
  flex: 1;
  text-align: center;
  padding-right: 20px;
}
.mb.max {
  background: linear-gradient(90deg, #4cc2f0, #5b6cf0 55%, #7a3fe0);
}
.mb.wa {
  background: #6fcf6a;
}
.mb.wa i {
  background: #5bba57;
}
.mb.tg {
  background: #54a9eb;
}
.mb.tg i {
  background: #3f97db;
}
@media (max-width: 700px) {
  .msg-box h3 {
    padding: 0 34px;
    font-size: 21px;
    margin-bottom: 18px;
  }
  .msg-grid {
    grid-template-columns: 1fr;
  }
  .msg-qr {
    display: none;
  }
  .msg-box {
    padding: 24px 18px;
  }
  .msg-close {
    right: 8px;
    top: 8px;
    background: #eee;
    color: #555;
    width: 38px;
    height: 38px;
  }
  .msg-fab {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
  body.buybar-on .msg-fab {
    bottom: 82px;
  }
}
@media (max-width: 620px) {
  .specs2 {
    grid-template-columns: 1fr;
  }
  .crow {
    grid-template-columns: 1fr;
  }
  .crow .hint,
  .crow.res small {
    grid-column: 1;
  }
  .crow.res {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }
  .crow.res small {
    grid-column: 1/-1;
  }
}

/* ===================== АДАПТИВ ===================== */
@media (max-width: 1280px) {
  nav.main .opt {
    display: none;
  }
  .h-info.addr .mail {
    display: none;
  }
  .logo small {
    display: none;
  }
  .mega .wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1100px) {
  .h-info.addr {
    display: none;
  }
  .h-sep.s2 {
    display: none;
  }
  .h-search {
    width: 240px;
  }
  nav.main > a,
  nav.main > .has-dd > a {
    padding: 10px 9px;
  }
}
@media (max-width: 960px) {
  .burger {
    display: inline-grid;
  }
  .h-top .wrap {
    height: 68px;
    gap: 12px;
  }
  .logo .tree {
    width: 38px;
  }
  .logo .word {
    width: 150px;
  }
  .h-sep,
  .h-info {
    display: none;
  }
  .h-cart small,
  .h-cart .sumtxt {
    display: none;
  }
  .h-cart .ic {
    width: 44px;
    height: 44px;
  }
  nav.main,
  .cat-btn {
    display: none;
  }
  .h-bar .wrap {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .h-bar .wrap {
    padding: 6px;
    margin-bottom: 10px;
  }
  .h-search {
    width: 100%;
    margin-left: 0;
  }
  .mega {
    display: none;
  }
  .layout,
  .prod-top {
    grid-template-columns: 1fr;
  }
  .prod-top {
    grid-template-areas: "head" "img" "thumbs" "buy" "links";
    row-gap: 14px;
  }
  .p-h1 {
    margin-bottom: 0;
  }
  .g-main {
    height: auto;
  }
  .side,
  .filters,
  .gallery {
    position: static;
  }
  .side-toggle {
    display: flex;
  }
  .side {
    display: none;
  }
  .side.open {
    display: block;
  }
  .filter-open {
    display: inline-flex;
  }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 92vw);
    top: 0;
    border-radius: 0;
    z-index: 400;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.32s var(--ease);
  }
  .filters.open {
    transform: none;
  }
  .m-buybar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.3s var(--ease);
  }
  .m-buybar.show {
    transform: none;
  }
  .m-buybar b {
    font-size: 20px;
  }
  .m-buybar small {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
  .m-buybar .btn {
    height: 46px;
  }
}
@media (max-width: 620px) {
  .tiers,
  .calc {
    grid-template-columns: 1fr 1fr;
  }
  .links4 {
    grid-template-columns: 1fr;
  }
  .tiles {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tile .b {
    padding: 10px;
  }
  .tile b {
    font-size: 16px;
  }
  .p-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .pc .b {
    padding: 12px;
    gap: 8px;
  }
  .pc .n,
  .pc .n {
    font-size: 15px;
  }
  .pc dl {
    font-size: 12px;
  }
  .pc .pr b {
    font-size: 17px;
  }
  .pc .btn {
    height: 40px;
    font-size: 13px;
  }
  .thumbs button {
    width: 64px;
    height: 64px;
  }
  .total .sum {
    font-size: 26px;
  }
}
@media (max-width: 620px) {
  .pc dl {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
  }
  .pc dt {
    display: none;
  }
  .pc dd {
    display: inline;
  }
  .pc dd:not(:last-of-type):after {
    content: " · ";
  }
}
@media (max-width: 380px) {
  .p-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== ДОПОЛНЕНИЯ ДЛЯ РЕАЛЬНОГО САЙТА ===================== */
/* хлебные крошки DLCrumbs (разметка schema.org не меняется) */
nav.breadcrumbs {
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
nav.breadcrumbs ul.breadcrumb {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  background: none;
}
nav.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
nav.breadcrumbs li + li:before {
  content: "/";
  margin: 0 8px;
  color: var(--line);
}
nav.breadcrumbs a {
  color: var(--accent);
}
nav.breadcrumbs a:hover {
  text-decoration: underline;
}
nav.breadcrumbs li.active {
  color: var(--muted);
}
/* заголовок страницы */
.ptitle {
  padding: 10px 0 26px;
}
.ptitle h1,
h1.ptitle-h {
  font-size: clamp(28px, 3.6vw, 46px);
}
/* текст из админки */
.nd-content {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 880px;
}
.nd-content.wide {
  max-width: none;
}
.nd-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 30px 0 12px;
}
.nd-content h3 {
  font-size: clamp(19px, 2vw, 23px);
  margin: 24px 0 10px;
}
.nd-content h4 {
  font-size: 17px;
  margin: 20px 0 8px;
  font-family: var(--font);
  font-weight: 700;
}
.nd-content p {
  margin: 0 0 14px;
}
.nd-content ul,
.nd-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.nd-content li {
  margin: 4px 0;
}
.nd-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nd-content img {
  height: auto;
  border-radius: var(--r-sm);
  margin: 10px 0;
}
.nd-content img[style*="float: left"],
.nd-content img[align="left"] {
  margin: 4px 20px 12px 0;
}
.nd-content img[style*="float: right"],
.nd-content img[align="right"] {
  margin: 4px 0 12px 20px;
}
.nd-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 18px;
  font-size: 15px;
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.nd-content td,
.nd-content th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.nd-content th {
  background: var(--bg2);
  font-weight: 700;
}
.nd-content iframe,
.nd-content video {
  max-width: 100%;
  border: 0;
  border-radius: var(--r-sm);
}
.nd-content blockquote {
  margin: 16px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.nd-table-wrap {
  overflow-x: auto;
}
.card {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 36px);
}
.page-pad {
  padding-bottom: clamp(48px, 7vw, 90px);
}
/* пагинация DocLister */
.nd-pages,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.nd-pages a,
.nd-pages span,
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--surface);
  font-weight: 700;
  transition:
    background 0.15s,
    color 0.15s;
}
.nd-pages a:hover,
.pagination a:hover {
  background: var(--accent-soft);
  color: var(--brand);
}
.nd-pages .current,
.nd-pages .active span,
.pagination .active span,
.pagination .current {
  background: var(--brand);
  color: #fff;
}
/* формы */
.nd-form {
  display: grid;
  gap: 14px;
}
.nd-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.nd-input,
.nd-form input[type="text"],
.nd-form input[type="tel"],
.nd-form input[type="email"],
.nd-form input[type="number"],
.nd-form select,
.nd-form textarea {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  outline: 0;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.nd-form textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 18px;
  resize: vertical;
}
.nd-input:focus,
.nd-form input:focus,
.nd-form select:focus,
.nd-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nd-form .radio,
.nd-form .checkbox,
.nd-form label.opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.nd-form input[type="radio"],
.nd-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin-top: 3px;
  flex: none;
}
.nd-alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 600;
}
.nd-alert.err {
  background: #fbe7e3;
  color: #a1311f;
}
/* корзина Commerce */
.nd-cart table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}
.nd-cart th {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.nd-cart td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.nd-cart img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
/* мини-корзина в шапке */
.h-cart.commerce-cart {
  color: inherit;
}
/* кнопка «наверх» не нужна; видео-превью */
.vid-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}
.vid-badge svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}
/* бейджи товара из returnBageOnProduct */
.productBages {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.productBages img {
  width: auto;
  height: auto;
  max-width: 96px;
  position: static;
}
@media (max-width: 620px) {
  .nd-cart thead {
    display: none;
  }
  .nd-cart tr {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 4px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nd-cart td {
    border: 0;
    padding: 2px 0;
  }
  .nd-cart img {
    width: 72px;
    height: 72px;
  }
}
/* панель меню вровень с полями страницы */
.h-bar {
  padding: 0 var(--gut);
}
.h-bar .wrap {
  max-width: calc(var(--maxw) - 2 * var(--gut));
}
@media (max-width: 960px) {
  .h-bar .wrap {
    padding: 6px;
  }
}
.nd-content > :first-child {
  margin-top: 0;
}
/* баннер cookie — в цветах сайта */
body #cookie-banner {
  background: var(--dark);
  color: var(--dark-ink);
  font-family: var(--font);
  border-radius: var(--r-sm);
  left: 24px;
  right: auto;
  bottom: 24px;
}
body #cookie-banner a {
  color: #9fd58c;
}
body #cookie-banner button {
  background: var(--brand);
  color: #fff;
  border-radius: var(--pill);
  padding: 10px 22px;
}
body #cookie-banner button:hover {
  background: var(--accent);
}
@media (max-width: 700px) {
  body #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
/* товар: реальные данные */
.pc .pr[data-v=""] {
  display: none;
}
.thumbs {
  flex-wrap: wrap;
}
.thumbs .vthumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  display: block;
}
.thumbs .vthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs .vthumb .vid-badge svg {
  width: 34px;
  height: 34px;
}
.g-main a#gMainLink {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}
.productBages div {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  line-height: 1.2;
}
.productBages .isOfferBage {
  background: #c9432f;
}
.productBages .isPriseBage {
  background: #2f6fa8;
}
.productBages .isFreeBage {
  background: var(--brand);
}
.ptabs {
  margin-top: 10px;
}
.buy-off .total .btn {
  flex: 1;
}
.buy .add.done {
  background: var(--accent);
}
.buy .cart-go {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
/* каталог, разделы, коллекции */
.cat-main {
  min-width: 0;
  display: grid;
  gap: 26px;
  align-content: start;
}
.cat-intro:empty,
.cat-desc:empty {
  display: none;
}
.cat-intro {
  max-width: none;
  color: var(--muted);
}
.cat-desc {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 36px);
  max-width: none;
}
.side .acc-h small.sub,
.tile b small.sub {
  display: block;
  font: 500 12px/1.3 var(--font);
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.side .acc.here > .acc-h {
  color: var(--brand);
}
.side .acc-b a.cur,
.side .acc-h.cur {
  color: var(--brand);
  background: var(--accent-soft);
  font-weight: 700;
}
.side a.acc-h {
  display: flex;
}
.productListBages {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  z-index: 1;
}
.productListBages div {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.2;
}
.productListBages .isOfferBageList {
  background: #c9432f;
}
.productListBages .isPriseBageList {
  background: #2f6fa8;
}
.productListBages .isFreeBageList {
  background: var(--brand);
}
.pc dd:empty:after {
  content: "—";
  color: var(--muted);
}
.pc img,
.tile img,
.similar img {
  height: auto;
}
/* главная */
.pcard .p[data-v=""] {
  display: none;
}
.pcard .im img {
  height: auto;
}
.seo-text.nd-content {
  max-width: 860px;
  color: var(--muted);
}
.cat1 img {
  height: 100%;
}
.blog.blog-row {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 40px) / 3));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.blog.blog-row .bcard {
  scroll-snap-align: start;
}
@media (max-width: 620px) {
  .blog.blog-row {
    grid-auto-columns: 82%;
  }
}
.dd {
  display: block;
}
.dd-in {
  display: block;
  white-space: nowrap;
}
.dd-in a {
  padding: 10px 14px;
}
/* мобильный: без нижней плашки «Итого»; шапка закреплена (поиск уезжает) */
.m-buybar,
.m-buybar.show {
  display: none !important;
}
@media (max-width: 960px) {
  /* закреплена только верхняя полоса; поиск прокручивается со страницей — высота шапки не меняется */
  header.site {
    display: contents;
  }
  header.site .h-top {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 1px 0 var(--line);
  }
}
/* калькулятор на телефоне: площадь и укладка — по строке, упаковки и итог — рядом */
@media (max-width: 620px) {
  .buy .calc2 {
    grid-template-columns: 1fr 1fr;
  }
  .buy .calc2 .cf:nth-child(1),
  .buy .calc2 .cf:nth-child(2) {
    grid-column: 1/-1;
  }
}
.sel-btn .sel-txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
nav.main > .has-dd > .dd-t {
  display: block;
  padding: 10px 13px;
  border-radius: var(--pill);
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: inherit;
  transition: background 0.2s;
}
nav.main > .has-dd > .dd-t:hover {
  background: var(--bg);
}
@media (max-width: 1100px) {
  nav.main > .has-dd > .dd-t {
    padding: 10px 9px;
  }
}
/* сервисные плитки в блоке покупки */
.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s;
}
a.perk:hover,
button.perk:hover {
  background: var(--accent-soft);
}
.perk svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}
.perk b {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.perk small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}
.perk-q {
  background: var(--accent-soft);
}
.perk-q b {
  color: var(--brand);
}
.prod-top {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.perks,
.perk,
.perk span {
  min-width: 0;
}
@media (max-width: 960px) {
  .prod-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
.g-main {
  max-width: 100%;
  /* Safari/iOS: без явной ширины блок с aspect-ratio и абсолютной картинкой схлопывается в 0 на ширине ≤960 */
  width: 100%;
}
/* контраст: приглушённый текст темнее, подпункты меню — тёмные */
:root {
  --muted: #5a5147;
}
.drawer details .sub a {
  color: #2f2a24;
  font-weight: 500;
}
.drawer details .sub a span {
  color: var(--muted);
}
.side .acc-b a {
  color: #2f2a24;
  font-weight: 500;
}
.side .acc-b a:hover {
  color: var(--accent);
}
.mega a {
  color: #2f2a24;
}
.mega a span {
  color: var(--muted);
}
.side .acc-b a.all {
  color: var(--accent);
  font-weight: 700;
}
.ptitle .h1 {
  font-family: var(--head);
  font-weight: var(--head-w);
  letter-spacing: var(--head-ls);
  line-height: 1.12;
  font-size: clamp(28px, 3.6vw, 46px);
}
.nd-content a[data-fancybox] {
  display: inline-block;
  cursor: zoom-in;
  text-decoration: none;
}
/* мессенджеры: кнопка и окно — в палитре сайта (были цвета MAX); фирменный цвет мессенджера — только у иконки */
.msg-fab {
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(46, 90, 43, 0.35);
}
.msg-fab:hover {
  background: var(--brand-h);
}
.msg-fab:before {
  animation-name: msgPulse;
}
@keyframes msgPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 119, 42, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(57, 119, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 119, 42, 0);
  }
}
.msg-box {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r);
}
.msg-box h3 {
  font: var(--head-w) clamp(22px, 2.6vw, 30px) / 1.2 var(--head);
  letter-spacing: var(--head-ls);
  color: var(--ink);
}
.msg-close {
  background: var(--brand);
}
.msg-close:hover {
  background: var(--brand-h);
}
.msg-qr,
.msg-btns {
  background: var(--bg);
  border-radius: var(--r-sm);
}
.msg-qr .lbl {
  background: var(--accent-soft);
  color: var(--brand);
}
.msg-qr .frame:before {
  border-color: var(--accent-soft);
}
.msg-qr small {
  color: var(--muted);
}
.mb,
.mb.max,
.mb.wa,
.mb.tg {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.mb:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(36, 32, 27, 0.1);
}
.mb i {
  color: #fff;
}
.mb.max i {
  background: linear-gradient(135deg, #4cc2f0, #5b6cf0 55%, #7a3fe0);
}
.mb.wa i {
  background: #25d366;
}
.mb.tg i {
  background: #2aabee;
}
@media (max-width: 700px) {
  .msg-close {
    background: var(--bg2);
    color: var(--ink);
  }
}

/* ==== blog.css ==== */
/* ===== blog: список блога, статья, отзывы (Jot) ===== */
/* --- список --- */
.blog-list {
  margin-bottom: 10px;
}
.blog-card {
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card h3 {
  padding: 6px 22px 22px;
  font-size: 19px;
}
.blog-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 22px 0;
}
.blog-card:hover h3 {
  color: var(--accent);
}
/* --- статья --- */
.blog-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}
.blog-art-main {
  padding: clamp(20px, 3vw, 40px);
}
.blog-date-main {
  padding: 0 0 16px;
}
.blog-art-cover {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: var(--r-sm);
  margin: 0 0 24px;
}
.blog-art-main .nd-content {
  max-width: none;
}
.blog-art-side {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-back {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
}
.blog-back:hover {
  text-decoration: underline;
}
.blog-side-box {
  padding: 20px;
}
.blog-side-box h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 16px;
}
.blog-side-list {
  display: grid;
  gap: 16px;
}
.blog-side-item {
  display: block;
}
.blog-side-item img {
  display: block;
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.blog-side-item span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.blog-side-item:hover span {
  color: var(--accent);
}
@media (max-width: 960px) {
  .blog-art {
    grid-template-columns: 1fr;
  }
  .blog-art-side {
    position: static;
  }
  .blog-side-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .blog-side-list {
    grid-template-columns: 1fr;
  }
}

/* --- отзывы --- */
.rev-intro {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin-bottom: 24px;
}
.rev-intro-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  display: block;
}
.feedback-desc {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 22px;
}
@media (max-width: 760px) {
  .rev-intro {
    grid-template-columns: 1fr;
  }
}
.rev-list .comments-wrap {
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
}
/* Jot: переопределяем собственные стили модуля (tree.css) */
body.page-reviews .jot-comment {
  font: inherit;
  margin: 0 0 14px;
}
body.page-reviews .jot-row .jot-comment-entry,
body.page-reviews .jot-row-alt .jot-comment-entry,
body.page-reviews .jot-row-author .jot-comment-entry,
body.page-reviews .jot-row-me .jot-comment-entry {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  margin: 0;
}
body.page-reviews .jot-row {
  position: relative;
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px 24px 20px 88px;
  min-height: 88px;
}
body.page-reviews .jot-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 0 0 6px;
}
body.page-reviews .jot-avatar {
  position: absolute;
  left: 24px;
  top: 20px;
  float: none;
  margin: 0;
}
body.page-reviews .jot-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
body.page-reviews .jot-name {
  font-size: 17px;
  font-weight: 800;
  display: inline;
  margin: 0;
}
body.page-reviews .jot-date {
  display: inline;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
body.page-reviews .jot-perma {
  margin: 0;
}
body.page-reviews .jot-perma a {
  font-size: 13px;
  color: var(--muted);
}
body.page-reviews .jot-mod {
  float: none;
  margin: 0 0 0 auto;
  order: 9;
}
body.page-reviews .jot-message {
  font-size: 16px;
  line-height: 1.6;
}
body.page-reviews .jot-children {
  padding: 0 0 0 clamp(16px, 4vw, 48px);
  margin-top: 10px;
}
body.page-reviews .jot-children .jot-row {
  background: var(--accent-soft);
}
body.page-reviews .jot-children .jot-comment {
  margin-bottom: 10px;
}
/* пагинация */
body.page-reviews .jot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 22px 0;
  color: var(--muted);
}
body.page-reviews .jot-btn {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface) none;
  box-shadow: none;
  text-shadow: none;
  color: var(--ink);
  font: 700 15px/1 var(--font);
  transition:
    background 0.15s,
    color 0.15s;
}
body.page-reviews .jot-btn:hover {
  background: var(--accent-soft) none;
  color: var(--brand);
}
body.page-reviews .jot-btn-active,
body.page-reviews .jot-btn:active {
  background: var(--brand) none;
  color: #fff;
  box-shadow: none;
}
body.page-reviews .jot-show-all {
  float: none;
  order: 99;
}
/* форма отзыва */
body.page-reviews .form-wrap {
  margin-top: 30px;
  text-align: left;
}
body.page-reviews .jot-form-wrap {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 36px);
  font: inherit;
  max-width: 760px;
  margin: 0 auto;
}
body.page-reviews .jot-reply-title {
  font: 700 clamp(22px, 2.4vw, 30px) / 1.2 var(--head);
  color: var(--ink);
  margin: 0 0 18px;
}
body.page-reviews .jot-reply-cancel {
  font: 600 14px/1.2 var(--font);
  color: var(--accent);
  background: none;
  border: 0;
  box-shadow: none;
  height: auto;
  min-width: 0;
  padding: 0;
  display: inline;
  float: right;
  text-decoration: underline;
}
body.page-reviews .jot-form {
  display: grid;
  gap: 14px;
}
body.page-reviews .jot-controls {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
body.page-reviews .jot-input-prepend {
  flex: 1 1 220px;
  margin: 0;
  display: block;
}
body.page-reviews .jot-controls textarea,
body.page-reviews .jot-controls input,
body.page-reviews .jot-input-prepend input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: 500 16px/1.2 var(--font);
  color: var(--ink);
  box-shadow: none;
  outline: 0;
  box-sizing: border-box;
}
body.page-reviews .jot-controls textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 18px;
  resize: vertical;
  line-height: 1.5;
}
body.page-reviews .jot-controls textarea:focus,
body.page-reviews .jot-controls input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
body.page-reviews .jot-form-actions .jot-btn-submit {
  background: var(--brand) none;
  color: #fff;
  height: 50px;
  padding: 0 34px;
  font-size: 16px;
  cursor: pointer;
}
body.page-reviews .jot-form-actions .jot-btn-submit:hover {
  background: var(--accent) none;
  color: #fff;
}
body.page-reviews .jot-err {
  border: 0;
  border-radius: var(--r-sm);
  background: #fdecea;
  color: #a12a1f;
  padding: 12px 16px;
  font-weight: 600;
  margin: 0 0 14px;
}
body.page-reviews .jot-cfm {
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--brand);
  padding: 12px 16px;
  font-weight: 600;
  margin: 0 0 14px;
}
@media (max-width: 560px) {
  body.page-reviews .jot-row {
    padding: 16px 16px 16px 66px;
    min-height: 72px;
  }
  body.page-reviews .jot-avatar {
    left: 14px;
    top: 16px;
  }
  body.page-reviews .jot-avatar img {
    width: 40px;
    height: 40px;
  }
  body.page-reviews .jot-children {
    padding-left: 12px;
  }
}

/* ==== cart.css ==== */
/* ===== корзина, оформление заказа, «спасибо» (cart-*, ord-*, thx-*) ===== */
/* --- корзина --- */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.cart-list {
  padding: 8px clamp(16px, 2.4vw, 28px);
}
.cart-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px 130px 36px;
  gap: 16px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cart-head .cart-h-name {
  grid-column: 1/3;
}
.cart-head .cart-h-qty {
  text-align: center;
}
.cart-head .cart-h-sum {
  text-align: right;
}
.cart-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 132px 130px 36px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child {
  border-bottom: 0;
}
.cart-img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg);
}
.cart-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cart-coll {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.cart-coll:empty {
  display: none;
}
.cart-name {
  font-family: var(--head);
  font-weight: var(--head-w);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.cart-name:hover {
  color: var(--accent);
}
.cart-unit {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
  overflow: hidden;
}
.cart-q-btn {
  width: 38px;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.cart-q-btn:hover {
  background: var(--accent-soft);
  color: var(--brand);
}
.cart-qty .cart-q-in {
  width: 44px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  outline: 0;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-qty .cart-q-in::-webkit-outer-spin-button,
.cart-qty .cart-q-in::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-line {
  text-align: right;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}
.cart-del {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.cart-del:hover {
  background: #fbe7e3;
  color: #a1311f;
}
.cart-sum {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-subs:empty {
  display: none;
}
.cart-sub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.cart-sub-disc {
  color: #a1311f;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 6px;
}
.cart-total span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cart-total-v {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
}
.cart-sum .btn {
  width: 100%;
}
.cart-empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: clamp(36px, 6vw, 72px);
}
.cart-empty p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}
/* --- оформление заказа --- */
.ord-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}
.ord-form {
  grid-column: 1;
  grid-row: 1;
}
.ord-cart {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 96px;
}
.ord-h {
  font-family: var(--head);
  font-weight: var(--head-w);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}
.ord-form .ord-h {
  margin: 10px 0 0;
}
.ord-form .ord-h:first-of-type {
  margin-top: 0;
}
.ord-sum {
  padding: clamp(20px, 2.4vw, 28px);
}
.ord-rows {
  display: flex;
  flex-direction: column;
}
.ord-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ord-row:first-child {
  padding-top: 0;
}
.ord-img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.ord-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ord-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ord-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.ord-name:hover {
  color: var(--accent);
}
.ord-info .order-row-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.ord-line {
  font-weight: 800;
  white-space: nowrap;
}
.ord-sub {
  padding: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.ord-sub b {
  color: var(--ink);
}
.ord-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
}
.ord-total span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ord-total b {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 28px;
  line-height: 1.1;
}
.ord-formbox {
  gap: 16px;
}
.ord-formbox .form-group {
  margin: 0;
}
.ord-opts {
  display: grid;
  gap: 10px;
}
.ord-opt {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  padding: 14px 16px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.ord-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ord-opt label {
  margin: 0;
}
.ord-formbox .ord-f textarea {
  min-height: 110px;
}
.ord-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}
.ord-formbox .opt {
  font-size: 14.5px;
  line-height: 1.45;
}
.ord-formbox .opt a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ord-req {
  color: #a1311f;
  font-weight: 700;
}
.ord-formbox .error,
.ord-formbox .form-messages {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #a1311f;
}
.ord-formbox .form-messages:not(:empty) {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #fbe7e3;
}
.ord-formbox .form-group.error input,
.ord-formbox .form-group.required input {
  border-color: #a1311f;
}
.order-min-price-notification {
  margin: 0;
  text-align: center;
  color: #a1311f;
  font-weight: 700;
  font-size: 14px;
}
.ord-formbox .btn {
  width: 100%;
}
.ord-formbox .btn[disabled],
.ord-formbox .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* --- «спасибо за заказ» --- */
.thx {
  max-width: 720px;
  margin: clamp(8px, 3vw, 40px) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
}
.thx-ic {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  margin-bottom: 6px;
}
.thx h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: var(--head-w);
  letter-spacing: var(--head-ls);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
}
.thx .d-404 {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  max-width: 520px;
}
.thx .n-404 {
  font-size: 15px;
}
.thx .b-404 {
  margin-top: 10px;
}
/* --- адаптив --- */
@media (max-width: 1100px) {
  .cart-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .ord-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
@media (max-width: 900px) {
  .cart-grid,
  .ord-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-sum,
  .ord-cart {
    position: static;
  }
  .ord-cart,
  .ord-form {
    grid-column: 1;
  }
  .ord-cart {
    grid-row: 1;
  }
  .ord-form {
    grid-row: 2;
  }
}
@media (max-width: 620px) {
  .cart-head {
    display: none;
  }
  .cart-list {
    padding: 4px 16px;
  }
  .cart-row {
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    grid-template-areas: "img info del" "qty line line";
    gap: 10px 12px;
    align-items: start;
    padding: 16px 0;
  }
  .cart-img {
    grid-area: img;
    width: 72px;
    height: 72px;
  }
  .cart-info {
    grid-area: info;
  }
  .cart-del {
    grid-area: del;
    width: 32px;
    height: 32px;
    justify-self: end;
  }
  .cart-qty {
    grid-area: qty;
    justify-self: start;
    height: 42px;
  }
  .cart-line {
    grid-area: line;
    align-self: center;
    justify-self: end;
    font-size: 17px;
  }
  .cart-name {
    font-size: 16px;
  }
  .ord-total b {
    font-size: 24px;
  }
}

/* ==== info.css ==== */
/* info.css — страницы: О магазине (9), Контакты (14), 404 (29), Оплата и доставка (11) */

/* ---------- О магазине ---------- */
.info-about .nd-content h1 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin: 0 0 20px;
}
.info-about .nd-content h2,
.info-about .nd-content h3 {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 14px 20px;
  margin: 32px 0 16px;
}
.info-about .nd-content h2 {
  font-size: clamp(20px, 2.2vw, 26px);
}
.info-about .nd-content h3 {
  font-size: clamp(18px, 1.8vw, 22px);
}
.info-about .nd-content p[align="center"] {
  text-align: center;
}
.info-about .nd-content p[style] {
  font-size: clamp(16px, 1.6vw, 19px) !important;
}
.info-about .nd-content p[align="center"] img {
  display: block;
  margin: 10px auto;
}
.info-about .nd-content img {
  max-width: 100%;
  border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.info-about .nd-content table {
  height: auto !important;
  max-width: 900px !important;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  font-size: inherit;
  display: block;
}
.info-about .nd-content tbody {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-about .nd-content tr {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  height: auto !important;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 18px 22px;
}
.info-about .nd-content td {
  display: block;
  border: 0 !important;
  padding: 0;
  height: auto !important;
  width: auto !important;
  font-size: clamp(15.5px, 1.5vw, 17.5px) !important;
  line-height: 1.6;
}
.info-about .nd-content td p {
  margin: 0;
}
.info-about .nd-content tr:has(td[colspan]) {
  display: none;
}
.info-about .nd-content td[colspan] {
  display: none;
}
.info-about .nd-content .numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  font-family: var(--head);
  font-weight: 600;
  font-size: 20px;
}
.info-docs {
  margin-top: 44px;
}
.info-docs .sec-head {
  justify-content: flex-start;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 18px;
}
.info-docs .sec-head h2 {
  margin: 0;
}
.info-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.info-docs-grid a {
  display: block;
  background: var(--surface);
  border-radius: var(--r);
  padding: 12px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.info-docs-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}
.info-docs-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.info-lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 16, 12, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.info-lb[hidden] {
  display: none;
}
.info-lb img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-sm);
  background: #fff;
}
.info-lb button {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Контакты ---------- */
.info-ct {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 20px;
  align-items: stretch;
}
.info-ct-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.info-ct-name {
  font-family: var(--head);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}
.info-ct-addr {
  font-size: 17px;
  line-height: 1.5;
}
.info-ct-warn {
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.4;
}
.info-ct-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
}
.info-ct-time span {
  color: var(--muted);
}
.info-ct-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-ct-phones .eyebrow {
  margin-bottom: 4px;
}
.info-ct-phones a {
  font-family: var(--head);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}
.info-ct-phones a:hover {
  color: var(--accent);
}
.info-ct-card .btn {
  margin-top: auto;
}
.info-ct-map {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.info-ct-map iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 380px;
  border: 0;
}
.info-ct-maplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 18px;
  font-size: 12px;
  line-height: 1.4;
}
.info-ct-maplinks a {
  color: var(--muted);
}
.info-ct-maplinks a:hover {
  color: var(--accent);
}
.info-soc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.info-soc-t {
  font-size: clamp(20px, 2vw, 24px);
  margin: 0 0 16px;
}
.info-soc-card {
  overflow: hidden;
  min-width: 0;
}
.info-soc-card .widgetWrapper {
  max-width: 100%;
  overflow: hidden;
}
.info-max {
  display: block;
}
.info-max img {
  width: 75%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--r-sm);
}
.info-soc-2gis .dg-widget-link {
  margin: 0 0 8px;
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.info-soc-2gis a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-soc-2gis {
  grid-column: 1/-1;
}
@media (max-width: 960px) {
  .info-ct,
  .info-soc {
    grid-template-columns: 1fr;
  }
  .info-ct-map,
  .info-ct-map iframe {
    min-height: 320px;
  }
}

/* ---------- 404 ---------- */
.info-404 {
  text-align: center;
  max-width: 820px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(28px, 5vw, 56px);
}
.info-404-code {
  font-family: var(--head);
  font-size: clamp(90px, 16vw, 170px);
  line-height: 0.9;
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 0 var(--line);
}
.info-404 h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0;
}
.info-404 .d-404 {
  font-size: 18px;
  margin: 0;
  color: var(--muted);
}
.info-404 .n-404 {
  font-size: 16px;
  font-weight: 600;
}
.info-404-search {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
}
.info-404-search .nd-input {
  flex: 1;
  min-width: 0;
}
.info-404-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.info-404-cats .btn {
  height: 44px;
  padding: 0 20px;
  background: var(--bg);
}
.info-404-cats .btn:hover {
  background: var(--accent-soft);
}
@media (max-width: 520px) {
  .info-404-search {
    flex-direction: column;
  }
  .info-404-search .nd-input {
    flex: none;
    height: 50px;
  }
}
@media (max-width: 600px) {
  .info-about {
    padding: 18px 14px;
  }
  .info-about .nd-content tr {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 14px 12px;
  }
  .info-about .nd-content .numbers {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .info-about .nd-content td {
    font-size: 15px !important;
  }
}
/* Контакты v2: карта без пустот, блок «Мы на связи» */
.page-contact .info-ct-map {
  display: flex;
  flex-direction: column;
}
.page-contact .info-ct-map iframe {
  flex: 1;
  height: auto;
  min-height: 420px;
}
.ct2 {
  margin-top: clamp(36px, 5vw, 64px);
}
.ct2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.ct2-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 28px);
}
.ct2-h {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ct2-h h3 {
  font-size: 21px;
  margin: 0;
}
.ct2-h small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 3px;
}
.ct2-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.ct2-ic svg {
  width: 26px;
  height: 26px;
}
.ct2-ic.vk {
  background: #0077ff;
}
.ct2-ic.mx {
  background: linear-gradient(135deg, #4cc2f0, #5b6cf0 55%, #7a3fe0);
}
.ct2-ic.gs {
  background: #29a36a;
}
.ct2-w {
  flex: 1;
  min-height: 300px;
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ct2-w:empty:before,
.ct2-vk:not(:has(iframe)):before,
.ct2-2gis:not(:has(iframe)):before {
  content: "Виджет загружается…";
  color: var(--muted);
  font-size: 13.5px;
}
.ct2-vk {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ct2-vk #vk_groups {
  width: 100% !important;
}
.ct2-max {
  padding: 18px;
}
.ct2-max img {
  max-height: 264px;
  width: auto;
  border-radius: 16px;
}
.ct2-2gis {
  background: var(--surface);
  border: 1px solid var(--line);
}
.ct2-2gis iframe,
.ct2-2gis > div {
  width: 100% !important;
  border: 0 !important;
}
.ct2-card .btn {
  width: 100%;
}
.ct2-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ct2-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--pill);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  transition:
    background 0.15s,
    border-color 0.15s;
  text-align: center;
  padding: 0 14px;
}
.ct2-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--brand);
}
.ct2-links a:first-child {
  background: #29a36a;
  border-color: #29a36a;
  color: #fff;
}
@media (max-width: 1100px) {
  .ct2-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ct2-grid > .ct2-card:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .ct2-grid {
    grid-template-columns: 1fr;
  }
  .ct2-w {
    min-height: 240px;
  }
}
.ct2-links a {
  height: auto;
  min-height: 44px;
  padding: 8px 16px;
  line-height: 1.3;
}
/* ВК: рамка — обычный блок, виджет на всю ширину, по центру по высоте */
.ct2-vk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  border: 0;
  background: var(--bg);
  padding: 0;
}
.ct2-vk #vk_groups {
  width: 100% !important;
  display: block;
}
.ct2-vk #vk_groups iframe {
  display: block;
  width: 100% !important;
  border-radius: var(--r-sm);
}
.ct2-vk:not(:has(iframe)) {
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ==== podbor.css ==== */
/* «Подобрать пол» — eFilter в стиле прототипа */
.ef-results {
  display: block;
}
.ef-results #eFiltr_results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.ef-results #eFiltr_results_wrapper {
  position: relative;
}
.ef-results .eFiltr_loader {
  display: none;
}
.ef-results #eFiltr_results .pagination {
  grid-column: 1/-1;
  margin-top: 12px;
}
.ef-results .pagination b.current {
  background: var(--brand);
  color: #fff;
}
.ef-results .pagination a,
.ef-results .pagination b {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--surface);
  font-weight: 700;
}
.f-close {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  display: none;
}
.filters .eFiltr_cat0 > .fltr_cat_zagol:empty {
  display: none;
}
.filters .fltr_block {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.filters .fltr_name {
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.filters .fltr_block label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14.5px;
  cursor: pointer;
  font-weight: 500;
}
.filters .fltr_block label.disabled {
  opacity: 0.45;
}
.filters .fltr_block input[type="checkbox"],
.filters .fltr_block input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
  margin: 0;
}
.filters .fltr_count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}
.filters .slider_text {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.filters .ui-slider {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 8px 10px 10px;
  border: 0;
}
.filters .ui-slider .ui-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
}
.filters .ui-slider .ui-slider-handle {
  position: absolute;
  top: -8px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  cursor: pointer;
  outline: 0;
  touch-action: none;
}
.filters .ui-slider .ui-slider-handle:focus {
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.filters select {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  padding: 0 12px;
  font: inherit;
}
.filters input[type="submit"],
.filters button[type="submit"],
.filters .eFiltr_reset,
.filters input[type="reset"] {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: var(--pill);
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.filters .eFiltr_reset,
.filters input[type="reset"] {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
@media (max-width: 960px) {
  .f-close {
    display: block;
  }
}
.filters .eFiltr_cat,
.filters .fltr_block,
.filters .fltr_inner {
  float: none !important;
  width: auto !important;
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
}
.filters .fltr_block label {
  width: auto !important;
  float: none !important;
}
.filters .eFiltr_cat:after {
  content: "";
  display: block;
  clear: both;
}
.filters .eFiltr_reset,
.filters input[type="reset"],
.filters a[class*="reset"],
.filters button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
}
.filters .f-head button {
  display: none;
  width: auto;
  height: auto;
  margin: 0 0 0 auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
}
@media (max-width: 960px) {
  .filters .f-head button {
    display: block;
  }
}

/* ==== search.css ==== */
/* ===== Поиск (шаблоны 28 «search_result», 17 «search_page») ===== */
.nd-search-form {
  display: flex;
  align-items: center;
  height: 56px;
  max-width: 680px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  margin: 0 0 26px;
}
.nd-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nd-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  padding: 0 22px;
  color: var(--ink);
}
.nd-search-form button {
  height: 100%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 28px;
  cursor: pointer;
  transition: background 0.2s;
}
.nd-search-form button:hover {
  background: var(--brand-h);
}
.search-page-box {
  min-height: 120px;
}
.search-results .ajaxSearch_resultsInfos {
  margin: 0 0 6px;
  font-size: 16px;
}
.search-results .ajaxSearch_resultsDisplayed {
  color: var(--muted);
  margin-left: 4px;
}
.search-results .ajaxSearch_highlight {
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}
.search-results .ajaxSearch_grpResultName {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 4px;
}
.search-grp .search-grid {
  margin: 14px 0 20px;
}
.search-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}
.search-paging .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}
.search-paging .paging1Infos {
  font-weight: 700;
  color: var(--muted);
  order: 0;
}
.search-paging .paging1Prev {
  order: -1;
}
.search-item .im {
  display: block;
}
.search-item .im > a {
  display: block;
}
.search-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  max-width: calc(100% - 20px);
}
.search-badges .isOfferBageList,
.search-badges .isPriseBageList,
.search-badges .isFreeBageList {
  position: static;
  padding: 3px 9px;
  border-radius: var(--pill);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.search-badges .isOfferBageList {
  background: #c9432f;
}
.search-badges .isPriseBageList {
  background: #2f6f8f;
}
.search-badges .isFreeBageList {
  background: var(--brand);
}
.search-item .n {
  color: var(--ink);
}
.search-item .n:hover {
  color: var(--brand);
}
.search-item .pr b sup {
  font-size: 0.6em;
  vertical-align: super;
}
.search-empty {
  max-width: 720px;
}
.search-empty p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.55;
}
.search-empty-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 620px) {
  .nd-search-form {
    height: 50px;
  }
  .nd-search-form input {
    padding: 0 16px;
    font-size: 16px;
  }
  .nd-search-form button {
    padding: 0 18px;
  }
  .search-paging .btn {
    flex: 1;
    padding: 0 12px;
  }
  .search-paging .paging1Infos {
    width: 100%;
    text-align: center;
    order: -2;
  }
  .search-badges .isOfferBageList,
  .search-badges .isPriseBageList,
  .search-badges .isFreeBageList {
    font-size: 10.5px;
  }
}
/* разделы и коллекции над результатами поиска */
.ss {
  margin: 0 0 26px;
}
.ss-t {
  font-size: clamp(20px, 2vw, 24px);
  margin: 0 0 12px;
}
.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.ss-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  transition:
    background 0.15s,
    transform 0.2s;
}
.ss-item:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.ss-item b {
  font-weight: 700;
}
.ss-item span {
  color: var(--muted);
  font-size: 13.5px;
  margin-left: auto;
  white-space: nowrap;
}
.ss-item i {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.ss-more {
  margin: 8px 0 10px;
}
.search-grp .ajaxSearch_grpResultsDisplayed {
  display: none;
}
.search-grp .search-paging {
  margin-top: 26px;
  justify-content: center;
}
