/**
 * @file: base.css
 * @description: Базовые стили: переменные, layout, шапка, каталог-сайдбар, hero, секции, карточки, футер, все медиазапросы
 * @dependencies: catalog.css / product.css / cart.css / checkout.css подключаются после для страниц
 * @created: 2026-02-02
 */

:root {
  --flux-font: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Open Sans", sans-serif;
  --flux-bg: #ffffff;
  --flux-text: #19191a;
  --flux-muted: #6b6b73;
  --flux-border: #e6e6ea;
  --flux-accent: #042206;
  --flux-primary: #7a45e5;
  --flux-link: #498bff;

  --flux-radius-sm: 12px;
  --flux-radius-md: 16px;
  --flux-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --flux-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);

  --flux-container: 1400px;
  --flux-gap: 16px;
  --flux-gap-lg: 24px;

  --flux-h1: 28px;
  --flux-h2: 32px;
  --flux-body: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* min-height вместо height, чтобы body растягивался по контенту и sticky-шапка работала на всю страницу */
html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--flux-font);
  font-size: var(--flux-body);
  line-height: 1.45;
  color: var(--flux-text);
  background: var(--flux-bg);
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.flux-container {
  width: min(var(--flux-container), calc(100% - 32px));
  margin-inline: auto;
}

.flux-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: var(--flux-shadow-sm);
  z-index: 1000;
}
.flux-skip-link:focus {
  left: 12px;
}

/* Top bar (announcement + contacts) */
.flux-topbar {
  position: relative;
  background: #042206;
  color: #fff;
  font-size: 13px;
  z-index: 1001;
}
.flux-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.flux-topbar__ticker {
  flex: 0 0 auto;
  overflow: hidden;
  height: 20px;
  position: relative;
  min-width: 300px;
}
.flux-topbar__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  opacity: 0;
  animation: tickerSlide 6s ease-in-out infinite;
}
.flux-topbar__item:nth-child(1) {
  animation-delay: 0s;
  opacity: 1;
}
.flux-topbar__item:nth-child(2) {
  animation-delay: 3s;
  opacity: 0;
}
@keyframes tickerSlide {
  0% { opacity: 0; transform: translateY(10px); }
  8% { opacity: 1; transform: translateY(0); }
  42% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}
.flux-topbar__contacts {
  display: flex;
  gap: 16px;
  align-items: center;
}
.flux-topbar__contacts a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.flux-topbar__contacts a:hover {
  color: #fff;
}

/* Topbar + header — sticky, при скролле остаются сверху; быстрые ссылки (.flux-quick-links) вынесены и прокручиваются с контентом */
.flux-site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
}

/* Header */
.flux-header {
  background: #fff;
  border-bottom: 1px solid var(--flux-border);
}
.flux-header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.flux-header__catalog-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  color: var(--flux-text);
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.flux-header__catalog-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}
/* Бургер и крестик — две иконки, переключаем видимость (ровный крестик без искажений) */
.flux-header__catalog-btn {
  position: relative;
}
.flux-header__catalog-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.flux-header__catalog-btn-icon--cross {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  pointer-events: none;
}
.flux-header__catalog-btn.is-active .flux-header__catalog-btn-icon--burger {
  opacity: 0;
  pointer-events: none;
}
.flux-header__catalog-btn.is-active .flux-header__catalog-btn-icon--cross {
  opacity: 1;
  pointer-events: none;
}

.flux-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.flux-logo__img {
  height: 40px;
  width: auto;
  display: block;
}
.flux-logo__text {
  font-weight: 800;
  font-size: 18px;
  color: var(--flux-text);
}

.flux-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--flux-border);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  flex: 1;
  max-width: 680px;
}
.flux-search form {
  flex: 1;
  min-width: 0;
  display: flex;
}
.flux-search svg {
  flex-shrink: 0;
  color: var(--flux-muted);
}
.flux-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  background: transparent;
}
.flux-search__close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--flux-muted);
}

/* Подсказки поиска (mSearch suggest) */
.flux-search__suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--flux-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.flux-search__suggestions--open {
  display: block;
}
.flux-search__suggestions-item {
  margin: 0;
  border-bottom: 1px solid var(--flux-border, #eee);
}
.flux-search__suggestions-item:last-child {
  border-bottom: 0;
}
.flux-search__suggestions-link {
  display: block;
  padding: 10px 16px;
  color: var(--flux-text, #1a1a1a);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease;
}
.flux-search__suggestions-link:hover,
.flux-search__suggestions-link:focus {
  background: var(--flux-bg-alt, #f5f5f5);
  outline: none;
}
.flux-search__suggestions-link strong {
  font-weight: 700;
}

.flux-header__search-toggle {
  display: none;
}

.flux-header__icons {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px; /* 1em для SVG иконок в шапке */
}
.flux-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--flux-text);
  text-decoration: none;
  position: relative;
  padding: 0;
}
.flux-icon-link--cart {
  position: relative;
  padding: 4px;
}
.flux-icon-link--cart svg {
  display: block;
}
.flux-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--flux-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
  border: 2px solid var(--flux-bg);
  white-space: nowrap;
}

/* Buttons */
.flux-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--flux-radius-md);
  padding: 10px 14px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--flux-text);
}
.flux-btn:focus-visible {
  outline: 2px solid rgba(122, 69, 229, 0.35);
  outline-offset: 2px;
}
.flux-btn--primary {
  background: var(--flux-accent);
  color: #fff;
}
.flux-btn--secondary {
  background: #fff;
  border-color: var(--flux-border);
}
.flux-btn--ghost {
  background: transparent;
  border-color: var(--flux-border);
}
.flux-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Mega menu (prototype) */
.flux-mega {
  position: relative;
}
.flux-mega__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: min(900px, calc(100vw - 32px));
  border: 1px solid var(--flux-border);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--flux-shadow-md);
  overflow: hidden;
  display: none;
}
.flux-mega[data-open="1"] .flux-mega__panel {
  display: grid;
  grid-template-columns: 260px 1fr;
}
.flux-mega__left {
  border-right: 1px solid var(--flux-border);
  padding: 12px;
}
.flux-mega__left button {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  font-weight: 700;
}
.flux-mega__left button[aria-selected="true"] {
  background: rgba(122, 69, 229, 0.10);
  color: var(--flux-primary);
}
.flux-mega__right {
  padding: 14px;
}
.flux-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.flux-mega__item {
  border: 1px solid var(--flux-border);
  border-radius: 14px;
  padding: 10px;
  color: var(--flux-text);
  text-decoration: none;
  background: #fff;
}
.flux-mega__item:hover {
  border-color: rgba(122, 69, 229, 0.35);
  text-decoration: none;
}
.flux-mega__item small {
  display: block;
  color: var(--flux-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Catalog sidebar overlay */
.flux-catalog-overlay {
  position: fixed;
  top: var(--catalog-overlay-top, var(--header-only-height, 80px)); /* под всей sticky-шапкой */
  left: 320px; /* справа от первого столбца (sidebar) */
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.flux-catalog-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
@media (min-width: 1400px) {
  .flux-catalog-overlay {
    left: calc((100vw - 1400px) / 2 + 320px);
  }
}

/* Catalog sidebar — когда закрыт, не перехватывать клики (не перекрывать контент) */
.flux-catalog-sidebar {
  position: fixed;
  top: var(--catalog-menu-top, var(--header-only-height, 80px));
  left: 0;
  bottom: 0;
  width: 0;
  background: #fff;
  z-index: 999;
  opacity: 0;
  overflow: visible;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  border-right: 0 solid var(--flux-border);
  transition: width 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, border-width 0.3s ease;
  pointer-events: none;
}
.flux-catalog-sidebar.is-open {
  width: 320px;
  opacity: 1;
  box-shadow: none;
  border-right: 1px solid var(--flux-border);
  pointer-events: auto;
}
/* Широкие экраны: сайдбар привязан к левому краю контента 1400px */
@media (min-width: 1400px) {
  .flux-catalog-sidebar {
    left: calc((100vw - 1400px) / 2);
  }
}
/* White background covering left side when sidebar is open */
.flux-catalog-sidebar.is-open::before {
  content: '';
  position: fixed;
  top: var(--catalog-menu-top, var(--header-only-height, 80px));
  left: 0;
  width: 320px;
  bottom: 0;
  background: #fff;
  z-index: -1;
}
@media (min-width: 1400px) {
  .flux-catalog-sidebar.is-open::before {
    width: calc((100vw - 1400px) / 2 + 320px);
  }
}
.flux-catalog-sidebar__header {
  display: none;
}
.flux-catalog-sidebar__nav {
  padding: 20px 0 0 0;
}

/* Catalog items */
.flux-catalog-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
  opacity: 0;
  transform: translateX(-10px);
}
.flux-catalog-sidebar.is-open .flux-catalog-item {
  opacity: 1;
  transform: translateX(0);
}
.flux-catalog-sidebar.is-open .flux-catalog-item:nth-child(1) {
  transition-delay: 0.05s;
}
.flux-catalog-sidebar.is-open .flux-catalog-item:nth-child(2) {
  transition-delay: 0.1s;
}
.flux-catalog-sidebar.is-open .flux-catalog-item:nth-child(3) {
  transition-delay: 0.15s;
}
.flux-catalog-sidebar.is-open .flux-catalog-item:nth-child(4) {
  transition-delay: 0.2s;
}
.flux-catalog-sidebar.is-open .flux-catalog-item:nth-child(5) {
  transition-delay: 0.25s;
}
.flux-catalog-item:hover {
  background: #f6f6f9;
  z-index: 2;
}
.flux-catalog-item__title {
  font-weight: 600;
  font-size: 15px;
}
.flux-catalog-item__arrow {
  color: var(--flux-muted);
}

/* Catalog submenu - absolute positioning inside sidebar */
.flux-catalog-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 300px;
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--flux-border);
  border-right: 1px solid var(--flux-border);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-left: -1px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
  z-index: 1000;
}
/* Показать submenu с классом active */
.flux-catalog-submenu.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* Submenu header (кнопка назад + заголовок) - скрыт на desktop */
.flux-catalog-submenu__header {
  display: none;
}
.flux-catalog-submenu__content a {
  display: block;
  padding: 12px 16px;
  color: var(--flux-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}
.flux-catalog-submenu__content a:hover {
  background: #f6f6f9;
}

/* Breadcrumbs — единый вид на корзине, каталоге, оформлении заказа */
.flux-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--flux-muted);
  margin: 0 0 20px;
  padding: 0;
}
/* Сброс стандартных отступов у списков внутри крошек */
.flux-breadcrumbs ol,
.flux-breadcrumbs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flux-breadcrumbs a {
  color: var(--flux-muted);
  text-decoration: none;
}
.flux-breadcrumbs a:hover {
  color: var(--flux-text);
}
/* Текущая страница (последний элемент, не ссылка) */
.flux-breadcrumbs span:last-child,
.flux-breadcrumbs span[aria-current="page"] {
  color: var(--flux-text);
}
/* Разделитель «/» — отступ только через margin, без пробелов в разметке */
.flux-breadcrumbs span[aria-hidden="true"] {
  color: var(--flux-muted);
  user-select: none;
  margin: 0 10px;
}
/* Layout sections */
.flux-main {
  padding: 24px 0 40px;
}

.flux-section {
  margin-top: 28px;
}
.flux-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--flux-gap);
  margin-bottom: 12px;
}
.flux-section__title {
  font-size: var(--flux-h2);
  line-height: 1.1;
  margin: 0;
}
.flux-section__sub {
  margin: 6px 0 0;
  color: var(--flux-muted);
}

/* Hero slider (fullwidth, autoplay, arrows overlay) */
.flux-hero {
  margin-bottom: 40px;
}
.flux-hero__wrapper {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--flux-shadow-sm);
}
.flux-hero__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #fff;
}
.flux-hero__track::-webkit-scrollbar {
  display: none;
}
.flux-hero__slide {
  scroll-snap-align: start;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.flux-hero__overlay {
  position: absolute;
  inset: 0;

}
.flux-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-right: auto;
}
.flux-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.flux-hero__title {
  font-size: 54px;
  line-height: 1.05;
  margin: 14px 0 12px;
  letter-spacing: -0.8px;
  color: #fff;
}
.flux-hero__text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 16px;
}
.flux-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.flux-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}
.flux-hero__arrow--prev {
  left: 20px;
}
.flux-hero__arrow--next {
  right: 20px;
}
.flux-hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  gap: 10px;
}
.flux-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
}
.flux-dot:hover {
  border-color: rgba(255, 255, 255, 0.9);
}
.flux-dot[aria-current="true"] {
  background: #fff;
  border-color: #fff;
}

/* Cards / grids */
.flux-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--flux-gap);
}
.flux-card {
  border: 1px solid var(--flux-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--flux-shadow-sm);
}
.flux-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(122, 69, 229, 0.16), rgba(47, 217, 255, 0.12));
}
.flux-card__body {
  padding: 12px;
}
.flux-card__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.flux-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.06);
  color: var(--flux-accent);
}
.flux-badge--sale {
  background: rgba(122, 69, 229, 0.14);
  color: var(--flux-primary);
}
.flux-badge--new {
  background: #e8f5e9;
  color: #2e7d32;
}
.flux-badge--hit {
  background: #fff3e0;
  color: #e65100;
}
.flux-card__title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--flux-accent);
}
.flux-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.flux-price__now {
  font-size: 18px;
  font-weight: 900;
}
.flux-price__old {
  font-size: 13px;
  color: var(--flux-muted);
  text-decoration: line-through;
}

/* Thanks page (order success) */
.flux-thanks {
  padding-bottom: 48px;
}
.flux-thanks-hero {
  margin-top: 24px;
  margin-bottom: 40px;
}
.flux-thanks-card {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  border-radius: var(--flux-radius-md);
  box-shadow: var(--flux-shadow-md);
}
.flux-thanks-card__body {
  padding: 40px 24px;
}
.flux-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(122, 69, 229, 0.12), rgba(72, 187, 120, 0.15));
  color: var(--flux-primary);
}
.flux-thanks-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--flux-accent);
}
.flux-thanks-desc {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--flux-muted);
  line-height: 1.5;
}
.flux-thanks-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.flux-thanks-cta:hover {
  text-decoration: none;
}

.flux-thanks-utp {
  margin-bottom: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--flux-border);
  border-bottom: 1px solid var(--flux-border);
}
.flux-thanks-utp__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flux-thanks-utp__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.flux-thanks-utp__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--flux-radius-sm);
  background: rgba(4, 34, 6, 0.06);
  color: var(--flux-accent);
}
.flux-thanks-utp__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--flux-text);
}
.flux-thanks-products {
  margin-top: 32px;
}
.flux-thanks-products .flux-section__title {
  margin-bottom: 20px;
}
.flux-thanks-products-cta {
  margin-top: 20px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .flux-thanks-utp__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flux-thanks-card__body {
    padding: 28px 20px;
  }
  .flux-thanks-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }
  .flux-thanks-icon svg {
    width: 48px;
    height: 48px;
  }
}

/* Quick links */
.flux-quick-links {
  background: #fff;
  border-bottom: 1px solid var(--flux-border);
  padding: 12px 0;
}
.flux-quick-links__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.flux-quick-links__track::-webkit-scrollbar {
  display: none;
}
.flux-quick-link {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: #f6f6f9;
  color: var(--flux-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
}
.flux-quick-link:hover {
  background: var(--flux-accent);
  color: #fff;
  text-decoration: none;

}

/* Section titles */
.flux-section__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

/* Categories (square icons) */
.flux-categories {
  margin: 48px 0;
}
.flux-categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.flux-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--flux-text);
}
.flux-category__icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}
.flux-category:hover .flux-category__icon {
  transform: scale(1.05);
}
.flux-category__name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Products section */
.flux-products-section {
  margin: 48px 0;
}
.flux-products__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.flux-products__grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.flux-products__grid--frequent {
  grid-template-columns: repeat(5, 1fr);
}
.flux-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--flux-text);
  position: relative;
}
.flux-product__images {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f9;
}
.flux-product__images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.flux-product__images img:first-child {
  opacity: 1;
}
/* Скрываем первое изображение при hover только если есть второе */
.flux-product:hover .flux-product__images--has-second img:first-child {
  opacity: 0;
}
.flux-product:hover .flux-product__images--has-second img:nth-child(2) {
  opacity: 1;
}
.flux-product__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flux-product__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin: 5px 0;
  color: var(--flux-text);
  height: 2.6em;
  min-height: 2.6em;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}
.flux-product__link:hover, .flux-product__title:hover {
  color: var(--flux-accent);
  text-decoration: none;
}
.flux-product__link {
  text-decoration: none;
}
.flux-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flux-price__now {
  font-weight: 700;
  font-size: 16px;
  color: #000;
}
.flux-price__old {
  font-size: 13px;
  color: #ab2525;
  text-decoration: line-through;
  font-weight: 600;
}
/* Кнопка «В корзину» на всю ширину карточки, текст как в шаблоне (В корзину / В корзине) */
.flux-product .ms3-add-to-cart,
.flux-product .ms3-cart-controls {
  width: 100%;
  margin: 0;
}
.flux-product .ms3-add-to-cart button[type="submit"] {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 14px;
}

/* Блок «В корзине» на карточке: та же высота, что и кнопка «В корзину» (38px), без стрелок у поля количества */
.flux-product__in-cart-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  border-radius: var(--flux-radius-md);
  padding: 0 12px;
}
.flux-product__qty-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flux-product__qty-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.flux-product__qty-input {
  width: 44px;
  min-width: 44px;
  height: 30px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  -moz-appearance: textfield;
}
.flux-product__qty-input::-webkit-outer-spin-button,
.flux-product__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.flux-product__qty-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}
.flux-product__in-cart-label {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

/* Banners */
.flux-banners-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.flux-banners-row:has(.flux-banner--medium) {
  grid-template-columns: 1fr;
}
.flux-banners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.flux-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  min-height: 240px;
  transition: transform 0.2s;
}
.flux-banner:hover {
  transform: scale(1.02);
}
.flux-banner--large {
  min-height: 280px;
}
.flux-banner--medium {
  min-height: 320px;
}
.flux-banner--small {
  min-height: 200px;
}
.flux-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}
.flux-banner__content {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.flux-banner__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
}
.flux-banner--small .flux-banner__title {
  font-size: 18px;
}
.flux-banner__text {
  font-size: 14px;
  margin: 0;
  opacity: 0.92;
}

/* About section */
.flux-about {
  margin: 64px 0;
}
.flux-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
  align-items: center;
}
.flux-about__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}
.flux-about__content p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: var(--flux-muted);
}
.flux-about__content .flux-btn {
  margin-top: 8px;
}

/* Blog section */
.flux-blog {
  margin: 64px 0;
}
.flux-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.flux-blog__card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--flux-border);
  text-decoration: none;
  color: var(--flux-text);
  transition: box-shadow 0.2s;
}
.flux-blog__card:hover {
  box-shadow: var(--flux-shadow-md);
}
.flux-blog__image {
  width: 100%;
  aspect-ratio: 3/2;
  background-size: cover;
  background-position: center;
}
.flux-blog__body {
  padding: 20px;
}
.flux-blog__meta {
  font-size: 12px;
  color: var(--flux-muted);
  margin-bottom: 8px;
}
.flux-blog__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.flux-blog__excerpt {
  font-size: 14px;
  color: var(--flux-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

/* Subscribe section */
.flux-subscribe {
  margin: 64px 0;
  background: linear-gradient(135deg, #02400d, #65b159);
  border-radius: 22px;
  padding: 48px;
}
.flux-subscribe__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.flux-subscribe__title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
}
.flux-subscribe__text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}
.flux-subscribe__form {
  display: flex;
  gap: 12px;
}
.flux-subscribe__input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font: inherit;
  outline: 0;
}
.flux-subscribe__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.flux-subscribe__input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
}
.flux-subscribe__legal {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* Footer */
.flux-footer {
  margin-top: 40px;
  border-top: 1px solid var(--flux-border);
  background: #fff;
}
.flux-footer__inner {
  padding: 24px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}
.flux-footer h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.flux-footer a {
  color: var(--flux-text);
  text-decoration: none;
}
.flux-footer a:hover {
  text-decoration: underline;
}
.flux-footer__list {
  display: grid;
  gap: 8px;
}
.flux-footer__muted {
  color: var(--flux-muted);
}

/* Breakpoints (360–479 / 480–767 / 768–1023 / 1024–1279 / 1280–1400+) */
@media (max-width: 1279px) {
  :root {
    --flux-container: 1200px;
  }
  .flux-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flux-categories__grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .flux-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .flux-products__grid--frequent {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  :root {
    --flux-container: 960px;
  }
  .flux-topbar__contacts {
    font-size: 12px;
    gap: 10px;
  }
  .flux-header__inner {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
  }
  .flux-header__icons {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .flux-search {
    grid-column: 3 / 4;
  }
  .flux-layout {
    grid-template-columns: 1fr;
  }
  /* Каталог: кнопка «Фильтры» видна на планшете (на 767px дублируется) */
  [data-catalog-filters-toggle] {
    display: inline-flex;
  }
  .flux-checkout-summary {
    position: static;
  }
  .flux-cart {
    grid-template-columns: 1fr;
  }
  .flux-cart-checkout-btn {
    width: 100%;
    max-width: 440px;
  }
  .flux-cart__summary {
    position: static;
  }
  .flux-hero__slide {
    min-height: 420px;
    padding: 28px;
  }
  .flux-hero__title {
    font-size: 38px;
  }
  .flux-categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .flux-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flux-products__grid--frequent {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flux-banners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .flux-about__grid {
    grid-template-columns: 1fr;
  }
  .flux-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flux-subscribe__inner {
    grid-template-columns: 1fr;
  }
  .flux-footer__inner {
    grid-template-columns: 1fr;
  }

  /* Нижняя панель товара: показываем с планшета, чтобы было видно при сужении окна */
  .flux-product-page__sticky-bar {
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--flux-border);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }
  .flux-product-page__sticky-add {
    width: 100%;
  }
  .flux-product-page__sticky-bar--with-qty .flux-product-page__sticky-add {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  /* По умолчанию счётчик скрыт, показывается только после клика «Добавить в корзину» */
  .flux-product-page__quantity {
    display: none !important;
  }
  .flux-product-page__sticky-bar--with-qty .flux-product-page__quantity {
    display: flex !important;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1px solid var(--flux-border);
    border-radius: 12px;
    overflow: hidden;
  }
  .flux-product-page__qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f6f6f9;
    font-size: 20px;
    font-weight: 600;
    color: var(--flux-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .flux-product-page__qty-btn:hover {
    background: #eee;
  }
  .flux-product-page__qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
  }
  .flux-main:has(.flux-product-page) {
    padding-bottom: 80px;
  }
  /* Одна кнопка внизу — в контенте не дублируем */
  .flux-product-page__actions .flux-product-page__add-cart {
    display: none;
  }
}

@media (max-width: 767px) {
  .flux-topbar__ticker {
    flex: 1;
  }
  .flux-topbar__contacts a:last-child {
    display: none;
  }
  .flux-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flux-hero__slide {
    min-height: 380px;
    padding: 22px;
  }
  .flux-hero__title {
    font-size: 32px;
  }
  .flux-hero__text {
    font-size: 14px;
  }
  .flux-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .flux-products__grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
  }
  .flux-products__grid--frequent {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Чтобы вторая колонка не уходила за экран: карточки и контент могут сжиматься */
  .flux-layout > section {
    min-width: 0;
  }
  .flux-mfilter-results {
    min-width: 0;
  }
  .flux-product {
    min-width: 0;
  }
  /* На мобильном только выбор количества, без текста «В корзине» */
  .flux-product__in-cart-label {
    display: none;
  }
  .flux-banners-row {
    grid-template-columns: 1fr;
  }
  .flux-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flux-blog__grid {
    grid-template-columns: 1fr;
  }

  /* Корзина (моб): карточка товара — порядок задаётся в cart.css через grid (фото | top-mobile, затем body) */
  .flux-cart-item {
    padding: 16px 0;
  }
  .flux-cart-item__image {
    width: 80px;
  }
  .flux-cart-item__meta {
    margin-bottom: 8px;
  }

  /* Каталог: на мобильном показываем кнопку «Фильтры», «Сортировка» справа */
  [data-catalog-filters-toggle] {
    display: inline-flex !important;
  }
  .flux-catalog-head__actions {
    flex-shrink: 0;
  }

  /* Каталог: панель фильтров — выезд слева направо, оверлей, крестик сверху */
  .flux-filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .flux-filters-overlay.is-visible {
    display: block;
    opacity: 1;
  }
  .flux-sidebar--filters {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding-top: 56px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }
  .flux-sidebar--filters.is-open {
    transform: translateX(0);
  }
  .flux-sidebar--filters .flux-sidebar__close-btn {
    display: flex;
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--flux-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 12px;
  }
  .flux-sidebar--filters .flux-sidebar__close-btn:hover {
    background: #f0f0f0;
  }
}

@media (max-width: 479px) {
  .flux-container {
    width: calc(100% - 24px);
  }
  
  /* Topbar mobile */
  .flux-topbar__inner {
    justify-content: center;
    padding: 12px 0;
  }
  .flux-topbar__ticker {
    display: none;
  }
  .flux-topbar__contacts {
    gap: 12px;
    font-size: 12px;
  }
  
  /* Header mobile — прижат при скролле как на ПК (sticky из базового .flux-header) */
  .flux-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }
  .flux-header__catalog-btn {
    order: 1;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  .flux-header__catalog-btn svg {
    width: 24px;
    height: 24px;
  }
  .flux-logo {
    order: 2;
  }
  .flux-logo__img {
    height: 32px;
  }
  /* Иконки в стиле референса: 1em (24px), наследование цвета, область нажатия 44px */
  .flux-header__catalog-btn,
  .flux-header__search-toggle,
  .flux-header__icons {
    font-size: 24px;
  }
  .flux-header__search-toggle,
  .flux-header__icons .flux-icon-link {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    color: inherit;
  }
  .flux-header__search-toggle svg,
  .flux-header__icons .flux-icon-link svg {
    width: 1em;
    height: 1em;
    color: inherit;
  }
  .flux-header__search-toggle {
    display: flex !important;
    order: 3;
    margin-left: auto;
    border:none;
    background: transparent;
  }
  .flux-header__icons {
    order: 4;
    gap: 10px;
  }
  .flux-icon-link:nth-child(1),
  .flux-icon-link:nth-child(2) {
    display: none;
  }
  /* Контекст для поиска: overlay только в пределах строки шапки, не на весь экран */
  .flux-header__inner {
    position: relative;
  }
  .flux-search {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 69px;
    z-index: 100;
    background: #fff;
    margin: 0;
    max-width: none;
    padding: 0;
    border-radius: 1px;
    border: none;
    box-shadow: var(--flux-shadow-sm);
    align-items: center;
  }
  .flux-search.is-open {
    display: flex;
  }
  .flux-search input {
    font-size: 16px; /* убирает зум на iOS при фокусе */
  }
  .flux-search__close {
    display: block !important;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Quick links mobile */
  .flux-quick-links {
    padding: 12px 0;
  }
  .flux-quick-links__track {
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* Hero mobile */
  .flux-hero__slide {
    min-height: 340px;
    padding: 18px;
  }
  .flux-hero__title {
    font-size: 26px;
  }
  
  
  /* Categories mobile - horizontal scroll */
  .flux-categories {
    margin: 32px 0;
  }
  .flux-categories__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding-left: 12px;
    padding-right: 12px;
  }
  .flux-categories__grid::-webkit-scrollbar {
    display: none;
  }
  .flux-category {
    flex: 0 0 40%;
  }
  
  /* Products mobile: две колонки, не вылезать за экран */
  .flux-products__grid {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
  }
  .flux-products__grid--frequent {
    grid-template-columns: repeat(2, 1fr);
  }
  .flux-product {
    min-width: 0;
  }
  
  /* Product page mobile */
  .flux-product-page {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .flux-product-page__gallery {
    position: static;
  }
  /* Галерея: горизонтальный слайд, первое фото целиком, второе заходит за экран */
  .flux-product-page__grid {
    display: flex;
    grid-template-columns: unset;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding-left: calc((100vw - 100%) / 2);
    padding-right: 12px;
  }
  .flux-product-page__grid::-webkit-scrollbar {
    display: none;
  }
  .flux-product-page__grid img {
    flex: 0 0 85%;
    width: 85%;
    max-width: none;
    scroll-snap-align: start;
  }
  .flux-product-page__grid img:only-child {
    flex: 0 0 100%;
    width: 100%;
  }
  .flux-product-page__title {
    font-size: 18px;
  }
  .flux-product-page__price .flux-price__now {
    font-size: 20px;
  }
  .flux-product-page__actions {
    flex-wrap: wrap;
  }
  .flux-product-page__add-cart {
    width: 100%;
  }

  /* Banners mobile - horizontal scroll */
  .flux-banners-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding-left: 12px;
    padding-right: 12px;
  }
  .flux-banners-row::-webkit-scrollbar {
    display: none;
  }
  .flux-banner--large {
    flex: 0 0 85%;
  }
  .flux-banner--medium {
    flex: 0 0 100%;
  }
  
  .flux-banners-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding-left: 12px;
    padding-right: 12px;
  }
  .flux-banners-grid::-webkit-scrollbar {
    display: none;
  }
  .flux-banner--small {
    flex: 0 0 45%;
  }
  
  /* Blog mobile - horizontal scroll */
  .flux-blog__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    padding-left: 12px;
    padding-right: 12px;
  }
  .flux-blog__grid::-webkit-scrollbar {
    display: none;
  }
  .flux-blog__card {
    flex: 0 0 80%;
  }
  
  /* Subscribe mobile */
  .flux-subscribe {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .flux-subscribe__inner {
    display: block;
  }
  .flux-subscribe__title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .flux-subscribe__text {
    margin-bottom: 20px;
  }
  .flux-subscribe__form {
    flex-direction: column;
  }
  .flux-subscribe__input {
    width: 100%;
  }
  
  .flux-grid {
    grid-template-columns: 1fr;
  }
}

/* Мобильная версия меню (max-width: 430px) */
@media (max-width: 430px) {
  /* Sidebar на всю ширину */
  .flux-catalog-sidebar.is-open {
    width: 100vw;
    left: 0;
  }
  .flux-catalog-sidebar.is-open::before {
    width: 100vw;
  }
  
  /* Submenu на всю ширину и высоту, поверх sidebar */
  .flux-catalog-submenu {
    position: fixed;
    top: var(--catalog-menu-top, var(--header-only-height, 80px));
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--catalog-menu-top, var(--header-only-height, 80px)));
    margin-left: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0s, visibility 0s;
  }
  .flux-catalog-submenu.is-active {
    transform: translateX(0);
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Показать header submenu на мобильных */
  .flux-catalog-submenu__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--flux-border);
  }
  .flux-catalog-submenu__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--flux-text);
    padding: 0;
  }
  .flux-catalog-submenu__title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
  }
  
  /* Content submenu с padding и scroll */
  .flux-catalog-submenu__content {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - var(--header-only-height, 80px) - 72px);
  }
  
  /* Overlay справа от sidebar - убрать на мобильных */
  .flux-catalog-overlay {
    left: 0;
    top: 0;
  }
}

