/* =========================================================
   ColorHub — дополнительные секции и виджеты
   ========================================================= */

/* ---------- Services ---------- */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.serv-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.serv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.serv-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: .1em;
}
.serv-card__icon {
  width: 52px; height: 52px;
  margin: 18px 0 20px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--c, var(--primary));
  color: #fff;
}
.serv-card__icon svg { width: 26px; height: 26px; }
.serv-card h3 { font-size: 20px; margin-bottom: 10px; }
.serv-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Interactive RAL picker ---------- */
.ral {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 48px;
}
.ral__preview-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.ral__preview {
  aspect-ratio: 4 / 3;
  background: var(--c-blue);
  transition: background .5s var(--ease);
}
.ral__readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.ral__readout .code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
}
.ral__readout .name { font-size: 14px; color: var(--muted); }
.ral__readout .tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.ral__fan {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.ral__chip {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.ral__chip:hover { transform: scale(1.12); z-index: 2; box-shadow: var(--shadow); }
.ral__chip.is-active { border-color: var(--ink); transform: scale(1.12); }
.ral__note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- Stats / numbers ---------- */
/* ---------- B2B segments (главное — оптовые клиенты) ---------- */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
/* Блок «По вопросам сотрудничества» */
.coop-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.coop-cta__contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.coop-cta__contacts a {
  display: inline-flex; align-items: center; font-weight: 600; font-size: 16px;
  color: var(--ink); transition: color .2s;
}
.coop-cta__contacts a:hover { color: var(--primary); }
.b2b-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--bg-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  transition: transform .45s var(--ease-out);
}
.b2b-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--primary)), transparent 70%);
  opacity: .5;
  z-index: -1;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.b2b-card:hover { transform: translateY(-6px); }
.b2b-card:hover::after { transform: scale(1.25); opacity: .75; }
.b2b-card__icon { width: 50px; height: 50px; color: var(--c, var(--primary)); }
.b2b-card__icon svg { width: 100%; height: 100%; }
.b2b-card h3 { font-size: 21px; letter-spacing: -.02em; }
.b2b-card p { font-size: 14.5px; color: rgba(255,255,255,.66); }
.b2b-card__tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c, var(--primary));
}

/* ---------- Cooperation + request form ---------- */
.coop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 48px;
}
.coop__steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 0; }
.coop__steps li {
  position: relative;
  padding: 0 0 26px 46px;
  border-left: 2px solid var(--line);
  margin-left: 16px;
}
.coop__steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.coop__steps li::before {
  content: attr(data-n);
  position: absolute;
  left: -17px; top: -4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c, var(--primary));
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.coop__steps b { display: block; font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.coop__steps span { font-size: 14px; color: var(--muted); }

.req-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(26px, 3vw, 38px);
}
.req-form h3 { font-size: 24px; margin-bottom: 6px; }
.req-form .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.req-form .field { margin-bottom: 14px; }
.req-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.req-form input, .req-form select, .req-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit; font-size: 15px;
  background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.req-form textarea { min-height: 84px; resize: vertical; }
.req-form input:focus, .req-form select:focus, .req-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.req-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.req-form .legal { font-size: 12px; color: var(--faint); margin-top: 14px; text-align: center; }
.req-form .phones { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.req-form .phones a { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--ink); display: inline-flex; flex-direction: column; }
.req-form .phones a:first-child { text-align: left; align-items: flex-start; }
.req-form .phones a:last-child { text-align: right; align-items: flex-end; }
.req-form .phones a small { font-family: var(--font-body); font-size: 11px; color: var(--faint); font-weight: 500; }
.req-form .form-ok { display: none; text-align: center; padding: 24px 0; }
.req-form .form-ok svg { width: 52px; height: 52px; color: var(--c-green); margin: 0 auto 14px; }
.req-form.is-sent .form-ok { display: block; }
.req-form.is-sent form { display: none; }
@media (max-width: 860px) { .coop { grid-template-columns: 1fr; } }

/* ---------- Retail band (Автокраски — вторичный розничный) ---------- */
.retail {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: linear-gradient(120deg, var(--primary-tint), #fff 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
}
.retail__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.retail__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.retail h2 { font-size: clamp(28px, 3.6vw, 42px); }
.retail p { color: var(--muted); margin-top: 14px; max-width: 460px; font-size: 16px; }
.retail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.retail__visual {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.retail__visual i, .retail__swatches i { aspect-ratio: 1; border-radius: 12px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.retail__swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.retail--lg h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; }
.retail__hours { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.retail__hours b { color: var(--ink); }
/* Фото магазина в герое */
.retail__visual--photo { display: block; }
.retail__visual--photo img {
  width: 100%; height: 100%; min-height: 280px; max-height: 420px;
  object-fit: cover; border-radius: var(--radius); display: block;
}
/* Карта */
.retail__map { border-radius: var(--radius); overflow: hidden; min-height: 320px; align-self: stretch; }
.retail__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
/* Галерея фото магазина — по 3 в ряд, покрупнее */
.shop-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shop-gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.shop-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shop-gallery__item:hover img { transform: scale(1.05); }
/* Как к нам добраться — пошаговый маршрут (маленькие миниатюры, клик = лайтбокс) */
.shop-route {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 16px;
}
.shop-route__step { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); cursor: zoom-in; }
.shop-route__step img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shop-route__step:hover img { transform: scale(1.04); }
.shop-gallery__item { cursor: zoom-in; }

/* ===== Лайтбокс (попап увеличенного фото на той же странице) ===== */
.ch-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(12, 14, 20, .88);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.ch-lightbox.is-open { opacity: 1; visibility: visible; }
.ch-lightbox__img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .25s ease;
  object-fit: contain;
}
.ch-lightbox.is-open .ch-lightbox__img { transform: scale(1); }
.ch-lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 26px; line-height: 1;
  transition: background .2s, transform .2s;
}
.ch-lightbox__close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }
.ch-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 34px; line-height: 1; padding-bottom: 4px;
  transition: background .2s;
}
.ch-lightbox__nav:hover { background: rgba(255,255,255,.26); }
.ch-lightbox__nav--prev { left: 18px; }
.ch-lightbox__nav--next { right: 18px; }
.ch-lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .04em;
}
.ch-lightbox--solo .ch-lightbox__nav,
.ch-lightbox--solo .ch-lightbox__counter { display: none; }
@media (max-width: 600px) {
  .ch-lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
  .ch-lightbox__nav--prev { left: 8px; }
  .ch-lightbox__nav--next { right: 8px; }
}
.shop-route__num {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
@media (max-width: 760px) {
  .retail { grid-template-columns: 1fr; }
  .retail__visual { max-width: 280px; }
  .retail__visual--photo, .retail__map { max-width: none; }
  .shop-gallery, .shop-route { grid-template-columns: repeat(2, 1fr); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.stat b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--c, var(--primary)), color-mix(in srgb, var(--c, var(--primary)) 55%, var(--ink)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Brand partners marquee ---------- */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  justify-content: center;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  color: var(--ink-soft);
  transition: transform .35s var(--ease-out), border-color .3s, color .3s;
}
.brand-pill:hover { transform: translateY(-3px); border-color: var(--ink); color: var(--ink); }
.brand-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--primary)); }
.brand-pill--logo { padding: 14px 26px; min-height: 56px; }
.brand-pill--logo img {
  height: 30px; width: auto; max-width: 130px; object-fit: contain; display: block;
  filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s;
}
.brand-pill--logo:hover img { filter: none; opacity: 1; }

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-right: none;
}
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, var(--primary));
  color: #fff;
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .step { border-right: 1px solid var(--line); border-bottom: none; }
  .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .step:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
}

/* ---------- AI helper feature ---------- */
.ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 48px;
}
.ai__demo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  max-width: 440px;
}
.ai__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ai__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-tint); display: grid; place-items: center; }
.ai__avatar svg { width: 22px; height: 22px; color: var(--primary); }
.ai__head b { font-size: 15px; }
.ai__head span { font-size: 12px; color: var(--c-green); display: flex; align-items: center; gap: 6px; }
.ai__head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }
.ai__msgs { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; }
.ai__msg { padding: 12px 16px; border-radius: 14px; font-size: 14px; max-width: 86%; line-height: 1.5; }
.ai__msg--bot { background: var(--bg-soft); border-bottom-left-radius: 4px; }
.ai__msg--user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai__input { display: flex; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.ai__input input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 11px 16px; font: inherit; font-size: 14px; }
.ai__input button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--primary); color: #fff; display: grid; place-items: center; }
.ai__list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ai__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.ai__list svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) { .ai, .ral { grid-template-columns: 1fr; } .ai__demo { margin: 0 auto; } }

/* ---------- Mobile drawer ---------- */
.nav__burger {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nav__burger:hover { background: var(--surface); border-color: var(--ink-soft); }
@media (max-width: 900px) { .nav__burger { display: flex; } }

/* Иконка: три линии → X */
.nav__burger-lines {
  width: 18px; height: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  flex-shrink: 0;
}
.nav__burger-lines i {
  display: block; width: 18px; height: 2px;
  background: var(--ink) !important; border-radius: 2px;
  transform-origin: center;
  transition: transform .3s cubic-bezier(.5,.85,.25,1.1), opacity .2s;
}
/* Анимация в X при открытом меню */
.nav__burger[aria-expanded="true"] .nav__burger-lines i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-lines i:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav__burger[aria-expanded="true"] .nav__burger-lines i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav__burger-label { line-height: 1; color: var(--ink) !important; }

/* Затемнение под drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(10,15,30,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Drawer — выезжает снизу */
.drawer {
  position: fixed;
  inset: auto 0 0;
  z-index: 99;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 0;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.32,.72,0,1);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,.14);
}
.drawer.is-open { transform: translateY(0); }

/* Шапка drawer */
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.drawer__close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid; place-items: center;
  cursor: pointer; color: var(--ink-soft);
  transition: background .2s;
}
.drawer__close:hover { background: var(--line); }
.drawer__close svg { width: 18px; height: 18px; }

/* Ссылки */
.drawer__links {
  display: flex; flex-direction: column;
  padding: 8px 0;
  flex: 1;
}
.drawer__links a {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  padding: 14px 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: color .15s, background .15s;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer__links a::after {
  content: '→'; font-size: 16px; color: var(--muted);
  transition: transform .2s, color .15s;
}
.drawer__links a:hover { color: var(--primary); background: rgba(28,117,188,.04); }
.drawer__links a:hover::after { transform: translateX(4px); color: var(--primary); }

/* Подвал drawer */
.drawer__foot {
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.drawer__phone {
  display: block; text-align: center;
  font-size: 17px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .01em;
}
.drawer__phone:hover { color: var(--primary); }

/* ---------- Floating AI chat bubble ---------- */
.chat-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
}
.chat-fab__btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 36px -10px rgba(28,117,188,.6);
  transition: transform .3s var(--ease-out);
}
.chat-fab__btn:hover { transform: scale(1.06); }
.chat-fab__btn svg { width: 28px; height: 28px; }
.chat-fab__panel {
  position: absolute;
  right: 0; bottom: 76px;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.chat-fab__panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-fab__panel h4 { font-family: var(--font-display); font-size: 17px; margin-bottom: 8px; }
.chat-fab__panel p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.chat-fab__panel .btn { width: 100%; justify-content: center; }
@media (max-width: 560px) { .chat-fab__panel { width: min(86vw, 320px); } }

/* ---------- Тщательный мобильный проход ---------- */
@media (max-width: 768px) {
  .ral__fan { grid-template-columns: repeat(8, 1fr); }
  .b2b-grid { gap: 14px; }
  .serv-grid, .b2b-grid, .stats { margin-top: 32px; }
}
@media (max-width: 560px) {
  .req-form { padding: 22px 18px; }
  .req-form h3 { font-size: 21px; }
  .req-form .phones { flex-direction: column; gap: 10px; }
  .ral__readout { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .ral__fan { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .brand-pill { padding: 12px 18px; font-size: 16px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-fab__btn { width: 54px; height: 54px; }
  .chat-fab__btn svg { width: 24px; height: 24px; }
}

/* ---------- Скрываем плагин cookieadmin полностью ---------- */
.cookieadmin_law_container,
.cookieadmin_re_consent,
.cookieadmin_cookie_modal,
.cookieadmin_modal_overlay { display: none !important; }

/* ---------- AI-чат: кнопка-кружок без текста, панель на мобильном ---------- */
.chw-launcher {
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 50% !important;
}
.chw-launcher span { display: none !important; }
.chw-launcher svg { width: 24px !important; height: 24px !important; }

/* iOS: font-size < 16px вызывает авто-зум при фокусе на input — фиксируем */
.chw-panel input,
.chw-panel textarea { font-size: 16px !important; }

@media (max-width: 600px) {
  .chw-panel {
    right: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 100vw !important; max-width: 100vw !important;
    height: 90dvh !important; max-height: 90dvh !important;
    border-radius: 20px 20px 0 0 !important;
  }
  .chw-panel.is-open {
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
  }
  .chw-head { position: sticky !important; top: 0 !important; z-index: 1 !important; }
  .chw-body { overflow-y: auto !important; min-height: 0 !important; }
  .chw-foot { position: sticky !important; bottom: 0 !important; background: #fff !important; }
}

/* ---------- Наш cookie-баннер ---------- */
.ch-cookie-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.32,.72,0,1);
  will-change: transform;
}
.ch-cookie-bar.is-visible { transform: translateY(0); }

.ch-cookie-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.ch-cookie-bar__text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.ch-cookie-bar__icon {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--surface);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--primary);
}
.ch-cookie-bar__icon svg { width: 16px; height: 16px; }
.ch-cookie-bar__text p {
  font-size: 13px; color: var(--muted); line-height: 1.45;
  margin: 0;
}
.ch-cookie-bar__text a { color: var(--primary); font-weight: 500; }
.ch-cookie-bar__actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.ch-cookie-bar__actions .btn { padding: 9px 18px; font-size: 13px; }
.ch-cookie-bar__decline {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: none; border: none; cursor: pointer;
  transition: color .15s; padding: 0;
}
.ch-cookie-bar__decline:hover { color: var(--ink); }

@media (max-width: 600px) {
  .ch-cookie-bar__inner { gap: 10px; }
  .ch-cookie-bar__text p { font-size: 12px; }
  .ch-cookie-bar__actions { gap: 8px; }
  .ch-cookie-bar__actions .btn { padding: 8px 14px; font-size: 12px; }
}
