:root {
  --navy: #0b1f33;
  --navy-2: #123047;
  --steel: #1c3a52;
  --amber: #d97706;
  --amber-2: #f59e0b;
  --sand: #f4efe6;
  --paper: #fbf8f3;
  --ink: #14202b;
  --muted: #5b6b78;
  --line: #e4ddd2;
  --ok: #0f766e;
  --danger: #b42318;
  --white: #fff;
  --shadow: 0 18px 50px rgba(11, 31, 51, .12);
  --radius: 18px;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); line-height: 1.55; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.topbar {
  background: var(--navy);
  color: #d7e0e8;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 18px; flex-wrap: wrap; position: relative;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--amber), #b45309);
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
nav.main { display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--steel);
}
nav.main a:hover, nav.main a.active { background: #efe7d8; color: var(--navy); }
.actions { display: flex; gap: 8px; align-items: center; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: .2s transform, .2s opacity;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  font-weight: 700; transition: .2s transform, .2s background;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--amber); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 10px 14px; font-size: 13px; min-height: 40px; }

.hero {
  background:
    linear-gradient(120deg, rgba(11,31,51,.86), rgba(11,31,51,.45)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=70") center/cover;
  color: #fff; padding: 78px 0 70px;
}
.hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: -.04em; max-width: 16ch; }
.hero p.lead { max-width: 58ch; margin: 16px 0 28px; color: #e8eef3; font-size: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: end; }
.stat-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 18px;
}
.stat-card b { font-size: 28px; display: block; }

section { padding: 64px 0; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; margin-bottom: 10px; }
h3 { font-size: 18px; }
.sub { color: var(--muted); margin-bottom: 28px; max-width: 70ch; }
.sub a { color: var(--amber); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.grid-3, .grid-4, .cards { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 8px 24px rgba(11,31,51,.04);
}
.card .body { padding: 16px 18px 20px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.price { font-weight: 800; font-size: 20px; }
.tag { display: inline-block; background: #efe7d8; color: #7c4a03; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.flow { counter-reset: step; }
.flow article { position: relative; padding: 20px; }
.flow article::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 800; margin-bottom: 10px;
}

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.filters-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filters input, .filters select {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff;
  min-height: 44px; min-width: 0;
}
.filters input[type="search"] { flex: 1 1 220px; max-width: 360px; }
.filters select { flex: 0 1 180px; }
.found { margin-top: 10px; font-weight: 600; font-size: 14px; }

.review { padding: 18px; }
.stars { color: var(--amber); letter-spacing: 2px; }
.form { display: grid; gap: 12px; }
.form label { font-size: 13px; font-weight: 700; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff;
  min-height: 44px;
}
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.check-row input { margin-top: 3px; flex-shrink: 0; width: auto; min-height: 0; }
.check-row a { color: var(--amber); text-decoration: underline; }
.notice {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 12px 14px; border-radius: 12px; font-size: 14px;
}
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.okbox { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 12px 14px; border-radius: 12px; }
.panel-inner {
  background: var(--sand); border-radius: 14px; padding: 14px;
}

.layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 28px 0 60px; }
.side {
  background: var(--navy); color: #d5dee6; border-radius: 20px; padding: 18px 12px;
  min-height: 70vh;
}
.side h4 { color: #fff; padding: 8px 10px 14px; }
.side a, .side button.link {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit;
  padding: 12px 12px; border-radius: 12px; cursor: pointer; min-height: 44px;
}
.side a.active, .side a:hover, .side button.link:hover { background: rgba(255,255,255,.08); color: #fff; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.badge { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; display: inline-block; }
.b-wait { background: #fff7ed; color: #9a3412; }
.b-pay { background: #eff6ff; color: #1d4ed8; }
.b-ok { background: #ecfdf5; color: #047857; }
.b-off { background: #f3f4f6; color: #4b5563; }

.hist { margin-top: 8px; font-size: 13px; }
.hist summary { cursor: pointer; color: var(--steel); font-weight: 600; }
.hist ul { margin: 8px 0 0 16px; }
.hist li { margin: 4px 0; }

.faq { display: grid; gap: 10px; margin-top: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px;
  min-height: 28px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 20px; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.draft-banner {
  background: #fff7ed; border: 2px dashed #f59e0b; color: #9a3412;
  padding: 14px 16px; border-radius: 14px; font-weight: 700; margin-bottom: 18px; font-size: 14px;
}
.legal-body p { margin-bottom: 10px; }
.docs-list { display: grid; gap: 10px; margin-top: 12px; }
.docs-list a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-weight: 700;
}
.docs-list a:hover { border-color: var(--amber); }
.docs-list a span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }

footer {
  background: var(--navy); color: #c5d0d8; padding: 42px 0 20px; margin-top: 20px;
}
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer h5 { color: #fff; margin-bottom: 10px; }
footer a { display: block; margin: 6px 0; color: #c5d0d8; }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 8px; font-size: 14px;
}
.foot-links a { display: inline; margin: 0; color: #e8eef3; }
.foot-links a:hover { color: var(--amber-2); }
.copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 14px; font-size: 13px; }

.hidden { display: none !important; }
.toast {
  position: fixed; right: 16px; bottom: 16px; background: var(--navy); color: #fff;
  padding: 12px 16px; border-radius: 12px; z-index: 80; max-width: min(360px, calc(100% - 32px));
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, footer .cols { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .side { min-height: auto; }
}

@media (max-width: 768px) {
  .burger { display: inline-flex; margin-left: auto; order: 2; }
  .logo { order: 1; }
  .actions { order: 3; }
  nav.main {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    margin-top: 4px;
    box-shadow: var(--shadow);
  }
  nav.main.nav-open { display: flex; }
  nav.main a { padding: 12px 14px; min-height: 44px; }
  .filters-row { flex-direction: column; align-items: stretch; }
  .filters input[type="search"], .filters select { max-width: none; flex: 1 1 auto; width: 100%; }
  section { padding: 40px 0; }
  .btn, .btn-sm { min-height: 44px; }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 24px); }
}

/* главная: слайдер рекламных баннеров + статичные карточки ниже */
.home-themes{padding:28px 0 8px;background:#f3f4f6}
.home-slider{position:relative;border-radius:14px;overflow:hidden;background:#213b5c;aspect-ratio:16/6;box-shadow:0 6px 20px rgba(33,59,92,.22)}
.home-slide{position:absolute;inset:0;opacity:0;transition:opacity .8s;display:block;pointer-events:none}
.home-slide.on{opacity:1;z-index:1;pointer-events:auto}
.home-slide img{width:100%;height:100%;object-fit:cover;display:block}
.home-slide-tag{position:absolute;top:12px;left:12px;z-index:2;background:rgba(33,59,92,.85);color:#c4c5c3;font-size:12px;padding:4px 10px;border-radius:20px;line-height:1.3}
/* Баннеры рекламодателей (1200×300) показываем целиком, без обрезки; метка «Реклама» — внизу слева, чтобы не закрывать логотип */
.home-slide.paid{background:#213b5c}
.home-slide.paid img{object-fit:contain;background:#213b5c}
.home-slide.paid .home-slide-tag{top:auto;bottom:10px;left:10px}
.home-slider-bar{display:flex;justify-content:center;gap:10px;margin:12px 0 4px}
.home-dot{width:34px;height:8px;border-radius:4px;background:#9b9a97;border:0;cursor:pointer;padding:0;position:relative;overflow:hidden;transition:width .3s}
.home-dot.on{width:56px;background:#e77529}
.home-dot.on i{position:absolute;left:0;top:0;bottom:0;background:rgba(255,255,255,.35);animation:homeFill 15s linear forwards}
@keyframes homeFill{from{width:0}to{width:100%}}
.home-slider-hint{text-align:center;font-size:12px;color:#9b9a97;margin:0 0 18px}
.theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.theme-card{background:#fff;border-radius:12px;padding:16px;border-top:4px solid #e77529;display:flex;flex-direction:column;min-height:150px;box-shadow:0 2px 8px rgba(0,0,0,.06);text-decoration:none;color:inherit;line-height:1.35}
.theme-card h3{margin:0 0 6px;font-size:16px;color:#213b5c}
.theme-card p{margin:0 0 12px;font-size:13px;color:#555;flex:1}
.theme-card span{align-self:flex-start;background:#213b5c;color:#fff;font-size:13px;padding:6px 12px;border-radius:8px}
@media (max-width:1100px){.theme-grid{grid-template-columns:repeat(3,1fr)}.home-slider{aspect-ratio:16/7}}
@media (max-width:700px){.theme-grid{grid-template-columns:1fr 1fr}.home-slider{aspect-ratio:16/9}}
@media (max-width:480px){.theme-grid{grid-template-columns:1fr}}
/* Телефон и узкий планшет: баннер рекламодателя (1200×300) — во всю ширину и по своей высоте, без пустых полос; метка «Реклама» — строкой под картинкой */
@media (max-width:700px){
  .home-slider.is-paid{aspect-ratio:auto}
  .home-slider.is-paid .home-slide.paid.on{position:relative}
  .home-slider.is-paid .home-slide.paid.on img{height:auto;aspect-ratio:auto}
  .home-slider.is-paid .home-slide.paid.on .home-slide-tag{position:static;display:block;margin:0;border-radius:0;padding:4px 10px;font-size:11px;background:#213b5c}
}


/* Кабинет снабженца — форма исполнения заказа */
.fulfill-card { gap: 14px; }
.fulfill-head {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: flex-start; flex-wrap: wrap;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.fulfill-card code, .panel-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; background: #fff; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--line);
}

/* ===== ТЗ-АСГ-DEV-1.3: марка «регион, город», выбор города, чат, вкладки ===== */
.geo-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--steel); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.geo-mark .geo-text { font-weight: 700; color: var(--navy); }
.geo-mark .geo-change { border: 0; background: none; color: var(--amber); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }
.geo-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 30, 48, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.geo-modal.hidden { display: none; }
.geo-box { background: #fff; border-radius: 20px; padding: 22px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.geo-box input, .geo-box select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font: inherit; }
.geo-box select { min-height: 220px; }
.geo-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.geo-line { font-size: 14px; color: var(--steel); margin: 4px 0 14px; }
.geo-line b { color: var(--navy); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 520px; }
.chat-list { border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: 640px; background: #fff; }
.chat-list .ci { padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-list .ci:hover, .chat-list .ci.on { background: #f6f0e4; }
.chat-list .ci small { display: block; color: var(--muted); }
.chat-list .ci .wait { color: var(--danger); font-weight: 700; }
.chat-main { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-height: 520px; }
.chat-msgs { flex: 1; overflow: auto; padding: 12px; max-height: 470px; }
.chat-msg { max-width: 78%; margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: #f1ece2; }
.chat-msg.mine { margin-left: auto; background: #e3eef7; }
.chat-msg.staff { border-left: 3px solid var(--amber); }
.chat-msg small { display: block; color: var(--muted); font-size: 11px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; }
.chat-ctx { border-top: 1px dashed var(--line); padding: 10px 12px; font-size: 13px; max-height: 260px; overflow: auto; background: #fbf8f3; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } }
.ad-rot { position: relative; margin: 0 0 14px; }
.ad-rot a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.ad-rot a { background: #213b5c; }
.ad-rot img { display: block; width: 100%; aspect-ratio: 4 / 1; object-fit: contain; background: #213b5c; }
.ad-rot .slide-mark { position: absolute; left: 10px; bottom: 10px; background: rgba(11,31,51,.78); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.rub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.rub-chips a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.rub-chips a.on { background: var(--amber); border-color: var(--amber); color: #fff; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.wallet-note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--amber); padding: 6px 10px; margin: 10px 0; background: #fbf6ec; }

.cookie-bar .cookie-text{flex:1 1 420px}.cookie-bar .cookie-btns{display:flex;gap:8px;flex-wrap:wrap}.cookie-bar .cookie-setup{flex:1 1 100%;display:flex;flex-direction:column;gap:8px;border-top:1px solid rgba(255,255,255,.25);padding-top:10px}.cookie-bar .cookie-setup[hidden]{display:none}.cookie-bar .cookie-opt{display:flex;gap:8px;align-items:flex-start}.cookie-bar .cookie-note{margin:0;font-size:12px;opacity:.85}.cookie-bar .cookie-setup .btn{align-self:flex-start}.cookie-bar .btn-ghost{color:#fff;border-color:rgba(255,255,255,.6)}

/* Бегунок «Партнёры-продавцы / Наши снабженцы» (20261025j) */
.src-switch{display:inline-flex;background:#f2f2f0;border-radius:999px;padding:4px;gap:4px;margin:6px 0}
.src-switch button{border:0;background:transparent;padding:8px 16px;border-radius:999px;font:inherit;font-weight:600;cursor:pointer;color:#444}
.src-switch button.on{background:#e8a33d;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.src-hint{margin:4px 0 10px;font-size:13px}
.jobs-hero{background:linear-gradient(135deg,#1f2d38,#33495a);color:#fff;border-radius:14px;padding:22px 24px;margin:18px 0}
.jobs-hero h3{color:#fff;margin:0 0 6px}.jobs-hero p{color:#dbe4ea;margin:0 0 12px}
.jobs-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.jobs-tabs button{border:1px solid #ccc;background:#fff;padding:10px 18px;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.jobs-tabs button.on{background:#1f2d38;color:#fff;border-color:#1f2d38}
.photo-rules{font-size:13px;background:#fff8ec;border:1px solid #f0d9ae;border-radius:8px;padding:8px 10px;margin:6px 0}

/* === Витрина прайса: карточки + карусель фото (2026-10-27) === */
.vt-search input{width:100%;padding:12px 16px;border:1px solid #dde3e6;border-radius:14px;background:#f2f4f5;font-size:16px;margin:8px 0 10px}
.vt-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:10px}
.vt-chips button{flex:none;border:1px solid #cfd8db;background:#fff;border-radius:20px;padding:6px 14px;cursor:pointer;font-size:14px}
.vt-chips button.on{background:#0f7c86;color:#fff;border-color:#0f7c86}
.vt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
@media(max-width:600px){.vt-grid{grid-template-columns:1fr 1fr;gap:10px}}
.vt-card{background:#fff;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.08);overflow:hidden;display:flex;flex-direction:column}
.vt-ph{position:relative;aspect-ratio:1/1;background:#f4f6f7;overflow:hidden;width:100%}
.vt-track{position:absolute;inset:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.vt-track::-webkit-scrollbar{display:none}
.vt-track a{flex:0 0 100%;scroll-snap-align:start;height:100%;min-width:100%}
.vt-track img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;max-width:none}
@media(max-width:600px){.vt-ph{aspect-ratio:1/1;max-height:46vw}}
.vt-b{position:absolute;z-index:2;top:8px;left:8px;background:#0f7c86;color:#fff;font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px}
.vt-b-sale{background:#f07a1a}
.vt-ar{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.85);font-size:20px;line-height:1;cursor:pointer;opacity:0;transition:.2s}
.vt-prev{left:6px}.vt-next{right:6px}
.vt-ph:hover .vt-ar{opacity:1}
@media(hover:none){.vt-ar{display:none}}
.vt-dots{position:absolute;z-index:2;bottom:6px;left:0;right:0;display:flex;justify-content:center;gap:4px}
.vt-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.6);cursor:pointer;box-shadow:0 0 2px rgba(0,0,0,.4)}
.vt-dots i.on{background:#fff;width:14px;border-radius:3px}
.vt-body{position:relative;padding:10px 12px 14px;display:flex;flex-direction:column;gap:3px;flex:1}
.vt-price b{font-size:22px;font-weight:800}
.vt-price s{color:#999;margin-left:8px;font-size:14px}
.vt-unit{color:#777;font-size:12px}
.vt-t{color:#222;font-size:14px;line-height:1.3;padding-right:46px;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vt-cart{position:absolute;right:10px;bottom:12px;width:42px;height:42px;border-radius:50%;border:0;background:#0f7c86;display:flex;align-items:center;justify-content:center;cursor:pointer}
.vt-cart:hover{background:#0b636b}

/* 2026-10-27: длинный текст в радио/чекбоксах не разбивается на колонки и не вылезает за поля */
.check-row { display: block; position: relative; padding-left: 26px; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; word-break: break-word; line-height: 1.4; }
.check-row > input[type="radio"], .check-row > input[type="checkbox"] { position: absolute; left: 0; top: 0; margin-top: 3px; }
.check-row span { display: inline; }
#app, .card, .panel, .cart-wrap, main { max-width: 100%; box-sizing: border-box; }
p.muted, .muted, .notice, .okbox { overflow-wrap: anywhere; word-break: break-word; }
select, input, textarea { max-width: 100%; box-sizing: border-box; }
select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
table { max-width: 100%; }
td, th { overflow-wrap: anywhere; }
/* компактные рубрики магазина */
.rub-wrap { margin: 10px 0 16px; }
.rub-wrap .rub-chips { margin: 0; max-height: 76px; overflow: hidden; }
.rub-wrap .rub-chips.open { max-height: none; }
.rub-chips a { white-space: nowrap; }
.rub-more { margin-top: 6px; border: 0; background: none; color: var(--amber); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 0; }
@media (max-width: 720px) {
  .rub-wrap .rub-chips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content;
    overflow-x: auto; overflow-y: hidden; max-height: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .rub-wrap .rub-chips::-webkit-scrollbar { display: none; }
  .rub-wrap .rub-chips.open { display: flex; flex-wrap: wrap; overflow: visible; }
  .rub-chips a { font-size: 13px; padding: 5px 11px; }
}

/* cart: short delivery labels + mobile cards (2026-10-27c) */
.delivery-hint { font-size: 13px; margin: -2px 0 10px 28px; line-height: 1.4; overflow-wrap: anywhere; }
.cart-table th, .cart-table td { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .table-wrap .cart-table { min-width: 0; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr:first-child { display: none; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .cart-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
  .cart-table td::before { content: attr(data-label); color: var(--muted, #888); font-size: 13px; flex: 0 0 auto; }
  .cart-table td[data-label="Позиция"] { display: block; font-weight: 600; }
  .cart-table td[data-label="Позиция"]::before { content: none; }
  .cart-table td.cart-del { justify-content: flex-end; }
  .cart-table td.cart-del::before { content: none; }
  .cart-table input[data-qty] { width: 70px !important; }
}

/* construction.html: форма заявки — не раздувать страницу min-content таблиц/grid
   Диагноз (360/400): body/.wrap в норме, #remont/#stroitelstvo ~598px из-за
   form.form display:grid (implicit auto column) + .table{min-width:560} +
   .grid-3 без minmax(0,…). Скоуп только #lead, без глобальной ломки других страниц. */
#lead {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}
#lead > .panel,
#lead .panel-inner,
#lead .grid-3,
#lead .table-wrap,
#lead .table-scroll {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#lead .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#lead .table-wrap,
#lead .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* таблица сохраняет min-width:560 для горизонтального скролла ВНУТРИ wrap, не раздувая #lead */
@media (max-width: 900px) {
  #lead .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Карусель видов работ на странице «Строительство» — full-bleed на ширину экрана */
.works-bleed {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 24px 0 0;
  padding-inline: clamp(12px, 2.2vw, 20px);
  overflow-x: clip;
}
.works-bleed > .works-block {
  margin-top: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.works-block { margin-top: 24px; }
.works-block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.works-block-head h2 { margin: 0; }
.works-block-head .muted { margin: 4px 0 0; max-width: 54ch; }
.works-carousel {
  position: relative;
  --works-gap: 16px;
}
.works-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}
.works-track {
  display: flex;
  gap: var(--works-gap);
  transition: transform .35s ease;
  will-change: transform;
}
.works-card {
  flex: 0 0 calc(50% - var(--works-gap) / 2);
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
}
.works-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  overflow: hidden;
}
.works-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.works-card-icon {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: #fff;
  display: grid; place-items: center;
  font-size: 20px; line-height: 1;
  box-shadow: 0 6px 16px rgba(217, 119, 6, .35);
}
.works-card-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.works-card-body h3 {
  margin: 0; font-size: 18px; color: var(--navy); line-height: 1.25;
}
.works-card-body p {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1;
}
.works-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.works-card-price {
  font-weight: 700; font-size: 14px; color: var(--steel);
}
.works-card-foot .btn { padding: 9px 16px; font-size: 14px; }
.works-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 14px;
}
.works-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--amber); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(217, 119, 6, .28);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.works-arrow:hover { background: var(--amber-2); transform: scale(1.04); }
.works-arrow:disabled { opacity: .35; cursor: default; transform: none; }
.works-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.works-dots { display: flex; gap: 8px; align-items: center; }
.works-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: #c9c2b6; cursor: pointer;
}
.works-dot.on { background: var(--amber); width: 22px; border-radius: 999px; }
.works-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 900px) {
  .works-card { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .works-bleed { padding-inline: 12px; }
  .works-card-body { padding: 14px 14px 16px; }
  .works-card-body h3 { font-size: 17px; }
}
@media (min-width: 901px) {
  .works-bleed { padding-inline: clamp(16px, 2.5vw, 24px); }
}

/* Карточка «Строительство»: кнопки «Подробнее» и «Профи» (20261111profi) */
.theme-card{position:relative}
.theme-card-hint{flex:0 0 auto;margin:0 0 10px;font-size:12px;color:var(--muted);line-height:1.35}
.theme-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;align-self:stretch;margin-top:auto}
.theme-card .theme-btn{display:inline-block;background:#213b5c;color:#fff;font-size:13px;padding:6px 12px;border-radius:8px;text-decoration:none;white-space:nowrap;line-height:1.35}
.theme-card .theme-btn-alt{position:relative;z-index:2;background:var(--amber);color:#fff}
.theme-card .theme-btn-alt:hover{background:var(--amber-2)}
.theme-card .theme-btn-more::after{content:"";position:absolute;inset:0;z-index:1}
.theme-card .theme-btn:focus-visible{outline:2px solid var(--amber);outline-offset:2px;position:relative;z-index:2}


/* Документы: плотный текст, строка к строке + кнопки скачивания (20261111docs) */
.doc-page { padding: 28px 0 48px; }
.doc-page > .wrap > .sub { margin-bottom: 12px; }
.doc-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 14px;
}
.doc-actions-bottom { margin: 16px 0 0; }
.doc-actions .btn { text-decoration: none; }
.legal-body {
  line-height: 1.38;
  font-size: 15px;
}
.legal-body h1 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
.legal-body h2 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: .85em 0 .35em;
}
.legal-body h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: .7em 0 .3em;
}
.legal-body p {
  margin: 0 0 .35em;
  line-height: 1.38;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 .35em 1.2em;
  padding: 0;
  line-height: 1.38;
}
.legal-body li { margin: 0 0 .15em; }
.legal-body li > p { margin-bottom: .15em; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: .4em 0;
  font-size: 14px;
  line-height: 1.35;
}
.legal-body th,
.legal-body td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  vertical-align: top;
}
.legal-body blockquote {
  margin: .4em 0;
  padding: .3em 0 .3em .8em;
  border-left: 3px solid var(--line);
  line-height: 1.38;
}
.legal-body dl { margin: 0 0 .4em; }
.legal-body dt { margin-top: .3em; }
.legal-body dd { margin: .1em 0 0 0; }
.legal-body hr { margin: .6em 0; }
.doc-page .faq { gap: 8px; margin-top: 8px; }
.doc-page .faq details p { margin-top: 6px; margin-bottom: 0; line-height: 1.38; }
.doc-page .faq details ul { margin: 4px 0 6px 1.2em; padding: 0; }
.doc-page .faq details li { margin: 0 0 .15em; line-height: 1.38; }
