@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.woff2") format("woff2"), url("fonts/manrope-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.woff2") format("woff2"), url("fonts/manrope-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-700.woff2") format("woff2"), url("fonts/manrope-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-800.woff2") format("woff2"), url("fonts/manrope-800.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Палитра магазина техники: холодный светлый лист, плотный тёмный текст
     и один живой синий на действиях. Ничего декоративного. */
  --ink: #0c1420;
  --muted: #66748a;
  --paper: #eef2f7;
  --white: #fff;
  --line: rgba(12, 28, 54, .1);
  --blue: #0b6ef3;
  --blue-deep: #0748a8;
  --blue-bright: #2b8cff;
  --blue-soft: #e2efff;
  --lime: var(--blue);
  --lime-deep: var(--blue-deep);
  --lavender: #dceeff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 55, 112, .13);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; }
/* display из наших правил перебивал атрибут hidden, и спрятанные блоки —
   меню города, «Уточнить наличие» — продолжали висеть на экране. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Футер прижимается к низу окна. Раньше на коротких страницах документ
     заканчивался вместе с футером, а остаток окна дорисовывался светлым
     фоном — под тёмным футером появлялась пустая полоса, похожая на
     второй, пустой футер. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.topline {
  padding: 8px 0;
  color: rgba(255,255,255,.72);
  background: var(--ink);
  font-size: 12px;
}
.topline-inner { display: flex; justify-content: space-between; }
.topline a { color: var(--white); }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(17,18,15,.08);
  background: rgba(247,247,242,.91);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a, .footer-grid a { transition: opacity .2s ease; }
.main-nav a:hover, .footer-grid a:hover { opacity: .55; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.city-selector select, .cart-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 700;
}
.city-selector select {
  min-width: 132px;
  padding-right: 30px;
  color: var(--ink);
  cursor: pointer;
}
.cart-link { display: flex; align-items: center; gap: 8px; }
.cart-count {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
}
.mobile-menu { display: none; border: 0; background: transparent; }
.messages { padding-top: 14px; }
.message { padding: 14px 18px; border-radius: 14px; background: var(--lime); font-weight: 700; }

.hero { overflow: hidden; min-height: 680px; background: var(--paper); }
.hero-grid {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  /* Была разрядка с капсом — самый частый признак шаблонной вёрстки.
     Метка должна сообщать, к чему относится заголовок, а не изображать
     рубрику. Оставляем обычный регистр и спокойный вес. */
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.hero h1, .page-hero h1, .product-info h1, .checkout-copy h1, .success-card h1, .static-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  font-family: inherit;
  letter-spacing: -.025em;
}
.hero h1 em { color: var(--lime-deep); font-style: normal; }
.hero-copy > p {
  max-width: 560px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 10px 26px rgba(2,101,190,.22); }
.button-primary:hover { background: var(--blue-deep); }
.button-dark { color: var(--white); background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); }
.button-full { width: 100%; }
.button-large { min-height: 58px; padding-inline: 30px; }
.text-link { font-size: 14px; font-weight: 800; }
.hero-proof { display: flex; gap: 36px; margin-top: 56px; }
.hero-proof div { display: grid; gap: 2px; }
.hero-proof strong { font-size: 18px; }
.hero-proof span { color: var(--muted); font-size: 12px; }
.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  position: absolute;
  width: min(38vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}
.hero-device {
  position: relative;
  z-index: 2;
  width: min(34vw, 430px);
  filter: drop-shadow(0 38px 40px rgba(27,35,9,.22));
  transform: rotate(-7deg);
}
.hero-device img { width: 100%; height: 480px; object-fit: contain; }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(17,18,15,.16); border-radius: 50%; }
.orbit-one { width: 590px; height: 360px; transform: rotate(-22deg); }
.orbit-two { width: 490px; height: 620px; transform: rotate(36deg); }
.floating-card {
  position: absolute;
  z-index: 3;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}
.floating-price { right: 0; bottom: 110px; display: grid; }
.floating-price small { color: var(--muted); }
.floating-price strong { font-size: 22px; }
.floating-stock { top: 120px; left: -10px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #54b51d; }

.category-strip { padding: 74px 0; background: var(--ink); color: var(--white); }
.section-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading.compact { align-items: center; }
.section-heading h2, .promise-section h2, .product-description-grid h2 {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 34px);
  line-height: 1.08;
  font-family: inherit;
  letter-spacing: -.02em;
}
.section-heading a { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 800; }
.category-strip .section-heading h2 { font-size: 24px; }
.category-strip .section-heading a { color: rgba(255,255,255,.65); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.category-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .2s ease, color .2s ease;
}
.category-card:not(:nth-child(3n+1)) { border-left: 1px solid rgba(255,255,255,.18); }
.category-card:hover { color: var(--ink); background: var(--lime); }
.category-card span { color: rgba(255,255,255,.4); font-size: 11px; }
.category-card:hover span { color: rgba(17,18,15,.5); }
.category-card i { font-style: normal; }

.products-section { padding: 64px 0; }
/* Колонок столько, сколько влезает карточек шириной от 280: при
   жёстких четырёх на экране 1180 карточка сжималась до 272 пикселей,
   подписи плашек обрезались многоточием, а кнопка ломалась на две
   строки. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card-image {
  position: relative;
  overflow: hidden;
  height: 320px;
  display: block;
  background: #f0f0eb;
}
.product-card-image img {
  position: absolute;
  inset: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-condition {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  font-weight: 800;
}
.product-card-body { padding: 20px; }
.product-category { color: var(--muted); font-size: 11px; font-weight: 700; }
.product-card h3 {
  min-height: 46px;
  margin: 8px 0 5px;
  font-size: 17px;
  line-height: 1.32;
  letter-spacing: -.02em;
}
.variant-line { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.price-row { margin-top: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price-row > div { display: grid; gap: 2px; }
.price-row strong { font-size: 20px; letter-spacing: -.04em; }
.price-row small { color: var(--muted); font-size: 10px; }
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  font-size: 25px;
  font-weight: 400;
  transition: transform .2s ease;
}
.icon-button:hover { transform: translateY(-2px) scale(1.05); }

.service-section { padding-bottom: 64px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px;
  border-radius: 34px;
  transition: transform .25s ease;
}
.service-card:hover { transform: scale(.99); }
.service-card h2 { margin: 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.06; letter-spacing: -.022em; }
.service-card p { max-width: 430px; color: rgba(17,18,15,.65); font-size: 16px; line-height: 1.6; }
.service-card .button { margin-top: auto; }
.service-trade { color: var(--ink); background: var(--lime); }
.service-installment { background: var(--lavender); }

.promise-section { padding: 60px 0; background: var(--white); }
.promise-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.promise-list { border-top: 1px solid var(--line); }
.promise-list div { display: grid; grid-template-columns: 55px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.promise-list span { color: var(--muted); font-size: 11px; }

/* Нижний отступ с запасом под бегущую строку: она зафиксирована у края
   окна и иначе наезжает на строку копирайта. */
.site-footer { padding: 56px 0 54px; color: var(--white); background: var(--ink); }
/* align-items: start — иначе короткие колонки растягиваются по самой
   длинной и тянут за собой пустые хвосты. */
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 44px; align-items: start; }
.brand-light .brand-mark { color: var(--ink); }
.footer-grid p, .footer-grid span { color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.7; }
.footer-grid h3 { margin: 0 0 14px; color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600; }
/* Контакты города стоят под логотипом, а не пятой колонкой: колонок в
   сетке четыре, и пятый блок уезжал на вторую строку — под брендом
   оставалась дыра во всю ширину футера. */
.footer-store { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.35);
  font-size: 12px;
}
.footer-author { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.45); }
.footer-author svg { width: 16px; height: 16px; fill: currentColor; }
.footer-author:hover { color: rgba(255,255,255,.85); }

.page-hero { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3vw, 42px); }
.page-hero p { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.compact-hero { padding-bottom: 44px; }
.catalog-section { padding: 28px 0 72px; }
.catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
/* Фильтры лежат строкой над сеткой: их всего два, а вертикальная колонка
   отнимала у карточек четверть ширины. */
.catalog-layout { display: grid; gap: 18px; align-items: start; }
.filters { position: static; }
.filters form {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}
.filters .filter-field { margin-bottom: 0; }
.filters .button-full { width: auto; min-width: 150px; }
.filters .reset-link { padding-bottom: 12px; }
@media (max-width: 760px) {
  .filters form { grid-template-columns: 1fr; }
  .filters .button-full { width: 100%; }
  .filters .reset-link { padding-bottom: 0; text-align: center; }
}
.filter-field { display: grid; gap: 8px; margin-bottom: 18px; }
.filter-field > span, .price-fields span, .form-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.filter-field input, .filter-field select, .price-fields input, .catalog-toolbar select, .field-control {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  background: var(--white);
}
.filter-field input:focus, .filter-field select:focus, .field-control:focus { border-color: var(--ink); }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.price-fields label { display: grid; gap: 8px; }
.reset-link { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.catalog-toolbar { min-height: 46px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.catalog-toolbar strong { font-size: 13px; }
.catalog-toolbar select { width: auto; }
.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.empty-state { grid-column: 1 / -1; padding: 60px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state.large { padding: 120px 20px; }
.empty-state h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 16px; }

.product-detail { padding: 22px 0 72px; }
.breadcrumbs { display: flex; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.product-main-image { position: relative; height: 620px; overflow: hidden; padding: 60px; border-radius: 32px; background: #fff; }
.product-main-image img { position: absolute; inset: 60px; width: calc(100% - 120px); height: calc(100% - 120px); object-fit: contain; mix-blend-mode: multiply; }
.product-info { padding-top: 28px; }
.product-info h1 {
  /* Было clamp(48px, 5.2vw, 76px) — размер под короткие имена вроде
     «iPhone 16». После импорта в каталоге «Samsung Galaxy Z Fold7» и
     названия пылесосов Dyson: заголовок уезжал в три строки и лез под
     шапку. */
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.12;
  text-wrap: balance;
}
.lead { max-width: 560px; margin: 22px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.variants { display: grid; gap: 10px; }
.variant-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.variant-card > div:first-child { display: grid; gap: 4px; }
.variant-card span { color: var(--muted); font-size: 11px; }
.variant-buy { display: flex; align-items: center; gap: 14px; }
.variant-buy > strong { white-space: nowrap; font-size: 18px; }
.variant-card.is-disabled { opacity: .5; }
.micro-benefits { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 600; }
.micro-benefits span { display: inline-flex; gap: 6px; }
.product-description-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.product-description-grid p { max-width: 520px; color: var(--muted); line-height: 1.8; }
.specs-card { padding: 30px; border-radius: var(--radius); background: var(--white); }
.specs-card h3 { margin: 0 0 18px; }
.specs-card dl { margin: 0; }
.specs-card dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.specs-card dt { color: var(--muted); }
.specs-card dd { margin: 0; text-align: right; }

.cart-section { padding: 28px 0 72px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr 120px 130px;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.cart-item-image { position: relative; height: 100px; overflow: hidden; padding: 8px; border-radius: 14px; background: #efefe9; }
.cart-item-image img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; mix-blend-mode: multiply; }
.cart-item-info > span { color: var(--muted); font-size: 10px; }
.cart-item-info h2 { margin: 6px 0; font-size: 17px; }
.cart-item-info p { margin: 0; color: var(--muted); font-size: 11px; }
.quantity-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.quantity-form input { width: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.cart-item-price { display: grid; justify-items: end; gap: 8px; }
.link-button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; text-decoration: underline; }
.cart-summary, .checkout-summary {
  position: sticky;
  top: 112px;
  padding: 30px;
  border-radius: 24px;
  color: var(--white);
  background: var(--ink);
}
.cart-summary > strong { display: block; margin: 12px 0; font-size: 42px; letter-spacing: -.06em; }
.cart-summary p { color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.7; }
.cart-summary .reset-link { color: rgba(255,255,255,.55); }

.checkout-section { padding: 48px 0 72px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 90px; align-items: start; }
.checkout-copy h1 { max-width: 800px; font-size: clamp(28px, 3vw, 42px); }
.checkout-copy > p { max-width: 670px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.checkout-form { max-width: 760px; margin-top: 42px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field-wide, .consent-field { grid-column: 1 / -1; }
textarea.field-control { padding-top: 14px; resize: vertical; }
.consent-field { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent-field a { color: var(--ink); text-decoration: underline; }
.checkbox-control { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink); }
.field-error { color: #bf2c2c; }
.checkout-form > .button { margin-top: 26px; }
.form-note { color: var(--muted); font-size: 11px; }
.checkout-item { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.checkout-item div { display: grid; gap: 5px; }
.checkout-item span { color: rgba(255,255,255,.5); font-size: 11px; }
.checkout-item > strong { white-space: nowrap; font-size: 13px; }
.checkout-total { margin-top: 26px; display: flex; align-items: end; justify-content: space-between; }
.checkout-total strong { font-size: 30px; letter-spacing: -.05em; }

.success-section { padding: 48px 0 72px; }
.success-card { padding: 80px; border-radius: 36px; background: var(--lime); text-align: center; }
.success-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 24px; place-items: center; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 25px; }
.success-card h1 { font-size: clamp(28px, 3vw, 42px); }
.success-card p { max-width: 560px; margin: 28px auto; color: rgba(17,18,15,.65); line-height: 1.7; }
.static-hero { min-height: 650px; display: grid; align-items: center; padding: 100px 0; }
.static-hero h1 { max-width: 980px; }
.static-hero p { max-width: 680px; margin: 30px 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.static-copy { max-width: 820px; margin: 30px 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.static-copy p { margin: 0 0 18px; }

.city-gate-page { min-height: 100vh; background: var(--ink); }
.city-gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: center;
  gap: 70px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: 60px 0;
}
.city-gate-brand { display: flex; align-items: center; gap: 14px; color: var(--white); font-size: 26px; letter-spacing: -.04em; }
.city-gate-brand .brand-mark { width: 52px; height: 52px; font-size: 23px; }
.city-gate-card { padding: clamp(34px, 6vw, 76px); border-radius: 36px; background: var(--paper); }
.city-gate-card h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.022em; }
.city-gate-card > p { max-width: 610px; margin: 22px 0 34px; color: var(--muted); line-height: 1.65; }
.city-choice-list { display: grid; gap: 10px; }
.city-choice-list button,
.city-choice-list a {
  width: 100%;
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  transition: background .2s ease, transform .2s ease;
}
.city-choice-list button:hover,
.city-choice-list a:hover { background: var(--lime); transform: translateX(4px); }
.city-choice-list button span,
.city-choice-list a span { display: grid; gap: 4px; }
.city-choice-list button strong,
.city-choice-list a strong { font-size: 17px; }
.city-choice-list button small,
.city-choice-list a small { color: var(--muted); }
.city-choice-list button i,
.city-choice-list a i { font-size: 24px; font-style: normal; }

.blog-preview-section { padding: 60px 0; background: #eef2f7; }
.blog-preview-grid, .blog-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.blog-card-cover { height: 260px; display: block; background: var(--ink); }
.blog-card-cover:empty::after { display: grid; height: 100%; place-items: center; color: var(--lime); content: "ТехноЯблоня"; font-size: 24px; font-weight: 800; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-body time, .blog-detail-head time { color: var(--muted); font-size: 11px; font-weight: 700; }
.blog-card-body h2, .blog-card-body h3 { margin: 10px 0; font-size: 22px; line-height: 1.18; letter-spacing: -.035em; }
.blog-card-body h3 { font-size: 19px; }
.blog-card-body p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.blog-list-section { padding: 32px 0 72px; }
.blog-detail { padding: 40px 0 72px; }
.blog-detail-head { max-width: 940px; }
.blog-detail-head h1 { max-width: 900px; margin: 12px 0 18px; font-size: clamp(28px, 3vw, 44px); line-height: 1.06; letter-spacing: -.022em; }
.blog-detail-head > p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.blog-detail-cover { height: min(62vw, 680px); margin-top: 48px; }
.blog-detail-cover img { width: 100%; height: 100%; border-radius: 32px; object-fit: cover; }
.blog-detail-content { max-width: 780px; padding-top: 54px; font-size: 17px; line-height: 1.85; }
.blog-detail-content p { margin: 0 0 24px; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 210px 1fr auto; }
  .main-nav { gap: 16px; }
  .main-nav a:nth-last-child(-n+2) { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 100px 1fr 90px; }
  .quantity-form { display: none; }
  .checkout-layout { grid-template-columns: 1fr 350px; gap: 40px; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, 1240px); }
  .topline { display: none; }
  .header-inner { min-height: 68px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .city-selector {
    position: absolute;
    top: 76px;
    right: 14px;
    z-index: 5;
  }
  .city-selector select {
    min-width: 0;
    padding: 7px 26px 7px 10px;
    font-size: 11px;
  }
  .mobile-menu { display: grid; gap: 5px; padding: 8px; }
  .mobile-menu span { width: 20px; height: 2px; background: var(--ink); }
  .main-nav {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 20px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:nth-last-child(-n+2) { display: block; }
  .cart-link { padding: 8px 10px; font-size: 0; }
  .cart-count { font-size: 11px; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 70px 0 30px; }
  .hero h1 { font-size: clamp(52px, 15vw, 76px); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-proof { justify-content: space-between; gap: 14px; margin-top: 38px; }
  .hero-visual { min-height: 430px; }
  .hero-visual::before { width: 360px; }
  .hero-device { width: 310px; }
  .hero-device img { height: 370px; }
  .orbit-one { width: 430px; height: 260px; }
  .orbit-two { width: 330px; height: 430px; }
  .floating-stock { top: 50px; left: 0; }
  .floating-price { right: 0; bottom: 50px; }
  .category-strip { padding: 56px 0; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card:not(:nth-child(3n+1)) { border-left: 0; }
  .products-section { padding: 76px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-card-image { height: clamp(220px, 42vw, 300px); }
  .product-card-image img {
    inset: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }
  .product-card-body { padding: 18px; }
  .product-card h3 { min-height: 42px; font-size: 15px; }
  .variant-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .service-grid, .promise-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 400px; padding: 34px; }
  .promise-grid { gap: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 45px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-field, .price-fields { margin: 0; }
  .filters .button, .filters .reset-link { align-self: end; }
  .product-detail-grid, .product-description-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-main-image { height: 440px; }
  .product-info h1 { font-size: 52px; }
  .product-description-grid { margin-top: 70px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .checkout-summary { grid-row: 1; }
  .checkout-copy h1 { font-size: 58px; }
  .success-card { padding: 60px 24px; }
  .city-gate { grid-template-columns: 1fr; gap: 34px; }
  .city-gate-brand { justify-content: center; }
  .blog-preview-grid, .blog-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .product-grid, .catalog-grid { grid-template-columns: 1fr; }
  .product-card-image { height: min(82vw, 340px); }
  .product-card h3 { min-height: auto; }
  .service-card h2 { font-size: 40px; }
  .page-hero h1 { font-size: 64px; }
  .filters form { grid-template-columns: 1fr; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .catalog-toolbar select { width: 100%; }
  .product-main-image { height: 360px; padding: 30px; }
  .product-main-image img { inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px); }
  .variant-card { align-items: stretch; flex-direction: column; }
  .variant-buy { justify-content: space-between; }
  .cart-item { grid-template-columns: 82px 1fr; }
  .cart-item-price { grid-column: 2; justify-items: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide, .consent-field { grid-column: auto; }
  .checkout-copy h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .city-gate { width: min(100% - 24px, 1180px); padding: 28px 0; }
  .city-gate-card { padding: 30px 22px; border-radius: 26px; }
  .city-gate-card h1 { font-size: 48px; }
  .city-choice-list button,
.city-choice-list a { padding: 16px; }
  .blog-preview-grid, .blog-list-grid { grid-template-columns: 1fr; }
  .blog-card-cover { height: 240px; }
}

/* Brand refresh: electric blue + restrained liquid glass */
body {
  position: relative;
  min-width: 320px;
  padding-bottom: 34px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(40, 148, 246, .13), transparent 26rem),
    radial-gradient(circle at 96% 15%, rgba(2, 101, 190, .12), transparent 30rem),
    var(--paper);
}
.site-ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 38%);
}
.topline {
  padding: 8px 0 4px;
  color: rgba(8,11,15,.62);
  background: transparent;
  font-size: 11px;
}
.topline-inner, .topline-links, .topline-contacts { display: flex; align-items: center; }
.topline-inner { justify-content: space-between; gap: 20px; }
.topline-links, .topline-contacts { gap: 22px; }
.topline a { color: inherit; }
.topline-contacts a { color: var(--ink); font-weight: 750; }
.site-header {
  top: 0;
  z-index: 60;
  padding: 4px 0 12px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.glass-header {
  padding: 10px;
  border: 1px solid var(--glass-line);
  border-radius: 34px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 12px 44px rgba(1,61,116,.08), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.header-main-row {
  display: grid;
  grid-template-columns: 230px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 2px 12px 11px;
}
.brand { gap: 11px; font-size: 19px; letter-spacing: -.045em; }
.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(145deg, #1688ee, #0055ab);
  box-shadow: 0 9px 24px rgba(2,101,190,.25), inset 0 1px 1px rgba(255,255,255,.45);
}
.brand-word { font-weight: 800; }
.brand-word > span { color: var(--blue); }
.header-search {
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: 1fr 44px;
  justify-self: center;
  padding: 3px;
  border: 1px solid rgba(0,70,140,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 2px rgba(0,45,90,.04);
}
.header-search input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.header-search button, .cart-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
}
.header-search svg, .header-actions svg, .mobile-bottom-nav svg, .consultation-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-actions { gap: 8px; }
.city-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(0,70,140,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.74);
}
.city-selector svg { width: 17px; color: var(--blue); }
.city-selector select {
  min-width: 105px;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  font-size: 11px;
}
.callback-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(2,101,190,.16);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(220,238,255,.74);
  font-size: 11px;
  font-weight: 750;
}
.callback-link svg { width: 16px; }
.cart-link {
  min-height: 48px;
  padding: 4px 4px 4px 16px;
  border-color: rgba(0,70,140,.08);
  background: rgba(255,255,255,.86);
}
.cart-copy { display: grid; line-height: 1.15; }
.cart-copy strong { font-size: 11px; }
.cart-copy small { color: var(--muted); font-size: 9px; }
.cart-icon { position: relative; background: linear-gradient(145deg, var(--blue-bright), var(--blue)); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 8px;
}
.main-nav {
  min-height: 47px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(0,70,140,.07);
  border-radius: 25px;
  background: rgba(255,255,255,.82);
}
.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: var(--blue); opacity: 1; }
.main-nav a.is-active:not(.nav-catalog) { color: var(--white); background: var(--blue); opacity: 1; }
.main-nav .nav-catalog { color: var(--white); background: var(--ink); }
.mobile-menu { display: none; }
.glass-surface, .glass-panel {
  border: 1px solid rgba(255,255,255,.76);
  background: rgba(255,255,255,.68);
  box-shadow: 0 20px 60px rgba(0,61,120,.09), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.home-hero { padding: 12px 0 34px; }
.hero-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.hero-showcase.is-single { grid-template-columns: 1fr; }
.hero-slider {
  position: relative;
  overflow: hidden;
  /* Первый экран не должен занимать весь монитор: 600px при трёх строках
     текста давали пустоту, из-за которой страница читалась как плакат. */
  min-height: 470px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 36%, rgba(71,170,255,.42), transparent 19rem),
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(218,237,252,.64));
}
.hero-slider::after {
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(255,255,255,.35);
  content: "";
}
.hero-slide {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 16px;
  padding: 32px 36px 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px);
  transition: opacity .45s ease, transform .45s ease;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.hero-copy { position: relative; z-index: 3; }
.hero-copy h1,
.hero-copy h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.028em;
}
.hero-copy > p { max-width: 560px; margin: 16px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-actions { flex-wrap: wrap; }
.hero-text-action {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}
.hero-product-visual { position: relative; z-index: 2; min-width: 0; height: 420px; display: grid; place-items: center; }
/* Картинку держим абсолютом: max-height:100% не работал, потому что высота
   родителя приходила из грид-трека, и фото вылезало за рамку на 27px. */
.hero-product-visual img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
  filter: drop-shadow(0 30px 30px rgba(0,35,80,.18));
  mix-blend-mode: multiply;
}
.hero-halo {
  position: absolute;
  width: min(32vw, 370px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(54,155,245,.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 30px 90px rgba(2,101,190,.13);
}
.hero-controls { position: absolute; z-index: 4; right: 26px; bottom: 22px; left: 26px; display: flex; align-items: center; justify-content: space-between; }
.hero-controls > button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
}
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(8,11,15,.2); }
.hero-dots button.is-active { width: 24px; border-radius: 9px; background: var(--blue); }
.hero-deal { min-height: 600px; display: flex; flex-direction: column; padding: 16px; border-radius: 34px; }
.deal-badge { align-self: flex-end; padding: 7px 11px; border-radius: 999px; color: var(--white); background: var(--blue); font-size: 11px; font-weight: 650; }
/* Свободную высоту отдаём фотографии, а не пустоте между названием и
   ценой: карточка тянется по высоте баннера, и раньше лишнее место
   уходило в разрыв посередине. */
.hero-deal-image { position: relative; flex: 1; min-height: 255px; overflow: hidden; padding: 10px; border-radius: 18px; background: #fff; }
.hero-deal-image img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; mix-blend-mode: multiply; }
.deal-benefits, .benefit-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.deal-benefits span, .benefit-chips span { padding: 5px 7px; border-radius: 999px; color: var(--blue-deep); background: var(--blue-soft); font-size: 8px; font-weight: 750; }
.hero-deal h2 { margin: 13px 0 6px; font-size: 17px; line-height: 1.23; letter-spacing: -.035em; }
.deal-price { display: grid; margin: 0 0 14px; }
.deal-price strong { font-size: 25px; letter-spacing: -.04em; }
.deal-price small { color: var(--muted); font-size: 9px; }
.category-section { padding: 48px 0; }
.section-heading h2, .faq-layout h2, .loyalty-card h2 { color: var(--ink); font-size: clamp(23px, 2.5vw, 34px); }
.section-heading a { color: var(--blue-deep); }
/* Разделы каталога: раньше были нумерованы 01…06, хотя это не шаги
   процесса, а просто список. Теперь плотная плитка — название и стрелка. */
.category-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.category-card {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  transition: color .16s ease, background .16s ease;
}
.category-card:hover { color: var(--white); background: var(--blue); }
.category-card i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.category-card i { display: flex; color: var(--muted); }
.category-card:hover i { color: rgba(255,255,255,.8); }
.category-card > span { color: var(--muted); font-size: 10px; }
.category-card strong { font-size: 15px; letter-spacing: -.01em; }
.category-card i { font-size: 22px; font-style: normal; }
.products-section { padding: 52px 0 64px; }
.product-card { border-color: rgba(255,255,255,.72); border-radius: 30px; background: rgba(255,255,255,.78); box-shadow: 0 16px 45px rgba(0,55,110,.07); }
.product-card-image { height: 300px; background: #fff; }
.product-card-image img { mix-blend-mode: multiply; }
.product-condition { top: 16px; left: 16px; padding: 8px 11px; color: #14723c; background: rgba(232,255,242,.86); }
.product-favorite { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); font-size: 18px; }
.benefit-chips { margin-bottom: 11px; }
.price-row strong { font-size: 22px; }
.icon-button { color: var(--white); background: linear-gradient(145deg, var(--blue-bright), var(--blue)); box-shadow: 0 10px 22px rgba(2,101,190,.2); }
.icon-button.is-success, .button.is-success { color: var(--white); background: #178b4d; transform: none; }
.service-section { padding-bottom: 64px; }
.service-card { position: relative; overflow: hidden; min-height: 470px; isolation: isolate; }
.service-card > * { position: relative; z-index: 2; }
.service-card h2 { font-size: clamp(24px, 2.6vw, 36px); }
.service-trade { color: var(--white); background: linear-gradient(145deg, #0474d3, #0054a8); }
.service-trade .eyebrow, .service-trade p { color: rgba(255,255,255,.68); }
.service-installment { background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(213,235,255,.9)); }
.service-orb { position: absolute; z-index: 1; right: -90px; bottom: -120px; width: 350px; height: 350px; border-radius: 50%; }
.orb-blue { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); box-shadow: inset 0 0 80px rgba(255,255,255,.18); }
.orb-white { background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(35,145,242,.22)); box-shadow: 0 25px 90px rgba(2,101,190,.18); }
.loyalty-section { padding-bottom: 64px; }
.loyalty-card {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  padding: clamp(36px, 6vw, 78px);
  border-radius: 40px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 18%, rgba(84,181,255,.7), transparent 20rem),
    linear-gradient(145deg, #0064bd, #003c82);
  box-shadow: 0 32px 80px rgba(0,63,128,.2);
}
.loyalty-card .eyebrow, .loyalty-card p { color: rgba(255,255,255,.66); }
.loyalty-card h2 { margin: 0; color: var(--white); line-height: .98; letter-spacing: -.055em; }
.loyalty-card p { max-width: 650px; line-height: 1.7; }
.loyalty-stats { display: grid; gap: 10px; align-content: center; }
.loyalty-stats div { padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.loyalty-stats strong, .loyalty-stats span { display: block; }
.loyalty-stats strong { font-size: 24px; }
.loyalty-stats span { color: rgba(255,255,255,.6); font-size: 10px; }
.blog-preview-section, .reviews-section { padding: 56px 0; background: rgba(218,231,241,.5); }
.horizontal-scroll { scrollbar-width: thin; scrollbar-color: rgba(2,101,190,.32) transparent; }
.reviews-section { background: transparent; }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(310px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.review-card { min-height: 230px; padding: 24px; border-radius: 26px; scroll-snap-align: start; }
.review-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.review-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue); font-weight: 800; }
.review-head > div { display: grid; }
.review-head time { color: var(--muted); font-size: 9px; }
.review-stars { color: var(--blue); font-size: 10px; letter-spacing: 1px; }
.review-card p { margin: 24px 0 0; color: #334050; font-size: 13px; line-height: 1.7; }
.rating-pill { padding: 10px 14px; border-radius: 999px; color: var(--white); background: var(--ink); font-weight: 800; }
.rating-pill span { color: #4baaff; font-size: 10px; }
.faq-section { padding: 52px 0 72px; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.faq-layout h2 { margin: 0 0 28px; line-height: 1; letter-spacing: -.055em; }
.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border-radius: 22px; }
.faq-item summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 750; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue); font-size: 20px; transition: transform .2s ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item > div { padding: 0 24px 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.faq-item p { margin: 0; }
.site-footer { padding-top: 92px; background: #06111d; }
.brand-light .brand-word > span { color: #56b2ff; }
.footer-brand-column p { max-width: 330px; }
.consultation-button {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 50px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 20px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.76);
  box-shadow: 0 15px 45px rgba(0,52,105,.18);
  backdrop-filter: blur(18px) saturate(150%);
}
.consultation-button > span { font-size: 11px; }
.consultation-button i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: linear-gradient(145deg, var(--blue-bright), var(--blue)); }
.callback-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity .18s ease; }
.callback-modal[hidden] { display: none; }
.callback-modal.is-open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,14,28,.55); backdrop-filter: blur(8px); }
.callback-card { position: relative; width: min(480px, 100%); padding: 36px; border-radius: 30px; transform: translateY(14px) scale(.98); transition: transform .18s ease; }
.callback-modal.is-open .callback-card { transform: translateY(0) scale(1); }
.callback-card h2 { margin: 0; font-size: 42px; letter-spacing: -.055em; }
.callback-card > p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.callback-card form { display: grid; gap: 17px; margin-top: 22px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(8,11,15,.07); font-size: 23px; }
.modal-open { overflow: hidden; }
.mobile-bottom-nav { display: none; }
.promo-ticker { position: fixed; z-index: 75; right: 0; bottom: 0; left: 0; overflow: hidden; height: 34px; color: var(--white); background: var(--blue); }
.promo-ticker > div { width: max-content; display: flex; align-items: center; animation: ticker 28s linear infinite; }
.promo-ticker span { height: 34px; display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.promo-ticker b { color: #7cc5ff; }
@keyframes ticker { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .promo-ticker > div { animation: none; } }
.messages { position: relative; z-index: 70; }
.message { color: var(--white); background: var(--blue); box-shadow: var(--shadow); }
.page-hero, .static-hero { border: 0; }
.page-hero h1, .product-info h1, .checkout-copy h1, .success-card h1, .static-hero h1 { font-family: inherit; }
.filters, .cart-summary, .checkout-summary, .specs-card, .cart-item { border: 1px solid rgba(255,255,255,.72); box-shadow: 0 16px 45px rgba(0,55,110,.07); }
.filters { padding: 20px; border-radius: 24px; background: rgba(255,255,255,.7); backdrop-filter: blur(18px); }
.filter-field input:focus, .filter-field select:focus, .field-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2,101,190,.1); }
.cart-summary, .checkout-summary { background: linear-gradient(145deg, #0a1d30, #06101b); }
.success-card { color: var(--white); background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep)); }
.success-card p { color: rgba(255,255,255,.86); }
.city-gate-page { background: linear-gradient(145deg, #0070ce, #003d83); }
.city-gate-card { border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.76); box-shadow: 0 35px 90px rgba(0,25,70,.24); backdrop-filter: blur(22px); }
.city-choice-list button,
.city-choice-list a:hover { color: var(--white); background: var(--blue); }

.button-ghost {
  border: 1px solid rgba(2,101,190,.2);
  color: var(--blue-deep);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(12px);
}
.button-ghost:hover { color: var(--white); background: var(--blue); }
.message-warning { color: #503b00; background: #ffe8a3; }
.message-error { color: var(--white); background: #b52b37; }
.error-page { min-height: 72vh; padding: 54px 0 100px; }
.error-layout {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  overflow: hidden;
  padding: clamp(38px, 7vw, 88px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 82% 36%, rgba(47,157,255,.35), transparent 20rem),
    rgba(255,255,255,.7);
}
.error-copy { position: relative; z-index: 2; }
.error-copy .brand { margin-bottom: 54px; }
.error-copy h1 {
  max-width: 780px;
  margin: 10px 0 2px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: .96;
  letter-spacing: -.065em;
}
.error-copy h2 { margin: 0 0 18px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -.02em; }
.error-copy p { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.error-visual { position: relative; min-height: 360px; display: grid; place-items: center; isolation: isolate; }
.error-visual img { position: relative; z-index: 2; width: min(100%, 430px); max-height: 460px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,63,125,.18)); }
.error-visual strong {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 8%;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .04em;
  box-shadow: 0 15px 35px rgba(0,73,145,.2);
}
.error-visual span, .error-visual i {
  position: absolute;
  border-radius: 50%;
  content: "";
}
.error-visual span { width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.32); box-shadow: inset 0 0 70px rgba(255,255,255,.42); }
.error-visual i { right: 4%; bottom: 8%; width: 120px; height: 120px; background: linear-gradient(145deg, #62b9ff, #0066bf); box-shadow: 0 25px 60px rgba(2,101,190,.26); }
.standalone-error { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.standalone-error .error-layout { width: min(1240px, 100%); }

@media (max-width: 1180px) {
  .header-main-row { grid-template-columns: 205px minmax(190px, 1fr) auto; }
  .callback-link span, .city-selector svg { display: none; }
  .callback-link { width: 42px; padding: 0; justify-content: center; }
  .main-nav a { padding-inline: 10px; }
  .main-nav a:nth-last-child(2) { display: none; }
  .hero-showcase { grid-template-columns: minmax(0, 1fr) 290px; }
  .hero-slide { padding-inline: 34px; }
}

@media (max-width: 900px) {
  body { padding-bottom: 96px; }
  .container { width: min(100% - 24px, 1240px); }
  .topline { display: block; padding: 7px 0 2px; }
  .topline-links { display: none; }
  .topline-contacts { width: 100%; justify-content: space-between; }
  .topline-contacts span { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header { padding-bottom: 8px; }
  .glass-header { padding: 7px; border-radius: 30px; }
  .header-main-row { min-height: 56px; grid-template-columns: 1fr auto; padding: 0 6px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand { font-size: 16px; }
  .header-search, .callback-link, .cart-copy { display: none; }
  .header-actions { gap: 5px; }
  .city-selector { position: static; padding: 6px 8px; }
  .city-selector select { max-width: 94px; min-width: 0; font-size: 9px; }
  .cart-link { padding: 0; border: 0; background: transparent; }
  .cart-icon { width: 40px; height: 40px; }
  .mobile-menu { width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.62); }
  .mobile-menu span { width: 18px; height: 1.5px; background: var(--ink); }
  .main-nav {
    position: absolute;
    top: 70px;
    right: 12px;
    left: 12px;
    display: none;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a, .main-nav a:nth-last-child(2) { min-height: 42px; display: flex; }
  .hero-showcase, .hero-showcase.is-single { grid-template-columns: 1fr; }
  .hero-deal { display: none; }
  .hero-slider { min-height: 570px; }
  .hero-slide { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 34px 26px 68px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(45px, 12vw, 68px); }
  .hero-copy > p { margin: 16px 0 20px; font-size: 13px; }
  .hero-product-visual { height: 245px; margin-top: 4px; }
  .hero-halo { width: 260px; }
  .hero-controls { right: 18px; bottom: 16px; left: 18px; }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .product-scroll { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .product-scroll .product-card { scroll-snap-align: start; }
  .loyalty-card, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .loyalty-stats { grid-template-columns: repeat(3, 1fr); }
  .blog-preview-grid { grid-template-columns: repeat(3, minmax(280px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .blog-card { scroll-snap-align: start; }
  .consultation-button { right: 14px; bottom: 100px; }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 85;
    right: 10px;
    bottom: 34px;
    left: 10px;
    min-height: 60px;
    display: grid;
    /* Пунктов пять, а колонок было четыре: корзина уезжала на второй ряд
       и наползала на «Главную». */
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 24px 24px 0 0;
    background: rgba(255,255,255,.82);
    box-shadow: 0 -10px 35px rgba(0,50,100,.12);
    backdrop-filter: blur(20px) saturate(150%);
  }
  .mobile-bottom-nav a { display: grid; place-items: center; gap: 2px; color: var(--ink); font-size: 8px; }
  .mobile-bottom-nav svg { width: 19px; }
  .footer-bottom { margin-bottom: 30px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .hero-slider { min-height: 520px; }
  .hero-slide {
    grid-template-columns: 1.08fr .92fr;
    align-content: center;
    align-items: center;
    gap: 14px;
    padding: 38px 30px 64px;
  }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(44px, 6.7vw, 54px); }
  .hero-copy > p { font-size: 12px; line-height: 1.55; }
  .hero-product-visual { height: 330px; margin-top: 0; }
  .hero-halo { width: 285px; }
}

@media (max-width: 600px) {
  .topline-contacts { font-size: 9px; }
  .brand-word { max-width: 124px; overflow: hidden; }
  .city-selector { display: none; }
  .home-hero { padding-top: 4px; }
  .hero-slider { min-height: 590px; border-radius: 28px; }
  .hero-slide { padding: 30px 20px 66px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(42px, 12.4vw, 60px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-product-visual { height: 235px; }
  .category-section { padding: 50px 0; }
  .category-cards { grid-template-columns: 1fr; }
  .category-card { min-height: 82px; }
  .products-section { padding: 58px 0 72px; }
  .product-scroll { grid-template-columns: repeat(6, minmax(270px, 82vw)); }
  .product-card-image { height: 285px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 430px; padding: 30px; border-radius: 30px; }
  .service-card h2 { font-size: 40px; }
  .loyalty-card { padding: 34px 24px; border-radius: 30px; }
  .loyalty-stats { grid-template-columns: 1fr; }
  .reviews-track { grid-auto-columns: 84vw; }
  .faq-section { padding-bottom: 86px; }
  .faq-item summary { padding: 0 18px; font-size: 13px; }
  .consultation-button { width: 48px; height: 48px; min-height: 48px; padding: 3px; }
  .consultation-button > span { display: none; }
  .consultation-button i { width: 40px; height: 40px; }
  .callback-card { padding: 30px 22px; }
  .callback-card h2 { font-size: 36px; }
  .error-page { padding: 18px 0 80px; }
  .error-layout { min-height: 610px; grid-template-columns: 1fr; gap: 22px; padding: 34px 24px; border-radius: 30px; }
  .error-copy h1 { font-size: clamp(43px, 12vw, 58px); }
  .error-copy p { font-size: 13px; }
  .error-actions { align-items: stretch; flex-direction: column; }
  .error-actions .button { width: 100%; }
  .error-visual { min-height: 180px; }
  .error-visual img { width: min(100%, 250px); max-height: 250px; }
  .error-visual strong { right: 10%; bottom: 4%; font-size: 14px; }
  .error-visual span { width: 180px; height: 180px; }
  .error-visual i { width: 72px; height: 72px; }
  .standalone-error { padding: 12px; }
}

/* Product cards follow the compact 9:41-style merchandising layout. */
.product-card-941 {
  position: relative;
  overflow: visible;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 32px;
  /* Карточка была полупрозрачной, а область фото — белой: получался
     светлый прямоугольник внутри карточки, особенно заметный на телефоне.
     Теперь весь блок одного цвета, фото лежит на нём без подложки. */
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 48, 96, .07);
}
.product-card-941:hover { box-shadow: 0 22px 52px rgba(0, 55, 110, .12); }
.product-card-941 .product-card-image {
  width: calc(100% + 16px);
  height: 250px;
  margin-left: -8px;
  border-radius: 31px 31px 25px 25px;
  background: transparent;
}
.product-card-941 .product-card-image img {
  inset: 16px 20px 28px;
  width: calc(100% - 40px);
  height: calc(100% - 44px);
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
}
.product-card-941 .product-condition {
  top: 13px;
  left: 13px;
  padding: 7px 10px;
  color: #323232;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .04);
  font-size: 11px;
  font-weight: 600;
}
.product-promo-row {
  position: relative;
  z-index: 5;
  /* width: max-content делала строку шире карточки: подписи не
     переносились, «Рассрочка» обрезалась, а хвост уезжал к соседу.
     Строка теперь по ширине карточки и переносится, если не влезла. */
  width: auto;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  /* Плашки лежали поверх фотографии и перечёркивали товар снизу.
     Теперь стоят строкой под снимком и по левому краю карточки — тем же
     отступом, что название и цена, иначе строка висела сама по себе. */
  margin: 12px 0 0;
  padding: 0 18px;
}
.product-promo-wrap { position: relative; min-width: 0; max-width: 100%; display: inline-flex; }
/* Плашка в одну строку: иконка и подпись рядом, высота у всех одна.
   В два яруса подпись не помещалась и вылезала за пределы фона. */
.product-promo-pill {
  min-width: 0;
  max-width: 100%;
  height: 24px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: #3c4654;
  background: #f1f4f8;
  box-shadow: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.product-promo-pill:hover,
.product-promo-pill[aria-expanded="true"] {
  color: var(--ink);
  background: #e6ecf4;
  box-shadow: none;
  transform: none;
}
.product-promo-pill svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-promo-pill span { overflow: hidden; font-size: 10px; font-weight: 600; line-height: 1; text-overflow: ellipsis; }
.product-promo-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: 205px;
  padding: 12px 13px;
  border: 1px solid rgba(2, 101, 190, .12);
  border-radius: 14px;
  color: #566274;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 35px rgba(0, 48, 96, .16);
  font-size: 9px;
  line-height: 1.45;
  transform: translateX(-50%);
  white-space: normal;
  backdrop-filter: blur(15px);
}
.product-promo-wrap:last-child .product-promo-popover { right: 0; left: auto; transform: none; }
.product-promo-popover[hidden] { display: none; }
.product-promo-popover strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 10px; }
.product-card-941 .product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Те же 18px, что у строки плашек и у кнопки: весь текст карточки
     стоит на одной вертикали. */
  padding: 0 18px 2px;
}
.product-card-941 h3 {
  min-height: 39px;
  margin: 10px 0 10px;
  color: #323232;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.product-card-941 .variant-line {
  min-height: 17px;
  margin-bottom: 12px;
  color: #777f8a;
  font-size: 10px;
  line-height: 1.35;
}
.product-card-price { min-height: 28px; display: flex; align-items: baseline; gap: 8px; }
.product-card-price strong { color: #101318; font-size: 21px; line-height: 1; letter-spacing: -.045em; }
.product-card-price del { color: #9aa2ad; font-size: 10px; }
.product-cashback { margin: 7px 0 13px; color: #6e7784; font-size: 9px; line-height: 1.3; }
.product-card-actions { display: grid; grid-template-columns: 1fr 43px; gap: 8px; margin-top: auto; padding-top: 12px; }
.product-card-actions form { min-width: 0; }
.product-add-button {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 18px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 999px;
  color: #111;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 51, 102, .06);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}
.product-add-button > span { flex: 1; }
.add-label-short { display: none; }
.product-add-button i,
.product-more-button {
  width: 37px;
  height: 37px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue));
  box-shadow: 0 6px 14px rgba(2, 101, 190, .22);
}
.product-add-button i { font-style: normal; }
.product-add-button svg,
.product-more-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-more-button { width: 43px; height: 43px; align-self: center; }
.product-add-button:hover i,
.product-more-button:hover { background: var(--blue-deep); }
.product-add-button.is-success { justify-content: center; padding: 4px 12px; color: #fff; background: #178b4d; }
.product-add-button:disabled { cursor: wait; }

.product-promo-row-detail {
  width: auto;
  max-width: none;
  justify-content: flex-start;
  margin: 22px 0 26px;
}
.product-promo-row-detail .product-promo-pill { min-width: 66px; height: 50px; padding-inline: 10px; }
.product-promo-row-detail .product-promo-pill span { font-size: 9px; }
.product-promo-row-detail .product-promo-popover { width: 230px; }

@media (max-width: 900px) {
  .product-card-941 { min-height: 500px; }
  .product-card-941 .product-card-image { height: 245px; }
  .product-card-941 h3 { font-size: 15px; }
}

@media (max-width: 600px) {
  .product-card-941 { min-height: 520px; }
  .product-card-941 .product-card-image { height: 285px; }
  .product-card-941 h3 { min-height: auto; font-size: 16px; }
  .product-promo-row { margin-top: 10px; }
  .product-promo-row-detail { flex-wrap: wrap; margin-top: 20px; }
  .product-promo-row-detail .product-promo-popover { right: auto; left: 0; transform: none; }
}

.topline-compare { display: inline-flex; align-items: center; gap: 5px; }
.topline-compare b {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 8px;
}
.header-compare-link {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(2, 101, 190, .12);
  border-radius: 50%;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, .66);
}
.header-compare-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.header-compare-link b {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 8px;
}
.product-card-actions > form:last-child { width: 43px; }
.product-compare-button { padding: 0; border: 0; }
.product-compare-button.is-active { color: #fff; background: #111; box-shadow: 0 0 0 3px rgba(2, 101, 190, .16); }
.product-compare-button:disabled { opacity: .65; cursor: wait; }
.detail-compare-form { margin: -10px 0 26px; }
.detail-compare-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(2, 101, 190, .18);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 650;
}
.detail-compare-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.detail-compare-button.is-active { color: #fff; background: var(--blue); }

.compare-page { min-height: 70vh; padding: 28px 0 110px; }
.compare-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 24px 0 30px;
}
.compare-heading h1 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}
.compare-heading p { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.compare-scroll {
  overflow: auto;
  max-height: calc(100vh - 150px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 22px 55px rgba(0, 55, 110, .09);
  backdrop-filter: blur(18px);
  overscroll-behavior-inline: contain;
}
.compare-table {
  width: 100%;
  min-width: 760px;
  border-spacing: 0;
  table-layout: fixed;
  color: #20262e;
  font-size: 11px;
}
.compare-table th,
.compare-table td {
  width: 245px;
  padding: 17px 18px;
  border-right: 1px solid rgba(8, 36, 67, .08);
  border-bottom: 1px solid rgba(8, 36, 67, .08);
  vertical-align: top;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.compare-table tr > :first-child {
  position: sticky;
  z-index: 3;
  left: 0;
  width: 180px;
  color: #657181;
  background: rgba(246, 249, 251, .97);
  font-weight: 650;
  text-align: left;
}
.compare-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 112px;
  background: rgba(255, 255, 255, .97);
  vertical-align: middle;
}
.compare-table thead tr > :first-child { z-index: 6; }
.compare-table tbody tr:nth-child(even) td { background: rgba(242, 247, 250, .45); }
.compare-product-head { position: relative; min-height: 76px; display: flex; align-items: center; padding-right: 24px; }
.compare-product-head a { font-size: 12px; font-weight: 750; line-height: 1.35; }
.compare-product-head form { position: absolute; top: -5px; right: -7px; }
.compare-product-head button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #798493;
  background: #eef2f5;
  font-size: 18px;
}
.compare-photo-row td { height: 250px; padding: 14px; background: rgba(247, 249, 250, .62); }
.compare-photo-row img { width: 100%; height: 220px; object-fit: contain; }
.compare-price-row td { vertical-align: middle; }
.compare-price-row td strong { display: block; margin-bottom: 10px; font-size: 20px; letter-spacing: -.04em; }
.compare-price-row td span { display: block; color: var(--muted); font-size: 9px; }
.compare-price-row .button { min-height: 38px; padding-inline: 15px; font-size: 10px; }
.compare-hint { display: none; margin: 12px 5px 0; color: var(--muted); font-size: 9px; }
.compare-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 45px;
  border-radius: 36px;
  text-align: center;
}
.compare-empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 16px 35px rgba(2, 101, 190, .25);
}
.compare-empty-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.compare-empty h2 { margin: 22px 0 5px; font-size: 34px; letter-spacing: -.045em; }
.compare-empty p { max-width: 520px; margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mobile-compare-icon { position: relative; display: grid; place-items: center; }
.mobile-compare-icon > b {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 6px;
}

@media (max-width: 1080px) {
  .header-compare-link { display: none; }
}

@media (max-width: 700px) {
  .mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .compare-page { padding-top: 14px; padding-bottom: 90px; }
  .compare-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .compare-heading h1 { font-size: 42px; }
  .compare-heading form .button { width: 100%; }
  .compare-scroll { max-height: calc(100vh - 185px); border-radius: 20px; }
  .compare-table { min-width: 650px; font-size: 10px; }
  .compare-table th, .compare-table td { width: 220px; padding: 13px 14px; }
  .compare-table tr > :first-child { width: 132px; }
  .compare-table thead th { height: 105px; }
  .compare-photo-row td { height: 210px; }
  .compare-photo-row img { height: 180px; }
  .compare-hint { display: block; }
  .compare-empty { min-height: 380px; padding: 30px 20px; border-radius: 28px; }
  .topline-compare b { color: #fff; background: var(--blue); }
}

/* Installment and Trade-in calculators */
.calculator-page { min-height: 72vh; padding: 28px 0 120px; }
.calculator-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  margin: 30px 0 36px;
}
.calculator-heading h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: .96;
  letter-spacing: -.065em;
}
.calculator-heading p { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.calculator-rule-chips { display: grid; grid-template-columns: repeat(3, 112px); gap: 8px; }
.calculator-rule-chips span {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,255,255,.62);
  font-size: 9px;
  line-height: 1.35;
}
.calculator-rule-chips strong { color: var(--blue); font-size: 27px; line-height: 1; letter-spacing: -.045em; }
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 20px;
  padding: 20px;
  border-radius: 38px;
  background: rgba(255,255,255,.62);
}
.calculator-controls { display: grid; align-content: center; gap: 34px; padding: clamp(24px, 5vw, 62px); }
.calculator-field { display: grid; gap: 13px; }
.calculator-field > span,
.calculator-label-row label { color: #273443; font-size: 11px; font-weight: 750; }
.calculator-field select {
  width: 100%;
  min-height: 62px;
  padding: 0 48px 0 18px;
  border: 1px solid rgba(8,36,67,.12);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 650;
}
.calculator-label-row { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.calculator-label-row > strong { color: var(--blue-deep); font-size: 14px; }
.calculator-number-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(2,101,190,.16);
  border-radius: 14px;
  background: #fff;
}
.calculator-number-wrap input { width: 115px; min-height: 42px; padding: 0; border: 0; outline: 0; background: transparent; font-weight: 750; text-align: right; }
.calculator-number-wrap span { color: var(--muted); font-size: 12px; }
.calculator-range { width: 100%; height: 6px; accent-color: var(--blue); cursor: ew-resize; }
.range-scale { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; }
.range-scale span:last-child { text-align: right; }
.calculator-result {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 4vw, 48px);
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(69,170,255,.75), transparent 15rem),
    linear-gradient(145deg, #086ec8, #004687);
  box-shadow: 0 24px 55px rgba(0,73,145,.2);
}
.calculator-product-preview { min-height: 105px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; }
.calculator-product-preview img { width: 92px; height: 92px; object-fit: contain; border-radius: 18px; background: rgba(255,255,255,.92); }
.calculator-product-preview div { min-width: 0; display: grid; gap: 5px; }
.calculator-product-preview span, .calculator-product-preview small { color: rgba(255,255,255,.66); font-size: 9px; }
.calculator-product-preview strong { font-size: 23px; letter-spacing: -.04em; }
.calculator-product-preview small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monthly-payment { margin: 34px 0 22px; padding: 24px 0; border-block: 1px solid rgba(255,255,255,.2); }
.monthly-payment span, .monthly-payment small { display: block; color: rgba(255,255,255,.7); font-size: 10px; }
.monthly-payment strong { display: block; margin: 7px 0; font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; }
.calculator-summary { display: grid; gap: 10px; margin: 0 0 28px; }
.calculator-summary div { display: flex; justify-content: space-between; gap: 20px; }
.calculator-summary dt { color: rgba(255,255,255,.62); font-size: 9px; }
.calculator-summary dd { margin: 0; font-size: 10px; font-weight: 750; }
.calculator-actions { display: grid; gap: 12px; margin-top: auto; text-align: center; }
.calculator-result .button-primary { color: var(--blue-deep); background: #fff; box-shadow: none; }
.calculator-product-link { color: rgba(255,255,255,.76); font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.trade-in-shell { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); }
.trade-in-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trade-in-steps span { display: grid; align-content: start; gap: 9px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.trade-in-steps b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); }
.trade-in-result { justify-content: center; background: linear-gradient(145deg, #0877d7, #004680); }
.trade-in-result .eyebrow { color: rgba(255,255,255,.62); }
.trade-in-price { display: block; margin: 10px 0 22px; font-size: clamp(50px, 5vw, 72px); line-height: .95; letter-spacing: -.065em; }
.trade-in-result > p { margin: 0 0 24px; font-size: 15px; line-height: 1.5; }
.trade-in-result > p span { color: rgba(255,255,255,.67); font-size: 11px; }
.trade-in-disclaimer { margin-bottom: 30px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.09); font-size: 9px; line-height: 1.55; }

@media (max-width: 980px) {
  .calculator-heading { grid-template-columns: 1fr; }
  .calculator-rule-chips { grid-template-columns: repeat(3, 1fr); }
  .calculator-shell { grid-template-columns: 1fr; }
  .calculator-result { min-height: 470px; }
}

@media (max-width: 600px) {
  .calculator-page { padding: 16px 0 90px; }
  .calculator-heading { gap: 24px; margin: 22px 0 24px; }
  .calculator-heading h1 { font-size: 43px; }
  .calculator-heading p { font-size: 12px; }
  .calculator-rule-chips { gap: 5px; }
  .calculator-rule-chips span { min-height: 92px; padding: 12px 9px; border-radius: 17px; font-size: 7px; }
  .calculator-rule-chips strong { font-size: 23px; }
  .calculator-shell { gap: 8px; padding: 8px; border-radius: 27px; }
  .calculator-controls { gap: 28px; padding: 25px 15px; }
  .calculator-field select { font-size: 10px; }
  .calculator-label-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .calculator-number-wrap { width: 100%; justify-content: flex-end; }
  .calculator-number-wrap input { width: 100%; }
  .calculator-result { min-height: 440px; padding: 25px 20px; border-radius: 23px; }
  .calculator-product-preview { grid-template-columns: 72px 1fr; }
  .calculator-product-preview img { width: 72px; height: 72px; }
  .trade-in-steps { grid-template-columns: 1fr; }
  .trade-in-price { font-size: 48px; }
}

/* Liquid Glass refresh — optical navigation layer inspired by current iOS. */
:root {
  --glass-x: 50%;
  --glass-y: 0%;
  --glass-clear: rgba(255, 255, 255, .38);
  --glass-milky: rgba(245, 250, 255, .62);
  --glass-edge: rgba(255, 255, 255, .84);
  --glass-shadow: 0 22px 55px rgba(20, 67, 112, .12), 0 3px 10px rgba(26, 72, 118, .07);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(49, 112, 171, .08);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(104, 193, 255, .22), transparent 29rem),
    radial-gradient(circle at 94% 17%, rgba(93, 135, 255, .14), transparent 34rem),
    radial-gradient(circle at 58% 72%, rgba(151, 218, 255, .1), transparent 32rem),
    linear-gradient(145deg, #eef6fc 0%, #eaf2f8 46%, #f4f8fb 100%);
  background-attachment: fixed;
}

.site-ambient {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 34%, rgba(255,255,255,.72), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.26), transparent 45%);
}
.site-ambient::before,
.site-ambient::after {
  position: absolute;
  width: min(46vw, 650px);
  aspect-ratio: 1.35;
  border-radius: 50%;
  content: "";
  filter: blur(42px);
  opacity: .42;
  transform: rotate(-12deg);
  animation: liquid-ambient 18s ease-in-out infinite alternate;
}
.site-ambient::before { top: 8%; left: -14%; background: rgba(93, 185, 255, .26); }
.site-ambient::after { right: -18%; bottom: 7%; background: rgba(89, 121, 255, .17); animation-delay: -9s; }

.liquid-glass {
  --glass-x: 50%;
  --glass-y: 0%;
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.95), rgba(255,255,255,.2) 18%, transparent 39%) padding-box,
    linear-gradient(138deg, rgba(255,255,255,.58), rgba(234,245,255,.31)) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(163,207,244,.32) 55%, rgba(255,255,255,.76)) border-box;
  box-shadow: var(--glass-shadow), var(--glass-inner);
  backdrop-filter: blur(30px) saturate(180%) contrast(108%);
  -webkit-backdrop-filter: blur(30px) saturate(180%) contrast(108%);
  transition: box-shadow .28s ease, filter .28s ease, transform .28s cubic-bezier(.2,.75,.2,1);
}
.liquid-glass::before {
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255,255,255,.42), transparent 24%, transparent 72%, rgba(93,174,241,.1)),
    radial-gradient(ellipse at var(--glass-x) -20%, rgba(255,255,255,.6), transparent 44%);
  content: "";
  opacity: .72;
}
.liquid-glass > * { position: relative; z-index: 1; }
.liquid-glass:hover { box-shadow: 0 28px 68px rgba(20,67,112,.16), 0 5px 14px rgba(26,72,118,.08), var(--glass-inner); }
.liquid-glass.is-glass-pressed { filter: brightness(.98) saturate(1.06); }

.glass-header.liquid-glass {
  padding: 9px;
  border-radius: 36px;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.96), rgba(255,255,255,.16) 20%, transparent 42%) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.48), rgba(235,246,255,.3)) padding-box,
    linear-gradient(145deg, #fff, rgba(139,196,240,.26), rgba(255,255,255,.88)) border-box;
  box-shadow: 0 22px 60px rgba(17,73,123,.13), 0 2px 8px rgba(25,83,133,.07), inset 0 1.5px 1px rgba(255,255,255,.96), inset 0 -1px 0 rgba(52,111,165,.08);
}
.main-nav {
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 1px 0 rgba(59,116,168,.07);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.main-nav a { transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease; }
.main-nav a:hover { background: rgba(26,136,238,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 18px rgba(2,101,190,.18); transform: translateY(-1px); }
.main-nav a.is-active:not(.nav-catalog) {
  background: linear-gradient(145deg, rgba(39,151,248,.92), rgba(0,87,179,.9));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -1px 1px rgba(0,44,103,.2), 0 8px 22px rgba(2,101,190,.22);
}
.main-nav .nav-catalog {
  background: linear-gradient(145deg, rgba(23,29,37,.95), rgba(0,4,9,.9));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.23), 0 8px 18px rgba(1,15,28,.16);
}

.header-search,
.city-selector,
.callback-link,
.header-compare-link,
.cart-link,
.product-promo-pill,
.product-add-button,
.filter-field input,
.filter-field select,
.price-fields input,
.catalog-toolbar select,
.calculator-field select,
.calculator-number-wrap {
  border-color: rgba(255,255,255,.72);
  background-color: rgba(255,255,255,.43);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), inset 0 -1px 0 rgba(55,110,162,.06), 0 7px 20px rgba(20,72,120,.07);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}
.header-search:focus-within,
.city-selector:focus-within,
.filter-field input:focus,
.filter-field select:focus,
.price-fields input:focus,
.calculator-field select:focus,
.calculator-number-wrap:focus-within {
  border-color: rgba(41,151,246,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 4px rgba(35,142,236,.12), 0 12px 28px rgba(20,72,120,.1);
}
.callback-link {
  color: #004f9f;
  background: linear-gradient(145deg, rgba(225,242,255,.64), rgba(188,224,255,.42));
}
.cart-icon,
.icon-button,
.product-add-button i,
.product-more-button,
.consultation-button i,
.button-primary {
  background: linear-gradient(145deg, rgba(38,157,255,.97), rgba(0,79,169,.96));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.52), inset 0 -1px 1px rgba(0,42,104,.24), 0 12px 25px rgba(0,93,187,.24);
}

.filters.liquid-glass {
  border-radius: 30px;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.92), transparent 40%) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.53), rgba(231,243,252,.38)) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(145,197,237,.26)) border-box;
}
.filters .button-dark {
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, rgba(25,32,41,.95), rgba(0,5,11,.92));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 12px 25px rgba(1,15,28,.15);
}

.liquid-card {
  --glass-x: 50%;
  --glass-y: 0%;
  border: 1px solid rgba(255,255,255,.8);
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.82), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.57), rgba(235,244,250,.43));
  box-shadow: 0 18px 45px rgba(23,72,116,.09), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(17px) saturate(145%);
  -webkit-backdrop-filter: blur(17px) saturate(145%);
  transition: transform .3s cubic-bezier(.2,.75,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.liquid-card:hover {
  border-color: rgba(255,255,255,.98);
  box-shadow: 0 27px 64px rgba(20,70,114,.15), inset 0 1px 0 rgba(255,255,255,.96);
  transform: translateY(-2px);
}
/* Под фотографией лежал голубоватый градиент, и белый кадр снимка
   читался на нём прямоугольником с видимой границей. Фон под товаром
   должен быть ровно белым — тогда фотографии сливаются с карточкой. */
.liquid-card .product-card-image {
  border: 0;
  background: #fff;
  box-shadow: none;
}
.product-card-941.liquid-card { background: #fff; }
.liquid-card .product-condition,
.product-promo-pill {
  background: rgba(250,253,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 20px rgba(23,73,116,.09);
}
.product-promo-pill:hover,
.product-promo-pill[aria-expanded="true"] { background: rgba(255,255,255,.82); }
.product-promo-popover {
  border-color: rgba(255,255,255,.86);
  background: rgba(244,250,255,.74);
  box-shadow: 0 20px 45px rgba(18,63,105,.16), inset 0 1px 0 rgba(255,255,255,.94);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
}

.calculator-shell.liquid-glass,
.compare-scroll.liquid-glass {
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.86), transparent 35%) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.46), rgba(224,240,251,.34)) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(140,196,238,.25), rgba(255,255,255,.8)) border-box;
}
.calculator-result {
  border: 1px solid rgba(255,255,255,.26);
  background:
    radial-gradient(circle at 88% 4%, rgba(87,188,255,.9), transparent 16rem),
    linear-gradient(145deg, rgba(9,118,211,.96), rgba(0,55,119,.96));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.38), inset 0 -1px 0 rgba(0,25,68,.3), 0 24px 55px rgba(0,73,145,.22);
}

.consultation-button.liquid-glass {
  /* .liquid-glass объявлен ниже по файлу и ставит position: relative — при
     равной силе селекторов он перебивал position: fixed у кнопки. Она
     переставала быть плавающей, становилась блоком в конце страницы и
     растягивалась во всю ширину: светлая полоса под футером — это она. */
  position: fixed;
  background:
    radial-gradient(circle at var(--glass-x) var(--glass-y), rgba(255,255,255,.98), transparent 48%) padding-box,
    linear-gradient(145deg, rgba(255,255,255,.62), rgba(221,239,251,.42)) padding-box,
    linear-gradient(145deg, #fff, rgba(141,198,239,.3)) border-box;
}
.callback-card.liquid-glass { background-color: rgba(244,250,255,.76); }
.callback-card.liquid-glass > .modal-close { position: absolute; }

@media (max-width: 900px) {
  .glass-header.liquid-glass { border-radius: 30px; }
  .main-nav {
    position: absolute;
    border: 1px solid rgba(255,255,255,.82);
    background: rgba(239,247,253,.76);
    box-shadow: 0 24px 60px rgba(15,61,104,.2), inset 0 1px 0 rgba(255,255,255,.94);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
  }
  .mobile-bottom-nav.liquid-glass {
    position: fixed;
    right: 8px;
    bottom: 40px;
    left: 8px;
    border-radius: 27px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.6), rgba(229,241,250,.43)) padding-box,
      linear-gradient(145deg, #fff, rgba(142,196,236,.28)) border-box;
    box-shadow: 0 20px 52px rgba(13,60,104,.18), inset 0 1px 0 rgba(255,255,255,.95);
  }
  .mobile-bottom-nav a { min-width: 0; border-radius: 18px; transition: background .2s ease, color .2s ease; }
  .mobile-bottom-nav a:active { color: var(--blue-deep); background: rgba(255,255,255,.5); }
}

@media (prefers-reduced-motion: reduce) {
  .site-ambient::before, .site-ambient::after { animation: none; }
  .liquid-glass, .liquid-card { transition: none; }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .liquid-glass, .liquid-card, .main-nav, .product-promo-popover { background: rgba(245,250,254,.96); }
}

@keyframes liquid-ambient {
  from { transform: translate3d(-2%, -1%, 0) rotate(-12deg) scale(1); }
  to { transform: translate3d(7%, 5%, 0) rotate(-3deg) scale(1.08); }
}


/* Скрытая ловушка для ботов: человек это поле не видит и не заполняет. */
.antispam-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.smart-captcha {
  margin: 12px 0;
}

/* ── Выпадающие списки и числовые поля ─────────────────────────────────
   Браузер рисует их системным контролом: на macOS это серый прямоугольник
   со стрелками вверх-вниз, который выбивается из стеклянного оформления.
   Отключаем системный вид и рисуем свою стрелку. Блок идёт в конце файла
   намеренно: выше есть правила с сокращённым `background`, которые иначе
   затёрли бы фоновую картинку. */
.city-selector select,
.filter-field select,
.catalog-toolbar select,
.calculator-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' stroke='%23334155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px 8px;
}
.city-selector select::-ms-expand,
.filter-field select::-ms-expand,
.catalog-toolbar select::-ms-expand,
.calculator-field select::-ms-expand { display: none; }

.filter-field select,
.catalog-toolbar select,
.calculator-field select { padding-right: 34px; }

.city-selector select {
  padding-right: 18px;
  background-position: right 1px center;
  background-size: 9px 7px;
}

/* Список раскрывается системным меню — оставляем ему читаемые цвета,
   иначе в тёмной теме браузера пункты сливаются. */
.city-selector select option,
.filter-field select option,
.catalog-toolbar select option,
.calculator-field select option {
  color: var(--ink);
  background: var(--white);
}

/* Стрелки-крутилки у полей цены — такой же чужеродный системный контрол. */
.price-fields input[type="number"],
.calculator-number-wrap input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.price-fields input[type="number"]::-webkit-outer-spin-button,
.price-fields input[type="number"]::-webkit-inner-spin-button,
.calculator-number-wrap input[type="number"]::-webkit-outer-spin-button,
.calculator-number-wrap input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 720px) {
  .city-selector select { padding-right: 15px; background-size: 8px 6px; }
}

/* ── Миниатюры на странице товара ─────────────────────────────────── */
.product-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 96px);
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.product-thumb {
  /* Размеры картинки заданы через calc от рамки, а не процентами: у кнопки
     процентная высота ребёнка не разрешается, и вертикальные снимки
     выводились в натуральную величину поверх соседей. Тот же приём, что
     в карточках каталога. */
  position: relative;
  width: 96px;
  height: 96px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.product-thumb img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-thumb:hover { border-color: rgba(2,101,190,.4); }
.product-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2,101,190,.14);
}
.product-thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 720px) {
  .product-thumbs { grid-auto-columns: minmax(0, 72px); gap: 8px; }
  .product-thumb { width: 72px; height: 72px; padding: 6px; border-radius: 12px; }
  .product-thumb img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
}

/* Плашка наличия. Цвет кодирует состояние, а не украшает: зелёная точка —
   товар на складе города, серая — привезём под заказ. */
.product-condition::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #12a150;
  vertical-align: middle;
}
.product-condition-order { color: var(--muted); }
.product-condition-order::before { background: #9aa4b2; }
/* Красная — товара в городе нет, доставим под заказ через менеджера. */
.product-condition.product-condition-out {
  color: #b3261e;
  background: rgba(255,238,236,.94);
  box-shadow: inset 0 0 0 1px rgba(217,48,37,.18), 0 5px 12px rgba(0,0,0,.04);
}
.product-condition.product-condition-out::before { background: #d93025; }
.product-add-button-ask { color: #1b2733; background: rgba(240,245,250,.9); box-shadow: inset 0 0 0 1px rgba(23,73,116,.14); }
.product-add-button-ask:hover { background: rgba(232,240,248,.98); }

/* Оговорка про цену. Мелкая, но не серая до нечитаемости: это условие
   сделки, а не украшение. Стоит до характеристик, чтобы посетитель увидел
   её раньше, чем начнёт сравнивать цифры. */
.price-note {
  max-width: 620px;
  margin: 26px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--blue-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Отзывы о конкретной модели на странице товара. */
.product-reviews { margin-top: 64px; }
.product-reviews h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; }

/* ——— Выбор варианта на странице товара ———
   Память и SIM — пилюли, цвет — кружок: глазу быстрее, чем читать список
   из десяти одинаковых строк. Недоступную комбинацию гасим, но оставляем
   на месте, чтобы список не прыгал под пальцем. */
.variant-picker { display: grid; gap: 18px; margin: 22px 0 18px; }
.option-group { display: grid; gap: 9px; }
.option-title {
  display: flex;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.option-title em { margin-left: 6px; font-style: normal; color: var(--ink); font-weight: 700; }
.option-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.option-row-colors { gap: 12px; padding: 4px 0 5px; }
.option-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(23,73,116,.16);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.option-chip:hover { border-color: rgba(23,73,116,.36); }
.option-chip.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.option-chip.is-empty { color: var(--muted); opacity: .45; }
.option-chip.is-empty.is-active { opacity: .75; }
/* Кнопка ровно по размеру кружка: любое поле вокруг сдвигало ряд влево
   относительно чипов памяти. Кольцо выбранного рисуется наружной тенью,
   поэтому размер и сетка при переключении не меняются. */
.option-dot {
  width: 26px;
  height: 26px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transition: box-shadow .15s ease;
}
.option-dot i {
  width: 26px;
  height: 26px;
  display: block;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 50%;
}
.option-dot:hover { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px rgba(12,28,54,.22); }
.option-dot.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.option-dot.is-empty { opacity: .4; }
.option-dot-text {
  width: auto;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(23,73,116,.16);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}
.option-dot-text.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }

.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(23,73,116,.1);
}
.buy-price { display: grid; margin-right: auto; }
.buy-price strong { font-size: 26px; letter-spacing: -.01em; }
.buy-price span { color: var(--muted); font-size: 12px; }
.buy-box form { margin: 0; }
.buy-box .button { min-height: 46px; padding: 0 26px; }

/* ——— Телефон ———
   Шапка липкая и полупрозрачная: на светлом фоне сквозь неё просвечивал
   контент и казалось, что блоки наезжают друг на друга. Делаем её плотной
   и даём странице полосу того же цвета, чтобы под карточкой шапки ничего
   не проглядывало. Каталог переводим в две колонки — так на экран влезает
   вдвое больше товара и пропадает ощущение нахламленности. */
@media (max-width: 720px) {
  .site-header {
    padding-top: 6px;
    background: linear-gradient(to bottom, var(--paper) 62%, rgba(238,243,247,0));
  }
  .glass-header { background: rgba(255,255,255,.96); backdrop-filter: blur(26px) saturate(160%); }

  /* Слайды первого экрана позиционированы абсолютом, высоту задаёт сам
     слайдер. На телефоне текст с фотографией в неё не помещались, и низ
     снимка срезало краем слайда. Даём больше высоты и уменьшаем заголовок. */
  /* Карточки услуг стояли с запасом высоты в 430 пикселей, а секции —
     с полями под сотню: между блоками получались пустые полосы
     в полэкрана. Ниже — плотный ритм для телефона. */
  .service-card { min-height: 0; padding: 22px; border-radius: 22px; }
  .service-card h2 { font-size: 26px; }
  .service-card p { margin: 8px 0 18px; }
  .service-section { padding-bottom: 36px; }
  .service-grid { gap: 10px; }
  .loyalty-section { padding-bottom: 36px; }
  .loyalty-card { padding: 22px 18px; border-radius: 22px; gap: 20px; }
  .loyalty-stats { gap: 8px; }
  .reviews-section, .blog-preview-section { padding: 36px 0; }
  .category-section { padding: 30px 0; }
  /* Разделы в один столбец занимали пол-экрана впустую: названия
     короткие, в два столбца они читаются так же и втрое компактнее. */
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .category-card { padding: 12px 13px; border-radius: 12px; }
  .category-card strong { font-size: 13px; }
  /* Три пояснения занимали треть экрана. Заголовков достаточно —
     подробности читают на страницах рассрочки и Trade-in. */
  .assurance { align-items: center; padding: 10px 12px; border-radius: 12px; gap: 9px; }
  .assurance strong { font-size: 13px; }
  .assurance em { display: none; }
  .assurance-row { gap: 6px; }
  .loyalty-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .loyalty-stats > div { padding: 12px 10px; }
  .loyalty-stats strong { font-size: 18px; }
  .loyalty-stats span { font-size: 10px; }
  .products-section { padding: 30px 0 36px; }
  .faq-section { padding: 30px 0 48px; }
  .assurance-section { padding: 10px 0 0; }
  .section-heading { margin-bottom: 14px; }

  .hero-slider { min-height: 700px; }
  .hero-slide { align-content: center; padding: 26px 20px 58px; }
  .hero-copy h1, .hero-copy h2 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero-copy p { font-size: 13px; }
  .hero-product-visual { height: 200px; margin-top: 10px; }

  .product-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card-941 { min-height: 0; padding: 0 5px 12px; border-radius: 22px; }
  .product-card-941 .product-card-image {
    width: calc(100% + 10px);
    height: 158px;
    margin-left: -5px;
    border-radius: 21px 21px 16px 16px;
  }
  .product-card-941 .product-card-image img { inset: 12px 14px 16px; width: calc(100% - 28px); height: calc(100% - 28px); }
  .product-card-941 .product-condition { top: 9px; left: 9px; padding: 5px 8px; font-size: 10px; }
  .product-card-body { padding: 0 9px 2px; }
  .product-card h3 { min-height: 0; margin: 6px 0 3px; font-size: 13px; line-height: 1.25; }
  .variant-line { min-height: 0; font-size: 11px; }
  .product-card-price { min-height: 0; margin-top: 8px; }
  .product-card-price strong { font-size: 17px; }
  .product-card-actions { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .product-card-actions .product-compare-button { display: none; }
  .product-add-button { height: 40px; padding-left: 14px; font-size: 12px; }
  /* «Добавить в корзину» в колонке 170px ломается на две строки. */
  .add-label-long { display: none; }
  .add-label-short { display: block; }
  .product-add-button i { width: 32px; height: 32px; }
  /* Три промо-плашки в узкой карточке не читаются — оставляем рассрочку. */
  .product-promo-row { flex-wrap: nowrap; gap: 3px; padding: 0 9px; margin-top: 10px; }
  .product-promo-pill { height: 24px; gap: 4px; padding: 0 8px; }
  .product-promo-pill span { font-size: 10px; }
  .product-promo-pill svg { width: 13px; height: 13px; }
  .product-promo-pill { padding: 5px 9px; }
  .product-promo-pill span { font-size: 10px; }

  /* Заголовок страницы занимал экран целиком: 85px отступа сверху и
     шрифт в 64px на 375 пикселях ширины. Ужимаем — товар должен начинаться
     в первом экране. */
  /* На телефоне заголовок товара печатался в 52px и наезжал на нижнюю
     панель. Остальные размеры подтянуты под ту же плотность. */
  .product-info { padding-top: 16px; }
  .product-info h1 { font-size: 26px; }
  .product-main-image { height: 300px; padding: 18px; border-radius: 22px; }
  .product-main-image img { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); }
  .product-detail-grid { gap: 18px; }
  .product-info .lead { font-size: 13px; }

  .page-hero { padding: 20px 0 16px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { margin-top: 8px; font-size: 13px; }
  .catalog-section { padding: 18px 0 70px; }
  .product-detail { padding: 12px 0 70px; }

  /* Верхняя строка с адресом и телефоном на телефоне торчала над карточкой
     шапки обрезанным хвостом — контакты и так есть в подвале и в меню. */
  .topline { display: none; }

  /* Выпадающее меню наследовало раскладку горизонтальной панели:
     justify-content: space-between растаскивал пункты по всей высоте,
     подписи стояли по центру, а полупрозрачный фон пропускал страницу
     насквозь. Делаем обычный плотный список. */
  .main-nav {
    top: 64px;
    right: 10px;
    left: 10px;
    z-index: 80;
    justify-content: flex-start;
    gap: 2px;
    padding: 8px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 26px 60px rgba(0,40,86,.26);
    backdrop-filter: blur(24px) saturate(160%);
  }
  /* Двум последним пунктам планшетное правило возвращало display: block —
     они прятались на средних экранах. Из-за этого у «Рассрочки» текст
     прилипал к верху плашки вместо центра. */
  .main-nav a,
  .main-nav a:nth-last-child(-n+2) {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 14px;
  }
  .main-nav .nav-catalog { margin-bottom: 4px; }

  /* Логотип, город, корзина и меню не помещались в 375 пикселей, и вся
     страница получала горизонтальную прокрутку в тринадцать точек.
     Разрешаем колонкам сжиматься и режем длинное название города. */
  /* Название не должно сжиматься первым: колонки по содержимому, а
     лишнее место отдаём промежутку между логотипом и кнопками. */
  .header-main-row { grid-template-columns: auto auto; justify-content: space-between; gap: 8px; }
  .brand { min-width: 0; }
  /* Название магазина должно читаться целиком: при 116px оно обрезалось
     до «Техн…». Немного уменьшаем начертание и даём ему место. */
  .brand { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-word { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { min-width: 0; gap: 4px; }
  .city-picker-button span { max-width: 74px; }

  .catalog-layout { grid-template-columns: 1fr; gap: 12px; }
  .filters { position: static; padding: 10px; }
  .filters form { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters .filter-field > span { font-size: 11px; }
  .filters .button-full { grid-column: 1 / -1; width: 100%; min-height: 42px; }
  .filters .reset-link { grid-column: 1 / -1; padding-bottom: 0; text-align: center; }
  .catalog-toolbar { margin-bottom: 14px; }

  .variant-picker { gap: 14px; margin: 18px 0 14px; }
  .buy-box { padding: 14px; border-radius: 18px; }
  .buy-price strong { font-size: 22px; }
  .buy-box .button, .buy-box form { width: 100%; }
}

/* ——— Выбор города ———
   Системный select выглядел чужеродно и по-разному в каждом браузере.
   Здесь кнопка с адресом магазина в подсказке: город выбирают один раз,
   и важно понимать, какой именно магазин за ним стоит. */
.city-picker { position: relative; }
.city-picker-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease;
}
.city-picker-button:hover { border-color: rgba(8,36,67,.22); background: #fff; }
.city-picker-button svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.city-picker-button i { display: flex; }
.city-picker-button i svg { width: 14px; height: 14px; stroke: var(--muted); }
.city-picker-button[aria-expanded="true"] i { transform: rotate(180deg); }
.city-picker-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  min-width: 232px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 60px rgba(0,44,92,.18);
  backdrop-filter: blur(20px);
}
.city-picker-title {
  padding: 2px 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.city-picker-option {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.city-picker-option small { color: var(--muted); font-size: 11px; font-weight: 500; }
.city-picker-option:hover { background: rgba(2,101,190,.08); }
.city-picker-option.is-active { color: var(--white); background: var(--blue); }
.city-picker-option.is-active small { color: rgba(255,255,255,.72); }

@media (max-width: 720px) {
  .city-picker { position: static; }
  .city-picker-button { min-height: 34px; padding: 0 9px; font-size: 12px; }
  .city-picker-button span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .city-picker-menu { right: 12px; left: 12px; min-width: 0; }
}

/* Короткое подтверждение действия. На карточке каталога кнопка сравнения —
   одна иконка, и без ответа непонятно, сработало ли нажатие. */
.action-toast {
  position: fixed;
  z-index: 95;
  bottom: 54px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(12,18,26,.94);
  box-shadow: 0 18px 44px rgba(0,26,54,.3);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.action-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.action-toast a { color: #7cc5ff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .action-toast { right: 14px; bottom: 112px; left: 14px; justify-content: center; transform: translate(0, 14px); }
  .action-toast.is-visible { transform: translate(0, 0); }
}

/* ——— Варианты прямо в карточке каталога ———
   Объём и расцветка — первое, что спрашивают о технике. Раньше за этим
   приходилось открывать карточку; теперь видно в списке, а нажатие ведёт
   сразу на нужную комплектацию. */
.card-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; min-height: 24px; }
.card-chip {
  padding: 4px 9px;
  border: 1px solid rgba(12,28,54,.12);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.card-chip:hover { border-color: var(--blue); color: var(--blue); }
.card-chip-more { color: var(--muted); border-style: dashed; }
.card-chip-more:hover { color: var(--muted); border-color: rgba(12,28,54,.12); }
.card-colors { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; }
/* В карточке каталога тот же приём: кружок занимает ровно своё место,
   обводка при наведении рисуется снаружи и сетку не двигает. */
.card-color { display: block; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; }
.card-color i { width: 14px; height: 14px; display: block; border: 1px solid rgba(0,0,0,.16); border-radius: 50%; }
.card-color:hover { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--ink); }
.card-color-text { width: auto; padding: 3px 7px; border-radius: 8px; border-color: rgba(12,28,54,.12); color: var(--muted); font-size: 10px; font-weight: 600; }

/* ——— Что важно знать до выбора модели ———
   Три вещи, о которых спрашивают в переписке первым делом. Стоят сразу
   под первым экраном: дальше человек уже выбирает технику, а не магазин. */
.assurance-section { padding: 4px 0 8px; }
.assurance-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.assurance {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.assurance i { display: flex; flex: none; margin-top: 1px; color: var(--blue); }
.assurance svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.assurance span { display: grid; gap: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.assurance em { font-style: normal; }
.assurance strong { color: var(--ink); font-size: 14px; font-weight: 700; }
@media (max-width: 900px) { .assurance-row { grid-template-columns: 1fr; } }
.reviews-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; }


/* На узких экранах город забирал место у названия магазина, и оно
   обрезалось до «Техн…». Ниже 420 пикселей оставляем у города только
   значок — сам город виден в меню и в подвале. */
@media (max-width: 400px) {
  .city-picker-button span { display: none; }
  .city-picker-button { gap: 4px; padding: 0 9px; }
  .header-actions { gap: 5px; }
}


/* ═══ Правки заказчика, октябрь ═══════════════════════════════════════
   Предложения магазина (рассрочка, выгода, подарки) — то, чем магазин
   отличается от соседей, поэтому они цветные и читаются целиком на
   любой ширине: значок сверху, подпись снизу, три равные колонки. */
.usp-row {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
  padding: 0 18px;
}
.usp-row .product-promo-wrap { display: flex; min-width: 0; }
.usp {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px 6px;
  border: 0;
  border-radius: 13px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.usp svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.usp b { display: block; font-weight: 800; white-space: nowrap; }
.usp:hover, .usp[aria-expanded="true"] { color: var(--white); background: var(--blue); }
.usp-accent { color: var(--white); background: var(--blue); }
.usp-accent:hover, .usp-accent[aria-expanded="true"] { background: var(--blue-deep); }
.usp-row .product-promo-popover { font-size: 12px; line-height: 1.45; }
.usp-row .product-promo-popover strong { font-size: 13px; }
.usp-row .product-promo-wrap:nth-child(2) .product-promo-popover { left: 50%; right: auto; transform: translateX(-50%); }

.usp-row-detail {
  max-width: 440px;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.usp-row-detail .usp { min-height: 66px; gap: 6px; border-radius: 16px; font-size: 13px; }
.usp-row-detail .usp svg { width: 22px; height: 22px; }
.usp-row-detail .usp b { display: inline; }
.usp-row-detail .product-promo-popover { width: 240px; }

/* Кэшбэк под ценой — 2% от покупки. */
.cashback-pill {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 4px 9px;
  border: 1px solid rgba(11, 110, 243, .45);
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(226, 239, 255, .55);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.product-card-941 .product-card-actions { margin-top: 12px; }
.buy-price .cashback-pill { font-size: 12px; }

/* Рассрочка на странице товара: срок кнопками, платёж считается сразу. */
.installment-box {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(23, 73, 116, .1);
}
.installment-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.installment-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.installment-head strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.installment-head b { color: var(--blue); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.term-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.term-chip {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid rgba(23, 73, 116, .16);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.term-chip:hover { border-color: var(--blue); }
.term-chip.is-active,
.term-chip:has(input:checked) { color: var(--white); background: var(--blue); border-color: var(--blue); }
.term-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.term-chip:has(input:focus-visible) { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.installment-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.installment-note a { color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.calculator-label { color: #273443; font-size: 11px; font-weight: 750; }
.term-chips-wide .term-chip { min-height: 46px; font-size: 14px; }

/* Номер заявки терялся на синей карточке — теперь это отдельная
   белая плашка, которую видно первой. */
.success-card h1 { margin-bottom: 22px; }
.success-number {
  width: fit-content;
  max-width: 100%;
  display: grid;
  gap: 4px;
  margin: 0 auto;
  padding: 14px 28px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 30, 80, .22);
  line-height: 1.2;
}
.success-card .success-number { color: var(--ink); }
.success-number span { color: var(--muted); font-size: 13px; font-weight: 600; }
.success-number strong { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ——— Каталог: фильтр как у магазина-образца ———
   Слева колонка с категорией, моделью, ценой и памятью; справа товары.
   Выбор применяется сразу. На телефоне колонка превращается в шторку. */
.catalog-layout { grid-template-columns: 268px minmax(0, 1fr); gap: 20px; }
.catalog-layout.is-loading .catalog-grid { opacity: .45; pointer-events: none; transition: opacity .15s ease; }
.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.catalog-filter {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 108px);
  display: flex;
  border-radius: 22px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(0, 55, 110, .06);
}
.catalog-filter form { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.filter-head { display: none; }
.filter-scroll { min-height: 0; flex: 1; display: grid; align-content: start; gap: 20px; overflow-y: auto; padding: 18px 18px 8px; overscroll-behavior: contain; }
.filter-block { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.filter-title { padding: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.filter-block input[type="search"],
.filter-price input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #f6f9fc;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.filter-block input[type="search"]:focus,
.filter-price input:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(11, 110, 243, .12); }
.filter-price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); }
.filter-price input::-webkit-outer-spin-button,
.filter-price input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.filter-price input { -moz-appearance: textfield; appearance: textfield; }
.filter-options { display: grid; gap: 2px; }
.filter-option {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.filter-option:hover { background: #f1f6fc; }
.filter-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.filter-option:has(input:checked) { color: var(--blue-deep); }
.filter-models { display: grid; gap: 0; margin: 2px 0 6px 12px; padding-left: 12px; border-left: 2px solid var(--blue-soft); }
.filter-option-model { min-height: 32px; font-size: 13px; font-weight: 500; }
.filter-models:not(.is-expanded) .filter-option-model:nth-child(n+9):not(:has(input:checked)) { display: none; }
.filter-more { justify-self: start; margin-top: 4px; padding: 6px 0; border: 0; color: var(--blue-deep); background: none; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.filter-chip span {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(23, 73, 116, .16);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.filter-chip input:checked + span { color: var(--white); background: var(--blue); border-color: var(--blue); }
.filter-chip input:focus-visible + span { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.filter-actions { display: grid; gap: 4px; padding: 12px 18px 16px; }
.filter-actions .button { min-height: 46px; }
.filter-actions .reset-link { margin-top: 6px; font-size: 13px; }
/* На большом экране кнопка «Показать» не нужна — список и так
   обновляется сам; остаётся только сброс. */
@media (min-width: 981px) {
  .filter-actions .button { display: none; }
  .filter-actions { padding-top: 4px; }
  .filter-actions:has(.reset-link[hidden]) { display: none; }
}
.catalog-toolbar { gap: 12px; }
.catalog-toolbar .catalog-count { margin-right: auto; }
.filter-open {
  display: none;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.filter-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filter-open b { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: var(--ink); background: var(--white); font-size: 12px; }
.catalog-pagination [data-catalog-more].is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-filter {
    position: fixed;
    z-index: 130;
    inset: 0;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform .26s ease, visibility 0s linear .26s;
  }
  .catalog-filter.is-open { visibility: visible; transform: none; transition: transform .26s ease; }
  body.filter-sheet-open { overflow: hidden; }
  .filter-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
  .filter-head strong { font-size: 22px; font-weight: 800; }
  .filter-close { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: #eef3f9; cursor: pointer; }
  .filter-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .filter-scroll { padding: 10px 18px 16px; }
  .filter-option { min-height: 42px; font-size: 15px; }
  .filter-option-model { min-height: 40px; font-size: 14px; }
  .filter-actions { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
  .filter-open { display: inline-flex; }
  .catalog-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .catalog-toolbar .catalog-count { order: 3; width: 100%; margin: 0; }
  .catalog-toolbar select { flex: 1; width: auto; min-width: 0; }
}

@media (max-width: 720px) {
  .usp-row { gap: 4px; padding: 0 9px; margin-top: 8px; }
  .usp { min-height: 46px; gap: 3px; padding: 6px 1px 5px; border-radius: 11px; font-size: 9.5px; letter-spacing: -.02em; }
  .usp svg { width: 16px; height: 16px; }
  .usp-row .product-promo-popover { width: 190px; }
  .usp-row .product-promo-wrap:nth-child(2) .product-promo-popover { left: 0; transform: none; }
  .usp-row-detail { max-width: none; gap: 6px; margin-top: 14px; padding: 0; }
  .usp-row-detail .usp { min-height: 60px; font-size: 12px; letter-spacing: 0; }
  .usp-row-detail .usp svg { width: 20px; height: 20px; }
  .cashback-pill { margin-top: 6px; padding: 3px 7px; font-size: 9.5px; letter-spacing: -.01em; }
  .buy-price .cashback-pill { font-size: 11px; }
  .installment-box { padding: 14px; border-radius: 18px; }
  .installment-head b { font-size: 20px; }
  .term-chip { min-height: 40px; font-size: 12px; }
  .success-number { padding: 12px 20px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-card-941 .usp-row + .product-card-body h3 { margin-top: 12px; }
.filter-actions .button span { margin-left: 4px; }
/* На странице товара фон сам голубой, и бледная плитка в нём тонула:
   здесь плитки белые с синим контуром, а главная — сплошная синяя. */
.usp-row-detail .usp:not(.usp-accent) { background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(11, 110, 243, .38); }
.usp-row-detail .usp:not(.usp-accent):hover,
.usp-row-detail .usp:not(.usp-accent)[aria-expanded="true"] { color: var(--white); background: var(--blue); }
.usp-row-detail + .detail-compare-form { margin: 14px 0 22px; }

/* Меню города раскрывается поверх строки разделов. У строки размытый фон,
   а он создаёт свой слой: стоя ниже в разметке, она рисовалась поверх
   списка и закрывала его верх — «Ваш город» и первые города. */
.header-main-row { position: relative; z-index: 3; }
.main-nav { position: relative; z-index: 1; }


/* ═══ Движение ════════════════════════════════════════════════════════
   Анимация здесь отвечает на действие — прокрутил, нажал, выбрал — и
   нигде не крутится сама по себе. Двигаем только transform и opacity:
   их браузер считает на видеокарте, поэтому прокрутка не дёргается даже
   на слабом телефоне. Библиотек нет, весь блок — пара килобайт. */
:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.45, .5, 1);
}

/* Переход между страницами: содержимое мягко сменяется, а шапка и
   нижнее меню остаются на месте, как в приложении. Браузеры, которые
   этого не умеют, просто открывают страницу как раньше. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out .16s ease both; }
  ::view-transition-new(root) { animation: page-in .26s var(--ease-out) both; }
  .site-header { view-transition-name: site-header; }
  .mobile-bottom-nav { view-transition-name: bottom-nav; }
  .promo-ticker { view-transition-name: promo-ticker; }
}
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* Появление при прокрутке. Класс вешает скрипт и только на то, что
   лежит ниже первого экрана: без скрипта и на первом экране всё видно
   сразу, так что скорость первой отрисовки не страдает. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out) !important;
  transition-delay: calc(var(--reveal-i, 0) * 70ms) !important;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Карточки, подгруженные фильтром или кнопкой «Показать ещё». */
.is-fresh { animation: rise-in .42s var(--ease-out) both; animation-delay: calc(var(--reveal-i, 0) * 45ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* Пока каталог обновляется, по сетке проходит светлая полоса — видно,
   что сайт работает, а не завис. */
.catalog-layout.is-loading .catalog-grid { position: relative; overflow: hidden; opacity: .55; }
.catalog-layout.is-loading .catalog-grid::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0 -60%;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%);
  animation: sweep 1s linear infinite;
  pointer-events: none;
}
@keyframes sweep { from { transform: translateX(-45%); } to { transform: translateX(45%); } }

/* Смена фотографии и цены при выборе цвета или памяти. */
.product-main-image img { transition: opacity .2s ease, transform .32s var(--ease-out); }
.product-main-image img.is-swapping { opacity: 0; transform: scale(.975); }
.is-bump { animation: bump .32s var(--ease-out); }
@keyframes bump { from { opacity: .15; transform: translateY(7px); } }

/* Отклик на нажатие: кнопка чуть проседает под пальцем. */
.button:active,
.product-add-button:active,
.product-more-button:active,
.usp:active,
.option-chip:active,
.option-dot:active,
.term-chip:active,
.filter-open:active,
.card-chip:active,
.city-picker-button:active,
.category-card:active { transform: scale(.96); transition-duration: .08s; }
.option-chip, .option-dot, .card-chip, .filter-chip span, .filter-option, .category-card {
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease-out);
}
.usp svg { transition: transform .3s var(--ease-spring); }
.usp:hover svg, .usp[aria-expanded="true"] svg { transform: translateY(-2px) scale(1.1); }

/* Товар добавлен: кнопка «щёлкает», счётчик в шапке подпрыгивает. */
.product-add-button.is-success, .button.is-success { animation: pop .34s var(--ease-spring); }
.is-counted { animation: count-pop .5s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes count-pop { 0% { transform: scale(1); } 35% { transform: scale(1.55); } 100% { transform: scale(1); } }
.product-compare-button.is-active svg, .detail-compare-button.is-active svg { animation: pop .34s var(--ease-spring); }

/* Выпадающие списки и подсказки не возникают рывком, а раскрываются. */
.city-picker-menu:not([hidden]) { transform-origin: top right; animation: drop-in .2s var(--ease-out); }
.product-promo-popover:not([hidden]) { animation: fade-up .18s var(--ease-out); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes fade-up { from { opacity: 0; translate: 0 6px; } }
.city-picker-button i { transition: transform .22s var(--ease-out); }

/* На компьютере товар чуть приближается под курсором. На телефоне
   наведения нет, поэтому там правило не действует. */
@media (hover: hover) {
  .product-card-941 .product-card-image img { transition: transform .5s var(--ease-out); }
  .product-card-941:hover .product-card-image img { transform: scale(1.045); }
  .category-card i { transition: transform .25s var(--ease-out); }
  .category-card:hover i { transform: translateX(4px); }
}

@media (max-width: 980px) {
  .main-nav.is-open { animation: drop-in .22s var(--ease-out); transform-origin: top center; }
  .main-nav.is-open a { animation: rise-in .3s var(--ease-out) both; }
  .main-nav.is-open a:nth-child(2) { animation-delay: 25ms; }
  .main-nav.is-open a:nth-child(3) { animation-delay: 50ms; }
  .main-nav.is-open a:nth-child(4) { animation-delay: 75ms; }
  .main-nav.is-open a:nth-child(5) { animation-delay: 100ms; }
  .main-nav.is-open a:nth-child(n+6) { animation-delay: 125ms; }
}

/* Кто отключил анимации в системе, получает сайт без движения вовсе. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Плашки в «Выборе дня» повторяют три предложения с карточек товара. */
.deal-benefits span { padding: 6px 9px; font-size: 11px; font-weight: 700; }


/* ═══ Правки заказчика от 7 октября ═══════════════════════════════════
   В каталоге три предложения снова спокойные — прозрачные, в тонкой
   рамке, как у магазина-образца: на сетке из двадцати карточек синяя
   заливка спорила с товаром. Цветом они выделены там, где человек уже
   выбрал модель, — на странице товара. */
.usp-row:not(.usp-row-detail) .usp,
.usp-row:not(.usp-row-detail) .usp-accent {
  min-height: 48px;
  color: #3b4656;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(12, 28, 54, .13);
  font-weight: 600;
}
.usp-row:not(.usp-row-detail) .usp svg { color: var(--ink); stroke-width: 1.5; }
.usp-row:not(.usp-row-detail) .usp b { font-weight: 700; }
.usp-row:not(.usp-row-detail) .usp:hover,
.usp-row:not(.usp-row-detail) .usp[aria-expanded="true"] {
  color: var(--blue-deep);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(11, 110, 243, .35);
}
.usp-row:not(.usp-row-detail) .usp:hover svg,
.usp-row:not(.usp-row-detail) .usp[aria-expanded="true"] svg { color: var(--blue-deep); }

/* Карточка: рядом с корзиной — покупка в один клик. */
.product-card-actions { grid-template-columns: minmax(0, 1fr) auto; }
.product-card-actions > form:last-child { width: auto; }
.product-card-actions .add-label-long { display: none; }
.product-card-actions .add-label-short { display: block; }
.product-oneclick {
  height: 43px;
  align-self: center;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(11, 110, 243, .45);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .18s var(--ease-out);
}
.product-oneclick:hover { color: var(--white); background: var(--blue); }
.product-oneclick:active { transform: scale(.96); }

/* Страница товара: две быстрые кнопки сразу после выбора цвета. */
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-actions .button { min-height: 48px; padding: 0 14px; font-size: 14px; }
.installment-box .button { min-height: 46px; }

/* Окно заявки показывает, о каком товаре речь. */
.callback-subject {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.callback-card h2 { font-size: clamp(28px, 4vw, 38px); }

/* Разделы на главной — плитки с товаром: название сверху, снимок
   справа снизу. Картинка берётся из раздела в админке либо сама — фото
   самого свежего товара. */
.category-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.category-tile {
  position: relative;
  height: 190px;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s ease, color .2s ease;
}
.category-tile strong { position: relative; z-index: 1; display: block; max-width: 58%; font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.category-tile img {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 46%;
  height: 78%;
  object-fit: contain;
  object-position: right bottom;
  mix-blend-mode: multiply;
  transition: transform .45s var(--ease-out);
}
.category-tile:active { transform: scale(.98); }
@media (hover: hover) {
  .category-tile:hover { color: var(--blue); box-shadow: inset 0 0 0 1px rgba(11, 110, 243, .4), 0 16px 40px rgba(0, 55, 110, .1); }
  .category-tile:hover img { transform: scale(1.06); }
}

/* Акции. Карточки заводятся в админке: картинка, срок, пара строк, кнопка. */
.promo-section { padding: 0 0 56px; }
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promo-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.promo-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #0c1420; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.promo-media-plain { background: radial-gradient(circle at 82% 12%, rgba(87, 188, 255, .85), transparent 55%), linear-gradient(145deg, var(--blue-bright), var(--blue-deep)); }
@media (hover: hover) { .promo-card:hover .promo-media img { transform: scale(1.04); } }
.promo-period {
  position: absolute;
  left: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  line-height: 1.3;
}
.promo-period b { font-weight: 700; }
.promo-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; }
.promo-body h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.promo-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.promo-body .button { min-height: 44px; margin-top: auto; padding: 0 22px; font-size: 14px; }
.promo-body p + .button, .promo-body h3 + .button { margin-top: 10px; }

@media (max-width: 980px) {
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .product-card-actions { grid-template-columns: 1fr; gap: 6px; }
  .product-oneclick { width: 100%; height: 38px; font-size: 12px; }
  .quick-actions .button { min-height: 46px; padding: 0 8px; font-size: 13px; }
  .category-tiles { gap: 6px; }
  .category-tile { height: 124px; padding: 14px 14px; border-radius: 16px; }
  .category-tile strong { max-width: 62%; font-size: 15px; }
  .category-tile img { right: 8px; bottom: 6px; width: 48%; height: 72%; }
  .promo-section { padding-bottom: 36px; }
  /* На телефоне акции листаются лентой: три карточки столбиком занимали
     бы два экрана. */
  .promo-grid { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 0 12px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .promo-grid::-webkit-scrollbar { display: none; }
  .promo-card { scroll-snap-align: start; border-radius: 18px; }
  .promo-body { padding: 14px 16px 16px; }
  .promo-body h3 { font-size: 16px; }
}
/* Товар на плитке раздела крупнее; акция без картинки — невысокая полоса,
   чтобы пустой синий прямоугольник не занимал пол-экрана. */
.category-tile { height: 176px; }
.category-tile img { width: 52%; height: 86%; right: 12px; bottom: 8px; }
.promo-media-plain { aspect-ratio: 5 / 2; }
@media (max-width: 720px) {
  .category-tile { height: 124px; }
  .category-tile img { width: 52%; height: 80%; right: 6px; bottom: 5px; }
}
@media (max-width: 720px) { .promo-grid { scroll-padding-left: 12px; } }

/* 14 октября: фото товара в слайде главной. У импортированных товаров оно в
   белом квадрате — на градиенте выходила белая плашка. Умножение убирает
   белое и оставляет сам телефон; прозрачные баннеры это не затрагивает. */
.hero-product-visual img.is-photo { mix-blend-mode: multiply; }
