/* ============================================================
   Bleskservis — design tokens & base
   Clean / fresh / hygienic · blue + turquoise · B2B-first
   ============================================================ */

:root {
  --header-h: 76px;
  /* Accent (overridable by Tweaks) — приглушённый стальной синий, вторичный */
  --brand:        #3A6491;
  --brand-strong: #2D5276;
  --brand-soft:   #E6ECF2;
  --brand-2:      #5B7488;   /* серо-синий slate — вторичный */
  --brand-2-soft: #EBEFF3;

  /* Красный — акцент */
  --accent:        #D8232A;
  --accent-strong: #B41A20;
  --accent-soft:   #FBE7E8;

  /* Ink / neutrals — cool slate */
  --ink:    #0E1B2E;
  --ink-2:  #34465E;
  --muted:  #647689;
  --faint:  #94A3B4;
  --line:   #CCD6E0;
  --line-2: #DBE3EC;
  --bg:     #DBE2EA;      /* серо-голубой фон страницы — основной тон */
  --surface:#FFFFFF;

  /* серо-голубой slate (взят с макета) */
  --slate-1: #647A87;
  --slate-2: #849EAB;
  --slate-3: #566C7A;

  /* Semantic */
  --ok:     #16A36A;
  --ok-soft:#E4F6EE;
  --warn:   #E0921A;
  --warn-soft:#FCF1DD;
  --danger: #D8232A;
  --price:  #0E1B2E;

  /* Type */
  --font-head: 'Onest', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;

  /* Geometry (overridable) */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --btn-radius: 12px;

  /* density (overridable) — affects catalog grid */
  --card-pad: 16px;

  --shadow-sm: 0 1px 2px rgba(14,27,46,.06), 0 1px 3px rgba(14,27,46,.04);
  --shadow:    0 4px 16px rgba(14,27,46,.07);
  --shadow-lg: 0 18px 50px rgba(14,27,46,.16);

  --maxw: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}
h1,h2,h3,h4,h5 { font-family: var(--font-head); margin: 0; line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-soft); }

/* Tabular numbers for prices/quantities */
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--btn-radius);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 11px 18px; line-height: 1; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn-soft:hover { background: #dbe7fd; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--line-2); color: var(--ink-2);
  white-space: nowrap; flex-shrink: 0;
}
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-brand { background: var(--brand-soft); color: var(--brand-strong); }
.chip-2 { background: var(--brand-2-soft); color: #44586A; }
.chip-accent { background: var(--accent-soft); color: var(--accent-strong); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- inputs ---------- */
.field {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font-size: 14.5px; transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field::placeholder { color: var(--faint); }
.lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display:block; }

/* qty stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 34px; height: 38px; border: none; background: var(--surface); color: var(--ink-2); font-size: 18px; display: grid; place-items: center; }
.stepper button:hover { background: var(--line-2); color: var(--brand); }
.stepper input { width: 46px; height: 38px; border: none; text-align: center; font-weight: 600; font-size: 15px; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* product placeholder image */
.ph {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 0%, var(--brand-2-soft), transparent 55%),
    linear-gradient(160deg, #fff, var(--bg));
  display: grid; place-items: center;
}
.ph svg { width: 52%; height: 52%; opacity: .9; }

/* scrollbar */
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* fade-in for screen swaps — transform only, never leaves content invisible */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes screenIn { from { transform: translateY(6px); } to { transform: none; } }
.screen-enter { animation: screenIn .26s ease; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strike { color: var(--faint); text-decoration: line-through; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Каталог Vileda: компактное отображение «Цена по запросу» */
.prodcard-price.onrequest { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
/* ============================================================
   Bleskservis — components & layout (container-query responsive)
   ============================================================ */

/* ---- device shell ---- */
.app-shell { min-height: 100vh; }
.device-stage { width: 100%; }
.app-canvas { position: relative; background: var(--bg); width: 100%; }

/* mobile preview = real iframe at phone width (its own viewport fires @media) */
.device-mobile .device-stage { min-height: 100vh; display: flex; justify-content: center; padding: 22px; background:
  radial-gradient(60% 50% at 50% 0%, #e9eff7, var(--bg)); }
.phone-frame { width: 414px; height: calc(100vh - 44px); max-height: 920px; overflow: hidden;
  border-radius: 40px; border: 11px solid #10182a; box-shadow: 0 30px 80px rgba(14,27,46,.32); background: #fff; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.app-shell.embed .topbar { position: relative; }

/* device toggle */
.device-toggle { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 120;
  display: flex; gap: 4px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.device-toggle button { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.device-toggle button.on { background: var(--brand); color: #fff; }

/* ---- top bar ---- */
.topbar { background: var(--ink); color: #c6d3e6; font-size: 18px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left a:hover, .topbar-phone:hover { color: #fff; }
.topbar-city { display: inline-flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }

/* ---- header ---- */
.header-wrap { position: sticky; top: 0; z-index: 90; }
.site-header { background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.dark { background: rgba(14,27,46,.9); border-color: rgba(255,255,255,.08); }
/* прозрачный (стеклянный) хедер при прокрутке */
.header-wrap.scrolled .site-header {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(14,27,46,.08);
  box-shadow: var(--shadow-sm);
}
.header-wrap.scrolled .site-header.dark {
  background: rgba(14,27,46,.72);
  border-bottom-color: rgba(255,255,255,.08);
}
.header-wrap.scrolled .site-header:not(.dark) .search { background: transparent; border-color: rgba(14,27,46,.12); }
.header-wrap.scrolled .site-header:not(.dark) .search:focus-within { background: #fff; border-color: var(--brand); }
.header-in { display: flex; align-items: center; gap: 18px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; }
.logo-mark { display: grid; place-items: center; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }

.catalog-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff;
  border: none; border-radius: var(--btn-radius); font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 12px 18px; transition: background .15s; white-space: nowrap; }
.catalog-btn:hover { background: var(--brand-strong); }
.catalog-btn.on { background: var(--brand-strong); }

.search { flex: 1; display: flex; align-items: center; position: relative; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 0 6px 0 14px; height: 48px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.search-ico { color: var(--faint); flex-shrink: 0; }
.search-input { flex: 1; border: none; background: none; outline: none; font-size: 14.5px; padding: 0 12px; color: var(--ink); }
.search-input::placeholder { color: var(--faint); }
.search-go { height: 38px; }

.header-actions { display: flex; gap: 6px; }
.hact { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none;
  color: var(--ink-2); font-size: 11.5px; font-weight: 500; padding: 6px 10px; border-radius: 12px; min-width: 62px; transition: background .15s, color .15s; }
.dark .hact { color: #c6d3e6; }
.hact:hover { background: var(--brand-soft); color: var(--brand-strong); }
.dark .hact:hover { background: rgba(255,255,255,.08); color: #fff; }
.hact-ico { position: relative; }
.hact-badge { position: absolute; top: -6px; right: -8px; background: var(--ink); color: #fff; font-size: 10.5px;
  font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; }
.hact-badge-accent { background: var(--accent); }

/* ---- mega menu ---- */
.mega-scrim { position: fixed; inset: 0; background: rgba(14,27,46,.35); z-index: 80; animation: fadeUp .2s; }
.mega { position: absolute; top: calc(100% + 8px); left: 24px; right: 24px; max-width: var(--maxw); margin: 0 auto;
  z-index: 95; padding: 18px; box-shadow: var(--shadow-lg); animation: fadeUp .22s ease both; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 18px; }
.mega-col { display: flex; flex-direction: column; min-width: 0; }
.mega-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; padding: 0 0 10px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.mega-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); border: 1px solid transparent;
  display: grid; place-items: center; color: var(--brand); flex-shrink: 0; transition: background .14s, color .14s; }
.mega-head:hover .mega-ico { background: var(--brand); color: #fff; }
.mega-name { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; line-height: 1.25; transition: color .14s; }
.mega-head:hover .mega-name, .mega-col.on .mega-name { color: var(--brand); }
.mega-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.mega-desc { font-size: 12.5px; margin: 2px 0 0; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---- sections ---- */
.app-main { min-height: 60vh; }
.section { padding: 40px 24px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 16px; }
.section-title { font-size: 27px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; color: var(--brand);
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; white-space: nowrap; flex-shrink: 0; }
.link-more:hover { color: var(--brand-strong); }

/* ---- hero (серо-голубой slate, одна колонка, белый текст — как на макете) ---- */
.hero { position: relative; overflow: hidden; color: #fff; border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg, var(--slate-3) 0%, var(--slate-1) 48%, var(--slate-2) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 92% 12%, rgba(255,255,255,.10), transparent 55%); }
.hero-in { position: relative; z-index: 1; display: block; padding: 64px 24px 70px; }
.hero-copy { max-width: 920px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); color: #fff;
  font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero-title { font-size: 46px; line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.hero-title .hl { color: #fff; position: relative; background: var(--accent); padding: 0 10px; border-radius: 8px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.86); max-width: 540px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 34px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.hero-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 24px; max-width: 900px; }
.hero-value { display: flex; gap: 11px; align-items: flex-start; }
.hero-value-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; }
.hero-value-title { font-weight: 600; font-size: 14.5px; color: #fff; }
.hero-value-text { font-size: 12.5px; }
.hero .faint { color: rgba(255,255,255,.7); }

/* ---- готовые наборы ---- */
.sets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.set-card { padding: 18px; display: flex; flex-direction: column; }
.set-top { display: flex; flex-direction: column; gap: 3px; }
.set-title { font-size: 17px; }
.set-sub { font-size: 12.5px; }
.set-items { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.set-item { display: flex; gap: 11px; align-items: center; padding: 7px; border-radius: var(--radius-sm); cursor: pointer; transition: background .14s; }
.set-item:hover { background: var(--bg); }
.set-thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); flex-shrink: 0; }
.set-name { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-info { min-width: 0; }
.set-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---- подкатегории в мегаменю ---- */
.mega-sub { display: block; width: 100%; background: none; border: none; padding: 5px 9px; border-radius: 7px;
  font-size: 12.5px; color: var(--muted); text-align: left; line-height: 1.35; cursor: pointer;
  transition: background .12s, color .12s; }
.mega-sub:hover { color: var(--brand-strong); background: var(--brand-soft); }
.mega-more { color: var(--brand); font-weight: 600; }

/* ---- category tiles ---- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cattile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 20px; gap: 4px;
  transition: transform .14s, box-shadow .14s, border-color .14s; cursor: pointer; }
.cattile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.cattile-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 12px; transition: background .14s; }
.cattile:hover .cattile-ico { background: var(--brand); color: #fff; }
.cattile-name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.cattile-desc { font-size: 12.5px; line-height: 1.4; }
.cattile-count { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 3px; color: var(--brand); font-weight: 600; font-size: 13px; }

/* ---- bento-сетка «Каталог по направлениям» ---- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(150px, 1fr); gap: 14px; }
.bento-grid .cattile { height: 100%; }
.bento-lg { grid-column: span 2; grid-row: span 2; padding: 28px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); border-color: var(--brand-soft); }
.bento-lg .cattile-ico { width: 68px; height: 68px; border-radius: 18px; margin-bottom: 16px; }
.bento-lg .cattile-name { font-size: 24px; letter-spacing: -0.02em; }
.bento-lg .cattile-desc { font-size: 15px; max-width: 340px; margin-top: 2px; }
.bento-lg .cattile-count { font-size: 14px; padding-top: 16px; }
.bento-wide { grid-column: span 2; }
@media (max-width: 860px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(140px, auto); }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .bento-wide { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
}

/* ---- product grid + card ---- */
.prodgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prodcard { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: transform .14s, box-shadow .14s, border-color .14s; }
.prodcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.prodcard-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg,#fff,var(--bg)); padding: 16px; }
.prodcard-media img, .prodcard-media .ph { width: 100%; height: 100%; }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); display: grid; place-items: center; }
.fav-btn:hover { border-color: var(--danger); }
.fav-btn.on { color: var(--danger); border-color: var(--danger); }
.fav-btn.on svg { fill: var(--danger); }
.fav-inline-lg.on { color: var(--danger); border-color: var(--danger); }
.fav-inline-lg.on svg { fill: var(--danger); }
.prodcard-body { padding: var(--card-pad); display: flex; flex-direction: column; gap: 7px; flex: 1; border-top: 1px solid var(--line-2); }
.prodcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prodcard-brand { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.prodcard-name { font-size: 13.5px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.7em; }
.prodcard-spec { font-size: 11.5px; }
.prodcard-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 10px; }
.prodcard-foot .btn { width: 100%; justify-content: center; }
.prodcard-price { font-family: var(--font-head); font-weight: 800; font-size: 18px; white-space: nowrap; }
.prodcard-unit { font-size: 11px; }

/* ---- segments ---- */
.segments { background: var(--ink); padding: 44px 0 50px; margin-top: 8px; }
.segrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.segtile { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 18px 20px; color: #fff; text-align: left; transition: background .15s, border-color .15s; }
.segtile:hover { background: rgba(255,255,255,.1); border-color: var(--brand); }
.segtile-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); color: #A9BECF;
  display: grid; place-items: center; flex-shrink: 0; }
.segtile-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; flex: 1; }
.segtile-arrow { color: rgba(255,255,255,.4); }
.segtile:hover .segtile-arrow { color: #fff; }

/* ---- brands ---- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-cell { height: 84px; display: grid; place-items: center; padding: 16px; filter: grayscale(1); opacity: .7; transition: filter .15s, opacity .15s; }
.brand-cell:hover { filter: none; opacity: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: .2px; color: var(--ink); text-align: center; }

/* ---- CTA ---- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 32px 36px;
  background: linear-gradient(120deg, var(--brand-soft), var(--brand-2-soft)); border-color: transparent; }
.cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-form .field { width: 170px; background: #fff; }

/* ---- forms (callback / price request) ---- */
.form-page { max-width: 720px; margin: 0 auto; }
.form-page-head { margin-bottom: 22px; }
.form-page-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--brand-strong); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.form-page-head .section-title { margin-bottom: 8px; }
.form-card { padding: 28px 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-row { display: flex; flex-direction: column; }
.form-row-wide { grid-column: 1 / -1; }
.form-row .field, .form-row input[type="text"], .form-row textarea { width: 100%; }
.form-req { color: var(--accent, #d9534f); }
.form-field-error { color: #d9534f; font-size: 12.5px; margin-top: 5px; }
.form-errors { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 18px; font-size: 14px; }
.form-actions { margin-top: 22px; }
.form-success { display: flex; gap: 16px; align-items: flex-start; padding: 6px 0; }
.form-success-ico { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.form-success-title { font-size: 19px; margin-bottom: 4px; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #aebfd6; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 48px 24px 36px; }
.footer-brand .logo-text { color: #fff; }
.footer-about { font-size: 13.5px; line-height: 1.6; margin: 16px 0; max-width: 320px; }
.footer-badges { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: #aebfd6; font-size: 13.5px; margin-bottom: 11px; }
.footer-col a:hover { color: #fff; }
.footer-phone { font-family: var(--font-head); font-size: 20px !important; font-weight: 800; color: #fff !important; margin-bottom: 4px !important; }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }

/* ---- toast ---- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 150; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: fadeUp .25s ease both; }
.toast-go { background: var(--brand); color: #fff; border: none; border-radius: 9px; padding: 7px 12px; font-weight: 600; font-size: 13px; margin-left: 6px; }
/* ============================================================
   Bleskservis — catalog / product / cart / account + responsive
   ============================================================ */

/* breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 7px; padding: 18px 0 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { color: var(--faint); }
.crumbs-cur, .crumbs span:last-child { color: var(--ink-2); }

/* ---- catalog ---- */
.catalog { padding-bottom: 48px; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 12px 0 22px; flex-wrap: wrap; }
.catalog-title { font-size: 30px; }
.catalog-tools { display: flex; align-items: center; gap: 12px; }
.mobile-filter-btn { display: none; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort-select { width: auto; padding: 9px 32px 9px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7C92' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.view-toggle { display: flex; gap: 2px; background: var(--line-2); border-radius: 10px; padding: 3px; }
.view-toggle button { width: 34px; height: 32px; border: none; background: none; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.view-toggle button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

.catalog-body { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.catalog-aside-desktop { align-self: stretch; }
.filters { padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.link-clear { background: none; border: none; color: var(--brand); font-weight: 600; font-size: 13px; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-label { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.filter-cat { display: flex; justify-content: space-between; width: 100%; background: none; border: none; text-align: left;
  padding: 7px 0; font-size: 13.5px; color: var(--ink-2); border-radius: 6px; }
.filter-cat:hover { color: var(--brand); }
.filter-cat.on { color: var(--brand); font-weight: 700; }
.filter-cat .faint { font-size: 12px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .field { text-align: center; }
.filter-check { display: flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer; font-size: 13.5px; }
.filter-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-box { width: 19px; height: 19px; border: 1.5px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: background .14s, border-color .14s; }
.filter-box svg { opacity: 0; }
.filter-check input:checked + .filter-box { background: var(--brand); border-color: var(--brand); }
.filter-check input:checked + .filter-box svg { opacity: 1; }
.filter-b2b { display: flex; gap: 11px; align-items: flex-start; background: var(--brand-2-soft); color: #0a8b9a; border-radius: var(--radius-sm); padding: 14px; margin-top: 16px; }

/* дерево категорий в фильтрах (категория → подкатегории, аккордеон) */
.cat-tree { display: flex; flex-direction: column; gap: 1px; }
.cat-tree-all { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; text-align: left; padding: 8px; margin-bottom: 2px; font-size: 13.5px; color: var(--ink-2); border-radius: 7px; }
.cat-tree-all:hover { color: var(--brand); background: var(--brand-soft); }
.cat-tree-all.on { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.cat-tree-all .faint { font-size: 12px; font-weight: 600; }
.cat-node-row { display: flex; align-items: center; gap: 2px; border-radius: 7px; }
.cat-node-row:hover { background: var(--brand-soft); }
.cat-node-row.on { background: var(--brand-soft); }
.cat-node-label { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: none; border: none; text-align: left; padding: 8px; font-size: 13.5px; color: var(--ink-2); }
.cat-node-label > span:first-child { white-space: normal; line-height: 1.25; }
.cat-node-label:hover { color: var(--brand); }
.cat-node-row.active-branch .cat-node-label { color: var(--brand); font-weight: 700; }
.cat-node-label .faint { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.cat-node-toggle { background: none; border: none; color: var(--faint); width: 30px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 6px; transition: transform .18s ease, color .15s; }
.cat-node-toggle:hover { color: var(--brand); }
.cat-node.open .cat-node-toggle { transform: rotate(90deg); color: var(--brand); }
.cat-children { display: flex; flex-direction: column; margin: 1px 0 6px 9px; padding-left: 11px;
  border-left: 1.5px solid var(--line); animation: fadeUp .18s ease both; }
.cat-child { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; text-align: left; padding: 6px 8px; font-size: 13px; color: var(--muted); border-radius: 6px; }
.cat-child > span:first-child { white-space: normal; line-height: 1.25; }
.cat-child:hover { color: var(--brand); background: var(--brand-soft); }
.cat-child.on { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.cat-child .faint { font-size: 11.5px; flex-shrink: 0; }

/* вложенные разделы каталога (группировка по под/категориям) */
.cat-sections { display: flex; flex-direction: column; gap: 32px; }
.cat-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cat-section-title { font-size: 19px; }
.cat-section-title .faint { font-size: 13px; font-weight: 600; margin-left: 7px; }

/* product row (list view) */
.prodlist { display: flex; flex-direction: column; gap: 12px; }
.prodrow { display: grid; grid-template-columns: 110px 1fr 190px; gap: 18px; padding: 14px; cursor: pointer; align-items: center; transition: box-shadow .14s, border-color .14s; }
.prodrow:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.prodrow-media { width: 110px; height: 110px; background: linear-gradient(160deg,#fff,var(--bg)); border-radius: var(--radius-sm); padding: 10px; }
.prodrow-name { font-weight: 600; font-size: 15px; margin: 4px 0; line-height: 1.35; }
.prodrow-specs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.prodrow-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; position: relative; }
.prodrow-buy .btn { margin-top: 4px; }
.fav-inline { background: none; border: none; position: absolute; top: -4px; right: 0; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; color: var(--muted); }

/* filter sheet (mobile) */
.filter-sheet { position: fixed; inset: 0; z-index: 130; }
.filter-sheet-scrim { position: absolute; inset: 0; background: rgba(14,27,46,.4); }
.filter-sheet-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 86%; max-width: 360px; background: var(--bg);
  padding: 16px; overflow-y: auto; animation: slideIn .25s ease both; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.filter-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.filter-sheet .filters { position: static; box-shadow: none; max-height: none; overflow: visible; }
.filter-sheet[hidden] { display: none; }
.icon-btn { background: none; border: none; color: var(--ink-2); width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); }

/* ---- product detail ---- */
.product { padding-bottom: 48px; }
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 36px; margin: 14px 0 36px; align-items: start; }
.product-gallery { position: sticky; top: 92px; }
.product-main-img { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.product-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product-thumb { width: 76px; height: 76px; padding: 8px; cursor: pointer; }
.product-thumb.on { border-color: var(--brand); }
.product-brand { font-weight: 700; color: var(--brand); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: 26px; line-height: 1.18; margin-top: 6px; }
.product-sub { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; font-size: 13.5px; flex-wrap: wrap; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

.product-buybox { padding: 20px; }
.buybox-top { display: flex; justify-content: space-between; align-items: flex-start; }
.buybox-price { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; }
.buybox-unit { font-size: 16px; font-weight: 600; color: var(--muted); }
.buybox-old { font-size: 13px; color: var(--muted); margin-top: 6px; }
.fav-inline-lg { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.fav-inline-lg:hover { border-color: var(--danger); }
.buybox-pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 16px 0; display: flex; flex-direction: column; gap: 7px; }
.pack-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.tiers { margin-bottom: 16px; }
.tiers-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); margin-bottom: 9px; }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 11px; transition: border-color .14s, background .14s; }
.tier.on { border-color: var(--brand); background: var(--brand-soft); }
.tier-q { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tier-p { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.buybox-actions { display: flex; align-items: center; gap: 12px; }
.buybox-total { display: flex; flex-direction: column; }
.buybox-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-top: 14px; }
.product-perks { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.perk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.perk svg { color: var(--brand); }

.product-tabs { margin-bottom: 40px; max-width: 640px; }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0; overflow-x: auto; }
.tab { background: none; border: none; padding: 13px 18px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { padding: 24px; border-top-left-radius: 0; border-top-right-radius: 0; }
.specs-table { display: flex; flex-direction: column; max-width: 560px; }
.specs-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 14px; }
.specs-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.prose p { margin: 0 0 12px; line-height: 1.6; font-size: 14.5px; max-width: 720px; }
.docs-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.doc-item:hover { border-color: var(--brand); color: var(--brand); }
.doc-item svg { color: var(--brand); }

/* ---- cart / checkout ---- */
.cart { padding-bottom: 48px; }
.checkout-steps { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; }
.cstep { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--faint); }
.cstep span { width: 26px; height: 26px; border-radius: 99px; background: var(--line-2); color: var(--muted); display: grid; place-items: center; font-size: 13px; }
.cstep.on { color: var(--ink); }
.cstep.on span { background: var(--brand); color: #fff; }
.cstep.done { color: var(--ink-2); }
.cstep.done span { background: var(--ok); color: #fff; }
.cstep-line { flex: 1; max-width: 60px; height: 2px; background: var(--line); }

.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.cart-items { padding: 8px 20px 16px; }
.cart-items-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 78px 1fr 130px 120px 32px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 78px; height: 78px; padding: 8px; cursor: pointer; }
.cart-item-name { font-weight: 600; font-size: 14px; line-height: 1.35; margin: 3px 0; cursor: pointer; }
.cart-item-name:hover { color: var(--brand); }
.cart-item-price { text-align: right; }
.cart-item-del { background: none; border: none; color: var(--faint); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.cart-item-del:hover { background: #fde9e9; color: var(--danger); }

.cart-summary { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.summary { padding: 20px; }
.summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 800; font-size: 21px; margin-bottom: 16px; }
.summary-perks { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; font-size: 12.5px; }
.summary-perks span { display: inline-flex; align-items: center; gap: 7px; }
.summary-b2b { display: flex; gap: 11px; align-items: center; padding: 14px; color: var(--brand-strong); background: var(--brand-soft); border-color: transparent; }

.checkout { display: flex; flex-direction: column; gap: 16px; }
.co-section { padding: 20px; }
.co-title { font-size: 16px; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.seg button { border: none; background: none; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-span2 { grid-column: 1 / -1; }
.radio-cards { display: flex; flex-direction: column; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; text-align: left; transition: border-color .14s, background .14s; }
.radio-card.on { border-color: var(--brand); background: var(--brand-soft); }
.radio-dot { width: 20px; height: 20px; border-radius: 99px; border: 2px solid var(--line); flex-shrink: 0; transition: border-color .14s; position: relative; }
.radio-card.on .radio-dot { border-color: var(--brand); }
.radio-card.on .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 99px; background: var(--brand); }
.radio-title { font-weight: 600; font-size: 14px; }

.order-done { text-align: center; padding: 48px 32px; max-width: 560px; margin: 24px auto; }
.done-ico { width: 68px; height: 68px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.done-summary { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0; text-align: left; }
.done-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.done-actions { display: flex; gap: 12px; justify-content: center; }

/* ---- account ---- */
.account { padding-bottom: 48px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 16px 0 24px; flex-wrap: wrap; }
.account-sub { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13.5px; flex-wrap: wrap; }
.account-balance { display: flex; align-items: center; gap: 22px; padding: 16px 22px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.account-nav { padding: 8px; position: sticky; top: 92px; }
.account-navitem { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: none; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.account-navitem:hover { background: var(--bg); }
.account-navitem.on { background: var(--brand-soft); color: var(--brand-strong); }
.account-card { padding: 22px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.order-row:last-child { border-bottom: none; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.req-item { display: flex; flex-direction: column; gap: 3px; }
.order-detail-head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.order-detail-num { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.order-detail-total { font-weight: 800; font-size: 20px; }
.order-rows { padding: 8px 0 4px; }
.order-line { display: grid; grid-template-columns: 64px 1fr 90px 120px 120px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.order-line:last-child { border-bottom: none; }
.order-line-img { width: 64px; height: 64px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.order-line-img img { max-width: 100%; max-height: 100%; padding: 6px; }
.order-line-noimg { color: var(--faint); }
.order-line-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.order-line-name:hover { color: var(--brand); }
.order-line-qty { font-size: 13.5px; text-align: center; }
.order-line-price { font-size: 13.5px; text-align: right; }
.order-line-sum { font-weight: 700; text-align: right; }
.order-detail-summary { max-width: 360px; margin-left: auto; padding: 16px 0 4px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.order-detail-grid .account-card { margin: 0; }
.order-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 20px; }

/* ============================================================
   RESPONSIVE — container queries on .app-canvas
   ============================================================ */
@media (max-width: 1100px) {
  .prodgrid, .catgrid, .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 42px; white-space: normal; }
}
@media (max-width: 980px) {
  .topbar-left a { display: none; }
  .topbar-left a:nth-child(2), .topbar-left a:nth-child(3) { display: inline; }
  .header-actions .hact span:last-child { display: none; }
  .hact { min-width: 44px; padding: 8px; }
  .product-top { grid-template-columns: 1fr; }
  .product-gallery { position: static; max-width: 420px; }
  .cart-layout, .account-layout { grid-template-columns: 1fr; }
  .cart-summary, .account-nav, .filters { position: static; }
  .account-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .account-navitem { width: auto; }
}
@media (max-width: 860px) {
  .hero-in { padding: 44px 16px 48px; }
  .hero-values { grid-template-columns: repeat(2, 1fr); }
  .sets-grid { grid-template-columns: 1fr; }
  .catalog-body { grid-template-columns: 1fr; }
  .catalog-aside-desktop { display: none; }
  .mobile-filter-btn { display: inline-flex; }
  .segrid { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: stretch; }
  .cta-form { flex-direction: column; }
  .cta-form .field { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .topbar-left a, .topbar-right .chip { display: none; }
  .topbar-in { height: auto; min-height: 40px; padding-top: 9px; padding-bottom: 5px; }
  .header-in { min-height: 64px; height: auto; gap: 10px; flex-wrap: wrap; align-content: center; padding-top: 14px; padding-bottom: 18px; }
  .catalog-btn span, .catalog-btn { font-size: 0; }
  .catalog-btn { width: 48px; height: 48px; padding: 0; gap: 0; justify-content: center; flex-shrink: 0; }
  .catalog-btn svg { font-size: initial; width: 22px; height: 22px; }
  .logo { order: 1; flex-shrink: 0; }
  .header-actions { order: 2; margin-left: auto; }
  .header-in::after { content: ''; order: 3; width: 100%; height: 0; }
  .catalog-btn { order: 4; }
  .search { order: 5; flex: 1 1 auto; flex-basis: auto; min-width: 0; height: 44px; }
  .search-go { display: none; }
  .prodgrid, .catgrid, .mega-grid, .brands { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 28px 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section-title, .catalog-title { font-size: 22px; }
  .hero-in { padding: 32px 16px 40px; }
  .hero-title { font-size: 34px; }
  .hero-values { grid-template-columns: 1fr; }
  .product-name { font-size: 21px; }
  .buybox-price { font-size: 28px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .buybox-actions { flex-wrap: wrap; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: 'img info del' 'img qty price'; gap: 10px 12px; align-items: start; }
  .cart-item-img { width: 64px; height: 64px; grid-area: img; align-self: center; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; align-self: center; }
  .cart-item-price { grid-area: price; white-space: nowrap; align-self: center; }
  .cart-item-del { grid-area: del; justify-self: end; }
  .prodrow { grid-template-columns: 80px 1fr; }
  .prodrow-buy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .prodrow-buy .btn { margin-top: 0; }
  .fav-inline { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .order-detail-head { grid-template-columns: 1fr auto; }
  .order-detail-total { grid-column: 1 / -1; }
  .order-line { grid-template-columns: 56px 1fr auto; grid-template-areas: 'img info sum' 'img qty price'; gap: 8px 12px; }
  .order-line-img { grid-area: img; width: 56px; height: 56px; }
  .order-line-info { grid-area: info; }
  .order-line-qty { grid-area: qty; text-align: left; }
  .order-line-price { grid-area: price; text-align: left; }
  .order-line-sum { grid-area: sum; }
  .order-detail-summary { max-width: none; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .segrid { grid-template-columns: 1fr; }
  .done-actions { flex-direction: column; }
  .checkout-steps .cstep span { margin: 0; }
  .req-grid, .co-grid { grid-template-columns: 1fr; }
}

/* мобильное усиление */
@media (max-width: 860px){
  .hero-side{ max-width:100%; }
  .hero-float{ display:none; }
}
@media (max-width: 680px){
  /* перебиваем @980 nth-child(2/3){display:inline} по специфичности */
  .topbar-left a, .topbar-left a:nth-child(2), .topbar-left a:nth-child(3){ display:none; }
}
/* НЕ ставить overflow на html/body/#root/.app-canvas — ломает position:sticky шапки */
/* реальный логотип Блеск-Сервис (моно-маска: тёмный в шапке, белый в подвале) */
.logo-img{ display:block; width:96px; height:42px; background-color: var(--ink);
  -webkit-mask: url(images/logo.png) left center / contain no-repeat;
          mask: url(images/logo.png) left center / contain no-repeat; }
.logo.logo-light .logo-img{ background-color:#fff; }

/* ============ Контентные страницы (О компании, Контакты, Доставка, Бизнес) ============ */
.page { padding-bottom: 56px; }
.crumb { background: none; border: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.crumb:hover { color: var(--brand); }
.crumb-current { color: var(--ink-2); cursor: default; }
.crumb-sep { color: var(--faint); }
.page-head { padding-top: 14px; margin-bottom: 22px; }
.page-title { font-size: 34px; letter-spacing: -0.02em; }
.page-lead { margin-top: 12px; max-width: 760px; font-size: 16px; line-height: 1.55; }
.page-body { display: flex; flex-direction: column; gap: 20px; }
.page-block { display: flex; flex-direction: column; gap: 14px; }
.page-h2 { display: flex; align-items: center; gap: 9px; font-size: 21px; }
.page-h2 svg { color: var(--brand); }

.prose { padding: 24px 26px; }
.prose h2 { font-size: 19px; margin: 18px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { line-height: 1.6; font-size: 14.5px; margin-bottom: 7px; max-width: 720px; }
.link-inline { background: none; border: none; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.link-inline:hover { color: var(--brand-strong); text-decoration: underline; }

/* статистика «О компании» */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.about-stat { padding: 18px 18px; }
.about-stat-num { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.about-stat-label { font-size: 13px; margin-top: 5px; line-height: 1.4; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-value { display: flex; gap: 14px; padding: 18px 20px; }
.about-value-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.about-value-title { font-size: 16px; margin-bottom: 5px; }
.about-value p { font-size: 14px; line-height: 1.55; }

/* направления деятельности «О компании» */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dir-card { display: flex; flex-direction: column; padding: 24px 24px; }
.dir-ico { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 14px; }
.dir-title { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 6px; }
.dir-lead { font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.dir-list { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.dir-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.dir-check { flex: 0 0 auto; color: var(--brand); margin-top: 2px; }

/* CTA-блок на страницах */
.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px;
  background: linear-gradient(120% 120% at 100% 0%, var(--brand-soft), var(--surface) 60%); }
.page-cta-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* контакты */
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contacts-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.contacts-ico { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 6px; }
.contacts-label { font-size: 12.5px; }
.contacts-value { font-size: 18px; font-weight: 700; color: var(--ink); }
a.contacts-value:hover { color: var(--brand); }
.contacts-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.contacts-map { overflow: hidden; min-height: 280px; padding: 0; }
.map-ph { width: 100%; height: 100%; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--brand);
  background: repeating-linear-gradient(45deg, var(--brand-2-soft), var(--brand-2-soft) 14px, var(--surface) 14px, var(--surface) 28px); }
.contacts-form { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); }

/* инфо-карточки (доставка/оплата/бизнес) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.info-card { display: flex; flex-direction: column; gap: 7px; padding: 20px 22px; text-align: left; }
button.info-card { font: inherit; cursor: pointer; color: inherit; }
button.info-card:hover { border-color: var(--brand); }
.info-ico { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 4px; }
.info-title { font-size: 16px; }
.info-card p { font-size: 14px; line-height: 1.55; }

/* таблица реквизитов */
.req-table { width: 100%; border-collapse: collapse; max-width: 640px; }
.req-table th { text-align: left; vertical-align: top; padding: 9px 16px 9px 0; font-weight: 600; color: var(--muted); font-size: 13.5px; width: 200px; white-space: nowrap; }
.req-table td { padding: 9px 0; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.req-table th { border-bottom: 1px solid var(--line-2); }

/* юридические документы */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.legal-nav { padding: 14px; position: sticky; top: 16px; }
.legal-nav h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.legal-link { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 11px; border-radius: var(--radius-sm); font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.legal-link:hover { background: var(--brand-soft); color: var(--brand-strong); }
.legal-link.on { background: var(--brand); color: #fff; }
.legal-doc { max-width: 820px; }

/* документы в подвале */
.footer-docs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 18px 24px 4px; }
.footer-docs a { color: #aebfd6; font-size: 12.5px; }
.footer-docs a:hover { color: #fff; }

/* ============ Баннер cookie — прозрачный / стеклянный ============ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0 16px 16px; pointer-events: none; animation: cookieUp .4s ease both; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-in { pointer-events: auto; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 40px rgba(14,27,46,.18); }
.cookie-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.cookie-text { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cookie-actions { flex: 0 0 auto; display: flex; gap: 9px; }
.cookie-min { white-space: nowrap; }

/* ============ Адаптив контентных страниц ============ */
@media (max-width: 980px) {
  .about-stats, .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values, .info-grid, .contacts-bottom, .dir-grid { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav h4 { width: 100%; }
}
@media (max-width: 640px) {
  .page-title { font-size: 26px; }
  .about-stats, .contacts-grid { grid-template-columns: 1fr 1fr; }
  .page-cta { flex-direction: column; align-items: flex-start; }
  .page-cta-actions { width: 100%; flex-wrap: wrap; }
  .cookie-in { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
  .req-table th { width: auto; white-space: normal; }
}

/* ============ Кнопки действий на карточке (избранное + сравнение) ============ */
.card-actions { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.card-actions .fav-btn { position: static; top: auto; right: auto; }
.cmp-btn { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.94);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); cursor: pointer; }
.cmp-btn:hover { border-color: var(--brand); color: var(--brand); }
.cmp-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.prodrow-acts { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.fav-inline.cmp-on { color: var(--brand) !important; }

/* ============ Таблица сравнения ============ */
.compare-wrap { overflow-x: auto; padding-bottom: 6px; }
.compare-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare-rowlabel { position: sticky; left: 0; z-index: 2; background: var(--bg); text-align: left;
  font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px 12px 4px; white-space: nowrap; min-width: 130px; }
.compare-cell { padding: 12px 14px; font-size: 14px; color: var(--ink); min-width: 220px; width: calc((100% - 134px) / var(--cmp-cols, 1)); }
.compare-row-head .compare-cell { vertical-align: top; }
.compare-prod { position: relative; display: flex; flex-direction: column; gap: 9px; }
.compare-remove { position: absolute; top: -2px; right: -2px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.compare-remove:hover { border-color: var(--danger); color: var(--danger); }
.compare-thumb { height: 120px; width: 100%; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-2); padding: 8px; cursor: pointer; }
.compare-thumb.ph { display: grid; place-items: center; }
.compare-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; cursor: pointer; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.compare-name:hover { color: var(--brand); }
.compare-price { font-size: 18px; font-weight: 800; color: var(--ink); }

/* ============ Страница 404 ============ */
.notfound { padding-bottom: 48px; }
.nf-hero { text-align: center; padding: 48px 0 28px; max-width: 620px; margin: 0 auto; }
.nf-code { font-family: var(--font-head); font-weight: 800; font-size: 132px; line-height: 1;
  color: var(--brand); letter-spacing: -.04em; display: flex; align-items: center; justify-content: center; gap: 8px; }
.nf-bubble { width: 104px; height: 104px; border-radius: 50%; background: var(--brand-2-soft); color: var(--brand-2);
  display: grid; place-items: center; box-shadow: inset 0 0 0 8px #fff; }
.nf-bubble svg { width: 54px; height: 54px; }
.nf-title { font-size: 30px; margin: 18px 0 10px; }
.nf-lead { font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0 auto 26px; max-width: 480px; }
.nf-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--btn-radius); padding: 0 6px 0 14px; height: 52px; max-width: 480px; margin: 0 auto 18px; box-shadow: var(--shadow-sm); }
.nf-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.nf-search .search-input { flex: 1; }
.nf-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.nf-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nf-links .chip { border: none; cursor: pointer; }
.nf-links .chip:hover { background: var(--brand); color: #fff; }

@media (max-width: 640px) {
  .nf-code { font-size: 92px; }
  .nf-bubble { width: 74px; height: 74px; box-shadow: inset 0 0 0 6px #fff; }
  .nf-bubble svg { width: 38px; height: 38px; }
  .nf-title { font-size: 23px; }
  .nf-cta { flex-direction: column; }
  .compare-rowlabel { min-width: 104px; }
}

/* ============ Страница поиска ============ */
.srch-bar-form { margin-bottom: 22px; }
.srch-bar { display: flex; align-items: center; gap: 6px; max-width: 720px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.srch-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.srch-bar-ico { color: var(--faint); flex-shrink: 0; }
.srch-bar-input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px;
  padding: 12px 10px; color: var(--ink); }
.srch-bar-input::placeholder { color: var(--faint); }
.srch-bar-clear { background: none; border: none; color: var(--faint); width: 34px; height: 34px;
  border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.srch-bar-clear:hover { background: var(--line-2); color: var(--ink-2); }
.srch-head { margin-bottom: 18px; }

.search-form { display: flex; align-items: center; flex: 1; gap: 0; }
.search .search-form { width: 100%; }

.search-suggest, .search .title-search-result { position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg, 0 18px 40px rgba(15,40,80,.16));
  padding: 6px; z-index: 60; overflow: hidden; }
.search-suggest-list { list-style: none; margin: 0; padding: 0; }
.search-suggest-item a, .search-suggest-all a { display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.search-suggest-item a:hover, .search-suggest-all a:hover { background: var(--brand-soft); color: var(--brand); }
.search-suggest-item b, .search .title-search-result b { color: var(--brand); font-weight: 600; }
.search-suggest-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.search-suggest-all a { font-weight: 600; color: var(--brand); }
.title-search-fader { display: none; }

.search-results .search-other { margin-top: 20px; padding: 20px 22px; }
.search-other-title { font-size: 16px; color: var(--ink-2); margin-bottom: 10px; }
.search-other-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.search-other-link { font-size: 15px; color: var(--brand); text-decoration: none; font-weight: 500; }
.search-other-link:hover { text-decoration: underline; }
.search-other-body { font-size: 13px; margin-top: 3px; }

/* пустое состояние — единый стиль */
.empty-lg { padding: 44px 28px; gap: 12px; }
.empty-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 4px; }
.empty-title { font-size: 20px; color: var(--ink); }
.empty-lg p { max-width: 440px; }
.empty-cats { width: 100%; margin: 8px 0 6px; }

/* ============ Кнопка «Выйти» в шапке кабинета ============ */
.account-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ============ Авторизация / Регистрация ============ */
.auth { padding-bottom: 56px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin: 12px 0; }
.auth-card { padding: 32px; }
.auth-seg { display: flex; background: var(--line-2); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-seg button { flex: 1; border: none; background: none; padding: 11px; border-radius: 9px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background .14s, color .14s; cursor: pointer; }
.auth-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-title { font-size: 27px; }
.auth-lead { font-size: 14px; margin: -8px 0 4px; line-height: 1.5; }
.auth-pwd { position: relative; }
.auth-pwd .field { padding-right: 78px; }
.auth-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--brand); font-weight: 600; font-size: 12.5px; padding: 6px 8px; cursor: pointer; }
.auth-pwd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth-pwd-head .link-more { white-space: nowrap; }
.auth-switch { font-size: 13.5px; text-align: center; margin: 4px 0 0; }
.auth-switch a, .auth-inline-link { color: var(--brand); font-weight: 600; cursor: pointer; }
.auth-switch a:hover, .auth-inline-link:hover { color: var(--brand-strong); }
.auth .seg { width: 100%; }
.auth .seg button { flex: 1; }
.auth .co-grid { gap: 14px; }

.auth-side { border-radius: var(--radius); overflow: hidden; }
.auth-side-card { height: 100%; background: linear-gradient(160deg, var(--brand-strong), var(--ink)); color: #fff; padding: 36px 32px; display: flex; flex-direction: column; }
.auth-side-title { font-size: 26px; line-height: 1.15; margin: 16px 0 24px; max-width: 320px; color: #fff; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-perks li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.45; color: #dce7f5; }
.auth-perk-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); color: var(--brand-2); display: grid; place-items: center; flex-shrink: 0; }
.auth-side-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #cfe0f5; }
.auth-side-foot b { color: #fff; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side { order: -1; }
  .auth-card { padding: 22px; }
}

/* ===================== ЛЕНДИНГ (стартовый экран) ===================== */
.landing-stats-sec { padding-top: 28px; padding-bottom: 12px; }

/* услуги — 4 направления в ряд */
.svc-grid { grid-template-columns: repeat(4, 1fr); }
.svc-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-soft); }
.svc-card-primary { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-soft), var(--surface) 65%); }
.svc-cta { align-self: flex-start; margin-top: 16px; }

/* верхняя панель — выделенная ссылка на магазин */
.topbar-shop { color: #fff !important; font-weight: 600; }

/* широкий баннер-переход в интернет-магазин */
.shop-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 34px 38px; color: #fff; border: none;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}
.shop-banner-copy { max-width: 620px; }
.shop-banner-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .02em;
}
.shop-banner-title { font-family: var(--font-head); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: #fff; margin: 14px 0 10px; }
.shop-banner-sub { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.88); margin: 0; }
.shop-banner-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.shop-banner .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.shop-banner .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .shop-banner { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .shop-banner-actions { flex-direction: row; flex-wrap: wrap; }
  .shop-banner-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .shop-banner-title { font-size: 23px; }
}

/* блок «О компании» — описание + ключевые цифры */
.landing-about { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: stretch; }
.landing-about-text { margin: 0; }
.about-bullets { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.about-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 720px; }
.about-bullets .dir-check { flex: 0 0 auto; color: var(--brand); margin-top: 2px; }
.landing-about-figures { display: flex; flex-direction: column; gap: 14px; }
.landing-about-figures .about-stat { flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) {
  .landing-about { grid-template-columns: 1fr; }
  .landing-about-figures { flex-direction: row; }
  .landing-about-figures .about-stat { flex: 1; }
}
@media (max-width: 520px) {
  .landing-about-figures { flex-direction: column; }
}

.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.pager-item { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .14s, background .14s, color .14s; }
.pager-item:hover { border-color: var(--brand); color: var(--brand); }
.pager-item.is-active { background: var(--brand); border-color: var(--brand); color: #fff; cursor: default; }
.pager-item.is-disabled { opacity: .4; pointer-events: none; }
.pager-prev { transform: rotate(90deg); }
.pager-next { }
.cmp-btn-inline { width: 52px; flex: 0 0 auto; }
.smart-filter-popup-result { margin-top: 10px; font-size: 13px; }
.filter-check input:disabled + .filter-box { background: var(--surface-2); }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.active-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: var(--brand-soft); color: var(--brand); border: none; border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.active-chip:hover { background: var(--brand); color: #fff; }
.active-clear { font-size: 12.5px; color: var(--faint); margin-left: 4px; }

.filter-group[data-collapsible]:not(.is-expanded) .filter-check.is-extra { display: none; }
.facet-more { background: none; border: none; color: var(--brand); font-size: 13px; padding: 8px 0 0; cursor: pointer; }
.facet-search { margin: 4px 0 8px; height: 34px; font-size: 13px; }
.filter-check.is-hidden { display: none !important; }

@media (max-width: 680px) {
  .mega-head { gap: 9px; }
  .mega-name { min-width: 0; overflow-wrap: anywhere; }
  .mega-count { flex-shrink: 0; margin-left: auto; padding-left: 8px; }
  .segments { padding-top: 32px; padding-bottom: 34px; }
  .catalog-tools { width: 100%; justify-content: space-between; gap: 8px; min-width: 0; }
  .catalog-tools .sort { min-width: 0; }
  .catalog-tools .sort > label { display: none; }
  .catalog-tools .sort-select { min-width: 0; }
}
@media (max-width: 560px) {
  .mega-grid { grid-template-columns: 1fr; gap: 16px; }
}