/* СтройМаркет — стили витрины (маркетплейс) и панелей */
:root {
  --accent: #1d5cff; --accent-ink: #fff;
  --sale: #f0265f; --ok: #0f9d58; --err: #d4213d; --warn: #b45309;
  --bg: #f2f3f7; --surface: #fff; --text: #111827; --muted: #6b7280; --line: #e6e8ef; --soft: #f4f5f8;
  --dark: #111827;
  --r: 16px; --r-sm: 12px; --shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 18px rgba(17,24,39,.06);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .55em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.3vw, 26px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; word-break: break-all; }
.i { flex: none; vertical-align: middle; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.plus { color: var(--ok); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Кнопки и формы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent; font: 600 15px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, filter .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fff; border-color: #fbc9d2; color: var(--err); }
.btn-danger:hover { background: #fff1f3; color: var(--err); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--soft); color: var(--err); }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
input, select, textarea { font: inherit; color: inherit; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=color] { width: 56px; height: 44px; padding: 3px; }
input[type=file] { padding: 9px; background: var(--soft); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.req { color: var(--err); font-weight: 700; }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; margin: 6px 0; font-size: 14px; }
.check input { margin-top: 3px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.flash { padding: 13px 16px; border-radius: var(--r-sm); margin: 0 0 16px; font-weight: 600; border: 1px solid; }
.flash a { text-decoration: underline; }
.flash-ok { background: #ecfdf3; border-color: #b7ebcd; color: #067647; }
.flash-err { background: #fff1f3; border-color: #fbc9d2; color: var(--err); }
.flash-warn { background: #fffaeb; border-color: #fde68a; color: var(--warn); }
.box { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.narrow { max-width: 460px; margin: 20px auto; }
.narrow-box { max-width: 560px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 180px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }

/* ---------- Шапка ---------- */
.topbar { background: var(--surface); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; gap: 20px; align-items: center; min-height: 34px; }
.topbar nav { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topbar nav a, .tb-phone { white-space: nowrap; }
.tb-phone { font-weight: 700; color: var(--text); }
.tb-city { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header { background: var(--surface); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: -.02em; flex: none; }
.logo img { height: 44px; width: auto; max-width: 130px; object-fit: contain; }
.logo-text small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.catalog-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: #fff; font: 700 15px var(--font); cursor: pointer; flex: none; }
.catalog-btn:hover { filter: brightness(1.08); }
.search { flex: 1; display: flex; min-width: 0; border: 2px solid var(--accent); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.search input { border: 0; border-radius: 0; height: 42px; padding: 0 14px; font-size: 15px; }
.search input:focus { box-shadow: none; }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 18px; cursor: pointer; display: grid; place-items: center; }
.head-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.head-act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 10px; color: var(--text); }
.head-act:hover { background: var(--soft); }
.head-partner { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); font-weight: 700; margin-right: 6px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.head-partner:hover { background: var(--accent); color: #fff; }
.cart-count { position: absolute; top: -2px; right: 6px; background: var(--sale); color: #fff; font-size: 11px; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.catnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #374151; }
.catnav a:hover { background: var(--soft); color: var(--accent); }
.catnav .hot { color: var(--sale); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.megamenu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 24px 48px rgba(17,24,39,.16); border-top: 1px solid var(--line); padding: 18px 0 22px; max-height: 75vh; overflow: auto; }
.megamenu.open { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.mega-grid a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; font-weight: 600; }
.mega-grid a:hover { background: var(--soft); }
.mega-grid img { border-radius: 10px; width: 48px; height: 48px; object-fit: cover; }
.mega-grid small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.main { padding-top: 18px; padding-bottom: 56px; min-height: 60vh; }

/* ---------- Карусель баннеров ---------- */
.hero-carousel { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 18px; background: #e8ebf2; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 14 / 5; min-height: 300px; display: flex; align-items: center; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.tone-warm::before { background: linear-gradient(90deg, rgba(255,247,240,.96) 0%, rgba(255,247,240,.82) 34%, rgba(255,247,240,0) 58%); }
.tone-cool::before { background: linear-gradient(90deg, rgba(240,245,255,.96) 0%, rgba(240,245,255,.82) 34%, rgba(240,245,255,0) 58%); }
.tone-green::before { background: linear-gradient(90deg, rgba(240,250,246,.96) 0%, rgba(240,250,246,.82) 34%, rgba(240,250,246,0) 58%); }
.slide-text { position: relative; z-index: 2; max-width: 540px; padding: 28px clamp(24px, 5vw, 64px); }
.slide-text h1, .slide-text h2 { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; }
.slide-text p { color: #374151; font-size: 16px; max-width: 460px; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: var(--shadow); font-size: 28px; line-height: 1; cursor: pointer; color: var(--text); }
.car-btn:hover { background: #fff; color: var(--accent); }
.car-btn.prev { left: 14px; } .car-btn.next { right: 14px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(17,24,39,.25); cursor: pointer; padding: 0; transition: width .2s; }
.dots button.on { width: 24px; background: var(--accent); }

/* ---------- Категории-плитки ---------- */
.cat-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; margin-bottom: 8px; }
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; }
.ct-img { width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .ct-img { transform: translateY(-3px); }
.cat-tile b { font-weight: 600; line-height: 1.25; }

/* ---------- Преимущества ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.perks > div { background: var(--surface); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.perks b { display: block; color: var(--text); font-size: 14px; }
.perks .i { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); border-radius: 12px; padding: 8px; width: 42px; height: 42px; }

/* ---------- Секции, ленты товаров ---------- */
.section { margin: 30px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 34%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 16px rgba(17,24,39,.18); font-size: 26px; line-height: 1; cursor: pointer; }
.rail-btn:hover { color: var(--accent); }
.rail-btn.prev { left: -14px; } .rail-btn.next { right: -14px; }

/* ---------- Карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 30px rgba(17,24,39,.12); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--soft); margin: 8px 8px 0; border-radius: 12px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff; }
.product-img .tag { position: absolute; top: 12px; left: 12px; }
.tag-sale { background: var(--sale); }
.tag-hit { background: #ff9a00; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.price b.sale { color: var(--sale); }
.price s { color: var(--muted); font-size: 13px; }
.price span { color: var(--muted); font-size: 14px; }
.price.big b { font-size: 34px; }
.unit { font-size: 12px; color: var(--muted); margin-top: -2px; }
.card-title { font-size: 14px; line-height: 1.35; margin: 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stock { font-size: 12px; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--warn); }
.buy { display: flex; gap: 8px; margin-top: auto; }
.btn-cart { flex: 1; height: 40px; border-radius: 10px; font-size: 14px; }
.btn-cart.added { background: var(--ok); }
.qty { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; flex: none; }
.qty button { width: 36px; border: 0; background: var(--soft); font-size: 18px; cursor: pointer; color: var(--text); }
.qty button:hover { background: var(--line); }
.qty input { width: 56px; border: 0; border-radius: 0; text-align: center; padding: 6px 2px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-lg button { width: 46px; }
.qty-lg input { width: 76px; font-size: 17px; }

/* ---------- Промо, статьи, SEO ---------- */
.promo { position: relative; display: flex; align-items: center; min-height: 280px; border-radius: 24px; overflow: hidden; margin: 30px 0; background: #eaf5ef; }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(240,250,246,.97) 0%, rgba(240,250,246,.85) 40%, rgba(240,250,246,0) 65%); }
.promo > div { position: relative; z-index: 2; max-width: 560px; padding: 32px clamp(24px, 5vw, 56px); }
.promo p { color: #374151; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.news-card { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 10px 30px rgba(17,24,39,.12); color: inherit; }
.news-card:hover h3 { color: var(--accent); }
.news-img { position: relative; aspect-ratio: 16 / 9; background: var(--soft); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img .tagchip { position: absolute; top: 10px; left: 10px; }
.news-body { padding: 14px 16px 18px; }
.news-body time { font-size: 12px; color: var(--muted); }
.news-body h3 { font-size: 16px; margin: 4px 0 6px; }
.news-body p { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tagchip { display: inline-block; background: rgba(255,255,255,.95); color: var(--accent); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.article-meta .tagchip { background: color-mix(in srgb, var(--accent) 10%, #fff); box-shadow: none; }
.seo-text { background: var(--surface); border-radius: var(--r); padding: 26px 28px; margin: 30px 0; color: #374151; font-size: 15px; }
.seo-text h2 { color: var(--text); font-size: 20px; }
.seo-text p { max-width: 980px; }
.seo-text a { color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ---------- Статья ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.article { background: var(--surface); border-radius: var(--r); padding: clamp(20px, 4vw, 40px); }
.article-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.article h1 { font-size: clamp(24px, 3vw, 34px); }
.article-cover { width: 100%; aspect-ratio: 14 / 5; object-fit: cover; border-radius: 16px; margin: 6px 0 22px; }
.prose { font-size: 16px; line-height: 1.7; max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--soft); font-weight: 700; }
.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: color-mix(in srgb, var(--accent) 7%, #fff); border-radius: 16px; padding: 18px 20px; margin-top: 24px; }
.article-cta b { display: block; }
.article-cta span { color: var(--muted); font-size: 14px; }
.article-side { position: sticky; top: 140px; background: var(--surface); border-radius: var(--r); padding: 18px; }
.mini-list { display: grid; gap: 12px; }
.mini { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; }
.mini img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.mini b { display: block; margin-top: 4px; font-size: 15px; }
.about-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; background: var(--surface); border-radius: 24px; padding: clamp(20px, 4vw, 40px); margin-bottom: 16px; }
.about-hero img { border-radius: 16px; aspect-ratio: 14 / 9; object-fit: cover; object-position: right; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-row > div { background: var(--surface); border-radius: var(--r); padding: 18px; }
.stat-row b { display: block; font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-row span { color: var(--muted); font-size: 14px; }
.big-link { font-size: 20px; font-weight: 700; color: var(--accent); }

/* ---------- Каталог ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs em { font-style: normal; color: var(--text); }
.page-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lead { color: var(--muted); max-width: 820px; font-size: 16px; }
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--r); padding: 18px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.f-block { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.f-block h4 { font-size: 15px; margin-bottom: 8px; }
.f-block > a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; font-size: 14px; }
.f-block > a.on { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); font-weight: 700; }
.f-block small { color: var(--muted); }
.f-scroll { max-height: 220px; overflow: auto; }
.range { display: flex; gap: 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sort { display: flex; gap: 4px; flex-wrap: wrap; }
.sort a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); color: #374151; }
.sort a.on { background: var(--dark); color: #fff; }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border-radius: var(--r); }
.empty.big { padding: 80px 16px; margin-top: 40px; }
.empty .code { font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0 4px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); font-weight: 600; padding: 0 8px; }
.pager a.on { background: var(--accent); color: #fff; }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; }
.product-img { position: relative; background: var(--surface); border-radius: 24px; overflow: hidden; align-self: start; padding: 12px; }
.product-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.meta b { color: var(--text); }
.buybox { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.buybox .buy { margin: 8px 0; }
.buybox .btn { flex: 1; }
.assure { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure .i { color: var(--accent); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.specs th, .specs td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }
.text { background: var(--surface); border-radius: var(--r); padding: 22px; max-width: 900px; }

/* ---------- Корзина и оформление ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.cart-list { background: var(--surface); border-radius: var(--r); padding: 8px 20px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto 120px 36px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { border-radius: 12px; }
.cart-name a { font-weight: 600; }
.cart-name small { display: block; color: var(--muted); }
.cart-sum { text-align: right; font-size: 17px; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.summary { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 140px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.sum-row b { text-align: right; }
.sum-row.total { font-size: 22px; border: 0; padding-top: 12px; }
.sum-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sum-item small { color: var(--muted); white-space: nowrap; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.radio-card input { margin-top: 4px; }
.radio-card small { display: block; color: var(--muted); font-size: 12px; }
.checkout:not(:has(input[value=company]:checked)) .company-only { display: none; }
.success { display: flex; gap: 18px; align-items: flex-start; background: #ecfdf3; border: 1px solid #b7ebcd; border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.success > .i { color: var(--ok); background: #d1fadf; border-radius: 50%; padding: 8px; width: 52px; height: 52px; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; padding-top: 34px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--accent); color: #fff; }
.steps li.done::after { background: var(--accent); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-grid .i { color: var(--accent); }

/* ---------- Партнёрский лендинг ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; background: var(--dark); color: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 48px); overflow: hidden; position: relative; margin-bottom: 28px; }
.hero h1 { color: #fff; }
.hero p { color: #cbd5e1; font-size: 17px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #4b5563; }
.hero-partner { grid-template-columns: 1.2fr 1fr; align-items: center; background: linear-gradient(120deg, #0f1b3d, #1d3b8f); }
.calc { color: var(--text); position: relative; z-index: 1; margin: 0; }
.calc label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-top: 12px; }
.calc input[type=range] { padding: 0; border: 0; accent-color: var(--accent); }
.calc-res { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.calc-res b { display: block; font-size: 32px; color: var(--accent); }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how > div { background: var(--surface); border-radius: var(--r); padding: 20px; }
.how b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: #fff; margin-bottom: 12px; }
.how p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Подвал и нижнее меню ---------- */
.footer { background: var(--surface); color: var(--muted); padding: 40px 0 24px; font-size: 14px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: var(--text); font-size: 15px; }
.footer a, .footer span { display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.logo-foot { display: flex; color: var(--text); margin-bottom: 12px; font-size: 18px; }
.logo-foot .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
.f-phone { font-size: 20px; font-weight: 800; color: var(--text); }
.copy { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; font-size: 12px; }
.tabbar { display: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .25s; z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast a { color: #9bb7ff; margin-left: 10px; }
/* ---------- Авторизация ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #0f1b3d 0 38%, var(--bg) 38%); }
.auth-box { background: #fff; width: 100%; max-width: 560px; border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.auth-box h1 { font-size: 24px; margin-top: 20px; }
.auth-foot { text-align: center; margin: 16px 0 0; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }

/* ---------- Панели управления ---------- */
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--dark); color: #c9d1db; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: auto; }
.side-logo { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 16px; color: #fff; padding: 0 8px 18px; line-height: 1.15; }
.auth .side-logo { color: var(--text); padding: 0; }
.side-logo small { display: block; font-weight: 500; font-size: 12px; color: #8b95a3; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.side nav a:hover { background: #2a323c; color: #fff; }
.side nav a.on { background: var(--accent); color: #fff; }
.count { margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid #2d353f; font-size: 13px; display: grid; gap: 10px; }
.who { display: flex; gap: 6px; align-items: center; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.panel-main { padding: 24px clamp(16px, 3vw, 32px) 48px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h1 { font-size: 26px; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.tile small { color: var(--muted); font-weight: 600; font-size: 13px; }
.tile b { font-size: 24px; font-weight: 800; }
.tile span { color: var(--muted); font-size: 12px; }
.tile a { color: var(--accent); font-weight: 600; font-size: 13px; }
.tile.accent { background: var(--dark); color: #fff; }
.tile.accent small, .tile.accent span { color: #aeb7c2; }
a.tile:hover { color: inherit; outline: 2px solid var(--accent); }
.cols-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.cols-main > .box, .cols-main > div > .box { margin-bottom: 18px; }
.storelink { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.storelink small { display: block; color: var(--muted); font-weight: 600; }
.storelink a { font-weight: 700; font-size: 17px; color: var(--accent); word-break: break-all; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.table a:hover { color: var(--accent); }
.table tr.dim td { opacity: .5; }
.table tr.hl td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.table .num-input { width: 100px; }
.table .ro { min-width: 220px; font-size: 13px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--muted); }
.b-new, .b-requested, .b-pending { background: #fff7ed; color: #c2410c; }
.b-confirmed { background: #eff6ff; color: #1d4ed8; }
.b-shipping { background: #f5f3ff; color: #6d28d9; }
.b-completed, .b-paid, .b-active { background: #f0fdf4; color: var(--ok); }
.b-cancelled, .b-rejected, .b-blocked { background: #fef2f2; color: var(--err); }
.filters-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.markup-main { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.markup-main input[type=range] { flex: 1; padding: 0; border: 0; }
.num-input { width: 110px; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 14px; margin: 0 0 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.logo-prev { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-prev img { height: 56px; border-radius: 8px; background: var(--soft); }
.color-row { display: flex; gap: 12px; align-items: center; }
.copyrow { margin-bottom: 12px; }
.copyrow label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.copyrow > div { display: flex; gap: 8px; }
.copyrow input { font-size: 13px; }
textarea.code { font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--soft); }
.steps-text { font-size: 14px; padding-left: 18px; color: var(--muted); }
.steps-text li { margin-bottom: 6px; }
.preview { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-bottom: 10px; background: var(--soft); }
.danger-zone { margin-top: 12px; }
.icon-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick img { border-radius: 8px; border: 2px solid transparent; }
.icon-pick input:checked + img { border-color: var(--accent); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pre { white-space: pre-wrap; font-size: 13px; max-width: 260px; }
.payout-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.payout-actions input { width: 140px; padding: 6px 8px; font-size: 13px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.checklist li .i { color: var(--muted); }
.checklist li.ok { color: var(--muted); text-decoration: line-through; }
.checklist li.ok .i { color: var(--ok); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 18px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { display: block; width: 100%; max-width: 28px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar em { position: absolute; top: 0; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ok); }
.bar span { font-size: 11px; color: var(--muted); margin-top: 4px; }


/* ---------- Адаптив ---------- */
.show-sm { display: none; }
@media (max-width: 1200px) {
  .rail { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
}
@media (max-width: 1024px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .show-sm { display: inline-flex; }
  .perks, .how, .stat-row { grid-template-columns: 1fr 1fr; }
  .cart-layout, .cols-main, .article-layout, .about-hero { grid-template-columns: 1fr; }
  .summary, .article-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .head-act span, .head-partner span { display: none; }
  .head-partner { padding: 0 12px; margin: 0; }
  .panel { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .side-logo { padding: 0; }
  .side nav { display: flex; overflow-x: auto; width: 100%; order: 3; gap: 4px; padding-bottom: 4px; }
  .side nav a { white-space: nowrap; padding: 8px 10px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 14px; }
}
@media (max-width: 760px) {
  body.shop { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .hide-sm { display: none !important; }
  .topbar { display: none; }
  .header-row { flex-wrap: wrap; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 8px; }
  .logo { font-size: 17px; flex: 1; }
  .logo-text small { display: none; }
  .logo-mark { width: 36px; height: 36px; }
  .catalog-btn { display: none; }
  .head-actions .head-act { display: none; }
  .head-partner { height: 36px; padding: 0 12px; font-size: 13px; }
  .head-partner span { display: inline; }
  .search { order: 5; flex-basis: 100%; }
  .catnav { padding-bottom: 8px; }
  .megamenu { position: fixed; top: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); max-height: none; z-index: 60; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-grid a { flex-direction: column; text-align: center; font-size: 13px; }
  .mega-grid img { width: 72px; height: 72px; }
  .slide { aspect-ratio: auto; min-height: 0; flex-direction: column; align-items: stretch; }
  .slide-img { position: relative; height: 200px; object-position: 72% center; }
  .slide::before { display: none; }
  .slide-text { padding: 16px 18px 36px; max-width: none; }
  .tone-warm .slide-text { background: #fff7f0; } .tone-cool .slide-text { background: #f0f5ff; } .tone-green .slide-text { background: #f0faf6; }
  .slide-text h1, .slide-text h2 { font-size: 23px; }
  .slide-text p { font-size: 14px; }
  .slide-text .btn-lg { height: 46px; width: 100%; }
  .car-btn { display: none; }
  .hero-carousel, .promo { border-radius: 18px; }
  .promo { flex-direction: column; align-items: stretch; min-height: 0; }
  .promo > img { position: relative; height: 190px; object-position: 75% center; }
  .promo::before { display: none; }
  .promo > div { padding: 18px 18px 22px; }
  .cat-tiles { grid-auto-columns: 96px; }
  .ct-img { border-radius: 16px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perks > div { padding: 10px; font-size: 12px; gap: 8px; }
  .perks b { font-size: 13px; }
  .perks .i { width: 36px; height: 36px; padding: 6px; }
  .rail { grid-auto-columns: 46%; }
  .rail-btn { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-img { margin: 6px 6px 0; }
  .card-body { padding: 8px 10px 10px; }
  .price b { font-size: 17px; }
  .btn-cart span { display: none; }
  .product { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 60px 1fr auto; }
  .cart-row img { width: 60px; height: 60px; }
  .cart-row .qty { grid-column: 2; }
  .cart-sum { grid-column: 3; grid-row: 2; }
  .cart-row .icon-btn { grid-column: 3; grid-row: 1; justify-self: end; }
  .cols2, .cols3, .seg, .info-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .hero, .hero-partner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .steps li { font-size: 11px; }
  .box { padding: 16px; }
  .seo-text { padding: 18px; font-size: 14px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 11px var(--font); color: #4b5563; background: none; border: 0; padding: 2px 0; cursor: pointer; }
  .tabbar .cart-count { top: -4px; right: calc(50% - 22px); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Реальные фото: чуть ярче и сочнее */
.card-img img, .ct-img img, .slide-img, .promo > img, .product-img img, .news-card img, .mini img { filter: saturate(1.1) brightness(1.04) contrast(1.02); }

/* ---------- Монтаж и калькулятор ---------- */
.buybox .buy { flex-wrap: wrap; }
.mount-opt { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px dashed #c7d2fe; background: #f5f7ff; border-radius: 12px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.mount-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.mount-opt small { display: block; color: var(--muted); margin-top: 2px; }
.mount-opt:has(input:checked) { border-style: solid; border-color: var(--accent); background: #eef2ff; }
.mount-opt .i, .calc-link .i, .cart-work .i, .sum-work .i { color: var(--accent); vertical-align: -3px; }
.calc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; color: var(--accent); }
.cart-work { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f6f7fb; font-size: 14px; cursor: pointer; }
.cart-work input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cart-work span { flex: 1; }
.cart-work small { display: block; color: var(--muted); }
.cart-work > b { white-space: nowrap; color: var(--muted); }
.cart-work.on { background: #eef2ff; }
.cart-work.on > b { color: var(--text, #111827); }
.sum-work span { color: #374151; }

.svc-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: linear-gradient(120deg, #eef3ff, #f7f9ff); border-radius: 24px; padding: clamp(22px, 4vw, 44px); margin-bottom: 10px; }
.svc-hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin: 6px 0 12px; }
.svc-hero p { color: #374151; font-size: 17px; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-steps li { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 15px; }
.svc-steps b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.svc-card { background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.svc-card h3 { margin: 4px 0 0; font-size: 17px; }
.svc-card p { margin: 0; color: #4b5563; font-size: 14px; flex: 1; }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; color: var(--accent); display: grid; place-items: center; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.svc-foot .price b { font-size: 20px; }
.svc-foot .price span { color: var(--muted); font-size: 14px; }

.mc { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.mc-rows { display: grid; gap: 12px; margin-bottom: 12px; }
.mc-row { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 64px 1fr 36px; gap: 14px; }
.mc-row > img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.mc-row select, .mc-row input[type=number] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mc-body { display: grid; gap: 10px; min-width: 0; }
.mc-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mc-mode { display: inline-flex; background: #f1f3f7; border-radius: 10px; padding: 3px; }
.mc-mode button { border: 0; background: none; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: #4b5563; }
.mc-mode button.on { background: #fff; color: #111827; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.mc-amt { display: flex; align-items: center; gap: 8px; }
.mc-amt input { max-width: 140px; }
.mc-amt span { color: var(--muted); white-space: nowrap; }
.mc-res { display: grid; gap: 4px; font-size: 14px; }
.mc-res div { display: flex; justify-content: space-between; gap: 10px; }
.mc-res .w { color: #4b5563; }
.mc-res b { white-space: nowrap; }
.mc-mount { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.mc-mount input { width: 18px; height: 18px; accent-color: var(--accent); }
.mc-add { width: 100%; border-style: dashed; }
.mc-sum { position: sticky; top: 90px; }
.mc-note { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .mc, .svc-hero { grid-template-columns: 1fr; }
  .mc-sum { position: static; }
  .mc-row { grid-template-columns: 48px 1fr 32px; padding: 12px; gap: 10px; }
  .mc-row > img { width: 48px; height: 48px; }
  .cart-work { grid-column: 1 / -1; }
}
@media print {
  .topbar, .header, .footer, .tabbar, .mc-add, .mc-sum form, .mc-sum .btn, .crumbs, .mc-row .icon-btn { display: none !important; }
  .mc { grid-template-columns: 1fr; }
  .mc-row { box-shadow: none; border: 1px solid #ddd; }
}
.catnav .svc { color: var(--accent); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.svc-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: linear-gradient(120deg, #0f1b3d, #1d3b8f); color: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 44px); margin: 30px 0; }
.svc-promo h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 6px 0 10px; }
.svc-promo p { color: #cbd5e1; }
.svc-promo .eyebrow { color: #93c5fd; }
.svc-promo .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.svc-mini { display: grid; gap: 8px; }
.svc-mini a { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; color: #fff; font-size: 15px; }
.svc-mini a:hover { background: rgba(255,255,255,.16); color: #fff; }
.svc-mini span { flex: 1; }
.svc-mini b { white-space: nowrap; color: #bfdbfe; font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .svc-promo { grid-template-columns: 1fr; } }
.mc-row select { min-width: 0; max-width: 100%; text-overflow: ellipsis; } .mc-body > * { min-width: 0; } .mc-row .icon-btn { align-self: start; }

/* ---------- Телефон на виду ---------- */
.head-phone { display: flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; }
.head-phone .i { color: var(--accent); flex: none; }
.head-phone span { display: flex; flex-direction: column; line-height: 1.2; }
.head-phone b { font-size: 17px; font-weight: 700; }
.head-phone small { font-size: 12px; color: var(--muted); }
.head-phone:hover b { color: var(--accent); }
.btn-call { background: #fff; color: var(--text); border: 1.5px solid rgba(17,24,39,.15); display: inline-flex; align-items: center; gap: 8px; }
.btn-call .i { color: var(--accent); }
.slide-text .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.call-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--surface); border-radius: 20px; padding: 16px 22px; margin-bottom: 18px; box-shadow: var(--shadow); border: 2px solid #dbe5ff; }
.cs-phone { display: flex; align-items: center; gap: 14px; }
.cs-phone > .i { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; box-sizing: border-box; }
.cs-phone small { display: block; color: var(--muted); font-size: 13px; }
.cs-phone a { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--text); letter-spacing: .01em; line-height: 1.15; }
.cs-phone a:hover { color: var(--accent); }
.cs-phone span { font-size: 13px; color: var(--muted); }
.cs-form { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-form input { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; width: 190px; }
@media (max-width: 1180px) { .head-phone small { display: none; } .head-phone b { font-size: 15px; } }
@media (max-width: 1000px) { .head-phone span { display: none; } .head-phone { width: 42px; height: 42px; justify-content: center; border-radius: 12px; background: #eef2ff; } }
@media (max-width: 700px) {
  .call-strip { padding: 14px; }
  .cs-form, .cs-form input, .cs-form .btn { width: 100%; }
  .slide-text .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
.mc-pick { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px; }
@media (max-width: 700px) { .mc-pick { grid-template-columns: 1fr; } }

/* ---------- Аватарки ---------- */
.ava { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.ava-i { display: inline-grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.ava-wrap { position: relative; display: inline-flex; flex: none; }
.dot-on { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.ava-wrap .dot-on { position: absolute; right: -1px; bottom: -1px; }
.who { text-decoration: none; }
.who span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who small { color: #94a3b8; font-size: 11px; }
.ava-row { display: flex; gap: 16px; align-items: center; }
.team-list { display: grid; gap: 4px; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tm-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.tm-main small, .tm-seen { color: var(--muted); font-size: 13px; }
.tm-seen { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; }
.team-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.btn-sm { padding: 6px 10px; font-size: 13px; }

/* ---------- Чат команды ---------- */
.chat { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 170px); min-height: 460px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.chat-side { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; background: #fafbfc; }
.chat-peer { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.chat-peer:hover { background: #f1f3f7; }
.chat-peer.on { background: #e8efff; }
.cp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.cp-t small { color: var(--muted); font-size: 12px; }
.chat-hint { padding: 10px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.chat-head small { color: var(--muted); font-size: 12px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; background: #f6f7fb; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; font-size: 14px; }
.chat-day { align-self: center; font-size: 12px; color: var(--muted); background: #e9ecf3; border-radius: 10px; padding: 2px 10px; margin: 8px 0; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.45; }
.msg.me .bubble { background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg .bubble .nm { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.msg .bubble img { display: block; max-width: 260px; max-height: 260px; border-radius: 10px; margin: 4px 0; cursor: zoom-in; }
.msg .tm { display: block; font-size: 11px; opacity: .65; text-align: right; margin-top: 2px; }
.msg.cont .ava, .msg.cont .ava-i { visibility: hidden; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; max-height: 140px; min-height: 42px; }
.chat-attach { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; color: var(--muted); flex: none; }
.chat-attach:hover { background: #f1f3f7; color: var(--accent); }
.chat-send { width: 46px; height: 42px; padding: 0; display: grid; place-items: center; flex: none; }
.chat-preview { padding: 6px 12px 10px; background: #fff; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.chat-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.chat-preview button { border: 0; background: none; color: var(--muted); cursor: pointer; }
body.chat-embed { margin: 0; background: #fff; }
body.chat-embed .chat { height: 100vh; min-height: 0; border-radius: 0; box-shadow: none; grid-template-columns: 64px 1fr; }
body.chat-embed .chat-side { padding: 6px 4px; }
body.chat-embed .cp-t, body.chat-embed .chat-hint { display: none; }
body.chat-embed .chat-peer { justify-content: center; padding: 8px 4px; position: relative; }
body.chat-embed .chat-peer .count { position: absolute; top: 2px; right: 2px; }
body.chat-embed .msg { max-width: 88%; }
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.chat-fab-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(29,92,255,.4); cursor: pointer; display: grid; place-items: center; position: relative; }
.chat-fab-btn .count { position: absolute; top: -2px; right: -2px; margin: 0; }
.chat-pop { position: absolute; right: 0; bottom: 74px; width: 400px; height: 560px; max-height: calc(100vh - 110px); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(15,23,42,.3); overflow: hidden; display: flex; flex-direction: column; }
.chat-pop[hidden] { display: none; }
.chat-pop-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #111827; color: #fff; }
.chat-pop-head b { flex: 1; }
.chat-pop-head a, .chat-pop-head button { color: #cbd5e1; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.chat-pop iframe { flex: 1; border: 0; width: 100%; }
@media (max-width: 800px) {
  .chat { grid-template-columns: 64px 1fr; height: calc(100vh - 140px); }
  .chat .cp-t, .chat .chat-hint { display: none; }
  .chat-peer { justify-content: center; padding: 8px 4px; position: relative; }
  .chat-peer .count { position: absolute; top: 2px; right: 2px; }
  .chat-pop { width: calc(100vw - 24px); right: -10px; height: calc(100vh - 120px); }
  .chat-fab { right: 14px; bottom: 14px; }
}

/* ---------- SEO-подборки ---------- */
.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 18px; }
.seo-chips span { color: var(--muted); font-size: 13px; margin-right: 2px; }
.seo-chips a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text); }
.seo-chips a:hover { border-color: var(--accent); color: var(--accent); }
.seo-intro { background: var(--surface); border-radius: var(--r); padding: 16px 20px; margin-bottom: 16px; color: #374151; }
.seo-intro p { margin: 0 0 6px; } .seo-intro p:last-child { margin: 0; }
.seo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.seo-list a { color: var(--text); padding: 4px 0; } .seo-list a:hover { color: var(--accent); }
.seo-list small { color: var(--muted); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.inline-form select, .inline-form input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.pgal { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pgal button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; }
.pgal button.on { border-color: var(--accent); }
.pgal img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }

/* ---------- Онлайн-консультант (витрина) ---------- */
.sup { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.sup-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #10b981; color: #fff; box-shadow: 0 10px 30px rgba(16,185,129,.45); cursor: pointer; display: grid; place-items: center; position: relative; animation: supPulse 2.6s ease-in-out 3; }
.sup-btn .count { position: absolute; top: -2px; right: -2px; margin: 0; }
@keyframes supPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.sup-pop { position: absolute; right: 0; bottom: 76px; width: 370px; height: 540px; max-height: calc(100vh - 120px); background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(15,23,42,.28); display: flex; flex-direction: column; overflow: hidden; }
.sup-pop[hidden] { display: none; }
.sup-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(120deg, #0f1b3d, #1d3b8f); color: #fff; }
.sup-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sup-head small { color: #a7f3d0; font-size: 12px; }
.sup-head button { background: none; border: 0; color: #cbd5e1; cursor: pointer; }
.sup-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f6f7fb; }
.sup-hello, .sup-m.them { align-self: flex-start; background: #fff; border-radius: 16px 16px 16px 4px; padding: 9px 12px; max-width: 86%; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0,0,0,.06); word-break: break-word; }
.sup-m.me { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 9px 12px; max-width: 86%; font-size: 14px; line-height: 1.45; word-break: break-word; }
.sup-m.pending { opacity: .6; }
.sup-m .nm { display: block; font-size: 11px; font-weight: 700; color: #10b981; margin-bottom: 2px; }
.sup-m .tm { display: block; font-size: 10px; opacity: .6; text-align: right; margin-top: 2px; }
.sup-m a { color: inherit; text-decoration: underline; }
.sup-m.them a { color: var(--accent); }
.sup-sys { align-self: center; font-size: 12px; color: var(--muted); background: #e9ecf3; border-radius: 10px; padding: 3px 10px; }
.sup-typing { align-self: flex-start; background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 4px; }
.sup-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: supDot 1s infinite; }
.sup-typing i:nth-child(2) { animation-delay: .15s; } .sup-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes supDot { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.sup-quick { display: flex; gap: 6px; padding: 8px 10px 0; flex-wrap: wrap; background: #fff; }
.sup-quick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--text); }
.sup-quick button:hover { border-color: var(--accent); color: var(--accent); }
.sup-form { display: flex; gap: 8px; padding: 10px; background: #fff; }
.sup-form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sup-form .btn { width: 44px; padding: 0; display: grid; place-items: center; }
.sup-contact { padding: 10px; background: #f0fdf4; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.sup-contact[hidden] { display: none; }
.sup-contact p { margin: 0; font-size: 13px; }
.sup-contact input { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 760px) {
  .sup { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .sup-btn { width: 54px; height: 54px; }
  .sup-pop { position: fixed; left: 8px; right: 8px; bottom: calc(140px + env(safe-area-inset-bottom, 0px)); width: auto; height: auto; top: 70px; max-height: none; }
}

/* ---------- Рабочее место операторов ---------- */
.ws { display: grid; grid-template-columns: 320px 1fr 260px; height: calc(100vh - 150px); min-height: 520px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ws-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fafbfc; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.ws-tabs button { border: 0; background: #eef0f4; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; color: #374151; }
.ws-tabs button.on { background: var(--accent); color: #fff; }
.ws-tabs b { font-weight: 700; margin-left: 2px; }
.ws-search { margin: 8px 10px; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.ws-items { flex: 1; overflow-y: auto; padding: 0 6px 6px; }
.ws-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--text); border-left: 3px solid transparent; }
.ws-item:hover { background: #f1f3f7; } .ws-item.on { background: #e8efff; }
.ws-item.wait { border-left-color: #f0265f; }
.wi-top { display: flex; justify-content: space-between; gap: 8px; } .wi-top b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wi-top small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.wi-last { font-size: 13px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px; }
.wi-bot { display: flex; align-items: center; gap: 6px; } .wi-bot small { color: var(--muted); font-size: 11px; } .wi-bot .count { margin-left: auto; }
.ws-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ws-empty { margin: auto; text-align: center; color: var(--muted); }
.ws-conv { display: flex; flex-direction: column; height: 100%; min-height: 0; } .ws-conv[hidden] { display: none; }
.ws-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ws-head div:first-child { display: flex; flex-direction: column; min-width: 0; } .ws-head small { color: var(--muted); font-size: 12px; }
.ws-actions { display: flex; gap: 6px; align-items: center; } .ws-actions select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.ws-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: #f6f7fb; }
.ws-m { max-width: 76%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); word-break: break-word; align-self: flex-start; }
.ws-m .nm { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.ws-m.ai { background: #ecfdf5; } .ws-m.operator { align-self: flex-end; background: var(--accent); color: #fff; } .ws-m.operator .nm { color: #dbe5ff; } .ws-m.operator a { color: #fff; }
.ws-sys { align-self: center; font-size: 12px; color: var(--muted); background: #e9ecf3; border-radius: 10px; padding: 3px 10px; }
.ws-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ws-form textarea { flex: 1; resize: none; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.ws-form .btn { width: 48px; padding: 0; display: grid; place-items: center; }
.ws-hint { margin: 0; padding: 0 14px 8px; }
.ws-info { border-left: 1px solid var(--line); padding: 14px; overflow-y: auto; } .ws-info[hidden] { display: block; visibility: hidden; }
.ws-info h4 { margin: 12px 0 6px; font-size: 13px; } .ws-info h4:first-child { margin-top: 0; }
.ws-info form { display: grid; gap: 6px; margin-bottom: 8px; } .ws-info input { font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.ai-test { margin-top: 12px; background: #ecfdf5; border-radius: 12px; padding: 12px; font-size: 14px; }
.copy-code { display: block; word-break: break-all; background: #f1f3f7; padding: 8px 10px; border-radius: 8px; font-size: 12px; margin: 6px 0; }
@media (max-width: 1100px) { .ws { grid-template-columns: 280px 1fr; } .ws-info { display: none; } }
@media (max-width: 760px) { .ws { grid-template-columns: 1fr; height: auto; } .ws-list { max-height: 300px; } .ws-chat { height: 70vh; } }

/* Кнопка онлайн-консультанта v2 */
.sup-btn { width: auto; height: 60px; padding: 0 22px 0 16px; border-radius: 999px; gap: 10px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, #12c48b, #0ea371); }
.sup-btn .bubble-ic { flex: none; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
.sup-lbl { white-space: nowrap; }
.sup-dot { position: absolute; left: 39px; top: 11px; width: 11px; height: 11px; border-radius: 50%; background: #fde047; border: 2px solid #10b981; }
.sup-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.chat-fab-btn .bubble-ic { display: block; }
@media (max-width: 760px) {
  .sup-btn { width: 58px; height: 58px; padding: 0; }
  .sup-lbl { display: none; }
  .sup-dot { left: auto; right: 12px; top: 12px; }
}

/* Кнопка онлайн-консультанта v3 — круглая, в цвет сайта */
.sup-btn { width: 62px; height: 62px; padding: 0; border-radius: 50%; gap: 0; background: var(--accent); color: var(--accent); box-shadow: 0 10px 28px rgba(29,92,255,.42); }
.sup-btn .bubble-ic { width: 32px; height: 32px; }
.sup-lbl { display: none; }
.sup-dot { left: auto; right: 13px; top: 13px; width: 11px; height: 11px; background: #22c55e; border: 2px solid var(--accent); }
.sup-head small { color: #bfdbfe; }
.sup-m .nm { color: var(--accent); }
@media (max-width: 760px) { .sup-btn { width: 58px; height: 58px; } }
.steps-list { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 10px; } .steps-list li { line-height: 1.5; }
.code-area { width: 100%; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #0f172a; color: #e2e8f0; resize: vertical; margin-bottom: 10px; }
.vt { padding: 8px 12px; border-radius: 12px; margin-top: 8px; font-size: 14px; } .vt-c { background: #eef2ff; } .vt-r { background: #ecfdf5; }
/* Голосовой режим консультанта */
.sup-mic { width: 44px; flex: none; border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.sup-mic:hover { border-color: var(--accent); }
.sup-mic.on { background: var(--accent); color: #fff; border-color: var(--accent); animation: supPulse 1.6s infinite; }
@keyframes supPulse { 0% { box-shadow: 0 0 0 0 rgba(29,92,255,.45); } 70% { box-shadow: 0 0 0 12px rgba(29,92,255,0); } 100% { box-shadow: 0 0 0 0 rgba(29,92,255,0); } }
.sup-voice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #eef3ff; border-top: 1px solid var(--line); }
.sup-voice b { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-voice .btn-sm { padding: 5px 10px; font-size: 12px; }
.sup-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.sup-wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent); }
.sup-voice.is-listening .sup-wave i { animation: supWave 1s infinite ease-in-out; }
.sup-voice.is-speaking .sup-wave i { animation: supWave .6s infinite ease-in-out; background: #22a35a; }
.sup-voice.is-thinking .sup-wave i { animation: supWave 1.4s infinite ease-in-out; opacity: .5; }
.sup-wave i:nth-child(2) { animation-delay: .1s !important; } .sup-wave i:nth-child(3) { animation-delay: .2s !important; }
.sup-wave i:nth-child(4) { animation-delay: .3s !important; } .sup-wave i:nth-child(5) { animation-delay: .4s !important; }
@keyframes supWave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.sup-voice[hidden] { display: none; }
.sup-voice b { white-space: normal; line-height: 1.3; }
.sup-voice .sup-wave i { transition: height .08s; }
.sup-voice.is-level .sup-wave i { animation: none !important; }
/* Кнопка микрофона: синяя — включить, красная с квадратом — идёт голосовой разговор, нажать чтобы выключить */
.sup-mic { position: relative; }
.sup-mic .ic-stop { display: none; width: 14px; height: 14px; border-radius: 3px; background: #fff; }
.sup-mic.on .ic-mic { display: none; }
.sup-mic.on .ic-stop { display: block; }
.sup-mic.on { background: #e5484d; border-color: #e5484d; color: #fff; animation: supPulseRed 1.4s infinite; }
.sup-mic.on[data-st="thinking"], .sup-mic.on[data-st="speaking"] { background: var(--accent); border-color: var(--accent); animation: none; }
@keyframes supPulseRed { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 70% { box-shadow: 0 0 0 12px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.sup-voice { display: none !important; }
.sup-head .sup-spk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; opacity: .55; position: relative; }
.sup-head .sup-spk.on { opacity: 1; background: rgba(255,255,255,.16); color: #fff; }
.sup-head .sup-spk:not(.on)::after { content: ''; position: absolute; width: 22px; height: 2px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; }
.sup-mic { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sup-mic[data-st="busy"] { opacity: .55; pointer-events: none; }
.logo-mark { background: none; overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; display: block; }
.sup-ava { width: 38px; height: 38px; border-radius: 11px; flex: none; background: #fff; }
.cs-form { flex-wrap: wrap; }
.cs-ok { flex-basis: 100%; margin: 6px 0 0; color: #16a34a; font-weight: 600; font-size: 14px; }
.cs-form.sent input { display: none; }
