/* ==========================================================================
   Astery Tools — главная страница
   Сетка: контейнер 1280 px + поля 24 px (телефон — 12 px)
   Брейкпоинты: ≥1200 десктоп · 1024–1199 ноутбук · 768–1023 планшет · <768 телефон
   ========================================================================== */

/* ---------- Шрифт ---------- */
@font-face {
  font-family: "Golos Text";
  src:
    url("../fonts/Golos-Text_Regular.woff2") format("woff2"),
    url("../fonts/Golos-Text_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src:
    url("../fonts/Golos-Text_Medium.woff2") format("woff2"),
    url("../fonts/Golos-Text_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src:
    url("../fonts/Golos-Text_DemiBold.woff2") format("woff2"),
    url("../fonts/Golos-Text_DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src:
    url("../fonts/Golos-Text_Bold.woff2") format("woff2"),
    url("../fonts/Golos-Text_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --c-primary: #ffa81d;
  --c-primary-hover: #f39a0b;
  --c-accent: #ec6717;
  --c-accent-hover: #d95a0e;
  --c-sale: #c2410c;
  --c-dark: #1c1c1c;
  --c-dark-2: #282828;
  --c-soft: #f2f2f2;
  --c-soft-hover: #e9e9e9;
  --c-white: #ffffff;
  --c-text: #1c1c1c;
  --c-text-2: #5e5e5e;
  --c-text-3: #3a3a3a;
  --c-muted: #8a8a8a;
  --c-old: #6b6b6b;
  --c-border: #e6e6e6;
  --c-dot: #c4c4c4;
  --c-footer-muted: #bdbdbd;
  --c-map: #eceae6;

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --section-gap: 56px;

  --r-banner: 28px;
  --r-card: 22px;
  --r-tile: 24px;
  --r-btn: 14px;
  --r-btn-sm: 12px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t: 0.3s;
  --t-slow: 0.5s;

  --header-bar-h: 64px;
  --tabbar-h: 73px;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none !important;
}
a:focus {
  outline: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
input {
  margin: 0;
}
s {
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--r-btn-sm);
  background: var(--c-dark);
  color: var(--c-white);
  transform: translateY(-150%);
  transition: transform var(--t) var(--ease);
}
.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.show-sm {
  display: none;
}

/* ---------- Иконки и фигуры ---------- */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shape {
  position: absolute;
  pointer-events: none;
  color: var(--c-primary);
}

.pattern {
  background-color: var(--c-dark);
  background-image: url("../img/uzor1.png");
  background-size: 220px 180px;
  background-repeat: repeat;
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-dark);
}
.btn--primary:hover {
  background: var(--c-primary-hover);
}
.btn--dark {
  background: var(--c-dark);
  color: var(--c-white);
}
.btn--dark:hover {
  background: var(--c-dark-2);
}
.btn--light {
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 500;
}
.btn--light:hover {
  background: var(--c-soft);
}
.btn--lg {
  padding: 0 28px;
}
.btn--md {
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-dark);
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    opacity var(--t) var(--ease),
    transform var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.round-btn .icon {
  width: 20px;
  height: 20px;
}
.round-btn:hover {
  background: var(--c-primary);
}
.round-btn:active {
  transform: scale(0.92);
}
.round-btn--outline {
  border: 1px solid var(--c-border);
}
.round-btn--outline:hover {
  border-color: var(--c-primary);
}
.round-btn.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.round-btn.swiper-button-lock {
  display: none;
}

/* ---------- Плашки ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 39px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  transition: background-color var(--t-fast) var(--ease);
}
.tag:hover {
  background: var(--c-accent-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.badge--accent {
  background: var(--c-accent);
  color: var(--c-white);
}
.badge--primary {
  background: var(--c-primary);
  color: var(--c-dark);
}
.badge--dark {
  background: var(--c-dark);
  color: var(--c-white);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--c-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pill--white {
  background: var(--c-white);
  height: 26px;
}

.counter {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.counter.is-bump {
  animation: bump 0.45s var(--ease-out);
}
@keyframes bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.header {
  position: relative;
  z-index: 100;
  background: var(--c-white);
}

.topbar {
  background: var(--c-soft);
  font-size: 13px;
  line-height: 16px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.topbar__city .icon {
  width: 16px;
  height: 16px;
  color: var(--c-accent);
}
.topbar__link {
  transition: color var(--t-fast) var(--ease);
}
.topbar__link:hover,
.topbar__city:hover {
  color: var(--c-accent);
}
.topbar__link--strong {
  font-weight: 600;
}
.topbar__phones {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}
.topbar__phones a {
  transition: color var(--t-fast) var(--ease);
}
.topbar__phones a:hover {
  color: var(--c-accent);
}

.header__main {
  background: var(--c-white);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 33px;
  height: 90px;
  padding-top: 4px;
}

.logo {
  flex-shrink: 0;
  display: block;
}
.logo img {
  width: auto;
  height: 48px;
}

.search {
  position: relative;
  flex: 1 1 auto;
  max-width: 663px;
}
.search__input {
  width: 100%;
  height: 52px;
  padding: 0 64px 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: var(--c-soft);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.search__input::placeholder {
  color: var(--c-muted);
  opacity: 1;
}
.search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search__input:hover {
  background: var(--c-soft-hover);
}
.search__input:focus {
  background: var(--c-white);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(255, 168, 29, 0.18);
}
.search__btn {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  border-radius: 10px;
  background: var(--c-primary);
  transition: background-color var(--t-fast) var(--ease);
}
.search__btn:hover {
  background: var(--c-primary-hover);
}
.search__btn .icon {
  width: 22px;
  height: 22px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 92px;
  font-size: 13px;
  line-height: 16px;
  transition: color var(--t-fast) var(--ease);
}
.action .icon {
  width: 26px;
  height: 26px;
}
.action:hover {
  color: var(--c-accent);
}
.action__icon {
  position: relative;
  display: block;
}
.action--cart .counter {
  top: -4px;
  right: -15px;
}
.action--mobile {
  display: none;
}

/* Навигация второго ряда */
.header__nav {
  position: relative;
}
.header__nav-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  height: 76px;
}
.main-nav {
  height: 52px;
}
.btn--catalog {
  flex-shrink: 0;
  gap: 14px;
  padding: 0 30px 0 20px;
}
.btn--catalog__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}
.btn--catalog__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform var(--t) var(--ease),
    opacity var(--t-fast) var(--ease),
    top var(--t) var(--ease);
}
.btn--catalog__icon span:nth-child(1) {
  top: 0;
}
.btn--catalog__icon span:nth-child(2) {
  top: 6px;
}
.btn--catalog__icon span:nth-child(3) {
  top: 12px;
}
.btn--catalog[aria-expanded="true"] .btn--catalog__icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.btn--catalog[aria-expanded="true"] .btn--catalog__icon span:nth-child(2) {
  opacity: 0;
}
.btn--catalog[aria-expanded="true"] .btn--catalog__icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav__link {
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t) var(--ease-out);
}
.main-nav__link:hover::after {
  transform: scaleX(1);
}
.main-nav__link:hover {
  color: var(--c-accent);
  text-decoration: none;
}
.main-nav__link--accent {
  color: var(--c-accent);
}
.main-nav__link--sale {
  color: var(--c-sale);
}

/* Выпадающий каталог (десктоп) */
.catalog-drop {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--t) var(--ease),
    transform var(--t) var(--ease-out),
    visibility 0s linear var(--t);
}
.catalog-drop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--t) var(--ease),
    transform var(--t) var(--ease-out),
    visibility 0s;
}
.catalog-drop__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  border-radius: var(--r-card);
  background: var(--c-white);
  box-shadow: 0 24px 60px rgba(28, 28, 28, 0.14);
}
.catalog-drop__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  transition: background-color var(--t-fast) var(--ease);
}
.catalog-drop__list a:hover {
  background: var(--c-soft);
}
.catalog-drop__list img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Бургер */
.burger {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.burger__line {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--c-dark);
  /* закрытие: сначала поворот обратно, затем линии расходятся */
  transition:
    top 0.22s var(--ease) 0.18s,
    transform 0.22s var(--ease) 0s,
    opacity 0.1s linear 0.18s;
}
.burger__line:nth-child(1) {
  top: 13px;
}
.burger__line:nth-child(2) {
  top: 19.1px;
}
.burger__line:nth-child(3) {
  top: 25.2px;
}
.burger.is-active .burger__line {
  /* открытие: сначала линии сходятся в центр, затем поворот в крестик */
  transition:
    top 0.22s var(--ease) 0s,
    transform 0.26s var(--ease-out) 0.2s,
    opacity 0.1s linear 0.16s;
}
.burger.is-active .burger__line:nth-child(1) {
  top: 19.1px;
  transform: rotate(45deg);
}
.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.is-active .burger__line:nth-child(3) {
  top: 19.1px;
  transform: rotate(-45deg);
}

/* Мобильное меню */
.menu-overlay {
  position: fixed;
  inset: var(--header-bar-h) 0 0 0;
  z-index: 101;
  background: rgba(28, 28, 28, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    visibility 0s linear 0.35s;
}
.mobile-menu {
  position: fixed;
  top: var(--header-bar-h);
  left: 0;
  bottom: 0;
  z-index: 102;
  width: min(420px, 100%);
  background: var(--c-white);
  transform: translate3d(-100%, 0, 0);
  visibility: hidden;
  transition:
    transform 0.45s var(--ease-out),
    visibility 0s linear 0.45s;
  will-change: transform;
  display: none;
}
.mobile-menu__scroll {
  height: 100%;
  padding: 16px 12px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.is-menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s var(--ease),
    visibility 0s;
}
.is-menu-open .mobile-menu {
  transform: none;
  visibility: visible;
  transition:
    transform 0.45s var(--ease-out),
    visibility 0s;
}
.mobile-menu__catalog {
  gap: 10px;
}
.mobile-menu__list {
  margin-top: 12px;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid var(--c-border);
  font-size: 18px;
  font-weight: 600;
  transition: color var(--t-fast) var(--ease);
}
.mobile-menu__link:hover {
  color: var(--c-accent);
}
.mobile-menu__link--accent {
  color: var(--c-accent);
}
.mobile-menu__link--sale {
  color: var(--c-sale);
}
.mobile-menu__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 20px;
  font-size: 15px;
}
.mobile-menu__sub a {
  display: block;
  padding: 8px 4px;
  color: var(--c-text-3);
}
.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--c-soft);
}
.mobile-menu__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
}
.mobile-menu__city .icon {
  width: 16px;
  height: 16px;
  color: var(--c-accent);
}
.mobile-menu__phone {
  font-size: 20px;
  font-weight: 600;
}
.mobile-menu__phone--sm {
  font-size: 17px;
}
.mobile-menu__mail {
  font-size: 15px;
}

/* Пункты меню появляются по очереди */
.mobile-menu__scroll > * {
  opacity: 0;
  transform: translate3d(-16px, 0, 0);
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease-out);
}
.is-menu-open .mobile-menu__scroll > * {
  opacity: 1;
  transform: none;
}
.is-menu-open .mobile-menu__scroll > :nth-child(1) {
  transition-delay: 0.12s;
}
.is-menu-open .mobile-menu__scroll > :nth-child(2) {
  transition-delay: 0.17s;
}
.is-menu-open .mobile-menu__scroll > :nth-child(3) {
  transition-delay: 0.22s;
}
.is-menu-open .mobile-menu__scroll > :nth-child(4) {
  transition-delay: 0.27s;
}

/* ==========================================================================
   ОБЩЕЕ ДЛЯ СЕКЦИЙ
   ========================================================================== */
.section {
  margin-top: var(--section-gap);
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}
.section__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.2px;
}
.more-link {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-accent);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.more-link:hover {
  color: var(--c-sale);
}
.more-link--strong {
  font-weight: 600;
}

/* Появление при прокрутке */
:root .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.7s var(--ease),
    transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
:root .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН
   ========================================================================== */
.hero {
  padding-top: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 843fr) minmax(0, 421fr);
  gap: 16px;
}
.hero__slider {
  position: relative;
  min-width: 0;
}
.hero__swiper {
  height: 516px;
  border-radius: var(--r-banner);
  background: var(--c-soft);
  /* фикс скругления при анимации в Safari */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}
.hero-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--c-soft);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  padding: 42px 0 0 56px;
}
.hero-slide__eyebrow {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-text-2);
}
.hero-slide__title {
  max-width: 420px;
  margin-top: 23px;
  font-size: 52px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.5px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding: 15px 22px 14px;
  border-radius: 18px;
  background: var(--c-white);
  font-size: 36px;
  font-weight: 600;
  line-height: 42px;
  white-space: nowrap;
}
.price-box__from {
  font-size: 18px;
  font-weight: 400;
  color: var(--c-text-2);
}
.hero-slide__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-slide__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-slide__shape {
  right: -39px;
  bottom: 0;
  width: 470px;
  height: 440px;
}
.hero-slide__img {
  position: absolute;
  right: 65px;
  bottom: 28px;
  width: 305px;
  height: 360px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(28, 28, 28, 0.12));
}
.hero-slide--gen .hero-slide__img {
  right: 24px;
  width: 430px;
  height: 330px;
}
.hero-slide--comp .hero-slide__img {
  right: 40px;
  width: 360px;
  height: 370px;
}

.hero__controls {
  position: absolute;
  left: 56px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto !important;
}
.hero__pagination .swiper-pagination-bullet {
  position: relative;
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 4px;
  background: var(--c-dot);
  opacity: 1;
  overflow: hidden;
  transition:
    width 0.45s var(--ease-out),
    background-color var(--t) var(--ease);
}
.hero__pagination .swiper-pagination-bullet-active {
  width: 28px;
  background: var(--c-dark);
}

/* Баннеры справа */
.hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}
.side-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 28px;
  border-radius: var(--r-banner);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease);
}
.side-banner--dark {
  color: var(--c-white);
}
.side-banner--primary {
  background: var(--c-primary);
  color: var(--c-dark);
}
.side-banner__title {
  position: relative;
  z-index: 2;
  max-width: 200px;
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
}
.side-banner__text {
  position: relative;
  z-index: 2;
  max-width: 230px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 22px;
}
.side-banner--dark .side-banner__text {
  color: #e6e6e6;
}
.side-banner__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}
.side-banner--dark .side-banner__link {
  color: var(--c-primary);
}
.side-banner__link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease-out);
}
.side-banner:hover .side-banner__link .icon {
  transform: translateX(4px);
}
.side-banner__img {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.side-banner__img--mask {
  right: 13px;
  bottom: -10px;
  width: 174px;
  height: 196px;
}
.side-banner:hover .side-banner__img {
  transform: scale(1.05) rotate(-2deg);
}
.side-banner__shape {
  right: -24px;
  bottom: -16px;
  width: 190px;
  height: 190px;
  color: var(--c-accent);
  transition: transform 0.6s var(--ease-out);
}
.side-banner:hover .side-banner__shape {
  transform: translate(-6px, -6px);
}

/* ==========================================================================
   КАТАЛОГ
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.cat-tile {
  position: relative;
  display: block;
  height: 236px;
  padding: 22px;
  border-radius: var(--r-tile);
  background: var(--c-soft);
  overflow: hidden;
  transition: background-color var(--t) var(--ease);
}
.cat-tile:hover {
  background: var(--c-soft-hover);
}
.cat-tile__title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}
.cat-tile__img {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 150px;
  height: 130px;
  object-fit: contain;
  object-position: right bottom;
  transition: transform 0.5s var(--ease-out);
}
.cat-tile:hover .cat-tile__img {
  transform: translateY(-6px) scale(1.04);
}

.popular {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.popular__label {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--c-text-2);
}
.popular__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 17px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.chip:hover {
  border-color: var(--c-primary);
  background: #fff6e8;
}

/* ==========================================================================
   О КОМПАНИИ
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 580fr) minmax(0, 674fr);
  gap: 26px;
  align-items: start;
}
.about__text .section__title {
  margin-bottom: 14px;
}
.about__text p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 26px;
  color: var(--c-text-3);
}
.about__text .more-link {
  display: inline-block;
  margin-top: 18px;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature {
  display: flex;
  gap: 14px;
  min-height: 107px;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--c-soft);
}
.feature > .icon {
  width: 32px;
  height: 32px;
  color: var(--c-accent);
  stroke-width: 1.5;
}
.feature__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}
.feature__text {
  margin-top: 2px;
  font-size: 15px;
  line-height: 21px;
  color: var(--c-text-2);
}

/* ==========================================================================
   АКЦИИ
   ========================================================================== */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 843fr) minmax(0, 421fr);
  gap: 16px;
}
.promo-card {
  position: relative;
  display: block;
  min-height: 298px;
  border-radius: var(--r-banner);
  overflow: hidden;
  isolation: isolate;
  color: var(--c-white);
}
.promo-card--accent {
  background: var(--c-accent);
}
.promo-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 42px 48px 40px;
}
.promo-card--accent .promo-card__body {
  padding: 35px 32px 32px;
}
.promo-card__eyebrow {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.promo-card__title {
  max-width: 380px;
  font-size: 40px;
  font-weight: 600;
  line-height: 44px;
}
.promo-card__title--xl {
  margin-top: 6px;
  font-size: 44px;
  font-weight: 700;
  line-height: 52px;
}
.promo-card__text {
  max-width: 380px;
  margin-top: 10px;
  font-size: 17px;
  line-height: 25px;
  color: #e6e6e6;
}
.promo-card--accent .promo-card__text {
  max-width: 240px;
  margin-top: 4px;
  line-height: 24px;
  color: var(--c-white);
}
.promo-card__btn {
  height: 48px;
  margin-top: 18px;
  padding: 0 24px;
  font-size: 16px;
}
.promo-card__shape {
  top: 0;
  right: 0;
  width: 380px;
  height: 280px;
  color: var(--c-accent);
}
.promo-card__img {
  position: absolute;
  z-index: 1;
  right: 64px;
  bottom: 16px;
  width: 239px;
  height: 230px;
  object-fit: contain;
}
.promo-card--accent .promo-card__shape {
  top: auto;
  right: -20px;
  bottom: -14px;
  width: 200px;
  height: 170px;
  color: var(--c-primary);
}
.promo-card--accent .promo-card__img {
  right: 20px;
  bottom: 14px;
  width: 116px;
  height: 130px;
}
.promo-card:hover .promo-card__btn {
  background: var(--c-primary-hover);
}

/* ==========================================================================
   КАРТОЧКА ТОВАРА
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 13px 13px 17px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-white);
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}
.product-card:hover {
  border-color: var(--c-primary);
}
.product-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 15px;
  border-radius: 16px;
  background: var(--c-white);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card__media img {
  transform: scale(1.05);
}
.product-card .badge {
  position: absolute;
  top: 17px;
  left: 17px;
  z-index: 1;
}
.fav-btn {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-dark);
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.fav-btn .icon {
  width: 20px;
  height: 20px;
  transition:
    fill var(--t-fast) var(--ease),
    transform 0.35s var(--ease-out);
}
.fav-btn:hover {
  background: var(--c-soft-hover);
}
.fav-btn:active {
  transform: scale(0.9);
}
.fav-btn.is-active {
  color: var(--c-accent);
}
.fav-btn.is-active .icon {
  fill: currentColor;
  animation: heart 0.45s var(--ease-out);
}
@keyframes heart {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.product-card__name {
  min-height: 40px;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__name a {
  transition: color var(--t-fast) var(--ease);
}
.product-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.product-card__name a:hover {
  color: var(--c-accent);
}
.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: auto;
  padding-top: 11px;
}
.price {
  font-size: 21px;
  font-weight: 600;
  line-height: 26px;
  white-space: nowrap;
}
.price--sale {
  color: var(--c-sale);
}
.price-old {
  font-size: 14px;
  line-height: 18px;
  color: var(--c-old);
  white-space: nowrap;
}
.btn--cart {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 2px solid transparent;
  border-radius: var(--r-btn-sm);
  font-size: 15px;
}
.btn--cart .btn__icon {
  width: 18px;
  height: 18px;
}
.btn--cart.is-in-cart {
  background: var(--c-white);
  border-color: var(--c-primary);
}
.btn--cart.is-in-cart .btn__icon {
  display: none;
}

/* Слайдеры товаров (padding — чтобы тень и рамка при наведении не обрезались) */
.products-swiper {
  padding: 10px;
  margin: -10px;
}
.products-swiper .swiper-slide {
  height: auto;
}
.products-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================================================
   СЕРВИС И ЮРЛИЦА
   ========================================================================== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.duo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 366px;
  padding: 40px;
  border-radius: var(--r-banner);
  overflow: hidden;
  isolation: isolate;
}
.duo-card > * {
  position: relative;
  z-index: 1;
}
.duo-card--service {
  background: var(--c-primary);
}
.duo-card--b2b {
  color: var(--c-white);
}
.duo-card__title {
  font-size: 34px;
  font-weight: 600;
  line-height: 40px;
}
.duo-card__text {
  max-width: 380px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 25px;
}
.duo-card__address {
  max-width: 480px;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
}
.duo-card__address a {
  transition: color var(--t-fast) var(--ease);
}
.duo-card__address a:hover {
  color: var(--c-white);
}
.duo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.duo-card__shape.shape {
  position: absolute;
  z-index: 0;
  right: -30px;
  bottom: -23px;
  width: 260px;
  height: 240px;
  color: var(--c-accent);
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}
.checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-size: 16px;
  line-height: 22px;
}
.checklist__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--c-primary);
  color: var(--c-dark);
}
.checklist__mark .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* ==========================================================================
   НОВОСТИ
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-white);
  overflow: hidden;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}
.news-card:hover {
  border-color: var(--c-primary);
}
.news-card__media {
  display: grid;
  place-items: center;
  height: 180px;
  padding: 15px;
  background: var(--c-soft);
  overflow: hidden;
}
.news-card__img {
  width: auto;
  height: 150px;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.news-card__img--logo {
  width: 80%;
  height: auto;
  max-height: 150px;
}
.news-card:hover .news-card__img {
  transform: scale(1.05);
}
.news-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
}
.news-card__body {
  padding: 21px 20px 22px;
}
.news-card__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
}
.news-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.news-card__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--c-text-2);
}

/* ==========================================================================
   БРЕНДЫ
   ========================================================================== */
.brands {
  position: relative;
}
.brands__swiper {
  padding: 10px;
  margin: -10px;
}
.brand-card {
  display: grid;
  place-items: center;
  height: 98px;
  padding: 20px 22px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: var(--c-white);
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}
.brand-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}
.brand-card:hover {
  border-color: var(--c-primary);
}
.brand-card:hover img {
  transform: scale(1.05);
}
.brands__prev,
.brands__next {
  position: absolute;
  top: 50%;
  z-index: 2;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(28, 28, 28, 0.06);
}
.brands__prev {
  left: -22px;
}
.brands__next {
  right: -22px;
}

/* ==========================================================================
   МАГАЗИНЫ
   ========================================================================== */
.stores {
  display: grid;
  grid-template-columns: minmax(0, 676fr) minmax(0, 588fr);
  gap: 16px;
}
.stores__list {
  display: grid;
  gap: 12px;
}
.store-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  transition: border-color var(--t) var(--ease);
}
.store-card:hover {
  border-color: var(--c-primary);
}
.store-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.store-card__city {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}
.store-card__addr {
  margin-top: 2px;
  font-size: 16px;
  line-height: 22px;
}
.store-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.store-card__hours {
  font-size: 15px;
  line-height: 20px;
  color: var(--c-text-2);
}
.store-card__phone {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--t-fast) var(--ease);
}
.store-card__phone:hover {
  color: var(--c-accent);
}

.stores__map {
  position: relative;
  min-height: 387px;
  border-radius: var(--r-card);
  background: var(--c-map);
  overflow: hidden;
}
.stores__map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  background: var(--c-accent);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 6px 14px rgba(236, 103, 23, 0.3);
}
.stores__map-note {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--c-white);
  font-size: 13px;
  line-height: 16px;
  color: var(--c-text-2);
}

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */
.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 142px;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--c-soft);
}
.contact-card__label {
  font-size: 14px;
  line-height: 18px;
  color: var(--c-text-2);
}
.contact-card__phone {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  transition: color var(--t-fast) var(--ease);
}
.contact-card__phone--sm {
  margin-top: 2px;
  font-size: 18px;
  line-height: 24px;
}
.contact-card__phone:hover,
.contact-card__mail:hover {
  color: var(--c-accent);
}
.contact-card__mail {
  margin-top: 2px;
  font-size: 15px;
  line-height: 20px;
  transition: color var(--t-fast) var(--ease);
}
.contact-card__strong {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 23px;
}
.contact-card__muted {
  margin-top: 4px;
  font-size: 15px;
  line-height: 20px;
  color: var(--c-text-2);
}
.contact-card__medium {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
}
.contact-card__plain {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text-3);
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.footer {
  margin-top: 72px;
  padding: 56px 0 22px;
  background: var(--c-dark);
  color: var(--c-white);
}
.footer__grid {
  display: grid;
  grid-template-columns: 325fr 235fr 235fr 235fr 250fr;
  gap: 0;
}
.footer__logo {
  display: inline-block;
}
.footer__logo img {
  width: auto;
  height: 46px;
}
.footer__slogan {
  margin-top: 16px;
  font-size: 15px;
  color: var(--c-footer-muted);
}
.footer__phone {
  display: block;
  width: max-content;
  margin-top: 18px;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  transition: color var(--t-fast) var(--ease);
}
.footer__phone--sm {
  margin-top: 10px;
  font-size: 18px;
  line-height: 24px;
}
.footer__mail {
  display: block;
  width: max-content;
  margin-top: 12px;
  font-size: 16px;
  transition: color var(--t-fast) var(--ease);
}
.footer__phone:hover,
.footer__mail:hover {
  color: var(--c-primary);
}
.footer__cities {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-footer-muted);
}
.footer__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: var(--c-primary);
  text-align: left;
  cursor: default;
}
.footer__title .icon {
  display: none;
}
.footer__panel {
  display: grid;
  grid-template-rows: 1fr;
}
.footer__panel > * {
  min-height: 0;
}
.footer__links {
  padding-top: 12px;
  padding-right: 20px;
}
.footer__links li + li {
  margin-top: 10px;
}
.footer__links a {
  display: inline-block;
  font-size: 15px;
  line-height: 20px;
  transition:
    color var(--t-fast) var(--ease),
    transform var(--t) var(--ease-out);
}
.footer__links a:hover {
  color: var(--c-primary);
  transform: translateX(3px);
}
.footer__stores {
  padding-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-footer-muted);
}
.footer__stores li + li {
  margin-top: 12px;
}
.footer__stores b {
  display: block;
  font-weight: 600;
  color: var(--c-white);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 18px;
  color: var(--c-footer-muted);
}
.footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__docs a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}
.footer__docs a:hover {
  color: var(--c-white);
}

/* Нижняя панель на телефоне */
.tabbar {
  display: none;
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

/* ---------- ноутбук и ниже: компактная шапка ---------- */
@media (max-width: 1199.98px) {
  .topbar,
  .header__nav {
    display: none;
  }

  .header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #ededed;
    transition:
      transform 0.4s var(--ease-out),
      box-shadow var(--t) var(--ease);
  }
  .header.is-hidden {
    transform: translate3d(0, calc(-100% - 1px), 0);
  }
  .header.is-scrolled {
    box-shadow: 0 6px 24px rgba(28, 28, 28, 0.06);
  }
  .is-menu-open .header {
    transform: none;
  }

  .header__inner {
    flex-wrap: wrap;
    gap: 0 12px;
    height: auto;
    padding-top: 0;
    padding-bottom: 12px;
  }
  .burger {
    display: block;
  }
  .logo {
    display: flex;
    align-items: center;
    height: var(--header-bar-h);
  }
  .logo img {
    height: 34px;
  }
  .search {
    order: 3;
    flex: 0 0 100%;
    max-width: none;
  }
  .search__input {
    height: 48px;
    padding-left: 16px;
    border-radius: 12px;
  }
  .search__btn {
    top: 3px;
    right: 3px;
    width: 44px;
    height: 42px;
  }
  .search__btn .icon {
    width: 20px;
    height: 20px;
  }
  .header__actions {
    gap: 8px;
    margin-right: -6px;
  }
  .action {
    min-width: 0;
  }
  .action--desktop {
    display: none;
  }
  .action--mobile,
  .action--cart {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
  }
  .action .action__label {
    display: none;
  }
  .action .icon {
    width: 24px;
    height: 24px;
  }
  .action--mobile .icon {
    width: 22px;
    height: 22px;
  }
  .action--cart .counter {
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    margin-top: 16px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

/* ---------- 1200–1399: картинка первого экрана не заходит под кнопки ---------- */
@media (max-width: 1399.98px) and (min-width: 1200px) {
  .hero-slide__img {
    right: 20px;
    width: 262px;
  }
  .hero-slide--gen .hero-slide__img {
    right: 8px;
    width: 330px;
  }
  .hero-slide--comp .hero-slide__img {
    right: 16px;
    width: 290px;
  }
}

/* ---------- 1024–1199 ---------- */
@media (max-width: 1199.98px) and (min-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  .cat-tile {
    height: 210px;
    padding: 18px;
  }
  .cat-tile__title {
    font-size: 17px;
    line-height: 21px;
  }
  .cat-tile__img {
    width: 120px;
    height: 104px;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-grid > :nth-child(n + 5) {
    display: none;
  }
  .promo-card__img {
    right: 24px;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .duo-card {
    padding: 32px;
  }
  .duo-card__title {
    font-size: 30px;
    line-height: 36px;
  }
  .popular {
    align-items: flex-start;
  }
  .popular__label {
    padding-top: 11px;
  }
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
  }
}

/* ---------- планшет и ниже ---------- */
@media (max-width: 1023.98px) {
  :root {
    --section-gap: 48px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .hero-slide__img {
    right: 16px;
    width: 240px;
  }
  .hero-slide--gen .hero-slide__img {
    right: 8px;
    width: 300px;
  }
  .hero-slide--comp .hero-slide__img {
    right: 16px;
    width: 260px;
  }
  .hero-slide__shape {
    right: -90px;
  }

  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .popular {
    align-items: flex-start;
  }
  .popular__label {
    padding-top: 11px;
  }

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

  .promo {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-grid > :nth-child(n + 4) {
    display: none;
  }

  .duo {
    grid-template-columns: 1fr;
  }

  .hscroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hscroll::-webkit-scrollbar {
    display: none;
  }
  .hscroll > .container {
    width: max-content;
    max-width: none;
    margin: 0;
  }
  .news-grid {
    grid-template-columns: repeat(3, 320px);
  }
  .news-card {
    scroll-snap-align: start;
  }

  .brands__prev,
  .brands__next {
    display: none;
  }

  .stores {
    grid-template-columns: 1fr;
  }
  .stores__map {
    min-height: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 24px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__col--stores {
    grid-column: auto;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- телефон (макет 390) ---------- */
@media (max-width: 767.98px) {
  :root {
    --gutter: 12px;
    --section-gap: 40px;
    --r-banner: 24px;
  }
  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  .hide-sm {
    display: none !important;
  }
  .show-sm {
    display: inline;
  }
  p.show-sm,
  div.show-sm {
    display: block;
  }

  .pattern {
    background-size: 176px 144px;
  }

  .section__head {
    margin-bottom: 14px;
  }
  .section__title {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0;
  }
  .more-link {
    font-size: 15px;
  }

  .btn {
    font-size: 16px;
  }
  .tag {
    height: 34px;
    padding: 0 14px;
    font-size: 18px;
  }

  /* Первый экран */
  .hero {
    margin-top: 17px;
  }
  .hero__swiper {
    height: auto;
    border-radius: 24px;
  }
  .hero-slide {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 576px;
  }
  .hero-slide__content {
    max-width: none;
    padding: 22px 22px 0;
  }
  .hero-slide__eyebrow {
    font-size: 14px;
    line-height: 18px;
  }
  .hero-slide__title {
    margin-top: 18px;
    font-size: 34px;
    line-height: 38px;
    letter-spacing: -0.3px;
  }
  .tags {
    gap: 6px;
    margin-top: 13px;
  }
  .price-box {
    gap: 6px;
    margin-top: 14px;
    padding: 9px 16px 8px;
    border-radius: 14px;
    font-size: 28px;
    line-height: 36px;
  }
  .price-box__from {
    font-size: 16px;
  }
  .hero-slide__actions {
    margin-top: 14px;
  }
  .hero-slide__actions .btn--primary {
    width: 100%;
  }
  .hero-slide__help {
    display: none;
  }
  .hero-slide__media {
    position: relative;
    inset: auto;
    flex: 1 0 242px;
    margin-top: 10px;
  }
  .hero-slide__shape {
    right: -20px;
    bottom: 0;
    width: 300px;
    height: 250px;
  }
  .hero-slide__img,
  .hero-slide--gen .hero-slide__img,
  .hero-slide--comp .hero-slide__img {
    left: 50%;
    right: auto;
    bottom: 16px;
    width: 230px;
    height: 226px;
    margin-left: -115px;
  }
  .hero-slide--gen .hero-slide__img {
    width: 300px;
    margin-left: -150px;
  }
  .hero__controls {
    position: static;
    justify-content: center;
    margin-top: 12px;
  }
  .hero__controls .round-btn {
    display: none;
  }
  .hero__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
  }
  .hero__pagination .swiper-pagination-bullet-active {
    width: 24px;
  }

  .hero__side {
    gap: 10px;
    margin-top: 12px;
  }
  .side-banner {
    min-height: 150px;
    padding: 16px;
    border-radius: 20px;
  }
  .side-banner__title {
    max-width: 140px;
    font-size: 18px;
    line-height: 22px;
  }
  .side-banner__text {
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
  }
  .side-banner--primary .side-banner__text {
    font-size: 13px;
    line-height: 17px;
  }
  .side-banner__link {
    display: none;
  }
  .side-banner__img--mask {
    right: -4px;
    bottom: -8px;
    width: 85px;
    height: 96px;
  }
  .side-banner__shape {
    right: -12px;
    bottom: -10px;
    width: 96px;
    height: 90px;
  }

  /* Каталог */
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cat-tile {
    height: 156px;
    padding: 16px;
    border-radius: 20px;
  }
  .cat-tile__title {
    font-size: 17px;
    line-height: 21px;
  }
  .cat-tile__img {
    right: 8px;
    bottom: 8px;
    width: 104px;
    height: 84px;
  }

  .popular {
    margin: 14px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .popular::-webkit-scrollbar {
    display: none;
  }
  .popular__label {
    display: none;
  }
  .popular__list {
    flex-wrap: nowrap;
    gap: 8px;
    padding-right: var(--gutter);
  }
  .chip {
    padding: 0 14px;
    font-size: 14px;
  }

  /* О компании */
  .about__grid {
    gap: 12px;
  }
  .about__text .section__title {
    margin-bottom: 0;
  }
  .about__text p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 22px;
  }
  .features {
    gap: 8px;
  }
  .feature {
    flex-direction: column;
    gap: 14px;
    min-height: 98px;
    padding: 14px;
    border-radius: 16px;
  }
  .feature > .icon {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
  }
  .feature__title {
    font-size: 14px;
    line-height: 18px;
  }
  .feature__text {
    display: none;
  }

  /* Акции: горизонтальная прокрутка */
  .promo-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .promo-scroll::-webkit-scrollbar {
    display: none;
  }
  .promo {
    grid-template-columns: 300px 240px;
    width: max-content;
    max-width: none;
    margin: 0;
    gap: 10px;
  }
  .promo-card {
    min-height: 190px;
    border-radius: 22px;
    scroll-snap-align: start;
  }
  .promo-card__body,
  .promo-card--accent .promo-card__body {
    padding: 26px 20px 20px;
  }
  .promo-card__title {
    max-width: 190px;
    font-size: 22px;
    line-height: 26px;
  }
  .promo-card__title--xl {
    margin-top: 10px;
    font-size: 34px;
    line-height: 40px;
  }
  .promo-card__eyebrow {
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0.5px;
  }
  .promo-card__text,
  .promo-card__btn {
    display: none;
  }
  .promo-card__shape {
    top: auto;
    right: 0;
    bottom: 0;
    width: 150px;
    height: 130px;
  }
  .promo-card__img {
    right: -2px;
    bottom: 10px;
    width: 114px;
    height: 110px;
  }
  .promo-card--accent .promo-card__shape {
    right: -14px;
    bottom: -10px;
    width: 120px;
    height: 100px;
  }
  .promo-card--accent .promo-card__img {
    right: 10px;
    bottom: 8px;
    width: 74px;
    height: 84px;
  }

  /* Товары */
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-grid > :nth-child(n + 4) {
    display: flex;
  }
  .product-grid > :nth-child(n + 5) {
    display: none;
  }
  .product-card {
    padding: 11px 11px 12px;
    border-radius: 18px;
  }
  .product-card__media {
    padding: 8px;
  }
  .product-card .badge {
    top: 11px;
    left: 11px;
    height: 21px;
    padding: 0 8px;
    font-size: 12px;
  }
  .fav-btn {
    display: none;
  }
  .product-card__prices {
    order: 2;
    margin-top: 12px;
    padding-top: 0;
    gap: 0 8px;
  }
  .product-card__name {
    order: 3;
    min-height: 0;
    margin: 4px 0 auto;
    font-size: 14px;
    line-height: 18px;
  }
  .btn--cart {
    order: 4;
    margin-top: 10px;
  }
  .btn--cart .btn__icon {
    display: none;
  }
  .price {
    font-size: 18px;
    line-height: 24px;
  }
  .price-old {
    font-size: 13px;
  }

  .section--slider {
    overflow: hidden;
  }
  .products-swiper {
    overflow: visible;
    padding: 4px 0;
    margin: -4px 0;
  }
  .products-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(5, 168px);
    gap: 10px;
  }

  /* Сервис / юрлица */
  .duo {
    gap: 20px;
  }
  .duo-card {
    min-height: 0;
    padding: 30px 22px 24px;
    border-radius: 24px;
  }
  .duo-card__title {
    font-size: 26px;
    line-height: 32px;
  }
  .duo-card__text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 21px;
  }
  .duo-card--service .duo-card__text {
    max-width: 250px;
  }
  .duo-card__address {
    margin-top: 9px;
    font-size: 14px;
    line-height: 17px;
  }
  .duo-card__actions {
    width: 100%;
    padding-top: 14px;
  }
  .duo-card__actions .btn {
    width: 100%;
  }
  .duo-card__shape.shape {
    top: -20px;
    right: -24px;
    bottom: auto;
    width: 140px;
    height: 130px;
  }
  .checklist {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .checklist__item {
    gap: 10px;
    min-height: 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: 15px;
    line-height: 20px;
  }
  .checklist__mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .checklist__mark .icon {
    width: 14px;
    height: 14px;
  }
  .duo-card--b2b .duo-card__actions {
    padding-top: 18px;
  }

  /* Новости */
  .hscroll {
    scroll-padding-left: var(--gutter);
  }
  .news-grid {
    grid-template-columns: repeat(3, 262px);
    gap: 10px;
  }
  .news-card {
    border-radius: 18px;
  }
  .news-card__media {
    height: 130px;
    padding: 13px;
  }
  .news-card__img {
    height: 104px;
  }
  .news-card__img--logo {
    width: 208px;
    height: auto;
  }
  .news-card__tag {
    top: 10px;
    left: 10px;
    height: 23px;
    padding: 0 10px;
    font-size: 12px;
  }
  .news-card__body {
    padding: 16px 14px 16px;
  }
  .news-card__title {
    font-size: 16px;
    line-height: 21px;
  }
  .news-card__text {
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
  }

  /* Бренды */
  .brand-card {
    height: 68px;
    padding: 12px 15px;
    border-radius: 14px;
  }
  .brand-card img {
    max-height: 40px;
  }

  /* Магазины */
  .stores__list {
    gap: 12px;
  }
  .store-card {
    padding: 16px 17px 18px;
    border-radius: 18px;
  }
  .store-card__city {
    font-size: 18px;
    line-height: 24px;
  }
  .store-card .pill {
    height: 21px;
    padding: 0 10px;
    font-size: 12px;
  }
  .store-card__addr {
    margin-top: 0;
    font-size: 15px;
    line-height: 20px;
  }
  .store-card__foot {
    display: block;
    margin-top: 4px;
  }
  .store-card__hours {
    font-size: 14px;
  }
  .store-card__phone {
    display: inline-block;
    margin-top: 8px;
    font-size: 16px;
  }
  .stores__map {
    display: none;
  }

  /* Контакты */
  .contacts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-card {
    min-height: 0;
    padding: 18px 16px;
    border-radius: 18px;
  }
  .contact-card__label {
    font-size: 13px;
  }
  .contact-card:nth-child(2) .contact-card__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
  }
  .contact-card__phone {
    margin-top: 4px;
    font-size: 20px;
    line-height: 26px;
  }
  .contact-card__phone--sm {
    margin-top: 0;
    font-size: 17px;
    line-height: 24px;
  }

  /* Подвал */
  .footer {
    margin-top: 40px;
    padding: 32px 0 114px;
  }
  .footer__grid {
    display: block;
  }
  .footer__logo img {
    height: 40px;
  }
  .footer__phone {
    margin-top: 26px;
    font-size: 22px;
  }
  .footer__phone--sm {
    margin-top: 4px;
    font-size: 18px;
  }
  .footer__mail {
    margin-top: 6px;
  }
  .footer__brand {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer__col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer__title {
    height: 56px;
    font-size: 17px;
    color: var(--c-white);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .footer__title .icon {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--c-primary);
    transition: transform 0.4s var(--ease-out);
  }
  .footer__title[aria-expanded="true"] .icon {
    transform: rotate(180deg);
  }
  .footer__panel {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
  }
  .footer__panel > * {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  .footer__col.is-open .footer__panel {
    grid-template-rows: 1fr;
  }
  .footer__col.is-open .footer__panel > * {
    opacity: 1;
  }
  .footer__links {
    padding: 0;
  }
  .footer__links li:last-child {
    padding-bottom: 18px;
  }
  .footer__links a {
    font-size: 15px;
  }
  .footer__bottom {
    gap: 8px;
    margin-top: 30px;
    padding-top: 0;
    border-top: 0;
    font-size: 12px;
  }
  .footer__sep {
    display: none;
  }
  .footer__legal {
    display: block;
    margin-top: 8px;
  }
  .footer__docs {
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
  }

  /* Нижняя панель */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 4px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #ededed;
  }
  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    line-height: 13px;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--t-fast) var(--ease);
  }
  .tabbar__item.is-active {
    color: var(--c-accent);
    font-weight: 600;
  }
  .tabbar__item:active .icon {
    transform: scale(0.9);
  }
  .tabbar__item .icon {
    transition: transform var(--t-fast) var(--ease);
  }
}

/* Узкие телефоны */
@media (max-width: 359.98px) {
  .hero-slide__title {
    font-size: 30px;
    line-height: 34px;
  }
  .promo {
    grid-template-columns: 280px 220px;
  }
  .header__actions {
    gap: 4px;
  }
}

/* ---------- Наведение только для мыши ---------- */
@media (hover: none) {
  .product-card:hover .product-card__media img,
  .cat-tile:hover .cat-tile__img,
  .side-banner:hover .side-banner__img {
    transform: none;
  }
}

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  :root .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .related--similar {
    display: block !important ;
  }
}
