/* ============================================================
   Азбука кроваток — оптовый B2B. Дизайн-система (пастель/воздух)
   ============================================================ */

:root {
  /* акцент (перекрывается tweaks) */
  --accent:        #7EC8E3;
  --accent-deep:   #3E97BF;
  --accent-ink:    #1C6E92;
  --accent-soft:   #E4F4FB;

  --mint:          #9DD9C5;
  --mint-soft:     #E7F6F0;
  --peach:         #F4B6A4;
  --peach-soft:    #FCEDE7;
  --lilac:         #C9B6E4;

  /* нейтральные */
  --bg:            #FFFFFF;
  --bg-sky:        #F4FAFD;
  --bg-soft:       #F8FBFD;
  --ink:           #33424E;
  --ink-2:         #5A6B78;
  --ink-muted:     #8A9AA7;
  --line:          #E7EFF4;
  --line-2:        #DCE8EF;

  --card-radius:   22px;          /* tweakable */
  --btn-radius:    999px;
  --cloud-bg:      #F1F8FC;       /* tweakable density tint via opacity */

  --shadow-sm: 0 2px 10px rgba(70,120,150,.06);
  --shadow:    0 14px 40px -18px rgba(60,120,155,.30);
  --shadow-lg: 0 30px 70px -28px rgba(60,120,155,.40);

  --font-display: 'Nunito', system-ui, sans-serif;  /* tweakable */
  --font-body:    'Nunito', system-ui, sans-serif;/* tweakable */

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-sky);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.01em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ----------------------------- layout ----------------------------- */
.app-root { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.page { flex: 1 0 auto; position: relative; z-index: 1; padding-bottom: 80px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 7px 14px; border-radius: 999px;
}
.eyebrow.mint { color: #2E8F73; background: var(--mint-soft); }
.eyebrow.peach { color: #C76A4F; background: var(--peach-soft); }
/* нативный, неброский вариант — без плашки, просто подпись с иконкой */
.eyebrow.plain { background: none; padding: 0; font-size: 12.5px; letter-spacing: .12em; }
.eyebrow.plain svg { opacity: .9; }

.h-lead { font-size: clamp(34px, 4.6vw, 58px); }
.h-1 { font-size: clamp(28px, 3.4vw, 42px); }
.h-2 { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-muted); }

/* ----------------------------- buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--btn-radius);
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #0E465C; box-shadow: 0 10px 22px -10px rgba(62,151,191,.7); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 14px 28px -10px rgba(62,151,191,.8); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { background: #d3edf7; }
.btn-mint { background: var(--mint); color: #1C5947; }
.btn-mint:hover { background: #87cdb6; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ----------------------------- header ----------------------------- */
/* ----------------------------- topbar ----------------------------- */
.topbar { position: relative; z-index: 51; background: linear-gradient(90deg, var(--accent-soft), var(--mint-soft) 55%, var(--peach-soft)); border-bottom: 1px solid rgba(255,255,255,.6); }
.topbar-row { display: flex; align-items: center; gap: 24px; height: 40px; font-size: 13px; }
.topbar-benefits { display: flex; align-items: center; gap: 22px; overflow: hidden; }
.topbar-benefit { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.topbar-benefit svg { color: var(--accent-deep); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 700; cursor: pointer; transition: .15s; }
.topbar-link:hover { color: var(--accent-deep); transform: translateY(-1px); }
.topbar-city { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 26px; height: 78px; }
.logo { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.logo-img { height: 58px; width: auto; display: block; transition: transform .3s cubic-bezier(.3,1.4,.5,1), height .25s ease; }
.logo:hover .logo-img { transform: translateY(-2px) scale(1.02); }
.logo-mark { width: 42px; height: 42px; flex: none; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.logo:hover .logo-mark { transform: translateY(-3px) rotate(-4deg); }
.logo-mark .lm-star { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .logo-mark .lm-star { animation: none; } }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: -.01em; }
.logo-text small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 2px; }
.nav-item { position: relative; }
.nav a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 9px 14px; border-radius: 999px; transition: .16s; cursor: pointer; }
.nav a:hover { color: var(--accent-ink); background: var(--accent-soft); }
.nav a.active { color: var(--accent-ink); background: var(--accent-soft); }
.nav a .caret { display: inline-flex; transition: transform .2s; }
.nav-item:hover a .caret { transform: rotate(90deg); }
/* выделенная кнопка «Каталог» */
.nav a.nav-catalog { color: #ffffff; background: var(--accent-deep); box-shadow: 0 8px 18px -9px rgba(62,151,191,.75); padding-left: 16px; padding-right: 16px; }
.nav a.nav-catalog:hover, .nav a.nav-catalog.active { color: #fff; background: var(--accent-ink); }
.nav a.nav-catalog .caret { opacity: .95; }

/* mega menu */
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px); width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 16px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 60; }
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 15px; height: 15px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 4px 0 0 0; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-item { display: flex; gap: 13px; align-items: flex-start; padding: 13px 14px; border-radius: 15px; cursor: pointer; transition: .15s; }
.mega-item:hover { background: var(--bg-sky); }
.mega-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--accent-deep); background: var(--accent-soft); }
.mega-item:nth-child(2) .mega-ico { color: #2E8F73; background: var(--mint-soft); }
.mega-item:nth-child(3) .mega-ico { color: #C76A4F; background: var(--peach-soft); }
.mega-it-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mega-it-title .count { font-size: 11px; font-weight: 700; color: var(--ink-muted); background: var(--bg-sky); padding: 2px 8px; border-radius: 999px; }
.mega-it-desc { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; line-height: 1.4; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 16px 6px; border-top: 1px solid var(--line); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.phone-pill { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.phone-pill .num { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.phone-pill .lbl { font-size: 11px; color: var(--ink-muted); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 9px; background: var(--accent-soft); color: var(--accent-ink); padding: 11px 18px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; transition: .16s; }
.cart-btn:hover { background: #d3edf7; }
.cart-btn-icon { padding: 11px; width: 44px; height: 44px; justify-content: center; gap: 0; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--peach); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -3px rgba(244,124,90,.7); }

/* ----------------------------- cloud background ----------------------------- */
.sky-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 80% -10%, #EAF6FC 0%, transparent 60%),
    radial-gradient(900px 520px at 5% 8%, #F0F6EC 0%, transparent 55%),
    linear-gradient(180deg, #F7FCFE 0%, var(--bg-sky) 40%, #F3F9FC 100%);
}
.cloud { position: absolute; opacity: .9; filter: drop-shadow(0 18px 26px rgba(120,170,200,.12)); animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(40px); } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }

/* ----------------------------- cards / surfaces ----------------------------- */
.card { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.surface { background: #fff; border-radius: var(--card-radius); border: 1px solid var(--line); }

/* product card */
.prod-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--card-radius); border: 1px solid var(--line); overflow: hidden; transition: transform .18s ease, box-shadow .22s ease, border-color .2s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6e8f1; }
.prod-media { position: relative; aspect-ratio: 1 / 1; background: #fff; }
.prod-media .ds-img { width: 100%; height: 100%; }
.prod-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.prod-badge.mint { color: #2E8F73; }
.prod-badge.peach { color: #C76A4F; }
.prod-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .16s; }
.prod-fav:hover { background: #fff; transform: scale(1.08); }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.prod-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-sky); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.prod-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { display: flex; flex-direction: column; }
.price .from { font-size: 11.5px; color: var(--ink-muted); font-weight: 600; }
.price .val { font-family: var(--font-display); font-weight: 800; font-size: 23px; color: var(--ink); }
.price .val small { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.price .moq { font-size: 11.5px; color: var(--ink-muted); }
.price-request { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--accent-deep); white-space: nowrap; }
.price-request svg { color: var(--accent); flex: none; }

/* swatches */
.swatches { display: flex; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.06); cursor: pointer; }
.swatch.sel { box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.06), 0 0 0 2px #fff, 0 0 0 4px var(--accent); }

/* forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.field .req { color: var(--peach); }
.input, .textarea, .select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.err, .textarea.err { border-color: var(--peach); box-shadow: 0 0 0 4px var(--peach-soft); }
.field .hint { font-size: 12.5px; color: var(--ink-muted); }
.field .errmsg { font-size: 12.5px; color: #D96A4A; font-weight: 600; }
.textarea { resize: vertical; min-height: 96px; }

/* qty stepper */
.stepper { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 40px; font-size: 20px; color: var(--accent-ink); display: grid; place-items: center; transition: background .14s; }
.stepper button:hover { background: var(--accent-soft); }
.stepper input { width: 46px; text-align: center; border: none; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); background: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-muted); padding: 22px 0 4px; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { opacity: .5; }

/* misc */
.divider { height: 1px; background: var(--line); }
.tag-soft { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 7px 13px; border-radius: 999px; }

/* footer */
.site-footer { position: relative; z-index: 1; margin-top: auto; }
/* облачная кромка сверху */
.footer-scallop { position: relative; z-index: 2; display: block; width: 100%; height: 54px; margin-bottom: -1px; color: #fff; }
.footer-body { position: relative; background: #fff; border-top: 1px solid var(--line); overflow: hidden; }
.footer-cloud { position: absolute; pointer-events: none; opacity: .5; }
.footer-cloud.fc1 { top: 30px; right: 6%; width: 200px; }
.footer-cloud.fc2 { bottom: 80px; left: 3%; width: 150px; opacity: .35; }

/* CTA-полоса внутри футера */
.footer-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 26px 34px; margin: 40px 0 8px; border-radius: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-soft), var(--mint-soft) 90%); border: 1px solid rgba(255,255,255,.7); }
.footer-cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-cta-form .input { width: 230px; background: rgba(255,255,255,.85); }

.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; padding: 48px 0 40px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.footer-col .logo-img { height: 64px; }
.footer-col h4 svg { color: var(--accent-deep); }
.footer-col a { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14px; padding: 5px 0; transition: transform .15s, color .15s; cursor: pointer; }
.footer-col a:hover { color: var(--accent-ink); transform: translateX(3px); }
.footer-col a .fdot { width: 5px; height: 5px; border-radius: 999px; background: var(--line-2); flex: none; transition: .15s; }
.footer-col a:hover .fdot { background: var(--accent); }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-soc { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-sky); color: var(--accent-deep); border: 1px solid var(--line); cursor: pointer; transition: .16s; }
.footer-soc:hover { background: var(--accent); color: #0E465C; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; flex-wrap: wrap; }
.footer-pay { display: flex; align-items: center; gap: 8px; }
.footer-pay .pay-chip { font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--ink-2); background: var(--bg-sky); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; }
@media (max-width: 980px) { .footer-cta { flex-direction: column; align-items: flex-start; } }

/* ----------------------------- категории на главной ----------------------------- */
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d6e8f1; }
.cat-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(180deg, #fff, var(--bg-sky)); }
.cat-media .ds-img { width: 100%; height: 100%; display: block; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.cat-card:hover .cat-media .ds-img { transform: scale(1.04); }
.cat-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.93); color: var(--accent-ink); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); }
.cat-body { display: flex; flex-direction: column; gap: 13px; padding: 20px 22px 20px; flex: 1; }
.cat-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-meta .chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cat-meta .chip svg { color: var(--accent-deep); flex: none; }
.cat-models { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-models-label { width: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: -1px; }
.cat-model { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: 13px; white-space: nowrap;
  color: var(--ink-2); background: var(--bg-sky); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
  cursor: pointer; transition: .15s; }
.cat-model:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-1px); }
.cat-model .hit { color: #F0B23E; display: inline-flex; }
.cat-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px dashed var(--line-2); }
.cat-finishes { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }
.cat-go { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-deep); white-space: nowrap; transition: gap .18s ease; }
.cat-card:hover .cat-go { gap: 12px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr !important; } }

/* ----------------------------- HERO с фото мамы во всю правую часть ----------------------------- */
.hero-section { position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: center; padding: 40px 0 52px; }
.hero-wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 560px; }
/* верхние трасты в герое: отзыв Яндекс Карт + сотрудники */
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ya-review { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 7px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.ya-review:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ya-mark { width: 24px; height: 24px; border-radius: 7px; background: #FFB400; color: #fff; flex: none;
  display: grid; place-items: center; }
.ya-stars { display: inline-flex; gap: 1px; }
.ya-score { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; color: var(--ink); }
.ya-cap { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }
.hero-emp { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 999px; padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.hero-emp svg { color: var(--accent-deep); }
@media (max-width: 520px) { .ya-cap { display: none; } }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; z-index: 1; }
.hero-photo-img {
    position: absolute;
    inset: 0;
    background-image: url(/wp-content/uploads/2026/07/hero.jpg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: 143px 60%;
    -webkit-mask-image: linear-gradient(to right, transparent 22%, rgba(0, 0, 0, .5) 31%, #000 47%, #000 100%);
    mask-image: linear-gradient(to right, transparent 22%, rgba(0, 0, 0, .5) 31%, #000 47%, #000 100%);
}
/* мягкая голубая «вуаль» поверх стыка — прячет границу облаков фото и фона страницы */
.hero-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, var(--bg-sky) 0%, rgba(244,250,253,.5) 26%, rgba(244,250,253,0) 50%); }
/* верх/низ — лёгкая растушёвка к фону */
.hero-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg-sky) 0%, transparent 12%, transparent 88%, var(--bg-sky) 100%); }
.hero-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 13px 17px; box-shadow: var(--shadow-lg); animation: fadeUp .6s cubic-bezier(.2,.7,.3,1) both; }
.hero-chip-price { left: 1%; bottom: 11%; }
.hero-chip-rating { right: 6%; top: 12%; padding: 11px 15px; }
@media (max-width: 1100px) { .hero-photo { width: 64%; } .hero-photo-img { background-size: 200% auto; background-position: 82% 40%; } .hero-chip-price { left: -2%; } }
@media (max-width: 820px) {
  .hero-section { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 24px; }
  .hero-photo { position: relative; width: 100%; height: 360px; order: 2; margin-top: 22px; border-radius: 24px; overflow: hidden; }
  .hero-photo-img { background-size: cover; background-position: 60% 28%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%); mask-image: linear-gradient(to bottom, transparent 0%, #000 26%); }
  .hero-photo::before { background: linear-gradient(to bottom, var(--bg-sky) 0%, transparent 30%); }
  .hero-copy { max-width: none; }
  .hero-chip-price { left: 4%; bottom: 7%; }
  .hero-chip-rating { right: 4%; top: 7%; }
}

/* ----------------------------- слайдер производства ----------------------------- */
.pslider { position: relative; overflow: hidden; background: #0E2A38; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pslider-track { position: relative; width: 100%; }
.pslide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 6s ease; pointer-events: none; }
.pslide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.pslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* заглушка слайда, пока не загружены реальные фото производства */
.pslide-ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: linear-gradient(160deg, var(--bg-sky) 0%, var(--accent-soft) 100%); color: var(--ink-muted); }
.pslide-ph span { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.pslide-ph svg { color: var(--accent-deep); opacity: .55; }
.pslide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 26px 22px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(to top, rgba(8,28,38,.82), rgba(8,28,38,.35) 55%, transparent); color: #fff; }
.pslide-cap-t { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.pslide-cap-s { font-size: 13.5px; color: rgba(255,255,255,.82); }
.pslider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background .16s, transform .16s; z-index: 3; }
.pslider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.pslider-arrow.left { left: 16px; }
.pslider-arrow.right { right: 16px; }
.pslider-counter { position: absolute; top: 16px; right: 18px; z-index: 3; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: #fff; background: rgba(8,28,38,.5); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.pslider-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.pdot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); transition: .2s; cursor: pointer; }
.pdot:hover { background: rgba(255,255,255,.75); }
.pdot.is-active { width: 26px; background: #fff; }
@media (max-width: 640px) { .pslide-cap-t { font-size: 16px; } .pslider-arrow { width: 40px; height: 40px; } .pslider-arrow.left { left: 10px; } .pslider-arrow.right { right: 10px; } }

/* ----------------------------- CTA-блок «звонок или e-mail» ----------------------------- */
.cta-split { position: relative; overflow: hidden; border-radius: 30px; padding: 48px 52px;
  background: linear-gradient(125deg, var(--accent-soft), var(--mint-soft) 92%); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 44px; align-items: center; }
.cta-cloud { position: absolute; pointer-events: none; opacity: .7; }
.cta-cloud-1 { top: -18px; right: 8%; }
.cta-cloud-2 { bottom: -26px; right: 36%; opacity: .5; }
.cta-head { position: relative; z-index: 1; }
.cta-paths { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-path { background: rgba(255,255,255,.78); backdrop-filter: blur(6px); border: 1px solid #fff; border-radius: 20px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-sm); }
.cta-path-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 2px; }
.cta-path-ico.mint { background: var(--mint-soft); color: #2E8F73; }
.cta-path-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.cta-path-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.cta-path .btn { margin-top: 6px; }
.cta-path-phone { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent-deep); text-align: center; padding: 2px; }
.cta-path-phone:hover { color: var(--accent-ink); }
.cta-mail { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cta-mail .input { padding: 11px 13px; font-size: 14px; }
.cta-mail .btn { width: 100%; }
@media (max-width: 1040px) { .cta-split { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 520px) { .cta-paths { grid-template-columns: 1fr; } .cta-split { padding: 34px 24px; } .cta-mail { flex-direction: column; } .cta-mail .btn { width: 100%; } }

/* ----------------------------- marketplaces band ----------------------------- */
.mp-band { position: relative; overflow: hidden; border-radius: 30px; padding: 44px 48px;
  background: linear-gradient(135deg, #fff, var(--bg-sky)); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.mp-cloud { position: absolute; pointer-events: none; opacity: .55; }
.mp-cloud-1 { top: -16px; right: 30%; }
.mp-cloud-2 { bottom: -30px; right: 8%; opacity: .4; }
.mp-head { position: relative; z-index: 1; }
.mp-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; cursor: pointer; transition: transform .16s ease, box-shadow .22s ease, border-color .2s; }
.mp-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6e8f1; }
.mp-logo { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: none; overflow: hidden; background: #fff; box-shadow: 0 4px 14px -7px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
.mp-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mp-logo-plain { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.mp-info { display: flex; flex-direction: column; min-width: 0; }
.mp-name { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.mp-sub { font-size: 12.5px; color: var(--ink-muted); }
.mp-go { margin-left: auto; color: var(--accent-deep); display: grid; place-items: center; opacity: .5; transition: .16s; flex: none; }
.mp-tile:hover .mp-go { opacity: 1; transform: translateX(3px); }
@media (max-width: 860px) { .mp-band { grid-template-columns: 1fr; gap: 28px; padding: 34px 28px; } }
@media (max-width: 640px) {
  .mp-band { padding: 28px 18px; border-radius: 22px; }
  .mp-grid { grid-template-columns: 1fr; }
  .mp-tile { padding: 13px 14px; }
  .mp-logo { width: 46px; height: 46px; }
}

/* toast */
.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 14px; padding: 13px 18px; box-shadow: var(--shadow); animation: toast-in .3s cubic-bezier(.2,.8,.3,1); }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }
.toast .t-title { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.toast .t-sub { font-size: 12.5px; color: var(--ink-muted); }

/* fade-in on mount */
.fade-up { animation: fadeUp .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* ============================================================
   RESPONSIVE — планшеты и мобильные
   ============================================================ */

/* ---- product/feature card grids ---- */
@media (max-width: 1024px) {
  .r-cards-4 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .r-cards-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
  .r-cards-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .r-cards-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
}
@media (max-width: 420px) {
  .r-cards-4, .r-cards-3 { grid-template-columns: 1fr !important; }
}

/* ---- two-column content splits → single column ---- */
@media (max-width: 880px) {
  .r-split { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ---- generic 2-col (form rows, plates, certs) ---- */
@media (max-width: 600px) {
  .r-2 { grid-template-columns: 1fr !important; }
  .r-tabs-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ---- cart / checkout: sidebar drops below ---- */
@media (max-width: 900px) {
  .r-shop { grid-template-columns: 1fr !important; }
  .r-shop > div[style*="sticky"] { position: static !important; }
}

/* ---- stats band: 4 → 2×2 ---- */
.r-stats > div > div:first-child { white-space: nowrap; }
@media (max-width: 720px) {
  .r-stats { grid-template-columns: 1fr 1fr !important; }
  .r-stats > div { border-left: none !important; padding: 18px 12px !important; }
  .r-stats > div > div:first-child { font-size: 26px !important; }
  .r-stats > div:nth-child(3), .r-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .r-stats { grid-template-columns: 1fr !important; }
  .r-stats > div { border-top: 1px solid var(--line) !important; }
  .r-stats > div:first-child { border-top: none !important; }
}

/* ---- cart row stacks controls full-width ---- */
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 84px 1fr !important; gap: 14px !important; }
  .cart-row > div:first-child { width: 84px !important; height: 84px !important; }
  .cart-row > div:nth-child(3) { grid-column: 1 / -1; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; }
}

/* ---- footer ---- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .phone-pill { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

/* ---- general mobile tightening ---- */
@media (max-width: 640px) {
  .section-tight { padding: 28px 0; }
  .crumbs { padding: 16px 0 4px; flex-wrap: wrap; }
  .h-lead { line-height: 1.08; }
  .prod-name { font-size: 17px; }
  .prod-body { padding: 14px 14px 16px; }
  .price .val { font-size: 20px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .pslider-arrow { width: 38px; height: 38px; }
}

/* ---- product card footer: stack button under price on mobile ---- */
@media (max-width: 720px) {
  .prod-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .prod-foot .btn { width: 100%; }
}

/* ---- catalog toolbar: wrap finishes + full-width sort on mobile ---- */
@media (max-width: 720px) {
  .cat-filter { flex-wrap: wrap; width: 100%; }
  .cat-sort { margin-left: 0 !important; width: 100%; }
  .cat-sort .select { flex: 1; width: auto !important; }
}

/* ---- topbar / header ---- */
@media (max-width: 1100px) { .topbar-city { display: none; } }
@media (max-width: 600px) {
  .topbar-row { gap: 12px; justify-content: center; }
  .topbar-benefits { display: none; }
  .topbar-actions { margin: 0 auto; }
}
@media (max-width: 900px) {
  .header-row { gap: 16px; height: 68px; }
  .logo-img { height: 46px; }
  .site-header.scrolled .header-row { height: 58px; }
}
@media (max-width: 380px) {
  .logo-img { height: 38px; }
  .header-actions { gap: 8px; }
}

/* ============================================================
   PRODUCTION POLISH LAYER — анимации, состояния, детали
   ============================================================ */

/* плавный скролл и поведение */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

/* кастомный скроллбар */
* { scrollbar-width: thin; scrollbar-color: #cfe2ee transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: #cfe2ee; border-radius: 999px; border: 3px solid var(--bg-sky); }
*::-webkit-scrollbar-thumb:hover { background: var(--accent); }
*::-webkit-scrollbar-track { background: transparent; }

/* доступные фокус-кольца только для клавиатуры */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .cart-btn:focus-visible { outline-offset: 3px; }

/* ----- scroll-reveal ----- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* стаггер-вход карточек внутри показанной секции */
.reveal.in .prod-card, .reveal.in .mp-tile { animation: cardPop .55s cubic-bezier(.2,.7,.3,1) both; }
.reveal.in .prod-card:nth-child(2), .reveal.in .mp-tile:nth-child(2) { animation-delay: .07s; }
.reveal.in .prod-card:nth-child(3), .reveal.in .mp-tile:nth-child(3) { animation-delay: .14s; }
.reveal.in .prod-card:nth-child(4), .reveal.in .mp-tile:nth-child(4) { animation-delay: .21s; }
@keyframes cardPop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .reveal.in .prod-card, .reveal.in .mp-tile { animation: none; } }

/* ----- кнопки: блик-проблеск ----- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: none; }
.btn-primary:hover::after { animation: shine .8s ease; }
@keyframes shine { from { left: -120%; } to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover::after { animation: none; } }

/* ----- шапка: уплотнение при скролле ----- */
.site-header { transition: height .25s ease, box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 8px 30px -16px rgba(40,90,120,.35); background: rgba(255,255,255,.94); }
.site-header.scrolled .header-row { height: 64px; }
.header-row { transition: height .25s ease; }
.logo-mark { transition: transform .3s cubic-bezier(.3,1.4,.5,1), width .25s ease, height .25s ease; }
.site-header.scrolled .logo-mark { width: 36px; height: 36px; }
.site-header.scrolled .logo-img { height: 46px; }

/* индикатор прогресса чтения под шапкой */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width .1s linear; box-shadow: 0 0 8px rgba(62,151,191,.5); }

/* ----- карточка товара: зум фото + плавность ----- */
.prod-media .ds-img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.prod-card:hover .prod-media .ds-img { transform: scale(1.06); }
.prod-media { overflow: hidden; }
.prod-name { transition: color .16s; }
.prod-card:hover .prod-name { color: var(--accent-ink); }

/* свотчи — мягкий «поп» */
.swatch { transition: transform .14s ease, box-shadow .16s ease; }
.swatch:hover { transform: scale(1.18); }

/* чипы и теги */
.chip { transition: background .15s, border-color .15s, color .15s; }

/* ----- кнопка-меню (бургер → крестик) + мобильное меню ----- */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--accent-deep);
  transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
@media (max-width: 980px) { .burger { display: flex; } }

.mnav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(20,50,65,.46); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.mnav-overlay.is-open { opacity: 1; visibility: visible; }
/* плавающая скруглённая панель-«карточка» — въезжает справа поверх блюра */
.mnav { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 95; width: min(88vw, 360px);
  background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: -26px 30px 80px -28px rgba(30,80,110,.55), 0 0 0 1px rgba(255,255,255,.6);
  transform: translateX(calc(100% + 18px)); opacity: .6;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .3s ease; }
.mnav.is-open { transform: translateX(0); opacity: 1; }
/* шапка панели — единый фон с логотипом (как у верхней полосы сайта) */
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: linear-gradient(90deg, var(--accent-soft), var(--mint-soft) 70%, var(--peach-soft));
  border-bottom: 1px solid rgba(255,255,255,.7); }
.mnav-head .logo-img { height: 42px; }
.mnav-close { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: var(--bg-sky); cursor: pointer; }
.mnav-close:hover { background: var(--accent-soft); color: var(--accent-deep); }
.mnav-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.mnav-cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-bottom: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: #fff; background: var(--accent-deep);
  padding: 14px; border-radius: 14px; cursor: pointer; }
.mnav-cta:hover { background: var(--accent-ink); }
.mnav-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin: 14px 6px 4px; }
.mnav-link { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); cursor: pointer; transition: background .15s; }
.mnav-link:hover, .mnav-link:active { background: var(--accent-soft); color: var(--accent-ink); }
.mnav-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-sky); display: grid; place-items: center; color: var(--accent-deep); flex: none; }
.mnav-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-muted); background: var(--bg-sky); padding: 2px 9px; border-radius: 999px; }
.mnav-foot { padding: 16px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mnav-mail { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mnav-mail:hover { color: var(--accent-deep); }

/* ----- кнопка «наверх» (сидит НАД кнопкой чата) ----- */
.to-top { position: fixed; right: 22px; bottom: 92px; z-index: 70; width: 52px; height: 52px; border-radius: 16px;
  background: #fff; color: var(--accent-deep); display: grid; place-items: center; box-shadow: var(--shadow);
  border: 1px solid var(--line); cursor: pointer; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s, color .15s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #0E465C; transform: translateY(-3px); }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 80px; width: 48px; height: 48px; } }

/* ----- чат с менеджером ----- */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 72; width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent-deep); color: #fff; border: none; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .2s ease, filter .15s; }
.chat-fab:hover { transform: translateY(-3px); filter: brightness(1.08); }
.chat-win { position: fixed; right: 22px; bottom: 92px; z-index: 75; width: 344px; max-width: calc(100vw - 32px);
  height: min(480px, calc(100dvh - 130px)); display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  animation: chat-pop .22s ease; }
@keyframes chat-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: var(--bg-sky); }
.chat-ava { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.chat-title { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; color: var(--ink); }
.chat-sub { font-size: 12px; color: var(--ink-muted); }
.chat-sub::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: #62BE87; margin-right: 5px; }
.chat-close { margin-left: auto; width: 32px; height: 32px; border-radius: 10px; border: none; background: transparent; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.chat-close:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--bg-sky); color: var(--ink-2);
  font-size: 13.5px; line-height: 1.45; align-self: flex-start; white-space: pre-wrap; word-break: break-word; }
.chat-msg.is-user { align-self: flex-end; background: var(--accent-soft); color: var(--ink); border-radius: 14px 14px 4px 14px; }
.chat-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.chat-form .chat-field { width: 100%; box-sizing: border-box; resize: none; font-family: inherit; }
.chat-form-submit { border: none; border-radius: 12px; background: var(--accent-deep); color: #fff; font: inherit;
  font-weight: 700; padding: 11px 14px; cursor: pointer; }
.chat-form-submit:disabled { opacity: .45; cursor: default; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-field { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; outline: none; }
.chat-field:focus { border-color: var(--accent); }
.chat-send { width: 42px; height: 42px; flex: none; border: none; border-radius: 12px; background: var(--accent-deep); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:disabled { opacity: .45; cursor: default; }
@media (max-width: 640px) {
  .chat-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .chat-win { right: 16px; bottom: 78px; }
}

/* ----- команда: слайдер по три карточки ----- */
.team-slider-wrap { position: relative; max-width: 1160px; margin: 34px auto 0; }
.team-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.team-track::-webkit-scrollbar { display: none; }
.team-card { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; box-sizing: border-box; min-width: 0;
  padding: 20px; display: flex; gap: 16px; align-items: center; }
.team-photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--accent-soft); box-shadow: inset 0 0 0 3px #fff, 0 6px 18px -8px rgba(60,120,155,.4); }
.team-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.team-name { font-family: var(--font-display); font-weight: 800; font-size: 18.5px; line-height: 1.2; }
.team-role { font-size: 13.5px; color: var(--accent-ink); font-weight: 600; }
.team-tel { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700;
  font-size: 15px; margin-top: 4px; white-space: nowrap; }
.team-mail { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); font-weight: 600;
  min-width: 0; overflow-wrap: anywhere; }
.team-mail svg { flex: none; }
.team-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; cursor: pointer; color: var(--accent-deep); }
.team-arrow.left { left: -10px; }
.team-arrow.right { right: -10px; }
.team-arrow:hover { background: var(--accent-soft); }
@media (max-width: 1100px) {
  .team-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 720px) {
  .team-card { flex-basis: 100%; }
  .team-photo { width: 78px; height: 78px; }
  .team-slider-wrap { margin-top: 26px; }
  .team-arrow { width: 38px; height: 38px; }
  .team-arrow.left { left: -6px; }
  .team-arrow.right { right: -6px; }
}
@media (max-width: 400px) {
  .team-card { flex-direction: column; text-align: center; }
  .team-info { align-items: center; }
}

/* счётчик — моноширинные цифры чтобы не «прыгало» */
.counter { font-variant-numeric: tabular-nums; }

/* ----- картинки (.ds-img — замена image-slot) ----- */
.ds-img { display: block; }
/* фото целиком + размытая копия как подложка: контейнер заполнен, ничего не обрезано */
.ds-img-blur { position: relative; overflow: hidden; }
.ds-img-blur-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(16px) saturate(1.08) brightness(1.04); transform: scale(1.15); }
.ds-img-blur-fg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.ds-img.is-circle { border-radius: 50%; }
/* мягкий плейсхолдер, когда фото ещё нет (например, слоты под фото команды) */
.ds-img-ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }

/* ============================================================
   КАТАЛОГ — боковая панель фильтров + сетка (стиль маркетплейса)
   ============================================================ */
.catalog-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }

/* --- боковая панель --- */
.filter-sidebar { position: sticky; top: 92px; }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow-sm); }

.filter-search { display: flex; align-items: center; gap: 9px; padding: 12px 14px; margin: 12px; border-radius: 13px;
  background: var(--bg-sky); border: 1.5px solid var(--line-2); color: var(--ink-muted); transition: border-color .15s, box-shadow .15s; }
.filter-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-family: var(--font-body); font-size: 14.5px; color: var(--ink); }
.filter-search-x { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-muted); flex: none; }
.filter-search-x:hover { background: #fff; color: var(--accent-deep); }

.filter-consult { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center;
  margin: 0 12px 12px; padding: 13px 14px; border-radius: 15px; background: var(--mint-soft); border: 1px solid #fff; }
.filter-consult .fc-ava { width: 38px; height: 38px; border-radius: 999px; background: #fff; display: grid; place-items: center; color: #2E8F73; }
.filter-consult .fc-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.filter-consult .fc-sub { font-size: 11.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.filter-consult .fc-btn { grid-column: 1 / -1; width: 100%; background: #fff; }
.filter-consult .fc-btn:hover { background: var(--accent-soft); }

.filter-group { border-top: 1px solid var(--line); }
.filter-group-head { display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px 16px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.filter-group-head:hover { color: var(--accent-ink); }
.fg-caret { display: inline-flex; color: var(--ink-muted); transition: transform .2s; transform: rotate(90deg); }
.fg-caret.open { transform: rotate(-90deg); }
.filter-group-body { flex-direction: column; gap: 2px; padding: 0 10px 12px; }

.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; transition: background .14s; }
.check-row:hover { background: var(--bg-sky); }
.check-row input { width: 18px; height: 18px; flex: none; accent-color: var(--accent-deep); cursor: pointer; }
.check-swatch { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08); }
.check-label { flex: 1; font-size: 14px; color: var(--ink-2); }
.check-row.is-on .check-label { color: var(--ink); font-weight: 600; }
.check-count { font-size: 12px; font-weight: 700; color: var(--ink-muted); background: var(--bg-sky); padding: 2px 8px; border-radius: 999px; flex: none; }

.filter-foot { padding: 14px 14px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.filter-reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.filter-reset:hover { color: #D96A4A; }

/* --- правая колонка --- */
.catalog-main { min-width: 0; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.quick-chip { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); padding: 8px 15px; border-radius: 999px; transition: .15s; }
.quick-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.quick-chip.is-on { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; box-shadow: 0 8px 18px -10px rgba(62,151,191,.75); }

.catalog-toolbar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.toolbar-sort { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toolbar-sort .select { width: auto; }
.toolbar-sort-lbl { font-size: 13.5px; font-weight: 700; font-family: var(--font-display); color: var(--ink-2); }
.toolbar-count { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.filter-toggle { display: none; background: var(--accent-soft); color: var(--accent-ink); }

.applied-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.applied-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--accent-ink); background: var(--accent-soft); padding: 7px 12px; border-radius: 999px; transition: .15s; }
.applied-chip:hover { background: #d3edf7; }
.applied-chip svg { opacity: .7; }
.applied-reset { font-size: 13px; font-weight: 600; color: var(--ink-muted); padding: 7px 6px; }
.applied-reset:hover { color: #D96A4A; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 1180px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .filter-sidebar { position: static; display: none; }
  .filter-sidebar.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
  .toolbar-count { display: none; }
}
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
/* узкие экраны: сортировка занимает всю ширину панели, селект ужимается, ничего не обрезается */
@media (max-width: 640px) {
  .catalog-toolbar { gap: 10px 12px; padding: 12px 14px; }
  .toolbar-sort { flex: 1 1 100%; }
  .toolbar-sort .select { flex: 1; width: 100%; min-width: 0; }
}
