/* Viallan (опт, строгий графит) + Valeo (розница, тёплая эстетика).
   Тема переключается классом на body: theme-viallan / theme-valeo. */

:root {
  --radius: 10px;
  --shadow: 0 10px 30px rgba(27, 29, 33, .08);
  --danger: #a33a2e;
  --ok: #4a7c59;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--page-bg);
  color: var(--ink);
  transition: background .3s;
}

h1, h2, h3, .footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.section-sub { color: var(--muted); margin: 0 0 30px; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 3px;
  margin-top: 14px; background: var(--accent);
}

.btn {
  display: inline-block; padding: 12px 26px;
  border-radius: 4px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid  { background: var(--header-bg); color: var(--paper-contrast); }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-gold   { background: var(--accent); color: var(--accent-contrast); }
.btn-gold:hover { filter: brightness(.92); }
.btn-dark   { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- темы ---------- */

body.theme-viallan {
  --page-bg: #f3f0e9;
  --ink: #20272b;
  --ink-soft: #344249;
  --muted: #667278;
  --card: #fffdf9;
  --line: #d9d4ca;
  --accent: #b78b52;
  --metal: #b78b52;
  --accent-contrast: #fff;
  --header-bg: #173640;
  --paper-contrast: #f7f4ed;
  --hero-bg: linear-gradient(150deg, #173640 0%, #19434d 55%, #0f5964 100%);
  --hero-color: #f7f4ed;
}

body.theme-valeo {
  --page-bg: #f6f0e7;
  --ink: #252423;
  --ink-soft: #45413d;
  --muted: #746e67;
  --card: #fffdfa;
  --line: #e2d8ca;
  --accent: #456d69;
  --metal: #c9ae76;
  --accent-contrast: #fff;
  --header-bg: #2f4947;
  --paper-contrast: #fbf8f2;
  --hero-bg: linear-gradient(160deg, #f6f0e7 0%, #eee5d8 60%, #e5ded1 100%);
  --hero-color: #252423;
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 2px solid var(--accent);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }

.brand-switch { display: flex; gap: 6px; }
.brand-tab {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 7px 16px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent; cursor: pointer;
  color: rgba(255,255,255,.55);
  transition: all .2s;
}
.brand-tab strong { font-family: Georgia, serif; font-size: 16px; line-height: 1.2; }
.brand-tab span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.brand-tab:hover { color: #fff; border-color: var(--accent); }
.brand-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a {
  color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.site-nav a:hover { color: var(--accent); }
.header-inner > .btn { flex-shrink: 0; }

/* ---------- герой ---------- */

.hero { background: var(--hero-bg); color: var(--hero-color); padding: 104px 0 92px; }
.hero-inner { max-width: 780px; }
.kicker {
  margin: 0 0 18px; font-size: 12px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.hero h1 { font-size: clamp(30px, 4.8vw, 50px); margin-bottom: 22px; }
.hero-lead { font-size: 18px; opacity: .85; max-width: 640px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
body.theme-valeo .hero-actions .btn-gold { background: #3e6b4f; color: #fff; }
.hero-features {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 28px; padding: 26px 0 0; margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 14px; opacity: .85;
}
.hero-features li { padding-left: 18px; position: relative; }
.hero-features li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg);
}

/* ---------- каталог Valeo: витрина ---------- */

.catalog { background: var(--page-bg); padding: 56px 0 76px; }
.catalog .container { max-width: 1240px; }
.catalog .section-sub { margin-bottom: 22px; }
@media (max-width: 700px) {
  .catalog { padding: 34px 0 52px; }
}

/* фильтры: desktop — строки chips, mobile — горизонтальный swipe */
.filter-chips {
  display: flex; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px; margin-bottom: 24px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 42px;
  display: inline-flex; align-items: center;
  padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink-soft);
  font-size: 14px; white-space: nowrap; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--header-bg); border-color: var(--header-bg); color: var(--paper-contrast); }
@media (min-width: 900px) {
  .filter-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 2px; }
}

/* сетки: 2 (mobile) / 3 (≥900) / 4 (≥1100) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.bundles-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .bundles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bundles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.catalog-empty-note, .catalog-loading, .catalog-empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 44px 0;
}
.catalog-error {
  grid-column: 1 / -1; text-align: center; padding: 44px 0; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* карточка товара */
.product-card, .bundle-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover, .bundle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1; padding: 0; border: 0;
  background: linear-gradient(160deg, #efe9de, #e0d9cb);
  cursor: pointer; overflow: hidden;
}
.product-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform .35s ease;
}
.product-media:hover img { transform: scale(1.035); }
.media-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #24443d, #16302b);
  color: #d3b879; font: 600 13px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .34em; text-transform: uppercase;
}
.stock-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(23, 27, 26, .85); color: #f5efe6;
  font-size: 11px; letter-spacing: .04em;
}

.product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-cat {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px;
}
.product-title {
  font-size: 16px; line-height: 1.3; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-title-btn {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.product-title-btn:hover { color: var(--accent); }
.product-desc {
  color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 700px) { .product-desc { display: none; } }

.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-family: Georgia, serif; font-size: 17px; line-height: 1.2; }
@media (max-width: 700px) {
  .product-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-price { font-size: 18px; }
  .product-footer .btn { width: 100%; min-height: 42px; }
}
.price-old {
  display: block; text-decoration: line-through;
  color: var(--muted); font-size: 12px; font-family: "Segoe UI", system-ui, sans-serif;
}
.price-request { font-family: "Segoe UI", system-ui, sans-serif; font-size: 13.5px; color: var(--ink-soft); }
.product-footer .btn { flex-shrink: 0; }
.btn.is-added { background: #3e6b4f !important; color: #fff !important; }

/* наборы */
.bundles-block { margin-bottom: 40px; }
.bundles-title { font-size: 22px; margin: 0 0 18px; }
.gift-note { font-family: "Segoe UI", system-ui, sans-serif; font-size: 13.5px; color: var(--accent); font-weight: 600; }
.bundle-media img { object-position: center; }
.bundle-discount {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 999px;
  background: #d9362d; color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(100, 0, 0, .22);
}
.bundle-comp {
  color: var(--muted); font-size: 11.5px; line-height: 1.45; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* skeleton-загрузка */
.skeleton-card { pointer-events: none; }
.sk-block {
  border-radius: 8px;
  background: linear-gradient(90deg, #ece5d8 25%, #f6f1e7 37%, #ece5d8 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.3s ease-infinite;
}
.sk-media { aspect-ratio: 1 / 1; border-radius: 0; }
.sk-line { height: 12px; margin: 9px 14px 0; }
.sk-line.w40 { width: 40%; }
.sk-line.w70 { width: 70%; }
.sk-line.w90 { width: 90%; margin-top: 13px; }
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* quick-view модалка товара */
.product-modal { position: fixed; inset: 0; z-index: 1250; }
.product-modal[hidden] { display: none !important; }
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 15, 16, .55); backdrop-filter: blur(3px); }
.product-modal-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(920px, 94vw); max-height: min(86vh, 780px);
  overflow-y: auto; overflow-x: hidden;
  background: var(--card); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.product-modal-media {
  position: relative; min-height: 420px;
  background: linear-gradient(160deg, #efe9de, #e0d9cb);
}
.product-modal-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.product-modal-body { padding: 26px 28px 28px; min-width: 0; }
.product-modal-body h3 { font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.product-material { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.product-specs { font-size: 13px; color: var(--muted); margin: 0 0 6px; padding: 0; list-style: none; }
.product-specs li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 5px 0; }
.product-specs li b { color: var(--ink-soft); font-weight: 600; }
.product-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(250, 246, 239, .92); color: #252423;
  font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.pm-price-row { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 4px; }
.pm-price-row .product-price { font-size: 24px; }
.pm-stock { color: #b43c3c; font-size: 13px; }
.pm-actions { margin-top: 16px; }
.pm-actions .btn { min-height: 46px; min-width: 180px; }
.pm-sku { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.pm-consult {
  display: block;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pm-consult:hover { color: var(--accent); }
@media (max-width: 700px) {
  .product-modal-panel {
    left: 0; right: 0; bottom: 0; top: auto; transform: none;
    width: 100%; max-height: 94vh;
    border-radius: 18px 18px 0 0;
    grid-template-columns: 1fr;
  }
  .product-modal-media { min-height: 0; aspect-ratio: 4 / 3; }
  .product-modal-body { padding: 18px 16px 22px; }
  .product-modal-body h3 { font-size: 19px; }
  .pm-price-row .product-price { font-size: 21px; }
  .pm-actions .btn { width: 100%; min-width: 0; }
}

/* ---------- формы ---------- */

.order { background: var(--card); border-block: 1px solid var(--line); }
.partners { background: var(--page-bg); }
.partner-cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.partner-cta-card .section-sub { max-width: 720px; margin-bottom: 0; }
.partner-cta-card .kicker { margin-bottom: 10px; }
.partner-cta-button { min-width: 210px; text-align: center; }

.order-inner, .partners-inner {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start;
}
.order-intro p, .partners-intro p { color: var(--ink-soft); }
.order-points { list-style: none; padding: 0; margin: 22px 0 0; color: var(--ink-soft); font-size: 15px; }
.order-points li { padding: 6px 0 6px 26px; position: relative; }
.order-points li::before {
  content: ""; position: absolute; left: 2px; top: .95em;
  width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%;
}

.order-form {
  background: var(--page-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field em { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); font: inherit; color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

.referral-banner {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin: -4px 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}
.referral-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.referral-banner strong { display: block; margin-bottom: 4px; font-size: 15px; }
.referral-banner p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }

.check-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; cursor: pointer; }
.check-field input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.check-field span { font-size: 14.5px; color: var(--ink-soft); }
.install-fields { border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 16px; }

.valeo-install-choice {
  margin: -4px 0 24px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, var(--card));
}
.install-choice-head { margin-bottom: 16px; }
.install-choice-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
}
.install-choice-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin: 0 0 7px;
}
.install-choice-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.install-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.install-choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 10px;
  align-items: start;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.install-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(27,29,33,.08);
}
.install-choice-card.featured::after {
  content: "ПОД КЛЮЧ";
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}
.install-choice-card.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--card));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.install-choice-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 700;
}
.install-choice-card strong {
  display: block;
  padding-right: 46px;
  font-size: 15px;
}
.install-choice-card small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.valeo-install-choice .install-fields {
  margin: 16px 0 0;
  padding: 14px 0 0 14px;
  border-top: 1px dashed var(--line);
}

.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-result { margin-top: 16px; padding: 14px 16px; border-radius: 6px; font-size: 15px; }
.form-result.ok { background: #edf4ef; color: var(--ok); border: 1px solid #cfe3d6; }
.form-result.err { background: #f9eeec; color: var(--danger); border: 1px solid #ecd2cd; }

/* ---------- подвал ---------- */

.site-footer { background: var(--header-bg); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 32px; padding-bottom: 40px;
}
.footer-brand { color: #fff; font-size: 20px; margin-bottom: 10px; }
.footer-col p { margin: 0 0 8px; font-size: 14.5px; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-title {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.footer-note { color: rgba(255,255,255,.55); font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 20px; font-size: 13px; color: rgba(255,255,255,.45);
}

/* ---------- виджет консультанта ---------- */

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--header-bg); color: var(--accent);
  cursor: pointer; box-shadow: 0 8px 24px rgba(27,29,33,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; fill: currentColor; }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 85;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 50px rgba(27,29,33,.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--header-bg); color: var(--paper-contrast); padding: 14px 18px;
}
.chat-title { margin: 0; font-family: Georgia, serif; font-size: 16.5px; }
.chat-status { margin: 2px 0 0; font-size: 12px; opacity: .7; }
.chat-status .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 5px;
}
.chat-close {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.chat-close:hover { color: #fff; }

.chat-name-row { display: flex; gap: 8px; padding: 10px 14px 0; background: var(--page-bg); }
.chat-name-row input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 13.5px; background: var(--card);
}
.chat-name-row .chat-send { width: 36px; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; background: var(--page-bg);
}
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word;
}
.chat-msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat-msg.user { align-self: flex-end; background: var(--header-bg); color: var(--paper-contrast); border-bottom-right-radius: 3px; }
.chat-msg.typing { color: var(--muted); font-style: italic; }

.chat-input {
  display: flex; gap: 10px; padding: 12px;
  border-top: 1px solid var(--line); background: var(--card);
}
.chat-input input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: var(--page-bg);
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 42px; border: none; border-radius: 8px;
  background: var(--accent); color: var(--accent-contrast);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: filter .2s;
}
.chat-send:hover { filter: brightness(.92); }
.chat-send svg { width: 18px; height: 18px; }
.chat-send:disabled { opacity: .5; cursor: default; }

/* ---------- B2B gate Viallan ---------- */

body.modal-open { overflow: hidden; }
.wholesale-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.wholesale-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 35, .72);
  backdrop-filter: blur(5px);
}
.wholesale-gate-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  padding: 34px;
  background: #f7f4ed;
  color: #20272b;
  border: 1px solid rgba(183,139,82,.45);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.26);
}
.wholesale-gate-dialog h2 {
  margin: 0 42px 12px 0;
  font-size: clamp(28px, 4vw, 38px);
}
.wholesale-gate-dialog .kicker { color: #0f5964; margin-bottom: 10px; }
.wholesale-gate-lead { margin: 0 0 26px; color: #5b666a; }
.wholesale-gate-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #e8e2d7;
  color: #20272b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.wholesale-gate .field input { background: #fff; }
.wholesale-consent { margin: 4px 0 18px; }
.wholesale-consent a { color: #0f5964; }
.wholesale-go { margin-top: 4px; text-align: center; }
.wholesale-gate .form-result { margin-top: 14px; }
.wholesale-gate .btn-gold { background: #0f5964; color: #fff; }
.wholesale-gate .btn-gold:hover { background: #173640; }

@media (max-width: 620px) {
  .wholesale-gate { padding: 10px; }
  .wholesale-gate-dialog { padding: 26px 20px; max-height: calc(100vh - 20px); }
  .wholesale-gate-dialog .form-row { grid-template-columns: 1fr; }
}

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .order-inner, .partners-inner, .partner-cta-card { grid-template-columns: 1fr; gap: 36px; }
  .partner-cta-button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .form-row { grid-template-columns: 1fr; }
  .install-choice-grid { grid-template-columns: 1fr; }
  .install-choice-card { min-height: 104px; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-tab { padding: 6px 10px; }
  .brand-tab strong { font-size: 14px; }
  .brand-tab span { display: none; }
  .header-inner > .btn { display: none; }
  .chat-panel { right: 16px; bottom: 84px; }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* ---- Аудит 2026-09-28: согласия, документы, чат ---- */

.consent-block { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.check-field.consent { font-size: 13px; line-height: 1.45; align-items: flex-start; }
.check-field.consent input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.check-field.consent a { color: var(--accent); text-decoration: underline; }
.offer-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.offer-note a { color: var(--accent); text-decoration: underline; }
.chat-notice { margin: 8px 14px 0; padding: 8px 12px; font-size: 12px; line-height: 1.45; color: var(--muted); background: var(--page-bg); border: 1px dashed var(--line); border-radius: 8px; }
.chat-notice a { color: var(--accent); text-decoration: underline; }
.chat-msg.system { align-self: center; background: transparent; border: none; font-size: 12.5px; color: var(--muted); text-align: center; max-width: 95%; }
.btn-sm { padding: 8px 14px; font-size: 11px; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: none; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.referral-banner[hidden] { display: none !important; }

/* ---- Valeo cart / checkout ---- */
.cart-header-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; cursor: pointer; }
.cart-header-btn span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #111; font-weight: 700; font-size: 12px; }
.cart-drawer[hidden] { display: none !important; }
.cart-drawer { position: fixed; inset: 0; z-index: 1200; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(12,15,16,.48); backdrop-filter: blur(3px); }
.cart-panel { position: absolute; top: 0; right: 0; width: min(460px, 100%); height: 100%; background: var(--page-bg); box-shadow: -18px 0 60px rgba(0,0,0,.2); display: flex; flex-direction: column; padding: 24px; overflow: auto; }
.cart-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.cart-panel-head h2 { margin: 4px 0 0; font-size: 30px; }
.cart-close { border: 0; background: transparent; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; }
.cart-empty { color: var(--muted); padding: 30px 0; text-align: center; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); }
.cart-line-main { min-width: 0; }
.cart-line-main strong { display: block; }
.cart-line-main small { color: var(--muted); }
.cart-line-price { font-weight: 700; white-space: nowrap; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.cart-remove { justify-self: end; border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; }

.cart-panel-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 8px; }
.cart-total-row strong { font-size: 24px; }
.cart-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 14px; }
.checkout-cart-summary { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card-bg); margin-bottom: 14px; }
.checkout-cart-summary[hidden] { display: none !important; }
.checkout-cart-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.checkout-cart-head button { border: 0; background: transparent; color: var(--accent); cursor: pointer; text-decoration: underline; }
.checkout-cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.checkout-cart-line:last-child { border-bottom: 0; }
.checkout-cart-total { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.product-desc { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0 12px; }
.stock-out { display: inline-block; margin: 6px 0; padding: 4px 8px; border-radius: 999px; background: rgba(180,60,60,.12); color: #b43c3c; font-size: 11px; }
body.cart-open { overflow: hidden; }
@media (max-width: 560px) {
  .cart-header-btn { padding: 8px 10px; font-size: 12px; }
  .cart-panel { padding: 18px; }
}


/* ---------- управляемые контент-блоки Valeo ---------- */
.cms-zone:empty { display: none; }
.cms-content-block { padding: 64px 0; border-top: 1px solid var(--line); }
.cms-content-block:nth-child(even) { background: var(--card); }
.cms-content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}
.cms-content-block.image_left .cms-content-inner {
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
}
.cms-content-block.image_top .cms-content-inner { grid-template-columns: 1fr; }
.cms-content-copy { max-width: 680px; }
.cms-content-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-line;
}
.cms-content-cta { margin-top: 24px; }
.cms-content-media { margin: 0; }
.cms-content-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}
.cms-content-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.cms-content-block.image_top .cms-content-media img { max-height: 620px; }
@media (max-width: 760px) {
  .cms-content-block { padding: 44px 0; }
  .cms-content-inner,
  .cms-content-block.image_left .cms-content-inner { grid-template-columns: 1fr; gap: 24px; }
  .cms-content-block.image_left .cms-content-media { order: 2; }
  .cms-content-media img { max-height: 420px; }
}


/* ---------- Valeo hero: premium carousel / variant 1 ---------- */
body.theme-valeo .hero {
  background: radial-gradient(circle at 75% 18%, rgba(201,174,118,.13), transparent 34%), linear-gradient(135deg,#0c171c 0%,#13252a 58%,#0b1519 100%);
  color: #f8f3ea;
  padding: 72px 0 68px;
  overflow: hidden;
}
.hero-premium-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr);
  gap: clamp(34px,5vw,72px);
  align-items: center;
}
.hero-copy { min-width: 0; }
body.theme-valeo .hero .kicker { color: #d3b879; }
body.theme-valeo .hero h1 { font-size: clamp(38px,5vw,62px); line-height: 1.05; max-width: 620px; }
body.theme-valeo .hero-lead { color: rgba(248,243,234,.78); max-width: 590px; }
body.theme-valeo .hero-features {
  grid-template-columns: repeat(2,minmax(0,1fr));
  color: rgba(248,243,234,.82);
  border-top-color: rgba(211,184,121,.35);
  gap: 10px 18px;
}
body.theme-valeo .hero-features li::before { background: #d3b879; }
body.theme-valeo .hero-actions .btn-gold { background:#c5a765; color:#10191c; }
body.theme-valeo .hero-actions .btn-outline { border-color:rgba(255,255,255,.36); color:#fff; }
.hero-carousel { min-width: 0; }
.hero-carousel-frame {
  position: relative;
  aspect-ratio: 1.28 / 1;
  min-height: 430px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(211,184,121,.32);
  box-shadow: 0 34px 90px rgba(0,0,0,.38);
  background:#091114;
}
.hero-carousel-frame::before {
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  pointer-events:none;
  z-index:3;
}
.hero-carousel-frame img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:opacity .32s ease, transform 5.8s ease;
}
.hero-carousel-frame.is-changing img { opacity:.22; }
.hero-carousel-frame:not(.is-changing) img { transform:scale(1.018); }
.hero-carousel-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 42%,rgba(5,10,12,.12) 58%,rgba(5,10,12,.9) 100%);
  pointer-events:none;
}
.hero-carousel-caption {
  position:absolute;
  z-index:4;
  left:38px;
  right:74px;
  bottom:34px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}
.hero-carousel-caption span { color:#d3b879; font-size:11px; letter-spacing:.22em; font-weight:700; }
.hero-carousel-caption strong { color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:clamp(23px,2.5vw,34px); line-height:1.15; }
.hero-carousel-caption a { margin-top:4px; color:#f4dfac; font-size:13px; text-decoration:none; border-bottom:1px solid rgba(244,223,172,.5); }
.hero-carousel-arrow {
  position:absolute;
  z-index:5;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.36);
  background:rgba(8,15,18,.46);
  color:white;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(5px);
}
.hero-carousel-arrow:hover { background:#c5a765; color:#111; border-color:#c5a765; }
.hero-carousel-arrow.prev { left:18px; }
.hero-carousel-arrow.next { right:18px; }
.hero-carousel-dots { display:flex; justify-content:center; gap:9px; padding-top:16px; }
.hero-carousel-dots button {
  width:32px;
  height:4px;
  border:0;
  padding:0;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  cursor:pointer;
}
.hero-carousel-dots button.active { background:#d3b879; }
@media (max-width: 900px) {
  .hero-premium-layout { grid-template-columns:1fr; gap:34px; }
  .hero-carousel { order:-1; }
  .hero-carousel-frame { min-height:0; aspect-ratio:1.35/1; }
  body.theme-valeo .hero { padding-top:28px; }
}
@media (max-width: 560px) {
  body.theme-valeo .hero { padding:18px 0 46px; }
  .hero-premium-layout { gap:28px; }
  .hero-carousel-frame { aspect-ratio:1/1.08; border-radius:16px; }
  .hero-carousel-caption { left:24px; right:58px; bottom:24px; }
  .hero-carousel-caption strong { font-size:25px; }
  .hero-carousel-arrow { width:36px; height:36px; font-size:25px; }
  .hero-carousel-arrow.prev { left:12px; }
  .hero-carousel-arrow.next { right:12px; }
  body.theme-valeo .hero h1 { font-size:39px; }
  body.theme-valeo .hero-features { grid-template-columns:1fr; }
}

.hero-premium-layout.no-carousel { grid-template-columns:1fr; max-width:780px; }

@media (max-width:560px){body.theme-valeo .hero .hero-copy .kicker{font-size:10px;letter-spacing:.18em;line-height:1.65;overflow-wrap:anywhere}}

/* ---------- Valeo v1: wide hero banner + category carousel ---------- */
body.theme-valeo .hero.hero-v1{
  background:#f4eee5;
  color:#252423;
  padding:28px 0 38px;
  overflow:hidden;
}
.hero-v1 .container{max-width:1240px;}
.hero-banner{
  position:relative;
  min-height:520px;
  border-radius:18px;
  overflow:hidden;
  background:#10191c;
  box-shadow:0 18px 55px rgba(30,25,20,.15);
  border:1px solid rgba(45,38,29,.12);
}
.hero-banner-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.hero-banner-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(8,15,13,.42) 0%,rgba(8,15,13,.18) 30%,rgba(8,15,13,0) 52%),
    linear-gradient(0deg,rgba(8,12,12,.24) 0%,rgba(8,12,12,0) 30%);
}
.hero-banner-content{
  position:relative;
  z-index:2;
  width:min(590px,58%);
  padding:58px 0 118px 54px;
}
body.theme-valeo .hero-v1 .kicker{
  color:#d3b879;
  margin-bottom:15px;
}
body.theme-valeo .hero-v1 h1{
  color:#fffaf2;
  font-size:clamp(44px,5.4vw,72px);
  line-height:.98;
  max-width:590px;
  margin-bottom:20px;
  text-shadow:0 2px 18px rgba(0,0,0,.25);
}
body.theme-valeo .hero-v1 .hero-lead{
  color:rgba(255,250,242,.84);
  font-size:17px;
  line-height:1.65;
  max-width:540px;
  margin-bottom:28px;
}
body.theme-valeo .hero-v1 .hero-actions{margin-bottom:0;}
.hero-banner .hero-features{
  position:absolute;
  z-index:2;
  left:0;
  right:0;
  bottom:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  margin:0;
  padding:0;
  border-top:1px solid rgba(255,255,255,.16);
  background:rgba(7,13,15,.72);
  backdrop-filter:blur(9px);
}
.hero-banner .hero-features li{
  min-height:72px;
  display:flex;
  align-items:center;
  padding:14px 18px 14px 40px;
  color:rgba(255,250,242,.86);
  font-size:12px;
  line-height:1.4;
  border-right:1px solid rgba(255,255,255,.11);
}
.hero-banner .hero-features li:last-child{border-right:0;}
.hero-banner .hero-features li::before{
  left:20px;
  top:50%;
  margin-top:-4px;
  background:#d3b879;
}
.category-strip{
  margin-top:28px;
}
.category-strip-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:15px;
}
.category-strip-kicker{
  margin:0 0 4px;
  color:#9d7b37;
  font-size:10px;
  letter-spacing:.22em;
  font-weight:700;
}
.category-strip h2{
  margin:0;
  color:#24211e;
  font-size:29px;
}
.category-strip-arrows{display:flex;gap:8px;}
.category-strip-arrows button{
  width:39px;
  height:39px;
  border-radius:50%;
  border:1px solid #cfc3b3;
  background:#fffaf4;
  color:#2c3332;
  font-size:26px;
  cursor:pointer;
}
.category-strip-arrows button:hover{
  background:#2f4947;
  color:white;
  border-color:#2f4947;
}
.category-carousel{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(205px,1fr);
  grid-template-rows:1fr;
  gap:13px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding-bottom:4px;
}
.category-carousel::-webkit-scrollbar{display:none;}
.category-card{
  position:relative;
  height:238px;
  border-radius:13px;
  overflow:hidden;
  scroll-snap-align:start;
  text-decoration:none;
  background:#152326;
  box-shadow:0 8px 24px rgba(42,35,27,.10);
}
.category-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 38%,rgba(6,10,12,.78) 100%);
}
.category-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.category-card:hover img{transform:scale(1.035);}
.category-card span,
.category-card small{
  position:absolute;
  left:16px;
  z-index:2;
  color:white;
}
.category-card span{
  bottom:35px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;
  font-weight:600;
}
.category-card small{
  bottom:15px;
  font-size:11px;
  color:rgba(255,255,255,.72);
}
@media (min-width:1050px){
  .category-carousel{grid-auto-columns:calc((100% - 52px)/5);}
}
@media (max-width:760px){
  body.theme-valeo .hero.hero-v1{padding:14px 0 28px;}
  .hero-banner{min-height:610px;border-radius:15px;}
  .hero-banner-image{object-position:62% center;}
  .hero-banner-overlay{
    background:
      linear-gradient(180deg,rgba(7,12,14,.24) 0%,rgba(7,12,14,.30) 28%,rgba(7,12,14,.88) 58%,rgba(7,12,14,.96) 100%);
  }
  .hero-banner-content{
    position:absolute;
    left:0; right:0; bottom:130px;
    width:auto;
    padding:28px 24px 20px;
  }
  body.theme-valeo .hero-v1 h1{
    font-size:clamp(38px,11vw,52px);
    max-width:100%;
  }
  body.theme-valeo .hero-v1 .hero-lead{
    font-size:15px;
    max-width:100%;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .hero-banner .hero-features{
    grid-template-columns:repeat(2,1fr);
  }
  .hero-banner .hero-features li{
    min-height:62px;
    padding:11px 10px 11px 29px;
    font-size:10px;
  }
  .hero-banner .hero-features li::before{left:13px;}
  .category-strip-head{align-items:center;}
  .category-strip h2{font-size:24px;}
  .category-carousel{grid-auto-columns:76%;}
  .category-card{height:220px;}
}

@media (max-width:560px){
  .hero-banner{min-height:700px;}
  .hero-banner-content{
    bottom:145px;
    padding:24px 22px 18px;
  }
  body.theme-valeo .hero-v1 h1{
    font-size:34px;
    line-height:1.02;
    overflow-wrap:break-word;
    word-break:normal;
    max-width:100%;
    margin-bottom:14px;
  }
  body.theme-valeo .hero-v1 .hero-lead{
    font-size:14px;
    line-height:1.5;
    -webkit-line-clamp:2;
    margin-bottom:18px;
  }
  body.theme-valeo .hero-v1 .hero-actions{
    gap:8px;
  }
  body.theme-valeo .hero-v1 .hero-actions .btn{
    padding:10px 14px;
    font-size:10px;
  }
  .hero-banner .hero-features li{
    min-height:68px;
  }
}

@media (max-width:560px){
  body.theme-valeo .hero-banner .hero-features{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.theme-valeo .hero-banner .hero-features li{
    min-width:0;
    min-height:64px;
    font-size:9.5px;
    padding:10px 8px 10px 26px;
  }
  body.theme-valeo .hero-banner .hero-features li::before{
    left:11px;
  }
  body.theme-valeo .hero-v1 h1{
    font-size:32px;
    line-height:1.04;
  }
  .hero-banner-content{
    bottom:132px;
  }
}

@media (max-width:560px){
  .hero-banner-content{
    left:0;
    right:0;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
  }
  body.theme-valeo .hero-v1 h1,
  body.theme-valeo .hero-v1 .hero-lead,
  body.theme-valeo .hero-v1 .hero-actions{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  body.theme-valeo .hero-v1 h1{
    overflow-wrap:anywhere;
  }
  body.theme-valeo .hero-v1 .hero-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  body.theme-valeo .hero-v1 .hero-actions .btn{
    width:max-content;
    max-width:100%;
  }
}
body{overflow-x:hidden;}

/* ---- retail pass 2026-10-06: mobile cart, fab, focus ---- */
@media (max-width: 560px) {
  .cart-panel { width: 100%; padding: 16px; }
  .cart-qty button { width: 40px; height: 40px; font-size: 17px; }
  .cart-remove { font-size: 13px; padding: 6px 0; }
}
body.cart-open .chat-fab,
body.modal-open .chat-fab { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.category-discount{
  position:absolute;
  z-index:4;
  top:12px;
  right:12px;
  min-width:52px;
  height:52px;
  padding:0 9px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#d9362d;
  color:#fff;
  font:700 15px/1 Arial,sans-serif;
  box-shadow:0 6px 20px rgba(100,0,0,.25);
}
.category-card:first-child span{font-size:20px;}
@media (min-width:1100px){
  .category-carousel{grid-auto-columns:calc((100% - 65px)/6);}
}
@media (max-width:560px){
  .category-card:first-child span{font-size:19px;}
  .category-discount{min-width:48px;height:48px;font-size:14px;}
}

/* final hero spacing fix */
@media (min-width:761px){
  .hero-banner{min-height:560px;}
  .hero-banner-content{padding-bottom:180px;}
}
.category-card-bundle img{object-position:center center;}

.site-logo{
  flex-shrink:0;
  color:#fff;
  text-decoration:none;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px;
  font-weight:700;
  letter-spacing:.12em;
}
.site-logo:hover{color:#d3b879;}
@media(max-width:760px){
  .site-logo{font-size:20px;}
}

/* ===== Valeo approved home template 2026-10-06 ===== */
body.theme-valeo{background:#f5efe6;}
body.theme-valeo .site-header{
  background:#213a35;
  border-bottom:1px solid rgba(211,184,121,.38);
  box-shadow:0 8px 28px rgba(20,31,28,.12);
}
body.theme-valeo .header-inner{
  min-height:76px;
  max-width:1440px;
  padding-left:22px;
  padding-right:22px;
  gap:22px;
}
body.theme-valeo .site-logo{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:154px;
  letter-spacing:0;
  line-height:1;
}
body.theme-valeo .site-logo strong{
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  font-weight:700;
  letter-spacing:.01em;
  color:#fffaf2;
}
body.theme-valeo .site-logo span{
  margin-top:5px;
  font:600 9px/1.1 "Segoe UI",system-ui,sans-serif;
  letter-spacing:.28em;
  color:#d3b879;
}
body.theme-valeo .site-nav{
  flex:1;
  justify-content:center;
  gap:22px;
  margin-left:0;
}
body.theme-valeo .site-nav a{
  color:rgba(255,255,255,.88);
  font-size:13px;
  white-space:nowrap;
}
body.theme-valeo .cart-header-btn{
  border-color:rgba(255,255,255,.38);
  color:#fff;
}
body.theme-valeo .header-inner>.btn{
  border-color:#d3b879;
  background:#d3b879;
  color:#182723;
}
body.theme-valeo .hero.hero-v1{
  padding:0 0 32px;
  background:#f5efe6;
}
body.theme-valeo .hero-v1>.container{
  max-width:1440px;
  padding-left:20px;
  padding-right:20px;
}
body.theme-valeo .hero-banner{
  min-height:570px;
  border-radius:0 0 16px 16px;
  border:0;
  box-shadow:0 18px 52px rgba(39,31,23,.14);
}
body.theme-valeo .hero-banner-image{
  object-position:center 62%;
}
body.theme-valeo .hero-banner-overlay{
  background:
    linear-gradient(90deg,rgba(8,15,13,.42) 0%,rgba(8,15,13,.18) 30%,rgba(8,15,13,0) 52%),
    linear-gradient(0deg,rgba(8,12,12,.24) 0%,rgba(8,12,12,0) 30%);
}
body.theme-valeo .hero-banner-content{
  width:min(590px,48%);
  padding:72px 0 68px 52px;
}
body.theme-valeo .hero-v1 .kicker{
  color:#d9bb78;
  font-size:11px;
  letter-spacing:.30em;
  margin-bottom:16px;
}
body.theme-valeo .hero-v1 h1{
  max-width:560px;
  font-size:clamp(52px,5vw,76px);
  line-height:.96;
  letter-spacing:-.025em;
  margin-bottom:22px;
}
body.theme-valeo .hero-v1 .hero-lead{
  max-width:530px;
  font-size:18px;
  line-height:1.48;
  color:rgba(255,250,242,.93);
}
body.theme-valeo .hero-v1 .hero-actions .btn{
  min-height:48px;
  padding:13px 24px;
}
body.theme-valeo .hero-v1 .hero-actions .btn-gold{
  background:#d3aa55;
  border-color:#efd495;
  color:#17221f;
}
/* hero-features: данные сохранены в CMS, из публичного Valeo-hero убраны (ТЗ 2026-10-06 §4) */
body.theme-valeo .hero-banner .hero-features{display:none!important;}
body.theme-valeo .category-strip{margin-top:12px;}
body.theme-valeo .category-strip-head{display:none;}
body.theme-valeo .category-carousel{
  gap:10px;
  padding:0;
}
body.theme-valeo .category-card{
  height:190px;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(42,35,27,.10);
}
body.theme-valeo .category-card span{
  left:14px;
  bottom:38px;
  padding-right:48px;
  font-size:20px;
}
body.theme-valeo .category-card small{
  left:14px;
  right:48px;
  bottom:17px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.theme-valeo .category-card::before{
  content:"→";
  position:absolute;
  z-index:3;
  right:12px;
  bottom:13px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#d3aa55;
  color:#fff;
  font:700 18px/1 Arial,sans-serif;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
body.theme-valeo .category-discount{
  top:10px;
  right:10px;
  min-width:46px;
  height:46px;
  font-size:14px;
}
body.theme-valeo .assurance-strip{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  margin-top:12px;
  background:#fffaf3;
  border:1px solid #e7ded1;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(55,43,31,.05);
}
body.theme-valeo .assurance-strip>a{
  min-height:78px;
  padding:15px 16px;
  border-right:1px solid #e7ded1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.theme-valeo .assurance-strip>a:last-child{border-right:0;}
body.theme-valeo .assurance-strip>a:hover,
body.theme-valeo .assurance-strip>a:focus-visible{
  background:#f6eddf;
  transform:translateY(-1px);
  box-shadow:inset 0 0 0 1px rgba(173,132,63,.15);
  outline:none;
}
body.theme-valeo .assurance-strip strong{
  color:#3b342d;
  font:600 13px/1.25 "Segoe UI",system-ui,sans-serif;
}
body.theme-valeo .assurance-strip span{
  margin-top:5px;
  color:#81766a;
  font-size:10.5px;
  line-height:1.25;
}

@media(min-width:1100px){
  body.theme-valeo .category-carousel{grid-auto-columns:calc((100% - 50px)/6);}
}

@media(max-width:1180px){
  body.theme-valeo .site-nav a:nth-child(5){display:none;}
  body.theme-valeo .site-nav{gap:15px;}
  body.theme-valeo .hero-banner-content{width:54%;}
  body.theme-valeo .hero-banner .hero-features{width:196px;right:16px;}
  body.theme-valeo .assurance-strip{grid-template-columns:repeat(3,1fr);}
  body.theme-valeo .assurance-strip>a:nth-child(3n){border-right:0;}
  body.theme-valeo .assurance-strip>a:nth-child(-n+3){border-bottom:1px solid #e7ded1;}
}

@media(max-width:900px){
  body.theme-valeo .site-header{position:sticky;}
  body.theme-valeo .header-inner{min-height:66px;}
  body.theme-valeo .site-logo strong{font-size:27px;}
  body.theme-valeo .site-logo span{font-size:7.5px;}
  body.theme-valeo .site-nav{display:none;}
  body.theme-valeo .header-inner>.btn{display:none;}
  body.theme-valeo .cart-header-btn{margin-left:auto;}
  body.theme-valeo .hero-v1>.container{padding-left:0;padding-right:0;}
  body.theme-valeo .hero-banner{
    min-height:650px;
    border-radius:0;
  }
  body.theme-valeo .hero-banner-content{
    left:0;
    right:0;
    bottom:128px;
    top:auto;
    width:100%;
    padding:24px 24px 22px;
    background:linear-gradient(180deg,transparent,rgba(5,10,11,.90) 22%,rgba(5,10,11,.96));
  }
  body.theme-valeo .hero-banner-image{object-position:63% center;}
  body.theme-valeo .hero-banner-overlay{
    background:linear-gradient(180deg,rgba(5,10,11,.10),rgba(5,10,11,.16) 42%,rgba(5,10,11,.78) 70%,rgba(5,10,11,.96));
  }
  body.theme-valeo .hero-v1 h1{
    font-size:clamp(38px,10vw,52px);
    max-width:520px;
  }
  body.theme-valeo .hero-v1 .hero-lead{max-width:520px;font-size:15px;}
  body.theme-valeo .category-strip{margin-top:0;padding:10px 14px 0;}
  body.theme-valeo .category-carousel{grid-auto-columns:64%;gap:10px;}
  body.theme-valeo .category-card{height:205px;}
  body.theme-valeo .assurance-strip{
    margin:12px 14px 0;
    grid-template-columns:repeat(2,1fr);
  }
  body.theme-valeo .assurance-strip>a{
    min-height:68px;
    border-right:1px solid #e7ded1!important;
    border-bottom:1px solid #e7ded1;
  }
  body.theme-valeo .assurance-strip>a:nth-child(2n){border-right:0!important;}
  body.theme-valeo .assurance-strip>a:nth-last-child(-n+2){border-bottom:0;}
}

@media(max-width:560px){
  body.theme-valeo .header-inner{padding-left:18px;padding-right:18px;}
  body.theme-valeo .site-logo{min-width:0;}
  body.theme-valeo .site-logo strong{font-size:25px;}
  body.theme-valeo .site-logo span{letter-spacing:.20em;}
  body.theme-valeo .cart-header-btn{font-size:12px;padding:8px 12px;}
  body.theme-valeo .hero-banner{min-height:675px;}
  body.theme-valeo .hero-banner-content{bottom:128px;padding:22px 20px 18px;}
  body.theme-valeo .hero-v1 .kicker{font-size:9px;letter-spacing:.22em;}
  body.theme-valeo .hero-v1 h1{font-size:35px;line-height:1.01;}
  body.theme-valeo .hero-v1 .hero-lead{font-size:14px;line-height:1.42;-webkit-line-clamp:3;}
  body.theme-valeo .hero-v1 .hero-actions{display:flex;flex-wrap:wrap;}
  body.theme-valeo .hero-v1 .hero-actions .btn{width:auto;min-height:42px;padding:10px 14px;}
  body.theme-valeo .category-carousel{grid-auto-columns:78%;}
  body.theme-valeo .category-card{height:205px;}
  body.theme-valeo .assurance-strip strong{font-size:12px;}
  body.theme-valeo .assurance-strip span{font-size:9.5px;}
}

/* approved template: mobile header (logo слева, корзина справа) — консолидировано 2026-10-06 */
@media(max-width:560px){
  body.theme-valeo .header-inner{gap:10px;}
  body.theme-valeo .site-logo span{display:block;white-space:nowrap;}
  body.theme-valeo .cart-header-btn{
    display:grid!important;
    place-items:center;
    position:absolute!important;
    right:18px!important;
    top:13px!important;
    margin:0!important;
    width:44px;
    min-width:44px;
    height:40px;
    padding:0;
    border-radius:50%;
    font-size:0;
    visibility:visible!important;
    opacity:1!important;
  }
  body.theme-valeo .cart-header-btn::before{
    content:"🛒";
    font-size:16px;
    line-height:1;
  }
  body.theme-valeo #cart-count{
    position:absolute;
    transform:translate(12px,-12px);
    min-width:18px;
    height:18px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#d3aa55;
    color:#17221f;
    font-size:10px;
  }
}

/* ===== Valeo directions showcase ===== */
.direction-showcase{
  padding:76px 0 68px;
  background:#efe7dc;
  border-top:1px solid rgba(47,73,71,.08);
}
.direction-showcase .container{max-width:1320px;}
.direction-showcase-head{max-width:760px;margin-bottom:30px;}
.direction-showcase-head .kicker{margin-bottom:10px;color:#a98543;}
.direction-showcase-head .section-title{font-size:clamp(34px,4vw,54px);color:#27231f;}
.direction-showcase-head .section-sub{max-width:680px;margin-bottom:0;font-size:16px;line-height:1.55;}

.direction-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.direction-block{
  position:relative;
  min-height:360px;
  overflow:hidden;
  border-radius:18px;
  background:#10201d;
  text-decoration:none;
  color:#fff;
  box-shadow:0 14px 36px rgba(44,35,26,.12);
  isolation:isolate;
}
.direction-block>img,
.direction-block-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease,filter .45s ease;
}
.direction-block:hover>img,
.direction-block:hover .direction-block-media{transform:scale(1.035);}
.direction-block-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(8,13,13,.10) 0%,rgba(8,13,13,.22) 36%,rgba(8,13,13,.88) 100%),
    linear-gradient(90deg,rgba(5,11,11,.46),transparent 58%);
}
.direction-block-content{
  position:absolute;
  z-index:2;
  left:0;
  right:0;
  bottom:0;
  padding:28px 30px 26px;
}
.direction-index{
  position:absolute;
  right:24px;
  top:-80px;
  color:rgba(255,255,255,.60);
  font:600 12px/1 "Segoe UI",system-ui,sans-serif;
  letter-spacing:.14em;
}
.direction-eyebrow{
  margin:0 0 8px;
  color:#e3c170;
  font-size:10px;
  font-weight:700;
  letter-spacing:.19em;
}
.direction-block h3{
  margin:0 0 9px;
  max-width:500px;
  color:#fffaf2;
  font-size:clamp(25px,2.5vw,34px);
  line-height:1.08;
}
.direction-block-content>p:not(.direction-eyebrow){
  max-width:520px;
  margin:0 0 18px;
  color:rgba(255,255,255,.80);
  font-size:14px;
  line-height:1.5;
}
.direction-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff4d8;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.direction-link b{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#d4aa55;
  color:#14221e;
  font-size:16px;
}
.direction-block-media--care{
  background:
    radial-gradient(circle at 74% 26%,rgba(217,186,111,.18),transparent 22%),
    radial-gradient(circle at 28% 72%,rgba(255,255,255,.07),transparent 26%),
    linear-gradient(135deg,rgba(255,255,255,.04) 0 1px,transparent 1px 18px),
    linear-gradient(160deg,#263c38 0%,#172724 48%,#0b1513 100%);
}
.direction-care .direction-block-overlay{
  background:
    radial-gradient(circle at 70% 35%,rgba(217,186,111,.10),transparent 30%),
    linear-gradient(180deg,rgba(4,9,8,.06),rgba(4,9,8,.52));
}
.direction-care::before,
.direction-care::after{
  content:"";
  position:absolute;
  z-index:1;
  border-radius:50%;
  border:1px solid rgba(220,190,119,.17);
}
.direction-care::before{width:270px;height:270px;right:55px;top:42px;}
.direction-care::after{width:160px;height:160px;right:110px;top:95px;}

/* финальная полировка: позиционирование каждого фото + hover-стрелка */
.direction-care .direction-block-media{object-position:center 68%;}
.direction-block[href="/catalog/bundles"] img{object-position:center 64%;}
.direction-block[href="/catalog/lampady"] img{object-position:center 70%;}
.direction-block[href="/catalog/vases"] img{object-position:center 58%;}
.direction-block[href="/catalog/flowers"] img{object-position:center 42%;}
.direction-block[href="/catalog/medals"] img{object-position:center 46%;}
.direction-block .direction-link b{transition:transform .35s ease;}
.direction-block:hover .direction-link b{transform:translateX(5px);}
.direction-block:hover .direction-block-overlay{
  background:
    linear-gradient(180deg,rgba(8,13,13,.12) 0%,rgba(8,13,13,.26) 36%,rgba(8,13,13,.84) 100%),
    linear-gradient(90deg,rgba(5,11,11,.42),transparent 58%);
}

@media(max-width:900px){
  .direction-showcase{padding:52px 0 50px;}
  .direction-grid{grid-template-columns:1fr;}
  .direction-block{min-height:330px;}
}
@media(max-width:560px){
  .direction-showcase{padding:42px 0 44px;}
  .direction-showcase .container{padding-left:14px;padding-right:14px;}
  .direction-showcase-head{margin-bottom:20px;padding:0 6px;}
  .direction-showcase-head .section-title{font-size:34px;}
  .direction-showcase-head .section-sub{font-size:14px;}
  .direction-grid{gap:12px;}
  .direction-block{min-height:300px;border-radius:14px;}
  .direction-block-content{padding:22px 20px 20px;}
  .direction-block h3{font-size:27px;max-width:92%;}
  .direction-block-content>p:not(.direction-eyebrow){
    font-size:13px;
    line-height:1.45;
    margin-bottom:15px;
    max-width:95%;
  }
  .direction-index{right:18px;top:-58px;font-size:10px;}
}

@media(max-width:560px){
  .direction-showcase,
  .direction-showcase .container,
  .direction-grid,
  .direction-block,
  .direction-block-content{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .direction-showcase .container{
    padding-left:14px;
    padding-right:14px;
  }
  .direction-showcase-head{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .direction-showcase-head .section-title{
    font-size:31px;
    line-height:1.04;
    max-width:100%;
    overflow-wrap:break-word;
  }
  .direction-showcase-head .section-sub,
  .direction-block h3,
  .direction-block-content>p{
    max-width:100%;
    overflow-wrap:break-word;
  }
  .direction-block h3{font-size:25px;}
}

/* --- STORE 4.1: поиск по каталогу и «Показать ещё» --- */
.catalog-search-row{position:relative;margin:0 0 14px;max-width:520px}
.catalog-search-row input{
  width:100%;padding:12px 44px 12px 16px;border:1px solid #cfc4b0;border-radius:12px;
  background:#fff;font:inherit;font-size:15px;color:#3c362c;
}
.catalog-search-row input:focus{outline:2px solid #3c362c;outline-offset:1px;border-color:#3c362c}
.catalog-search-clear{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:30px;height:30px;border:none;border-radius:50%;background:#e9e2d5;
  color:#3c362c;font-size:18px;line-height:1;cursor:pointer;
}
.catalog-load-more-wrap{text-align:center;margin-top:26px}
@media (max-width:640px){.catalog-search-row{max-width:100%}}

/* VALEO 4.2: наборы — подарок и выгода */
.bundle-gifts { font-size: 13px; color: #2e5e4a; background: rgba(46,94,74,.08); border-radius: 8px; padding: 6px 10px; margin: 8px 0 4px; line-height: 1.45; }
.bundle-savings { display: block; font-size: 12.5px; font-weight: 700; color: #2e5e4a; margin-top: 2px; }
