/* ЦУНАМИС — дизайн-система магазина: светлый, яркий, «водный» стиль */

:root {
  --color-primary: #6C4AB6;
  --color-primary-dark: #4E2E93;
  --color-primary-light: #EFE9FA;
  --color-secondary: #2E8FE0;
  --color-secondary-light: #E6F3FD;
  --color-accent: #F5A623;
  --color-accent-light: #FDF1DD;
  --color-success: #2FAE66;
  --color-danger: #D64545;
  --color-bg: #F6F8FC;
  --color-surface: #FFFFFF;
  --color-text: #1F2430;
  --color-muted: #6B7686;
  --color-border: #E4E8F0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(76, 46, 147, 0.12);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header { background: var(--color-surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 10px 30px rgba(31, 36, 48, .1); }
.topbar { background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary) 55%, var(--color-secondary)); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 12px; }
.topbar__contacts { display: flex; align-items: center; gap: 18px; }
.topbar a, .topbar__address { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.topbar a { position: relative; }
.topbar a::after { content: ""; position: absolute; left: 20px; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.topbar a:hover { opacity: 1; }
.topbar a:hover::after { transform: scaleX(1); }
.topbar__links { display: flex; gap: 20px; }
.topbar__address { opacity: .8; }

.header-main { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: height .3s ease; }
.site-header.is-scrolled .header-main { height: calc(var(--header-h) - 10px); }
.burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: none; cursor: pointer; border-radius: 12px; }
.burger:hover { background: var(--color-bg); }
.burger__box { position: relative; width: 20px; height: 14px; display: block; }
.burger__box span { position: absolute; left: 0; display: block; width: 20px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s ease, top .28s cubic-bezier(.4,0,.2,1); }
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger.is-active .burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger.is-active .burger__box span:nth-child(2) { opacity: 0; }
.burger.is-active .burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--color-primary-dark); flex-shrink: 0; }
.logo img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(108, 74, 182, .25)); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text::first-line {}
.logo__text { background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary) 55%, var(--color-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo__text small { font-weight: 500; font-size: 11px; color: var(--color-muted); text-transform: none; -webkit-text-fill-color: var(--color-muted); }

.header-search { position: relative; flex: 1; display: flex; align-items: center; max-width: 620px; background: var(--color-bg); border: 1.5px solid transparent; border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.header-search:focus-within { background: var(--color-surface); border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-light), var(--shadow-sm); }
.header-search__icon { border: none; background: transparent; color: var(--color-muted); width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 12px; transition: color .2s ease; }
.header-search:focus-within .header-search__icon { color: var(--color-primary); }
.header-search input { flex: 1; min-width: 0; border: none; background: transparent; padding: 12px 4px; outline: none; font-size: 15px; position: relative; z-index: 1; }
.header-search__ghost { position: absolute; left: 46px; right: 46px; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; overflow: hidden; }
.header-search__ghost-text { color: var(--color-muted); font-size: 15px; white-space: nowrap; opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }
.header-search__ghost-text.is-fading { opacity: 0; transform: translateY(-8px); }
.header-search input:focus ~ .header-search__ghost,
.header-search input:not(:placeholder-shown) ~ .header-search__ghost { opacity: 0; }
.header-search__hint { margin-right: 10px; flex-shrink: 0; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-muted); font-family: inherit; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; box-shadow: 0 1px 0 var(--color-border); }
.header-search input:focus ~ .header-search__hint,
.header-search input:not(:placeholder-shown) ~ .header-search__hint { display: none; }
.header-search--mobile { display: none; max-width: none; margin-bottom: 14px; background: var(--color-bg); border-radius: 14px; }
.header-search--mobile input { padding: 12px 4px; }
.header-search--mobile button { border: none; background: var(--color-primary); color: #fff; padding: 0 18px; border-radius: 11px; margin: 5px; cursor: pointer; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-icon { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 13px; color: var(--color-text); background: transparent; transition: transform .22s cubic-bezier(.34,1.56,.64,1), background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.header-icon:hover { background: var(--color-primary-light); color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.header-icon:active { transform: translateY(0) scale(.94); }
.badge { position: absolute; top: 1px; right: 1px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--color-surface); animation: badge-pop .4s cubic-bezier(.34,1.56,.64,1); }

@keyframes badge-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.main-nav { border-top: 1px solid var(--color-border); }
.main-nav__list { display: flex; flex-wrap: wrap; row-gap: 4px; gap: 2px; padding: 8px 0; }
.main-nav__list > li { position: relative; display: flex; align-items: center; }
.main-nav__list > li > a { position: relative; display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.main-nav__list > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--color-primary); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.main-nav__list > li > a:hover { color: var(--color-primary-dark); background: var(--color-primary-light); }
.main-nav__list > li > a:hover::after { transform: scaleX(1); }
/* Стрелка-переключатель подкатегорий: на десктопе чисто декоративная (раскрытие по наведению),
   на мобильном превращается в отдельную кнопку-аккордеон (см. медиа-запрос ниже) */
.main-nav__caret-btn {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; margin-left: -6px; border: none; background: transparent; color: inherit;
  cursor: pointer; border-radius: 8px; pointer-events: none;
}
.main-nav__caret { transition: transform .2s ease; }
.main-nav__list > li.has-children:hover .main-nav__caret,
.main-nav__list > li.has-children:focus-within .main-nav__caret { transform: rotate(180deg); }
/* невидимый "мостик" над подменю, чтобы курсор не терял наведение при движении вниз */
.main-nav__list > li.has-children::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; z-index: 49;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.main-nav__list > li.has-children:hover::after,
.main-nav__list > li.has-children:focus-within::after { opacity: 1; visibility: visible; pointer-events: auto; }
.main-nav__sub {
  position: absolute; top: 100%; margin-top: 14px; left: 0; background: #fff; box-shadow: var(--shadow-md); border-radius: var(--radius-md);
  padding: 10px; min-width: 230px; z-index: 50; border: 1px solid var(--color-border);
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .2s ease, transform .2s cubic-bezier(.4,0,.2,1), visibility .2s;
}
.main-nav__list > li.has-children:hover .main-nav__sub,
.main-nav__list > li.has-children:focus-within .main-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.main-nav__sub li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; transition: background-color .15s ease, padding-left .15s ease; }
.main-nav__sub li a:hover { background: var(--color-primary-light); padding-left: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary) 60%, var(--color-secondary));
  color: #fff; box-shadow: 0 10px 22px -12px rgba(78, 46, 147, .55);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 14px 28px -12px rgba(78, 46, 147, .65); transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 20px -12px rgba(245, 166, 35, .6); }
.btn-accent:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-primary-light); }
.btn-ghost { background: transparent; color: var(--color-primary-dark); }
.btn-ghost:hover { background: var(--color-primary-light); }
.btn-danger { background: #fff; border-color: var(--color-danger); color: var(--color-danger); }
.btn-danger:hover { background: #FBE9E9; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero / главная ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff; border-radius: var(--radius-lg); margin: 24px auto; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  background: rgba(255,255,255,.12); border-radius: 50%;
}
.hero__text { max-width: 560px; position: relative; z-index: 2; }
.hero__title { font-size: 36px; margin-bottom: 14px; }
.hero__subtitle { font-size: 17px; opacity: .95; margin-bottom: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__image {
  width: 220px; flex-shrink: 0; position: relative; z-index: 2;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.25));
  animation: hero-float 4.5s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* декоративные анимированные волны на дне hero-блока */
.hero__waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 64px; z-index: 0; }
.hero__waves path { fill: rgba(255,255,255,.16); }
.hero__waves--back { animation: hero-wave-scroll 18s linear infinite; opacity: .55; }
.hero__waves--front { height: 46px; animation: hero-wave-scroll 10s linear infinite reverse; }
.hero__waves--front path { fill: rgba(255,255,255,.28); }
@keyframes hero-wave-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* всплывающие пузырьки */
.hero__bubbles { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero__bubbles span {
  position: absolute; bottom: -20px; display: block; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.85), rgba(255,255,255,.08) 70%);
  animation: hero-bubble-rise linear infinite;
}
.hero__bubbles span:nth-child(1) { left: 6%;  width: 14px; height: 14px; animation-duration: 7s;  animation-delay: 0s; }
.hero__bubbles span:nth-child(2) { left: 18%; width: 8px;  height: 8px;  animation-duration: 5.5s; animation-delay: 1.2s; }
.hero__bubbles span:nth-child(3) { left: 32%; width: 18px; height: 18px; animation-duration: 9s;   animation-delay: .4s; }
.hero__bubbles span:nth-child(4) { left: 48%; width: 10px; height: 10px; animation-duration: 6.2s; animation-delay: 2.5s; }
.hero__bubbles span:nth-child(5) { left: 63%; width: 15px; height: 15px; animation-duration: 8s;   animation-delay: 1.6s; }
.hero__bubbles span:nth-child(6) { left: 78%; width: 9px;  height: 9px;  animation-duration: 5s;   animation-delay: .8s; }
.hero__bubbles span:nth-child(7) { left: 90%; width: 12px; height: 12px; animation-duration: 7.4s; animation-delay: 3s; }
@keyframes hero-bubble-rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-260px) scale(.6); opacity: 0; }
}

/* пунктирная «дорожка» бассейна — едет вдоль дна блока */
.hero__lane {
  position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; z-index: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 22px, transparent 22px 44px);
  background-size: 44px 3px; animation: hero-lane-move 2.4s linear infinite; opacity: .5;
}
@keyframes hero-lane-move { from { background-position-x: 0; } to { background-position-x: -44px; } }

@media (prefers-reduced-motion: reduce) {
  .hero__image, .hero__waves, .hero__bubbles span, .hero__lane { animation: none !important; }
}

.section { margin: 44px auto; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.section__head h2 { font-size: 24px; }
.section__link { font-weight: 700; color: var(--color-primary); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.category-card {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 22px 14px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: transform .28s cubic-bezier(.22,.85,.32,1.15), box-shadow .28s ease, border-color .28s ease;
}
.category-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 18px 32px -16px rgba(78,46,147,.3); border-color: transparent; }
.category-card__icon {
  width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--color-primary);
  transition: transform .28s cubic-bezier(.22,.85,.32,1.4), color .28s ease;
}
.category-card:hover .category-card__icon { color: var(--color-primary-dark); }
.category-card:hover .category-card__icon { transform: scale(1.12) rotate(-5deg); }
.category-card__name { font-weight: 700; font-size: 14px; }

.brand-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 10px 20px; font-weight: 700; }
.brand-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Промо-слайдер (баннеры/акции) ---------- */
.promo-slider { position: relative; margin: 28px auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.promo-slider__track { display: flex; transition: transform .55s cubic-bezier(.65,0,.24,1); }
.promo-slider__slide {
  flex: 0 0 100%; min-height: 300px; display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 40px 64px; color: #fff;
}
.promo-slider__slide--wave { background: linear-gradient(120deg, #2E5EA8 0%, var(--color-primary) 55%, var(--color-secondary) 100%); }
.promo-slider__slide--sun { background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-accent) 100%); }
.promo-slider__slide--bubbles { background: linear-gradient(120deg, #1B6FBF 0%, var(--color-secondary) 45%, var(--color-primary) 100%); }
.promo-slider__deco { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.promo-slider__slide--wave .promo-slider__deco { background: radial-gradient(circle at 88% 20%, rgba(255,255,255,.22), transparent 45%), radial-gradient(circle at 78% 85%, rgba(255,255,255,.14), transparent 40%); }
.promo-slider__slide--sun .promo-slider__deco { background: radial-gradient(circle at 85% 30%, rgba(255,255,255,.28), transparent 42%), radial-gradient(circle at 95% 90%, rgba(255,255,255,.16), transparent 38%); }
.promo-slider__slide--bubbles .promo-slider__deco { background-image: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2.5px), radial-gradient(rgba(255,255,255,.2) 3px, transparent 3.5px); background-size: 46px 46px, 90px 90px; background-position: 0 0, 30px 40px; }
.promo-slider__content { position: relative; z-index: 2; max-width: 560px; }
.promo-slider__eyebrow { display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.promo-slider__title { font-size: 30px; margin-bottom: 10px; }
.promo-slider__text { font-size: 16px; opacity: .92; margin-bottom: 22px; }
.promo-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.22); backdrop-filter: blur(6px); border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 3; transition: background-color .2s ease, transform .2s ease;
}
.promo-slider__arrow:hover { background: rgba(255,255,255,.4); }
.promo-slider__arrow:active { transform: translateY(-50%) scale(.92); }
.promo-slider__arrow--prev { left: 18px; }
.promo-slider__arrow--next { right: 18px; }
.promo-slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.promo-slider__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); border: none; cursor: pointer; padding: 0; transition: width .25s ease, background-color .25s ease; }
.promo-slider__dot.is-active { width: 24px; background: #fff; }

/* ---------- Всплывающие акции: модалка и корнер-тост ---------- */
.promo-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.promo-modal[hidden] { display: none; }
.promo-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 15, 26, .55); backdrop-filter: blur(3px); animation: promo-fade-in .25s ease; }
.promo-modal__card {
  position: relative; z-index: 1; background: var(--color-surface); border-radius: var(--radius-lg); padding: 34px 32px 30px;
  max-width: 420px; width: 100%; box-shadow: 0 30px 70px -20px rgba(20,15,40,.45);
  animation: promo-modal-in .35s cubic-bezier(.34,1.4,.5,1);
}
.promo-modal__badge {
  display: inline-block; background: var(--color-accent-light); color: #8A5A00; font-size: 12px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.promo-modal__card h3 { font-size: 22px; margin-bottom: 10px; }
.promo-modal__card p { color: var(--color-muted); margin-bottom: 22px; }
.promo-modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; border: none;
  background: var(--color-bg); color: var(--color-text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
}
.promo-modal__close:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.promo-modal__close:active { transform: scale(.92); }
@keyframes promo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes promo-modal-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.promo-toast {
  position: fixed; left: 18px; bottom: 18px; z-index: 380; display: flex; align-items: flex-start; gap: 12px;
  background: var(--color-surface); border-radius: var(--radius-md); padding: 16px 18px; max-width: 320px;
  box-shadow: 0 20px 50px -14px rgba(20,15,40,.35); border: 1px solid var(--color-border);
  animation: promo-toast-in .4s cubic-bezier(.34,1.3,.5,1);
}
.promo-toast[hidden] { display: none; }
.promo-toast__icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.promo-toast__body strong { display: block; font-size: 14px; margin-bottom: 3px; }
.promo-toast__body p { font-size: 13px; color: var(--color-muted); margin: 0 0 6px; }
.promo-toast__body a { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.promo-toast__close {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 7px; border: none;
  background: transparent; color: var(--color-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.promo-toast__close:hover { background: var(--color-bg); color: var(--color-text); }
@keyframes promo-toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .promo-modal__backdrop, .promo-modal__card, .promo-toast { animation: none !important; }
}

/* ---------- Товарная карточка ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card {
  background: var(--color-surface); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--color-border);
  transition: transform .32s cubic-bezier(.22,.85,.32,1.15), box-shadow .32s ease, border-color .32s ease;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 40px -18px rgba(78, 46, 147, .35), var(--shadow-md);
  border-color: transparent;
}
.product-card__media { position: relative; aspect-ratio: 1/1; background: var(--color-bg); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.85,.32,1); }
.product-card:hover .product-card__media img { transform: scale(1.08) rotate(-.6deg); }
.product-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(to top, rgba(20,14,40,.35), transparent 45%);
}
.product-card:hover .product-card__media::after { opacity: 1; }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .01em; color: #fff; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35);
}
.tag--sale { background: linear-gradient(135deg, #ef4b4b, var(--color-danger)); }
.tag--new { background: linear-gradient(135deg, var(--color-secondary), #1a5fb4); }
.tag--out { background: #8b93a3; }
.product-card__compare {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px); border: none; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: var(--color-primary-dark);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.25); transition: transform .2s ease, background .2s ease, color .2s ease;
  opacity: 0; transform: translateY(-6px) scale(.9);
}
.product-card:hover .product-card__compare, .product-card__compare.is-active { opacity: 1; transform: none; }
.product-card__compare.is-active, .product-card__compare:hover { background: var(--color-primary); color: #fff; }
.product-card__quickadd {
  position: absolute; left: 12px; right: 12px; bottom: -46px; z-index: 2; text-align: center;
  padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none;
  background: rgba(20,14,40,.82); color: #fff; backdrop-filter: blur(6px);
  transition: bottom .3s cubic-bezier(.22,.85,.32,1); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-card:hover .product-card__quickadd { bottom: 12px; }
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card__brand { font-size: 12px; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.product-card__name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.product-card__name a { color: inherit; text-decoration: none; }
.product-card__name a::after { content: ""; position: absolute; inset: 0; }
.product-card__price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 19px; font-weight: 800; color: var(--color-text); }
.price--old { font-size: 13px; color: var(--color-muted); text-decoration: line-through; font-weight: 500; }
.product-card__stock { font-size: 12px; color: var(--color-success); display: flex; align-items: center; gap: 5px; }
.product-card__stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.product-card__stock.is-out { color: var(--color-danger); }
.color-dots { display: flex; gap: 5px; margin-top: 2px; }
.color-dot {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border); transition: transform .15s ease;
}
.product-card:hover .color-dot { transform: scale(1.08); }

/* ---------- Каталог: layout с фильтрами ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; margin: 24px auto 60px; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-header h1 { font-size: 26px; margin: 0; }
.results-count { color: var(--color-muted); font-size: 14px; }
.catalog-toolbar { display: flex; align-items: center; gap: 14px; }
.sort-select {
  padding: 10px 34px 10px 16px; border-radius: 12px; border: 1.5px solid var(--color-border); background-color: #fff; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7686' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; transition: border-color .2s ease;
}
.sort-select:hover, .sort-select:focus { border-color: var(--color-primary); outline: none; }
.filters-toggle { display: none; position: relative; }
.filters-toggle__badge {
  background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; margin-left: 2px;
}

.filters { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); position: sticky; top: calc(var(--header-h) + 90px); }
.filters__sheet-handle { display: none; }
.filters__head { display: none; }
.filters__group { border-bottom: 1px solid var(--color-border); padding-bottom: 16px; margin-bottom: 16px; }
.filters__group:last-child { border-bottom: none; margin-bottom: 0; }
.filters__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.filters__title::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--color-primary); flex-shrink: 0; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; border-radius: 8px; transition: color .15s ease; }
.filter-option:hover { color: var(--color-primary-dark); }
.filter-option input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0;
  width: 19px; height: 19px; border-radius: 6px; border: 1.8px solid var(--color-border);
  background: #fff; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.filter-option input[type="checkbox"]:hover { border-color: var(--color-primary); }
.filter-option input[type="checkbox"]:checked { background: var(--color-primary); border-color: var(--color-primary); }
.filter-option input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.filter-option input[type="checkbox"]:active { transform: scale(.9); }
.filter-option .swatch { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--color-border); display: inline-block; box-shadow: 0 0 0 2px #fff inset; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--color-border); border-radius: 10px; transition: border-color .2s ease; }
.price-range input:focus { border-color: var(--color-primary); outline: none; }
.filters form > .btn-primary { margin-top: 18px; }
.filters form > .btn-ghost { margin-top: 10px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--color-primary-light); color: var(--color-primary-dark); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.filter-chip button { background: none; border: none; cursor: pointer; color: inherit; font-weight: 900; }

.filters-backdrop { display: none; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--color-muted); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; }
.pagination a { background: #fff; border: 1px solid var(--color-border); }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .is-current { background: var(--color-primary); color: #fff; }

/* ---------- Карточка товара ---------- */
.breadcrumbs { font-size: 13px; color: var(--color-muted); margin: 18px auto; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs a:hover { color: var(--color-primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; align-items: start; }
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.gallery__thumbs img.is-active { border-color: var(--color-primary); }

.product-info__brand a { color: var(--color-primary); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.product-info h1 { font-size: 28px; margin: 6px 0 10px; }
.product-info__meta { display: flex; gap: 14px; color: var(--color-muted); font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.product-info__price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.product-info__price .price { font-size: 32px; }
.stock-status { font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.stock-status.in { color: var(--color-success); }
.stock-status.out { color: var(--color-danger); }

.option-group { margin-bottom: 20px; }
.option-group__title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.option-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.option-swatch {
  border: 2px solid var(--color-border); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 14px;
  background: #fff; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.option-swatch.is-selected { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary-dark); }
.option-swatch.is-disabled { opacity: .4; text-decoration: line-through; pointer-events: none; }
.option-swatch .swatch-color { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.qty-input button { width: 38px; height: 42px; border: none; background: #fff; font-size: 18px; cursor: pointer; }
.qty-input input { width: 46px; border: none; text-align: center; height: 42px; }
.add-to-cart-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table td { padding: 10px 4px; font-size: 14px; }
.specs-table td:first-child { color: var(--color-muted); width: 45%; }
.product-tabs { margin-top: 40px; }
.product-tabs h2 { font-size: 20px; margin-bottom: 14px; }

/* ---------- Сравнение ---------- */
.compare-table-wrap { overflow-x: auto; margin: 24px auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; font-size: 14px; }
.compare-table th { background: var(--color-bg); min-width: 220px; }
.compare-product__img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }

/* ---------- Корзина / чекаут ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; margin: 24px auto 60px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-item__name { font-weight: 700; }
.cart-item__variant { color: var(--color-muted); font-size: 13px; }
.cart-item__actions { display: flex; align-items: center; gap: 14px; }
.cart-summary { background: var(--color-surface); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 24px); }
.cart-summary__row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary__row.total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 6px; }
.link-remove { color: var(--color-danger); font-size: 13px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; margin: 24px auto 60px; align-items: start; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel], .form-field input[type=password], .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff;
}
.form-field .help { font-size: 12px; color: var(--color-muted); margin-top: 4px; }
.form-field .errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--color-danger); font-size: 13px; }
.radio-card-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--color-border); border-radius: 12px; padding: 14px; cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--color-primary); }
.radio-card strong { display: block; }
.radio-card span.desc { font-size: 13px; color: var(--color-muted); }
.radio-card.is-checked { border-color: var(--color-primary); background: var(--color-primary-light); }
.demo-note { background: var(--color-accent-light); border: 1px dashed var(--color-accent); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-top: 10px; }

.order-success { text-align: center; max-width: 560px; margin: 60px auto; }
.order-success__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--color-success); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 40px; }

/* ---------- Аккаунт ---------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; margin: 24px auto 60px; }
.account-nav { background: var(--color-surface); border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-sm); }
.account-nav a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.account-nav a:hover { background: var(--color-primary-light); }
.order-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.order-card__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--color-secondary-light); color: var(--color-secondary); }

.perk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.perk-chip {
  display: flex; align-items: center; gap: 12px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(14px) scale(.96); animation: perk-pop-in .5s cubic-bezier(.34,1.4,.5,1) forwards;
}
.perk-chip:nth-child(1) { animation-delay: .05s; }
.perk-chip:nth-child(2) { animation-delay: .18s; }
.perk-chip:nth-child(3) { animation-delay: .31s; }
.perk-chip:nth-child(4) { animation-delay: .44s; }
.perk-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.perk-chip__icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
}
.perk-chip strong { display: block; font-size: 13.5px; }
.perk-chip span { display: block; font-size: 12.5px; color: var(--color-muted); }
@keyframes perk-pop-in {
  0% { opacity: 0; transform: translateY(14px) scale(.96); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .perk-chip { animation: none !important; opacity: 1; transform: none; }
}
.auth-card { max-width: 440px; margin: 50px auto; background: var(--color-surface); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 24px; margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--color-muted); }

/* ---------- Сообщения ---------- */
.messages { margin: 16px auto 0; }
.message { padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.message--success { background: #E6F7EC; color: #1D7A44; }
.message--error { background: #FBE9E9; color: #A62E2E; }
.message--warning { background: var(--color-accent-light); color: #8A5A00; }
.message--info { background: var(--color-secondary-light); color: #1D5FA6; }

/* ---------- Footer ---------- */
.site-footer { background: #201A33; color: #C9C4DC; margin-top: 60px; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.logo--footer { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px; font-size: 13px; }

/* ---------- Прочее ---------- */
.static-page { max-width: 800px; margin: 30px auto 60px; }
.static-page h1 { font-size: 28px; margin-bottom: 18px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin: 24px 0; }
.info-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }

/* ---------- Планшеты и телефоны (≤980px): единая точка переключения на мобильную шапку,
   вертикальную навигацию, стек hero и одноколоночные сетки — раньше это было разбито на
   два несогласованных брейкпоинта (980 и 720), из-за чего в промежутке 721–979px шапка
   ещё работала как десктопная (и переполнялась), а фильтры уже открывались как мобильные ---------- */
@media (max-width: 980px) {
  .topbar { display: none; }
  .header-main { height: 58px; gap: 10px; }
  .site-header.is-scrolled .header-main { height: 58px; }
  .burger { display: flex; }
  .logo__text small { display: none; }
  .header-search { display: none; }
  .header-search--mobile { display: flex; }
  .main-nav {
    display: block; position: fixed; top: 58px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 150;
    padding: 16px 20px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s cubic-bezier(.4,0,.2,1), visibility .22s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .main-nav__list { flex-direction: column; gap: 0; row-gap: 0; }
  .main-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--color-border); }
  .main-nav__list > li > a { padding: 13px 4px; border-bottom: none; border-radius: 0; justify-content: space-between; flex: 1; }
  .main-nav__list > li > a::after { display: none; }
  .main-nav__list > li.has-children::after { display: none; }
  /* Подкатегории на мобильном — аккордеон: по умолчанию свёрнуты, раскрываются по клику на стрелку */
  .main-nav__caret-btn { pointer-events: auto; width: 40px; height: 40px; margin-left: 0; }
  .main-nav__caret-btn:active { background: var(--color-bg); }
  .main-nav__caret-btn[aria-expanded="true"] .main-nav__caret { transform: rotate(180deg); }
  .main-nav__sub {
    display: block; position: static; margin-top: 0; box-shadow: none; padding: 0 0 0 14px; border: none; min-width: 0;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: max-height .28s cubic-bezier(.4,0,.2,1);
    width: 100%; max-height: 0; overflow: hidden;
  }
  .main-nav__sub.is-open { max-height: 600px; padding-bottom: 8px; }

  .hero { flex-direction: column; text-align: center; padding: 32px 24px; }
  .hero__image { width: 160px; }
  .hero__title { font-size: 28px; }
  .hero__actions { justify-content: center; }

  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 220;
    border-radius: 22px 22px 0 0; max-height: 86vh; overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(20, 15, 40, .25); border: none;
    transform: translateY(100%); transition: transform .32s cubic-bezier(.32,.72,0,1);
    padding: 10px 20px 24px;
  }
  .filters.is-open { transform: translateY(0); }
  .filters-backdrop {
    display: block; position: fixed; inset: 0; z-index: 210; background: rgba(17, 15, 26, .5);
    backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .filters-backdrop.is-open { opacity: 1; visibility: visible; }
  .filters__sheet-handle { display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--color-border); margin: 8px auto 6px; }
  .filters__head {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0;
    background: var(--color-surface); padding: 6px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--color-border); z-index: 2;
  }
  .filters__head-title { font-weight: 800; font-size: 17px; }
  .filters__close {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: var(--color-bg); border: none; border-radius: 10px; color: var(--color-text); cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
  }
  .filters__close:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
  .filters__close:active { transform: scale(.92); }
  .filters-toggle { display: inline-flex; }

  .product-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-slider__slide { padding: 30px 28px; min-height: 270px; }
}

/* ---------- Телефоны (≤560px): точечная донастройка размеров, без смены структуры ---------- */
@media (max-width: 560px) {
  .hero__image { width: 130px; }
  .hero__title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-product__img { width: 90px; height: 90px; }
  .promo-slider__slide { padding: 24px 20px; min-height: 240px; }
  .promo-slider__title { font-size: 21px; }
  .promo-slider__text { font-size: 13.5px; margin-bottom: 16px; }
  .promo-slider__arrow { width: 34px; height: 34px; }
  .promo-slider__arrow--prev { left: 8px; }
  .promo-slider__arrow--next { right: 8px; }
  .promo-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
