/* provod-ok.com — современный сайт, готовый к переносу в Bitrix */
:root {
  --color-primary: #C92434;
  --color-primary-dark: #B81D2C;
  --color-primary-light: #e8a0ad;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-border: #e0e0e0;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --radius: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --border-card: 1px solid rgba(0,0,0,0.06);
  /* Брейкпоинты: ПК (по умолчанию), планшет 1024/768, телефон 480 */
  --bp-tablet: 1024px;
  --bp-mobile: 768px;
  --bp-phone: 480px;
  /* Safe area для вырезов/островков (iPhone и др.) */
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
  /* Футер — современный тёмный стиль */
  --footer-bg: #16171a;
  --footer-bg-top: #1c1d21;
  --footer-text: rgba(255, 255, 255, 0.88);
  --footer-text-muted: rgba(255, 255, 255, 0.62);
  --footer-border: rgba(255, 255, 255, 0.06);
  --footer-accent-glow: rgba(201, 36, 52, 0.35);
  /* Плавная адаптация под любой размер окна на ПК */
  --padding-container: clamp(12px, 2.5vw, 24px);
  --padding-section: clamp(32px, 4vw, 48px);
  --gap-fluid: clamp(12px, 1.5vw, 24px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px; /* Фиксированный базовый размер — стили Битрикс (корзина и др.) не уменьшают шаблон */
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px !important; /* Не даём компонентам Битрикс уменьшать текст на странице */
  line-height: 1.5;
  color: var(--color-text);
  /* Современный фон: мягкий градиент с лёгким акцентом бренда */
  background-color: #f4f5f7;
  background-image:
    linear-gradient(135deg, rgba(201, 36, 52, 0.05) 0%, transparent 55%),
    linear-gradient(315deg, rgba(201, 36, 52, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 35%, #eef0f3 100%);
  background-attachment: fixed;
  /* Учёт вырезов экрана на мобильных */
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}

/* Единая ширина и размер текста: обёртка Битрикс не сужает и не уменьшает шаблон */
#workarea {
  max-width: none;
  width: 100%;
  font-size: 1rem; /* Как в шаблоне, не меньше */
}

/* Все внутренние страницы (корзина, избранное, доставка, контакты и т.д.) — одна ширина и размер текста */
.page-inner {
  font-size: 1rem; /* Размер как на остальных страницах, не уменьшается при открытии корзины */
}
.page-inner .container {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 var(--padding-container);
  width: 100%;
}

main {
  background: transparent;
  width: 100%;
}

/* Контент страниц растянут по ширине красной полосы навбара (без боковых отступов у контейнера) */
main .container {
  padding-left: 0;
  padding-right: 0;
}

main .container > * {
  padding-left: var(--padding-container);
  padding-right: var(--padding-container);
}

main .home-features .container,
main .home-about .container {
  padding-left: 0;
  padding-right: 0;
}

/* ========================================
   HEADER — Современная двухуровневая шапка
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding-top: var(--safe-top);
}

/* === Верхняя строка === */
.header-top {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-top__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  min-height: 76px;
}

/* Логотип — как в референсе: двойная рамка (красная внутренняя, серая внешняя) */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
}

/* Логотип-картинка: без дополнительных рамок (рамки уже в изображении) */
.site-logo:has(.site-logo__img) {
  padding: 0;
  background: transparent;
}

.site-logo__img,
.site-logo svg {
  display: block;
  max-height: 72px;
  width: auto;
  height: auto;
  min-height: 48px;
  object-fit: contain;
  vertical-align: middle;
}

/* Текстовый вариант логотипа (fallback, если нет изображения) */
.site-logo__text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo__accent {
  color: var(--color-primary);
}

.site-logo:has(.site-logo__img) .site-logo__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Поиск */
.header-search {
  flex: 1;
  max-width: 540px;
  display: flex;
  position: relative;
}

.header-search__input {
  width: 100%;
  padding: 10px 48px 10px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.header-search__input::placeholder {
  color: var(--color-text-muted);
}

.header-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 36, 52, 0.1);
}

.header-search__btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.header-search__btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Контакты */
.header-top__contacts {
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone__tel {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s;
}

.header-phone__tel:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.header-phone__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 36, 52, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.header-phone__tel:hover .header-phone__icon {
  background: var(--color-primary);
  color: #fff;
}

.header-phone__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-phone__number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.header-phone__tel:hover .header-phone__number {
  color: var(--color-primary);
}

.header-phone__callback {
  font-size: 0.8125rem;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone__callback:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
  border-bottom-color: var(--color-primary-dark);
}

/* Действия: кабинет, избранное, корзина — блок сдвинут вправо на мобильных */
.header-top__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-text);
  background: transparent;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  position: relative;
  min-width: 64px;
  box-sizing: border-box;
}

.header-action:hover {
  background: rgba(201, 36, 52, 0.08);
  color: var(--color-primary);
  text-decoration: none;
}

/* Избранное и корзина — без фона по умолчанию, как «Войти» */
.header-action--wishlist,
.header-action--cart {
  background: transparent;
}

.header-action__icon {
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.header-action__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.header-action__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action__label {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-action__text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.header-action__sublabel {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* Корзина — подпись красная, размер как у остальных иконок */
.header-action--cart .header-action__label {
  color: var(--color-primary);
}

/* Авторизованный пользователь: акцент на «Личный кабинет» */
.header-action--profile .header-action__icon,
.header-action--profile .header-action__label {
  color: var(--color-primary);
}
.header-action--profile:hover .header-action__icon,
.header-action--profile:hover .header-action__label {
  color: var(--color-primary-dark);
}

.header-action--cart:hover {
  background: rgba(201, 36, 52, 0.08);
  color: var(--color-primary);
}

/* Бургер для мобильных */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.header-burger:hover {
  background: rgba(201, 36, 52, 0.1);
}

.header-burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.header-burger[aria-expanded="true"] .header-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger[aria-expanded="true"] .header-burger__line:nth-child(2) {
  opacity: 0;
}

.header-burger[aria-expanded="true"] .header-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Нижняя строка — навигация (красная «таблетка», растянута по шаблону) === */
.header-nav {
  background: var(--color-bg);
  padding: 12px 0;
}

.header-nav .container {
  display: flex;
  justify-content: stretch;
  background: #c92434;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 36, 52, 0.25);
}

.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--padding-container);
  gap: 8px;
}

/* Меню навигации */
.header-menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 52px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.header-menu__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.header-menu__link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* === Мобильное меню === */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 16px;
  z-index: 50;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__search {
  margin-bottom: 16px;
}

.mobile-menu__search form {
  display: flex;
  gap: 8px;
}

.mobile-menu__search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.mobile-menu__search button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__nav a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__nav a:last-child {
  border-bottom: none;
}

.mobile-menu__nav a:hover {
  background: rgba(201, 36, 52, 0.08);
  color: var(--color-primary);
}

.mobile-menu__catalog {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: var(--radius);
  margin-bottom: 8px;
  border: none !important;
}

.mobile-menu__contacts {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.mobile-menu__phone {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* === Адаптивность шапки === */
@media (max-width: 1200px) {
  .header-top__inner {
    gap: 16px;
  }

  .header-search {
    max-width: 400px;
  }

  .header-action {
    padding: 8px;
    min-width: 52px;
  }

  .header-action__label {
    display: none;
  }

  .header-action--cart .header-action__label {
    display: block;
  }

  .header-menu__link {
    padding: 0 16px;
  }
}

@media (max-width: 1024px) {
  .header-phone__info {
    display: none;
  }

  .header-phone__icon {
    width: 44px;
    height: 44px;
  }

  .header-search {
    max-width: 320px;
  }

  .header-catalog-btn {
    padding: 0 16px;
  }

  .header-menu__link {
    padding: 0 12px;
    font-size: 0.875rem;
  }
}

@media (max-width: 900px) {
  .header-top__inner {
    gap: 12px;
  }

  .header-search {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  .site-logo__text {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .header-top__inner {
    padding: 12px 0;
    min-height: 60px;
  }

  .header-top__contacts {
    display: none;
  }

  .header-action {
    padding: 6px;
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .site-logo__text {
    font-size: 1.1rem;
  }

  .header-action--cart .header-action__label {
    display: none;
  }
}

/* Старые классы для совместимости */
.cart-count {
  /* badge теперь в .header-action__badge */
}

/* Hero */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.hero__title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
}

.hero__subtitle {
  margin: 0 0 24px;
  font-size: 1.125rem;
  opacity: 0.95;
}

/* Hero главной — светлый баннер, без полос по бокам */
.hero--home {
  position: relative;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--color-text);
  /* Вертикальная прокрутка не блокируется; свайп влево/вправо — в JS */
  touch-action: pan-y;
}

/* Обёртка героя: в границах контента, карточный вид (гориз. padding 0 — растянуто по полосе) */
.hero--home .hero__frame {
  position: relative;
  width: 100%;
  max-width: min(var(--container), 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 0 clamp(44px, 5vw, 56px);
  min-height: clamp(320px, 40vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: #fff;
  border: var(--border-card);
  overflow: hidden;
}

/* Современный фон героя: градиенты + мягкое свечение */
.hero--home .hero__bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(201, 36, 52, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(201, 36, 52, 0.04) 0%, transparent 45%),
    linear-gradient(160deg, rgba(248,249,250,0.95) 0%, #fff 30%, #fafbfc 100%);
}

.hero--home .hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

/* Слайды героя — одна высота, плавный переход */
.hero__slides {
  position: relative;
  width: 100%;
  height: clamp(260px, 32vw, 340px);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* Герой: планшет */
@media (max-width: 1024px) {
  .hero--home .hero__frame {
    padding: 56px 0 48px;
    min-height: 380px;
  }
  .hero__slides {
    height: 320px;
  }
  .hero--home .hero__title {
    font-size: 2rem;
  }
}

/* Герой: планшет портрет и телефон */
@media (max-width: 768px) {
  .hero--home .hero__frame {
    padding: 40px 0 56px;
    min-height: 340px;
  }
  .hero__slides {
    height: 280px;
  }
  .hero--home .hero__title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  .hero--home .hero__subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero--home .hero__btn {
    margin-bottom: 24px;
  }
  .hero--home .hero__dots {
    display: none;
  }
}

/* Герой: телефон */
@media (max-width: 480px) {
  .hero--home .hero__frame {
    padding: 28px 12px 52px;
    min-height: 300px;
  }
  .hero__slides {
    height: 240px;
  }
  .hero--home .hero__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .hero--home .hero__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 18px;
  }
  .hero--home .hero__btn {
    padding: 12px 20px;
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }
  .hero--home .hero__dots {
    display: none;
  }
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero--home .hero__content {
  max-width: 520px;
}

.hero--home .hero__title {
  font-size: clamp(1.5rem, 2rem + 0.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero--home .hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
  max-width: 420px;
}

.hero--home .hero__btn {
  display: inline-block;
}

.hero--home .hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero__dot:hover {
  background: rgba(0,0,0,0.25);
  transform: scale(1.1);
}

.hero__dot.is-active {
  background: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(201, 36, 52, 0.25);
}

/* Мобильная версия: точки слайдера скрыты, только свайп */
@media (max-width: 900px) {
  .hero--home .hero__dots {
    display: none !important;
  }
}

/* Баннерный слайд (логотип + товар, для Bitrix) — под одну высоту с остальными */
.hero__slide--banner .hero__banner {
  display: grid;
  grid-template-columns: 42% 1fr;
  height: 100%;
  min-height: 340px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.hero__banner-diagonal {
  position: absolute;
  top: -50%;
  left: 38%;
  width: 120%;
  height: 200%;
  background: var(--color-primary);
  transform: rotate(-12deg);
  z-index: 0;
  pointer-events: none;
}

.hero__banner-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  background: var(--color-bg-alt);
}

.hero__banner-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1;
}

.hero__banner-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  max-width: 240px;
}

.hero__banner-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.hero__banner-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
}

.hero__banner-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__banner-badge {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 12px rgba(201, 36, 52, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hero__banner:hover .hero__banner-badge {
  box-shadow: 0 4px 16px rgba(201, 36, 52, 0.4);
}

@media (max-width: 900px) {
  .hero__slide--banner .hero__banner {
    grid-template-columns: 1fr;
    min-height: 320px;
  }
  .hero__banner-diagonal {
    left: -20%;
    top: 30%;
    height: 80%;
  }
  .hero__banner-left {
    padding: 32px 24px;
  }
  .hero__banner-logo {
    font-size: 2.25rem;
  }
  .hero__banner-right {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .hero__slide--banner .hero__banner {
    min-height: 280px;
  }
  .hero__banner-left {
    padding: 24px 20px;
  }
  .hero__banner-logo {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  .hero__banner-tagline {
    font-size: 1rem;
  }
  .hero__banner-right {
    min-height: 160px;
    padding: 24px;
  }
  .hero__banner-badge {
    top: 16px;
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero__slide--banner .hero__banner {
    min-height: 240px;
  }
  .hero__banner-left {
    padding: 20px 16px;
  }
  .hero__banner-logo {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  .hero__banner-tagline {
    font-size: 0.9375rem;
  }
  .hero__banner-right {
    min-height: 140px;
    padding: 16px;
  }
  .hero__banner-badge {
    top: 12px;
    padding: 6px 14px;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
}

/* Категории на главной — в одной карточке с героем, плавные отступы */
.home-categories__wrap {
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 2.5vw, 28px);
  background: #fff;
  border-radius: var(--radius-card);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.home-categories__wrap:hover {
  box-shadow: var(--shadow-hover);
}

.home-categories__title {
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  font-size: clamp(1.25rem, 1.35rem + 0.3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.3;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: var(--gap-fluid);
}

.home-category {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 4px 12px rgba(201, 36, 52, 0.08);
}

.home-category:hover .home-category__label {
  background: var(--color-primary-dark);
}

.home-category__img {
  display: block;
  position: absolute;
  inset: 0;
  background: #f0f2f5;
}

.home-category__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.home-category:hover .home-category__img img {
  transform: scale(1.05);
}

.home-category__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  transition: background 0.25s ease, padding 0.2s ease;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.home-category:hover .home-category__label {
  padding-bottom: 18px;
}

/* Категории: планшет — 2 колонки */
@media (max-width: 1024px) {
  .home-categories-grid {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .home-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Категории и карточки секций: телефон */
@media (max-width: 768px) {
  .home-categories__wrap {
    padding: 32px 20px;
  }
  .home-categories__title {
    font-size: 1.375rem;
    margin-bottom: 24px;
  }
  .home-features .container,
  .home-about .container {
    padding: 40px 20px;
  }
  .home-features-grid {
    gap: 24px;
  }
  .home-feature__icon {
    width: 56px;
    height: 56px;
  }
  .home-feature__icon svg {
    width: 28px;
    height: 28px;
  }
  .home-feature__text {
    font-size: 0.9375rem;
  }
  .home-about__logo-wrap {
    padding: 32px 24px;
    min-height: 160px;
  }
  .home-about__logo {
    font-size: 1.5rem;
  }
  .home-about__content p {
    font-size: 0.9375rem;
  }
}

@media (max-width: 560px) {
  .home-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-categories__wrap {
    padding: 24px 16px;
  }
  .home-categories__title {
    margin-bottom: 20px;
    font-size: 1.25rem;
  }
  .home-category__label {
    padding: 12px 14px;
    font-size: 0.875rem;
  }
  .home-features .container,
  .home-about .container {
    padding: 28px 16px;
  }
  .home-features-grid {
    gap: 20px;
  }
  .home-about__grid {
    gap: 28px;
  }
  .home-about__logo-wrap {
    padding: 28px 20px;
    min-height: 140px;
  }
  .home-about__logo {
    font-size: 1.35rem;
  }
  .section__title {
    font-size: 1.375rem;
  }
}

/* Преимущества на главной — в карточке как герой и категории */
.home-features .container {
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  transition: box-shadow 0.3s ease;
}

.home-features .container:hover {
  box-shadow: var(--shadow-hover);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

.home-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 12px 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-feature:hover {
  background: rgba(201, 36, 52, 0.04);
  transform: translateY(-2px);
}

.home-feature__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(201, 36, 52, 0.08);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-feature:hover .home-feature__icon {
  background: rgba(201, 36, 52, 0.14);
}

.home-feature__icon svg {
  width: 32px;
  height: 32px;
}

.home-feature__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 500px) {
  .home-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* О компании на главной — в той же карточке */
.home-about .container {
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  transition: box-shadow 0.3s ease;
}

.home-about .container:hover {
  box-shadow: var(--shadow-hover);
}

.home-about__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.home-about__logo-wrap {
  padding: 40px 32px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  min-height: 200px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 8px rgba(201, 36, 52, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-about__logo-wrap:hover {
  border-color: var(--color-primary-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 16px rgba(201, 36, 52, 0.12);
}

.home-about__logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.home-about__logo-o {
  color: var(--color-primary);
}

.home-about__content .section__title {
  margin-bottom: 16px;
}

.home-about__content p {
  margin: 0 0 24px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 560px;
}

@media (max-width: 900px) {
  .home-about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-about__logo-wrap {
    min-height: 160px;
    padding: 32px 24px;
  }
  .home-about__logo {
    font-size: 1.5rem;
  }
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: var(--color-primary-dark);
}

.btn--primary {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(201, 36, 52, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn--primary:hover {
  background: linear-gradient(180deg, #d42838 0%, var(--color-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201, 36, 52, 0.4);
  transform: translateY(-1px);
}

/* Sections — единый стиль карточек на главной, плавные отступы под любой размер */
.section {
  padding: var(--padding-section) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

/* На главной преимущества в белой карточке, без серого фона */
.section--alt.home-features {
  background: transparent;
}

/* Карточка контента: герой, категории, преимущества, о компании */
.section-card {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  box-sizing: border-box;
}

.section__title {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(1.25rem, 1.35rem + 0.3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.3;
}

.section__cta {
  margin: 32px 0 0;
}

/* Бренды на странице «О компании» */
.brands-title {
  margin: 40px 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.brand-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.brand-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand-card__logo::before {
  content: attr(data-initial);
}

/* Если внутри логотипа добавлено изображение — показываем его вместо буквы */
.brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-card__logo:has(img)::before {
  display: none;
}

.brand-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .brands-grid {
    gap: 16px;
  }
  .brands-title {
    font-size: 1.125rem;
    margin: 32px 0 16px;
  }
}

@media (max-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .brand-card {
    padding: 16px 12px;
  }
  .brand-card__logo {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
  }
}

/* Category grid (main page) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.categories-grid--with-img {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* Карточка категории с картинкой */
.category-card--with-img {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.category-card--with-img .category-card__img-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

.category-card--with-img .category-card__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-card--with-img:hover .category-card__img-wrap img {
  transform: scale(1.05);
}

.category-card--with-img .category-card__body {
  display: block;
  padding: 20px;
  flex: 1;
}

.category-card--with-img h3 {
  margin: 0 0 8px;
}

.category-card--with-img p {
  margin: 0;
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
  text-decoration: none;
  color: inherit;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: var(--color-primary);
  font-weight: 700;
}

.category-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Product grid (catalog) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.product-card {
  background: #f2f3f5;
  border: 1px solid #d8bcc3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: #cca5ae;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
}

.product-card a {
  color: inherit;
}

.product-card a:hover {
  text-decoration: none;
}

.product-card > a:first-child {
  display: block;
  background: #fff;
  overflow: hidden;
  padding: 10px;
}

.product-card__img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
  display: block;
  background: #fff;
  border-radius: 4px;
  image-rendering: auto;
  filter: none;
}

.product-card__img--placeholder {
  min-height: 120px;
  background: #fff;
}

.product-card__body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.product-card__body:has(button) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.product-card__qty {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__qty-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.product-card__qty-controls {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.product-card__qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-card__qty-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.product-card__qty-input {
  width: 48px;
  height: 36px;
  padding: 0 6px;
  border: none;
  border-left: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 600;
  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;
}

.catalog-intro {
  margin: 0 0 28px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 72ch;
}

.catalog-breadcrumbs {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.catalog-breadcrumbs__link {
  color: var(--color-text-muted);
  text-decoration: none;
}

.catalog-breadcrumbs__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.catalog-breadcrumbs__sep {
  margin: 0 8px;
  color: #b1b6c2;
}

.catalog-breadcrumbs__current {
  color: var(--color-text);
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.catalog-block {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.catalog-block:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 35, 35, 0.25);
}

.catalog-block__inner {
  display: flex;
  gap: 20px;
  padding: 20px;
  min-height: 120px;
  align-items: flex-start;
}

@media (max-width: 480px) {
  .catalog-block__inner {
    padding: 16px;
    gap: 16px;
    min-height: 100px;
  }
}

.catalog-block__thumb {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.catalog-block__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 480px) {
  .catalog-block__thumb {
    width: 80px;
    height: 80px;
  }
  .catalog-block__thumb img {
    width: 100%;
    height: 100%;
  }
}

.catalog-block__content {
  flex: 1;
  min-width: 0;
}

.catalog-block__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.catalog-block__title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.catalog-block__title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.catalog-block__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.catalog-block__list li {
  margin: 0 0 4px;
}

.catalog-block__list li:last-child {
  margin-bottom: 0;
}

.catalog-block__list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.catalog-block__list a:hover {
  color: var(--color-primary);
}

.category-back {
  margin: 0 0 20px;
  font-size: 0.9375rem;
}

.category-back a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.category-back a:hover {
  color: var(--color-primary);
}

.category-empty {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.catalog-empty {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.catalog-products-title {
  margin: 40px 0 20px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  scroll-margin-top: 1rem;
}

#cat-boxes,
#cat-combs {
  scroll-margin-top: 1rem;
}

.catalog-categories {
  margin-top: 32px;
}

.catalog-categories:first-of-type {
  margin-top: 24px;
}

.catalog-category__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.product-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.84em;
}

.product-card__price {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid #d7dbe3;
  font-weight: 800;
  color: #0f2748;
  font-size: 2.25rem;
  line-height: 1.02;
}

.product-card__category {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #666);
}
.product-card__category a {
  color: inherit;
  text-decoration: none;
}
.product-card__category a:hover {
  text-decoration: underline;
}

.product-card__status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.product-card__status--in {
  color: #1f8a4c;
}

.product-card__status--out {
  color: #b43b3b;
}

.product-card__actions {
  margin: 8px 0 0;
}

.product-card__actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
}

/* Catalog (bitrix:catalog default output) */
.catalog-page .bx_sitemap {
  margin: 0 0 32px;
}

.catalog-page .bx_sitemap_ul,
.catalog-page .bx_sitemap_ul ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-page .bx_sitemap_ul > li > .bx_sitemap_li_title {
  margin: 0 0 14px;
}

.catalog-page .bx_sitemap_ul > li > .bx_sitemap_li_title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.catalog-page .bx_sitemap_ul > li > .bx_sitemap_li_title span {
  color: var(--color-text-muted);
  font-size: 0.875em;
}

.catalog-page .bx_sitemap_ul > li > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.catalog-page .bx_sitemap_ul > li > ul > li {
  margin: 0;
}

.catalog-page .bx_sitemap_ul > li > ul > li .bx_sitemap_li_title {
  margin: 0;
}

.catalog-page .bx_sitemap_ul > li > ul > li .bx_sitemap_li_title a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-page .bx_sitemap_ul > li > ul > li .bx_sitemap_li_title a:hover {
  border-color: rgba(201, 36, 52, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.catalog-page .bx_sitemap_ul > li > ul > li .bx_sitemap_li_title span {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.catalog-page .catalog-top {
  margin-top: 12px;
}

.catalog-page .catalog-top .row[data-entity="items-row"] {
  margin: 0 -10px 14px;
}

.catalog-page .catalog-top .product-item-big-card {
  margin-bottom: 16px;
  padding-left: 10px;
  padding-right: 10px;
}

.catalog-page .catalog-top .product-item {
  height: 100%;
  border: 1px solid #e4e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-page .catalog-top .product-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.catalog-page .catalog-top .product-item-image-wrapper {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #f2f5fa 100%);
  padding: 12px;
}

.catalog-page .catalog-top .product-item-title a {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.catalog-page .catalog-top .product-item-title a:hover {
  color: var(--color-primary);
}

.catalog-page .catalog-top .product-item-price-current {
  color: #0f2748;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
}

.catalog-page .catalog-top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 768px) {
  .catalog-page .bx_sitemap_ul > li > ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .catalog-page .bx_sitemap_ul > li > ul {
    grid-template-columns: 1fr;
  }
}

/* Catalog polish: override legacy bitrix grid */
.catalog-page .catalog-top {
  margin-top: 18px;
}

.catalog-page .catalog-top .row[data-entity="items-row"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 18px !important;
}

.catalog-page .catalog-top .col-xs-12.product-item-small-card,
.catalog-page .catalog-top .col-sm-4.product-item-big-card,
.catalog-page .catalog-top .col-md-12 {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.catalog-page .catalog-top .product-item-big-card > .row {
  margin: 0 !important;
}

.catalog-page .catalog-top .product-item-container {
  height: 100%;
}

.catalog-page .catalog-top .product-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-page .catalog-top .product-item-image-wrapper {
  display: block;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.catalog-page .catalog-top .product-item-title {
  margin-bottom: 10px;
}

.catalog-page .catalog-top .product-item-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.catalog-page .catalog-top .product-item-info-container {
  margin-top: auto;
}

.catalog-page .catalog-top .btn.btn-link.btn-md {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
}

.catalog-page .catalog-top .bx-pag-prev,
.catalog-page .catalog-top .bx-pag-next,
.catalog-page .catalog-top .bx-pag-all,
.catalog-page .catalog-top .bx-pag-page {
  font-size: 0.9375rem;
}

.catalog-page .catalog-top .bx-pagination {
  margin-top: 10px;
}

/* Root categories from catalog.section.list */
.catalog-page .catalog-categories .bx_sitemap_title {
  display: none;
}

.catalog-page .catalog-categories .bx_sitemap_ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-page .catalog-categories .bx_sitemap_ul > li {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.catalog-page .catalog-categories .bx_sitemap_li_title {
  margin: 0;
}

.catalog-page .catalog-categories .bx_sitemap_li_title a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-page .catalog-categories .bx_sitemap_li_title a:hover {
  border-color: rgba(201, 36, 52, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.catalog-page .catalog-categories .bx_sitemap_li_title a::before {
  display: none;
}

.catalog-page .catalog-categories .bx_sitemap_li_title span {
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0;
}

/* Catalog section cards - clean grid layout */
.catalog-page .catalog-section {
  margin-top: 12px;
}

.catalog-page .catalog-section .row[data-entity="items-row"] {
  margin: 0 !important;
}

.catalog-page .catalog-section .col-xs-12.product-item-small-card,
.catalog-page .catalog-section .col-md-12 {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.catalog-page .catalog-section .col-xs-12.product-item-small-card > .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
  overflow: visible;
  padding: 0;
}

.catalog-page .catalog-section .col-xs-12.product-item-small-card > .row > .col-xs-6.col-md-3 {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.catalog-page .catalog-section .product-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-page .catalog-section .product-item:hover {
  border-color: rgba(201, 36, 52, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.catalog-page .catalog-section .product-item-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: 10px;
}

.catalog-page .catalog-section .product-item-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-page .catalog-section .product-item-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-text);
  text-decoration: none;
}

.catalog-page .catalog-section .product-item-title {
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden !important;
  scrollbar-width: none;
  margin-bottom: 8px;
}

.catalog-page .catalog-section .product-item-title::-webkit-scrollbar {
  display: none;
}

.catalog-page .catalog-section .product-item-title a:hover {
  color: var(--color-primary);
}

.catalog-page .catalog-section .btn.btn-link.btn-sm {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #f5f6f9;
  color: var(--color-text-muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .catalog-page .catalog-section .col-xs-12.product-item-small-card > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalog-page .catalog-section .col-xs-12.product-item-small-card > .row > .col-xs-6.col-md-3 {
    width: 100% !important;
  }
}

/* Bitrix rows to stable product grid */
.catalog-page .catalog-section[data-entity^="container"] {
  display: block;
}

.catalog-page .catalog-section .row.product-item-list-col-4 {
  margin: 0 0 16px !important;
}

.catalog-page .catalog-section .row.product-item-list-col-4 > .col-xs-12.product-item-small-card {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.catalog-page .catalog-section .row.product-item-list-col-4 > .col-xs-12.product-item-small-card > .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 16px;
  margin: 0 !important;
}

.catalog-page .catalog-section .row.product-item-list-col-4 > .col-xs-12.product-item-small-card > .row::before,
.catalog-page .catalog-section .row.product-item-list-col-4 > .col-xs-12.product-item-small-card > .row::after {
  content: none !important;
  display: none !important;
}

.catalog-page .catalog-section .row.product-item-list-col-4 .col-xs-6.col-md-3 {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.catalog-page .catalog-section .row.product-item-list-col-4 .col-xs-6.col-md-3 .product-item-container {
  width: 100%;
}

/* Product card style aligned with user reference */
.catalog-page .catalog-section .product-item,
.catalog-page .catalog-top .product-item {
  background: #f2f3f5 !important;
  border: 1px solid #d9b9c1 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  padding: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.catalog-page .catalog-section .product-item:hover,
.catalog-page .catalog-top .product-item:hover {
  transform: none !important;
  border-color: #cca5ae !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

.catalog-page .catalog-section .product-item-image-wrapper,
.catalog-page .catalog-top .product-item-image-wrapper {
  background: #fff !important;
  border-radius: 4px !important;
  padding: 8px !important;
  margin-bottom: 6px !important;
}

.catalog-page .catalog-section .product-item-title,
.catalog-page .catalog-top .product-item-title {
  margin: 0 0 8px !important;
}

.catalog-page .catalog-section .product-item-title a,
.catalog-page .catalog-top .product-item-title a {
  font-size: 0.94rem !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
  min-height: 3.9em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.catalog-page .catalog-section .product-item [class*="article"],
.catalog-page .catalog-top .product-item [class*="article"] {
  color: #7f8aa0 !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}

.catalog-page .catalog-section .product-item [class*="favorite"],
.catalog-page .catalog-section .product-item [class*="compare"],
.catalog-page .catalog-section .product-item [class*="delay"],
.catalog-page .catalog-top .product-item [class*="favorite"],
.catalog-page .catalog-top .product-item [class*="compare"],
.catalog-page .catalog-top .product-item [class*="delay"] {
  color: #4b5563 !important;
}

.catalog-page .catalog-section .product-item [class*="amount"],
.catalog-page .catalog-top .product-item [class*="amount"] {
  color: #18a23f !important;
  font-size: 0.97rem !important;
  font-weight: 500 !important;
}

.catalog-page .catalog-section .product-item-info-container.product-item-price-container,
.catalog-page .catalog-top .product-item-info-container.product-item-price-container {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid #d7dbe3 !important;
}

.catalog-page .catalog-section .product-item-price-current,
.catalog-page .catalog-top .product-item-price-current {
  color: #0f2748 !important;
  font-size: 2.25rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.catalog-page .catalog-section .product-item-info-container[data-entity="buttons-block"],
.catalog-page .catalog-top .product-item-info-container[data-entity="buttons-block"] {
  padding-top: 8px !important;
}

.catalog-page .catalog-section .product-item-button-container,
.catalog-page .catalog-top .product-item-button-container {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.catalog-page .catalog-section .product-item [class*="quantity"],
.catalog-page .catalog-top .product-item [class*="quantity"] {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #c6cfdd !important;
  border-radius: 6px !important;
  background: #fff !important;
  overflow: hidden !important;
  min-height: 40px !important;
}

.catalog-page .catalog-section .product-item [class*="quantity"] a,
.catalog-page .catalog-section .product-item [class*="quantity"] button,
.catalog-page .catalog-top .product-item [class*="quantity"] a,
.catalog-page .catalog-top .product-item [class*="quantity"] button {
  width: 28px !important;
  min-width: 28px !important;
  height: 40px !important;
  border: 0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  padding: 0 !important;
}

.catalog-page .catalog-section .product-item [class*="quantity"] input,
.catalog-page .catalog-top .product-item [class*="quantity"] input {
  width: 42px !important;
  height: 40px !important;
  border: 0 !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  text-align: center !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
}

.catalog-page .catalog-section .btn.btn-link.btn-sm,
.catalog-page .catalog-top .btn.btn-link.btn-md,
.catalog-page .catalog-section .product-item .btn.btn-primary,
.catalog-page .catalog-top .product-item .btn.btn-primary {
  min-height: 40px !important;
  border-radius: 6px !important;
  background: #0f2748 !important;
  border: 1px solid #0f2748 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-shadow: none !important;
}

.catalog-page .catalog-section .product-item [class*="old"],
.catalog-page .catalog-top .product-item [class*="old"] {
  color: #8791a3 !important;
  text-decoration: line-through !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
}

.catalog-page .catalog-section .product-item-image-wrapper {
  min-height: 160px;
}

.catalog-page .catalog-section .product-item-image-original,
.catalog-page .catalog-section .product-item-image-alternative {
  left: 10px !important;
  top: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  width: auto !important;
  height: auto !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: contrast(1.06) saturate(1.06) !important;
  opacity: 1 !important;
  transform: none !important;
  image-rendering: auto !important;
}

.catalog-page .catalog-section .product-item-image-alternative,
.catalog-page .catalog-top .product-item-image-alternative {
  display: none !important;
}

.catalog-page .catalog-section .product-item-image-slider-control-container,
.catalog-page .catalog-top .product-item-image-slider-control-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 6px !important;
}

.catalog-page .catalog-section .product-item-image-slider-control,
.catalog-page .catalog-top .product-item-image-slider-control {
  width: 8px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #cfd6e2 !important;
}

.catalog-page .catalog-section .product-item-image-slider-control.active,
.catalog-page .catalog-top .product-item-image-slider-control.active {
  width: 18px !important;
  background: #f57a21 !important;
}

@media (max-width: 900px) {
  .catalog-page .catalog-section .row.product-item-list-col-4 > .col-xs-12.product-item-small-card > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-page .catalog-section .row.product-item-list-col-4 .col-xs-6.col-md-3 {
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 560px) {
  .catalog-page .catalog-section .row.product-item-list-col-4 > .col-xs-12.product-item-small-card > .row {
    grid-template-columns: 1fr;
  }
  .catalog-page .catalog-section .row.product-item-list-col-4 .col-xs-6.col-md-3 {
    width: auto !important;
    max-width: none !important;
  }
}

/* Catalog pagination (legacy Bitrix markup) */
.catalog-page .catalog-pager {
  margin-top: 30px;
}

.catalog-page div[data-pagination-num] {
  margin-top: 0;
  padding: 18px 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  backdrop-filter: blur(14px);
}

.catalog-page div[data-pagination-num] font.text {
  display: block;
  font-family: inherit;
  color: #7c8596;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.catalog-page div[data-pagination-num] font.text:first-of-type {
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
}

.catalog-page div[data-pagination-num] font.text:last-of-type {
  margin-top: 12px;
  font-size: 0.95rem;
}

.catalog-page .catalog-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.catalog-page div[data-pagination-num] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  color: #243041;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.catalog-page div[data-pagination-num] a:hover {
  border-color: rgba(201, 36, 52, 0.34);
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 12px 26px rgba(201, 36, 52, 0.12);
  transform: translateY(-1px);
}

.catalog-page div[data-pagination-num] b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  margin: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #df3d4d 0%, var(--color-primary) 55%, #a91827 100%);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(201, 36, 52, 0.28);
}

.catalog-page div[data-pagination-num] a.catalog-pagination__nav {
  min-width: 0;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(244, 246, 249, 0.96);
}

.catalog-page div[data-pagination-num] b.catalog-pagination__current {
  min-width: 44px;
}

.catalog-page .catalog-pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 42px;
  color: #9aa3b2;
  font-weight: 700;
}

@media (max-width: 768px) {
  .catalog-page div[data-pagination-num] {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .catalog-page div[data-pagination-num] a,
  .catalog-page div[data-pagination-num] b {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .catalog-page div[data-pagination-num] a.catalog-pagination__nav {
    padding: 0 14px;
  }
}

@media (max-width: 560px) {
  .catalog-page div[data-pagination-num] {
    padding: 14px 12px;
  }

  .catalog-page div[data-pagination-num] font.text:first-of-type {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .catalog-page .catalog-pagination__controls {
    gap: 6px;
  }

  .catalog-page div[data-pagination-num] a.catalog-pagination__nav {
    min-width: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }
}

/* Product detail page */
.catalog-page .bx-catalog-element.bx-blue {
  margin-top: 14px;
  padding: 22px 22px 24px;
  border: 1px solid #dbe3ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.catalog-page .bx-catalog-element > .container-fluid {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(280px, 1fr);
  column-gap: 34px;
  row-gap: 18px;
  align-items: start;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:first-of-type {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  margin-right: 0;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:first-of-type > [class*="col-"] {
  width: 100%;
  float: none;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element .bx-title {
  margin: 0 0 14px;
  max-width: 100%;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.catalog-page .bx-catalog-element .product-item-detail-slider-container,
.catalog-page .bx-catalog-element .product-item-detail-tabs-container,
.catalog-page .bx-catalog-element .product-item-detail-tab-content {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.catalog-page .bx-catalog-element .product-item-detail-slider-container {
  padding: 0;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-page .bx-catalog-element .product-item-detail-slider-images-container {
  min-height: 0;
  width: min(100%, 500px);
  height: clamp(240px, 30vw, 360px);
  margin: 0 auto 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.catalog-page .bx-catalog-element .product-item-detail-slider-image {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

.catalog-page .bx-catalog-element .product-item-detail-slider-image img {
  width: auto !important;
  max-width: min(92%, 460px) !important;
  max-height: 88% !important;
  height: auto !important;
  margin: 0 auto 0 0;
  object-fit: contain !important;
  display: block;
  filter: none;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block {
  position: static;
  top: auto;
  border: 1px solid #dfe6ef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  padding: 16px !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block::before {
  content: "Стоимость";
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b97a8;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .row {
  margin-left: 0;
  margin-right: 0;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container,
.catalog-page .bx-catalog-element .product-item-detail-pay-block [data-entity="main-button-container"] {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 6px;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container ul,
.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container [class*="title"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: 100%;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container-title {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container-title > span,
.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container [data-entity="availability"] {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
  line-height: 1.35 !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container-title::before,
.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container-title::after,
.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container-title > span::before,
.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container-title > span::after {
  content: none !important;
  display: none !important;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block .product-item-detail-info-container:empty {
  display: none !important;
}

.catalog-page .bx-catalog-element .product-item-detail-price-current {
  font-size: clamp(1.9rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.catalog-page .bx-catalog-element .product-item-detail-buy-button {
  width: 100%;
  min-height: 48px;
  border: 0 !important;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #d93a4a 0%, #bf2434 100%) !important;
  box-shadow: 0 10px 22px rgba(191, 36, 52, 0.18);
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.catalog-page .bx-catalog-element .product-item-detail-buy-button:hover,
.catalog-page .bx-catalog-element .product-item-detail-buy-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(191, 36, 52, 0.24);
  outline: none;
}

.catalog-page .bx-catalog-element .product-item-detail-tabs-container {
  padding: 10px 12px 0;
  margin-top: 18px;
  border: 1px solid #e5eaf1;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: none;
}

.catalog-page .bx-catalog-element .product-item-detail-tabs-container ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-page .bx-catalog-element .product-item-detail-tabs-container li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-page .bx-catalog-element .product-item-detail-tabs-container a,
.catalog-page .bx-catalog-element .product-item-detail-tabs-container span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: #5b6778;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  top: 1px;
}

.catalog-page .bx-catalog-element .product-item-detail-tabs-container a:hover,
.catalog-page .bx-catalog-element .product-item-detail-tabs-container a:focus-visible,
.catalog-page .bx-catalog-element .product-item-detail-tabs-container span {
  transform: none;
  border-color: #e4e8ef;
  background: #fff;
  box-shadow: none;
  outline: none;
}

.catalog-page .bx-catalog-element .product-item-detail-tabs-container span {
  background: #fff;
  color: #c92434;
  border-color: #e5eaf1;
  border-bottom-color: #fff;
  box-shadow: none;
  z-index: 2;
}

.catalog-page .bx-catalog-element .product-item-detail-tab.active .product-item-detail-tab-link,
.catalog-page .bx-catalog-element .product-item-detail-tabs-container .product-item-detail-tab-link span {
  border-bottom: 0 !important;
  border-bottom-color: #fff !important;
  box-shadow: none !important;
}

.catalog-page .bx-catalog-element .product-item-detail-tab-content {
  padding: 18px 20px;
  margin-top: 0;
  border: 1px solid #e5eaf1;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: none;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #475569;
}

.catalog-page .bx-catalog-element .product-item-detail-tab-content p:first-child {
  margin-top: 0;
}

.catalog-page .bx-catalog-element .product-item-detail-tab-content p:last-child {
  margin-bottom: 0;
}

.catalog-page .bx-catalog-element .product-item-detail-tab-content ul,
.catalog-page .bx-catalog-element .product-item-detail-tab-content ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.catalog-page .bx-catalog-element .product-item-detail-tab-content li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.catalog-page .bx-catalog-element .product-item-detail-tab-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #df3d4d 0%, #c92434 100%);
  transform: translateY(-50%);
}

.catalog-page .bx-catalog-element .product-item-detail-short-card-fixed,
.catalog-page .bx-catalog-element .product-item-detail-tabs-container-fixed {
  display: none !important;
}

/* Fix Bitrix detail columns: remove empty technical columns */
.catalog-page .bx-catalog-element .col-md-6.col-sm-12 > .row {
  margin-left: 0;
  margin-right: 0;
}

.catalog-page .bx-catalog-element .col-md-6.col-sm-12 > .row > .col-sm-6 {
  width: 100%;
  float: none;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element .product-item-detail-info-section {
  display: block;
  margin: 8px 0 0;
  color: #5b6778;
  font-size: 0.95rem;
  line-height: 1.7;
}

.catalog-page .bx-catalog-element .col-sm-8.col-md-9 {
  width: 100%;
  float: none;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element .row > .col-sm-4.col-md-3 {
  display: none;
}

/* Stable top layout for product page */
.catalog-page .bx-catalog-element > .container-fluid > .row:nth-of-type(2) {
  display: contents;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:nth-of-type(2) > .col-md-6.col-sm-12 {
  float: none;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:nth-of-type(2) > .col-md-6.col-sm-12:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  max-width: 520px;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:nth-of-type(2) > .col-md-6.col-sm-12:last-child {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 280px;
  align-self: flex-start;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:has(.product-item-detail-tabs-container),
.catalog-page .bx-catalog-element > .container-fluid > .row:has(.product-item-detail-tab-content) {
  grid-column: 1 / -1;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.catalog-page .bx-catalog-element > .container-fluid > .row:has(.product-item-detail-tabs-container) > [class*="col-"],
.catalog-page .bx-catalog-element > .container-fluid > .row:has(.product-item-detail-tab-content) > [class*="col-"] {
  float: none;
  width: 100% !important;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element .row[id*="_tabs"],
.catalog-page .bx-catalog-element .row[id*="_tab_containers"] {
  grid-column: 1 / -1;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.catalog-page .bx-catalog-element .row[id*="_tabs"] > [class*="col-"],
.catalog-page .bx-catalog-element .row[id*="_tab_containers"] > [class*="col-"] {
  float: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.catalog-page .bx-catalog-element .product-item-detail-info-section dl,
.catalog-page .bx-catalog-element .product-item-detail-info-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-page .bx-catalog-element .product-item-detail-info-section dt,
.catalog-page .bx-catalog-element .product-item-detail-info-section li {
  color: #1f2937;
  font-weight: 600;
}

.catalog-page .bx-catalog-element .product-item-detail-info-section dd {
  margin: 0 0 8px;
  color: #5b6778;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="not-available"],
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="available"],
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="quantity"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(201, 36, 52, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(201, 36, 52, 0.08) !important;
  box-shadow: none !important;
  text-align: left !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  color: #b91c31 !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="not-available"]::before,
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="not-available"]::after,
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="available"]::before,
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="available"]::after,
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="quantity"]::before,
.catalog-page .bx-catalog-element .product-item-detail-pay-block [class*="quantity"]::after {
  content: none !important;
  display: none !important;
}

/* Remove empty gift/headers noise from detail page */
.catalog-page .col-xs-12:has(> [data-entity="parent-container"] > .sale-products-gift[data-entity="sale-products-gift-container"]),
.catalog-page [data-entity="parent-container"]:has(> .sale-products-gift[data-entity="sale-products-gift-container"]),
.catalog-page .bx-catalog-element .sale-products-gift,
.catalog-page .bx-catalog-element #sale_gift_main_products_1503450857,
.catalog-page .sale-products-gift,
.catalog-page [id^="sale_gift_main_products_"] {
  display: none !important;
}

.catalog-page .catalog-block-header--viewed {
  display: block !important;
  margin: 36px 0 18px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 992px) {
  .catalog-page .bx-catalog-element > .container-fluid {
    display: block;
  }

  .catalog-page .bx-catalog-element > .container-fluid > .row:first-of-type {
    margin-left: 0;
    margin-right: 0;
  }

  .catalog-page .bx-catalog-element.bx-blue {
    padding: 18px 14px 20px;
  }

  .catalog-page .bx-catalog-element > .container-fluid > .row:nth-of-type(2) > .col-md-6.col-sm-12:first-child,
  .catalog-page .bx-catalog-element > .container-fluid > .row:nth-of-type(2) > .col-md-6.col-sm-12:last-child {
    display: block;
    grid-column: auto;
    grid-row: auto;
    max-width: 100%;
  }

  .catalog-page .bx-catalog-element .product-item-detail-pay-block {
    width: 100%;
    position: static;
    top: auto;
    padding: 14px !important;
  }

  .catalog-page .bx-catalog-element .product-item-detail-slider-images-container {
    width: 100%;
    height: 260px;
  }

  .catalog-page .bx-catalog-element .product-item-detail-slider-image img {
    max-width: min(92%, 360px) !important;
    max-height: 84% !important;
  }

  .catalog-page .bx-catalog-element .product-item-detail-tab-content {
    padding: 16px 16px;
  }
}

@media (max-width: 640px) {
  .catalog-page .bx-catalog-element.bx-blue {
    padding: 16px 12px 18px;
    border-radius: 20px;
  }

  .catalog-page .bx-catalog-element .bx-title {
    margin-bottom: 16px;
    font-size: clamp(1.35rem, 6.4vw, 1.82rem);
  }

  .catalog-page .bx-catalog-element .product-item-detail-slider-container {
    padding: 0;
    border-radius: 0;
  }

  .catalog-page .bx-catalog-element .product-item-detail-slider-images-container {
    height: 210px;
    border-radius: 0;
  }

  .catalog-page .bx-catalog-element .product-item-detail-pay-block {
    border-radius: 16px !important;
    padding: 14px !important;
  }

  .catalog-page .bx-catalog-element .product-item-detail-price-current {
    font-size: 1.7rem;
  }

  .catalog-page .bx-catalog-element .product-item-detail-buy-button.btn-link {
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .catalog-page .bx-catalog-element .product-item-detail-tabs-container {
    padding: 6px 8px 0;
    border-radius: 14px;
  }

  .catalog-page .bx-catalog-element .product-item-detail-tabs-container a,
  .catalog-page .bx-catalog-element .product-item-detail-tabs-container span {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .catalog-page .bx-catalog-element .product-item-detail-tab-content {
    padding: 14px 12px;
    border-radius: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 1024px) {
  .catalog-page .catalog-categories .bx_sitemap_ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalog-page .catalog-categories .bx_sitemap_ul {
    grid-template-columns: 1fr;
  }
  .catalog-page .catalog-categories .bx_sitemap_li_title a {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 92px;
  }
  .catalog-page .catalog-categories .bx_sitemap_li_title span {
    white-space: normal;
  }
}

/* Footer — стильный современный тёмный блок */
.site-footer {
  margin-top: 56px;
  background: var(--footer-bg);
  background-image:
    linear-gradient(180deg, var(--footer-bg-top) 0%, var(--footer-bg) 25%);
  color: var(--footer-text);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 20%, var(--color-primary) 80%, transparent 100%);
  opacity: 0.85;
}

.site-footer a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-footer a:hover {
  color: #fff;
  opacity: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 48px);
  padding: clamp(40px, 5vw, 56px) 0 clamp(32px, 4vw, 44px);
  max-width: 100%;
}

.footer__col {
  min-width: 0;
}

.footer__title {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.95;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li {
  margin-bottom: 0;
}

.footer__list li + li {
  margin-top: 14px;
}

.footer__list a {
  font-size: 0.9375rem;
  color: var(--footer-text-muted);
  line-height: 1.45;
  display: inline-block;
  position: relative;
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.footer__list a:hover::after {
  width: 100%;
}

.footer__link--accent {
  color: var(--color-primary) !important;
  font-weight: 600;
}

.footer__link--accent:hover {
  color: var(--color-primary-light) !important;
}

.footer__link--accent::after {
  background: var(--color-primary);
}

/* Контакты — иконка + текст */
.footer__contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contacts-list li {
  margin-bottom: 0;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--footer-text-muted);
  line-height: 1.5;
}

.footer__contacts-list li + li {
  margin-top: 16px;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  flex: 1;
  min-width: 0;
  transition: color 0.25s ease;
}

a.footer__contact-item:hover {
  color: var(--footer-text);
}

.footer__contact-item--addr {
  display: flex;
  align-items: flex-start;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  opacity: 0.9;
  margin-top: 2px;
}

.footer__contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Нижняя полоса: разделитель, копирайт, соцсети */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--footer-border);
  font-size: 0.875rem;
}

.footer__copy {
  font-weight: 500;
  color: var(--footer-text-muted);
  letter-spacing: 0.02em;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, opacity 0.25s ease;
}

.footer__social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.footer__social-link--vk {
  background: linear-gradient(145deg, #2787f5, #1a6cd4);
}

.footer__social-link--vk .footer__social-icon {
  fill: #fff;
}

.footer__social-link--ig {
  background: linear-gradient(145deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer__social-link--tg {
  background: linear-gradient(145deg, #2aabee, #229ED9);
}

.footer__social-link--wa {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.footer__social-icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Страница контактов: блок с иконками и картой */
.contacts-page .section__title {
  margin-bottom: 28px;
}

.contacts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.contacts-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contacts-info {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item:last-of-type {
  margin-bottom: 0;
}

.contact-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item__content {
  min-width: 0;
}

.contact-item__label {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.contact-item__value {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.contact-item__value a {
  color: var(--color-primary);
}

.contact-item__value a:hover {
  text-decoration: underline;
}

.contacts-subtitle {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.contacts-social {
  margin-top: 12px;
}

.contacts-map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 14px;
}

.contacts-map-routes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.contacts-map-routes__label {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}
.contacts-map-routes__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  width: 100%;
}
.contacts-map-route-link {
  min-width: 168px;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.contacts-map-route-link:hover {
  text-decoration: none;
  color: #fff;
}

.contacts-map-open-yandex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .2s;
}
.contacts-map-open-yandex:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.contacts-map-open-yandex::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fc3f1d'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.contacts-map {
  position: relative;
  min-height: 360px;
  flex: 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .contacts-row {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .contacts-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contacts-map-routes {
    padding: 14px;
  }
  .contacts-map-route-link {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
  .contacts-map {
    min-height: 280px;
  }
  .contacts-info {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .contacts-map {
    min-height: 240px;
  }
  .contacts-info {
    padding: 20px 16px;
  }
  .contact-item__value {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .contacts-map-routes__links {
    flex-direction: column;
  }
  .contacts-map-route-link {
    width: 100%;
    flex: 1 1 100%;
  }
  .contacts-map {
    min-height: 200px;
  }
  .contacts-info {
    padding: 16px 12px;
  }
  .contact-item__label,
  .contact-item__value {
    font-size: 0.875rem;
  }
}

/* Блок обратной связи */
#feedback,
.feedback {
  margin-top: 0;
  /* При переходе по якорю «Заказать звонок» форма не уходит под шапку */
  scroll-margin-top: 130px;
}

@media (max-width: 768px) {
  #feedback,
  .feedback {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 480px) {
  #feedback,
  .feedback {
    scroll-margin-top: 80px;
  }
}

.feedback__box {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.feedback__intro {
  margin: 0 0 24px;
  color: var(--color-text-muted);
}

.feedback__form {
  max-width: 720px;
}

.feedback__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.feedback__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback__label--full {
  margin-bottom: 20px;
}

.feedback__label-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.feedback__input,
.feedback__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback__input:focus,
.feedback__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 36, 52, 0.15);
}

.feedback__textarea {
  resize: vertical;
  min-height: 100px;
}

.feedback__actions {
  margin-top: 8px;
}

.feedback__submit {
  min-width: 200px;
}

.feedback__success {
  margin-top: 0;
  margin-bottom: 0;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  color: #047857;
  font-weight: 600;
  font-size: 0.9375rem;
}
.feedback__error {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: rgba(201, 36, 52, 0.08);
  border: 1px solid rgba(201, 36, 52, 0.3);
  border-radius: var(--radius);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .feedback__box {
    padding: 28px 20px;
  }
  .feedback__row {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .feedback__row {
    grid-template-columns: 1fr;
  }
  .feedback__box {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .feedback__box {
    padding: 20px 16px;
  }
  .feedback__submit {
    width: 100%;
    min-width: 0;
  }
}

/* Страница «Доставка и оплата» */
.delivery-page .section__title {
  margin-bottom: 28px;
}

.delivery-intro {
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.delivery-intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.delivery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.delivery-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.delivery-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
}

.delivery-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.delivery-card__icon svg {
  width: 24px;
  height: 24px;
}

.delivery-card__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.delivery-card__content {
  flex: 1;
  min-width: 0;
}

.delivery-card__content p,
.delivery-list {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.delivery-card__content p:last-child,
.delivery-card__content .delivery-list + p {
  margin-bottom: 0;
}

.delivery-list {
  list-style: none;
  padding-left: 0;
}

.delivery-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 8px;
}

.delivery-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.delivery-list li:last-child {
  margin-bottom: 0;
}

.delivery-card__content a {
  color: var(--color-primary);
}

.delivery-card__content a:hover {
  text-decoration: underline;
}

.delivery-contact {
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.delivery-contact p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.delivery-contact a {
  color: var(--color-primary);
  font-weight: 500;
}

.delivery-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .delivery-cards {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .delivery-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .delivery-card {
    padding: 24px 20px;
  }
  .delivery-card__title {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .delivery-card {
    padding: 24px 20px;
  }
  .delivery-intro,
  .delivery-contact {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .delivery-card {
    padding: 20px 16px;
  }
  .delivery-intro,
  .delivery-contact {
    padding: 14px 12px;
  }
  .delivery-page .section__title {
    font-size: 1.375rem;
  }
}

/* Страница «Блог» */
.blog-page .section__title {
  margin-bottom: 28px;
}

.blog-intro {
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.blog-intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.blog-card__link {
  display: block;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
}

.blog-card__link:hover .blog-card__title {
  color: var(--color-primary);
}

.blog-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.blog-card__icon svg {
  width: 24px;
  height: 24px;
}

.blog-card__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  transition: color 0.2s;
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.blog-cta {
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.blog-cta p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.blog-cta a {
  color: var(--color-primary);
  font-weight: 500;
}

.blog-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .blog-cards {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .blog-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-page .section__title {
    font-size: 1.375rem;
  }
}

@media (max-width: 640px) {
  .blog-card__link {
    padding: 24px 20px;
  }
  .blog-intro,
  .blog-cta {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .blog-card__link {
    padding: 20px 16px;
  }
  .blog-card__title {
    font-size: 1rem;
  }
  .blog-intro,
  .blog-cta {
    padding: 14px 12px;
  }
}

/* Страница статьи блога */
.article-page .section__title {
  margin-bottom: 24px;
}

.article-body {
  max-width: 720px;
  margin-bottom: 32px;
}

.article-body p {
  margin: 0 0 1em;
  line-height: 1.6;
  color: var(--color-text);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--color-primary);
}

.article-body a:hover {
  text-decoration: underline;
}

.article-back {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.article-back a {
  color: var(--color-primary);
  font-weight: 500;
}

.article-back a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .site-footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
    padding: 40px 0 32px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 40px;
  }
  .footer__grid {
    gap: 28px 24px;
    padding: 36px 0 28px;
  }
  .footer__title {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }
  .footer__bottom {
    padding-top: 24px;
    padding-bottom: 26px;
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 24px;
  }
  .footer__col {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--footer-border);
  }
  .footer__col:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .footer__social {
    gap: 10px;
  }
  .footer__contact-item--addr {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .site-footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-footer {
    margin-top: 32px;
  }
  .footer__title {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }
  .footer__list a,
  .footer__contact-item {
    font-size: 0.875rem;
  }
}

/* Очень узкие экраны (320px и меньше) — компактнее отступы и шрифты */
@media (max-width: 360px) {
  .container {
    padding-left: max(12px, var(--safe-left));
    padding-right: max(12px, var(--safe-right));
  }
  .site-logo__text {
    font-size: 1rem;
  }
  .hero--home .hero__frame {
    padding: 24px 12px 32px;
    min-height: 260px;
  }
  .hero__slides {
    height: 200px;
  }
  .hero--home .hero__title {
    font-size: 1.35rem;
  }
  .hero--home .hero__subtitle {
    font-size: 0.875rem;
  }
  .hero--home .hero__btn {
    min-height: 44px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .home-categories__wrap {
    padding: 20px 12px;
  }
  .home-categories__title {
    font-size: 1.125rem;
  }
  .footer__grid {
    padding: 28px 0 20px;
  }
  .footer__bottom {
    padding: 20px 0;
  }
}

/* Минимальный размер зоны нажатия для кнопок на мобильных (рекомендация ~44px) */
@media (max-width: 768px) {
  .btn,
  .btn--primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
  }
  .header-action {
    min-height: 44px;
    min-width: 44px;
  }
  .header-burger {
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-menu__nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .hero__dot {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
  }
  .hero__dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease, transform 0.2s ease;
  }
  .hero__dot.is-active::after {
    background: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(201, 36, 52, 0.25);
  }
  .hero__dot:hover::after {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Шапка: планшет — компактнее навигация */
@media (max-width: 1024px) {
  .site-header__inner {
    gap: 12px 20px;
  }
  .site-nav a {
    padding: 8px 8px;
    font-size: 0.875rem;
  }
  .phone-link {
    font-size: 0.875rem;
  }
}

/* Шапка: при сужении — номер, заказать, корзина становятся значками и сдвигаются вправо */
@media (max-width: 1100px) {
  .phone-link__text,
  .header-link__text,
  .btn-cart__text {
    display: none;
  }
  .phone-link__icon,
  .header-link__icon,
  .btn-cart__icon {
    display: inline-flex;
  }
  .phone-link,
  .header-link {
    min-width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius);
  }
  .phone-link:hover,
  .header-link:hover {
    background: rgba(201, 36, 52, 0.1);
  }
  .header-link {
    color: var(--color-text);
  }
  .btn-cart {
    padding: 0 12px;
    min-width: 44px;
    height: 44px;
    justify-content: center;
  }
  .btn-cart .cart-count {
    margin-left: 2px;
  }
}

/* Шапка: мобильное меню — гамбургер и выезжающая навигация (включается при ≤1280px, чтобы на полэкрана не было наезда) */
@media (max-width: 1280px) {
  .site-header__burger {
    display: flex;
    order: 2;
    margin-left: 0;
  }

  .site-header__actions {
    order: 1;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 1px solid var(--color-border);
    padding: 12px 0 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s;
    z-index: 50;
  }

  .site-nav.is-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(201, 36, 52, 0.08);
  }
}

/* Шапка и контент: планшет и телефон */
@media (max-width: 768px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px 16px;
  }

  .site-logo {
    font-size: 1.1rem;
    order: 0;
  }

  .site-header__actions {
    gap: 8px 12px;
  }

  .phone-link {
    font-size: 0.875rem;
  }

  .btn-cart {
    padding: 6px 12px;
    font-size: 0.875rem;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Шапка: телефон — компактнее */
@media (max-width: 480px) {
  .site-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header__inner {
    padding: 8px 0;
    min-height: 48px;
    gap: 8px 12px;
  }

  .site-logo {
    font-size: 1rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-logo:has(.site-logo__img) {
    max-width: 280px;
  }

  .site-logo__img {
    max-height: 56px;
    min-height: 40px;
  }

  .site-header__burger {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .site-header__burger-line {
    width: 20px;
  }

  .site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header__actions {
    gap: 6px 8px;
  }

  .site-nav a {
    padding: 12px 16px;
    font-size: 0.9375rem;
  }

  .phone-link {
    font-size: 0.8125rem;
  }

  .btn-cart {
    padding: 6px 10px;
    font-size: 0.8125rem;
  }
}

.product-gallery {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 20px;
}

.product-info__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.product-info__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.product-info__article {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.product-info__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Блоки «Описание» и «Характеристики» (под загрузку из 1С) */
.product-description-block,
.product-specs-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.product-block__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-description {
  color: var(--color-text);
  line-height: 1.6;
}

.product-description p {
  margin: 0 0 12px;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-specs {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.product-specs td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.product-specs__name {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 40%;
}

.product-specs__value {
  color: var(--color-text);
}

.product-specs-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Basket */
.basket-table {
  width: 100%;
  border-collapse: collapse;
}

.basket-table th,
.basket-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.basket-table th {
  font-weight: 600;
  background: var(--color-bg-alt);
}

.basket-total {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 700;
}

.basket-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Пустая корзина — современный блок (показывается при 0 товарах, вывод Битрикс скрыт) */
.basket-is-empty .basket-content {
  display: none !important;
}

.basket-empty-state {
  text-align: center;
  padding: 48px 24px 56px;
  max-width: 420px;
  margin: 32px auto 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.basket-empty-state__icon {
  color: var(--color-text-muted, #8c8c8c);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.basket-empty-state__icon svg {
  width: 80px;
  height: 80px;
  opacity: 0.7;
}

.basket-empty-state__title {
  margin: 0 0 12px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.basket-empty-state__text {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.basket-empty-state__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.basket-empty-state__cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.basket-intro {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.basket-intro a {
  color: var(--color-primary);
  font-weight: 500;
}

.basket-intro a:hover {
  text-decoration: underline;
}

.basket-empty {
  padding: 32px 0;
  text-align: center;
}

.basket-empty__text {
  margin-bottom: 16px;
  font-size: 1.125rem;
  color: var(--color-text-muted, #666);
}

.basket-qty-input {
  width: 64px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 4px;
}

.basket-remove {
  min-width: 36px;
  padding: 6px 10px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-muted, #666);
  background: none;
  border: none;
  cursor: pointer;
}

.basket-remove:hover {
  color: var(--color-accent, #c00);
}

.order-success {
  max-width: 500px;
  padding: 24px 0;
}

.order-success__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.order-success__text {
  margin-bottom: 20px;
  color: var(--color-text-muted, #666);
}

.order-success .btn {
  margin-right: 12px;
  margin-bottom: 8px;
}

.order-success__note {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.order-success__note a {
  color: var(--color-primary);
  font-weight: 500;
}

/* Страница корзины — та же ширина контента, что и на остальных страницах */
.page-basket .container {
  max-width: min(var(--container), 100%);
  width: 100%;
}

.page-basket .basket-section {
  padding-bottom: 48px;
}

.basket-is-empty .basket-section {
  background: #f5f6f9;
  padding: 32px 0 64px;
  margin-top: 24px;
  border-radius: 20px;
}

.basket-content {
  width: 100%;
  max-width: 100%;
  font-size: 1rem; /* Размер текста как в шаблоне, не уменьшается из-за стилей Битрикс */
}
/* Обёртки стандартного шаблона Битрикс sale.basket.basket не сужают контент */
.basket-content .bx_ordercart,
.basket-content .bx_order_list,
.basket-content > div {
  max-width: 100%;
  width: 100%;
}

/* Корзина и оформление заказа: адаптив */
.container:has(.basket-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .basket-empty-state {
    padding: 40px 20px 48px;
    margin-top: 24px;
  }
  .basket-empty-state__icon svg {
    width: 64px;
    height: 64px;
  }
  .basket-empty-state__title {
    font-size: 1.25rem;
  }
  .basket-table th,
  .basket-table td {
    padding: 10px 12px;
    font-size: 0.9375rem;
  }
  .basket-total {
    font-size: 1.125rem;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .basket-table th,
  .basket-table td {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
  .basket-table th:nth-child(2),
  .basket-table th:nth-child(3),
  .basket-table td:nth-child(2),
  .basket-table td:nth-child(3) {
    min-width: 70px;
  }
  .basket-total {
    font-size: 1rem;
    margin-top: 16px;
  }
}

/* Избранное — в одном стиле с корзиной */
.page-wishlist .wishlist-section {
  padding-bottom: 48px;
}

/* Фон секции при пустом избранном (как у корзины) */
.wishlist-is-empty .wishlist-section {
  background: #f5f6f9;
  padding: 32px 0 64px;
  margin-top: 24px;
  border-radius: 20px;
}

.wishlist-intro {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.wishlist-intro a {
  color: var(--color-primary);
  font-weight: 500;
}

.wishlist-intro a:hover {
  text-decoration: underline;
}

/* Пустое состояние избранного — как корзина: карточка, серая иконка, кнопка */
.wishlist-empty-state {
  text-align: center;
  padding: 48px 24px 56px;
  max-width: 420px;
  margin: 32px auto 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.wishlist-empty-state.wishlist-empty-state--hidden {
  display: none !important;
}

.wishlist-empty-state__icon {
  color: var(--color-text-muted, #8c8c8c);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-empty-state__icon svg {
  width: 80px;
  height: 80px;
  opacity: 0.7;
}

.wishlist-empty-state__title {
  margin: 0 0 12px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.wishlist-empty-state__text {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.wishlist-empty-state__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.wishlist-empty-state__cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* Список избранного — карточка с таблицей */
.wishlist-content--hidden {
  display: none !important;
}

.wishlist-content__card {
  margin-top: 24px;
  padding: 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.wishlist-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.wishlist-table th,
.wishlist-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.wishlist-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: #f8f9fc;
}

.wishlist-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.wishlist-item:hover {
  color: var(--color-primary);
}

.wishlist-item__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.wishlist-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-item__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-bg-alt);
}

.wishlist-item__name {
  font-weight: 500;
}

.wishlist-item__actions {
  white-space: nowrap;
}

.wishlist-item__actions .btn {
  margin-right: 8px;
}

.wishlist-remove {
  min-width: 36px;
  padding: 6px 10px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text-muted, #666);
  background: none;
  border: none;
  cursor: pointer;
}

.wishlist-remove:hover {
  color: var(--color-accent, #c00);
}

.wishlist-actions {
  padding: 20px 20px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  background: #fafbfc;
}

.container:has(.wishlist-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .wishlist-empty-state {
    padding: 40px 20px 48px;
    margin-top: 24px;
  }
  .wishlist-empty-state__icon svg {
    width: 64px;
    height: 64px;
  }
  .wishlist-empty-state__title {
    font-size: 1.25rem;
  }
  .wishlist-table th,
  .wishlist-table td {
    padding: 10px 12px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .wishlist-table th,
  .wishlist-table td {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
  .wishlist-item__thumb {
    width: 48px;
    height: 48px;
  }
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

/* Оформление заказа: переключатель ФЛ / ЮЛ */
.order-form-wrap {
  max-width: 560px;
}

.order-type-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.order-type-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}

.order-type-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.order-type-option__label {
  color: var(--color-text);
}

.order-type-option input:checked + .order-type-option__label {
  color: var(--color-primary);
}

.order-fields {
  margin-bottom: 20px;
}

.order-fields--legal .form-group:first-child {
  margin-top: 0;
}

.order-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.order-form-submit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 500px) {
  .order-form-row {
    grid-template-columns: 1fr;
  }
}

/* Адаптив: все страницы (товар, корзина, оформление, статьи, хлебные крошки) */
@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 0.8125rem;
    padding: 10px 0;
  }
  .product-info__title {
    font-size: 1.25rem;
  }
  .product-info__price {
    font-size: 1.25rem;
  }
  .product-gallery {
    padding: 12px;
  }
  .product-layout {
    gap: 20px;
  }
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9375rem;
  }
  .article-page .section__title {
    font-size: 1.375rem;
  }
  .article-body {
    font-size: 0.9375rem;
  }
  .section__title {
    font-size: 1.375rem;
  }
}

/* Текстовые страницы (политика, 404) */
.content-page h2 {
  margin: 1.5em 0 0.5em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}
.content-page h2:first-of-type {
  margin-top: 1em;
}
.content-page p {
  margin: 0 0 1em;
  color: var(--color-text);
}
.content-page__updated {
  margin-top: 2em;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Bitrix placeholders — для замены при переносе в Bitrix */
.bitrix-placeholder {
  min-height: 40px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ========================================
   Личный кабинет
   ======================================== */

/* Форма авторизации */
.account-auth {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.account-auth__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border);
}

.account-auth__tab {
  flex: 1;
  padding: 14px 20px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.account-auth__tab:hover {
  color: var(--color-text);
}

.account-auth__tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.account-auth__form {
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form .form-group--checkbox {
  margin-top: 8px;
}

.auth-form .form-group--checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.auth-form .form-group--checkbox input[type="checkbox"] {
  width: auto;
}

.auth-form__forgot {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9375rem;
}

.btn--full {
  width: 100%;
}

.account-auth__benefits {
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.account-auth__benefits h3 {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.account-auth__benefits ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.account-auth__benefits li {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.account-auth__benefits li:last-child {
  margin-bottom: 0;
}

/* Дашборд личного кабинета */
.account-dashboard {
  max-width: 900px;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.account-header .section__title {
  margin: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-bottom: 40px;
}

/* Карточка профиля */
.account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.account-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.account-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(201, 36, 52, 0.05);
}

.account-profile__info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.account-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.account-profile__details {
  min-width: 0;
}

.account-profile__name {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.account-profile__contact {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.account-profile__contact:last-child {
  margin-bottom: 0;
}

.account-profile__form {
  margin-top: 16px;
}

.account-profile__form .form-group {
  margin-bottom: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Статистика */
.account-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-stat {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  text-align: center;
  min-width: 140px;
}

.account-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.account-stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Заказы */
.account-orders {
  margin-top: 8px;
}

.account-orders__title {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.account-orders__empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.account-orders__empty p {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.account-orders__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Карточка заказа */
.order-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.order-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-hover);
}

.order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.order-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-card__id {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.order-card__date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.order-card__status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.order-card__items {
  padding: 20px 24px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item__name {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.order-item__qty {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.order-item__price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.order-card__total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Адаптив личного кабинета */
@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-stats {
    flex-direction: row;
    justify-content: center;
  }

  .account-stat {
    flex: 1;
    min-width: 0;
  }

  .order-card__header,
  .order-card__items,
  .order-card__footer {
    padding: 16px 20px;
  }

  .order-item {
    flex-wrap: wrap;
  }

  .order-item__name {
    flex-basis: 100%;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .account-profile__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .account-stats {
    flex-direction: column;
  }

  .account-stat {
    min-width: 0;
  }

  .order-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .order-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ========== Главная страница (.home-page) — полный редизайн секций ========== */
.home-page {
  padding-top: 0;
  background: radial-gradient(1200px 420px at 50% -150px, rgba(201, 36, 52, 0.06), transparent 64%);
}

.home-page .container {
  width: 100%;
  max-width: var(--container);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 56px) 0 clamp(24px, 4vw, 36px);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #16213a 0%, #1f2d4b 52%, #2a3755 100%);
  border-radius: 0 0 38px 38px;
  z-index: 0;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
}

.home-hero__grid {
  display: grid;
  gap: clamp(22px, 3.5vw, 34px);
  align-items: center;
}

@media (min-width: 980px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 34%);
  }
}

.home-hero__eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: none;
}

.home-hero__subtitle {
  margin: 0 0 22px;
  max-width: none;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.home-hero__facts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 12px;
}

.home-hero__facts li {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.home-hero__facts strong {
  color: #fff;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.home-hero__facts span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.825rem;
  line-height: 1.35;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__btn {
  min-width: 11.5rem;
  justify-content: center;
  text-align: center;
}

.home-hero__visual {
  display: grid;
  gap: 14px;
}

.home-hero__visual-card {
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.home-hero__visual-card--main {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.home-hero__visual-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
}

.home-hero__visual-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.9375rem;
}

.home-hero__visual-card--accent {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(201, 36, 52, 0.3));
}

.home-hero__visual-kpi {
  margin: 0 0 2px;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.home-hero__visual-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.home-page-section {
  padding: clamp(12px, 2vw, 20px) 0;
}

.home-page-section .container {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.06);
  padding: clamp(18px, 2vw, 24px);
}

.home-page-section--alt .container {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
}

.home-page-section__title {
  margin: 0 0 18px;
}

.home-page-lead {
  margin: 0 0 16px;
  max-width: none;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.home-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.home-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-benefit:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 36, 52, 0.24);
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.08);
}

.home-benefit__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-primary);
  background: rgba(201, 36, 52, 0.1);
}

.home-benefit__text {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.home-benefit__text strong {
  color: var(--color-text);
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 12px;
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  color: var(--color-text);
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px solid #e6e9ef;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 26, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(201, 36, 52, 0.85), rgba(201, 36, 52, 0.25));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.home-cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 36, 52, 0.42);
  box-shadow: 0 16px 30px rgba(22, 30, 48, 0.12);
  color: var(--color-primary);
}

.home-cat-card:hover::before {
  opacity: 1;
}

.home-cat-card__img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: linear-gradient(160deg, #f4f6fc 0%, #eff2f8 100%);
}

.home-cat-card__img svg,
.home-cat-card__img img {
  width: 54px;
  height: 54px;
}

.home-cat-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-why {
  display: grid;
  gap: 16px;
}

@media (min-width: 980px) {
  .home-why {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }
}

.home-why__text p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.home-why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.home-why-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}

.home-why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.home-why__panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e6e9ef;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 28, 40, 0.06);
}

.home-why__metric {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaedf3;
}

.home-why__metric:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-why__metric-value {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f2f52;
}

.home-why__metric-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

@media (min-width: 980px) {
  .home-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-steps::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, rgba(201, 36, 52, 0.3), rgba(201, 36, 52, 0.15));
    z-index: 0;
  }
}

.home-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px 16px;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  border: 1px solid #e2e7f0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(20, 28, 40, 0.05);
}

.home-step__num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(180deg, var(--color-primary) 0%, #9f1c2a 100%);
}

.home-step__body {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.home-step__body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
}

.home-contact-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.home-contact-item {
  display: grid;
  gap: 5px;
  padding: 15px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3e8f1;
  box-shadow: 0 8px 16px rgba(20, 28, 40, 0.04);
}

.home-contact-item--wide {
  grid-column: 1 / -1;
}

.home-contact-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.home-contact-item__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
}

a.home-contact-item__value:hover {
  color: var(--color-primary);
}

.home-contact-item__value--plain {
  font-weight: 500;
  line-height: 1.5;
}

.home-contact-strip__cta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-contact-strip__cta .btn {
  min-width: 12rem;
  justify-content: center;
}

@media (max-width: 760px) {
  .home-page-section .container {
    padding: 14px;
  }

  .home-hero__facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__btn {
    width: 100%;
    min-width: 0;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-contact-strip__cta .btn {
    width: 100%;
    min-width: 0;
  }
}
