
/* =============================================
   DE'ART — GRASS-INSPIRED DESIGN SYSTEM
   Montserrat + Open Sans | White bg | Rounded
   ============================================= */

:root {
  --blue: #2563a8;
  --blue-dark: #1a3a5c;
  --blue-light: #e8f0fb;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-gray: #f7f8fa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 32px rgba(37,99,168,.15);
  --header-h: 64px;
  --topbar-h: 36px;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ─── TOP BAR ──────────────────────────────── */
.top-bar { background: var(--blue-dark); height: var(--topbar-h); display: flex; align-items: center; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.top-nav { display: flex; gap: 24px; }
.top-nav a { color: rgba(255,255,255,.85); font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 500; transition: color var(--transition); }
.top-nav a:hover { color: #fff; }
.top-contacts { display: flex; gap: 20px; align-items: center; }
.top-contacts a { color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 500; transition: color var(--transition); }
.top-contacts a:hover { color: #fff; }
.top-contacts__phone { font-family: 'Montserrat', sans-serif; font-weight: 600; }

/* ─── MAIN HEADER ───────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; height: var(--header-h); border-bottom: 1px solid var(--border); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.1); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ─── FIX 6: логотип одинаковый размер везде ─── */
.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--blue-dark); letter-spacing: -.5px; }
.catalog-toggle { display: flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; padding: 8px 18px; border-radius: var(--radius-sm); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background var(--transition); }
.catalog-toggle:hover { background: var(--blue-dark); }
.header-search { flex: 1; display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition); height: 44px; }
.header-search:focus-within { border-color: var(--blue); }
.header-search input { flex: 1; border: none; outline: none; padding: 10px 16px; font-family: 'Open Sans', sans-serif; font-size: 14px; background: var(--bg-gray); }
.header-search button { background: var(--blue); color: #fff; padding: 0 16px; display: flex; align-items: center; transition: background var(--transition); }
.header-search button:hover { background: var(--blue-dark); }

/* ─── MOBILE BURGER ─────────────────────────── */
.mobile-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; flex-shrink: 0; }
.mobile-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ─── MOBILE MENU ───────────────────────────── */
.mobile-menu { position: fixed; top: 0; left: 0; width: 85%; max-width: 340px; height: 100%; background: #fff; z-index: 400; transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 0 0 24px; overflow-y: auto; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.mobile-menu__close { font-size: 20px; color: var(--text-muted); padding: 4px 8px; }
.mobile-search { display: flex; margin: 16px 20px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.mobile-search input { flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 14px; background: var(--bg-gray); }
.mobile-search button { background: var(--blue); color: #fff; padding: 0 14px; display: flex; align-items: center; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 0; }
.mobile-nav a { padding: 14px 24px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.mobile-nav a:hover { color: var(--blue); }
.mobile-contacts { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-contacts a { font-size: 14px; color: var(--blue); font-weight: 600; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-overlay.active { opacity: 1; pointer-events: all; }

/* ─── HERO CAROUSEL ─────────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 420px;
  margin: 20px 20px 0 20px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  padding: 0 60px;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 24px;
  overflow: hidden;
}

.carousel-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  pointer-events: none;
}

.carousel-slide__content {
  max-width: 520px;
  z-index: 1;
  position: relative;
}

.carousel-slide__tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  backdrop-filter: blur(4px);
}

/* ─── FIX 2: заголовок баннера с переносом строк на мобиле ─── */
.carousel-slide__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  white-space: pre-line; /* поддержка \n в тексте из базы */
  word-break: break-word;
}

.btn-hero {
  display: inline-block;
  background: #fff;
  color: var(--blue-dark);
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Стрелки — появляются при наведении */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  font-family: 'Montserrat', sans-serif;
  padding: 0 12px;
}

.hero-carousel:hover .carousel-btn {
  opacity: 1;
  visibility: visible;
}

.carousel-btn--prev::before {
  content: "‹";
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  display: block;
}

.carousel-btn--next::before {
  content: "›";
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  display: block;
}

.carousel-btn--prev,
.carousel-btn--next {
  text-indent: 0;
  font-size: 0;
}

.carousel-btn:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn--prev { left: 16px; }
.carousel-btn--next { right: 16px; }

/* Точки пагинации */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: transparent;
  padding: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active { background: #ffffff; }
.carousel-dot:hover { background: rgba(255, 255, 255, 0.8); }

/* ─── SECTIONS ──────────────────────────────── */
.section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.section-link { color: var(--blue); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13.5px; transition: color var(--transition); }
.section-link:hover { color: var(--blue-dark); }

/* ─── CATEGORIES GRID ───────────────────────── */
.categories-section { padding: 36px 0; background: var(--bg-gray); }

/* ─── FIX 1: категории — показывать 6 в ряд на десктопе ─── */
.cat-carousel-wrap { display: block; }
.cat-carousel__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  gap: 10px;
  cursor: pointer;
}
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.cat-card__img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 auto;
}

.cat-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card__name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--text); line-height: 1.3; margin-top: 8px; }
.cat-card__count { font-size: 12px; color: var(--text-muted); }

/* ─── PRODUCT GRID ──────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hits-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; overflow: hidden; }

/* ─── PRODUCT CARD ──────────────────────────── */
.product-card { background: #fff; border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition); }
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-gray);
}

.product-card__img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  transition: transform .35s ease;
}

.product-card__no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title:hover { color: var(--blue); }
.product-card__buy-btn { display: block; text-align: center; margin-top: auto; background: var(--blue-light); color: var(--blue); padding: 8px; border-radius: var(--radius-sm); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12.5px; transition: all var(--transition); }
.product-card__buy-btn:hover { background: var(--blue); color: #fff; }

/* ─── FIX 3: TRUST BLOCKS — текст ВНУТРИ картинки как у Grass ─── */
/* ─── FIX 3: TRUST BLOCKS — текст сверху, крупный ─── */
.trust-section { background: var(--bg-gray); padding: 48px 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, auto));
  gap: 20px;
  justify-content: center; /* Центрирует сетку, если элементов меньше, чем колонок */
}

/* Карточка — относительное позиционирование */
.trust-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  transition: all var(--transition);
  background: #222;
  width: 260px;
  height: 320px;
  cursor: pointer;
  flex-shrink: 0;
}

.trust-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  transform: translateY(-4px);
}

/* Ссылка на всю карточку */
.trust-card__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Картинка на весь размер */
.trust-card__img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trust-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

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

/* Тёмный градиент — теперь сверху (для читаемости текста) */
.trust-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.4) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Текст поверх картинки — СВЕРХУ */
.trust-card__body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Заголовок — крупный */
.trust-card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: 4px;
}

/* Текст — крупнее, чем был */
.trust-card__text {
  font-size: 14px;
  color: rgba(255,255,255,.95);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  font-weight: 500;
}

/* Мобильная версия */
/* Мобильная версия - ТЕКСТ ВИДЕН И БОЛЬШОЙ */
@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trust-card {
    width: 100%;
    height: 280px;  /* Высота чтобы текст поместился */
  }

  .trust-card__body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    z-index: 2;
  }

  .trust-card__title {
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    color: #fff !important;
    display: block !important;
  }

  .trust-card__text {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 480px) {
  .trust-card {
    height: 260px;
  }

  .trust-card__body {
    padding: 16px 12px;
  }

  .trust-card__title {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }

  .trust-card__text {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
}
/* ─── PAGE BANNER ──────────────────────────── */
.page-banner {
  width: 100%;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.page-banner--gradient {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  min-height: 160px;
}

.page-banner__content {
  position: relative;
  z-index: 1;
  padding: 32px 20px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.page-banner__content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin: 0;
}

/* ─── INFO PAGES ────────────────────────────── */
.info-page { padding: 32px 0 80px; }
.info-page h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2rem; margin-bottom: 28px; }
.info-page p, .info-page li { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }

.info-page__content { color: var(--text-muted); line-height: 1.8; }
.info-page__content h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--text); margin: 28px 0 12px; }
.info-page__content h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); margin: 20px 0 8px; }
.info-page__content p { margin-bottom: 14px; }
.info-page__content ul, .info-page__content ol { margin: 0 0 14px 24px; }
.info-page__content li { margin-bottom: 6px; }
.info-page__content a { color: var(--blue); border-bottom: 1px solid rgba(37,99,168,.3); transition: border-color var(--transition); }
.info-page__content a:hover { border-color: var(--blue); }
.info-page__content strong { color: var(--text); font-weight: 700; }
.info-page__content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.info-page__content th { background: var(--blue-light); color: var(--blue-dark); font-family: 'Montserrat', sans-serif; font-weight: 700; padding: 10px 14px; text-align: left; border: 1px solid var(--border); }
.info-page__content td { padding: 9px 14px; border: 1px solid var(--border); }
.info-page__content tr:hover td { background: var(--bg-gray); }

.contacts-grid { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.contact-item { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.contact-item strong { min-width: 180px; color: var(--text); font-family: 'Montserrat', sans-serif; font-weight: 600; }
.contact-item a { color: var(--blue); font-weight: 600; }

/* ─── PRODUCT DETAIL ────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 20px 0; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--blue); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 0 48px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); aspect-ratio: 1 / 1; background: var(--bg-gray); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 70px; height: 70px; object-fit: contain; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; transition: border-color var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--blue); }
.product-info__category { font-size: 12.5px; color: var(--blue); font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.product-info__title { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.product-info__description { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; font-size: 14px; }
.btn-wb-buy { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--blue); color: #fff; padding: 15px 32px; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; transition: all var(--transition); margin-bottom: 16px; }
.btn-wb-buy:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.product-info__article { font-size: 12px; color: var(--text-muted); }
.similar-section { padding: 40px 0; border-top: 1px solid var(--border); }

/* ─── CATALOG PAGE ──────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0; }
.sidebar-section { margin-bottom: 28px; }
.sidebar-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text); }
.sidebar-link { display: block; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text); transition: all var(--transition); }
.sidebar-link:hover, .sidebar-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

.catalog-sidebar__toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  cursor: pointer;
  margin-bottom: 4px;
}

.catalog-sidebar__toggle .sidebar-toggle-arrow {
  margin-left: auto;
  transition: transform var(--transition);
}

.catalog-sidebar__toggle.open .sidebar-toggle-arrow {
  transform: rotate(180deg);
}

/* ─── PAGINATION ────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0 20px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; color: var(--text); transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─── FOOTER ────────────────────────────────── */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.85); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.8rem; color: #fff; margin-bottom: 12px; letter-spacing: -.5px; }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,.65); margin-bottom: 10px; line-height: 1.5; }
.footer-marketplaces { display: flex; gap: 10px; margin-bottom: 16px; }
.marketplace-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; transition: all var(--transition); }
.marketplace-btn--wb { background: #cb11ab; color: #fff; }
.marketplace-btn--wb:hover { background: #a30d8a; }
.marketplace-btn--ozon { background: #005bff; color: #fff; }
.marketplace-btn--ozon:hover { background: #0048cc; }

/* ─── FIX 5: соцсети — только иконка без надписи "ВК" ─── */
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social span { font-size: 13px; color: rgba(255,255,255,.6); }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background var(--transition);
}
.social-btn:hover { background: #0077ff; }
/* Скрываем текст внутри кнопки — только иконка */
.social-btn .social-btn__text { display: none; }

.footer-col h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.7); font-size: 13.5px; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-supplier { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-supplier a { color: rgba(255,255,255,.85); }
.footer-supplier a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
.footer-bottom__inner { display: flex; justify-content: center; gap: 32px; font-size: 12.5px; color: rgba(255,255,255,.45); max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ─── MOBILE CATEGORIES (hidden on desktop) ─── */
.cat-mobile-grid { display: none; }

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) { .hits-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .hits-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .hits-row { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: span 2; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar__toggle { display: flex; }
  /* На планшете категории 3 в ряд */
  .cat-carousel__track { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-catalog-btn { display: none; }
  .mobile-burger { display: flex; }
  .header-search { max-width: none; }

  /* ─── FIX 6: логотип на мобиле одного размера с поисковой строкой ─── */
  .logo-img {
    height: 85px; /* одинаково и на десктопе, и на мобиле */
  }
  .header-inner { padding: 0 11px; gap: 11px; }
  .logo-text { font-size: 1.2rem; }
  .header-search {
    height: 30px;
    flex: 1;
  }
  .header-search input { padding: 0 9px; font-size: 10px; height: 100%; }

  /* ─── FIX 2: баннер на мобиле — меньше высота, текст переносится ─── */
  .hero-carousel { margin: 12px 12px 0 12px; border-radius: 16px; height: auto; }
  .carousel-track { height: auto; }

  .carousel-slide {
    border-radius: 16px;
    aspect-ratio: 16 / 6;
    min-height: unset;
    padding: 0 40px;
    align-items: center;
  }

  .carousel-slide__content {
    padding: 16px 0;
    max-width: 70%; /* не даём тексту залезать на правую часть */
  }

  /* FIX 2: принудительный перенос строк в заголовке */
  .carousel-slide__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.3;
  }

  .carousel-slide__tag {
    font-size: 10px;
    margin-bottom: 8px;
    padding: 3px 10px;
  }

  .btn-hero {
    padding: 7px 16px;
    font-size: 11px;
    border-radius: 20px;
  }

  .carousel-btn--prev::before, .carousel-btn--next::before { font-size: 48px; }
  .carousel-btn--prev { left: 8px; }
  .carousel-btn--next { right: 8px; }
  .carousel-dots { bottom: 12px; gap: 6px; }
  .carousel-dot { width: 6px; height: 6px; }

  /* ─── FIX 1: на мобиле скрываем десктопные категории, показываем мобильные ─── */
  .cat-carousel-wrap { display: none; }
  .cat-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .cat-mobile-grid .cat-card { padding: 12px 8px; gap: 6px; }
  .cat-mobile-grid .cat-card__img { max-width: 70px; }
  .cat-mobile-grid .cat-card__name { font-size: 11px; line-height: 1.2; margin-top: 4px; }
  .cat-mobile-grid .cat-card__count { font-size: 10px; }

  /* Trust cards на мобиле — 2 колонки */
   .trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-content: stretch; /* убираем центрирование на мобиле */
  }
  .trust-card {
    width: 100%;  /* вместо calc(50% - 5px) */
    height: 220px; /* чуть меньше, но нормально */
  }
    .trust-card__title {
    font-size: 14px;
  }
  
  .trust-card__text {
    font-size: 11px;
    display: block; /* показываем текст обратно */
  }
  
  .trust-card__body {
    padding: 14px 12px;
  }


  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__body { padding: 10px; }
  .product-card__title { font-size: 12px; -webkit-line-clamp: 2; }
  .product-card__buy-btn { padding: 6px; font-size: 11px; }

  .section { padding: 30px 0; }
  .section-header { flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .section-title { font-size: 1.3rem; }
  .section-link { font-size: 12px; }

  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .info-page { padding: 20px 0 50px; }
  .info-page h1 { font-size: 1.5rem; margin-bottom: 16px; }
  .info-page p, .info-page li { font-size: 14px; line-height: 1.6; }
  .breadcrumb { padding: 12px 0; font-size: 11px; }
  .contacts-grid { gap: 12px; }
  .contact-item { flex-direction: column; gap: 4px; }
  .contact-item strong { min-width: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col--brand { grid-column: span 2; }
  .footer-logo { font-size: 1.5rem; }
  .footer-col h4 { font-size: 13px; margin-bottom: 12px; }
  .footer-col a, .footer-col p { font-size: 12px; }
  .marketplace-btn { padding: 6px 12px; font-size: 11px; }
  .footer-bottom { margin-top: 30px; }
  .footer-bottom__inner { flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 10px; }
  .page-banner { margin: 0 10px; border-radius: 16px; width: auto; min-height: 160px; }
  .page-banner--gradient { margin: 0 10px; border-radius: 16px; width: auto; }
  .mobile-nav a { padding: 12px 20px; font-size: 14px; }
  .container { padding: 0 15px; }
}

@media (max-width: 480px) {
  .hero-carousel { margin: 8px 8px 0 8px; border-radius: 12px; height: auto; }
  .carousel-slide { border-radius: 12px; aspect-ratio: 16 / 7; padding: 0 28px; }
  .carousel-slide__content { max-width: 75%; }
  .carousel-slide__title { font-size: 0.85rem; margin-bottom: 6px; }
  .carousel-slide__tag { font-size: 9px; padding: 2px 8px; margin-bottom: 6px; }
  .btn-hero { padding: 5px 12px; font-size: 10px; border-radius: 16px; }
  .carousel-btn--prev::before, .carousel-btn--next::before { font-size: 36px; }
  .carousel-dots { bottom: 10px; gap: 5px; }
  .carousel-dot { width: 5px; height: 5px; }

  .cat-mobile-grid { gap: 8px; }
  .cat-mobile-grid .cat-card { padding: 10px 6px; }
  .cat-mobile-grid .cat-card__img { max-width: 56px; }
  .cat-mobile-grid .cat-card__name { font-size: 10px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-card__body { padding: 10px; }
  .trust-card__title { font-size: 12px; }
  .trust-card__text { display: none; } /* на маленьком экране текст скрываем */

  .section-title { font-size: 1.3rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col--brand { grid-column: span 1; }
  .product-grid { gap: 10px; }
  .page-banner { min-height: 120px; }
  .container { padding: 0 12px; }
}
/* Убираем полукруглый фон у иконки ВК на всех устройствах */
.social-btn {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.social-btn:hover {
  background: transparent !important;
  transform: none !important;
}

/* Убираем фон также в медиа-запросах на всякий случай */
@media (max-width: 768px) {
  .social-btn {
    background: transparent !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
  }
}

/* Выравнивание соцсетей в футере */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social span {
  line-height: 1;  /* Выравниваем текст */
}

.social-btn {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.social-btn svg {
  display: block;
  vertical-align: middle;
}
