/* GlobalTherm — демо-вариант сайта */
:root {
  --paper: #F3F4F7;
  --white: #FFFFFF;
  --ink: #16143A;
  --indigo: #33297F;
  --red: #E3302A;
  --muted: #676A80;
  --line: #E1E3EA;
  --ok: #1E8E5A;

  --f-display: "Roboto", Arial, sans-serif;
  --f-body: "Roboto", Arial, sans-serif;
  --f-mono: "Roboto", Arial, sans-serif;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin: 0 0 14px;
}
.h2 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--indigo); }
.btn-line { border-color: var(--line); background: var(--white); }
.btn-line:hover { border-color: var(--ink); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #c7241f; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- демо-режим ---------- */
.demo-note { background: #FFF4D6; color: #6B4A00; font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #F0DDA8; }
.demo-note a, .demo-note button { color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #C9C8DA; font-size: 13px; }
.topbar .wrap { display: flex; gap: 24px; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar a:hover { color: var(--white); }
.topbar-info { display: flex; gap: 24px; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 48px; width: auto; }
.footer-logo { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--f-mono); font-size: 15px; font-weight: 500; white-space: nowrap; }
.req-btn .count {
  font-family: var(--f-mono); font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--red); color: var(--white);
  display: inline-grid; place-items: center;
}
.req-btn .count[data-empty="true"] { background: rgba(255,255,255,.2); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: "";
}
.burger span::before { position: absolute; top: -5px; }
.burger span::after { position: absolute; top: 5px; }

/* ---------- баннеры: полоса во всю ширину, как у Valtec ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { padding: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.slider { position: relative; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s .6s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.slide-inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: clamp(190px, 15vw, 220px); padding-top: 16px; padding-bottom: 38px;
}
.slide .slide-text, .slide .slide-img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.slide:not(.active) .slide-text { transform: translateX(16px); }
.slide.leaving .slide-text { transform: translateX(-16px); }
.theme-grey { background: #ECEDF1; }
.theme-white { background: var(--white); border-bottom: 1px solid var(--line); }
.theme-dark { background: var(--ink); color: #EDECF5; }
.slide-text { max-width: 640px; }
.slide-label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.slide-label.promo { display: inline-block; color: var(--white); background: var(--red); padding: 4px 9px; border-radius: 5px; }
.theme-dark .slide-label:not(.promo) { color: #A9A6C6; }
.slide-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; margin: 0 0 8px; }
.slide-title .hot { color: var(--red); } .slide-title .cold { color: var(--indigo); }
.slide-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 12px; max-width: 460px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.theme-dark .slide-desc { color: #B7B5CE; }
.slide-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; }
.slide-price .now { font-family: var(--f-mono); font-weight: 600; font-size: clamp(20px, 1.7vw, 24px); }
.slide-price.promo .now { color: var(--red); }
.theme-dark .slide-price.promo .now { color: #FF6B64; }
.slide-price s { font-family: var(--f-mono); color: var(--muted); font-size: 15px; }
.slide-price .off { font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--white); background: var(--red); padding: 2px 7px; border-radius: 5px; align-self: center; }
.slide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.slide-cta .btn { height: 40px; padding: 0 20px; border-radius: 8px; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.theme-dark .btn-line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.theme-dark .btn-line:hover { border-color: var(--white); }
.btn-line.in { background: var(--ink); color: var(--white); border-color: var(--ink); }
.slide-until { font-size: 12px; color: var(--muted); align-self: center; }
.theme-dark .slide-until { color: #A9A6C6; }
.slide-img { display: grid; place-items: center; }
.slide-img img { max-width: 100%; max-height: clamp(130px, 12vw, 170px); object-fit: contain; }
.theme-grey .slide-img img, .theme-white .slide-img img { mix-blend-mode: multiply; }
.theme-dark .slide-img img { background: var(--white); border-radius: 14px; padding: 14px; }

/* точки и стрелки — внутри полосы, по центру снизу */
.slider-nav { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 14px; pointer-events: none; }
.slider-nav > * { pointer-events: auto; }
.dots { display: flex; gap: 10px; }
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #CDD0D9; border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.dot::before { content: ""; position: absolute; inset: -8px; }
.dot:hover { background: #A9ACBB; }
.dot[aria-selected="true"] { background: var(--red); transform: scale(1.15); }
.slider.on-dark .dot:not([aria-selected="true"]) { background: rgba(255,255,255,.3); }
.arrow { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.75); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.arrow:hover { background: var(--white); }

/* цены со скидкой в карточках */
.price-old { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: block; line-height: 1.2; }
.price.sale { color: var(--red); }
.sale-tag { position: absolute; top: 10px; left: 10px; background: var(--red); color: var(--white); font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.product-img { position: relative; }
.pp-buy .price-old { font-size: 15px; margin-bottom: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--muted); max-width: 420px; }
.link-arrow { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.link-arrow:hover { color: var(--red); }

/* разделы каталога — крупные карточки, как у Valtec */
.cats-section { padding: clamp(28px, 3.5vw, 44px) 0 0; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: border-color .2s, box-shadow .2s; }
.cat:hover { border-color: #C9CBD6; box-shadow: 0 10px 28px rgba(22, 20, 58, .08); }
.cat-img { --h: clamp(150px, 15vw, 200px); width: 100%; height: var(--h); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.cat-img img { max-width: 78%; max-height: var(--h); object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat-name { font-weight: 600; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; max-width: 340px; }
.cat:hover .cat-name { color: var(--indigo); }

/* products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; display: flex; flex-direction: column; transition: border-color .2s;
}
.product:hover { border-color: #C5C7D3; }
.product-img { aspect-ratio: 1; background: var(--paper); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s; }
.product:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.product-cat { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.product-name { font-size: 15px; line-height: 1.35; margin: 0 0 14px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.price { font-family: var(--f-mono); font-weight: 600; font-size: 16px; }
.price.ask { font-weight: 400; font-size: 13px; color: var(--muted); }
.stock { font-family: var(--f-mono); font-size: 12px; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.no { color: var(--muted); }
.add-btn {
  height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s;
}
.add-btn:hover { border-color: var(--ink); }
.add-btn.in { background: var(--ink); border-color: var(--ink); color: var(--white); }
.add-btn.ask:not(.in) { border-color: var(--indigo); color: var(--indigo); }
.add-btn.ask:not(.in):hover { background: var(--indigo); color: var(--white); }
.ask-note { color: var(--indigo); }

/* brands */
.brands { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands span { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #A5A7B8; transition: color .2s; }
.brands span:hover { color: var(--ink); }

/* audiences */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); }
.duo-card.dark { background: var(--ink); color: #E6E5F2; border-color: var(--ink); }
.duo-card.dark .eyebrow { color: #9C99C2; }
.duo-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin: 0 0 20px; line-height: 1.2; }
.duo-card ul { list-style: none; margin: 0 0 28px; padding: 0; }
.duo-card li { padding: 12px 0; border-top: 1px solid var(--line); }
.duo-card.dark li { border-color: rgba(255,255,255,.12); }

/* facts / delivery */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.fact b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.fact p { margin: 0; color: var(--muted); }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.about p { margin: 0 0 16px; font-size: 17px; }
.about p.muted { color: var(--muted); font-size: 16px; }
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-family: var(--f-mono); font-size: 13px; padding-top: 2px; }
.spec dd { margin: 0; }

/* contacts */
.contacts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.phones a { display: block; font-family: var(--f-mono); font-size: clamp(18px, 2vw, 22px); font-weight: 500; padding: 4px 0; }
.phones a:hover { color: var(--red); }
.contact-card h3 { font-size: 13px; font-family: var(--f-mono); font-weight: 400; color: var(--muted); margin: 24px 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.contact-card h3:first-child { margin-top: 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-family: var(--f-mono); font-size: 14px; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--white); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05); }

/* footer */
.footer { margin-top: clamp(72px, 9vw, 128px); background: var(--ink); color: #B7B5CE; padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: #7F7CA3; margin: 0 0 14px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- catalog page ---------- */
.cat-page { padding: 40px 0 0; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.cat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.side { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; max-height: calc(100vh - 120px); overflow: auto; }
.side a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; line-height: 1.3; }
.side a:hover { background: var(--paper); }
.side a[aria-current="true"] { background: var(--ink); color: var(--white); }
.side a[aria-current="true"] .mono { color: #B7B5CE; }
.side .mono { color: var(--muted); font-size: 12px; padding-top: 1px; }
.cat-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-toolbar h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; margin: 0; }
.search { position: relative; width: min(360px, 100%); }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); padding: 0 20px 0 44px; }
.search input:focus { outline: none; border-color: var(--ink); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cat-grid { grid-template-columns: repeat(3, 1fr); }
.more-note { margin-top: 24px; padding: 24px 28px; border: 1px dashed #C9CBD6; border-radius: var(--r); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.more-note p { margin: 0; color: var(--muted); max-width: 560px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- расчёт стоимости (с прежнего сайта) ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 220px; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.calc .wrap.calc-grid { max-width: calc(var(--wrap) - 2 * var(--gut)); }
.calc-text .h2 { font-size: clamp(20px, 1.9vw, 26px); }
.calc-text p { color: var(--muted); margin: 14px 0 22px; }
.calc-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.works { position: relative; margin: 0; }
.works-track { display: grid; grid-template: 1fr / 1fr; border-radius: 12px; overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; }
.works-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; position: relative; }
.works-slide.active { opacity: 1; visibility: visible; transition: opacity .5s; }
.works-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.works-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: var(--white); font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.works-nav { position: absolute; top: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 22px; line-height: 1; cursor: pointer; }
.works-nav.prev { left: 10px; } .works-nav.next { right: 10px; }
.works-dots { position: absolute; top: 10px; right: 12px; display: flex; gap: 6px; }
.works-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.works-dots i.on { background: var(--white); }
.calc-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; text-align: center; }
.calc-stats b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2vw, 30px); color: var(--indigo); line-height: 1.1; }
.calc-stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* ---------- услуги ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.svc-card:hover { border-color: #C9CBD6; box-shadow: 0 10px 28px rgba(22, 20, 58, .07); }
.svc-card .svc-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-card h3 { font-size: 17px; font-weight: 600; line-height: 1.25; margin: 16px 16px 8px; }
.svc-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 16px 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card .link-arrow { margin: auto 16px 16px; font-size: 14px; }
.svc-card:hover .link-arrow { color: var(--red); }
.svc-perks { list-style: none; margin: 8px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-perks li { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 15px; line-height: 1.4; }
.svc-perks img { flex: none; width: 44px; height: 44px; }
.svc-perks b { color: var(--ok); }
.svc-list { display: grid; gap: 20px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2vw, 24px); scroll-margin-top: 96px; }
.svc-row:nth-child(even) .svc-img { order: 2; }
.svc-row .svc-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper); }
.svc-row .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-body h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.15; margin: 0 0 12px; }
.svc-body p { margin: 0 0 12px; line-height: 1.65; color: #3E4057; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.svc-note { margin-top: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: #E6E5F2; border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.svc-note h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 22px); margin: 0 0 12px; color: var(--white); }
.svc-note p { margin: 0 0 10px; color: #C9C8DA; }
.svc-note ul { margin: 0 0 12px; padding-left: 20px; color: var(--white); }
.svc-note-cta { display: grid; gap: 10px; }
.svc-note .btn-dark { background: var(--white); color: var(--ink); }
.svc-note .btn-line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }

/* ---------- отдельные страницы ---------- */
.page-head { padding-top: 40px; }
.page-head h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; margin: 0; }
.page-lead { color: var(--muted); max-width: 760px; margin: 12px 0 0; }
.page-head + .inst-page { padding-top: 24px; }
.page-head + .section { padding-top: clamp(24px, 3vw, 40px); }
.inst-section { margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: 96px; }
.inst-section .h2 { margin-bottom: 10px; }
.inst-lead { color: var(--muted); max-width: 720px; margin: 0 0 20px; }

/* ---------- монтажники ---------- */
.inst-head { max-width: 720px; margin-bottom: 20px; }
.inst-head h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; margin: 0 0 12px; }
.inst-head p { color: var(--muted); margin: 0; font-size: 16px; }
.inst-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.inst-filter button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 14px; }
.inst-filter button:hover { border-color: var(--ink); }
.inst-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.inst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inst-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, box-shadow .2s; }
.inst-card:hover { border-color: #C9CBD6; box-shadow: 0 10px 28px rgba(22, 20, 58, .07); }
.inst-top { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.inst-photo, .ip-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #E7E9F2; display: grid; place-items: center; flex: none; }
.inst-photo img, .ip-photo img { width: 100%; height: 100%; object-fit: cover; }
.inst-initials { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--indigo); }
.inst-info h3 { font-size: 17px; font-weight: 600; line-height: 1.25; margin: 0 0 4px; }
.inst-top:hover h3 { color: var(--indigo); }
.inst-meta { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.inst-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.inst-tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #EEF0F6; color: var(--indigo); }
.inst-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.inst-works button { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.inst-works img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.inst-works button:hover img { transform: scale(1.05); }
.inst-works span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(22, 20, 58, .55); color: var(--white); font-family: var(--f-mono); font-size: 16px; }
.inst-noworks { margin: 0; padding: 18px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 13px; text-align: center; }
.inst-actions { display: flex; gap: 8px; margin-top: auto; }
.inst-actions .btn { flex: 1; }

.inst-dialog, .lightbox { border: 0; padding: 0; color: var(--ink); }
.inst-dialog { width: min(860px, calc(100% - 24px)); max-height: calc(100vh - 40px); border-radius: 18px; background: var(--white); overflow: auto; }
.inst-dialog::backdrop, .lightbox::backdrop { background: rgba(22, 20, 58, .55); }
.inst-dialog > .x { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2; }
#inst-profile { padding: 28px clamp(18px, 4vw, 36px) 32px; }
.ip-head { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; margin-bottom: 20px; }
.ip-photo { width: 120px; height: 120px; }
.ip-photo .inst-initials { font-size: 38px; }
.ip-head h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.15; margin: 0 0 6px; }
.ip-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ip-desc { border-top: 1px solid var(--line); padding-top: 18px; }
.ip-desc p { margin: 0 0 12px; line-height: 1.65; }
.ip-sub { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 12px; }
.ip-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ip-gallery button { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.ip-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ip-gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; color: var(--white); text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; background: var(--white); }
.lightbox figcaption { color: var(--white); font-size: 14px; margin-top: 10px; }
.lightbox > .x { position: fixed; top: 16px; right: 16px; background: var(--white); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-nav[hidden] { display: none; }

/* ---------- request drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(22,20,58,.4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 61;
  background: var(--white); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.open .scrim { opacity: 1; pointer-events: auto; }
.open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin: 0; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 20px; line-height: 1; }
.x:hover { border-color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.line-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 56px; height: 56px; object-fit: contain; background: var(--paper); border-radius: 8px; mix-blend-mode: multiply; }
.line-item .n { font-size: 14px; line-height: 1.3; }
.line-item .p { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; }
.qty span { font-family: var(--f-mono); font-size: 13px; min-width: 22px; text-align: center; }
.drawer-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .total { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.drawer-foot .total b { font-family: var(--f-mono); color: var(--ink); font-size: 16px; white-space: nowrap; }
.field { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--white); }
.field:focus { outline: none; border-color: var(--ink); }
.drawer-foot small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: all .25s; z-index: 70; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* WhatsApp-кнопка в корзине */
.btn-wa { background: #1DA851; color: #fff; height: 52px; font-size: 16px; }
.btn-wa:hover { background: #168A42; }

/* уведомление о cookie */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; max-width: 440px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(22,20,58,.16); padding: 18px 20px; font-size: 14px; line-height: 1.5;
}
.cookie p { margin: 0 0 14px; }
.cookie a { text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.open .cookie { display: none; }
@media (max-width: 720px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 16px; font-size: 13px; }
  .cookie-btns .btn { flex: 1; }
  body:has(.cookie) .wa-float { opacity: 0; pointer-events: none; }
}

/* политика конфиденциальности */
.legal .wrap > * { max-width: 820px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3A3D52; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 14px; font-size: 14px; }
.legal-table > div { display: grid; grid-template-columns: 1fr 2fr 1fr; }
.legal-table > div + div { border-top: 1px solid var(--line); }
.legal-table span { padding: 10px 14px; }
.lt-head { background: #F4F5F8; font-weight: 500; }
@media (max-width: 720px) {
  .legal-table > div { grid-template-columns: 1fr; }
  .legal-table span { padding: 4px 14px; }
  .legal-table span:first-child { padding-top: 10px; font-weight: 500; }
  .legal-table span:last-child { padding-bottom: 10px; color: var(--muted); }
  .lt-head { display: none !important; }
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .footer-legal a { display: inline; padding: 0; }
.footer-legal button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-legal button:hover { color: var(--white); }
.nf { padding-bottom: 40px; }

/* плавающая кнопка WhatsApp */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.06); background: #1DA851; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.wa-tip {
  position: absolute; right: 72px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 13px; padding: 7px 12px; border-radius: 8px;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: all .2s;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
.open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } .wa-tip { display: none; } }

/* mobile nav */
.mnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .header .wrap { gap: 24px; }
  .nav { gap: 22px; }
  .header-phone { display: none; }
}
@media (max-width: 1100px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-perks { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; font-size: 14px; }
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { padding: 18px 14px 20px; }
  .cat-img { --h: 110px; margin-bottom: 14px; }
  .cat-name { font-size: 15px; }
  .slide-inner { grid-template-columns: 1fr 96px; gap: 12px; min-height: 0; padding-top: 16px; padding-bottom: 42px; align-items: center; height: 100%; }
  .slide-img img { max-height: 96px; }
  .slide-desc { display: none; }
  .slide-title { font-size: 17px; }
  .slide-price { margin-bottom: 12px; }
  .slide-price .now { font-size: 20px; }
  .slide-cta { flex-wrap: nowrap; gap: 8px; }
  .slide-cta .btn { height: 38px; padding: 0 12px; font-size: 12px; }
  .nav, .topbar-info .hide-m { display: none; }
  .burger { display: grid; place-items: center; }
  .duo, .about, .contacts { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 6px; max-height: none; scrollbar-width: none; }
  .side a { white-space: nowrap; flex: none; }
  .mnav.show { display: block; border-top: 1px solid var(--line); padding: 8px var(--gut) 16px; background: var(--white); }
  .mnav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}
@media (max-width: 720px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-stats { gap: 10px; }
  .calc-stats b { font-size: 22px; }
  .calc-stats span { font-size: 12px; }
  .products, .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc-card h3 { font-size: 15px; margin: 12px 12px 6px; }
  .svc-card p { display: none; }
  .svc-card .link-arrow { margin: auto 12px 12px; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-img { order: 0; }
  .svc-note { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
  .inst-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1) 16px; padding: 0 var(--gut); scrollbar-width: none; }
  .inst-filter button { flex: none; }
  .ip-head { grid-template-columns: 84px 1fr; gap: 14px; }
  .ip-photo { width: 84px; height: 84px; }
  .ip-gallery { grid-template-columns: 1fr 1fr; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .section-head { flex-direction: column; align-items: start; }
  .topbar .wrap { justify-content: center; }
  .topbar .hide-s { display: none; }
  .req-btn .lbl { display: none; }
  .req-btn { padding: 0 14px; }
  .header .wrap { gap: 12px; height: 64px; }
  .logo img { height: 34px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .product-meta { flex-direction: column; align-items: start; gap: 4px; }
  .product-name { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- страница товара ---------- */
.product-name a:hover { color: var(--indigo); }
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pp-img { position: sticky; top: 96px; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; }
.pp-img img { width: 82%; height: 82%; object-fit: contain; }
.pp-info h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.12; margin: 0 0 24px; }
.pp-buy { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.pp-buy .price { font-size: 24px; }
.pp-buy .btn { min-width: 180px; }
.pp-buy .btn.in { background: var(--indigo); }
.pp-ask { margin-top: 14px; color: var(--muted); font-size: 15px; }
.pp-ask a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pp-desc { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.pp-desc h2 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }
.pp-desc p { margin: 0 0 12px; line-height: 1.65; }
.pp-desc p.li, .pp-desc li { padding-left: 18px; position: relative; list-style: none; margin: 0 0 6px; }
.pp-desc p.li::before, .pp-desc li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 2px; background: var(--red); }
.pp-desc ul { padding: 0; margin: 0 0 12px; }
@media (max-width: 900px) {
  .pp { grid-template-columns: 1fr; }
  .pp-img { position: static; max-width: 480px; }
  .pp-buy { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .pp-img { aspect-ratio: 4 / 3; }
  .pp-img img { width: 70%; height: 86%; }
}
.legal a[href^="tel:"] { white-space: nowrap; }
