/* style.css — стили сайта
   Цвета подтягиваются из config.js (JS прописывает CSS-переменные :root) */

:root {
  --color-primary: #0160b4;
  --color-primary-hover: #01447f;
  --color-secondary: #00c484;
  --color-secondary-hover: #008f5f;
  --color-text: #222222;
  --color-heading: #111111;
  --color-light: #f4f7fa;
  --color-white: #ffffff;
  --color-border: #e3e8ee;
  --color-muted: #6b7684;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(1, 96, 180, .10);
  --font: 'Rubik', Arial, sans-serif;
  --header-h: 74px;
}

/* Базовое */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-hover); }
h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: 1230px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--light { background: var(--color-light); }
.section__title { font-size: 2rem; text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 16px; }
.section__title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--color-secondary); border-radius: 2px;
}

/* Кнопки */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 500; font-size: 1rem; text-align: center; transition: background .2s, color .2s, transform .15s;
  border: 2px solid transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn--secondary { background: var(--color-secondary); color: #fff; }
.btn--secondary:hover { background: var(--color-secondary-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--lg { padding: 16px 42px; font-size: 1.1rem; }
.btn--block { display: block; width: 100%; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.header__top { background: var(--color-primary); color: #fff; font-size: .9rem; }
.header__top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.top-menu { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top-menu a { color: rgba(255,255,255,.85); }
.top-menu a:hover { color: #fff; text-decoration: underline; }
.header__phone a { color: #fff; font-weight: 600; white-space: nowrap; }

.header__main-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--color-heading); flex-shrink: 0; }
.logo:hover { color: var(--color-heading); }
.logo > span { display: flex; flex-direction: column; align-items: flex-start; }
.logo__accent { color: var(--color-primary); }
.logo img { max-height: 48px; width: auto; }
/* Подпись под логотипом: капс, адаптивный размер без правок кода.
   clamp() подбирает кегль от ширины экрана, overflow-wrap не даёт тексту вылезти. */
.logo__sub {
  display: block;
  margin-top: 2px;
  font-size: clamp(.52rem, 1.55vw, .78rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo--footer { color: #fff; margin-bottom: 12px; }
.logo--footer .logo__accent { color: var(--color-secondary); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > .nav-item { position: relative; }
.main-nav .nav-link {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  font-weight: 500; color: var(--color-heading); border-radius: 6px; white-space: nowrap;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--color-primary); background: var(--color-light); }
.main-nav .nav-link .caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-item:hover .caret { transform: rotate(-135deg) translateY(-2px); }

/* Мега-меню */
.mega-menu {
  position: absolute; top: 100%; left: 0; min-width: 720px;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  padding: 28px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s; z-index: 50;
  border-top: 3px solid var(--color-secondary);
}
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu__cat-title { font-weight: 600; font-size: .95rem; color: var(--color-primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.mega-menu__cat a { display: block; padding: 4px 0; color: var(--color-text); font-size: .95rem; }
.mega-menu__cat a:hover { color: var(--color-secondary); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* Поиск */
.search { display: flex; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.search__input { border: none; outline: none; padding: 8px 12px; width: 190px; }
.search__btn { padding: 0 12px; color: var(--color-muted); display: flex; align-items: center; transition: color .2s, background .2s; }
.search__btn:hover { color: #fff; background: var(--color-primary); }

/* Поиск в мобильном меню */
.search--mobile { display: flex !important; margin: 0 0 18px; clear: both; }
.search--mobile .search__input { flex: 1; width: auto; min-width: 0; }

/* Кнопка корзины */
.cart-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-light); color: var(--color-primary); transition: background .2s, color .2s; }
.cart-btn:hover { background: var(--color-primary); color: #fff; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--color-secondary); color: #fff; font-size: .75rem; font-weight: 600;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.cart-btn__count.is-empty { display: none; }

/* Бургер */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--color-heading); border-radius: 2px; transition: .25s; }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; top: 0; left: -320px; width: 300px; max-width: 85vw; height: 100vh;
  background: #fff; z-index: 200; box-shadow: var(--shadow); transition: left .3s; overflow-y: auto;
}
.mobile-menu.is-open { left: 0; }
.mobile-menu__inner { padding: 20px; }
.mobile-menu__close { font-size: 2rem; float: right; color: var(--color-muted); }
.mobile-menu nav a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--color-border); color: var(--color-heading); font-weight: 500; }
.mobile-menu__group { padding: 8px; }
.mobile-menu__group > strong { display: block; padding: 10px 0 6px; color: var(--color-primary); }
.mobile-menu__group a { border: none; padding: 6px 8px 6px 16px; font-weight: 400; }
.mobile-menu__contacts { margin-top: 20px; padding: 12px 8px; font-size: .95rem; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
.overlay.is-visible { opacity: 1; visibility: visible; }

/* Hero.
   Фон — акварельная иллюстрация (img/hero-bg.jpg) на белом листе, светлая.
   Поэтому вместо заливки кладём затемняющий градиент: он даёт контраст белому
   тексту и при этом не убивает рисунок. Если картинка не загрузилась —
   background-color остаётся синим фирменным, текст всё равно читается. */
.hero {
  background-color: var(--color-primary-hover);
  background-image:
    linear-gradient(105deg, rgba(1, 44, 82, .90) 0%, rgba(1, 60, 112, .74) 42%, rgba(1, 60, 112, .34) 72%, rgba(1, 60, 112, .18) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: #fff; padding: 110px 0; text-align: center;
  position: relative;
}
/* Текст держим в левой половине: справа на картинке кушетка и шкафы,
   их не надо перекрывать заголовком. */
.hero__inner { position: relative; z-index: 1; }
.hero__title { color: #fff; font-size: 2.6rem; max-width: 850px; margin: 0 auto 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero__subtitle { font-size: 1.15rem; opacity: .95; max-width: 680px; margin: 0 auto 34px; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }

/* Преимущества.
   Сетка адаптивная и самоцентрирующаяся: auto-fit + minmax подбирает число
   колонок под ширину экрана автоматически, justify-content: center центрирует
   неполный последний ряд. Число плиток в config.js можно менять без правок CSS. */
.advantages { padding: 50px 0; }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.adv-card { background: var(--color-light); border-radius: var(--radius); padding: 26px 22px; transition: box-shadow .25s, transform .25s; border-top: 3px solid transparent; }
.adv-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-top-color: var(--color-secondary); }
.adv-card__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.adv-card__icon svg { width: 24px; height: 24px; }
.adv-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.adv-card p { font-size: .9rem; color: var(--color-muted); margin: 0; }

/* Каталог */
.catalog__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  padding: 9px 20px; border-radius: 24px; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-text); font-size: .92rem; font-weight: 500; transition: all .2s;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Шапка каталога: заголовок слева, кнопка «Скачать прайс» справа.
   Заголовок внутри .section__head теряет нижний отступ — его задаёт сам блок. */
.section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.section__head .section__title { margin-bottom: 0; text-align: left; }
.section__head .section__title::after { left: 0; transform: none; }
.catalog__price-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.catalog__price-btn svg { flex-shrink: 0; }
/* Ссылка на прайс в подвале — отдельной строкой под меню «Информация» */
.footer-price-link {
  display: inline-block; margin-top: 10px; font-size: .9rem;
  color: var(--color-secondary); text-decoration: underline;
}
.footer-price-link:hover { color: #fff; }

.catalog__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.catalog__count { color: var(--color-muted); font-size: .92rem; }
.catalog__sort { padding: 9px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; color: var(--color-text); }

.catalog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.catalog__more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 32px; text-align: center; }
.catalog__more[hidden] { display: none; }
.catalog__more-btn { min-width: 220px; justify-content: center; }
.catalog__more-count { color: var(--color-muted); font-size: .92rem; }

.product-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; position: relative;
  cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card .add-to-cart { cursor: pointer; }
.product-card .add-to-cart:disabled { opacity: .85; cursor: default; }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 12px; border-radius: 12px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.product-card__badge--hit { background: var(--color-primary); }
.product-card__badge--new { background: var(--color-secondary); }
.product-card__img { aspect-ratio: 4/3; background: var(--color-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__img .img-placeholder { color: #b7c3d0; }
.product-card__img .img-placeholder svg { width: 64px; height: 64px; }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-card__cat { font-size: .75rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.product-card__name { font-size: .98rem; font-weight: 500; margin: 0 0 10px; }
.product-card__name a { color: var(--color-heading); }
.product-card__name a:hover { color: var(--color-primary); }
.product-card__meta { font-size: .8rem; color: var(--color-muted); margin-bottom: 12px; }
.product-card__bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-card__price { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.product-card__price small { font-weight: 400; font-size: .78rem; color: var(--color-muted); }
.add-to-cart {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius);
  background: var(--color-secondary); color: #fff; font-size: .88rem; font-weight: 500; transition: background .2s;
}
.add-to-cart:hover { background: var(--color-secondary-hover); }
.add-to-cart.added { background: var(--color-primary); }

.catalog__empty { text-align: center; padding: 60px 0; color: var(--color-muted); }

/* О компании / Доставка / Контакты */
.about__inner { max-width: 860px; margin: 0 auto; }
.about__list { margin-top: 18px; }
.about__list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.about__list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 3px solid var(--color-secondary); border-bottom: 3px solid var(--color-secondary); transform: rotate(-45deg);
}

.delivery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.delivery-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 26px; border-top: 3px solid var(--color-primary); }
.delivery-card h3 { color: var(--color-primary); font-size: 1.1rem; }

/* С нами работают: сетка на больших экранах и медленная лента на телефоне. */
.partners__viewport { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.partners__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(18px, 3vw, 40px); width: 100%; padding: 6px 0; }
.partners__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); height: 96px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 1.8vw, 20px); transition: box-shadow .2s, transform .2s; }
.partners__item:hover { box-shadow: 0 6px 18px rgba(10, 20, 35, .1); transform: translateY(-2px); }
.partners__item img { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .2s, opacity .2s; }
.partners__item:hover img { filter: none; opacity: 1; }
.partners__placeholder { color: var(--color-muted); font-weight: 600; font-size: .95rem; text-align: center; letter-spacing: .02em; }
.partners__item--clone { display: none; }
@media (max-width: 900px) { .partners__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 24px); } }
@keyframes partners-scroll { to { transform: translateX(calc(-1 * var(--partners-distance, 50%))); } }

.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacts__info > div { margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.contacts__info .ico { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.contacts__info strong { display: block; color: var(--color-heading); }
.contacts__form { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contacts__form h3 { margin-bottom: 18px; }
.form-required-note { margin: -6px 0 16px; color: var(--color-muted); font-size: .82rem; }
.form-field { display: block; min-width: 0; }
.form-field__label { display: block; margin-bottom: 6px; color: var(--color-heading); font-size: .9rem; font-weight: 500; }
.required-mark { color: #c62828; font-weight: 700; }
.contacts__form-note.is-error, .modal__success.is-error { color: #c62828; }
.contacts__form input:not([type="checkbox"]):not([type="radio"]), .contacts__form textarea,
.modal form input:not([type="checkbox"]):not([type="radio"]), .modal form textarea {
  width: 100%; max-width: 100%; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius); outline: none; transition: border-color .2s; resize: vertical;
}
.customer-type { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.customer-type legend { margin-bottom: 8px; padding: 0; color: var(--color-heading); font-size: .9rem; font-weight: 500; }
.customer-type__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.customer-type__option { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-muted); font-size: .9rem; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.customer-type__option[hidden] { display: none; }
.customer-type__options:has(.customer-type__option[hidden]) { grid-template-columns: 1fr; }
.customer-type__option:has(input:checked) { border-color: var(--color-primary); background: var(--color-light); color: var(--color-primary); font-weight: 600; }
.customer-type__option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.customer-type__option:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.contacts__form input:focus, .contacts__form textarea:focus,
.modal form input:focus, .modal form textarea:focus { border-color: var(--color-primary); }
.contacts__form-note { margin: 12px 0 0; font-size: .9rem; color: var(--color-secondary-hover); font-weight: 500; }

/* Чекбокс согласия на обработку персональных данных (152-ФЗ).
   Галочка по умолчанию НЕ проставлена, поле обязательно. */
.form-consent { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin: 4px 0 12px; font-size: .82rem; line-height: 1.35; color: var(--color-muted); overflow-wrap: anywhere; cursor: pointer; }
.form-consent input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; padding: 0; accent-color: var(--color-primary); cursor: pointer; }
.form-consent > span { flex: 1 1 auto; min-width: 0; }
.form-consent a { color: var(--color-primary); text-decoration: underline; }
.form-consent a:hover { color: var(--color-primary-hover); }

/* Подвал */
.footer { background: #101c2b; color: rgba(255,255,255,.75); padding-top: 56px; }
/* Сетка подвала: auto-fit + minmax держит колонки одинаковыми и переносит их
   на узких экранах; align-items: start прижимает содержимое колонок к верху,
   чтобы блок с логотипом не «съезжал» по вертикали при длинной подписи. */
.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  align-items: start;
}
.footer__col--brand { min-width: 0; }
.footer__col--brand #footer-slogan { margin-top: 4px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer nav a { display: block; padding: 4px 0; color: rgba(255,255,255,.7); }
.footer nav a:hover { color: var(--color-secondary); }
.footer__col p { font-size: .9rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; text-align: center; color: rgba(255,255,255,.5); }
/* Юридические сведения о владельце (ст. 11 149-ФЗ) и ссылки на политику ПД */
#footer-legal { margin-bottom: 8px; font-size: .8rem; line-height: 1.5; }
#footer-legal p { margin-bottom: 4px; }
#footer-legal a { color: rgba(255,255,255,.7); text-decoration: underline; }
#footer-legal a:hover { color: var(--color-secondary); }

/* Контакты в подвале: каждый пункт — своя строка.
   Телефоны и e-mail не переносятся по слогам (nowrap), адрес переносится по словам —
   именно из-за общего переноса номер «+7 (910) 767-76-67» рвался на две строки. */
.footer-contacts { display: flex; flex-direction: column; gap: 4px; }
#footer-contacts p { margin: 0; }
#footer-contacts .footer-contact__phone,
#footer-contacts .footer-contact__email { display: block; white-space: nowrap; }
#footer-contacts .footer-contact__manager { display: block; margin-top: 6px; font-size: .85rem; color: rgba(255,255,255,.55); }
#footer-contacts .footer-contact__address { display: block; margin-top: 6px; overflow-wrap: break-word; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--color-secondary); }

/* Корзина (боковая панель) */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100vh;
  background: #fff; z-index: 200; box-shadow: -4px 0 24px rgba(0,0,0,.15);
  display: flex; flex-direction: column; transition: right .3s;
}
.cart-drawer.is-open { right: 0; }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--color-border); }
.cart-drawer__head h3 { margin: 0; }
.cart-drawer__close { font-size: 1.9rem; color: var(--color-muted); line-height: 1; }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 14px 22px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); align-items: center; }
.cart-item__img { width: 56px; height: 56px; border-radius: 6px; background: var(--color-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #b7c3d0; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: .88rem; font-weight: 500; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__price { font-size: .82rem; color: var(--color-muted); }
.cart-item__qty { display: flex; align-items: center; gap: 6px; }
.cart-item__qty button { width: 26px; height: 26px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 1rem; line-height: 1; color: var(--color-primary); transition: background .15s; }
.cart-item__qty button:hover { background: var(--color-light); }
.cart-item__qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-item__remove { color: #c0392b; font-size: 1.25rem; line-height: 1; padding: 4px; }
.cart-drawer__empty { flex: 1; display: none; align-items: center; justify-content: center; color: var(--color-muted); }
.cart-drawer.is-empty .cart-drawer__empty { display: flex; }
.cart-drawer.is-empty .cart-drawer__items, .cart-drawer.is-empty .cart-drawer__foot { display: none; }
.cart-drawer__foot { padding: 18px 22px; border-top: 1px solid var(--color-border); }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.05rem; }
.cart-drawer__total strong { color: var(--color-primary); font-size: 1.3rem; }
.cart-drawer__foot .btn + .btn { margin-top: 10px; }

/* Модальные окна */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(10, 20, 35, .55); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { background: #fff; border-radius: var(--radius); padding: 30px; width: 100%; min-width: 0; max-width: 480px; position: relative; max-height: 90vh; overflow-x: hidden; overflow-y: auto; transform: translateY(16px); transition: .25s; }
#order-form { min-width: 0; }
.modal.is-open .modal__box { transform: translateY(0); }
.modal__box--product { max-width: 720px; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--color-muted); line-height: 1; background: rgba(255, 255, 255, .92); border-radius: 50%; box-shadow: 0 2px 8px rgba(10, 20, 35, .18); }
.modal__close:hover { color: var(--color-heading); background: #fff; }
.modal__hint { font-size: .9rem; color: var(--color-muted); }
.modal__summary { background: var(--color-light); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.modal__success { text-align: center; padding: 20px 0; color: var(--color-secondary-hover); font-weight: 600; font-size: 1.05rem; }

/* Карточка товара в модалке */
.product-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product-modal__img { border-radius: var(--radius); background: var(--color-light); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: #b7c3d0; overflow: hidden; }
.product-modal__img img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__img svg { width: 90px; height: 90px; }
.product-modal__cat { font-size: .78rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.product-modal__name { font-size: 1.3rem; margin-bottom: 10px; }
.product-modal__article { font-size: .85rem; color: var(--color-muted); margin-bottom: 14px; }
.product-modal__desc { font-size: .95rem; margin-bottom: 18px; }
.product-modal__price { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); margin-bottom: 18px; }
.product-modal__price small { font-weight: 400; font-size: .9rem; color: var(--color-muted); }
.product-modal__buy { display: flex; gap: 12px; align-items: center; }
.product-modal__docs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.product-modal__docs-title { font-weight: 600; font-size: .95rem; color: var(--color-heading); margin-bottom: 10px; }
.product-modal__doc { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--color-primary); text-decoration: none; }
.product-modal__doc:hover { text-decoration: underline; }
.product-modal__doc svg { flex-shrink: 0; }
/* Пояснение, когда документов у товара нет (вместо неактивной ссылки) */
.product-modal__docs-note { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--color-muted); }
.qty-input { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.qty-input button { width: 38px; height: 42px; font-size: 1.2rem; color: var(--color-primary); }
.qty-input input { width: 52px; height: 42px; border: none; text-align: center; font-weight: 600; outline: none; }

/* Адаптив */
/* До 1240px логотип + меню + поиск не помещаются вместе —
   скрываем поиск, чтобы убрать горизонтальное переполнение */
@media (max-width: 1240px) {
  .search { display: none; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .mega-menu { min-width: 560px; grid-template-columns: repeat(2, 1fr); }
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .search__input { width: 190px; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .delivery__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0; }
  .hero__title { font-size: 2rem; }
  .header__main-inner { gap: 12px; }
  .logo { font-size: 1.2rem; }
  .logo__sub { display: none; }
}
@media (max-width: 640px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .search { display: none; }
  .header__top-inner { justify-content: center; min-height: 34px; font-size: .82rem; }
  .top-menu { display: none; }
  .section { padding: 48px 0; }
  .product-modal { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 1rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .header__main-inner { min-height: 60px; gap: 8px; }
  .logo { font-size: 1.05rem; gap: 6px; }
  .cart-btn { width: 40px; height: 40px; flex-shrink: 0; }
  .burger { padding: 6px; flex-shrink: 0; }
  /* Фильтры — горизонтальная прокрутка */
  .catalog__filters {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px;
    padding-bottom: 8px; margin-bottom: 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .catalog__filters .filter-btn { flex-shrink: 0; white-space: nowrap; }
  /* Тулбар каталога в столбец */
  .catalog__toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Шапка каталога на телефоне: кнопка прайса на всю ширину */
  .section__head { flex-direction: column; align-items: stretch; gap: 14px; }
  .section__head .section__title { text-align: center; }
  .section__head .section__title::after { left: 50%; transform: translateX(-50%); }
  .catalog__price-btn { justify-content: center; width: 100%; }
  .catalog__toolbar .catalog__sort { width: 100%; }
  .catalog__more { padding-top: 24px; }
  .catalog__more-btn { width: 100%; }
  /* Карточка товара компактнее */
  .product-card__body { padding: 12px; }
  .product-card__title { font-size: .92rem; }
  .product-card__bottom { align-items: flex-start; gap: 8px; }
  .product-card__price { font-size: 1rem; }
  .add-to-cart { width: 100%; justify-content: center; padding: 9px 10px; }
  /* Корзина-выдвижная панель на всю ширину */
  .cart-drawer { width: 100%; max-width: 100vw; }
  /* Модалки с отступами */
  .modal { padding: 12px; }
  .modal__box { margin: 0; padding: 24px 20px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .customer-type__options { grid-template-columns: 1fr; }
  /* Крестик не перекрывает фото товара */
  .modal__box--product { padding-top: 56px; }
  .modal__box--product .modal__close { top: 10px; right: 10px; }
}
@media (max-width: 640px) {
  .partners__viewport { width: min(100% - 24px, 560px); overflow: hidden; }
  .partners__track {
    display: flex; flex-wrap: nowrap; gap: 12px; width: 100%;
    padding: 6px 0; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .partners__track::-webkit-scrollbar { display: none; }
  .partners__track.is-animated {
    width: max-content; overflow: visible;
    animation: partners-scroll 42s linear infinite;
    will-change: transform;
  }
  .partners__track.is-animated .partners__item--clone { display: flex; }
  .partners__item { flex: 0 0 min(76vw, 280px); height: 90px; padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners__track.is-animated { overflow-x: auto; animation: none; will-change: auto; }
  .partners__track.is-animated .partners__item--clone { display: none; }
}
@media (max-width: 420px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.4rem; }
  .btn--lg { width: 100%; text-align: center; }
}

/* Серверные страницы каталога, поиска и товаров */
.breadcrumbs { max-width: 1180px; margin: 0 auto; padding: 24px 20px 0; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 7px; color: var(--color-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--color-border); }
.breadcrumbs a { color: var(--color-primary); }
.seo-catalog .section__head { align-items: flex-start; }
.seo-page-title { margin-bottom: 16px; }
.seo-category-description { max-width: 820px; margin: 0; line-height: 1.65; color: var(--color-muted); }
.catalog__filters a.filter-btn { display: inline-flex; align-items: center; }
.subcategory-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.subcategory-links a { display: inline-flex; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-primary); background: #fff; text-decoration: none; font-size: .88rem; }
.subcategory-links a:hover,
.subcategory-links a.is-active { border-color: var(--color-primary); color: #fff; background: var(--color-primary); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination__link { min-width: 40px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-primary); background: #fff; text-align: center; text-decoration: none; }
.pagination__link:hover { border-color: var(--color-primary); }
.pagination__link.is-active { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.pagination__gap { padding: 0 4px; color: var(--color-muted); }
.search-page-form { margin: 24px 0; }
.search-page-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.search-page-form > div { display: flex; gap: 10px; }
.search-page-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; }
.product-page { padding-top: 32px; }
.product-page__layout { display: grid; grid-template-columns: minmax(280px, 480px) minmax(0, 1fr); align-items: start; gap: 44px; }
.product-page__image { display: flex; align-items: center; justify-content: center; min-height: 360px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.product-page__image img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.product-page__category { display: inline-block; margin-bottom: 12px; color: var(--color-primary); font-size: .9rem; }
.product-page__info h1 { margin: 0 0 16px; color: var(--color-heading); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.25; }
.product-page__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--color-muted); font-size: .92rem; }
.product-page__price { margin-top: 22px; color: var(--color-primary); font-size: 2rem; font-weight: 700; }
.product-page__price small { color: var(--color-muted); font-size: .9rem; font-weight: 400; }
.product-page__price-note { color: var(--color-muted); font-size: .88rem; line-height: 1.5; }
.product-page__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 24px 0 30px; }
.product-page__description { padding-top: 24px; border-top: 1px solid var(--color-border); line-height: 1.7; }
.product-page__description h2,
.product-page__docs h2 { margin: 0 0 14px; font-size: 1.25rem; }
.product-page__description ul { padding-left: 22px; }
.product-page__docs { margin-top: 28px; }
.product-page__docs > a { display: block; margin: 8px 0; }
.product-specs { margin: 18px 0 0; }
.product-specs > div { display: grid; grid-template-columns: minmax(130px, 40%) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.product-specs dt { font-weight: 600; }
.product-specs dd { margin: 0; overflow-wrap: anywhere; }
.related-products .section__title { margin-bottom: 28px; }
.not-found { min-height: 48vh; text-align: center; }
.not-found__code { margin: 0; color: var(--color-primary); font-size: 5rem; font-weight: 800; line-height: 1; }
.not-found h1 { font-size: 2rem; }
.not-found__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.seo-noscript { padding: 24px 20px; text-align: center; }
@media (max-width: 900px) {
  .product-page__layout { grid-template-columns: 1fr; gap: 28px; }
  .product-page__image { min-height: 280px; }
  .product-page__image img { max-height: 500px; }
}
@media (max-width: 640px) {
  .breadcrumbs { padding: 16px 16px 0; font-size: .8rem; }
  .search-page-form > div { flex-direction: column; }
  .search-page-form .btn { width: 100%; }
  .product-page__price { font-size: 1.65rem; }
  .product-page__buy { align-items: stretch; flex-direction: column; }
  .product-page__buy .qty-input { align-self: flex-start; }
  .product-specs > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Уведомление об использовании cookie (ст. 12 149-ФЗ).
   Показывается один раз, скрывается по кнопке «Принять» или клавишей Esc. */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px 20px; padding: 14px 20px;
  background: #101c2b; color: rgba(255,255,255,.85);
  box-shadow: 0 -4px 20px rgba(0,0,0,.18); font-size: .88rem; line-height: 1.4;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { margin: 0; max-width: 860px; }
.cookie-bar__text a { color: var(--color-secondary); text-decoration: underline; }
.cookie-bar__btn { padding: 9px 22px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; padding: 12px 16px; }
  .cookie-bar__btn { width: 100%; }
}

/* Developer credit in footer (local) */
.footer__dev { margin: 8px 0 0; font-size: .8rem; color: rgba(255,255,255,.45); }
.footer__dev a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .15s ease; }
.footer__dev a:hover { color: #fff; text-decoration: underline; }

/* Компоновка каталога: общая для главной и серверных страниц. */
[hidden] { display: none !important; }
:root { --radius: 10px; --shadow: 0 10px 30px rgba(20, 45, 72, .10); }
.section__eyebrow { display: block; margin-bottom: 7px; color: var(--color-primary); font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.section__link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: .92rem; font-weight: 500; }
.header__supplier { color: rgba(255,255,255,.9); white-space: nowrap; }
.header__top-inner { min-height: 38px; }
.header__main-inner { min-height: 78px; gap: 24px; }
.header__main-inner > .logo { margin-right: auto; }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1.35; }
.header__phone a { color: var(--color-heading); font-size: 1.08rem; }
.header__phone span { color: var(--color-muted); font-size: .74rem; }
.header__catalog-bar { border-top: 1px solid var(--color-border); }
.header__catalog-inner { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.header__catalog-inner .main-nav { flex: 0 1 auto; gap: 3px; }
.header__catalog-inner .nav-link { min-height: 42px; padding: 10px 11px; font-size: .88rem; }
.header__catalog-inner .nav-link--catalog { padding: 11px 18px; background: var(--color-primary); color: #fff; }
.header__catalog-inner .nav-link--catalog:hover { background: var(--color-primary-hover); color: #fff; }
.header__catalog-inner .nav-link--catalog .caret { margin-left: 3px; }
.header__catalog-inner .search { flex: 1 1 280px; min-width: 150px; margin-left: auto; border-radius: 7px; }
.header__catalog-inner .search__input { flex: 1 1 auto; width: auto; min-width: 0; min-height: 42px; padding: 9px 14px; font-size: .88rem; }
.header__catalog-inner .search__btn { gap: 6px; background: var(--color-primary); color: #fff; font-size: .86rem; }
.header__catalog-inner .search__btn:hover { background: var(--color-primary-hover); }
.header__actions { gap: 12px; }
.cart-btn { width: auto; min-width: 46px; padding: 0 12px; gap: 8px; border-radius: 7px; }
.cart-btn__count { position: static; min-width: 20px; }
.mega-menu { min-width: min(960px, calc(100vw - 40px)); max-height: min(70vh, 660px); overflow-y: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.mega-menu__cat { min-width: 0; }
.mega-menu__cat-title { line-height: 1.4; }
.hero { padding: 82px 0; text-align: left; background-position: center, 70% center; }
.hero__content { max-width: 690px; }
.hero__eyebrow { display: inline-flex; margin-bottom: 17px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; color: #fff; font-size: .76rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.hero__title { max-width: 680px; margin: 0 0 18px; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.13; }
.hero__subtitle { max-width: 610px; margin: 0 0 30px; font-size: 1.08rem; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.hero__consultation { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.5); }
.hero__consultation:hover { color: #fff; border-color: #fff; }
.advantages { padding: 28px 0; border-bottom: 1px solid var(--color-border); }
.advantages__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.adv-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--color-border); border-top-width: 1px; background: #fff; }
.adv-card:hover { transform: translateY(-2px); border-top-color: var(--color-border); }
.adv-card__icon { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; border-radius: 8px; }
.adv-card h3 { margin: 0 0 3px; font-size: .98rem; }
.adv-card p { font-size: .82rem; line-height: 1.45; }
.category-showcase { padding-top: 54px; padding-bottom: 56px; background: #f4f6f8; }
.category-showcase .section__head { margin-bottom: 24px; }
.category-showcase .section__title { padding-bottom: 0; }
.category-showcase .section__title::after { display: none; }
.category-showcase__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 224px; gap: 16px; }
.category-tile { position: relative; display: flex; min-width: 0; overflow: hidden; padding: 24px; border: 1px solid #e1e6eb; border-radius: 8px; background: #fff; color: var(--color-heading); isolation: isolate; transition: border-color .2s, box-shadow .2s, transform .2s; }
.category-tile:first-child { grid-column: span 2; grid-row: span 2; }
.category-tile:hover { border-color: var(--color-primary); color: var(--color-heading); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-tile__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; width: 66%; }
.category-tile__number { margin-bottom: 12px; color: var(--color-primary); font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.category-tile h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.category-tile:first-child h3 { max-width: 290px; font-size: 1.65rem; }
.category-tile__link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 15px; color: var(--color-primary); font-size: .78rem; font-weight: 500; }
.category-tile__image { position: absolute; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; width: 54%; height: 72%; pointer-events: none; }
.category-tile__image::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.3) 30%, transparent 65%); }
.category-tile__image img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; mix-blend-mode: multiply; }
.category-tile:first-child .category-tile__image { width: 67%; height: 77%; }
.category-tile:first-child .category-tile__content { width: 59%; }
.catalog { background: #fff; }
.catalog .section__title { font-size: 1.85rem; }
.catalog__filters { justify-content: flex-start; gap: 8px; padding-bottom: 4px; }
.filter-btn { border-radius: 6px; padding: 8px 15px; font-size: .85rem; }
.catalog__grid { gap: 18px; }
.product-card { border-radius: 7px; cursor: default; }
.product-card:hover { transform: translateY(-2px); }
.product-card__img { aspect-ratio: 1 / .86; padding: 18px; background: #fff; border-bottom: 1px solid #edf0f3; }
.product-card__img img { object-fit: contain; }
.product-card__body { padding: 15px 16px 17px; }
.product-card__name { min-height: 3.7em; font-size: .9rem; line-height: 1.45; }
.product-card__name a { font-weight: 400; }
.product-card__cat { min-height: 2.7em; font-size: .68rem; line-height: 1.35; }
.product-card__meta { min-height: 1.5em; font-size: .74rem; }
.product-card__bottom { align-items: stretch; flex-direction: column; gap: 12px; }
.product-card__price { color: var(--color-heading); font-size: 1.12rem; }
.add-to-cart { justify-content: center; min-height: 40px; border-radius: 5px; }

@media (max-width: 1240px) {
  .header__catalog-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .header__catalog-inner .main-nav { width: 100%; justify-content: space-between; }
  .header__catalog-inner .search { flex-basis: 100%; max-width: none; margin-left: 0; }
  .header__catalog-inner .search__input { width: auto; }
  .header__supplier { font-size: .82rem; }
}
@media (max-width: 1100px) {
  .header__catalog-inner { padding-top: 10px; }
  .header__catalog-inner .search { display: flex; }
  .header__catalog-inner .search__input { width: auto; }
  .category-showcase__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .category-tile:first-child { grid-column: span 1; grid-row: span 1; }
  .category-tile:first-child h3 { font-size: 1.08rem; }
  .category-tile:first-child .category-tile__content { width: 70%; }
  .category-tile:first-child .category-tile__image { width: 54%; height: 68%; }
  .category-tile { padding: 20px; }
}
@media (max-width: 900px) {
  .header__phone span { display: none; }
  .header__phone a { font-size: .94rem; }
  .header__catalog-inner .search__input { width: auto; }
  .hero { padding: 64px 0; }
  .hero__content { max-width: 600px; }
  .category-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tile:first-child { grid-column: span 2; }
  .category-tile:first-child .category-tile__image { width: 55%; height: 90%; }
}
@media (max-width: 640px) {
  .header__top-inner { justify-content: center; }
  .header__supplier { font-size: .74rem; }
  .header__main-inner { gap: 10px; }
  .header__main-inner > .logo { max-width: 53%; }
  .header__main-inner .logo__sub { display: none; }
  .header__phone { margin-left: auto; }
  .header__phone a { font-size: .78rem; }
  .header__actions { margin-left: 0; gap: 3px; }
  .cart-btn { width: 40px; min-width: 40px; padding: 0; border-radius: 50%; }
  .cart-btn__label { display: none; }
  .cart-btn__count { position: absolute; top: -4px; right: -4px; }
  .header__catalog-bar { display: none; }
  .hero { padding: 48px 0; background-position: center, 63% center; }
  .hero__eyebrow { font-size: .65rem; }
  .hero__title { font-size: 1.75rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .advantages { padding: 20px 0; }
  .adv-card { padding: 15px; }
  .category-showcase { padding-top: 40px; }
  .category-showcase__grid { grid-auto-rows: 185px; gap: 12px; }
  .category-tile { padding: 16px; }
  .category-tile__content { width: 78%; }
  .category-tile h3, .category-tile:first-child h3 { font-size: .96rem; }
  .category-tile__number { margin-bottom: 7px; }
  .category-tile__link { font-size: .7rem; }
  .category-tile__image { width: 55%; height: 58%; }
  .category-tile:first-child .category-tile__image { height: 72%; }
  .category-showcase .section__link { font-size: .8rem; }
  .section__head .section__title { text-align: left; }
  .section__head .section__title::after { left: 0; transform: none; }
  .product-card__name { min-height: 4.35em; }
}
@media (max-width: 420px) {
  .header__phone { display: none; }
  .header__main-inner > .logo { max-width: none; }
  .header__actions { margin-left: auto; }
  .category-showcase__grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .category-tile:first-child { grid-column: span 1; }
  .category-tile__content, .category-tile:first-child .category-tile__content { width: 64%; }
  .category-tile__image, .category-tile:first-child .category-tile__image { width: 51%; height: 80%; }
  .category-showcase .section__head { align-items: flex-start; }
  .catalog .section__head { align-items: stretch; }
  .catalog .section__head .section__title { text-align: center; }
  .product-card__name { min-height: 0; }
}
