/* ===== GLOBAL VARIABLES ===== */
:root {
  --bg1: #050a14;
  --bg2: #081223;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.72);
  --line: rgba(255,255,255,.10);
  --blue: #2f6bff;
  --blue2: #1f56d9;
  --orange: #ff7a00;
  --orange2: #ff5e00;
  --green: #47c27a;
  --green2: #2ea864;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #050a14;
}

a { color: inherit; }

.container {
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  z-index: 20;
  background: rgba(1, 8, 20, 0.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,180,255,.28), rgba(47,107,255,.18), rgba(120,180,255,.28), transparent);
  opacity: .85;
  pointer-events: none;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  min-height: 128px;
}
.logo {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .4px;
  max-width: 360px;
  overflow: visible;
}
.logo::before {
  content: "";
  position: absolute;
  inset: -20px -28px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 70% at 35% 45%, rgba(180,220,255,.24), rgba(90,160,255,.12) 40%, rgba(90,160,255,.05) 60%, transparent 75%);
  filter: blur(14px);
  opacity: .55;
}
.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 108px;
  object-fit: contain;
}
.menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.menu a {
  text-decoration: none;
  color: rgba(234,240,255,.82);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .4px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.menu a:hover {
  color: #eaf0ff;
  background: rgba(47,107,255,.10);
  border-color: rgba(120,180,255,.18);
  box-shadow: 0 0 0 1px rgba(120,180,255,.14), 0 12px 26px rgba(0,0,0,.22), 0 0 18px rgba(120,180,255,.14);
}
.header-right {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phone {
  color: rgba(234,240,255,.82);
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .2px;
  line-height: 1.2;
}
.phone:hover {
  color: rgba(234,240,255,.98);
}
.tg-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
}
.tg-link:hover { background: rgba(255,255,255,.14); }
.tg-ico { width: 18px; height: 18px; fill: #fff; }
.cart-btn {
  border: 1px solid rgba(47,107,255,.28);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(47,107,255,.14), 0 10px 22px rgba(0,0,0,.28);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.cart-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(47,107,255,.42);
  box-shadow: 0 0 0 1px rgba(47,107,255,.22), 0 12px 26px rgba(0,0,0,.32), 0 0 18px rgba(47,107,255,.22);
}
.cart-btn:active { transform: scale(.985); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(47,107,255,.12);
  border: 1px solid rgba(47,107,255,.22);
  box-shadow: 0 0 14px rgba(47,107,255,.18);
  font-size: 12px;
}

/* ===== SECTIONS / TITLES ===== */
section { padding: 18px 0; }
h2 { margin: 0 0 10px; font-size: 20px; }
h3 { margin: 0 0 6px; font-size: 15px; }
.subtitle { margin: 0; color: var(--muted); }

/* ===== BUTTONS ===== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  border: 1px solid transparent;
  min-height: 44px;
}
.btn-full { width: 100%; }
.btn-same { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, rgba(47,107,255,.70), rgba(31,86,217,.70));
  border: 1px solid rgba(47,107,255,.28);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(47,107,255,.12), 0 8px 18px rgba(0,0,0,.24);
  transition: filter .15s ease, box-shadow .15s ease, transform .12s ease;
}
.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 0 0 1px rgba(47,107,255,.18), 0 12px 26px rgba(0,0,0,.28), 0 0 14px rgba(47,107,255,.16);
}
.btn-primary:active { transform: scale(.985); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); }

.btn-accent {
  background: linear-gradient(180deg, var(--orange), var(--orange2));
  color: #fff;
}
.btn-accent:hover { filter: brightness(1.03); }

.cart-plus {
  position: absolute;
  right: 12px;
  top: -10px;
  background: linear-gradient(180deg, var(--green), var(--green2));
  color: #fff;
  font-weight: 1000;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(71,194,122,.25);
  animation: cartPlus .9s ease forwards;
  pointer-events: none;
}
@keyframes cartPlus {
  0% { opacity: 0; transform: translateY(8px) scale(.9); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(.95); }
}

/* ===== WHY SECTION (FINAL, COMBINED) ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.why-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.why-item::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(120% 80% at 50% 120%, rgba(120,180,255,.22), transparent 60%),
              radial-gradient(120% 80% at 10% 130%, rgba(180,220,255,.14), transparent 65%);
}
.why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(120,180,255,.22);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 22px rgba(120,180,255,.10);
}
.why-item:hover::after { opacity: 1; }

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 32px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  margin-bottom: 10px;
}
.why-item:hover .why-icon {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(120,180,255,.22);
  box-shadow: 0 14px 30px rgba(0,0,0,.32), 0 0 18px rgba(120,180,255,.10);
  animation: softPulse .9s ease-in-out infinite;
}
@keyframes softPulse {
  0% { transform: translateY(-2px) scale(1.03); }
  50% { transform: translateY(-2px) scale(1.045); }
  100% { transform: translateY(-2px) scale(1.03); }
}

.why-item h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
}
.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* delivery special */
.why-delivery {
  border-color: rgba(120,180,255,.22);
  background: linear-gradient(180deg, rgba(120,180,255,.10), rgba(255,255,255,.04));
}
.why-delivery .why-icon-delivery {
  width: 56px; height: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.delivery-truck {
  font-size: 34px;
  position: relative;
  z-index: 2;
  transition: transform .35s ease, filter .35s ease;
}
.delivery-glow {
  position: absolute;
  left: -10px;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120,180,255,.8), rgba(120,180,255,.2), transparent);
  filter: blur(6px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  transform: translateX(-8px);
  z-index: 1;
}
.why-delivery:hover .delivery-truck {
  transform: translateX(6px);
  filter: drop-shadow(0 0 6px rgba(120,180,255,.7)) drop-shadow(0 0 14px rgba(120,180,255,.4));
}
.why-delivery:hover .delivery-glow {
  opacity: 1;
  transform: translateX(4px);
}

@media (min-width: 980px) {
  .why-delivery { grid-column: span 2; }
}

/* ===== CATALOG ===== */
.catalog-subtitle { color: var(--muted); margin: 0 0 12px; }

/* сетка каталога с явными брейкпоинтами */
.catalog-grid {
  display: grid;
  gap: 12px;
  align-items: stretch;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .catalog-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(120% 70% at 50% 110%, rgba(90,160,255,.20), transparent 60%),
              radial-gradient(120% 70% at 20% 120%, rgba(180,220,255,.12), transparent 65%);
}
.product-card:hover::after,
.product-card.is-glow::after { opacity: 1; }

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.product-card--select .card-actions,
.product-card:not(.product-card--select) .btn-full {
  margin-top: auto;
}

/* медиа */
.product-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  min-height: 172px;
  display: flex;
  align-items: center;
}
.product-media::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
  background: radial-gradient(70% 55% at 50% 55%, rgba(180,220,255,.28), rgba(120,180,255,.16) 35%, transparent 70%),
              radial-gradient(55% 45% at 50% 75%, rgba(90,160,255,.18), transparent 72%);
}
.product-card:hover .product-media::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
  z-index: 1;
  transition: filter .22s ease;
  cursor: pointer;
}
.product-card:hover .product-image {
  filter: brightness(1.02);
}
@media (max-width: 768px) { .product-image { height: 140px; } }

/* brand and price */
.brandline { display: flex; gap: 10px; align-items: center; }

.brand-badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
}
.brand-badge--click { text-decoration: none; color: inherit; }
.brand-badge__logo {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}
.brand-badge__logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
}

.brand-name {
  font-weight: 900;
  font-size: 13px;
}
.brand-model {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price { margin: 10px 0 12px; font-weight: 900; }

.top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  min-height: 64px;
}

.price--big {
  font-size: 18px;
  font-weight: 1000;
  margin: 8px 0 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.product-card--select .brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .3px;
}
.product-card--select .price--big {
  font-size: 28px;
  font-weight: 1000;
  line-height: 1;
  margin: 0;
  margin-top: 2px;
  white-space: nowrap;
}
.price--big::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(180,220,255,.75), rgba(90,160,255,.90), rgba(180,220,255,.75), transparent);
  border-radius: 999px;
  opacity: .92;
  box-shadow: 0 0 10px rgba(120,180,255,.55), 0 0 18px rgba(120,180,255,.26);
}

/* features */
.product-features {
  margin: 10px 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  align-content: start;
  min-height: 92px;
}
.feature-item {
  font-size: 12px;
  color: rgba(234,240,255,.85);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 6px 8px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) { .product-features { grid-template-columns: 1fr; } }

.card-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.product-card:hover .btn-primary {
  box-shadow: 0 0 0 1px rgba(47,107,255,.20), 0 12px 26px rgba(0,0,0,.30), 0 0 14px rgba(47,107,255,.14);
}

/* model picker */
.model-picker {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(71,194,122,.10), rgba(71,194,122,.05)), rgba(255,255,255,.04);
  border: 1px solid rgba(71,194,122,.22);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(71,194,122,.12), 0 8px 20px rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease, color .15s ease;
}
.model-picker:hover {
  background: linear-gradient(180deg, rgba(71,194,122,.22), rgba(71,194,122,.12)), rgba(255,255,255,.08);
  border-color: rgba(71,194,122,.45);
  box-shadow: 0 0 0 1px rgba(71,194,122,.32), 0 14px 32px rgba(0,0,0,.35), 0 0 24px rgba(71,194,122,.18);
}
.model-picker:active { transform: scale(.985); }
.model-picker__text { font-size: 14px; color: var(--text); }
.model-picker__icon {
  font-size: 14px;
  opacity: .75;
  transform: translateY(1px);
  transition: opacity .15s ease, transform .15s ease;
}
.model-picker:hover .model-picker__icon {
  opacity: .95;
  transform: translateY(1px) translateX(2px);
}
.model-picker__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.model-picker__select option { color: #111; background: #fff; }

/* ===== REQUEST FORM ===== */
.request-form {
  width: min(560px, 100%);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-weight: 700;
}
.request-form textarea { min-height: 90px; resize: vertical; }
.request-form input::placeholder,
.request-form textarea::placeholder { color: rgba(234,240,255,.55); }
.request-form option { color: #111; background: #fff; }

/* .total-box больше не используется, но оставим на случай */
.total-box {
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.total-box__label { color: var(--muted); font-weight: 800; font-size: 13px; }
.total-box__value { font-weight: 900; }

.form-note { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.hidden-field { display: none; }
.copy-note {
  width: min(560px, 100%);
  margin-top: 10px;
  color: rgba(234,240,255,.80);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.btn-status .tg-ico-inline { width: 18px; height: 18px; fill: #fff; }
.honeypot { display: none; }

/* ===== FOOTER ===== */
.footer {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
  text-align: center;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.modal.is-open { display: block; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.modal__dialog {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 6vh auto;
  background: #0b1324;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal__title { font-weight: 900; }
.modal__close {
  background: transparent; border: 0; color: var(--text);
  font-size: 18px; cursor: pointer;
}
.modal__empty { padding: 18px; color: var(--muted); }
.modal__items {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
  display: flex; gap: 12px; justify-content: space-between;
}
.cart-item__title { font-weight: 900; }
.cart-item__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cart-dot { opacity: .5; }
.cart-item__actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}
.icon-btn--danger { border-color: rgba(255,90,90,.35); }
.modal__footer {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.modal__total { font-weight: 900; }
.modal__actions { display: flex; gap: 10px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 120;
  min-width: 250px;
  max-width: 350px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.toast.is-show { opacity: 1; }

/* ===== FLOATING COPY BUTTON (MOBILE) ===== */
.copy-fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 120;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 1000;
  color: #fff;
  background: linear-gradient(180deg, var(--orange), var(--orange2));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  max-width: calc(100% - 24px);
  white-space: nowrap;
}
.copy-fab__ico { width: 18px; height: 18px; fill: #fff; }

/* ===== SUCCESS MOBILE OVERLAY ===== */
#mobileStatusOverlay { display: none; }
body.success-mobile header,
body.success-mobile main,
body.success-mobile footer,
body.success-mobile .copy-fab,
body.success-mobile .btn-status,
body.success-mobile .copy-note {
  display: none !important;
}
body.success-mobile #mobileStatusOverlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.success-mobile .mobile-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(180deg, #ff8a00, #ff6a00);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 122, 0, 0.45);
}

/* ===== MINI SLIDER ARROWS ===== */
.product-media--slider { position: relative; }
.product-media--slider .media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  line-height: 38px;
  font-size: 24px;
  background: rgba(0,0,0,.35);
  color: #fff;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 2;
}
.product-media--slider:hover .media-nav { opacity: 1; }
.product-media--slider .media-nav--prev { left: 10px; }
.product-media--slider .media-nav--next { right: 10px; }
@media (max-width: 768px) { .product-media--slider .media-nav { opacity: 1; } }

/* ===== NEON UNDERLINE (generic) ===== */
.neon-underline {
  position: relative;
  display: inline-block;
  color: rgba(234,240,255,.92);
}
.neon-underline::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,.75), transparent);
  box-shadow: 0 0 10px rgba(47,107,255,.55), 0 0 18px rgba(47,107,255,.28);
  border-radius: 999px;
  opacity: .95;
}

/* ===== FILTER BAR ===== */
.filterbar {
  margin: 14px 0 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  padding: 14px;
}
.filterbar__row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 12px;
  align-items: start;
}
.filter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
}
.filter__label {
  font-weight: 900;
  color: rgba(234,240,255,.90);
  margin-bottom: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 5;
}
.chip {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(234,240,255,.86);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease, transform .12s ease;
  pointer-events: auto;
}
.chip:hover {
  background: rgba(47,107,255,.10);
  border-color: rgba(120,180,255,.18);
  box-shadow: 0 0 0 1px rgba(120,180,255,.14), 0 10px 22px rgba(0,0,0,.22);
}
.chip:active { transform: scale(.985); }
.chip.is-active {
  background: rgba(47,107,255,.16);
  border-color: rgba(120,180,255,.26);
  box-shadow: 0 0 0 1px rgba(120,180,255,.18), 0 0 18px rgba(120,180,255,.14);
}
.chip--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.10);
  opacity: .9;
}
.range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range__input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-weight: 800;
}
.range__input::placeholder { color: rgba(234,240,255,.55); }
.range__sep { opacity: .6; font-weight: 900; }
.sort {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-weight: 800;
}
.filterbar__actions { margin-top: 10px; }
.filterbar__meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(234,240,255,.70);
  font-weight: 800;
  font-size: 12px;
  padding: 0 2px;
}
@media (max-width: 980px) { .filterbar__row { grid-template-columns: 1fr; } }

/* range sliders (green accent) */
.range-sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(180, 255, 60, 0.18);
}
.range-sliders input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(180, 255, 60, 0.85);
  border: 1px solid rgba(180, 255, 60, 0.35);
  box-shadow: 0 0 10px rgba(180, 255, 60, 0.25);
  margin-top: -5px;
}
.range-sliders input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(180, 255, 60, 0.18);
}
.range-sliders input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(180, 255, 60, 0.85);
  border: 1px solid rgba(180, 255, 60, 0.35);
  box-shadow: 0 0 10px rgba(180, 255, 60, 0.25);
}
.range-wrap { position: relative; z-index: 1; }
.filter-block { position: relative; z-index: 2; }

/* ===== BRANDS ===== */
.brands { padding: 18px 0; }
.brand-logos {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.brand-logo {
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  letter-spacing: .8px;
  color: rgba(234,240,255,.78);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.brand-logo:hover {
  transform: translateY(-2px);
  color: rgba(234,240,255,.92);
  border-color: rgba(120,180,255,.20);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 18px rgba(120,180,255,.12);
}
@media (max-width: 980px) { .brand-logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .brand-logos { grid-template-columns: repeat(2, 1fr); } }

/* ===== PARTNERS (FINAL PREMIUM METAL) ===== */
.partners { padding: 26px 0 10px; }
.partners-logos {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 18px !important;
  border-radius: 16px !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #2f3540 0%, #262b31 55%, #1f242a 100%) !important;
  border: 1px solid rgba(220,232,250,0.22) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -1px 0 rgba(0,0,0,0.25) !important;
}
.partners-logos::-webkit-scrollbar { height: 8px; }
.partners-logos::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 999px; }
.partners-logos::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 999px; }
.partners-logos::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.00) 35%, rgba(255,255,255,0.04) 55%, rgba(0,0,0,0.15) 100%) !important;
  mix-blend-mode: overlay;
}
.partner-tile {
  position: relative;
  z-index: 1;
  flex: 1 1 0 !important;
  min-width: 130px !important;
  height: 66px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(230,240,255,0.10) !important;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  backdrop-filter: none !important;
  filter: none !important;
}
.partner-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(230,245,255,0.22) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.10) !important;
}
.partner-tile img {
  max-height: 44px !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  opacity: 0.96 !important;
  filter: contrast(1.08) saturate(1.02) !important;
}
.partner-tile:hover img {
  filter: brightness(1.06) contrast(1.12) saturate(1.04) !important;
}
.partner-tile[data-partner="cherbrooke"] img,
.partner-tile[data-partner="9val"] img {
  filter: brightness(1.55) contrast(1.25) drop-shadow(0 2px 10px rgba(255,255,255,0.18)) drop-shadow(0 0 12px rgba(255,255,255,0.10)) !important;
  opacity: 1 !important;
}
@media (max-width: 900px) {
  .partners-logos { flex-wrap: wrap !important; justify-content: center !important; }
  .partner-tile { flex: 0 1 150px !important; min-width: 150px !important; height: 62px !important; }
  .partner-tile img { max-height: 40px !important; }
}

/* ===== BRAND CHIP (used in partner modal) ===== */
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.brand-chip__logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 38px;
}
.brand-chip__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.brand-chip__logo--text {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .4px;
}
.brand-chip__name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .95;
}
.brand-chip:hover .brand-chip__logo { border-color: rgba(255,255,255,.22); }
.brand-chip:active { transform: translateY(1px); }

/* light background for image logos */
.brand-badge__logo.is-img { background: rgba(255,255,255,.92); }
.brand-badge__logo.is-img img { padding: 6px; }

/* ===== PRODUCT CARD: hide square badge ===== */
.product-card .brand-badge { display: none !important; }
.product-card .brandline { gap: 0 !important; }

/* ===== PARTNER MODAL ===== */
.pmodal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.pmodal.is-open { display: block; }
.pmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}
.pmodal__dialog {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 70px auto;
  border-radius: 18px;
  padding: 16px;
  background: rgba(10,14,22,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 34px rgba(0,0,0,0.45);
}
.pmodal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
}
.pmodal__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.pmodal__logo {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pmodal__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.pmodal__title { font-size: 18px; font-weight: 900; }
.pmodal__desc { opacity: .88; font-weight: 600; margin-top: 3px; }
.pmodal__block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pmodal__label { font-weight: 800; margin-bottom: 8px; opacity: .95; }
.pmodal__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pmodal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 520px) { .pmodal__actions { flex-direction: column; } }

/* ===== MODAL FOR IMAGE ZOOM ===== */
.imgmodal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.imgmodal.is-open {
  display: flex;
}
.imgmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.imgmodal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10001;
  background: transparent;
  border: none;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.imgmodal__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.imgmodal__close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.imgmodal__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .imgmodal__close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
  }
}

/* ===== CALCULATOR ===== */
.calculator {
  margin: 30px 0;
  padding: 24px;
  background: #050a14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: none;
}
.calc-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-field label {
  font-weight: 700;
  color: rgba(234,240,255,.9);
  font-size: 14px;
  letter-spacing: 0.3px;
}
.calc-field select,
.calc-field input {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
}
.calc-field select:hover,
.calc-field input:hover {
  border-color: rgba(120,180,255,.3);
}
.calc-field select:focus,
.calc-field input:focus {
  border-color: rgba(120,180,255,.6);
  box-shadow: 0 0 0 2px rgba(120,180,255,.2);
}
.calc-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 40px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-checkbox:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(120,180,255,.25);
}
.calc-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.calc-total {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(120,180,255,.25);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.calc-total__label {
  font-weight: 700;
  font-size: 18px;
  color: rgba(234,240,255,.9);
}
.calc-total__value {
  font-weight: 1000;
  font-size: 32px;
  background: linear-gradient(135deg, #fff, #a8c0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.calc-total__value span {
  font-size: 20px;
  opacity: 0.8;
}
.calc-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* ===== КАЛЬКУЛЯТОР В КАРТОЧКАХ ===== */
.calc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.calc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.calc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120,180,255,0.25);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.calc-card__title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
}
.calc-card__field {
  margin-bottom: 10px;
}
.calc-card__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(234,240,255,0.8);
  margin-bottom: 4px;
}
.calc-card__field input,
.calc-card__field select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 8px 10px;
  color: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.calc-card__field input:focus,
.calc-card__field select:focus {
  border-color: rgba(120,180,255,0.5);
  box-shadow: 0 0 0 2px rgba(120,180,255,0.2);
}
.calc-card__total {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 800;
  font-size: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-card__total-value {
  color: #a8e0ff;
  font-size: 18px;
}
.calc-global-total {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(120,180,255,0.25);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
  font-size: 24px;
  font-weight: 900;
}
.calc-global-total span {
  background: linear-gradient(135deg, #fff, #a8c0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== АККОРДЕОН ДЛЯ КАЛЬКУЛЯТОРА ===== */
.accordion-section {
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.accordion-header {
  padding: 10px 0;
  font-weight: 700;
  font-size: 14px;
  color: rgba(234,240,255,0.9);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header::after {
  content: "▼";
  font-size: 10px;
  transition: transform 0.2s;
}
.accordion-header.open::after {
  transform: rotate(180deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-content.open {
  max-height: 500px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:hover .product-media::before { opacity: 0; }
}
@media (max-width: 640px) {
  .phones { display: none; }
  .menu { gap: 10px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .total-box { grid-template-columns: 1fr; text-align: left; }
  .copy-fab { display: flex; }
  body { padding-bottom: 88px; }
  .logo-img { max-height: 42px; max-width: 108px; }
  .logo::before { inset: -20px -20px; filter: blur(12px); opacity: .55; }
}
/* Горизонтальное расположение фильтра цены */
.filter-block .range-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.filter-block .range-nums {
  flex: 0 0 100px; /* фиксированная ширина для поля ввода */
}
.filter-block .range-sliders {
  flex: 1; /* ползунок занимает оставшееся пространство */
}
/* ===== ГОРИЗОНТАЛЬНЫЙ РЯД ДЛЯ ФИЛЬТРОВ ЦЕНЫ И ПЛОЩАДИ ===== */
.filter-price-area-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.price-block {
  flex: 1;
  min-width: 240px;
}

.area-block {
  flex: 1;
  min-width: 200px;
}

.price-block .range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-block .range-nums {
  flex: 0 0 100px;
}

.price-block .range-sliders {
  flex: 1;
}
/* ===== ГОРИЗОНТАЛЬНЫЙ РЯД ФИЛЬТРОВ ===== */
.filter-row {
  display: flex;
  gap: 20px;
  margin: 15px 0 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.filter-col {
  flex: 1 1 0;
  min-width: 160px;
}

.price-col {
  min-width: 220px;
}

.filter-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(234,240,255,0.9);
}

.price-input-row {
  width: 100%;
  margin-bottom: 8px;
}

.price-input-row input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: inherit;
  font-size: 14px;
  outline: none;
}

.price-slider {
  width: 100%;
}

.price-slider input[type=range] {
  width: 100%;
  margin: 0;
}

.filter-col .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card {
  position: relative;
  overflow: hidden;
}

.install-gift-flag {
  position: absolute;
  top: 10px;
  right: -170px;
  background: #ff4d4f;
  color: #fff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px 0 0 4px;
  white-space: nowrap;
  transition: right 0.25s ease-out, opacity 0.25s ease-out;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.product-card:hover .install-gift-flag {
  right: 10px;
  opacity: 1;
}

/* ===== GLOBAL SCROLL / SAFE SIZING ===== */
:root {
  --header-offset: 16px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}
body {
  width: 100%;
  overflow-x: clip;
}
img,
picture,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}
main,
section,
.container,
.catalog-layout,
.catalog-grid,
.calc-cards,
.calc-card,
.product-card,
.filter-row,
.filter-price-area-row,
.modal__dialog {
  min-width: 0;
}
[id] {
  scroll-margin-top: var(--header-offset);
}
@media (max-width: 980px) {
  .header-row { gap: 18px; min-height: 112px; }
  .logo { max-width: 300px; }
  .logo-img { max-height: 92px; max-width: 280px; }
  .menu a { font-size: 15px; }
  .phone { font-size: 13px; }
}
@media (max-width: 768px) {
  .container { width: min(100% - 24px, 1560px); }
  .header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px 14px;
    align-items: center;
    padding: 12px 0;
    min-height: 96px;
  }
  .logo { max-width: 220px; }
  .logo-img { max-height: 74px; max-width: 220px; }
  .menu {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { font-size: 13px; padding: 7px 10px; }
  .header-right { margin-left: 0; gap: 8px; align-items: center; }
  .phone { font-size: 11px; }
  .tg-link { width: 34px; height: 34px; flex: 0 0 34px; }
  .filter-price-area-row,
  .filter-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 20px); }
  .menu a { font-size: 12px; padding: 7px 9px; }
}

/* ===== STEP 2: visual polish ===== */
.header {
  border-bottom-color: transparent;
  box-shadow: none;
}
.header::after {
  display: none;
}

/* soften the transition under header */
.partners {
  padding-top: 12px;
}
.section-title {
  margin-top: 0;
}

/* make brand filter look like partner cards */
#brandChips {
  gap: 12px;
}
#brandChips .chip {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(230,240,255,0.12);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
  color: rgba(234,240,255,0.90);
  letter-spacing: .2px;
}
#brandChips .chip:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border-color: rgba(230,245,255,0.22);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.08);
}
#brandChips .chip.is-active {
  background: linear-gradient(180deg, rgba(65,116,255,0.26), rgba(34,70,165,0.22));
  border-color: rgba(120,180,255,0.35);
  box-shadow: 0 0 0 1px rgba(120,180,255,0.14), 0 12px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.10);
  color: #f4f8ff;
}

@media (max-width: 768px) {
  #brandChips {
    gap: 10px;
  }
  #brandChips .chip {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }
}


/* step 3: brand filter cards like partner cards, evenly distributed */
#brandChips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

#brandChips .chip {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

#brandChips .chip:hover {
  transform: translateY(-2px);
  border-color: rgba(120,180,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 22px rgba(120,180,255,.10);
}

#brandChips .chip.is-active {
  color: #f4f8ff;
  background: linear-gradient(180deg, rgba(47,107,255,.28), rgba(31,86,217,.20));
  border-color: rgba(120,180,255,.30);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 22px rgba(120,180,255,.12);
}

@media (max-width: 980px) {
  #brandChips {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
  }

  #brandChips .chip {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .filter-title {
    font-size: 18px;
    line-height: 1.2;
  }
  #brandChips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== STEP 4: partners text removed, brand cards moved up and unified ===== */
.partners-showcase {
  padding-bottom: 6px;
}
.partners-seo,
.partners-seo--framed {
  display: none;
}

#catalog {
  padding-top: 6px;
}

.catalog-sidebar--framed {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.filter-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0;
}

#brandFilterBlock {
  position: relative;
  z-index: 2;
  margin-top: 0;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2f3540 0%, #262b31 55%, #1f242a 100%);
  border: 1px solid rgba(220,232,250,0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -1px 0 rgba(0,0,0,0.25);
}
#brandFilterBlock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.00) 35%, rgba(255,255,255,0.04) 55%, rgba(0,0,0,0.15) 100%);
  mix-blend-mode: overlay;
}
#brandFilterBlock .filter-label {
  display: none;
}

#brandChips {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

#brandChips .chip {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  font-weight: 800;
  font-size: 13px;
  color: rgba(244,248,255,0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(230,240,255,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.10);
}
#brandChips .chip:hover {
  transform: translateY(-1px);
  border-color: rgba(230,245,255,0.22);
  box-shadow: 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
}
#brandChips .chip.is-active {
  color: #f4f8ff;
  background: linear-gradient(180deg, rgba(65,116,255,0.26), rgba(34,70,165,0.22));
  border-color: rgba(120,180,255,0.35);
  box-shadow: 0 0 0 1px rgba(120,180,255,0.14), 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}
#brandChips .chip--placeholder {
  color: rgba(230,236,247,0.56);
}

@media (max-width: 1280px) {
  #brandChips {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .filter-title {
    margin-bottom: 12px;
    font-size: 20px;
  }
  #brandFilterBlock {
    padding: 14px;
  }
  #brandChips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  #brandChips .chip {
    min-height: 46px;
    white-space: normal;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .filter-title {
    font-size: 18px;
    line-height: 1.2;
  }
  #brandChips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== STEP 6: make price/type/area filter a single expressive panel ===== */
.filter-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(220px, 1fr) minmax(280px, 1.3fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2f3540 0%, #262b31 55%, #1f242a 100%);
  border: 1px solid rgba(220,232,250,0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -1px 0 rgba(0,0,0,0.25);
}
.filter-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.00) 35%, rgba(255,255,255,0.04) 55%, rgba(0,0,0,0.15) 100%);
  mix-blend-mode: overlay;
}
.filter-col {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.filter-label {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.price-input-row {
  margin-bottom: 10px;
}
.price-input-row input {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(7,13,25,0.9), rgba(9,16,31,0.84));
  border: 1px solid rgba(220,232,250,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.price-input-row input:focus {
  outline: none;
  border-color: rgba(120,180,255,0.34);
  box-shadow: 0 0 0 3px rgba(47,107,255,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.price-slider {
  display: flex;
  align-items: center;
  min-height: 28px;
}
.price-slider input[type=range] {
  accent-color: #d38a24;
}
#typeChips,
#areaChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
#typeChips .chip,
#areaChips .chip {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(244,248,255,0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(230,240,255,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.10);
}
#typeChips .chip:hover,
#areaChips .chip:hover {
  transform: translateY(-1px);
  border-color: rgba(230,245,255,0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
}
#typeChips .chip.is-active,
#areaChips .chip.is-active {
  color: #f4f8ff;
  background: linear-gradient(180deg, rgba(65,116,255,0.26), rgba(34,70,165,0.22));
  border-color: rgba(120,180,255,0.35);
  box-shadow: 0 0 0 1px rgba(120,180,255,0.14), 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}
#areaChips .chip[data-area="0"],
#areaChips .chip.chip--ghost {
  color: rgba(230,236,247,0.86);
}
@media (max-width: 980px) {
  .filter-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .filter-label {
    font-size: 17px;
    margin-bottom: 8px;
  }
}
@media (max-width: 640px) {
  .filter-row {
    padding: 12px;
    border-radius: 14px;
  }
  #typeChips .chip,
  #areaChips .chip {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }
}


/* ===== STEP 7: header menu enlargement ===== */
.header-row {
  gap: 28px;
}
.menu {
  gap: 12px 18px;
}
.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 118px;
  padding: 11px 16px;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .3px;
  border-radius: 16px;
}
.menu a,
.menu a:not(.menu-cta),
.menu .menu-cta {
  background: linear-gradient(180deg, rgba(61,68,82,.86), rgba(36,42,54,.92));
  border: 1px solid rgba(255,255,255,.08);
  color: #eef3ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 26px rgba(0,0,0,.24);
}
.menu a:hover,
.menu a:not(.menu-cta):hover,
.menu .menu-cta:hover {
  background: linear-gradient(180deg, rgba(76,84,100,.92), rgba(43,50,64,.96));
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.28);
}
.menu .menu-cta {
  min-width: 220px;
}
@media (max-width: 1280px) {
  .menu a {
    min-width: 104px;
    font-size: 19px;
    padding: 10px 14px;
  }
  .menu .menu-cta {
    min-width: 188px;
  }
}
@media (max-width: 980px) {
  .header-row {
    gap: 18px;
  }
  .menu {
    gap: 10px 12px;
  }
  .menu a {
    min-height: 46px;
    min-width: 92px;
    font-size: 16px;
    padding: 9px 12px;
  }
  .menu .menu-cta {
    min-width: 168px;
  }
}
@media (max-width: 768px) {
  .menu a {
    min-height: 42px;
    min-width: auto;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 14px;
  }
  .menu .menu-cta {
    min-width: 160px;
  }
}
@media (max-width: 480px) {
  .menu a {
    font-size: 13px;
    padding: 8px 11px;
  }
  .menu .menu-cta {
    min-width: 148px;
  }
}


/* ===== STEP 9: placeholder partner card + lighter price input ===== */
.partner-tile__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(244,248,255,0.92);
  text-transform: none;
}

.partner-tile__text--modal {
  min-height: 72px;
  font-size: 22px;
}

.partner-tile[data-partner="template-partner"] {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(230,240,255,0.10) !important;
  box-shadow: none !important;
}

.partner-tile[data-partner="template-partner"]:hover {
  transform: translateY(-1px);
  border-color: rgba(230,245,255,0.22) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

.price-input-row input {
  background: linear-gradient(180deg, rgba(88, 95, 108, 0.88), rgba(70, 76, 88, 0.92));
  border: 1px solid rgba(228, 236, 248, 0.16);
  color: #f3f7ff;
}

.price-input-row input::placeholder {
  color: rgba(240, 245, 255, 0.62);
}

.price-input-row input:focus {
  border-color: rgba(188, 210, 244, 0.32);
  box-shadow: 0 0 0 3px rgba(170, 186, 214, 0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ===== STEP 13: flatten top area tone-in-tone ===== */
body,
main,
.header,
.partners-showcase,
#catalog {
  background-color: #050a14;
  background-image: none;
}

.header {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header::after,
.logo::before {
  display: none;
}

.partners-showcase {
  padding-top: 12px;
}

.section-title,
.filter-title {
  text-shadow: none;
}

/* ===== STEP 14: GREY TONE FOR TOTAL BAR AND CTA ===== */
.calculator .calc-global-total {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03);
  color: rgba(234,240,255,0.96);
}

.calculator .calc-global-total span,
.calculator .calc-global-total .calc-total__value,
.calculator .calc-global-total .calc-global-total__value {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: rgba(234,240,255,0.96);
  text-shadow: none;
}

.calculator .calc-cta {
  margin-top: 20px;
}

.calculator .calc-cta .btn,
.calculator .calc-cta .btn.btn-primary {
  max-width: 420px;
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(234,240,255,0.96);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03);
}

.calculator .calc-cta .btn:hover,
.calculator .calc-cta .btn.btn-primary:hover {
  filter: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.055));
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.04);
}

.calculator .calc-cta .btn:active,
.calculator .calc-cta .btn.btn-primary:active {
  transform: scale(.985);
}


/* ===== STEP 15: CALCULATOR ACTION ROW ===== */
.calculator .calc-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 0 18px;
}

.calculator .calc-action-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(234,240,255,0.96);
  box-shadow: 0 12px 24px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.03);
}

.calculator .calc-action-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.055));
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.04);
}

.calculator .calc-global-total {
  margin-top: 8px;
}

.calculator .calc-note {
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .calculator .calc-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .calculator .calc-actions {
    grid-template-columns: 1fr;
  }
}

.calculator .calc-cta { display: none; }