:root {
  --blue: #2E5978;
  --blue-dark: #21425a;
  --orange: #f5912b;
  --orange-dark: #e07f17;
  --navy: #0b1733;
  --ink: #14213d;
  --text: #3a4255;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e5e9f0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(13, 38, 76, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 38, 76, 0.16);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 89, 120, .3);
}
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 10px 30px rgba(46, 89, 120, .4); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow .2s ease;
}
.site-header.header--scrolled { box-shadow: 0 6px 24px rgba(13, 38, 76, .1); }

/* Верхняя строка */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}
.logo__mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.logo--light .logo__mark-img {
  filter: brightness(0) invert(1);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-size: 20px; color: var(--ink); letter-spacing: .5px; }
.logo__text small { font-size: 11px; color: var(--muted); }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: rgba(255,255,255,.6); }

.topbar__info {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.topbar__item { display: flex; align-items: flex-start; gap: 10px; }
.topbar__icon { font-size: 20px; line-height: 1.2; }
.topbar__lines { display: flex; flex-direction: column; line-height: 1.25; }
.topbar__label { font-size: 12px; color: var(--muted); }
.topbar__value { font-size: 14px; color: var(--ink); font-weight: 600; }
.topbar__phone { font-size: 16px; white-space: nowrap; }
.topbar__phone:hover { color: var(--blue); }

.cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  flex-shrink: 0;
  transition: .2s;
}
.cart:hover { border-color: var(--blue); background: #eaf1f6; }
.cart__icon { font-size: 22px; }
.cart__count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid; place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  border: 2px solid #fff;
}

/* Нижняя строка: меню + поиск */
.navbar { background: #2E5978; position: relative; overflow-x: clip; overflow-y: visible; }
.navbar__inner {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 56px;
}
.catalog-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  background: #313C48;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.catalog-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background-color: inherit;
}
.catalog-btn:hover { background: #232b34; }
.catalog-btn__icon { font-size: 18px; }

/* Каталог: контейнер с выпадающим мега-меню */
.catalog-menu { display: flex; align-items: stretch; }
.catalog-menu .catalog-btn { height: 100%; }
.catalog-menu:hover .catalog-btn { background: #232b34; }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(13, 38, 76, .18);
  border-top: 1px solid rgba(255, 255, 255, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.catalog-menu:hover .mega,
.catalog-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mega__col {
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mega__col--left { padding-right: 48px; align-items: flex-end; }
.mega__col--right { padding-left: 48px; border-left: 1px solid var(--line); }
.mega__colwrap { width: 100%; max-width: 320px; }
.mega__col--left .mega__colwrap { margin-left: auto; }
.mega__head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.mega__head:hover { color: var(--blue); }
.mega__head-icon { display: inline-flex; }
.mega__head-icon svg { width: 26px; height: 26px; color: var(--blue); }
.mega__list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mega__list a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  transition: background .15s, color .15s;
}
.mega__list a:hover { background: var(--bg-soft); color: var(--blue); }

.nav { display: flex; align-items: stretch; gap: 4px; }
.nav__link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  transform-origin: center;
  transition: transform .2s, color .2s;
}
.nav__link:hover { color: #fff; transform: scale(1.12); }
.nav__link.active { color: #fff; font-weight: 600; }

.search { display: flex; align-items: center; margin-left: auto; flex: 1; max-width: 420px; position: relative; }
.search__input {
  flex: 1;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.search__input::placeholder { color: #9aa3b2; }

/* Поисковые подсказки */
.search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 200;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.search__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  transition: background .15s;
  border-bottom: 1px solid var(--line);
}
.search__dropdown-item:last-child { border-bottom: none; }
.search__dropdown-item:hover { background: #f0f4f8; }
.search__dropdown-item mark {
  background: none;
  color: var(--blue);
  font-weight: 700;
}
.search__dropdown-item__cat {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.search__dropdown-empty {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.search__btn {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: #313C48;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.search__btn:hover { background: #232b34; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Корзина: выдвижная панель */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 40px rgba(13,38,76,.2);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h3 { font-size: 19px; color: var(--ink); }
.cart-drawer__close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-drawer__close:hover { color: var(--ink); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__info { flex: 1; }
.cart-item__name { font-size: 14px; color: var(--ink); font-weight: 600; }
.cart-item__price { font-size: 13px; color: var(--muted); }
.cart-item__qty { font-weight: 700; color: var(--blue); font-size: 14px; white-space: nowrap; }
.cart-item__remove { background: none; border: none; cursor: pointer; color: #c0392b; font-size: 18px; align-self: flex-start; }
.qty { display: inline-flex; align-items: center; gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty__btn {
  width: 28px; height: 28px;
  border: none;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.qty__btn:hover { background: #dfe8ef; color: var(--blue); }
.qty__num { min-width: 34px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.cart-drawer__foot { padding: 20px 24px 30px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,23,51,.45);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background:
    linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 38%, rgba(255,255,255,.62) 68%, rgba(255,255,255,.42) 100%),
    url("hero-bg-opt.jpg?v=2") center right / cover no-repeat,
    linear-gradient(180deg, #f7faff, #ffffff);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(46, 89, 120, .1);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -1px;
}
.hero__text {
  margin: 22px 0 30px;
  font-size: 18px;
  color: var(--text);
  max-width: 540px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__stats strong { display: block; font-size: 30px; color: var(--ink); font-weight: 800; }
.hero__stats span { font-size: 14px; color: var(--muted); }

.hero__visual { position: relative; height: 420px; }
.hero__card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.hero__icon { font-size: 30px; }
.hero__card--1 { top: 20px; left: 10px; }
.hero__card--2 { top: 160px; right: 0; animation-delay: 1.5s; }
.hero__card--3 { bottom: 20px; left: 40px; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Sections */
.section { padding: 90px 0; }
.section--muted { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow--light { color: #7eb0ff; }
.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.5px;
}
.section--dark .section__title { color: #fff; }
.section__subtitle { margin-top: 14px; font-size: 17px; color: var(--muted); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--bg-soft);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text); }

/* Catalog */
/* Страница каталога: табы разделов (по центру) */
.catalog-section-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 340px;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

/* Панели категорий на странице каталога */
.catalog-cats-panel { margin-bottom: 32px; }
.catalog-cats-panel .catalog { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .catalog-cats-panel .catalog { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .catalog-cats-panel .catalog { grid-template-columns: repeat(2, 1fr); } }

/* Кнопки-категории (button вместо a) */
button.catalog__item {
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
button.catalog__item:hover { border-color: var(--blue); color: var(--blue); }

/* Строка активной категории */
.catalog-active-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.catalog-active-cat strong { font-size: 16px; color: var(--ink); }
.catalog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.catalog-back-btn:hover { text-decoration: underline; }
.catalog-back-btn svg { width: 16px; height: 16px; }

/* Каталог: переключатели Электрика / Сантехника */
.cat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  margin: 0 auto 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.cat-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cat-tab + .cat-tab { border-left: 1px solid var(--line); }
.cat-tab:hover { color: var(--blue); }
.cat-tab.is-active { background: var(--blue); color: #fff; }
.cat-tab__icon { display: inline-flex; }
.cat-tab__icon svg { width: 22px; height: 22px; }
.cat-tab.is-active .cat-tab__icon svg { color: #fff; }

.cat-panel[hidden] { display: none; }
.catalog-active-cat[hidden] { display: none !important; }
.catalog-section-tabs[hidden] { display: none !important; }
.catalog-cats-panel[hidden] { display: none !important; }
.cat-panel { animation: catFade .25s ease; }
@keyframes catFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.catalog__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--ink);
  transition: .2s;
}
.catalog__item span { font-size: 24px; }
.catalog__item:hover { border-color: var(--blue); color: var(--blue); transform: translateX(4px); }

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.advantage__num {
  font-size: 38px;
  font-weight: 800;
  color: var(--blue);
  opacity: .35;
  margin-bottom: 10px;
}
.advantage h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.advantage p { font-size: 14px; color: var(--text); }

/* About */
.about__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
  align-items: center;
}
.about__text p { margin: 16px 0; font-size: 16px; }
.about__text .btn { margin-top: 12px; }
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about__stats div {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}
.about__stats strong { display: block; font-size: 34px; color: #fff; font-weight: 800; }
.about__stats span { font-size: 14px; color: rgba(255,255,255,.6); }

/* Contacts */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contacts__list { list-style: none; margin-top: 30px; }
.contacts__list li {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contacts__label { font-size: 13px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.contacts__list a:hover { color: var(--blue); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form__field span { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form__field input,
.form__field select,
.form__field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10,92,255,.12);
}
.form__field input.invalid { border-color: #e03131; box-shadow: 0 0 0 4px rgba(224,49,49,.1); }
.form__note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.form__success {
  margin-top: 14px;
  padding: 14px;
  background: #e8f7ee;
  color: #137a3a;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

/* Footer */
.footer { background: #08101f; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__about { margin-top: 16px; font-size: 14px; max-width: 320px; }
.footer__col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer__col a, .footer__col span { display: block; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* Section CTA */
.section__cta { text-align: center; margin-top: 40px; }

/* White button */
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: #eaf1f6; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue), #3a6e93);
  color: #fff;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 56px 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-banner p { margin-top: 8px; color: rgba(255,255,255,.85); font-size: 16px; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(700px 400px at 90% -30%, rgba(10,92,255,.12), transparent 60%),
    linear-gradient(180deg, #f7faff, #ffffff);
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero__title {
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-top: 10px;
}
.page-hero__text { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 620px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); align-items: center; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { color: var(--muted); }

/* Service rows */
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 26px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: box-shadow .2s, border-color .2s;
}
.service-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.service-row__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  font-size: 34px;
  background: var(--bg-soft);
  border-radius: 16px;
}
.service-row__body h2 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.service-row__body p { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ticks li { font-size: 14px; color: var(--text); position: relative; padding-left: 24px; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 700;
}
.service-row__price { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 130px; }
.service-row__price span { font-size: 13px; color: var(--muted); }
.service-row__price strong { font-size: 22px; color: var(--ink); }
.service-row__price .btn { margin-top: 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.step__num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(10,92,255,.3);
}
.step h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text); }

/* Catalog filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: .2s;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product__img {
  height: 180px;
  display: grid; place-items: center;
  font-size: 54px;
  background: var(--bg-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.product__body { padding: 14px 16px 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.product__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--blue);
  background: rgba(10,92,255,.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.product__body h3 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}
.product__body p {
  font-size: 12.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 0;
}
.product__foot { display: flex; flex-direction: column; margin-top: auto; padding: 14px 20px 20px; gap: 10px; }
.product__foot strong { font-size: 18px; color: var(--ink); }
.product__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.product__link:hover { color: inherit; }

/* Счётчик количества товара */
.product__qty { display: flex; align-items: center; gap: 6px; }
.qty__btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink);
  font-family: inherit; transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.qty__btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.qty__val { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink); }

/* Активная категория в панели */
.catalog__item--btn.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.catalog__item--btn.is-active svg { color: #fff !important; }

/* Страница отдельного товара */
.product-detail__grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
}
.product-detail__media {
  background: var(--bg-soft); border-radius: var(--radius);
  height: 380px; display: grid; place-items: center;
}
.product-detail__media svg { width: 100px; height: 100px; color: var(--ink); stroke-width: 1.2; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.product-detail__info { display: flex; flex-direction: column; gap: 16px; }
.product-detail__name { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0; }
.product-detail__sku { font-size: 14px; color: var(--muted); }
.product-detail__desc { font-size: 16px; color: var(--text); line-height: 1.7; }
.product-detail__price { font-size: 30px; font-weight: 800; color: var(--blue); }
.product-detail__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.product-detail__actions .qty__btn { width: 36px; height: 36px; font-size: 20px; }
.product-detail__actions .qty__val { font-size: 18px; min-width: 28px; }
.product-detail__back { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 8px; }
.product-detail__back:hover { text-decoration: underline; }
@media (max-width: 768px) { .product-detail__grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 768px) { .product-detail__media { height: 240px; } }

.catalog-note { text-align: center; color: var(--muted); padding: 40px 0; }

/* About grid */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: start; }
.about-grid__text p { margin: 14px 0; font-size: 16px; }
.about-grid__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.stat-card strong { display: block; font-size: 30px; color: var(--blue); font-weight: 800; }
.stat-card span { font-size: 13px; color: var(--muted); }

/* Cities */
.cities { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.city {
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.city--active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Brands */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.brand-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
}

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Form title */
.form__title { font-size: 22px; color: var(--ink); margin-bottom: 20px; }

/* Checkout (оформление заказа) */
.checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.checkout__title { font-size: 22px; color: var(--ink); margin-bottom: 20px; }
.checkout__summary {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-item__info { display: flex; flex-direction: column; gap: 3px; }
.checkout-item__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.checkout-item__meta { font-size: 13px; color: var(--muted); }
.checkout-item__sum { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  margin-top: 4px;
  font-size: 18px;
  color: var(--ink);
}
.checkout__total strong { font-size: 22px; color: var(--blue); }
.checkout__empty { color: var(--muted); padding: 20px 0; }
.checkout__empty a { color: var(--blue); font-weight: 600; }
.checkout__form input[type="file"] {
  padding: 10px 14px;
  background: #fbfcfe;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.checkout__form input[type="file"]:hover { border-color: var(--blue); }
.form__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,23,51,.55); }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop .3s ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.modal__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  background: #e8f7ee;
  color: #16a34a;
  font-size: 38px;
  border-radius: 50%;
}
.modal__box h3 { font-size: 26px; color: var(--ink); margin-bottom: 12px; }
.modal__box p { font-size: 16px; color: var(--text); margin-bottom: 26px; }

/* Векторные иконки (Lucide) */
.lucide { display: block; stroke-width: 1.9; }
.topbar__icon svg { width: 22px; height: 22px; color: var(--blue); }
.cart__icon svg { width: 24px; height: 24px; color: var(--ink); }
.catalog-btn__icon svg { width: 20px; height: 20px; color: #fff; }
.card__icon svg { width: 30px; height: 30px; color: var(--ink); }
.service-row__icon svg { width: 36px; height: 36px; color: var(--ink); }
.hero__icon svg { width: 30px; height: 30px; color: var(--blue); }
.catalog__item span { display: inline-flex; }
.catalog__item span svg { width: 24px; height: 24px; color: var(--ink); }
.product__img svg { width: 56px; height: 56px; color: var(--ink); stroke-width: 1.4; }
.modal__icon svg { width: 38px; height: 38px; color: #16a34a; }
.cart-item__remove svg { width: 18px; height: 18px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .topbar__info { gap: 20px; }
  .topbar__info .topbar__item:nth-child(-n+2) { display: none; }
  .search { max-width: 300px; }
  .nav__link { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.96)),
      url("hero-bg-opt.jpg?v=2") center / cover no-repeat,
      linear-gradient(180deg, #f7faff, #ffffff);
  }
  .cards, .catalog, .advantages { grid-template-columns: repeat(2, 1fr); }
  .about__inner, .contacts__inner { grid-template-columns: 1fr; gap: 36px; }
  .checkout { grid-template-columns: 1fr; gap: 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-row { grid-template-columns: 60px 1fr; }
  .service-row__icon { width: 60px; height: 60px; font-size: 28px; }
  .service-row__price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; min-width: 0; margin-top: 6px; }
  .service-row__price .btn { margin-top: 0; }
}
@media (max-width: 860px) {
  .topbar__inner { height: 64px; gap: 14px; }
  .topbar__info { display: none; }
  .burger { display: flex; order: 5; }
  .cart { width: 44px; height: 44px; }
  .logo__text small { display: none; }

  /* Меню превращается в выдвижную панель */
  .nav-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--mobile-header-h, 118px);
    background: rgba(13, 38, 76, .45);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header {
    position: relative;
    z-index: 70;
  }

  .nav {
    position: fixed;
    top: var(--mobile-header-h, 118px);
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    height: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 30px;
    gap: 0;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    z-index: 60;
    overflow-y: auto;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: none; }
  .nav__link { color: var(--ink); padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav__link:hover { background: var(--bg-soft); color: var(--blue); }
  .nav__link.active { background: var(--bg-soft); color: var(--blue); }

  .navbar__inner { gap: 12px; padding-top: 10px; padding-bottom: 10px; align-items: center; }
  .catalog-btn { border-radius: 8px; padding: 10px 16px; }
  .catalog-btn::before { display: none; }
  .mega { display: none; }
  .search { max-width: none; margin-left: 0; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .cards, .catalog, .advantages, .form__row, .footer__inner, .about__stats { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
  .hero__stats { gap: 24px; }
  .steps, .products, .about-grid__stats { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  .catalog-btn span:not(.catalog-btn__icon) { display: none; }
  .catalog-btn { padding: 10px 14px; }
  .search__input { font-size: 13px; }
}

/* ===================== Варианты товара ===================== */
.product__variants {
  padding: 0 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product__variants-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.product__variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.variant-chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.variant-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.variant-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Варианты на странице товара (крупнее) */
.product-detail__variants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}
.product-detail__variants-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.product-detail__variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-chip--lg {
  padding: 7px 16px;
  font-size: 14px;
  border-radius: 24px;
}

/* Характеристики в карточке товара */
.product__specs {
  padding: 6px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.product__spec-row {
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.4;
}
.product__spec-name {
  color: var(--muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product__spec-val {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* Характеристики на странице товара */
.product-detail__specs {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.product-detail__specs-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.product-detail__specs-table {
  width: 100%;
  border-collapse: collapse;
}
.product-detail__specs-table tr:nth-child(even) td {
  background: var(--bg-soft);
}
.product-detail__specs-table td {
  padding: 8px 12px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.product-detail__specs-table td.spec-name {
  color: var(--muted);
  width: 55%;
}
.product-detail__specs-table td.spec-value {
  color: var(--ink);
  font-weight: 600;
}

/* ===================== Ссылки на документы в подвале ===================== */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  order: 3;
  flex-basis: 100%;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__legal a {
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}
.footer__legal a:hover { color: #fff; text-decoration: underline; }

/* ===================== Юридические страницы ===================== */
.legal {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.legal__meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.legal h2 {
  color: var(--ink);
  font-size: 20px;
  margin: 30px 0 12px;
}
.legal p { margin-bottom: 14px; }
.legal ul {
  margin: 0 0 16px 22px;
  padding: 0;
}
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }

/* ===================== Плавающие мессенджеры ===================== */
.messengers {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.messengers__btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 38, 76, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.messengers__btn svg { width: 28px; height: 28px; }
.messengers__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(13, 38, 76, .4);
}
.messengers__btn--tg { background: #29a9eb; }
.messengers__btn--max { background: linear-gradient(135deg, #2b5cf0, #8a3ce8); }

@media (max-width: 640px) {
  .messengers { right: 12px; gap: 10px; }
  .messengers__btn { width: 46px; height: 46px; }
  .messengers__btn svg { width: 24px; height: 24px; }
}

/* ===================== Баннер согласия на cookie ===================== */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 22px;
  background: #0b1733;
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(8, 16, 31, .45);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
}
.cookie-consent__btn {
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  padding: 12px 26px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  background: var(--orange);
  color: #fff;
  transition: background .2s;
}
.cookie-consent__btn:hover { background: var(--orange-dark); }

@media (max-width: 640px) {
  .cookie-consent {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
  }
  .cookie-consent__btn { width: 100%; }
}
