:root {
  /* medi brand palette (from medi.de): magenta accent on deep slate + white */
  --color-primary: #E20074;        /* medi magenta — CTAs, accents, prices */
  --color-primary-dark: #b30059;
  --color-ink: #1E2B34;            /* deep slate — headings, header, footer */
  --color-ink-soft: #3B4851;      /* slate — secondary dark */
  --color-secondary: #F3F6F8;     /* light cool grey — alt sections, chips */
  --color-text: #3B4851;
  --color-muted: #7C8A97;
  --color-blue-grey: #97B1BE;
  --color-border: #E3EAEE;
  --color-white: #ffffff;
  --color-success: #25D366;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(30, 43, 52, 0.07);
  --shadow-hover: 0 16px 44px rgba(30, 43, 52, 0.16);
  --shadow-magenta: 0 12px 30px rgba(226, 0, 116, 0.30);
  --grad-magenta: linear-gradient(120deg, #E20074 0%, #ff3fa1 100%);
  --grad-ink: linear-gradient(135deg, #1E2B34 0%, #34495a 100%);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --header-height: 120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

a { color: var(--color-ink); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--color-primary); }

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 64px;
}

.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo__text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.logo__sub { font-size: 0.7rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.logo:has(.logo__img) { flex-direction: row; align-items: center; gap: 12px; }
.logo__img { display: block; height: 52px; width: auto; max-width: 220px; object-fit: contain; border-radius: 4px; }
.logo__img--sm { height: 40px; }
.logo__sub--img { line-height: 1.2; }

/* логотипы сертификатов на странице «Гарантия» */
.cert-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin: 8px 0 28px; }
.article-content .cert-badges img { height: 84px; width: auto; max-width: 220px; margin: 0; border-radius: 0; object-fit: contain; }
@media (max-width: 640px) { .cert-badges { gap: 16px 24px; } .article-content .cert-badges img { height: 64px; } }

/* видеопрезентация на странице «О компании» */
.about-video { margin-top: 40px; }
.about-video h2 { margin-bottom: 16px; }
.about-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.about-video__frame iframe, .about-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.header-contacts { gap: 20px; align-items: center; }
.header-contacts, .header-actions { display: flex; align-items: center; }
.header-phone, .header-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 500;
}
.header-whatsapp { color: var(--color-success); }

.header-search {
  position: relative;
  align-items: center;
}
.header-search input {
  width: 220px;
  padding: 8px 40px 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-size: 0.9rem;
}
.header-search button {
  position: absolute;
  right: 4px;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 8px;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}
.search-suggestions.active { display: block; }
.search-suggestions a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.search-suggestions a:hover { background: var(--color-secondary); }

.header-cart {
  position: relative;
  color: var(--color-text);
  font-size: 1.25rem;
  padding: 8px;
}
.header-cart__count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-primary);
  color: white;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.3s;
}
.header-cart__count.bump { transform: scale(1.4); }

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: 0.3s;
}

.header-nav { background: var(--color-secondary); }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu > li > a:hover { color: var(--color-primary); }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 100;
}
.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  font-size: 0.9rem;
}
.dropdown a:hover { background: var(--color-secondary); color: var(--color-primary); }
.dropdown--nested { left: 100%; top: 0; }

/* Мега-меню каталога (как на medi.kz): панель на всю ширину, разделы текут по 3 колонкам
   (CSS columns — без пустых мест под короткими разделами), высота ограничена экраном */
.nav-menu > li.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 100;
  background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(30,43,52,.14);
  max-height: calc(100vh - 150px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-mega:hover > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { columns: 3; column-gap: 36px; padding: 22px 0 24px; }
.mega__col { break-inside: avoid; page-break-inside: avoid; margin-bottom: 18px; }
.mega__title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  font-weight: 700; font-size: .88rem; letter-spacing: .01em; text-transform: uppercase; color: var(--color-ink, #1E2B34);
}
.mega__title i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-secondary); color: var(--color-primary); font-size: .85rem; flex: none; }
.mega__title:hover { color: var(--color-primary); }
.mega__list { list-style: none; margin: 0; padding: 0 0 0 40px; }
.mega__list a { display: block; padding: 3px 0; color: var(--color-text); font-size: .9rem; border-left: 2px solid transparent; line-height: 1.35; }
.mega__list a:hover { color: var(--color-primary); transform: translateX(4px); }
@media (max-width: 1199px) { .mega__grid { columns: 2; } }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }
.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}
.mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: white;
  z-index: 1101;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-menu.active .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-menu__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-nav { list-style: none; padding: 0; margin: 20px 0; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.mobile-search { display: flex; gap: 8px; margin-bottom: 16px; }
.mobile-search input { flex: 1; padding: 10px; border: 1px solid var(--color-border); border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-secondary); }
.btn--sm { padding: 8px 16px; min-height: 36px; font-size: 0.85rem; }
.btn--icon { padding: 10px; min-width: 48px; }
.btn--cart { flex: 1; }
.btn--white { background: white; color: var(--color-primary); }
.btn--white:hover { background: var(--color-secondary); color: var(--color-primary-dark); }

/* Sections */
.section { padding: 60px 0; }
.section--alt { background: var(--color-secondary); }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 12px;
}
.section__subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero-slider { position: relative; }
.hero-slider .swiper { height: clamp(320px, 50vh, 520px); }
.hero-slide {
  position: relative;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #003d73 100%);
  display: flex;
  align-items: center;
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.hero-slide__content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 40px 16px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-slide__title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 16px; }
.hero-slide__subtitle { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 24px; opacity: 0.9; max-width: 500px; }
.hero-slider .swiper-pagination-bullet-active { background: white; }
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { color: white; }

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
  text-decoration: none;
  color: var(--color-text);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--color-primary);
}
.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.category-card__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-item {
  text-align: center;
  padding: 24px;
}
.benefit-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.benefit-item__title { font-weight: 600; margin-bottom: 8px; }
.benefit-item__text { color: var(--color-muted); font-size: 0.9rem; }

/* Product cards */
.products-slider .swiper { padding-bottom: 40px; }
.product-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card__image-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: #f8fafc; }
.product-card__image-link { display: block; height: 100%; }
.product-card__image-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.product-card__actions {
  position: absolute;
  inset: 0;
  background: rgba(0,92,169,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}
.product-card:hover .product-card__actions { opacity: 1; }
.product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card__meta { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 4px; }
.product-card__title { font-size: 0.95rem; margin: 0 0 8px; flex: 1; }
.product-card__title a { color: var(--color-text); }
.product-card__title a:hover { color: var(--color-primary); }
.product-card__price { font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.product-card__footer { display: flex; gap: 8px; }

/* Info blocks */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.info-block {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-block__icon { color: var(--color-primary); font-size: 1.5rem; margin-bottom: 12px; }
.info-block__title { font-size: 1.1rem; margin-bottom: 8px; }
.info-block__text { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

/* Article cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-card__image { aspect-ratio: 16/10; overflow: hidden; background: var(--color-secondary); }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 20px; }
.article-card__date { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 8px; }
.article-card__title { font-size: 1rem; margin: 0; }
.article-card__title a { color: var(--color-text); }
.article-card__title a:hover { color: var(--color-primary); }

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary), #003d73);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: white;
}
.cta-block h2 { color: white; margin-bottom: 12px; }
.cta-block p { opacity: 0.9; margin-bottom: 24px; }
.cta-block__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumbs */
.breadcrumbs { margin-top: 28px; margin-bottom: 24px; font-size: 0.9rem; }
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs__sep { color: var(--color-muted); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: white; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.social-links a:hover { background: var(--color-primary); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: #94a3b8;
}
.footer-bottom { text-align: center; font-size: 0.85rem; color: #64748b; }

/* Floating widgets */
.floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: 0.3s;
  text-decoration: none;
}
.floating-btn:hover { transform: scale(1.1); color: white; }
.floating-btn--whatsapp { background: var(--color-success); }
.floating-btn--callback { background: var(--color-primary); }

/* Forms */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,92,169,0.15);
}
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }

/* Page layouts */
.page-header { padding: 40px 0 24px; }
.page-header h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* Thank you */
.thank-you {
  text-align: center;
  padding: 80px 20px;
}
.thank-you__icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 576px) {
  .category-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .floating-widgets { bottom: 16px; right: 16px; }
}

/* ============================================================
   medi rebrand + "wow" enhancement layer  (overrides above)
   ============================================================ */

body { background: #fff; -webkit-font-smoothing: antialiased; }

/* ---- Header ---- */
.site-header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px rgba(30,43,52,0.05);
}
.logo__text {
  color: var(--color-ink);
  position: relative;
  letter-spacing: -0.02em;
}
.logo__text::after {                 /* signature magenta dot */
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--color-primary);
  vertical-align: baseline;
}
.header-nav {
  background: transparent;
  border-top: 1px solid var(--color-border);
}
.nav-menu > li > a {
  position: relative;
  color: var(--color-ink);
  font-weight: 600;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 8px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-menu > li > a:hover::after { transform: scaleX(1); }
.dropdown a:hover { background: var(--color-secondary); color: var(--color-primary); }
.header-cart__count { background: var(--color-primary); }

/* ---- Buttons ---- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: 0.01em; }
.btn--primary {
  background: var(--grad-magenta);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(226,0,116,0.24);
}
.btn--primary:hover {
  background: var(--grad-magenta);
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-magenta);
}
.btn--outline { color: var(--color-ink); border-color: var(--color-border); }
.btn--outline:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.btn--ghost {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; color: var(--color-ink); border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 15px 32px; min-height: 54px; font-size: 1rem; }
.btn--white { background: #fff; color: var(--color-primary); }

/* keep hero-slider (DB slides) legible after global dark heading color */
.hero-slide { background: linear-gradient(120deg, #E20074 0%, #7a1f6b 45%, #1E2B34 100%); }
.hero-slide__content, .hero-slide__title, .hero-slide__subtitle { color: #fff; }
.hero-slide__title { color: #fff; }
.hero-slide .btn--white { color: var(--color-primary); }

/* ---- Promo banner slider (hero_slides with images) ---- */
.promo-slider { padding: 20px 0 8px; background: #fff; }
.promo-slider .swiper { height: auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(30,43,52,.10); }
.promo-slide {
  position: relative; display: block; aspect-ratio: 2.36 / 1; max-height: 560px; width: 100%;
  background: #f3e6ee; overflow: hidden; isolation: isolate;
}
/* баннеры разных пропорций: за картинкой её же размытая копия вместо пустых полей */
.promo-slide::before {
  content: ""; position: absolute; inset: -40px; z-index: 0;
  background: var(--bg) center / cover no-repeat; filter: blur(28px) saturate(1.2); opacity: .9;
}
.promo-slide__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.promo-slider .swiper-pagination-bullet { background: #fff; opacity: .7; width: 10px; height: 10px; }
.promo-slider .swiper-pagination-bullet-active { background: var(--color-primary); opacity: 1; }
.promo-slider .swiper-button-prev, .promo-slider .swiper-button-next {
  color: #fff; width: 44px; height: 44px; border-radius: 50%; background: rgba(30,43,52,.35); backdrop-filter: blur(4px);
}
.promo-slider .swiper-button-prev::after, .promo-slider .swiper-button-next::after { font-size: 16px; font-weight: 700; }
@media (max-width: 640px) {
  .promo-slider { padding: 10px 0 4px; }
  .promo-slide { aspect-ratio: 1.79 / 1; }
  .promo-slider .swiper-button-prev, .promo-slider .swiper-button-next { display: none; }
}

/* ---- Animated hero (fallback, no slides) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-ink);
  color: #fff;
  isolation: isolate;
}
.hero__blobs { position: absolute; inset: 0; z-index: 0; filter: blur(60px); opacity: 0.9; }
.hero__blobs span {
  position: absolute; display: block; border-radius: 50%;
  mix-blend-mode: screen;
  animation: heroFloat 16s ease-in-out infinite;
}
.hero__blobs span:nth-child(1){ width: 460px; height: 460px; left: -80px; top: -120px;
  background: radial-gradient(circle at 30% 30%, #E20074, transparent 70%); }
.hero__blobs span:nth-child(2){ width: 520px; height: 520px; right: -120px; top: -60px;
  background: radial-gradient(circle at 50% 50%, #ff3fa1, transparent 70%); animation-delay: -4s; }
.hero__blobs span:nth-child(3){ width: 420px; height: 420px; left: 40%; bottom: -180px;
  background: radial-gradient(circle at 50% 50%, #2f7bd6, transparent 70%); animation-delay: -8s; }
@keyframes heroFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,30px) scale(1.08); }
  66%     { transform: translate(-30px,20px) scale(0.96); }
}
.hero__grid {                          /* subtle dot grid overlay */
  position: absolute; inset: 0; z-index: 0; opacity: 0.14;
  background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
  padding: clamp(56px, 8vw, 104px) 16px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero__eyebrow::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(226,0,116,0.35); }
.hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08; margin: 0 0 18px;
}
.hero__title span { color: #ff64b3; }
.hero__text { font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 0 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 40px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font-family: var(--font-heading); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero__stats span { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 4px; }
.hero__visual { display: flex; justify-content: center; }
.hero__card {
  position: relative;
  width: min(340px, 80%);
  aspect-ratio: 3/4;
  border-radius: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  animation: cardFloat 6s ease-in-out infinite;
}
.hero__card b { font-family: var(--font-heading); font-size: 4rem; color:#fff; letter-spacing:-0.03em; }
.hero__card b::after { content:"."; color: var(--color-primary); }
.hero__badge {
  position: absolute; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: var(--color-ink); font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 14px 30px rgba(0,0,0,0.25); display:flex; align-items:center; gap:8px;
}
.hero__badge i { color: var(--color-primary); }
.hero__badge--1 { top: 12%; left: -6%; animation: cardFloat 5s ease-in-out infinite; }
.hero__badge--2 { bottom: 14%; right: -8%; animation: cardFloat 7s ease-in-out infinite reverse; }
@keyframes cardFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
@media (max-width: 860px){
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

/* ---- Section titles with accent ---- */
.section__title { position: relative; padding-bottom: 18px; }
.section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px; background: var(--grad-magenta);
}
.section--alt { background: var(--color-secondary); }

/* ---- Category cards ---- */
.category-card {
  border: 1px solid var(--color-border);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content:""; position:absolute; inset:0; border-radius: inherit;
  background: var(--grad-ink); opacity: 0; transition: opacity 0.3s; z-index: 0;
}
.category-card > * { position: relative; z-index: 1; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); color: #fff; border-color: transparent; }
.category-card:hover::before { opacity: 1; }
.category-card:hover .category-card__title { color: #fff; }
.category-card__icon {
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: 0.3s;
}
.category-card:hover .category-card__icon { background: var(--grad-magenta); color: #fff; transform: scale(1.08); box-shadow: var(--shadow-magenta); }

/* ---- Benefits ---- */
.benefit-item { border-radius: var(--radius); transition: 0.3s; }
.benefit-item:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit-item__icon { background: var(--grad-ink); box-shadow: var(--shadow); }
.benefit-item:hover .benefit-item__icon { background: var(--grad-magenta); box-shadow: var(--shadow-magenta); }

/* ---- Product cards ---- */
.product-card { border: 1px solid var(--color-border); box-shadow: none; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-card__price { color: var(--color-primary); }
.product-card__badge { background: var(--grad-magenta); }
.product-card__actions { background: rgba(30,43,52,0.06); }

/* ---- Info blocks ---- */
.info-block { border: 1px solid var(--color-border); box-shadow: none; transition: 0.3s; }
.info-block:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.info-block__icon {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--color-secondary); color: var(--color-primary);
}

/* ---- CTA ---- */
.cta-block { background: var(--grad-ink); position: relative; overflow: hidden; }
.cta-block::before {
  content:""; position:absolute; width: 300px; height: 300px; border-radius:50%;
  background: radial-gradient(circle, rgba(226,0,116,0.5), transparent 70%);
  top: -80px; right: -60px; filter: blur(30px);
}

/* ---- Footer ---- */
.site-footer { background: var(--color-ink); color: #b9c4cd; }
.social-links a:hover { background: var(--grad-magenta); }

/* ---- Forms ---- */
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(226,0,116,0.15); }

/* ---- Floating widgets ---- */
.floating-btn--callback { background: var(--grad-magenta); }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--instant { transition: none !important; opacity: 1 !important; transform: none !important; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__blobs span, .hero__card, .hero__badge { animation: none; }
}

/* ============================================================
   Homepage v2 — big editorial hero, marquee, bento, zones
   ============================================================ */
html { scroll-behavior: smooth; }

/* ---- Big hero ---- */
.mhero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 120% at 50% 0%, #24384a 0%, #1E2B34 55%, #16212a 100%);
  color: #fff;
  isolation: isolate;
  text-align: center;
}
.mhero__bg { position: absolute; inset: 0; z-index: 0; filter: blur(70px); }
.mhero__bg span { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; animation: heroFloat 18s ease-in-out infinite; }
.mhero__bg span:nth-child(1){ width: 560px; height: 560px; left: -140px; top: -160px; background: radial-gradient(circle at 30% 30%, #E20074, transparent 68%); }
.mhero__bg span:nth-child(2){ width: 620px; height: 620px; right: -180px; top: -80px; background: radial-gradient(circle, #ff3fa1, transparent 68%); animation-delay: -5s; }
.mhero__bg span:nth-child(3){ width: 520px; height: 520px; left: 42%; bottom: -220px; background: radial-gradient(circle, #2f7bd6, transparent 70%); animation-delay: -10s; }
.mhero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.16;
  background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 78%);
}
.mhero__glow { position: absolute; left: 50%; top: 34%; width: 680px; height: 680px; transform: translate(-50%,-50%); z-index: 0;
  background: radial-gradient(circle, rgba(226,0,116,0.28), transparent 62%); }
.mhero__inner { position: relative; z-index: 1; padding: 120px 16px 130px; margin: 0 auto; max-width: 960px; }
.mhero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; margin-bottom: 28px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.20);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; backdrop-filter: blur(8px);
}
.mhero__eyebrow i { color: #ff64b3; }
.mhero__title {
  color: #fff; margin: 0 0 22px;
  font-size: clamp(2.15rem, 5.2vw, 4.1rem); line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.mhero__line { display: inline; }
@media (min-width: 720px) { .mhero__line { display: block; } }  /* two clean lines on desktop */
.mhero__accent { position: relative; color: #ff64b3; white-space: nowrap; }
.mhero__accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.14em; border-radius: 4px;
  background: var(--grad-magenta); opacity: 0.55;
}
.mhero__lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.55; color: rgba(255,255,255,0.80); max-width: 600px; margin: 0 auto 36px; text-wrap: balance; }
.mhero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.mhero__actions .btn i { transition: transform 0.25s; }
.mhero__actions .btn--primary:hover i { transform: translateX(4px); }
.mhero__stats {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px);
  padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.12); max-width: 760px; margin: 0 auto;
}
.mstat { display: flex; flex-direction: column; align-items: center; }
.mstat b { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1; color: #fff; }
.mstat b i { color: #ff64b3; font-style: normal; }
.mstat span { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 8px; }
.mhero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.4); border-radius: 14px; display: block; }
.mhero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%{opacity:0; transform: translateY(0);} 40%{opacity:1;} 80%{opacity:0; transform: translateY(12px);} 100%{opacity:0;} }
@media (max-width: 600px){ .mhero { min-height: auto; } .mhero__inner { padding: 96px 16px 90px; } .mhero__scroll{ display:none; } }

/* ---- Marquee ticker ---- */
.marquee { overflow: hidden; background: #fff; border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: marquee 42s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); letter-spacing: -0.01em; opacity: 0.72; }
.marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Section head ---- */
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.sec-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 12px; }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 12px; line-height: 1.14; text-wrap: balance; }
.sec-sub { color: var(--color-muted); font-size: 1.05rem; margin: 0; text-wrap: balance; }
.sec-head--light .sec-title { color: #fff; }
.sec-head--light .sec-sub { color: rgba(255,255,255,0.65); }

/* ---- Bento grid ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 176px; gap: 18px; }
.bento__cell {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; text-decoration: none; isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s;
}
.bento__cell--xl { grid-column: span 2; grid-row: span 2; padding: 34px; }
.bento__cell::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.25), transparent 55%); }
.bento__cell:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); color: #fff; }
.bento__cell:hover::after { opacity: 1; }
.bento__cell--a { --tone: #d1006c; background: linear-gradient(150deg, #E20074, #ff4fa6 90%); }
.bento__cell--b { --tone: #1E2B34; background: linear-gradient(150deg, #1E2B34, #3a5063); }
.bento__cell--c { --tone: #3a5666; background: linear-gradient(150deg, #4a6b7e, #7d9fb0); }
.bento__cell--d { --tone: #7c1050; background: linear-gradient(150deg, #8a1257, #c0186f); }
.bento__cell--e { --tone: #24333f; background: linear-gradient(150deg, #2b3d4c, #52697b); }
.bento__icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16); font-size: 1.35rem; backdrop-filter: blur(4px); }
.bento__cell--xl .bento__icon { width: 66px; height: 66px; font-size: 1.7rem; }
.bento__name { font-size: 1.12rem; margin: 0 0 6px; color: #fff; line-height: 1.2; }
.bento__cell--xl .bento__name { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.bento__count { font-size: 0.85rem; opacity: 0.82; font-weight: 500; }
.bento__go { position: absolute; top: 24px; right: 24px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.bento__cell:hover .bento__go { background: #fff; color: var(--color-ink); transform: rotate(-45deg); }
@media (max-width: 860px){ .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .bento__cell--xl { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 520px){ .bento { grid-template-columns: 1fr; } .bento__cell--xl { grid-column: span 1; } }

/* ---- Zones (dark full-width) ---- */
.zones-sec { position: relative; overflow: hidden; background: var(--grad-ink); color: #fff; }
.zones-sec__bg { position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(60% 60% at 15% 10%, rgba(226,0,116,0.35), transparent 60%),
              radial-gradient(50% 50% at 90% 90%, rgba(47,123,214,0.25), transparent 60%); }
.zones-sec > .container { position: relative; z-index: 1; }
.zones { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 12px; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); transition: 0.3s; }
.zone:hover { background: var(--grad-magenta); border-color: transparent; transform: translateY(-6px); box-shadow: var(--shadow-magenta); color: #fff; }
.zone__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10); font-size: 1.3rem; transition: 0.3s; }
.zone:hover .zone__icon { background: rgba(255,255,255,0.22); }
.zone__name { font-size: 0.86rem; font-weight: 600; text-align: center; line-height: 1.25; }
.zone__count { font-size: 0.72rem; opacity: 0.7; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); }
@media (max-width: 900px){ .zones { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px){ .zones { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Header breathing room + global hover animation polish
   ============================================================ */

/* ---- Header spacing ---- */
.header-top__inner { gap: 22px; }
.header-actions { gap: 16px; }
.header-contacts { gap: 24px; margin-right: 4px; }
.header-search input { width: 240px; }
.header-cart { margin: 0 2px; }
.header-actions .btn { margin-left: 4px; white-space: nowrap; }
@media (max-width: 1200px){ .header-search input { width: 180px; } .header-actions { gap: 12px; } }

/* ---- Global smooth transitions on interactive elements ---- */
a, button, .btn,
.product-card, .category-card, .bento__cell, .zone, .article-card, .info-block, .benefit-item,
.footer-col a, .social-links a, .floating-btn,
.nav-menu > li > a, .dropdown a, .header-cart, .header-phone, .header-whatsapp,
.marquee__item, .mstat, .product-gallery__thumb, .contacts-info__item, .search-suggestions a {
  transition: color .2s ease, background-color .25s ease, border-color .25s ease,
              box-shadow .3s ease, transform .3s cubic-bezier(.2,.7,.3,1), opacity .2s ease;
}

/* ---- Micro-interactions ---- */
.header-cart:hover { color: var(--color-primary); transform: translateY(-2px); }
.header-cart:hover .header-cart__count { transform: scale(1.12); }
.header-phone:hover, .header-whatsapp:hover { transform: translateY(-1px); filter: brightness(1.05); }
.header-phone:hover i { animation: wiggle .5s ease; }
@keyframes wiggle { 0%,100%{transform:rotate(0);} 25%{transform:rotate(-12deg);} 75%{transform:rotate(12deg);} }

.nav-menu > li > a:hover { transform: translateY(-1px); }
.dropdown a { border-left: 2px solid transparent; }
.dropdown a:hover { transform: translateX(4px); border-left-color: var(--color-primary); }

.btn:active { transform: translateY(0) scale(.98); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--outline:hover, .btn--white:hover { transform: translateY(-2px); }

/* Cards: lift already set — add inner motion */
.product-card__image-wrap img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.product-card:hover .product-card__image-wrap img { transform: scale(1.07); }
.article-card__image img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.article-card:hover .article-card__image img { transform: scale(1.06); }
.article-card__title a:hover { color: var(--color-primary); }

.info-block:hover .info-block__icon { transform: rotate(-6deg) scale(1.08); background: var(--grad-magenta); color:#fff; }
.benefit-item:hover .benefit-item__icon { transform: translateY(-3px) scale(1.06); }
.category-card:hover .category-card__icon { transform: rotate(-6deg) scale(1.1); }

.bento__cell:hover .bento__icon { transform: scale(1.08) rotate(-4deg); }
.zone:hover .zone__icon { transform: translateY(-3px) scale(1.08); }

/* Footer + social */
.footer-col a:not(.social-links a) { display: inline-block; }
.footer-col a:not(.social-links a):hover { color:#fff; transform: translateX(4px); }
/* иконки соцсетей: flex-центровка из .social-links a должна остаться */
.footer-col .social-links a { display: flex; }
.social-links a:hover { transform: translateY(-4px) rotate(-6deg); }

/* Floating widgets */
.floating-btn:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }

/* Search results + gallery thumbs */
.search-suggestions a:hover { transform: translateX(3px); }
.product-gallery__thumb:hover { transform: translateY(-3px); }

/* Marquee items subtle emphasis */
.marquee__item:hover { opacity: 1; color: var(--color-primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Product card polish — equal height, image→detail, hide quick view
   ============================================================ */
.products-grid { align-items: stretch; }
.product-card { height: 100%; display: flex; flex-direction: column; }
.product-card__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.product-card__meta { flex: 0 0 auto; }
.product-card__title { flex: 1 1 auto; }          /* absorbs title-length differences */
.product-card__price { flex: 0 0 auto; }
.product-card__footer { margin-top: auto; }        /* footer always pinned to bottom */

/* Clicking the photo goes to the product page */
.product-card__image-link { display: block; height: 100%; cursor: pointer; }

/* Temporarily hide "Быстрый просмотр" (quick view) */
.quick-view-btn { display: none !important; }
.product-card__actions { display: none !important; } /* hover overlay only held quick-view */
.product-card__footer .btn--cart { flex: 1 1 100%; width: 100%; }

/* ============================================================
   Bento images + product-slider arrows
   ============================================================ */
/* Full-bleed category photo inside bento tiles + tone scrim for legibility */
.bento__cell { position: relative; }
.bento__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.bento__cell:hover .bento__img { transform: scale(1.07); }
/* scrim: strong tone at bottom-left (text) → clear at top-right (photo) */
.bento__cell::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(120deg, var(--tone, #1E2B34) 4%,
      color-mix(in srgb, var(--tone, #1E2B34) 78%, transparent) 40%,
      color-mix(in srgb, var(--tone, #1E2B34) 30%, transparent) 72%,
      color-mix(in srgb, var(--tone, #1E2B34) 6%, transparent) 100%),
    linear-gradient(0deg, rgba(15,20,26,0.45) 0%, transparent 55%);
}
.bento__icon, .bento__body, .bento__go { position: relative; z-index: 2; }
.bento__body { max-width: 80%; text-shadow: 0 1px 10px rgba(0,0,0,0.25); }
/* fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
  .bento__cell::before { background: linear-gradient(120deg, var(--tone,#1E2B34) 20%, transparent 90%), linear-gradient(0deg, rgba(15,20,26,.5), transparent 55%); }
}

/* Product slider (Новинки) arrows */
.products-slider { position: relative; padding: 0 8px; }
.products-slider .swiper-button-next,
.products-slider .swiper-button-prev {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--color-primary);
  box-shadow: var(--shadow); border: 1px solid var(--color-border);
  top: 42%; transition: 0.25s;
}
.products-slider .swiper-button-next:hover,
.products-slider .swiper-button-prev:hover {
  background: var(--grad-magenta); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-magenta); transform: scale(1.08);
}
.products-slider .swiper-button-next::after,
.products-slider .swiper-button-prev::after { font-size: 1.05rem; font-weight: 700; }
.products-slider .swiper-button-prev { left: -6px; }
.products-slider .swiper-button-next { right: -6px; }
.products-slider .swiper-button-disabled { opacity: 0.35; }
@media (max-width: 640px){ .products-slider .swiper-button-next, .products-slider .swiper-button-prev { display: none; } }

/* Equal-height cards inside Swiper sliders */
.products-slider .swiper-wrapper { align-items: stretch; }
.products-slider .swiper-slide { height: auto; display: flex; }
.products-slider .swiper-slide > .product-card { width: 100%; }

/* ============================================================
   Badge z-index fix + product image zoom lightbox
   ============================================================ */
.product-card__image-wrap img { z-index: 0; position: relative; }
.product-card__badge { z-index: 5; }

.product-gallery__main img { cursor: zoom-in; }
.img-lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(15,20,26,0.92);
  display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
  opacity: 0; transition: opacity .2s ease;
}
.img-lightbox.open { display: flex; opacity: 1; }
.img-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.img-lightbox__close {
  position: absolute; top: 18px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  border: none; display: flex; align-items: center; justify-content: center; transition: .2s;
}
.img-lightbox__close:hover { background: var(--grad-magenta); }

/* ============================================================
   Article typography (news / blog content)
   ============================================================ */
.article-content {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--color-text);
}
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.15em; }
.article-content h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 1.8em 0 0.6em; line-height: 1.25; color: var(--color-ink);
  padding-left: 16px; border-left: 4px solid var(--color-primary);
}
.article-content h3 {
  font-size: 1.2rem; margin: 1.5em 0 0.5em; color: var(--color-ink);
}
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-content li { margin-bottom: 0.5em; padding-left: 4px; }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul > li {
  position: relative; padding-left: 28px;
}
.article-content ul > li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad-magenta);
}
.article-content ol { list-style: none; counter-reset: item; padding-left: 0; }
.article-content ol > li { position: relative; padding-left: 34px; counter-increment: item; }
.article-content ol > li::before {
  content: counter(item); position: absolute; left: 0; top: 0.05em;
  width: 24px; height: 24px; border-radius: 50%; background: var(--color-secondary);
  color: var(--color-primary); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.article-content strong, .article-content b { color: var(--color-ink); font-weight: 700; }
.article-content em, .article-content i { font-style: italic; }
.article-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--color-primary-dark); }
.article-content blockquote {
  margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--color-primary);
  background: var(--color-secondary); border-radius: 0 12px 12px 0; color: var(--color-ink-soft); font-style: italic;
}
.article-content img { border-radius: var(--radius); margin: 22px 0; max-width: 100%; height: auto; }
.article-content figure { margin: 22px 0; }
.article-content figure img { margin: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.article-content th, .article-content td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; }
.article-content th { background: var(--color-secondary); color: var(--color-ink); }
