/* =====================================================
   БУСИНКИ — Main Stylesheet
   ===================================================== */

/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:          #FAF7F4;
  --bg-alt:      #F5EDE3;
  --bg-dark:     #2C2C2C;
  --gold:        #C4A882;
  --gold-hover:  #B08B68;
  --text:        #2C2C2C;
  --text-mid:    #5C5751;
  --text-light:  #9A9490;
  --border:      #EDE5DB;
  --white:       #FFFFFF;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 10px rgba(44,44,44,0.06);
  --shadow-md:   0 6px 24px rgba(44,44,44,0.09);
  --shadow-lg:   0 16px 48px rgba(44,44,44,0.13);
  --tr:          all 0.25s ease;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }
textarea { resize: vertical; }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}
.section-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}
.section-header { margin-bottom: 40px; }
.section-header--center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--tr);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(196,168,130,0.35); }
.btn--outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--text);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.9); }
.btn--lg { padding: 15px 36px; font-size: 15px; }
.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; border-radius: var(--radius); }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: var(--tr);
  color: var(--text-mid);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }

/* ── Fields ─────────────────────────────────────────── */
.field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: var(--tr);
  outline: none;
  display: block;
}
.field:focus { border-color: var(--gold); }
.field::placeholder { color: var(--text-light); }
.field--error { border-color: #e06060 !important; }
.field--ta { min-height: 72px; }

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo { flex-shrink: 0; }
.logo__svg { width: 200px; height: auto; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  transition: var(--tr);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
}
.header__phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--tr);
  white-space: nowrap;
}
.header__phone:hover { color: var(--gold); }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  transition: var(--tr);
  color: var(--text);
}
.cart-btn:hover { background: var(--border); }
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--tr);
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 72px);
  background: linear-gradient(145deg, var(--bg) 0%, #F0E8DE 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,168,130,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__content { max-width: 520px; }
.hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 480px;
}
.hero__mosaic-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: block;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero__mosaic-img:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hero__mosaic-img:first-child {
  grid-row: 1 / span 2;
}
.hero__mosaic-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero__mosaic-img:hover img { transform: scale(1.04); }
.hero__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  cursor: pointer;
  color: var(--text-light);
  animation: bounce 2s infinite;
  transition: color 0.2s;
}
.hero__scroll:hover { color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ══════════════════════════════════════════════════════
   CATALOG
   ══════════════════════════════════════════════════════ */
.catalog-section {
  padding: 80px 0;
  background: var(--white);
}
.filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 20px;
  transition: var(--tr);
}
.filters-toggle:hover { border-color: var(--gold); color: var(--gold); }
.catalog__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* Filters */
.filters {
  position: sticky;
  top: 92px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.filters__block { margin-bottom: 28px; }
.filters__block:last-of-type { margin-bottom: 20px; }
.filters__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.filters__cats { display: flex; flex-direction: column; gap: 4px; }
.filters__cats--scroll {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-right: 4px;
}
.cat-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-mid);
  text-align: left;
  transition: var(--tr);
  cursor: pointer;
  border: 1px solid transparent;
}
.cat-btn:hover { background: var(--bg-alt); color: var(--text); }
.cat-btn.active {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
  font-weight: 500;
}
.cat-btn__count {
  font-size: 12px;
  color: var(--text-light);
  background: var(--border);
  border-radius: 10px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.filters__reset { width: 100%; justify-content: center; }

/* Price range */
.price-labels {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.price-labels span:nth-child(1),
.price-labels span:nth-child(3) { font-weight: 500; color: var(--text); }
.price-track-wrap {
  position: relative;
  height: 4px;
  margin: 0 8px;
}
.price-track-bg {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 2px;
}
.price-track-fill {
  position: absolute;
  top: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  pointer-events: none;
}
.price-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% + 16px);
  margin-left: -8px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: transform 0.15s;
}
.price-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.price-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  cursor: pointer;
  pointer-events: all;
}

/* Products grid */
.catalog__main { min-width: 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Skeleton */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  aspect-ratio: 3/4;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 15px;
}

/* Product card */
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card__img-wrap {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}
.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.product-card__img--hover { opacity: 0; }
.product-card:hover .product-card__img--main { opacity: 0; transform: scale(1.04); }
.product-card:hover .product-card__img--hover { opacity: 1; transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
}
.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-card__name {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.product-card__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.product-card__price-old {
  font-size: 12.5px;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-card__add {
  margin-top: 10px;
  padding: 9px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  transition: var(--tr);
  text-align: center;
  border: 1px solid transparent;
}
.product-card__add:hover { background: var(--gold); color: var(--white); }

/* Load more */
.load-more {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.load-more__hint { font-size: 13px; color: var(--text-light); }

/* ══════════════════════════════════════════════════════
   ADVANTAGES
   ══════════════════════════════════════════════════════ */
.advantages-section {
  padding: 80px 0;
  background: var(--bg);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.adv-card {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  transition: var(--tr);
}
.adv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.adv-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  color: var(--gold);
}
.adv-card__icon svg { width: 100%; height: 100%; }
.adv-card__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.adv-card__text { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════ */
.about-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text-col .section-title { margin-bottom: 20px; }
.about__lead {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}
.about__points { display: flex; flex-direction: column; gap: 12px; }
.about__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
}
.about__dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
}
.about__stats-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about__stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about__stat-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.about__stat-lbl { font-size: 13px; color: var(--text-light); }

/* ══════════════════════════════════════════════════════
   DELIVERY / PAYMENT — Service cards
   ══════════════════════════════════════════════════════ */
.delivery-section {
  padding: 80px 0;
  background: var(--white);
}
.payment-section {
  padding: 80px 0;
  background: var(--bg);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.service-card,
.payment-card {
  padding: 28px 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  transition: var(--tr);
}
.service-card:hover,
.payment-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.service-card__icon,
.payment-card__icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--gold);
}
.service-card__icon svg,
.payment-card__icon svg { width: 100%; height: 100%; }
.service-card__title,
.payment-card__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.service-card__text,
.payment-card__text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}
.service-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  background: rgba(196,168,130,0.12);
  border-radius: 20px;
  padding: 3px 10px;
}
.payment-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-light);
}

/* ══════════════════════════════════════════════════════
   CONTACTS
   ══════════════════════════════════════════════════════ */
.contacts-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacts-map {
  grid-column: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  align-self: stretch;
  min-height: 300px;
}
.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  border: none;
  border-radius: 16px;
}
.contacts__inner .section-title { margin-bottom: 6px; }
.contacts-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  display: grid;
  grid-template-columns: 44px 80px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--tr);
  text-decoration: none;
  color: inherit;
}
a.contact-row:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-row--static { cursor: default; }
.contact-row__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-mid);
}
.contact-row__icon svg { width: 20px; height: 20px; }
.contact-row__icon--wa  { background: #e8f5e9; color: #25D366; }
.contact-row__icon--tg  { background: #e3f2fd; color: #2CA5E0; }
.contact-row__icon--phone { background: rgba(196,168,130,0.15); color: var(--gold); }
.contact-row__label { font-size: 12px; color: var(--text-light); }
.contact-row__val { font-size: 14px; font-weight: 500; color: var(--text); }
.contacts-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.contacts-cta__text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
}
.footer__inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 60px;
  align-items: start;
  padding-top: 52px;
  padding-bottom: 52px;
}
.footer__logo { width: 200px; height: auto; margin-bottom: 10px; }
.footer__tagline { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.footer__nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--gold); }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer__contacts a,
.footer__contacts span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  line-height: 1.5;
}
.footer__contacts a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px; max-width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-drawer__foot {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-light);
}
.cart-empty svg { width: 48px; height: 48px; opacity: 0.35; }
.cart-empty p { font-size: 15px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 8px;
}
.cart-item__price { font-size: 14px; font-weight: 600; color: var(--text); }
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-mid);
  transition: var(--tr);
  line-height: 1;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-val { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; }
.cart-item__remove {
  color: var(--text-light);
  transition: color 0.2s;
  padding: 4px;
}
.cart-item__remove:hover { color: #c84b4b; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-mid);
}
.cart-total__val {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}
.checkout-form { display: flex; flex-direction: column; gap: 10px; }

/* ══════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transform: translateY(10px);
  transition: transform 0.3s;
}
.modal.open .modal__box { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 1;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.modal__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.modal__main-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.modal__main-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}
.modal__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: var(--tr);
}
.modal__nav:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.modal__nav--prev { left: 10px; }
.modal__nav--next { right: 10px; }
.modal__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal__thumb {
  width: 52px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--tr);
  background: var(--bg-alt);
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumb.active { border-color: var(--gold); }
.modal__thumb:hover { border-color: var(--border); }
.modal__info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal__category {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.modal__name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.modal__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.modal__price {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}
.modal__price-old {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}
.modal__descr {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.modal__add {
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════
   OVERLAY
   ══════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,44,0.45);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ══════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 50px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — 1024px
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav { gap: 20px; }
  .catalog__layout { grid-template-columns: 200px 1fr; gap: 32px; }
  .advantages-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .about__inner { gap: 48px; }
  .contacts__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contacts-map { grid-column: 1 / -1; min-height: 260px; }
  .contacts-map iframe { min-height: 260px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — 768px (tablet)
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .header__inner { height: 60px; gap: 16px; }
  .logo__svg { width: 130px; }
  .header__phone { display: none; }
  .nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--tr);
    z-index: 90;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
  }
  .nav__link::after { display: none; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 32px;
    gap: 40px;
  }
  .hero__title { font-size: clamp(34px, 8vw, 50px); }
  .hero__mosaic { height: 280px; }

  .section-header { margin-bottom: 28px; }
  .catalog-section { padding: 56px 0; }
  .filters-toggle { display: flex; }
  .catalog__layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 250;
  }
  .filters.open { transform: translateX(0); }

  .advantages-section,
  .about-section,
  .delivery-section,
  .payment-section,
  .contacts-section { padding: 56px 0; }

  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .adv-card:last-child { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-grid .service-card:last-child { grid-column: 1 / -1; }
  .payment-grid { grid-template-columns: 1fr; max-width: 360px; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__stats-col { grid-template-columns: 1fr 1fr; }
  .contacts__inner { grid-template-columns: 1fr; gap: 40px; }
  .contacts-map { grid-column: auto; min-height: 240px; }
  .contacts-map iframe { min-height: 240px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }

  .modal__box { grid-template-columns: 1fr; max-height: 96vh; }
  .modal__gallery { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .cart-drawer { width: 100%; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — 480px (mobile)
   ══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
  .advantages-grid { grid-template-columns: 1fr; }
  .adv-card:last-child { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid .service-card:last-child { grid-column: auto; }
  .about__stats-col { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ══════════════════════════════════════════════════════
   MODAL — количество, цвет, артикул
   ══════════════════════════════════════════════════════ */

/* Артикул */
.modal__sku {
  font-size: 12px;
  color: var(--text-light);
  margin: 2px 0 14px;
  letter-spacing: .03em;
}

/* Блок цвета металла */
.modal__colors {
  margin: 14px 0;
}
.modal__colors-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.modal__colors-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.color-btn:hover {
  border-color: var(--gold);
  background: var(--accent);
}
.color-btn.active {
  border-color: var(--gold);
  background: var(--accent);
  font-weight: 500;
}
.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}
.color-swatch--gold   { background: #C9A96E; }
.color-swatch--silver { background: #B0B0C0; }

/* Кнопки размера и других текстовых опций */
.option-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: border-color .2s, background .2s;
  font-family: inherit;
  white-space: nowrap;
  min-width: 52px;
}
.option-btn:hover {
  border-color: var(--gold);
  background: var(--accent);
}
.option-btn.active {
  border-color: var(--gold);
  background: var(--accent);
  font-weight: 600;
}
.option-btn__price {
  display: block;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

/* Нижний блок: количество + кнопка */
.modal__bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.modal__bottom .btn {
  flex: 1;
}
.modal__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.modal__qty .qty-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.modal__qty .qty-btn:hover {
  border-color: var(--gold);
  background: var(--accent);
}
#modalQtyVal {
  font-size: 17px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

/* Корзина — мета (цвет + артикул) */
.cart-item__body {
  flex: 1;
  min-width: 0;
}
.cart-item__meta {
  font-size: 12px;
  color: var(--text-light);
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .modal__bottom { flex-direction: column; gap: 10px; }
  .modal__bottom .btn { width: 100%; }
  .modal__qty { justify-content: center; }
}

/* ── Content promo (между Hero и Каталогом) ────────── */
.content-promo {
  padding: 50px 0 0;
}
.content-promo__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 720px) { .content-promo__inner { grid-template-columns: 1fr; } }
.content-promo__card {
  display: block;
  padding: 32px 30px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
}
.content-promo__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.content-promo__card--test {
  background: linear-gradient(135deg, #f3e8d7, #e8d5c4);
}
.content-promo__card--stones {
  background: linear-gradient(135deg, #ede0d3, #d8c5b0);
}
.content-promo__icon { font-size: 36px; margin-bottom: 14px; }
.content-promo__photo {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(44,44,44,0.15);
  background: #fff;
}
.content-promo__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.content-promo__card h3 {
  font-family: var(--font-head);
  font-weight: 500; font-size: 26px;
  margin-bottom: 10px;
}
.content-promo__card p {
  color: var(--text-mid); font-size: 15px;
  line-height: 1.55; margin-bottom: 18px;
}
.content-promo__cta {
  font-weight: 500; color: var(--gold);
  font-size: 15px;
}

/* ── Sidebar promo (в фильтрах) ────────────────────── */
.sidebar-promo {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--bg-alt);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: var(--tr);
  border: 1px solid transparent;
}
.sidebar-promo:hover {
  background: #efe1d0;
  border-color: var(--gold);
  transform: translateX(2px);
}
.sidebar-promo--alt { background: #f0ebe3; }
.sidebar-promo__icon {
  font-size: 22px; flex-shrink: 0;
}
.sidebar-promo__photo {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: block;
}
.sidebar-promo__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.sidebar-promo__body {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 14px;
}
.sidebar-promo__body strong { font-weight: 500; }
.sidebar-promo__body span { color: var(--text-mid); font-size: 12px; }

/* ── Subcategory chips на главной (SPA) ────────────── */
.subcat-chips-spa {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.subcat-chips-spa .subcat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  font-size: 14px; font-weight: 400;
  color: var(--text);
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
  font-family: inherit;
}
.subcat-chips-spa .subcat-chip:hover {
  border-color: var(--gold); transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(196,168,130,0.18);
}
.subcat-chips-spa .subcat-chip span {
  font-size: 12px; color: var(--text-light);
  background: var(--bg-alt);
  padding: 1px 7px; border-radius: 10px;
}
.subcat-chips-spa .subcat-chip--active {
  background: var(--gold); border-color: var(--gold); color: #fff;
}
.subcat-chips-spa .subcat-chip--active span {
  background: rgba(255,255,255,0.25); color: #fff;
}
@media (max-width: 540px) {
  .subcat-chips-spa { padding: 10px; gap: 6px; }
  .subcat-chips-spa .subcat-chip { padding: 6px 12px; font-size: 13px; }
}

/* ── Smart Search Bar ─────────────────────────── */
.search-bar {
  border-top: 1px solid var(--border);
  background: rgba(250,247,244,0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  position: relative;
}
.search-bar__container { position: relative; }
.search-form__submit {
  background: var(--gold);
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--tr);
  white-space: nowrap;
  border: none;
  font-family: inherit;
}
.search-form__submit:hover { background: var(--gold-hover); }
.search-form {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  transition: var(--tr);
  position: relative;
}
.search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(196,168,130,0.15);
}
.search-form__icon { color: var(--text-light); flex-shrink: 0; }
.search-form__input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px; color: var(--text);
}
.search-form__input::placeholder { color: var(--text-light); }
.search-form__clear {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-mid);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.search-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  align-items: center; justify-content: center;
  color: var(--text);
}

/* Search results panel */
.search-panel {
  position: absolute; left: 0; right: 0;
  top: calc(100% - 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 70vh; overflow-y: auto;
  z-index: 95; padding: 14px;
}
.search-panel:empty { display: none; }

.search-section {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.search-section:first-child { border-top: none; padding-top: 0; }
.search-section__title {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light); font-weight: 500;
  margin-bottom: 8px; padding: 0 6px;
}
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: background 0.15s;
}
.search-item:hover { background: var(--bg-alt); }
.search-item__photo {
  width: 48px; height: 48px;
  border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: var(--bg-alt);
}
.search-item__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.search-item__body { flex: 1; min-width: 0; }
.search-item__title {
  font-size: 14px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.search-item__meta {
  font-size: 12px; color: var(--text-light); margin-top: 2px;
}
.search-item__price {
  font-family: var(--font-head); font-size: 16px; font-weight: 500;
  flex-shrink: 0;
}
.search-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 13px; color: var(--text);
  text-decoration: none;
  margin: 0 4px 4px 0;
  transition: var(--tr);
}
.search-tag:hover { background: var(--gold); color: #fff; }
.search-empty { padding: 18px; text-align: center; color: var(--text-light); font-size: 14px; }
.search-history-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 13px; color: var(--text-mid);
  margin: 0 4px 4px 0; cursor: pointer;
  transition: var(--tr);
  border: none; font-family: inherit;
}
.search-history-item:hover { background: var(--gold); color: #fff; }

@media (max-width: 768px) {
  .search-bar { padding: 8px 0; }
  .search-form { padding: 8px 14px; }
  .search-form__input { font-size: 14px; }
}
