/* =====================================================================
   Basseiniservis.ru, оформление «Маркет» (дизайн-система Shop): «парящее созвездие покупок».
   Фон Canvas Mist, белые карточки 28px с мягкими двойными тенями, фото товара на Mist 20px,
   один акцент - синий логотипа #3d79b4 (переменные --accent, --accent-deep, --accent-wash), Inter 400/500/600.
   Подключается после bootstrap.min.css и swiper-bundle.min.css. Поведение - main.js (корзина, формы, фильтр)
   и market.js (ленты, шапка, счетчики).
   ===================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Цвета Shop --- */
  --accent: #3d79b4;        /* акцент - синий логотипа: поиск, «В корзину», ключевые действия */
  --accent-deep: #306397;   /* акцент при наведении */
  --accent-wash: #adcceb;   /* ореол и светлая подложка акцента */
  --ink: #000000;           /* текст, заголовки */
  --mist: #f2f4f5;          /* фон страницы, подложка фото */
  --mist-deep: #e7eaeb;     /* Mist при наведении */
  --border: #ebebeb;        /* волосяные разделители, рамки полей */
  --muted: #787574;         /* вторичный текст */
  --fog: #acb0aa;           /* легкие подложки, неактивные значки */
  --stone: #cccccc;         /* подсказки, неактивное */
  --slate: #332f2d;         /* темные карточки: подбор и подвал */
  --danger: #c4283c;        /* ошибка в форме */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --track: -0.031em;
  --track-head: -0.05em;
  --track-ui: -0.02em;

  --r-card: 28px;
  --r-photo: 20px;
  --r-pill: 9999px;

  --sh: 0 4px 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .1);
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
  --sh-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -6px rgba(0, 0, 0, .08);
  --sh-float: 0 2px 6px rgba(0, 0, 0, .06), 0 22px 44px -14px rgba(0, 0, 0, .22);
  --halo: 0 0 0 4px rgba(173, 204, 235, .42);
  --halo-lg: 0 0 0 6px rgba(173, 204, 235, .62);
  --ring: 0 0 0 3px rgba(61, 121, 180, .3);

  --gap: 12px;
  --section: 40px;
  --gutter: clamp(16px, 2.8vw, 40px);
  --wrap: 1440px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ic-stroke: 1.75;
  --media-bg: var(--mist);

  --bs-body-font-family: var(--font);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.5;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--mist);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--border);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: var(--r-card);
  --bs-border-radius-pill: var(--r-pill);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 0, 0, 0;
  --bs-link-hover-color: var(--accent);
  --bs-link-hover-color-rgb: 61, 121, 180;
  --bs-focus-ring-color: rgba(61, 121, 180, .3);
}
@media (min-width: 1800px) {
  :root { --wrap: 1600px; }
}
@media (max-width: 991.98px) {
  :root { --section: 28px; --header-h: 68px; }
}

/* ---------------------------------------------------------------- база */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--track);
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: var(--track-head); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
dt { font-weight: inherit; }
b, strong { font-weight: 600; }
button { font-family: inherit; letter-spacing: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-wash); color: var(--ink); }

.main { overflow-x: clip; padding-bottom: 8px; }
.container { max-width: var(--wrap); padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.nowrap { white-space: nowrap; }

/* Иконка из спрайта: размер от font-size, толщина линии от --ic-stroke */
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; stroke-width: var(--ic-stroke, 1.75); }
.ic-done, .ic-on, .ic-close { display: none; }
.is-added .ic-plus, .is-active .ic-off { display: none; }
.is-added .ic-done, .is-active .ic-on { display: block; }

.media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ratio, 1 / 1); background: var(--media-bg); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.scroll-x { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* появление при прокрутке (market.js ставит is-visible); без скриптов все видно сразу */
.js .js-reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .js-reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes pop-in { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.float-1 { animation: float 6s ease-in-out infinite; }
.rise { animation: rise .9s var(--ease) .35s both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .float-1, .hero__img { animation: none !important; }
}

/* ---------------------------------------------------------------- кнопки */
.btn-accent, .btn-ink, .btn-soft, .btn-white, .btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  font: 500 15px/1 var(--font);
  letter-spacing: var(--track-ui);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-accent .ic, .btn-ink .ic, .btn-soft .ic, .btn-white .ic, .btn-pill .ic { font-size: 16px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-accent:active, .btn-ink:active, .btn-soft:active, .btn-white:active, .btn-pill:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--halo); }
.btn-accent:hover { background: var(--accent-deep); color: #fff; box-shadow: var(--halo-lg); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2a2a; color: #fff; }
.btn-soft { background: var(--mist); color: var(--ink); }
.btn-soft:hover { background: var(--mist-deep); color: var(--ink); }
.btn-white, .btn-pill { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }
.btn-white:hover, .btn-pill:hover { color: var(--ink); box-shadow: var(--sh); }
.btn-accent:disabled, .btn-soft:disabled, .btn-ink:disabled { opacity: .45; cursor: default; box-shadow: none; transform: none; }

.btn-round {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn-round:hover { background: var(--mist-deep); color: var(--ink); }
.btn-round--white { background: #fff; box-shadow: var(--sh-xs); }
.btn-round--white:hover { background: #fff; box-shadow: var(--sh); }
.btn-round:disabled, .btn-round.swiper-button-disabled { opacity: .35; cursor: default; box-shadow: none; }
.swiper-button-lock { display: none !important; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font: 500 14px/1 var(--font);
  letter-spacing: var(--track-ui);
  white-space: nowrap;
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, box-shadow .25s var(--ease);
}
.chip:hover { color: var(--ink); box-shadow: var(--sh); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.chip--toggle .chip__check { width: 0; margin-left: -6px; opacity: 0; --ic-stroke: 2.4; transition: width .2s var(--ease), margin .2s var(--ease), opacity .2s; }
.chip--toggle.is-active .chip__check { width: 1.1em; margin-left: 0; opacity: 1; }
.chip__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--ink);
  font: 500 13px/1 var(--font);
  letter-spacing: var(--track-ui);
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(173, 204, 235, .65); }
.kicker--dark { background: rgba(255, 255, 255, .1); color: #fff; }
.kicker--dark .kicker__dot { box-shadow: 0 0 0 3px rgba(173, 204, 235, .3); }

/* Цена и наличие */
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.price__now { font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price__old { color: var(--muted); font-size: .78em; white-space: nowrap; }
.price--request .price__now { font-size: 15px !important; font-weight: 500; letter-spacing: var(--track-ui); }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: var(--track-ui); }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1f9d55; flex: none; }
.stock--order::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fog); }

/* Заголовок секции */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.section-head__text { min-width: 0; }
.section-head__title { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.04; letter-spacing: var(--track-head); }
.section-head__sub { margin-top: 8px; color: var(--muted); font-size: 15px; letter-spacing: var(--track-ui); }
.section-head__side { display: flex; gap: 8px; flex: none; }
@media (max-width: 767.98px) {
  .section-head { margin-bottom: 16px; }
  .section-head__side .ribbon-arrow { display: none; }
}

/* Заголовок страницы */
.page-title { margin: 12px 0 20px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: var(--track-head); }
.page-title--lg { margin: 16px 0 24px; font-size: clamp(32px, 4.4vw, 60px); line-height: 1; }
.page-lead { max-width: 52em; margin: -8px 0 24px; color: var(--muted); font-size: 16px; letter-spacing: var(--track-ui); }

/* Мессенджеры фирменными знаками */
.messengers { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.messengers__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--ink); transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.messengers__link:hover { transform: translateY(-2px); box-shadow: var(--sh); color: var(--ink); }
.messengers__icon { width: 24px; height: 24px; }
.messengers__label { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.messengers--header { display: none; }
@media (min-width: 992px) { .messengers--header { display: inline-flex; } }
.messengers--product { display: flex; margin-top: 16px; }
.messengers--product .messengers__label { flex: 1 0 100%; }
.messengers--product .messengers__link { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 40px; padding: 0 14px 0 8px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.messengers--product .messengers__icon { width: 26px; height: 26px; }

/* ================================================================= ШАПКА */
.topbar { color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 44px; }
.topbar__nav { display: flex; gap: 2px; margin-left: -10px; }
.topbar__link { padding: 6px 10px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; }
.topbar__link:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.topbar__info { display: flex; align-items: center; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.topbar__item .ic { font-size: 13px; color: var(--fog); }
.topbar__mail:hover { color: var(--ink); }

.header { position: sticky; top: 12px; z-index: 1030; }
.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 44px;
  background: linear-gradient(var(--mist) 30%, rgba(242, 244, 245, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__card { position: relative; background: #fff; border-radius: var(--r-card); box-shadow: var(--sh-card); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.header.is-scrolled .header__card { background: rgba(255, 255, 255, .9); box-shadow: var(--sh-float); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); }
.header__bar { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 12px 0 18px; transition: padding .35s var(--ease); }
.header__group { display: flex; align-items: center; flex: none; gap: 12px; height: 100%; border-radius: var(--r-card); transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease); }
.header__group--right { gap: 8px; margin-left: auto; }
.header__group--search { flex: 1 1 auto; min-width: 0; }
@media (min-width: 992px) {
  /* главная, пока виден большой поиск первого экрана: три парящих «островка», при прокрутке сливаются в одну панель */
  .header--home.has-hero-search .header__card { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header--home.has-hero-search .header__bar { padding: 0; }
  .header--home.has-hero-search .header__group { background: #fff; box-shadow: var(--sh-card); }
  .header--home.has-hero-search .header__group--left { padding: 0 14px 0 18px; }
  .header--home.has-hero-search .header__group--search { padding: 0 12px; }
  .header--home.has-hero-search .header__group--right { padding: 0 12px 0 16px; }
}

/* Логотип клиента (дельфин): картинка, высота по месту */
.logo { display: inline-flex; align-items: center; flex: none; color: var(--ink); }
.logo__img { display: block; width: auto; height: 36px; }
.logo--light .logo__img { height: 40px; }
@media (max-width: 1199.98px) { .logo__img { height: 32px; } }
@media (max-width: 991.98px) { .logo__img { height: 28px; } }
@media (max-width: 389.98px) { .logo__img { height: 24px; } }

/* Каталог: кнопка и мегаменю (открывает main.js по [data-toggle=catalog-menu], атрибут hidden) */
.header__catalog-btn { height: 48px; padding: 0 20px 0 16px; }
.header__catalog-btn .ic { font-size: 18px; }
.header__catalog-btn[aria-expanded="true"] .ic-open { display: none; }
.header__catalog-btn[aria-expanded="true"] .ic-close { display: block; }

.catalog-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 5;
  gap: 12px;
  max-height: calc(100vh - var(--header-h) - 40px);
  padding: 12px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--sh-float);
  color: var(--ink);
}
.catalog-menu:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 270px; animation: pop .22s var(--ease); }
.catalog-menu__cats { min-height: 0; padding: 12px 6px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; }
.catalog-menu__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 8px 12px; }
.catalog-menu__title { font-size: 24px; font-weight: 600; letter-spacing: var(--track-head); }
.catalog-menu__all { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.catalog-menu__all:hover { color: var(--accent-deep); }
.catalog-menu__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.catalog-menu__link { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); color: var(--ink); transition: background-color .15s; }
.catalog-menu__link:hover, .catalog-menu__link.is-active { background: var(--mist); color: var(--ink); }
.catalog-menu__thumb { display: block; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.catalog-menu__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.catalog-menu__name { font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: var(--track-ui); }
.catalog-menu__panes { min-height: 0; padding: 16px 8px 8px 16px; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: var(--stone) transparent; }
.catalog-menu__pane { display: none; }
.catalog-menu__pane.is-active { display: block; animation: fade .2s; }
.catalog-menu__pane-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.catalog-menu__pane-title { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: var(--track-head); }
.catalog-menu__pane-title:hover { color: var(--accent); }
.catalog-menu__subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.catalog-menu__sub { display: block; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.3; letter-spacing: var(--track-ui); }
.catalog-menu__sub:hover { background: var(--mist); color: var(--ink); }
.catalog-menu__go { margin-top: 14px; }
.catalog-menu__solo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 0; color: var(--ink); }
.catalog-menu__solo:hover { color: var(--ink); }
.catalog-menu__solo-img { display: block; width: 120px; height: 120px; margin-bottom: 10px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: var(--sh-card); outline: 2px solid #dfe2e4; outline-offset: 4px; }
.catalog-menu__solo-img img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.catalog-menu__solo-btn { margin-top: 12px; }
.catalog-menu__help { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--r-photo); background: var(--mist); }
.catalog-menu__help-photo { width: 100%; border-radius: 14px; }
.catalog-menu__help-img { object-position: 50% 60%; }
.catalog-menu__help-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding: 14px 10px 8px; }
.catalog-menu__help-title { font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: var(--track-head); }
.catalog-menu__help-text { color: var(--muted); font-size: 14px; }
.catalog-menu__help-phone { margin-top: 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.catalog-menu__help-phone:hover { color: var(--accent); }
.catalog-menu__help-btn { margin-top: 12px; }
@media (max-width: 1399.98px) {
  .catalog-menu:not([hidden]) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .catalog-menu__help { display: none; }
}
@media (max-width: 1199.98px) {
  .catalog-menu__subs { grid-template-columns: minmax(0, 1fr); }
}

/* Поиск: таблетка Mist с круглой кнопкой акцента */
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 4px 4px 4px 20px;
  border-radius: var(--r-pill);
  background: var(--mist);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.search:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 400 16px/1 var(--font); letter-spacing: var(--track); }
.search__input::placeholder { color: var(--muted); opacity: 1; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__btn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; box-shadow: var(--halo); cursor: pointer; transition: background-color .2s var(--ease), box-shadow .25s var(--ease); }
.search__btn:hover { background: var(--accent-deep); box-shadow: var(--halo-lg); }
.search__drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sh-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.search.is-open .search__drop { opacity: 1; visibility: visible; transform: none; }
.search__drop-title { padding: 6px 12px; color: var(--muted); font-size: 12px; font-weight: 500; }
.search__hint { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); font-size: 15px; letter-spacing: var(--track-ui); }
.search__hint .ic { color: var(--stone); font-size: 14px; }
.search__hint:hover { background: var(--mist); color: var(--ink); }
.search--hero, .search--page { flex: none; height: 60px; padding: 6px 6px 6px 24px; }
.search--hero .search__btn, .search--page .search__btn { width: 48px; height: 48px; font-size: 18px; }
.search--page { max-width: 760px; margin-bottom: 8px; background: #fff; box-shadow: var(--sh-card); }

/* Телефон, значки и корзина справа */
.header__phone { flex-direction: column; align-items: flex-end; flex: none; padding: 0 8px 0 4px; line-height: 1.2; color: var(--ink); }
.header__phone:hover { color: var(--accent); }
.header__phone-num { font-size: 16px; font-weight: 600; letter-spacing: -0.035em; white-space: nowrap; }
.header__phone-note { color: var(--muted); font-size: 12px; letter-spacing: -0.01em; white-space: nowrap; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__icon { width: 48px; height: 48px; font-size: 17px; }
.header__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font: 600 11px/20px var(--font);
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.header__badge--accent { background: var(--accent); }
.header__badge.is-bump, .tabbar__badge.is-bump, .chip__count.is-bump { animation: bump .45s var(--ease); }
.header-cart { display: inline-flex; align-items: center; flex: none; height: 48px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); transition: background-color .2s; }
.header-cart:hover { background: var(--mist-deep); color: var(--ink); }
.header-cart__icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; font-size: 17px; }
.header-cart__sum { display: none; padding-right: 18px; font-size: 15px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
@media (min-width: 1200px) { .header-cart.is-filled .header-cart__sum { display: block; } }
.header__msearch { margin: 0 8px 8px; }

@media (max-width: 991.98px) {
  .header { top: 8px; }
  .header__bar { height: 60px; gap: 8px; padding: 0 8px; }
  .header__group { gap: 8px; }
  .header__card { border-radius: 24px; }
  .header__icon, .header__menu, .header-cart, .header-cart__icon { width: 44px; height: 44px; }
  .header-cart { width: auto; }
}
@media (max-width: 389.98px) {
  .header__bar { gap: 6px; padding: 0 6px; }
  .header__group { gap: 6px; }
  .header__icon, .header__menu, .header-cart, .header-cart__icon { width: 40px; height: 40px; }
}

/* Шторка снизу: меню на телефоне */
.sheet.offcanvas-bottom { --bs-offcanvas-height: auto; max-height: 88vh; max-height: 88dvh; border: 0 !important; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 60px rgba(0, 0, 0, .18); }
.sheet__grab { flex: none; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--stone); }
.sheet__head, .filters__head { justify-content: space-between; }
.sheet__head { padding: 10px 16px 6px 20px; }
.sheet__title { font-size: 24px; font-weight: 600; letter-spacing: var(--track-head); }
.sheet__close { width: 40px; height: 40px; }
.sheet__body { min-height: 0; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); }
.sheet__label { margin: 24px 0 8px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.sheet-phone { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-photo); background: var(--mist); color: var(--ink); }
.sheet-phone__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--halo); }
.sheet-phone__num { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.04em; }
.sheet-phone__note { display: block; color: var(--muted); font-size: 13px; }
.sheet-cats { display: grid; gap: 2px; }
.sheet-cats__row { display: flex; align-items: center; gap: 4px; }
.sheet-cats__link { display: grid; flex: 1; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 6px 12px 6px 4px; border-radius: var(--r-pill); color: var(--ink); }
.sheet-cats__link:hover { background: var(--mist); color: var(--ink); }
.sheet-cats__thumb { display: block; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.sheet-cats__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.sheet-cats__name { font-size: 15px; font-weight: 500; letter-spacing: var(--track-ui); line-height: 1.2; }
.sheet-cats__toggle { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--mist); font-size: 15px; transition: transform .25s var(--ease); }
.sheet-cats__toggle:not(.collapsed) { transform: rotate(180deg); }
.sheet-cats__subs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 12px 56px; }
.sheet-cats__sub { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 14px; line-height: 1.25; letter-spacing: var(--track-ui); }
.sheet-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-nav .chip { background: var(--mist); box-shadow: none; }
.sheet-contacts { display: grid; gap: 12px; }
.sheet-contacts li { display: flex; flex-direction: column; }
.sheet-contacts a { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.sheet-contacts span { color: var(--muted); font-size: 13px; }
.messengers--sheet { margin-top: 16px; }
.offcanvas-backdrop.show { opacity: .35; }

/* ================================================================= ПЕРВЫЙ ЭКРАН: бенто */
.hero { padding: 12px 0 calc(var(--section) * .5); }
.hero__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "photo photo" "s1 s2"; }
.hero__main { grid-area: main; }
.hero__photo { grid-area: photo; }
.hero__side--1 { grid-area: s1; }
.hero__side--2 { grid-area: s2; }
.hero__side { display: flex; min-width: 0; }
.hero__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--sh-card);
  container-type: inline-size;
}
.hero__title { margin-top: 20px; font-size: clamp(36px, 13.6cqi, 72px); line-height: .98; letter-spacing: var(--track-head); }
.hero__lead { margin-top: 18px; max-width: 32em; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; }
.hero__search { margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.hero__facts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.hero__fact { min-width: 0; }
.hero__fact-num { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: var(--track-head); font-variant-numeric: tabular-nums; }
.hero__stack { display: inline-flex; flex: none; }
.hero__stack-item { display: block; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--border); transition: margin .3s var(--ease); }
.hero__stack-item + .hero__stack-item { margin-left: -10px; }
.hero__stack:hover .hero__stack-item + .hero__stack-item { margin-left: -2px; }
.hero__stack-item img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hero__fact-text { margin-top: 6px; color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.hero__photo { position: relative; min-height: 420px; overflow: hidden; isolation: isolate; border-radius: var(--r-card); background: var(--slate); box-shadow: var(--sh-card); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; animation: drift 26s ease-in-out infinite alternate; }
.hero__fact-card { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-float); }
.hero__fact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); font-size: 18px; }
.hero__fact-body { display: flex; flex-direction: column; line-height: 1.15; }
.hero__fact-big { font-size: 18px; font-weight: 600; letter-spacing: -0.04em; }
.hero__fact-small { color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.hero__photo .hero__pill { position: absolute; left: 16px; right: 16px; bottom: 16px; }
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main main" "photo s1 s2"; }
  .hero__photo { min-height: 0; }
}
@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: minmax(0, 5.8fr) minmax(0, 3.8fr) minmax(0, 2.6fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "main photo s1" "main photo s2";
    min-height: clamp(600px, calc(100vh - 210px), 700px);
  }
  .hero__photo .hero__pill { right: auto; width: min(360px, calc(100% - 32px)); }
  .hero__side .product-card__media { flex: 1 1 auto; min-height: 120px; aspect-ratio: auto; }
  .hero__side .product-card__body { flex: none; }
  .hero__side .product-card__oneclick { display: none; }
}
@media (min-width: 1440px) {
  .hero__grid { grid-template-columns: minmax(0, 5.3fr) minmax(0, 4.3fr) minmax(0, 2.6fr); }
}
@media (max-width: 575.98px) {
  .hero__facts { gap: 12px 24px; }
  .hero__fact-num { gap: 10px; font-size: 26px; }
  .hero__stack-item { width: 34px; height: 34px; }
  .hero__stack-item:nth-child(n + 4) { display: none; }
  .hero__title { margin-top: 16px; }
  .hero__lead { margin-top: 12px; }
  .search--hero { height: 56px; margin-top: 20px; padding-left: 20px; }
  .search--hero .search__btn { width: 44px; height: 44px; }
  .hero__actions .btn-lg { flex: 1 1 100%; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 4.2; }
  .hero__fact-card { top: 12px; left: 12px; }
  .hero__photo .hero__pill { left: 12px; right: 12px; bottom: 12px; }
}

/* Товар-таблетка поверх фото */
.product-pill { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-float); }
.product-pill__media { position: relative; display: block; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--mist); isolation: isolate; }
.product-pill__img { width: 100%; height: 100%; object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.product-pill__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.product-pill__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: var(--track-ui); }
.product-pill__title:hover { color: var(--ink); }
.product-pill__price .price__now { font-size: 16px; }
.product-pill__form { position: relative; z-index: 2; flex: none; }

/* Круглая «+» цвета акцента */
.product-card__add, .product-pill__add {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease), color .2s;
}
.product-card__add .ic, .product-pill__add .ic { grid-area: 1 / 1; font-size: 18px; --ic-stroke: 2.2; }
.product-card__add:hover, .product-pill__add:hover { background: var(--accent-deep); box-shadow: var(--halo); }
.product-card__add:active, .product-pill__add:active { transform: scale(.9); }
.product-card__add:disabled { opacity: .35; cursor: default; box-shadow: none; }
.product-pill__add.is-added { background: var(--ink); }
.is-added .ic-done { animation: pop-in .35s var(--ease); }
.product-card__add-label { display: none; }

/* ================================================================= КАРТОЧКА ТОВАРА В СПИСКАХ */
.product-card.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 12px;
  border: 0;
  border-radius: var(--r-card);
  background: #fff;
  box-shadow: var(--sh-card);
  word-wrap: normal;
  container-type: inline-size;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card.card:hover { transform: translateY(-4px); box-shadow: var(--sh-float); }
.product-card__media { position: relative; display: block; flex: none; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-photo); background: var(--mist); isolation: isolate; }
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 11%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__label { position: absolute; top: 20px; left: 20px; z-index: 2; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.product-card__tools { position: absolute; top: 20px; right: 20px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.product-card__tool {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease), background-color .2s, color .2s;
}
.product-card__tool .ic { grid-area: 1 / 1; font-size: 15px; }
.product-card__tool:hover { transform: scale(1.08); box-shadow: var(--sh); }
.product-card__tool[data-favorite].is-active { color: var(--accent); }
.product-card__tool[data-compare].is-active { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .product-card__tool--more { opacity: 0; transform: translateX(6px); }
  .product-card:hover .product-card__tool--more, .product-card:focus-within .product-card__tool--more, .product-card__tool--more.is-active { opacity: 1; transform: none; }
}
@media (hover: none) { .product-card__tool--quick { display: none; } }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 14px 6px 2px; }
.product-card__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-card__brand { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: var(--track-ui); white-space: nowrap; text-overflow: ellipsis; }
.product-card__title { font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: var(--track-ui); text-wrap: auto; overflow-wrap: anywhere; }
.product-card__link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 3.9em; color: var(--ink); }
.product-card__link:hover { color: var(--ink); }
.product-card__link:focus-visible { outline: 0; }
.product-card:has(.product-card__link:focus-visible) { box-shadow: 0 0 0 2px var(--accent), var(--sh-float); }
.product-card__foot { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-card__buy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.product-card__price .price__now { font-size: 18px; }
.product-card__add-form { position: relative; z-index: 2; margin-left: auto; }
/* товар уже в корзине: miniShop3 прячет «+» и показывает счетчик (style.display = flex) */
[data-cart-state="change"] { display: none; }
.product-card__qty { position: relative; z-index: 2; align-items: center; height: 44px; margin-left: auto; padding: 3px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.product-card__qty-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font: 500 20px/1 var(--font); cursor: pointer; transition: background-color .15s; }
.product-card__qty-btn:hover { background: rgba(255, 255, 255, .14); }
.product-card__qty-input { width: 30px; padding: 0; border: 0; outline: none; background: transparent; color: #fff; font: 600 15px/1 var(--font); text-align: center; -moz-appearance: textfield; }
.product-card__qty-input::-webkit-outer-spin-button, .product-card__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-card__oneclick { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin-top: 2px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); font: 500 13px/1 var(--font); letter-spacing: var(--track-ui); cursor: pointer; transition: background-color .2s, color .2s; }
.product-card__oneclick .ic { font-size: 14px; color: var(--accent); }
.product-card__oneclick:hover { background: var(--accent-wash); }
.product-card__oneclick:disabled { opacity: .45; cursor: default; }
@container (max-width: 200px) {
  .product-card__qty { width: 100%; justify-content: space-between; }
}
@media (max-width: 575.98px) {
  .product-card.card { padding: 8px; border-radius: 24px; }
  .product-card__media { border-radius: 18px; }
  .product-card__tools { top: 14px; right: 14px; }
  .product-card__tool { width: 34px; height: 34px; }
  .product-card__tool .ic { font-size: 13px; }
  .product-card__label { top: 14px; left: 14px; }
  .product-card__body { gap: 10px; padding: 10px 4px 2px; }
  .product-card__title { font-size: 14px; }
  .product-card__price .price__now { font-size: 16px; }
  .product-card__add { width: 38px; height: 38px; }
  .product-card__add .ic { font-size: 16px; }
  .product-card__qty { height: 38px; }
  .product-card__qty-btn { width: 32px; height: 32px; }
  .product-card__oneclick { height: 34px; font-size: 12px; }
}

/* ================================================================= ЛЕНТЫ (Swiper) */
.swiper.ribbon__swiper, .swiper.stories__swiper, .swiper.certs__swiper { overflow: visible; }
.ribbon { position: relative; }
.ribbon__slide { display: flex; width: 176px; height: auto; }
@media (min-width: 576px) { .ribbon__slide { width: 224px; } }
@media (min-width: 992px) { .ribbon__slide { width: 252px; } }
@media (min-width: 1400px) { .ribbon__slide { width: 266px; } }
.ribbon__nav { position: absolute; top: 38%; z-index: 5; display: none; width: 48px; height: 48px; }
.ribbon__nav--prev { left: -20px; }
.ribbon__nav--next { right: -20px; }
.ribbon__nav:disabled, .ribbon__nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
@media (min-width: 992px) { .ribbon__nav { display: grid; } }
.ribbon-end { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 20px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ribbon-end:hover { transform: translateY(-4px); box-shadow: var(--sh-float); color: var(--ink); }
.ribbon-end__thumb { display: block; width: 96px; height: 96px; margin-bottom: auto; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.ribbon-end__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.ribbon-end__label { margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 500; }
.ribbon-end__title { margin-top: 4px; font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: var(--track-head); }
.ribbon-end__arrow { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 16px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--halo); }
@media (max-width: 575.98px) {
  .ribbon-end { padding: 14px; border-radius: 24px; }
  .ribbon-end__thumb { width: 72px; height: 72px; }
  .ribbon-end__title { font-size: 17px; }
}

/* ================================================================= «ИСТОРИИ» РАЗДЕЛОВ */
.stories__item { width: min-content; min-width: 92px; }
@media (min-width: 768px) { .stories__item { min-width: 120px; } }
@media (min-width: 1200px) { .stories__item { min-width: 132px; } }
.story { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); }
.story:hover { color: var(--ink); }
.story__ring { display: block; width: 76px; height: 76px; margin: 6px; border-radius: 50%; background: #fff; box-shadow: var(--sh-card); outline: 2px solid #dfe2e4; outline-offset: 4px; transition: transform .35s var(--ease), outline-color .2s var(--ease), box-shadow .35s var(--ease); }
@media (min-width: 768px) { .story__ring { width: 100px; height: 100px; } }
@media (min-width: 1200px) { .story__ring { width: 112px; height: 112px; } }
.story__circle { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; }
.story__img { width: 100%; height: 100%; object-fit: contain; padding: 15%; transition: transform .5s var(--ease); }
.story--photo .story__img { object-fit: cover; padding: 0; }
.story:hover .story__ring { transform: translateY(-4px); outline-color: var(--accent); box-shadow: var(--sh-float); }
.story:hover .story__img { transform: scale(1.06); }
.story:focus-visible { outline: 0; }
.story:focus-visible .story__ring { outline-color: var(--accent); }
.story__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 12px; font-size: 13px; font-weight: 500; line-height: 1.25; letter-spacing: var(--track-ui); }
.story--all .story__ring { background: var(--accent); outline-color: var(--accent-wash); }
.story--all .story__circle { display: grid; place-items: center; color: #fff; font-size: 26px; }
.story--all:hover .story__ring { background: var(--accent-deep); }
@media (min-width: 768px) {
  .story__title { font-size: 14px; margin-top: 14px; }
  .story--all .story__circle { font-size: 32px; }
}

/* ================================================================= ВИТРИНА */
.pills { flex-wrap: nowrap; gap: 8px; padding: 4px; margin: -4px; }
.pill {
  flex: none;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill) !important;
  background: #fff;
  color: var(--ink);
  font: 500 15px/1 var(--font);
  letter-spacing: var(--track-ui);
  white-space: nowrap;
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, box-shadow .25s var(--ease);
}
.pill:hover, .pill:focus { color: var(--ink); box-shadow: var(--sh); }
.pill.active, .pill.active:hover, .pill.is-active, .pill.is-active:hover { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 1199.98px) {
  .showcase__tabs { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
}

/* ================================================================= ПРЕИМУЩЕСТВА */
.adv__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adv-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 228px; padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.adv-card__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; margin-bottom: auto; border-radius: 50%; background: var(--mist); font-size: 20px; }
.adv-card__title { margin-top: 28px; font-size: 20px; line-height: 1.15; letter-spacing: -0.045em; }
.adv-card__desc { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; letter-spacing: var(--track-ui); }
.adv-card--wide { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 12px; padding: 12px; }
.adv-card__text { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; padding: 12px; }
.adv-card__photo { flex: 1.15; border-radius: var(--r-photo); aspect-ratio: auto; }
.adv-card__img { transition: transform .8s var(--ease); }
.adv-card--wide:hover .adv-card__img { transform: scale(1.04); }
@media (min-width: 992px) { .adv__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .adv-card { min-height: 0; padding: 16px; border-radius: 24px; }
  .adv-card__icon { width: 44px; height: 44px; font-size: 18px; }
  .adv-card__title { margin-top: 20px; font-size: 17px; }
  .adv-card__desc { font-size: 13px; }
  .adv-card--wide { flex-direction: column-reverse; padding: 8px; }
  .adv-card--wide .adv-card__text { padding: 8px; }
  .adv-card__photo { flex: none; aspect-ratio: 16 / 9; border-radius: 18px; }
}

/* ================================================================= ПОДБОР (темная карточка) */
.consult__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .consult__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.consult__card { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-card); background: var(--slate); color: #fff; box-shadow: var(--sh-card); }
@media (min-width: 768px) { .consult__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; } }
.consult__text { display: flex; flex-direction: column; }
.consult__title { margin-top: 20px; color: #fff; font-size: clamp(30px, 2.9vw, 44px); line-height: 1.04; }
.consult__lead { margin-top: 16px; color: rgba(255, 255, 255, .7); font-size: 16px; line-height: 1.55; }
.consult__phone { display: inline-flex; align-items: center; align-self: flex-start; gap: 14px; margin-top: 28px; color: #fff; }
.consult__phone:hover { color: #fff; }
.consult__phone-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); font-size: 18px; box-shadow: 0 0 0 5px rgba(173, 204, 235, .22); transition: box-shadow .25s var(--ease); }
.consult__phone:hover .consult__phone-icon { box-shadow: 0 0 0 8px rgba(173, 204, 235, .3); }
.consult__phone-num { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; white-space: nowrap; }
.consult__phone-note { display: block; margin-top: 4px; color: rgba(255, 255, 255, .55); font-size: 13px; }
.consult__form { padding: clamp(20px, 2.4vw, 28px); border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.consult__photo { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--sh-card); }
.consult__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.consult__chip { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-float); color: var(--muted); font-size: 13px; line-height: 1.3; }
.consult__chip b { color: var(--ink); font-size: 15px; letter-spacing: -0.03em; }
.consult__chip-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 18px; }
@media (max-width: 1199.98px) { .consult__photo { aspect-ratio: 3 / 1; min-height: 0; } .consult__img { object-position: 45% 62%; } }
@media (max-width: 575.98px) { .consult__photo { aspect-ratio: 4 / 3.2; } .consult__chip { left: 12px; bottom: 12px; } }

/* ================================================================= ФОРМЫ */
.form { display: grid; gap: 14px; }
.modal .form { margin-top: 22px; }
.lead-form__fields { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.field__label { margin-left: 18px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.req { color: var(--accent); }
.field__input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--ink);
  font: 400 16px/1.3 var(--font);
  letter-spacing: var(--track);
  transition: background-color .2s var(--ease), border-color .2s, box-shadow .2s;
}
textarea.field__input { height: auto; min-height: 96px; padding: 14px 20px; border-radius: 22px; resize: vertical; }
.field__input::placeholder { color: var(--muted); opacity: .8; }
.field__input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: var(--ring); }
.field__input.is-invalid, .field__input[data-ms3-error] { border-color: var(--danger); background: #fff; }
.field__error { margin-left: 18px; color: var(--danger); font-size: 13px; }
.field__error:empty { display: none; }
.field--count .field__input { text-align: center; padding: 0 12px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.form__submit { width: 100%; margin-top: 4px; }
.form__note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.form__result { padding: 12px 16px; border-radius: 16px; background: rgba(61, 121, 180, .08); color: var(--accent-deep); font-size: 15px; font-weight: 500; }
.form__result.is-error { background: rgba(196, 40, 60, .08); color: var(--danger); }
.agree { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; cursor: pointer; }
.agree__input { position: absolute; top: 0; left: 0; width: 20px; height: 20px; margin: 0; opacity: 0; }
.agree__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--stone); border-radius: 6px; background: #fff; color: #fff; transition: background-color .15s, border-color .15s, box-shadow .2s; }
.agree__box .ic { font-size: 12px; opacity: 0; --ic-stroke: 3; }
.agree:hover .agree__box { border-color: var(--ink); }
.agree__input:checked + .agree__box { border-color: var(--ink); background: var(--ink); }
.agree__input:checked + .agree__box .ic { opacity: 1; }
.agree__input:focus-visible + .agree__box { box-shadow: var(--ring); }
.agree a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 3px; }
.agree a:hover { color: var(--accent); text-decoration-color: currentColor; }
.consult__form .lead-form { gap: 16px; }

/* ================================================================= ДОСТАВКА И ОПЛАТА */
.service__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .service__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.service-card { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.service-card__title { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.04; }
.service-card__lead { margin-top: 10px; max-width: 34em; color: var(--muted); font-size: 16px; letter-spacing: var(--track-ui); }
.service-card__tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card__more { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; color: var(--accent); font-size: 15px; font-weight: 500; letter-spacing: var(--track-ui); }
.service-card__more:hover { color: var(--accent-deep); }
.tile { display: flex; flex-direction: column; min-height: 156px; padding: 18px; border-radius: var(--r-photo); background: var(--mist); }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: auto; border-radius: 50%; background: #fff; font-size: 18px; }
.tile__title { margin-top: 20px; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.04em; }
.tile__text { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; letter-spacing: var(--track-ui); }
.service-card__stack { display: flex; flex-direction: column; flex: 1; gap: var(--gap); }
.tile--row { flex: 1; flex-direction: row; align-items: center; gap: 16px; min-height: 0; }
.tile--row .tile__icon { flex: none; margin: 0; }
.tile__body { display: flex; flex-direction: column; min-width: 0; }
.tile--row .tile__title { margin-top: 0; }
.row-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.row-item:first-child { border-top: 0; padding-top: 4px; }
.row-item__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); font-size: 18px; }
.row-item__body { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.row-item__title { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.04em; }
.row-item__text { color: var(--muted); font-size: 14px; line-height: 1.45; letter-spacing: var(--track-ui); }
@media (max-width: 575.98px) {
  .service-card { border-radius: 24px; }
  .service-card__tiles { gap: 8px; }
  .tile { min-height: 0; padding: 14px; border-radius: 18px; }
  .tile__icon { width: 40px; height: 40px; font-size: 16px; }
  .tile__title { margin-top: 16px; font-size: 15px; }
  .tile__text { font-size: 13px; }
}

/* ================================================================= ПРОИЗВОДИТЕЛИ */
.brands__grid { display: grid; gap: 20px; }
@media (min-width: 992px) { .brands__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; } }
.brands__list { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--r-pill); background: #fff; color: var(--ink); box-shadow: var(--sh-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; }
.brand-chip:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh); }
.brand-chip__name { font-size: 17px; font-weight: 600; letter-spacing: -0.04em; }
.brand-chip__country { color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.brand-chip--more { gap: 8px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: var(--track-ui); box-shadow: none; }
.brand-chip--more:hover { background: #2a2a2a; color: #fff; }
@media (max-width: 575.98px) {
  .brand-chip { height: 44px; padding: 0 16px; }
  .brand-chip__name { font-size: 15px; }
  .brand-chip__country { font-size: 12px; }
}

/* Все производители */
.brands-all { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .brands-all { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .brands-all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .brands-all { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brand-tile { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-float); color: var(--ink); }
.brand-tile__logo { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; padding: 10% 14%; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); font-size: 18px; text-align: center; }
.brand-tile__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-tile__name { margin-top: 12px; padding: 0 6px; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.04em; }
.brand-tile__meta { padding: 2px 6px 4px; color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }

/* ================================================================= О КОМПАНИИ */
.about__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.about__card { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.about__kicker { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.about__lead { margin-top: 20px; font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.16; letter-spacing: -0.045em; text-wrap: balance; }
.about__list { margin-top: 28px; }
.about__item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--border); }
.about__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); font-size: 18px; }
.about__text { max-width: 44em; padding-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.6; letter-spacing: var(--track-ui); }
.about__more { margin-top: 28px; }
@media (max-width: 575.98px) { .about__item { gap: 12px; } .about__icon { width: 36px; height: 36px; font-size: 15px; } }
.about__photo { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--sh-card); }
.about__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% center; }
.about__stats { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.about__stat { padding: 14px 16px; border-radius: var(--r-photo); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--sh-xs); }
.about__stat dt { font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: var(--track-head); font-variant-numeric: tabular-nums; }
.about__stat dd { margin-top: 6px; color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
@media (max-width: 991.98px) { .about__photo { min-height: 0; aspect-ratio: 4 / 3; } }

/* ================================================================= СЕРТИФИКАТЫ */
.certs__slide { width: 168px; height: auto; }
@media (min-width: 768px) { .certs__slide { width: 200px; } }
.cert { position: relative; display: block; padding: 10px; border-radius: 24px; background: #fff; box-shadow: var(--sh-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cert:hover { transform: translateY(-4px); box-shadow: var(--sh-float); }
.cert__img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; object-position: top; border-radius: 14px; background: var(--mist); }
.cert__zoom { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--sh-xs); font-size: 15px; opacity: 0; transition: opacity .2s; }
.cert:hover .cert__zoom { opacity: 1; }

/* ================================================================= КОНТАКТЫ */
.contacts__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts__photo { grid-column: 1 / -1; min-height: 0; aspect-ratio: 3 / 1; }
}
@media (min-width: 1200px) {
  .contacts__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
  .contacts__photo { grid-column: auto; aspect-ratio: auto; }
}
.contacts__card { min-width: 0; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.call-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
.call { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); transition: background-color .2s var(--ease), box-shadow .25s var(--ease); }
.call:hover { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.call__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; font-size: 18px; }
.call--main .call__icon { background: var(--accent); color: #fff; box-shadow: var(--halo); }
.call__body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.call__num { font-size: 19px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.call--main .call__num { font-size: 22px; }
.call__note { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.3; letter-spacing: var(--track-ui); }
.call__go { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); font-size: 15px; transition: color .2s, transform .25s var(--ease); }
.call:hover .call__go { color: var(--ink); transform: translate(2px, -2px); }
.contacts__card--info { display: flex; flex-direction: column; gap: 24px; }
.contact { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.contact + .contact { padding-top: 24px; border-top: 1px solid var(--border); }
.contact__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.contact__label .ic { color: var(--ink); font-size: 14px; }
.contact__mid { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.03em; }
a.contact__mid:hover { color: var(--accent); }
.contact__note { margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.contacts__photo { position: relative; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--sh-card); }
@media (max-width: 767.98px), (min-width: 1200px) { .contacts__photo { min-height: 260px; } }
.contacts__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.contacts__chip { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border: 0; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-float); color: var(--ink); }
.contacts__chip--btn { cursor: pointer; }
.contacts__chip-text { font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); white-space: nowrap; }
.contacts__chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--halo); }
.messengers--contacts .messengers__link { width: 40px; height: 40px; }
@media (max-width: 575.98px) {
  .contacts__card { border-radius: 24px; }
  .call { gap: 10px; padding: 8px 10px 8px 8px; }
  .call__icon { width: 42px; height: 42px; font-size: 16px; }
  .call__num, .call--main .call__num { font-size: 17px; }
  .contacts__photo { aspect-ratio: 4 / 3; min-height: 0; border-radius: 24px; }
  .contacts__chip { left: 12px; bottom: 12px; }
}

/* ================================================================= ТЕКСТ СТРАНИЦЫ (SEO) */
.seo-text { display: grid; gap: 24px; margin-top: 48px; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.section > .container > .seo-text { margin-top: 0; }
@media (min-width: 992px) { .seo-text--aside { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 40px; } }
.seo-text__main { position: relative; min-width: 0; }
.js-fold.is-folded .js-fold-body { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.seo-text__more { margin-top: 12px; }
.seo-text__more .ic { font-size: 14px; }
.seo-text__aside { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: var(--r-photo); background: var(--mist); }
@media (min-width: 992px) { .seo-text__aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.seo-text__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; font-size: 20px; }
.seo-text__note { margin-top: 16px; color: var(--muted); font-size: 14px; letter-spacing: var(--track-ui); }
.seo-text__phone { margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.045em; white-space: nowrap; }
.seo-text__phone:hover { color: var(--accent); }
.seo-text__btn { margin-top: 16px; }

/* Оформление текстов из визуального редактора */
.rte { color: #2a2827; font-size: 16px; line-height: 1.65; letter-spacing: -0.01em; overflow-wrap: break-word; }
/* тексты перенесены со старого сайта со встроенными шрифтами, размерами и выравниванием по ширине: приводим к общему виду */
.rte * { font-family: inherit !important; }
.rte [style*="font-size"] { font-size: inherit !important; line-height: inherit !important; }
.rte [style*="justify"] { text-align: left !important; }
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte p { margin: 0 0 1em; }
.rte h2, .rte h3, .rte h4 { margin: 1.5em 0 .6em; color: var(--ink); line-height: 1.15; }
.rte h2 { font-size: clamp(22px, 2.1vw, 30px); }
.rte h3 { font-size: clamp(19px, 1.6vw, 23px); }
.rte h4 { font-size: 18px; }
.rte ul, .rte ol { margin: 0 0 1em; padding-left: 1.4em; }
.rte ul { list-style: disc; }
.rte ol { list-style: decimal; }
.rte li { margin: .3em 0; }
.rte li::marker { color: var(--accent); }
.rte a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(61, 121, 180, .35); text-underline-offset: 3px; }
.rte a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
/* высота у картинок из старого редактора прописана в style: на телефоне ширина ужимается, высота должна идти следом */
.rte img { height: auto !important; border-radius: 16px; }
.rte table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: 15px; }
.rte th, .rte td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.rte th { color: var(--muted); font-weight: 500; }
.rte blockquote { margin: 0 0 1em; padding: 0; }
.rte iframe { max-width: 100%; border: 0; border-radius: 18px; }
.text-card { padding: clamp(20px, 3vw, 44px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); overflow-x: auto; }
.page-text { max-width: 1000px; }

/* ================================================================= РАЗДЕЛ КАТАЛОГА */
.crumbs { padding: 18px 0 4px; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.crumbs__item { display: inline-flex; align-items: center; }
.crumbs__item + .crumbs__item::before { content: "/"; margin: 0 10px; color: var(--stone); }
.crumbs__link { color: var(--muted); }
.crumbs__link:hover { color: var(--ink); }
.crumbs__item[aria-current] { color: var(--ink); }

.cat-head { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.cat-head__story { display: block; flex: none; width: 92px; height: 92px; margin: 6px; border-radius: 50%; background: #fff; box-shadow: var(--sh-card); outline: 2px solid var(--accent); outline-offset: 4px; }
.cat-head__story .story__img { padding: 14%; }
.cat-head__text { min-width: 0; }
.cat-head__title.page-title { margin: 0; font-size: clamp(32px, 4.2vw, 60px); line-height: .98; }
.cat-head__count { display: inline-block; margin-left: 6px; color: var(--muted); font-size: max(15px, .3em); font-weight: 500; letter-spacing: -0.02em; vertical-align: top; white-space: nowrap; transform: translateY(.25em); }
.cat-head__sub { margin-top: 12px; color: var(--muted); font-size: 15px; letter-spacing: var(--track-ui); }
.cat-head__sub a { color: var(--accent); }
@media (max-width: 575.98px) {
  .cat-head { gap: 14px; margin-top: 8px; }
  .cat-head__story { width: 64px; height: 64px; }
  .cat-head__count { display: block; margin: 8px 0 0; transform: none; font-size: 15px; }
  .cat-head__sub { margin-top: 6px; font-size: 14px; }
}

.subcats { margin: 24px calc(-1 * var(--gutter)) 0; }
.subcats__list { gap: 8px; padding: 4px var(--gutter) 8px; }
@media (max-width: 1399.98px) {
  .subcats__list { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
}
.subcat { display: inline-flex; align-items: center; flex: none; height: 42px; padding: 0 18px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); white-space: nowrap; box-shadow: var(--sh-xs); transition: box-shadow .25s var(--ease), transform .25s var(--ease), background-color .2s; }
.subcat:hover { color: var(--ink); box-shadow: var(--sh); transform: translateY(-1px); }
.subcat.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.subcat .ic { width: 16px; height: 16px; flex: none; }
.subcat.is-active .ic { margin: 0 -6px 0 8px; opacity: .7; }
.subcat.is-active:hover .ic { opacity: 1; }
.subcat--up { gap: 6px; padding-left: 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.subcat--up:hover { background: #fff; }
@media (min-width: 1200px) {
  .subcats { margin-inline: 0; }
  .subcats__list { flex-wrap: wrap; overflow: visible; padding-inline: 4px; margin-inline: -4px; -webkit-mask-image: none; mask-image: none; }
}

.cat-layout { margin-top: 20px; }
@media (min-width: 1200px) { .cat-layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 24px; align-items: start; } }
.cat-main { min-width: 0; }
.cat-main--wide { margin-top: 20px; }

/* Панель над списком */
.toolbar { display: flex; align-items: center; gap: 8px; }
.toolbar--search { margin: 20px 0 0; }
.toolbar__count { color: var(--muted); font-size: 15px; letter-spacing: var(--track-ui); }
.toolbar__count b { color: var(--ink); }
.toolbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.toolbar__filters { flex: none; }
.toolbar__filters .chip__count { margin-left: 2px; }
.sort { position: relative; display: flex; min-width: 0; height: 44px; margin: 0; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-xs); transition: box-shadow .25s var(--ease); }
.sort:hover { box-shadow: var(--sh); }
.sort__label { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; margin: 0; }
.sort__select { width: 100%; min-width: 0; height: 44px; padding: 0 40px 0 42px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 500 15px/1 var(--font); letter-spacing: var(--track-ui); text-overflow: ellipsis; cursor: pointer; appearance: none; -webkit-appearance: none; }
.sort__select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sort__icon { position: absolute; left: 14px; font-size: 15px; pointer-events: none; }
.sort__chev { position: absolute; right: 14px; color: var(--muted); font-size: 14px; pointer-events: none; }
.view { display: flex; flex: none; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-xs); }
.view__btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.view__btn:hover { color: var(--ink); }
.view__btn.is-active { background: var(--ink); color: #fff; }
@media (max-width: 767.98px) {
  .toolbar__right { flex: 1 1 auto; }
  .sort { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
  .toolbar__filters { padding: 0 12px; font-size: 14px; }
  .sort__select { padding: 0 28px 0 14px; font-size: 14px; }
  .sort__icon { display: none; }
  .sort__chev { right: 10px; }
  .view__btn { width: 32px; height: 32px; }
}

.quick { margin: 12px calc(-1 * var(--gutter)) 0; }
.quick__list { gap: 8px; padding: 4px var(--gutter) 8px; }
.quick .chip { height: 38px; }
@media (min-width: 1200px) {
  .quick { margin-inline: 0; }
  .quick__list { flex-wrap: wrap; overflow: visible; padding-inline: 0; }
}

/* Фильтр: группы fieldset, раскрытие по легенде (main.js: .filter__group.is-open), длинные списки - .is-long / .is-all */
.filters__title { font-size: 24px; font-weight: 600; letter-spacing: var(--track-head); }
.filters__panel-head { display: none; }
.filter__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter__group + .filter__group { border-top: 1px solid var(--border); }
.filter__legend { float: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 16px 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; cursor: pointer; user-select: none; }
.filter__chev { flex: none; color: var(--muted); font-size: 15px; transition: transform .25s var(--ease); }
.filter__group:not(.is-open) .filter__chev { transform: rotate(-90deg); }
.filter__group:not(.is-open) .filter__body { display: none; }
.filter__body { display: flex; flex-direction: column; padding-bottom: 14px; }
.filter__values { display: flex; flex-direction: column; }
.filter__values.is-long:not(.is-all) .filter__check:nth-child(n + 9):not(:has(input:checked)) { display: none; }
/* значение фильтра: <label><input><span>текст</span><small>число</small></label>, квадратик рисует span::before */
.filter__check { position: relative; display: flex; align-items: center; margin: 0; padding: 6px 0; font-size: 15px; line-height: 1.3; letter-spacing: var(--track-ui); cursor: pointer; }
.filter__check.is-disabled { opacity: .45; cursor: default; }
.filter__check input { position: absolute; top: 7px; left: 0; width: 22px; height: 22px; margin: 0; opacity: 0; }
.filter__check > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filter__check > span::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--stone);
  border-radius: 7px;
  background: #fff center / 14px no-repeat;
  transition: background-color .15s, border-color .15s, box-shadow .2s;
}
.filter__check:hover > span::before { border-color: var(--ink); }
.filter__check input:checked + span::before {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");
}
.filter__check input:focus-visible + span::before { box-shadow: var(--ring); }
.filter__check > small { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 12px; }
.filter__more { align-self: flex-start; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; }
.filter__range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 2px; }
.filter__field { display: flex; align-items: center; gap: 6px; height: 44px; margin: 0; padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); cursor: text; transition: background-color .2s, box-shadow .2s; }
.filter__field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.filter__field-label { color: var(--muted); font-size: 13px; }
.filter__num { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 500 15px/1 var(--font); letter-spacing: var(--track-ui); -moz-appearance: textfield; }
.filter__num::-webkit-outer-spin-button, .filter__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter__num::placeholder { color: var(--fog); }
.filters__foot { display: flex; gap: 8px; }
.filters__foot > * { flex: 1; padding: 0 14px; }
.filters__apply { flex: 1.7; box-shadow: none; }
.filters__apply:hover { box-shadow: var(--halo); }
/* пока фильтр пересчитывает число товаров в фоне (market.js) */
.filters__apply.is-loading { opacity: .7; cursor: progress; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .85; } to { opacity: .6; } }
@media (min-width: 1200px) {
  .filters.offcanvas-xl {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow: hidden;
    border-radius: var(--r-card);
    background: #fff !important;
    box-shadow: var(--sh-card);
  }
  .filters .filters__body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .filters__form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .filters__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 6px; }
  .filters__panel-title { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: var(--track-head); }
  .filters__panel-title .ic { font-size: 16px; }
  .filters__reset-link { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
  .filters__reset-link:hover { color: var(--ink); }
  .filters__groups { flex: 1 1 auto; min-height: 0; padding: 0 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; }
  .filters__foot { padding: 14px 16px 16px; border-top: 1px solid var(--border); }
  .filters__foot .filters__reset { display: none; }
}
@media (max-width: 1199.98px) {
  .filters.offcanvas-xl { --bs-offcanvas-height: 86vh; height: 86dvh; border: 0 !important; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -24px 60px rgba(0, 0, 0, .18); }
  .filters__head { padding: 10px 16px 4px 20px; }
  .filters__close { width: 40px; height: 40px; }
  .filters__body { min-height: 0; padding: 0 20px; }
  .filters__foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #fff; }
}

/* Сетка товаров и вид «список» */
.listing { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
@media (min-width: 768px) { .listing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .listing { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .listing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .listing { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .listing--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .listing--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.page--favorites .listing, .page--search .listing { margin-top: 16px; }

.is-list .listing { grid-template-columns: minmax(0, 1fr); }
.is-list .product-card.card { flex-direction: row; align-items: stretch; gap: 20px; }
.is-list .product-card.card:hover { transform: translateY(-2px); }
.is-list .product-card__media { width: 168px; align-self: flex-start; }
.is-list .product-card__tools { top: 20px; left: 136px; right: auto; }
.is-list .product-card__tool--more { display: none; }
.is-list .product-card__label { left: 20px; }
.is-list .product-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info foot" "info one"; align-items: center; gap: 10px 24px; padding: 8px 8px 8px 0; }
.is-list .product-card__info { grid-area: info; gap: 8px; }
.is-list .product-card__title { font-size: 17px; letter-spacing: -0.03em; }
.is-list .product-card__link { min-height: 0; -webkit-line-clamp: 2; }
.is-list .product-card__foot { grid-area: foot; flex-wrap: nowrap; gap: 16px; margin-top: 0; }
.is-list .product-card__buy { align-items: flex-end; }
.is-list .product-card__price .price__now { font-size: 22px; letter-spacing: -0.045em; }
.is-list .product-card__oneclick { grid-area: one; width: auto; justify-self: end; }
.is-list .product-card__add { width: auto; height: 44px; gap: 8px; padding: 0 20px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font: 500 15px/1 var(--font); letter-spacing: var(--track-ui); }
.is-list .product-card__add .ic { font-size: 16px; }
.is-list .product-card__add-label { display: inline; }
@media (max-width: 767.98px) {
  .is-list .product-card.card { gap: 12px; }
  .is-list .product-card__media { width: 112px; }
  .is-list .product-card__tools { top: 14px; left: 86px; }
  .is-list .product-card__body { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 4px 4px 4px 0; }
  .is-list .product-card__title { font-size: 15px; }
  .is-list .product-card__foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .is-list .product-card__buy { align-items: flex-start; }
  .is-list .product-card__price .price__now { font-size: 18px; }
  .is-list .product-card__add { width: 44px; padding: 0; justify-content: center; }
  .is-list .product-card__add-label { display: none; }
  .is-list .product-card__oneclick { width: 100%; }
}

/* Страницы списка */
.pager { display: flex; justify-content: center; margin-top: 32px; }
.pager__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager__item { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 500 15px/1 var(--font); letter-spacing: var(--track-ui); box-shadow: var(--sh-xs); transition: box-shadow .25s var(--ease), background-color .2s, color .2s; }
a.pager__item:hover { color: var(--ink); box-shadow: var(--sh); }
.pager__item.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.pager__item--arrow { font-size: 16px; }
.pager__skip { display: grid; place-items: center; min-width: 28px; height: 44px; color: var(--muted); }

/* Пустые состояния */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; padding: clamp(28px, 4vw, 56px) 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); text-align: center; }
.empty--page { margin-top: 4px; }
.empty__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; background: var(--mist); font-size: 28px; }
.empty__title { font-size: 22px; font-weight: 600; letter-spacing: var(--track-head); }
.empty__text { max-width: 30em; color: var(--muted); font-size: 15px; }
.empty .btn-accent, .empty .btn-soft { margin-top: 10px; }

/* ================================================================= КАРТОЧКА ТОВАРА (страница) */
.product { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "side" "summary"; margin-top: 8px; }
.product__media { grid-area: media; min-width: 0; }
.product__side { grid-area: side; min-width: 0; }
.product__summary { grid-area: summary; }
@media (min-width: 992px) {
  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; grid-template-areas: "media side" "summary side"; align-items: start; }
  .product__side { align-self: stretch; }
}
.gallery { position: relative; padding: 12px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.gallery__main { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; border-radius: var(--r-photo); background: var(--mist); cursor: zoom-in; }
@media (min-width: 992px) { .gallery__main { aspect-ratio: 5 / 4; } }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.gallery__main:hover .gallery__img { transform: scale(1.03); }
.gallery__zoom { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 17px; box-shadow: var(--sh-xs); transition: transform .25s var(--ease); }
.gallery__main:hover .gallery__zoom { transform: scale(1.08); }
.gallery--empty .gallery__main { cursor: default; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 60px; padding: 5px; border: 0; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); font: 500 15px/1 var(--font); letter-spacing: var(--track-ui); cursor: pointer; transition: background-color .2s, box-shadow .2s, color .2s; }
.gallery__thumb:hover { background: var(--mist-deep); }
.gallery__thumb.is-active { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.gallery__thumb-img { display: block; flex: none; width: 50px; height: 50px; overflow: hidden; border-radius: 50%; background: #fff; }
.gallery__thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
@media (min-width: 992px) {
  .gallery__img { padding: 6% 8% 15%; }
  .gallery__zoom { top: 16px; bottom: auto; }
  .gallery__thumbs {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    max-width: calc(100% - 56px);
    gap: 4px;
    margin: 0;
    padding: 6px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--sh-float);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .gallery__thumb { height: 56px; background: transparent; }
  .gallery__thumb:hover { background: var(--mist); }
  .gallery__thumb.is-active { background: var(--ink); color: #fff; box-shadow: none; }
}

.summary-card { padding: 24px 28px 28px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.summary-card__title { font-size: 20px; letter-spacing: var(--track-head); }
.summary-card__list { display: grid; gap: 0 32px; margin-top: 12px; }
@media (min-width: 768px) { .summary-card__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.summary-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; letter-spacing: var(--track-ui); }
.summary-card__row dt { color: var(--muted); }
.summary-card__row dd { font-weight: 500; text-align: right; }
.summary-card__more { margin-top: 18px; }

.buy { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-float); }
@media (min-width: 992px) { .buy { position: sticky; top: calc(var(--header-h) + 16px); } }
.buy__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.buy__brand { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.buy__brand .ic { font-size: 14px; }
.buy__sku { color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.buy__sku b { color: var(--ink); font-weight: 500; }
.buy__title.page-title { margin: 16px 0 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -0.045em; }
.buy__price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
.buy__price .price__now { font-size: clamp(34px, 3vw, 44px); line-height: 1; letter-spacing: var(--track-head); }
.buy__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.buy__stock .ic { font-size: 15px; }
.buy__stock.is-in .ic { color: #1f9d55; }
.buy__note { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; letter-spacing: var(--track-ui); }
.buy__keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.key { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: var(--r-photo); background: var(--mist); }
.key__label { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: var(--track-ui); }
.key__value { font-size: 18px; font-weight: 600; line-height: 1.15; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.buy__actions { display: flex; gap: 8px; margin-top: 20px; }
.buy__actions.buy__incart { display: none; }
.buy__add, .buy__go { flex: 1; min-width: 0; }
.buy__add .ic, .buy__go .ic { font-size: 18px; }
.buy__go-note { margin-left: 2px; color: rgba(255, 255, 255, .6); font-weight: 400; }
.buy__oneclick { width: 100%; margin-top: 8px; }
.buy__oneclick .ic { color: var(--accent); }
.buy__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 8px; margin-top: 8px; }
.buy__tool { width: 100%; padding: 0 12px; }
@media (max-width: 389.98px) { .buy__tool { gap: 6px; padding: 0 8px; font-size: 14px; } }
.buy__tool[data-favorite].is-active .ic-on { color: var(--accent); }
.buy__tool[data-compare].is-active { background: var(--ink); color: #fff; }
/* «Поделиться»: круглая кнопка в ряду «Избранное / Сравнить» и меню под ней */
.share { position: relative; }
.share__btn { width: 44px; height: 44px; }
.share__btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.share__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 236px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: var(--sh-float); animation: pop .2s var(--ease); }
.share__menu[hidden] { display: none; }
.share__title { padding: 6px 10px 8px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.share__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 10px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: 500 15px/1 var(--font); letter-spacing: var(--track-ui); text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.share__item:hover { background: var(--mist); color: var(--ink); }
.share__icon { flex: none; width: 30px; height: 30px; }
.share__icon--copy { display: grid; place-items: center; border-radius: 50%; background: var(--mist); font-size: 15px; }
.modal .share { display: none; }
.modal .buy__more { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.buy__service { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--border); }
.buy__service-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 14px; line-height: 1.45; letter-spacing: var(--track-ui); }
.buy__service-item b { color: var(--ink); }
.buy__service-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 15px; }

.qty { display: flex; align-items: center; flex: none; height: 52px; padding: 4px; border-radius: var(--r-pill); background: var(--mist); }
.qty__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 500 18px/1 var(--font); box-shadow: var(--sh-xs); cursor: pointer; transition: box-shadow .2s, transform .15s; }
.qty__btn .ic { font-size: 15px; pointer-events: none; }
.qty__btn:hover { box-shadow: var(--sh); }
.qty__btn:active { transform: scale(.92); }
.qty__input { width: 44px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 600 17px/1 var(--font); letter-spacing: -0.02em; text-align: center; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { display: inline-flex; height: 44px; }
.qty--sm .qty__btn { width: 36px; height: 36px; }
.qty--sm .qty__input { width: 38px; font-size: 15px; }
@media (max-width: 575.98px) {
  .buy { border-radius: 24px; }
  .gallery { padding: 8px; border-radius: 24px; }
  .gallery__main { border-radius: 18px; }
  .gallery__thumbs { gap: 6px; margin-top: 8px; }
  .gallery__thumb { height: 46px; padding: 4px; font-size: 13px; }
  .gallery__thumb-img { width: 38px; height: 38px; }
  .summary-card { padding: 20px; border-radius: 24px; }
  .qty__btn { width: 40px; height: 40px; }
  .qty__input { width: 36px; }
  .buy__add, .buy__go { padding: 0 16px; }
  .buy__go-note { display: none; }
}

/* Вкладки-таблетки (main.js: [data-tab] / [data-pane], класс is-active) */
.ptabs { margin-top: calc(var(--section) * 1.5); }
.ptabs__nav { gap: 8px; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
@media (min-width: 992px) { .ptabs__nav { width: auto; margin: -4px; padding: 4px; } }
.ptabs__pane { display: none; margin-top: 12px; }
.ptabs__pane.is-active { display: block; animation: fade .25s; }
.ptabs__card { padding: 8px clamp(16px, 2.4vw, 32px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.ptabs__card--text { padding: clamp(20px, 3vw, 40px); }
.ptabs__card--text.rte { max-width: none; }
.specs { columns: 1; column-gap: 48px; }
@media (min-width: 992px) { .specs { columns: 2; } }
.specs__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); break-inside: avoid; }
.specs__key { color: var(--muted); font-size: 15px; letter-spacing: var(--track-ui); }
.specs__val { font-size: 15px; font-weight: 500; letter-spacing: var(--track-ui); text-align: right; }
.ptabs__card--service { display: grid; gap: 32px; padding: clamp(20px, 3vw, 40px); }
@media (min-width: 992px) { .ptabs__card--service { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.ptabs__h { margin-bottom: 8px; font-size: 24px; letter-spacing: var(--track-head); }
.ptabs__note { margin-top: 8px; padding: 16px 18px; border-radius: 18px; background: var(--mist); color: var(--muted); font-size: 14px; }

/* Документация */
.docs { display: grid; gap: var(--gap); }
.docs__files { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .docs__files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs__videos { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .docs__videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; border-radius: var(--r-card); background: #fff; color: var(--ink); box-shadow: var(--sh-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.doc:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-float); }
.doc__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--mist); font-size: 22px; }
.doc__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.doc__title { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.doc__kind { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.doc__hint { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .2s; }
.doc:hover .doc__hint { background: var(--mist-deep); }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: var(--slate); box-shadow: var(--sh-card); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 575.98px) { .doc__hint { display: none; } }

/* Ленты на странице товара */
.related { padding-bottom: 0; }
.related + .related, .ptabs + .related { padding-top: calc(var(--section) * 1.5); }
@media (min-width: 768px) { .related .ribbon__slide { width: calc((100% - 2 * 12px) / 3); } }
@media (min-width: 1200px) { .related .ribbon__slide { width: calc((100% - 3 * 16px) / 4); } }
@media (min-width: 1600px) { .related .ribbon__slide { width: calc((100% - 4 * 16px) / 5); } }

/* Панель покупки на телефоне */
.buybar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 1020; visibility: hidden; transform: translateY(calc(100% + 24px)); transition: transform .4s var(--ease), visibility .4s; }
.buybar.is-shown { visibility: visible; transform: none; }
.buybar__in { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-float), 0 0 0 1px rgba(0, 0, 0, .03); }
.buybar__thumb { display: block; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: var(--mist); isolation: isolate; }
.buybar__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.buybar__info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.buybar__price .price__now { font-size: 19px; letter-spacing: -0.045em; }
.buybar__stock { color: var(--muted); font-size: 12px; }
.buybar__btn { height: 48px; padding: 0 22px; box-shadow: none; }
.buybar__incart { display: none; align-items: center; gap: 6px; }
@media (max-width: 991.98px) { .page--product .footer { padding-bottom: 84px; } }

/* ================================================================= КОРЗИНА И ОФОРМЛЕНИЕ */
.cart, .checkout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 992px) {
  .cart { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .cart__summary, .checkout__summary { position: sticky; top: calc(var(--header-h) + 16px); }
}
.cart__items { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 120px 44px; align-items: center; gap: 20px; padding: 12px 16px 12px 12px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.cart-item__img { display: block; width: 96px; height: 96px; overflow: hidden; border-radius: 18px; background: var(--mist); isolation: isolate; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cart-item__info { min-width: 0; }
.cart-item__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: var(--track-ui); }
.cart-item__title:hover { color: var(--accent); }
.cart-item__article, .cart-item__price { margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.cart-item__cost { font-size: 18px; font-weight: 600; letter-spacing: -0.035em; text-align: right; white-space: nowrap; }
.cart-item__remove-btn { width: 40px; height: 40px; font-size: 15px; }
.cart__clean { align-self: flex-start; margin-top: 4px; }
.cart__clean-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.cart__clean-btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 767.98px) {
  .cart-item { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty cost"; gap: 10px 12px; padding: 10px; border-radius: 24px; }
  .cart-item__remove { justify-self: end; }
  .cart-item__img { grid-area: img; width: 76px; height: 76px; align-self: start; }
  .cart-item__info { grid-area: info; }
  .cart-item__qty { grid-area: qty; }
  .cart-item__cost { grid-area: cost; font-size: 16px; }
  .cart-item__remove { grid-area: rm; align-self: start; }
  .cart-item__title { font-size: 14px; }
}

.order-box { padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-float); }
.order-box__title { margin-bottom: 12px; font-size: 22px; font-weight: 600; letter-spacing: var(--track-head); }
.order-box__item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.35; }
.order-box__item b { white-space: nowrap; }
.order-box__qty { color: var(--muted); white-space: nowrap; }
.order-box__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 15px; }
.order-box__row b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.order-box__row--total { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--ink); font-size: 17px; }
.order-box__row--total b { font-size: 28px; letter-spacing: var(--track-head); }
.order-box__btn { width: 100%; margin-top: 14px; }
.order-box__agree { margin-top: 16px; }
.order-box__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.order-box__note .ic { flex: none; margin-top: 1px; font-size: 15px; color: var(--ink); }

.checkout__form { display: flex; flex-direction: column; gap: var(--gap); }
.checkout__section { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.checkout__title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 22px; letter-spacing: var(--track-head); }
.checkout__num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; letter-spacing: 0; box-shadow: var(--halo); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 20px; padding: 4px; border-radius: 24px; background: var(--mist); }
.segmented__item { position: relative; margin: 0; cursor: pointer; }
.segmented__item input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__item span { display: flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r-pill); color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented__item input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }
.segmented__item input:focus-visible + span { box-shadow: var(--ring); }
@media (max-width: 575.98px) {
  .segmented { display: flex; width: 100%; flex-wrap: nowrap; }
  .segmented__item { flex: 1 1 0; min-width: 0; }
  .segmented__item span { justify-content: center; height: auto; min-height: 44px; padding: 8px 10px; line-height: 1.2; text-align: center; }
}
.form-grid { display: grid; gap: 14px 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.company-fields { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.address-fields { margin-top: 16px; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px 18px; border: 1.5px solid transparent; border-radius: 20px; background: var(--mist); cursor: pointer; transition: background-color .2s, border-color .2s; }
.choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--stone); border-radius: 50%; background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border .15s; }
.choice input:checked { border: 6px solid var(--accent); }
.choice input:focus-visible { box-shadow: var(--ring); outline: 0; }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; }
.choice__body { display: flex; flex-direction: column; gap: 2px; }
.choice__body b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.choice__body small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.checkout__section .field--wide { margin-top: 16px; }
.checkout__section .form-grid .field--wide { margin-top: 0; }

.thanks { max-width: 760px; margin: 0 auto; }
.thanks__card { display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); text-align: center; }
.thanks__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-size: 28px; --ic-stroke: 2.4; }
.thanks__num { margin-top: 20px; font-size: 28px; font-weight: 600; letter-spacing: var(--track-head); }
.thanks__lead { max-width: 34em; margin-top: 10px; color: var(--muted); }
.thanks__list { width: 100%; margin: 24px 0 28px; text-align: left; }
.thanks__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.thanks__row dt { color: var(--muted); }
.thanks__row dd { font-weight: 500; white-space: nowrap; }
.thanks__row--total dt { color: var(--ink); font-weight: 600; }
.thanks__row--total dd { font-size: 22px; font-weight: 600; }

/* ================================================================= СРАВНЕНИЕ */
.compare { margin-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 15px; font-weight: 500; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; }
.switch__track { position: relative; width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--stone); transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-xs); transition: transform .2s var(--ease); }
.switch__input:checked + .switch__track { background: var(--ink); }
.switch__input:checked + .switch__track::after { transform: translateX(18px); }
.switch__input:focus-visible + .switch__track { box-shadow: var(--ring); }
.compare__scroll { overflow-x: auto; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.compare__table { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare__table th, .compare__table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare__table tbody th { position: sticky; left: 0; z-index: 1; min-width: 160px; background: #fff; color: var(--muted); font-weight: 500; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__corner { position: sticky; left: 0; z-index: 1; background: #fff; }
.compare__product { min-width: 220px; padding: 12px !important; }
.compare.is-diff .is-same { display: none; }
.compare-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.compare-card__remove { position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px; background: #fff; box-shadow: var(--sh-xs); font-size: 13px; }
.compare-card__link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); font-weight: 500; line-height: 1.3; }
.compare-card__link:hover { color: var(--accent); }
.compare-card__img { display: block; height: 180px; overflow: hidden; border-radius: 18px; background: var(--mist); isolation: isolate; }
@media (max-width: 575.98px) {
  .compare__table tbody th { min-width: 112px; }
  .compare__product { min-width: 180px; }
  .compare-card__img { height: 140px; }
}
.compare-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.compare-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 14px; }
.compare-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.compare-card__foot .price__now { font-size: 17px; }

/* ================================================================= СТАТЬИ */
.articles { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .articles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .articles:not(.articles--3) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.article-card { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--sh-float); }
.article-card__img { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-photo); background: var(--mist); color: var(--fog); font-size: 40px; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px 8px; }
.article-card__date { color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.article-card__title { font-size: 19px; line-height: 1.2; letter-spacing: -0.04em; }
.article-card__link { color: var(--ink); }
.article-card__link:hover { color: var(--ink); }
.article-card__text { color: var(--muted); font-size: 14px; line-height: 1.5; letter-spacing: var(--track-ui); }
.related-articles { padding-bottom: 0; }

.article { max-width: 900px; margin: 0 auto; }
.article__head { padding: 12px 0 20px; }
.article__date { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; color: var(--muted); font-size: 13px; font-weight: 500; box-shadow: var(--sh-xs); }
.article__title.page-title { margin: 16px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; }
.article__cover { display: block; width: 100%; max-height: 520px; margin-bottom: var(--gap); object-fit: cover; border-radius: var(--r-card); box-shadow: var(--sh-card); }
.article__body { font-size: 17px; }
.article__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-top: var(--gap); padding: 20px 24px; border-radius: var(--r-card); background: var(--slate); color: #fff; }
.article__cta-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 20px; }
.article__cta-text { flex: 1 1 260px; min-width: 0; }
.article__cta-title { font-size: 20px; font-weight: 600; letter-spacing: var(--track-head); }
.article__cta-note { margin-top: 2px; color: rgba(255, 255, 255, .65); font-size: 14px; }

/* ================================================================= КАРТА САЙТА, 404 */
.sitemap-html { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 992px) { .sitemap-html { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.sitemap-html__side { display: grid; gap: var(--gap); }
.sitemap-html__card { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); font-size: 15px; }
.sitemap-html__card h2 { margin-bottom: 14px; font-size: 22px; }
.sitemap-html__card ul ul { margin: 4px 0 8px; padding-left: 16px; border-left: 1px solid var(--border); }
.sitemap-html__card li { padding: 3px 0; }
.sitemap-html__card a:hover { color: var(--accent); }
.sitemap-html__card--catalog > ul { columns: 2; column-gap: 32px; }
.sitemap-html__card--catalog > ul > li { break-inside: avoid; }
.sitemap-html__card--catalog > ul > li > a { font-weight: 600; }
.sitemap-html__card p { margin-top: 12px; }
.sitemap-html__brands { columns: 2; column-gap: 24px; }
@media (max-width: 575.98px) { .sitemap-html__card--catalog > ul { columns: 1; } }

.notfound { max-width: 760px; margin: 32px auto 0; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); text-align: center; }
.notfound__code { color: var(--accent); font-size: clamp(88px, 13vw, 168px); font-weight: 600; line-height: .9; letter-spacing: -0.07em; }
.notfound__title.page-title { margin: 12px 0 0; font-size: clamp(26px, 3vw, 38px); }
.notfound__text { max-width: 30em; margin: 12px auto 0; color: var(--muted); }
.notfound__search { max-width: 560px; margin: 24px auto 0; text-align: left; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.notfound__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1000px; margin: 24px auto 0; }

/* ================================================================= ВНУТРЕННИЕ СТРАНИЦЫ: доставка, оплата, о компании, контакты */
/* первый экран: карточка с H1 и фактами + фото или карта */
.phero { padding-bottom: calc(var(--section) * .5); }
.phero__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 992px) { .phero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 460px; } }
.phero__card { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.phero__title.page-title { margin: 20px 0 0; font-size: clamp(38px, 4.6vw, 64px); line-height: .98; }
.phero__lead { max-width: 34em; margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; }
.phero__facts { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }
@media (min-width: 576px) { .phero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.phero__fact { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: var(--r-photo); background: var(--mist); }
@media (min-width: 576px) { .phero__fact { flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 16px 16px; } }
.phero__fact-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 18px; }
.phero__fact-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.phero__fact-body b { font-size: 15px; letter-spacing: -0.03em; }
.phero__fact-body span { color: var(--muted); font-size: 13px; letter-spacing: var(--track-ui); }
.phero__photo { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--r-card); background: var(--slate); box-shadow: var(--sh-card); }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__chip { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-float); color: var(--muted); font-size: 13px; line-height: 1.3; }
.phero__chip b { color: var(--ink); font-size: 15px; letter-spacing: -0.03em; }
.phero__chip-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; box-shadow: var(--halo); }
@media (max-width: 991.98px) { .phero__photo { aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 575.98px) { .phero__photo { aspect-ratio: 4 / 3; border-radius: 24px; } .phero__card { border-radius: 24px; } .phero__chip { left: 12px; bottom: 12px; } }
/* контакты: телефоны в карточке и карта вместо фото */
.phero__calls { margin-top: 24px; }
.phero__contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.phero__mail { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.phero__mail .ic { color: var(--muted); }
.phero__mail:hover { color: var(--accent); }
.phero__map { display: flex; flex-direction: column; gap: 12px; min-height: 420px; padding: 12px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.phero__map-frame { position: relative; flex: 1; min-height: 340px; overflow: hidden; border-radius: var(--r-photo); background: var(--mist); }
.phero__map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.phero__map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 4px 8px 4px 10px; }
.phero__map-addr { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; letter-spacing: var(--track-ui); }
.phero__map-addr .ic { color: var(--accent); }

/* зоны доставки */
.zones { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zone { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.zone__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border-radius: 50%; background: var(--mist); font-size: 20px; }
.zone__label { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.zone__price { margin-top: 6px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: var(--track-head); }
.zone__price small { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
.zone__price--text { font-size: clamp(24px, 2.2vw, 30px); }
.zone__note { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 14px; letter-spacing: var(--track-ui); }
.zone--accent { background: var(--accent); color: #fff; box-shadow: 0 18px 40px -18px rgba(61, 121, 180, .7); }
.zone--accent .zone__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.zone--accent .zone__label, .zone--accent .zone__note { color: rgba(255, 255, 255, .75); }

/* заметки под блоком: выделенная (акцент) и обычная */
.notes { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin-top: var(--gap); }
@media (min-width: 992px) { .notes { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.note-card { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 20px 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.note-card__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); font-size: 18px; }
.note-card__text { color: var(--muted); font-size: 15px; line-height: 1.55; letter-spacing: var(--track-ui); }
.note-card__text b { color: var(--ink); }
.note-card--accent { background: rgba(173, 204, 235, .45); box-shadow: none; }
.note-card--accent .note-card__icon { background: var(--accent); color: #fff; }
.note-card--accent .note-card__text { color: #2c3f52; }

/* карточки с иконкой: регионы, подъем на этаж */
.info-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .info-card--wide { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .info-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } .info-card--wide { grid-column: auto; } }
.info-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.info-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; background: var(--mist); font-size: 20px; }
.info-card__title { font-size: 20px; line-height: 1.15; letter-spacing: -0.045em; }
.info-card__text { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; letter-spacing: var(--track-ui); }
.info-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tk-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.info-card__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.5; }

/* шаги */
.steps { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 576px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; min-width: 0; padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.step:first-child .step__num { background: var(--accent); box-shadow: var(--halo); }
.step__title { font-size: 18px; font-weight: 600; letter-spacing: -0.04em; }
.step__text { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; letter-spacing: var(--track-ui); }

/* вопросы и ответы + колонка «Мы гарантируем» */
.faq-layout { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 992px) { .faq-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.faq { display: grid; gap: 8px; }
.faq__item { border-radius: 22px; background: #fff; box-shadow: var(--sh-card); }
.faq__q { position: relative; display: block; padding: 20px 64px 20px 24px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.035em; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); background-color: var(--accent-wash); }
.faq__a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.6; letter-spacing: var(--track-ui); }
.promise { padding: 24px; border-radius: var(--r-card); background: var(--slate); color: #fff; }
@media (min-width: 992px) { .promise { position: sticky; top: calc(var(--header-h) + 16px); margin-top: 66px; } }
.promise__title { font-size: 22px; font-weight: 600; letter-spacing: var(--track-head); }
.promise__list { display: grid; gap: 14px; margin-top: 18px; }
.promise__item { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.45; }
.promise__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; }
.promise__more { margin-top: 20px; background: rgba(255, 255, 255, .1); color: #fff; }
.promise__more:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* способы оплаты */
.pay-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.pay-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; box-shadow: var(--halo); }
.pay-card__who { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.pay-card__title { margin-top: 6px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.pay-card__text { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; letter-spacing: var(--track-ui); }
.pay-card__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pay-card__list li { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.pay-card__list .ic { color: var(--accent); font-size: 14px; --ic-stroke: 2.4; }

/* производители на странице «О компании» */
.brand-hl { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .brand-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .brand-hl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand-hl__card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 12px 12px 20px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.brand-hl__card:hover { transform: translateY(-4px); box-shadow: var(--sh-float); color: var(--ink); }
.brand-hl__logo { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-photo); background: #fff; box-shadow: inset 0 0 0 1px var(--border); font-size: 22px; }
.brand-hl__logo img { position: absolute; top: 14%; left: 16%; width: 68%; height: 72%; object-fit: contain; }
.brand-hl__name { margin: 16px 8px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.045em; }
.brand-hl__country { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: var(--track-ui); }
.brand-hl__text { margin: 6px 8px 0; color: var(--muted); font-size: 14px; line-height: 1.5; letter-spacing: var(--track-ui); }
.brand-hl__count { display: inline-flex; align-items: center; gap: 6px; margin: auto 8px 0; padding-top: 16px; color: var(--accent); font-size: 14px; font-weight: 500; }
.brand-hl__card--more { padding: 24px; background: var(--ink); color: #fff; }
.brand-hl__card--more:hover { color: #fff; }
.brand-hl__more-num { font-size: clamp(48px, 5vw, 72px); font-weight: 600; line-height: 1; letter-spacing: var(--track-head); }
.brand-hl__card--more .brand-hl__name { margin: 8px 0 0; }
.brand-hl__card--more .brand-hl__text { margin: 8px 0 0; color: rgba(255, 255, 255, .65); }
.brand-hl__card--more .brand-hl__count { margin-left: 0; color: var(--accent-wash); }

/* реквизиты */
.req-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 992px) { .req-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.req-side { display: grid; gap: var(--gap); }
.req-card { min-width: 0; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.req-card__title { font-size: 22px; font-weight: 600; letter-spacing: var(--track-head); }
.req-card__sub { margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.req-card__sub--first { margin-top: 0; }
.req-card__text { margin-top: 6px; font-size: 15px; }
.req-card__mono { margin-top: 6px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.req-list { display: grid; gap: 0 32px; margin-top: 12px; }
@media (min-width: 768px) { .req-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.req-list__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.req-list__row dt { flex: none; color: var(--muted); }
.req-list__row--wide { grid-column: 1 / -1; }
.req-list__row dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.req-card--qr { display: flex; flex-direction: column; align-items: center; text-align: center; }
.req-card__qr { width: 200px; height: 200px; object-fit: contain; border-radius: 16px; }
.req-card__caption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* темная полоса «Остались вопросы?» */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); color: var(--ink); }
.cta-band__text { flex: 1 1 360px; min-width: 0; }
.cta-band__title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: var(--track-head); }
.cta-band__lead { margin-top: 10px; color: var(--muted); font-size: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.cta-band__phone:hover { color: var(--accent); }
.cta-band__phone-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; box-shadow: var(--halo); }
.cta-band__phone-body { display: flex; flex-direction: column; line-height: 1.2; }
.cta-band__phone-num { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.cta-band__phone-note { margin-top: 3px; color: var(--muted); font-size: 13px; }

/* текстовые страницы: текст на всю ширину и правая колонка */
.page-layout { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 992px) { .page-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.page-aside { display: grid; gap: var(--gap); }
@media (min-width: 992px) { .page-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.aside-card { padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-card); }
.aside-card--help { display: flex; flex-direction: column; align-items: flex-start; }
.aside-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); font-size: 20px; }
.aside-card__title { margin-top: 18px; font-size: 20px; font-weight: 600; letter-spacing: var(--track-head); }
.aside-card__text { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.aside-card__phone { margin-top: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.aside-card__phone:hover { color: var(--accent); }
.aside-card__btn { margin-top: 16px; }
.aside-nav { display: flex; flex-direction: column; padding: 16px 12px; }
.aside-nav__title { padding: 4px 12px 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.aside-nav__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; font-size: 15px; font-weight: 500; letter-spacing: var(--track-ui); }
.aside-nav__link .ic { color: var(--muted); font-size: 14px; }
.aside-nav__link:hover { background: var(--mist); color: var(--ink); }
.aside-nav__link.is-current { background: var(--ink); color: #fff; }
.aside-nav__link.is-current .ic { color: #fff; }

/* ================================================================= ОКНА, ЛАЙТБОКС, УВЕДОМЛЕНИЯ */
/* окна main.js: .modal с атрибутом hidden (Bootstrap прячет .modal по умолчанию, здесь показываем, пока hidden нет) */
.modal { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; width: auto; height: auto; padding: 16px; overflow-y: auto; background: rgba(20, 18, 17, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s; }
.modal[hidden] { display: none !important; }
.modal__box { position: relative; width: 100%; max-width: 460px; margin: auto; padding: 32px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-float); animation: pop .25s var(--ease); }
.modal--wide .modal__box { max-width: 1120px; padding: 24px; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; font-size: 15px; }
.modal__title { margin-top: 16px; padding-right: 40px; font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: var(--track-head); }
.modal--wide .modal__title { margin: 0 0 16px; font-size: 24px; }
.modal__title a:hover { color: var(--accent); }
.modal__text { margin-top: 8px; color: var(--muted); font-size: 15px; }
.modal__product { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--mist); font-size: 15px; font-weight: 500; line-height: 1.35; }
.modal__product:empty { display: none; }
.modal .product { margin-top: 0; }
.modal .product__summary, .modal .buy__title, .modal .buy__service, .modal .messengers { display: none; }
.modal .buy { position: static; box-shadow: none; padding: 8px 4px; }
.modal .gallery { box-shadow: none; padding: 0; }
@media (min-width: 992px) { .modal .product { grid-template-areas: "media side"; grid-template-rows: auto; } }
@media (max-width: 575.98px) { .modal__box { padding: 24px 20px; border-radius: 24px; } .modal__title { font-size: 24px; } }

/* лайтбокс main.js: .modal.lightbox с кнопками и картинкой. Знаки ‹ › × из main.js спрятаны (font-size: 0),
   вместо них значки-маски. На телефоне кнопки меньше и полупрозрачные, фото листается свайпом (market.js) */
.modal.lightbox { z-index: 1080; background: rgba(12, 11, 10, .88); }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; border-radius: 20px; background: #fff; box-shadow: var(--sh-float); }
.lightbox .modal__close, .lightbox__nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 0; line-height: 0; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.lightbox .modal__close::before, .lightbox__nav::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.lightbox .modal__close { top: 16px; right: 16px; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.lightbox__nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; box-shadow: var(--sh-float); }
.lightbox__nav:hover { transform: scale(1.06); }
.lightbox__nav--prev { left: 16px; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6l6 6'/%3E%3C/svg%3E"); }
.lightbox__nav--next { right: 16px; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6l-6 6'/%3E%3C/svg%3E"); }
@media (max-width: 991.98px) {
  .lightbox .modal__close, .lightbox__nav { width: 40px; height: 40px; color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .lightbox .modal__close::before, .lightbox__nav::before { width: 18px; height: 18px; }
  .lightbox .modal__close { top: 12px; right: 12px; background: rgba(255, 255, 255, .16); }
  .lightbox__nav { margin-top: -20px; background: rgba(20, 18, 17, .36); }
  .lightbox__nav:hover { transform: none; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* уведомления: main.js (.toast для избранного и сравнения) и miniShop3 через market.js (.toast--ms3) */
.toast, .toast:not(.show) {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font: 500 15px/1.3 var(--font);
  letter-spacing: var(--track-ui);
  box-shadow: var(--sh-float);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .3s;
}
.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.toast--ms3 { padding: 8px 8px 8px 22px; }
.toast--ms3:not(:has(.toast__link)) { padding-right: 22px; }
.toast.is-error { background: var(--danger); }
.toast__link { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-pill); background: var(--accent); color: #fff; white-space: nowrap; }
.toast__link:hover { background: var(--accent-deep); color: #fff; }
@media (max-width: 991.98px) { .toast, .toast:not(.show) { bottom: calc(86px + env(safe-area-inset-bottom)); } }
.iziToast-wrapper { display: none !important; }

/* ================================================================= ПОДВАЛ */
.footer { padding: var(--section) 0 12px; }
.footer__card { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-card); background: var(--slate); color: rgba(255, 255, 255, .7); }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__about { max-width: 26em; margin-top: 16px; font-size: 15px; line-height: 1.5; letter-spacing: var(--track-ui); }
.footer__call { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) { .footer__call { align-items: flex-end; text-align: right; } }
.footer__phone { color: #fff; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -0.045em; white-space: nowrap; }
.footer__phone:hover { color: var(--accent-wash); }
.footer__note { margin-top: 6px; color: rgba(255, 255, 255, .5); font-size: 13px; }
.footer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.footer .messengers__link { background: rgba(255, 255, 255, .08); }
.footer .messengers__link:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }
.footer__cols.row { --bs-gutter-x: 24px; --bs-gutter-y: 28px; padding: 32px 0; }
.footer__title { margin-bottom: 14px; color: rgba(255, 255, 255, .45); font-size: 13px; font-weight: 500; letter-spacing: var(--track-ui); }
.footer__list li + li { margin-top: 8px; }
.footer__list--cats { columns: 2; column-gap: 24px; }
.footer__list--cats li { margin: 0 !important; padding-bottom: 8px; break-inside: avoid; line-height: 1.3; }
.footer__link { color: #fff; font-size: 15px; letter-spacing: var(--track-ui); }
.footer__link:hover { color: var(--accent-wash); }
.footer__list--contacts li { display: flex; flex-direction: column; }
.footer__list--contacts li + li { margin-top: 12px; }
.footer__list--contacts span { color: rgba(255, 255, 255, .5); font-size: 13px; }
.footer__list--contacts .footer__addr { color: #fff; font-size: 15px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); font-size: 13px; letter-spacing: var(--track-ui); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-link:hover { color: #fff; }
@media (max-width: 575.98px) { .footer { padding-bottom: 8px; } .footer__card { border-radius: 24px; } .footer__list--cats { font-size: 14px; } }

/* ================================================================= КНОПКА "НАВЕРХ" на компьютере (market.js показывает после первого экрана) */
.totop { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1015; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: var(--sh-float), 0 0 0 1px rgba(0, 0, 0, .03); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); transition: transform .3s var(--ease), opacity .3s, visibility .3s, background-color .2s, color .2s; }
.totop:not(.is-shown) { visibility: hidden; opacity: 0; transform: translateY(16px); }
.totop:hover { background: var(--ink); color: #fff; }
/* на телефоне и планшете снизу панель вкладок, а справа кнопки "в корзину" на карточках: кнопку не показываем */
@media (max-width: 991.98px), print { .totop { display: none; } }

/* ================================================================= НИЖНЯЯ ПАНЕЛЬ ВКЛАДОК (телефон, планшет) */
.tabbar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 1020; transition: transform .4s var(--ease), visibility .4s; }
.js .tabbar:not(.is-shown) { visibility: hidden; transform: translateY(calc(100% + 24px)); }
.tabbar__in { display: flex; justify-content: space-around; max-width: 560px; margin: 0 auto; padding: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); box-shadow: var(--sh-float), 0 0 0 1px rgba(0, 0, 0, .03); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); }
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; gap: 2px; height: 52px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background-color .2s; }
.tabbar__item:hover { color: var(--ink); }
.tabbar__item.is-current { background: var(--mist); color: var(--ink); }
.tabbar__icon { position: relative; display: grid; place-items: center; font-size: 20px; }
.tabbar__label { overflow: hidden; max-width: 100%; font-size: 11px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.tabbar__badge { position: absolute; top: -5px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font: 600 10px/18px var(--font); letter-spacing: 0; text-align: center; box-shadow: 0 0 0 2px #fff; }
.tabbar__badge--accent { background: var(--accent); }
@media (max-width: 991.98px) {
  body:not(.page--product) .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
