/* STABILA KG — интернет-магазин. Структура как у tssp.kz, фирменный стиль STABILA (жёлтый #ffcc00 + чёрный). */
:root {
  --yellow: #ffcc00;
  --yellow-d: #f0bf00;
  --black: #111111;
  --ink: #1d1d1b;
  --ink-2: #5b5a59;
  --line: #e4e4e4;
  --bg: #f2f2f0;
  --card: #ffffff;
  --red: #e30613;
  --radius: 14px;
  --f-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --f-head: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px -10px rgba(0,0,0,.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--f-body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo svg, .logo-mark svg { stroke: none; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--black); color: #cfcfcf; font-size: 13.5px; }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 38px; }
.tb-city { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.tb-city svg { width: 15px; height: 15px; color: var(--yellow); }
.tb-links { margin-left: auto; display: flex; gap: 22px; }
.tb-links a:hover { color: var(--yellow); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--yellow); box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.header-in { display: flex; align-items: center; gap: 18px; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-word { font: 800 32px/1 'Montserrat', var(--f-body); letter-spacing: .005em; color: var(--black); }
.logo-mark { width: 46px; height: 46px; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.btn-catalog {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--black); color: #fff; font: 700 17px/1 var(--f-body); letter-spacing: .02em; flex-shrink: 0; transition: background .15s;
}
.btn-catalog:hover { background: #2b2b2b; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; background: var(--yellow); border-radius: 2px; transition: transform .2s, opacity .2s; }
.btn-catalog[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.btn-catalog[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.btn-catalog[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Поиск: белое поле, при вводе — чёрная рамка; справа крестик очистки и кнопка-лупа */
.search { position: relative; flex: 1; display: flex; align-items: center; height: 48px; padding: 4px; background: #fff; border-radius: 12px; min-width: 0;
  box-shadow: inset 0 0 0 2px transparent, 0 1px 2px rgba(0,0,0,.08); transition: box-shadow .15s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--black), 0 0 0 4px rgba(17,17,17,.12); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 10px 0 14px; font-size: 15.5px; color: var(--ink); text-overflow: ellipsis; }
.search input::placeholder { color: #9a9a9a; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search .s-clear { width: 32px; height: 32px; margin-right: 2px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #9a9a9a; flex-shrink: 0; }
.search .s-clear:hover { background: #f1f1f1; color: var(--ink); }
.search .s-clear svg { width: 16px; height: 16px; stroke-width: 2.2; }
.search .s-go { width: 44px; height: 40px; border: 0; border-radius: 9px; display: grid; place-items: center; background: var(--black); color: var(--yellow); flex-shrink: 0; transition: background .15s; }
.search .s-go:hover { background: #2b2b2b; }
.search .s-go svg { width: 20px; height: 20px; stroke-width: 2.4; }
/* выпадающие подсказки */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: 0 22px 44px -14px rgba(0,0,0,.4); overflow: hidden; z-index: 5; padding: 6px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; }
.suggest a:hover, .suggest a.active { background: #fff6cc; }
.sg-img { width: 48px; height: 48px; border-radius: 8px; background: #f6f6f6; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.suggest img { width: 44px; height: 44px; object-fit: contain; }
.sg-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sg-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sg-txt b mark { background: none; color: inherit; box-shadow: inset 0 -.45em 0 rgba(255, 204, 0, .55); }
.sg-txt small { color: #8a8a8a; font-size: 12.5px; }
.suggest .s-price { margin-left: auto; padding-left: 8px; font-weight: 700; white-space: nowrap; }
.suggest .s-all { justify-content: center; margin-top: 4px; font-weight: 700; background: #f6f6f6; }
.suggest .s-empty { padding: 12px 10px 6px; color: #777; font-size: 14px; }

.h-links { display: flex; gap: 4px; }
.h-link, .h-icon {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px; border: 0; background: none;
  font-size: 12.5px; font-weight: 600; color: var(--black); border-radius: 8px; white-space: nowrap;
}
.h-link svg, .h-icon svg { width: 24px; height: 24px; }
.h-link:hover, .h-icon:hover { background: rgba(0,0,0,.07); }
.h-phone { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; padding: 0 6px; }
.h-phone b { font: 700 19px/1.1 var(--f-body); }
.h-phone small { font-size: 12px; color: #4a4000; text-decoration: underline; text-underline-offset: 2px; }
.h-icons { display: flex; gap: 2px; }
.cart-count { position: absolute; top: 0; right: 6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--black); color: var(--yellow); font-size: 11.5px; line-height: 19px; text-align: center; }

/* ---------- Mega menu (основной каталог) ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); border-top: 1px solid rgba(0,0,0,.08); }
.mega-in { display: grid; grid-template-columns: 320px 1fr; min-height: 420px; padding-top: 18px; padding-bottom: 22px; }
.mega-sections { list-style: none; margin: 0; padding: 0 18px 0 0; border-right: 1px solid var(--line); }
.mega-sections a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.mega-sections a .ic { width: 34px; height: 34px; border-radius: 8px; background: #f3f3f3; display: grid; place-items: center; flex-shrink: 0; }
.mega-sections a .ic svg { width: 21px; height: 21px; }
.mega-sections a .cnt { margin-left: auto; font-size: 13px; color: #999; font-weight: 500; }
.mega-sections a.active, .mega-sections a:hover { background: #fff6cc; }
.mega-sections a.active .ic { background: var(--yellow); }
.mega-subs { padding: 4px 0 0 28px; }
.mega-subs h3 { margin: 4px 0 16px; font: 700 26px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.mega-subs h3 a:hover { text-decoration: underline; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sub-tile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sub-tile:hover { border-color: var(--yellow); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); transform: translateY(-2px); }
.sub-tile img { height: 110px; width: 100%; object-fit: contain; }
.sub-tile b { font-size: 15px; line-height: 1.2; }
.sub-tile span { font-size: 13px; color: #888; }
.mega-models { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.mega-models a { padding: 6px 12px; border-radius: 20px; background: #f3f3f3; font-size: 13.5px; }
.mega-models a:hover { background: var(--yellow); }

/* ---------- Тонкая бегущая строка-каталог ---------- */
.cat-ticker-wrap { position: sticky; top: 84px; z-index: 40; background: var(--black); border-bottom: 3px solid var(--yellow); }
.cat-ticker { overflow: hidden; position: relative; }
.cat-ticker::before, .cat-ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; }
.cat-ticker::before { left: 0; background: linear-gradient(90deg, var(--black), rgba(17,17,17,0)); }
.cat-ticker::after { right: 0; background: linear-gradient(-90deg, var(--black), rgba(17,17,17,0)); }
/* лента едет сама (marquee3), стрелки сдвигают обёртку .cat-shift на один раздел */
.cat-shift { width: max-content; will-change: transform; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.cat-track { display: flex; width: max-content; animation: marquee3 var(--t, 60s) linear infinite; will-change: transform; }
@keyframes marquee3 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.3333%, 0, 0); } }
.ct-nav { position: absolute; top: 50%; z-index: 3; width: 22px; height: 22px; margin-top: -11px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: rgba(255, 255, 255, .55); opacity: .35; transition: opacity .25s, background .2s, color .2s; }
.ct-nav svg { width: 14px; height: 14px; stroke-width: 2.2; }
.ct-nav.prev { left: 6px; }
.ct-nav.next { right: 6px; }
.cat-ticker-wrap.hovering .ct-nav { opacity: .65; }
.ct-nav:hover, .ct-nav:focus-visible { background: rgba(255, 255, 255, .14); color: var(--yellow); opacity: 1; }
/* пауза — пока курсор двигается над лентой или открыто меню; при прокрутке лента снова едет */
.cat-ticker-wrap.hovering .cat-track, .cat-ticker-wrap.open .cat-track { animation-play-state: paused; }
.cat-item {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 0 30px 0 26px; height: 42px; white-space: nowrap;
  color: #fff; font: 600 15px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; transition: color .15s, background .15s;
}
.cat-item::after { content: ''; position: absolute; right: -4px; top: 9px; bottom: 9px; width: 7px; transform: skewX(-22deg); background: var(--yellow); }
.cat-item svg { width: 19px; height: 19px; color: var(--yellow); }
.cat-item small { font: 500 12px/1 var(--f-body); color: #8d8d8d; letter-spacing: 0; text-transform: none; }
.cat-item:hover, .cat-item.on { color: var(--yellow); background: #1f1f1f; }
.cat-drop {
  position: absolute; top: 100%; margin-top: 3px; width: min(720px, calc(100vw - 32px)); background: #fff; border-radius: 0 0 14px 14px;
  box-shadow: 0 26px 50px -16px rgba(0,0,0,.45); border-top: 3px solid var(--yellow); padding: 16px 18px 18px;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.cat-drop.show { opacity: 1; transform: none; pointer-events: auto; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.cat-drop h4 { margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; font: 700 21px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .03em; }
.cat-drop h4 a:hover { text-decoration: underline; }
.cat-drop h4 small { font: 500 13px var(--f-body); color: #888; text-transform: none; letter-spacing: 0; }
.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.drop-grid .sub-tile img { height: 80px; }
.drop-grid .sub-tile b { font-size: 14px; }

@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Широкая бегущая лента «STABILA в работе» ---------- */
.showcase { margin-top: 22px; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--black);
  border-top: 4px solid var(--yellow); border-bottom: 4px solid var(--yellow); }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 28px 16px; color: #fff; }
.showcase-head h1 { margin: 0; font: 800 40px/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.showcase-head h1 em { font-style: normal; color: var(--yellow); }
.showcase-head p { margin: 6px 0 0; color: #b5b5b5; max-width: 620px; }
.showcase-head .btn { flex-shrink: 0; }
.sc-row { position: relative; overflow: hidden; padding: 6px 0; }
.sc-row::before, .sc-row::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.sc-row::before { left: 0; background: linear-gradient(90deg, var(--black), rgba(17,17,17,0)); }
.sc-row::after { right: 0; background: linear-gradient(-90deg, var(--black), rgba(17,17,17,0)); }
.sc-track { display: flex; width: max-content; animation: marquee var(--t, 120s) linear infinite; will-change: transform; backface-visibility: hidden; }
.sc-row.rev .sc-track { animation-direction: reverse; }
/* один ряд, пошаговое движение (управляется из app.js) */
.sc-row.step { padding: 6px 0 2px 28px; }
.sc-row.step::before { display: none; }   /* кадр останавливается у левого края целиком */
.sc-row.step::after { width: 60px; }
/* стрелки листания ленты */
.sc-row.step { position: relative; }
.sc-nav { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -18px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(17, 17, 17, .35); color: rgba(255, 255, 255, .85); box-shadow: none; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: .6; transition: opacity .2s, background .2s, color .2s, transform .15s; }
/* полупрозрачные; ярче при наведении на ленту, полностью — при наведении на саму стрелку */
.sc-row.step:hover .sc-nav { opacity: .85; }
.sc-nav:hover, .sc-nav:focus-visible { opacity: 1 !important; background: rgba(255, 204, 0, .9); color: var(--black); transform: scale(1.06); }
.sc-nav:active { transform: scale(.95); }
.sc-nav svg { width: 18px; height: 18px; stroke-width: 2.6; }
.sc-nav.prev { left: 10px; }
.sc-nav.prev svg { transform: rotate(180deg); }
.sc-nav.next { right: 10px; }
.sc-row.step .sc-track { animation: none; transform: translate3d(0,0,0); }
.sc-row.step .sc-card { width: 440px; height: 270px; }
.sc-card { position: relative; flex-shrink: 0; width: 420px; height: 250px; margin-right: 22px; border-radius: 10px; overflow: hidden; background: #222; }
.sc-card::after { content: ''; position: absolute; right: -16px; top: 0; bottom: 0; width: 10px; transform: skewX(-14deg); background: var(--yellow); }
.sc-row.small .sc-card { width: 330px; height: 196px; }
.sc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sc-card:hover img { transform: scale(1.06); }
.sc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 13px; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0)); color: #fff; }
.sc-cap small { display: block; color: var(--yellow); font: 600 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.sc-cap b { font: 700 18px/1.15 var(--f-head); letter-spacing: .02em; }
.sc-card .sc-go { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--black); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .2s; }
.sc-card:hover .sc-go { opacity: 1; transform: none; }
.sc-go svg { width: 18px; height: 18px; stroke-width: 2.4; }
.showcase-foot { height: 14px; }

/* ---------- Sections / titles ---------- */
.app { min-height: 50vh; padding-bottom: 60px; }
.block { margin-top: 38px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.h2 { margin: 0; font: 800 34px/1.05 var(--f-head); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.h2 .tag { font: 700 13px/1 var(--f-body); letter-spacing: .04em; background: var(--yellow); padding: 6px 10px; border-radius: 6px; }
.more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--yellow); }
.more:hover { color: #000; border-color: #000; }
.page-title { margin: 6px 0 20px; font: 800 40px/1.05 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; font-size: 14px; color: #777; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span::before { content: '›'; margin-right: 6px; color: #bbb; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 10px; font-weight: 700; font-size: 15.5px; transition: background .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-d); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #2c2c2c; }
.btn-line { background: #fff; color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.btn-line:hover { background: var(--black); color: #fff; }
.btn-wide { width: 100%; }
.btn svg { width: 19px; height: 19px; }
.link-btn { border: 0; background: none; padding: 8px 0; color: #777; text-decoration: underline; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 34px -16px rgba(0,0,0,.35); transform: translateY(-3px); }
.card-img { display: grid; place-items: center; height: 196px; margin-bottom: 12px; border-radius: 10px; background: #fff; overflow: hidden; }
.card-img img { max-height: 100%; width: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 1; }
.badge { padding: 5px 9px; border-radius: 6px; font: 700 11.5px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; background: var(--yellow); color: var(--black); }
.badge-dark { background: var(--black); color: var(--yellow); }
.card-sub { font-size: 12.5px; color: #8a8a8a; margin-bottom: 4px; }
.card-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 60px; }
.card-name:hover { text-decoration: underline; }
.card-var { margin-top: 6px; font-size: 13px; color: #666; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.price { font: 700 22px/1 var(--f-body); white-space: nowrap; }
.price small { font-size: 13px; font-weight: 500; color: #888; margin-right: 3px; }
.price .cur { font-size: 16px; }
.card-foot .btn { height: 44px; padding: 0 12px; font-size: 15px; }
.in-stock { font-size: 13px; color: #1f8a3a; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; }
.in-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Section pages ---------- */
.subs-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 30px; }
.subs-row .sub-tile img { height: 120px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.cat-card h3 { margin: 0 0 10px; font: 800 26px/1 var(--f-head); text-transform: uppercase; }
.cat-card h3 a:hover { text-decoration: underline; }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cat-card li a { color: #555; font-size: 15px; }
.cat-card li a:hover { color: var(--ink); text-decoration: underline; }
.cat-card img { width: 150px; height: 150px; object-fit: contain; align-self: center; }

.listing { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 146px; }
.filters h4 { margin: 0 0 10px; font-size: 15px; }
.filters .f-group + .f-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters a.f-link { display: flex; justify-content: space-between; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14.5px; color: #444; }
.filters a.f-link:hover { background: #f6f6f6; }
.filters a.f-link.on { background: #fff3bf; color: #000; font-weight: 600; }
.filters a.f-link i { font-style: normal; color: #999; font-size: 13px; }
.price-in { display: flex; gap: 8px; }
.price-in input { width: 100%; height: 40px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; margin-top: 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .found { color: #777; }
.toolbar select { height: 40px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; background: #fff; }
.empty { background: #fff; border-radius: var(--radius); padding: 40px; text-align: center; color: #777; }

/* ---------- Product page ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; margin-top: 16px; }
.pp-gallery { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pp-main { position: relative; height: 440px; display: grid; place-items: center; }
.pp-main img { max-height: 100%; object-fit: contain; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pp-thumbs button { width: 78px; height: 78px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; }
.pp-thumbs button.on { border-color: var(--yellow); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pp-info { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 146px; }
.pp-info h1 { margin: 0 0 8px; font: 800 32px/1.08 var(--f-head); letter-spacing: .01em; }
.pp-meta { display: flex; gap: 16px; color: #888; font-size: 14px; flex-wrap: wrap; }
.pp-price { margin: 18px 0 6px; font: 800 36px/1 var(--f-body); }
.pp-price small { font-size: 16px; color: #888; font-weight: 500; }
.pp-note { font-size: 13px; color: #888; }
.variants { margin: 18px 0 4px; }
.variants b { font-size: 14px; display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 52px; height: 38px; padding: 0 12px; border: 1.5px solid #d6d6d6; border-radius: 8px; background: #fff; font-weight: 600; }
.chip:hover { border-color: #999; }
.chip.on { border-color: var(--black); background: var(--black); color: var(--yellow); }
.buy-row { display: flex; gap: 10px; margin-top: 20px; }
.qty { display: flex; align-items: center; border: 1.5px solid #d6d6d6; border-radius: 10px; height: 50px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; }
.qty input { width: 44px; text-align: center; border: 0; outline: 0; font-weight: 700; }
.buy-row .btn { flex: 1; height: 50px; font-size: 16.5px; }
.perks { margin-top: 20px; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 22px; height: 22px; color: #111; flex-shrink: 0; background: var(--yellow); border-radius: 6px; padding: 3px; }
.pp-tabs { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 14px; font: 800 24px/1 var(--f-head); text-transform: uppercase; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feat li { position: relative; padding-left: 26px; }
.feat li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: linear-gradient(135deg, var(--black) 50%, var(--yellow) 50%); border-radius: 2px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs td { padding: 10px 0; border-bottom: 1px solid #eee; vertical-align: top; }
.specs td:first-child { color: #777; padding-right: 18px; width: 55%; }
.specs td:last-child { font-weight: 600; }
.hl-row { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hl-row img { width: 100%; aspect-ratio: 16/8.3; object-fit: cover; border-radius: var(--radius); }

/* ---------- Cart / text pages ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.cart-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto 34px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.cart-row img { width: 90px; height: 70px; object-fit: contain; }
.cart-row .t { font-weight: 600; }
.cart-row .t:hover { text-decoration: underline; }
.cart-row .sub { font-size: 13px; color: #888; }
.cart-row .rm { border: 0; background: none; font-size: 22px; color: #aaa; }
.cart-row .rm:hover { color: var(--red); }
.cart-row .qty { height: 40px; }
.summary { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 146px; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 16px; }
.summary .tot b { font-size: 28px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
form input, form textarea, form select { display: block; width: 100%; margin-top: 5px; height: 44px; padding: 0 12px; border: 1.5px solid #ddd; border-radius: 9px; background: #fff; font-weight: 400; }
form textarea { height: 80px; padding: 10px 12px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--black); outline: 0; }
.form-err { color: var(--red); font-size: 14px; min-height: 20px; margin-bottom: 6px; }
.text-page { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.text-page .panel p { margin: 0 0 12px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; }
.info-list b { display: block; }
.info-list .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; flex-shrink: 0; }
.info-list .ic svg { width: 22px; height: 22px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: #ddd; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #bdbdbd; border-top: 4px solid var(--yellow); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 34px; }
.footer h4 { color: #fff; margin: 4px 0 14px; font: 700 18px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer a:hover { color: var(--yellow); }
.footer .logo-word { color: var(--yellow); font-size: 28px; }
.footer .logo-mark { width: 38px; height: 38px; }
.f-brand p { margin: 16px 0 0; font-size: 14.5px; max-width: 360px; }
.f-bottom { padding-top: 16px; padding-bottom: 22px; border-top: 1px solid #2a2a2a; font-size: 13px; color: #8a8a8a; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 28px; border-top: 6px solid var(--yellow); }
.modal-box h3 { margin: 0 0 6px; font: 800 28px/1.05 var(--f-head); text-transform: uppercase; }
.modal-box .sub { color: #777; margin: 0 0 18px; font-size: 14.5px; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; color: #999; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--black); color: #fff; padding: 13px 20px; border-radius: 12px; border-left: 5px solid var(--yellow); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); font-weight: 600; }
.toast a { color: var(--yellow); margin-left: 10px; text-decoration: underline; }

/* ---------- Responsive ---------- */
/* фото товара не выходит за карточку */
.pp-main img { max-height: 440px; max-width: 100%; width: auto; height: auto; }
.hp-ic { display: none; }
.hbr { display: none; }
.mega-close { display: none; }
.mega { max-height: calc(100vh - 84px); overflow-y: auto; }

/* Ноутбук: 1025–1360 */
@media (max-width: 1360px) {
  .header-in { gap: 14px; }
  .logo-word { font-size: 28px; }
  .logo-mark { width: 42px; height: 42px; }
  .h-phone b { font-size: 17px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
}
@media (max-width: 1180px) {
  .h-phone small { display: none; }
  .tb-hours { display: none; }
  .btn-catalog { padding: 0 16px; }
  .search .s-go { width: 42px; }
  .pp-main { height: 380px; }
  .pp-main img { max-height: 380px; }
}

/* Планшет: 761–1024 */
@media (max-width: 1024px) {
  .wrap { padding: 0 20px; }
  .header-in { height: 72px; gap: 10px; }
  .cat-ticker-wrap { top: 72px; }
  .mega { max-height: calc(100vh - 72px); }
  .logo-word { font-size: 24px; }
  .logo-mark { width: 36px; height: 36px; }
  .btn-catalog { height: 44px; padding: 0 14px; font-size: 16px; }
  .search { height: 46px; }
  .h-link { padding: 6px; font-size: 11.5px; }
  .h-phone { padding: 0; }
  .h-phone b, .h-phone small { display: none; }
  .hp-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--black); color: var(--yellow); }
  .hp-ic svg { width: 22px; height: 22px; }
  .listing, .cart, .pp, .pp-tabs, .text-page { grid-template-columns: minmax(0, 1fr); }
  .filters, .pp-info, .summary { position: static; }
  .listing .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .listing .filters .f-group + .f-group { margin-top: 0; padding-top: 0; border-top: 0; }
  .listing .filters .f-group:last-child { display: none; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .mega-in { grid-template-columns: 250px 1fr; min-height: 0; }
  .mega-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .showcase-head h1 { font-size: 34px; }
  .sc-card { width: 360px; height: 214px; }
  .sc-row.small .sc-card { width: 290px; height: 172px; }
  .sc-row.step .sc-card { width: 380px; height: 232px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-card { grid-template-columns: 1fr 110px; }
  .cat-card img { width: 110px; height: 110px; }
  .pp-main { height: 360px; }
  .pp-main img { max-height: 360px; }
  .page-title { font-size: 34px; }
}

/* Телефон: до 760 */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar { font-size: 13px; }
  .topbar-in { gap: 14px; overflow-x: auto; scrollbar-width: none; height: 34px; }
  .topbar-in::-webkit-scrollbar { display: none; }
  .tb-links { gap: 14px; white-space: nowrap; }
  .header { position: relative; }
  .header-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 6px; }
  .logo { margin-right: auto; }
  .logo-word { font-size: 24px; }
  .logo-mark { width: 34px; height: 34px; }
  .h-links { display: flex; order: 2; }
  .h-link { padding: 4px 6px; }
  .h-link svg { width: 22px; height: 22px; }
  .h-phone { order: 3; }
  .hp-ic { width: 40px; height: 40px; }
  .hbr { display: block; order: 4; flex-basis: 100%; height: 0; margin-top: -10px; } /* перенос: каталог и поиск — вторая строка */
  .btn-catalog { order: 5; height: 44px; padding: 0 14px; }
  .search { order: 6; flex: 1 1 0; min-width: 0; }
  .search input { font-size: 16px; } /* без автозума на iOS */
  .cat-ticker-wrap { position: sticky; top: 0; }
  .cat-item { height: 40px; padding: 0 22px 0 20px; font-size: 14px; }
  .cat-drop { position: fixed; left: 8px !important; right: 8px; width: auto; top: auto; max-height: 70vh; overflow-y: auto; }
  .drop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega { position: fixed; inset: 0; max-height: none; z-index: 60; border-top: 4px solid var(--yellow); }
  .mega-close { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 800 22px/1 var(--f-head); text-transform: uppercase; }
  .mega-close button { border: 0; background: var(--black); color: var(--yellow); width: 40px; height: 40px; border-radius: 10px; font-size: 22px; }
  .mega-in { grid-template-columns: 1fr; padding-top: 10px; }
  .mega-sections { border-right: 0; padding: 0; }
  .mega-subs { padding: 16px 0 0; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sub-tile img { height: 80px; }
  .showcase { margin-top: 14px; border-radius: 12px; }
  .showcase-head { flex-direction: column; align-items: flex-start; padding: 16px 16px 10px; }
  .showcase-head h1 { font-size: 28px; }
  .showcase-head p { font-size: 14px; }
  .showcase-head .btn { height: 40px; }
  .sc-row::before, .sc-row::after { width: 30px; }
  .sc-card { width: 260px; height: 160px; margin-right: 14px; }
  .sc-row.small .sc-card { width: 210px; height: 128px; }
  .sc-row.step .sc-card { width: 280px; height: 172px; }
  .sc-row.step { padding-left: 16px; }
  .sc-nav { width: 34px; height: 34px; margin-top: -15px; }
  .sc-nav svg { width: 16px; height: 16px; }
  .sc-nav.prev { left: 6px; }
  .sc-nav.next { right: 6px; }
  .sc-row.step::after { width: 24px; }
  .sc-cap b { font-size: 15px; }
  .sc-go { display: none !important; }
  .block { margin-top: 28px; }
  .h2 { font-size: 26px; }
  .page-title { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .badges { top: 10px; left: 10px; }
  .card-img { height: 130px; }
  .card-sub { font-size: 11.5px; }
  .card-name { font-size: 14px; min-height: 54px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .btn { margin-left: 0; height: 40px; }
  .price { font-size: 18px; }
  .listing .filters { grid-template-columns: 1fr; }
  .subs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { grid-template-columns: 1fr 90px; padding: 16px; }
  .cat-card img { width: 90px; height: 90px; }
  .pp { gap: 14px; }
  .pp-gallery, .pp-info, .panel { padding: 16px; }
  .pp-main { height: 260px; }
  .pp-main img { max-height: 260px; }
  .pp-thumbs button { width: 60px; height: 60px; }
  .pp-info h1 { font-size: 26px; }
  .pp-price { font-size: 30px; }
  .buy-row .btn { font-size: 15px; padding: 0 12px; }
  .specs td:first-child { width: 50%; }
  .hl-row { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
}
@media (max-width: 380px) {
  .h-link span { display: none; }
  .logo-word { font-size: 21px; }
  .btn-catalog span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cat-track, .sc-track { animation-duration: 400s; } }
.pp-gallery { position: relative; }

/* «…ещё» в характеристиках и теги */
.more-box { margin-top: 2px; animation: dropIn .18s ease-out; }
.more-btn { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 8px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: #8a8a8a; font-weight: 600; font-size: 14.5px; }
.more-btn:hover { color: var(--ink); }
.more-btn:hover span { text-decoration: underline; text-underline-offset: 3px; }
.more-btn small { font-weight: 400; font-size: 13px; color: #a8a8a8; }
.more-btn[aria-expanded="true"] { background: transparent; }
.more-btn[aria-expanded="true"] small { display: none; }
.tags { margin-top: 14px; padding-top: 10px; border-top: 1px dashed #e2e2e2; font-size: 11.5px; line-height: 1.6; color: #9a9a9a; }
.tags b { font-weight: 600; margin-right: 4px; color: #8a8a8a; }
.tag-chip { color: #9a9a9a; white-space: nowrap; }
.tag-chip:not(:last-child)::after { content: ','; }
.tag-chip:hover { color: var(--ink); text-decoration: underline; }
.more-info { margin-top: 16px; font-size: 15px; }
.more-info b { display: block; font-size: 14px; color: #777; font-weight: 600; margin-bottom: 6px; }
.more-info p { margin: 0 0 8px; }

/* Фирменный логотип поверх изображений */
.card-img, .pp-main, .sc-card, .st-img, .cc-img, .pp-thumbs button, .hl, .sg-img { position: relative; }
.wm {
  position: absolute; right: 8px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 7px; border-radius: 4px; background: rgba(255, 204, 0, .9); box-shadow: 0 1px 4px rgba(0,0,0,.15);
  pointer-events: none; user-select: none;
}
.wm b { font: 800 10.5px/1 'Montserrat', var(--f-body); color: var(--black); letter-spacing: .01em; }
.wm img { width: 15px; height: 15px; display: block; }
.wm.sm { padding: 2px; right: 4px; bottom: 4px; }
.wm.sm img { width: 13px; height: 13px; }
.pp-main .wm { right: 12px; bottom: 12px; padding: 5px 6px 5px 10px; gap: 6px; }
.pp-main .wm b { font-size: 15px; }
.pp-main .wm img { width: 22px; height: 22px; }
.sc-card .wm { right: auto; bottom: auto; left: 10px; top: 10px; }
.hl .wm { right: 14px; bottom: 14px; padding: 5px 6px 5px 10px; gap: 6px; }
.hl .wm b { font-size: 14px; }
.hl .wm img { width: 20px; height: 20px; }
.st-img { display: block; }
.st-img img { width: 100%; }
.cc-img { display: block; align-self: center; }
.sg-img { flex-shrink: 0; }
.hl img { width: 100%; aspect-ratio: 16/8.3; object-fit: cover; border-radius: var(--radius); }

/* Телефон со значком WhatsApp на странице «Контакты» */
.ph-line { display: inline-flex; align-items: center; gap: 10px; }
.wa-ic { width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .15s, background .15s; }
.wa-ic:hover { background: #1ebe5a; transform: scale(1.08); }
.wa-ic svg { width: 19px; height: 19px; stroke-width: 2; }

/* Значок «Официальный дилер» (по образцу фирменного: рамка, рукопожатие, квадрат, жёлтая линия) */
.dealer {
  --s: 118px; position: relative; flex-shrink: 0; width: var(--s); aspect-ratio: 1 / 1.08;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 calc(var(--s) * .08) calc(var(--s) * .08); background: var(--black); color: #fff;
  box-shadow: inset 0 0 0 calc(var(--s) * .025) #fff; text-transform: uppercase; user-select: none;
}
.dealer-mark { position: absolute; top: calc(var(--s) * .07); right: calc(var(--s) * .07); width: calc(var(--s) * .17); height: auto; }
.dealer-hand { width: 62%; height: auto; margin-bottom: calc(var(--s) * .04); fill: none; stroke: #fff; stroke-width: 1.9; }
.dealer-line { display: block; width: 100%; height: calc(var(--s) * .028); background: var(--yellow); margin-bottom: calc(var(--s) * .05); }
.dealer b { font-family: 'Montserrat', var(--f-body); font-weight: 800; line-height: 1; font-size: calc(var(--s) * .095); letter-spacing: .01em; }
.dealer b.big { font-size: calc(var(--s) * .19); margin-top: calc(var(--s) * .025); }
.showcase-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* плашка дилера в шапке ленты — по высоте кнопки «Весь каталог» */
.showcase-head .dealer-inline { padding: 4px 14px 4px 4px; gap: 10px; border-color: #333; background: #1b1b1b; }
.showcase-head .di-ic { width: 36px; height: 36px; border-bottom-width: 2px; }
.showcase-head .di-ic .dealer-hand { width: 22px; transform: translate(-1px, 2px); }
.showcase-head .di-ic .dealer-mark { width: 8px; top: 3px; right: 3px; }
.showcase-head .di-txt b { font-size: 11px; }
.showcase-head .di-txt small { font-size: 11.5px; }
/* подвал: компактная плашка дилера */
.f-dealer { margin-top: 18px; }
.dealer-inline { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid #2c2c2c; border-radius: 10px; background: #181818; }
.di-ic { position: relative; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: var(--black); box-shadow: inset 0 0 0 1.5px #fff; border-bottom: 3px solid var(--yellow); }
.di-ic .dealer-hand { width: 28px; margin: 0; stroke-width: 2; transform: translate(-2px, 3px); }
.di-ic .dealer-mark { top: 4px; right: 4px; width: 10px; }
.di-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.di-txt b { font: 800 12.5px/1.1 'Montserrat', var(--f-body); color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.di-txt small { font-size: 12.5px; color: var(--yellow); }
@media (max-width: 760px) {
  .showcase-side { flex-wrap: wrap; gap: 10px; }
}

/* <picture> не меняет раскладку: картинка ведёт себя как раньше */
picture { display: contents; }

/* Переключатель языка RU / EN / KG */
.lang { display: inline-flex; gap: 2px; margin-left: 14px; padding: 2px; border-radius: 7px; background: #262626; flex-shrink: 0; }
.lang button { border: 0; background: none; color: #bdbdbd; font: 700 12px/1 var(--f-body); letter-spacing: .04em; padding: 5px 8px; border-radius: 5px; }
.lang button:hover { color: #fff; }
.lang button.on { background: var(--yellow); color: var(--black); }

/* Наличие товара */
.stock { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 500; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.stock-in { color: #1f8a3a; }
.stock-order { color: #b86e00; }
.stock-out { color: #8a8a8a; }
.card.is-out .card-img img { opacity: .55; filter: grayscale(.4); }
.btn-muted { background: #ececec; color: #333; }
.btn-muted:hover { background: #dedede; }
@media (max-width: 760px) {
  /* на телефоне переключатель языка всегда виден справа, прокручиваются только ссылки */
  .topbar-in { overflow: visible; gap: 10px; }
  .tb-links { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-left: 0; }
  .tb-links::-webkit-scrollbar { display: none; }
  .lang { margin-left: 0; }
  .lang button { padding: 5px 6px; font-size: 11.5px; }
}

/* Подвал: ссылки на оферту и политику */
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.f-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.f-legal a { color: #bdbdbd; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
.f-legal a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

/* Публичная оферта и политика конфиденциальности */
.legal { margin-top: 6px; }
.legal-head { background: var(--black); color: #fff; border-radius: var(--radius); padding: 26px 30px; border-bottom: 4px solid var(--yellow); }
.legal-head .page-title { margin: 0 0 6px; color: #fff; }
.legal-head p { margin: 0; color: #c8c8c8; }
.legal-date { display: inline-block; margin-top: 12px; padding: 5px 10px; border-radius: 6px; background: var(--yellow); color: var(--black); font-weight: 700; font-size: 13px; }
.legal-note { margin-top: 10px !important; font-size: 13.5px; color: #a8a8a8 !important; }
.legal-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.legal-toc { position: sticky; top: 146px; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.legal-toc b { display: block; margin-bottom: 10px; font: 700 18px/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14.5px; }
.legal-toc a { color: #444; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-text { background: #fff; border-radius: var(--radius); padding: 10px 30px 26px; box-shadow: var(--shadow); line-height: 1.6; }
.legal-text section { padding-top: 18px; scroll-margin-top: 150px; }
.legal-text section + section { border-top: 1px solid #eee; margin-top: 8px; }
.legal-text h2 { margin: 0 0 10px; font: 800 22px/1.15 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.legal-text h2 span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-right: 6px; border-radius: 6px; background: var(--yellow); font-size: 17px; }
.legal-text p { margin: 0 0 10px; }
.legal-text .ln { color: #999; font-weight: 600; margin-right: 4px; }
.legal-req .specs td:first-child { width: 40%; }
.legal-see { margin-top: 20px !important; padding-top: 14px; border-top: 1px solid #eee; }
.legal-see a { font-weight: 600; border-bottom: 2px solid var(--yellow); }
@media (max-width: 1024px) {
  .legal-body { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}
@media (max-width: 760px) {
  .legal-head { padding: 20px 18px; }
  .legal-text { padding: 6px 18px 20px; }
  .legal-text h2 { font-size: 19px; }
  .legal-text section { scroll-margin-top: 60px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}

/* Адрес в верхней полосе — ссылка на карту */
a.tb-city { color: #fff; min-width: 0; }
a.tb-city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.tb-city:hover span { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* Карта STABILA KG в «Контактах»: OSM в жёлто-чёрной гамме + лазерное перекрестье через точку магазина */
.smap { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: #e9e2c8; box-shadow: var(--shadow); isolation: isolate; border: 3px solid var(--black); }
.smap-frame { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); border: 0; pointer-events: none;
  filter: grayscale(1) contrast(1.25) brightness(1.02); }
.smap-tint { position: absolute; inset: 0; background: var(--yellow); mix-blend-mode: multiply; opacity: .62; pointer-events: none; }
/* мерная сетка, как на шкале нивелира */
.smap-grid { position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(17,17,17,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.9) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center center; }
/* лазерные линии (зелёный луч GREENBEAM) */
.smap-laser { position: absolute; z-index: 2; pointer-events: none; background: #38ff5a; box-shadow: 0 0 6px 1px rgba(56,255,90,.9), 0 0 18px 4px rgba(56,255,90,.35); }
.smap-laser.h { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; animation: laserH 2.6s ease-in-out infinite alternate; }
.smap-laser.v { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; animation: laserV 2.6s ease-in-out infinite alternate; }
@keyframes laserH { from { opacity: .55; clip-path: inset(0 0 0 0); } to { opacity: .95; } }
@keyframes laserV { from { opacity: .95; } to { opacity: .55; } }
/* метка магазина */
.smap-pin { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; }
.smap-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 4px #fff, 0 0 0 7px #38ff5a, 0 4px 14px rgba(0,0,0,.4); }
.smap-pulse { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid #38ff5a; animation: smapPulse 2s ease-out infinite; }
@keyframes smapPulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.smap-tag { position: absolute; left: 22px; bottom: 18px; width: max-content; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 10px; white-space: nowrap;
  background: var(--black); color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.55); border-left: 4px solid var(--yellow); }
.smap-tag img { width: 30px; height: 30px; }
.smap-tag b { display: block; font: 800 13px/1.1 'Montserrat', var(--f-body); letter-spacing: .02em; }
.smap-tag small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--yellow); }
/* линейка-масштаб внизу, как на складном метре */
.smap-ruler { position: absolute; left: 16px; bottom: 14px; z-index: 2; width: 120px; height: 12px; pointer-events: none; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--black) 0 2px, transparent 2px 12px) bottom/100% 6px no-repeat, var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--black); }
.smap-hit { position: absolute; inset: 0; z-index: 1; }
.smap-actions { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.smap-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); }
.smap-actions .btn svg { width: 17px; height: 17px; }
.smap-btn { background: var(--black); color: #fff; }
.smap-btn:hover { background: #2b2b2b; }
@media (prefers-reduced-motion: reduce) { .smap-laser, .smap-pulse { animation: none; } }
@media (max-width: 760px) {
  a.tb-city { max-width: 52vw; }
  .smap { min-height: 380px; }
  .smap-tag { left: -80px; bottom: 26px; }
  .smap-ruler { display: none; }
  .smap-actions { left: 10px; right: 10px; bottom: 10px; justify-content: stretch; }
  .smap-actions .btn { flex: 1 1 auto; height: 38px; padding: 0 10px; font-size: 13px; }
}

/* обязательная подпись источника карты (лицензия ODbL) */
.smap-attr { position: absolute; top: 8px; right: 8px; z-index: 4; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.85); color: #333; font-size: 11px; }
.smap-attr:hover { text-decoration: underline; }

/* карта из плиток OSM — фильтр в фирменную гамму работает во всех браузерах */
.smap-tiles { position: absolute; inset: 0; overflow: hidden; filter: grayscale(1) contrast(1.25) brightness(1.02); pointer-events: none; }
.smap-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }

.tb-city .ad-short { display: none; }
@media (max-width: 760px) {
  .tb-city .ad-full { display: none; }
  .tb-city .ad-short { display: inline; }
  a.tb-city { max-width: 44vw; }
}
