/* ==========================================================================
   Memory Print v3.5 — Многостраничная архитектура, удобный Маркетплейс-каталог
   и Редакционный Прайс-лист (ПК + Мобильный UX без багов)
   ========================================================================== */

:root {
  --plum-950: #230b16;
  --plum-900: #311020;
  --plum-800: #491930;
  --ink-950: #210e16;
  --ink-800: #3f2430;
  --ink-600: #694d59;
  --ink-400: #9a7e8a;

  --rose-700: #b42657;
  --rose-600: #cf3468;
  --rose-500: #e5487b;
  --rose-400: #f26d99;
  --rose-300: #f79ebc;
  --rose-200: #fbd0df;
  --rose-100: #fde9f1;
  --rose-50: #fff6fa;

  --whatsapp: #22c55e;
  --whatsapp-dark: #16a34a;
  --telegram: #24a1de;
  --telegram-dark: #1785bc;

  --border-card: rgba(232, 178, 198, 0.44);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --pill: 999px;

  --banner-h-desktop: 400px;
  --banner-h-tablet: 330px;
  --banner-h-mobile: 256px;

  --shadow-xs: 0 4px 14px rgba(110, 28, 58, 0.05);
  --shadow-sm: 0 10px 28px rgba(110, 28, 58, 0.07);
  --shadow-md: 0 18px 46px rgba(110, 28, 58, 0.11);
  --shadow-lg: 0 28px 64px rgba(70, 14, 35, 0.18);
  --shadow-rose: 0 10px 24px rgba(229, 72, 123, 0.3);

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Marck Script', 'Caveat', cursive;
  --font-hand: 'Caveat', 'Marck Script', cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink-950);
  background-color: #fff7fa;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 196, 218, 0.36) 0%, transparent 36%),
    radial-gradient(circle at 88% 16%, rgba(255, 223, 196, 0.32) 0%, transparent 34%),
    radial-gradient(rgba(226, 134, 166, 0.14) 1.1px, transparent 1.1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1320px;
  padding-inline: 20px;
  margin-inline: auto;
}

/* ==================== ИНДИКАТОР ПРОГРЕССА ПРОКРУТКИ И GPU-АНИМАЦИИ ==================== */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 250;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff5d92 0%, #e5487b 50%, #f59e0b 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.btn-pulse-glow {
  animation: softPulseGlow 2.6s infinite ease-in-out;
}

@keyframes softPulseGlow {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(229, 72, 123, 0.3);
  }
  50% {
    box-shadow: 0 14px 34px rgba(229, 72, 123, 0.52);
  }
}

/* ==================== ТАБЫ ПОДБОРА ПО ПОВОДУ И ГОРИЗОНТАЛЬНЫЕ СКРОЛЛ-ПОЛКИ ==================== */
.occasion-tabs-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.occasion-tabs-strip::-webkit-scrollbar {
  display: none;
}

.occasion-tab {
  border: 1px solid #efd3df;
  background: #ffffff;
  color: var(--ink-800);
  padding: 9px 16px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-xs);
}
.occasion-tab svg {
  width: 15px;
  height: 15px;
  color: var(--rose-500);
}
.occasion-tab:hover {
  border-color: var(--rose-400);
  color: var(--rose-600);
}
.occasion-tab.active {
  background: linear-gradient(135deg, #ea5082 0%, #c82d60 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(200, 45, 96, 0.25);
}
.occasion-tab.active svg {
  color: #ffffff;
}

.home-scroll-shelves-stack {
  display: grid;
  gap: 28px;
}

.home-cat-shelf {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(235, 188, 206, 0.55);
  border-radius: 26px;
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.shelf-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.shelf-header-left h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  color: var(--ink-950);
}

.shelf-header-left span {
  font-size: 12px;
  color: var(--ink-600);
  display: block;
}

.shelf-see-all-btn {
  border: 1px solid #efd3df;
  background: #ffffff;
  color: var(--rose-600);
  padding: 7px 13px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.shelf-see-all-btn:hover {
  background: var(--rose-500);
  border-color: var(--rose-500);
  color: #fff;
}
.shelf-see-all-btn svg {
  width: 14px;
  height: 14px;
}

/* Нативная горизонтальная скролл-лента карточек со snap-фиксацией (0 нагрузки на процессор!) */
.shelf-products-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 11px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.shelf-products-track::-webkit-scrollbar {
  display: none;
}
.shelf-products-track .product-card {
  scroll-snap-align: start;
}

/* ==================== ОТЗЫВЫ ДОВЕРИЯ И ФИНАЛЬНЫЙ МАГНИТ КОНВЕРСИИ ==================== */
.trust-reviews-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.trust-review-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.trust-review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
}
.trust-review-stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.trust-review-stars span {
  margin-left: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--rose-600);
  background: var(--rose-50);
  padding: 2px 8px;
  border-radius: var(--pill);
}

.trust-review-card p {
  font-size: 13px;
  color: var(--ink-800);
  line-height: 1.5;
  margin: 0;
}

.trust-review-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}
.trust-review-author span {
  font-size: 11.5px;
  color: var(--ink-600);
}

.bottom-conversion-magnet {
  background: linear-gradient(135deg, #250b17 0%, #44152b 55%, #2b0f21 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 158, 192, 0.25);
}

.magnet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff9ec0;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 11px;
  border-radius: var(--pill);
  margin-bottom: 8px;
}
.magnet-badge svg {
  width: 13px;
  height: 13px;
}

.magnet-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 900;
  margin: 0 0 6px;
}
.magnet-copy p {
  font-size: 13.5px;
  color: rgba(255, 236, 244, 0.85);
  margin: 0;
  max-width: 560px;
}

.magnet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.magnet-actions .btn-soft-tg {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==================== МНОГОСТРАНИЧНЫЕ ЭКРАНЫ ==================== */
.page-view {
  display: none;
  flex: 1;
  animation: fadePage 0.2s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadePage {
  from { opacity: 0.45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero-compact {
  padding: 24px 0 12px;
  text-align: center;
}

.home-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ==================== КРУГЛЫЙ ФИРМЕННЫЙ ЛОГОТИП ==================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ff5d92, #ffc4d8, #cf3468);
  box-shadow: 0 5px 14px rgba(207, 52, 104, 0.22);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-hand);
  font-size: 27px;
  font-weight: 700;
  color: var(--ink-950);
  white-space: nowrap;
}

.brand-handle {
  font-size: 11px;
  font-weight: 800;
  color: var(--rose-500);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==================== TOPBAR ==================== */
.topbar {
  background: linear-gradient(90deg, #220a15 0%, #381224 50%, #220a15 100%);
  color: rgba(255, 241, 246, 0.94);
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
  flex-shrink: 0;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-item svg,
.topbar-pill-link svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
}

.topbar-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.topbar-pill-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.topbar-admin-link {
  background: rgba(229, 72, 123, 0.24);
  border: 1px solid rgba(255, 158, 192, 0.3);
  color: #ffc2d7;
}
.topbar-admin-link:hover {
  background: var(--rose-500);
  color: #fff;
}

/* ==================== STICKY GLASS HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 95;
  padding: 8px 0;
  width: 100%;
}

.header-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(235, 165, 191, 0.38);
  border-radius: 22px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 32px rgba(84, 18, 44, 0.06);
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
  padding: 8px 13px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--rose-100);
  color: var(--rose-600);
}

.badge-hot {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, #ff5b8d, #d9386a);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-action-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(229, 72, 123, 0.2);
  background: #fff;
  color: var(--ink-800);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  border-color: var(--rose-400);
  color: var(--rose-600);
  background: var(--rose-50);
}

.icon-action-btn svg {
  width: 17px;
  height: 17px;
}

.icon-action-btn.wa {
  background: #edfdf3;
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--whatsapp-dark);
}
.icon-action-btn.tg {
  background: #ecf8fe;
  border-color: rgba(36, 161, 222, 0.25);
  color: var(--telegram-dark);
}

.mini-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: var(--rose-500);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.cart-btn {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #eb5284 0%, #c92f62 100%);
  color: #fff;
  border-radius: 14px;
  padding: 9px 13px 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-rose);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(201, 47, 98, 0.36);
}

.cart-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--rose-600);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-card);
  background: #fff;
  color: var(--ink-950);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}

/* ==================== SEASONAL RIBBON & HERO ==================== */
.above-fold-wrap {
  display: flex;
  flex-direction: column;
}

.seasonal-ribbon {
  padding: 4px 0 6px;
}

.seasonal-ribbon-inner {
  background: linear-gradient(90deg, #fde6f0 0%, #fff0f6 50%, #fde6f0 100%);
  border: 1px solid rgba(229, 72, 123, 0.25);
  color: var(--rose-600);
  border-radius: 14px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.seasonal-ribbon-inner svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero-section {
  padding: 16px 0 24px;
}

.hero-shell {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 246, 250, 0.94) 100%);
  border: 1px solid rgba(235, 175, 198, 0.48);
  border-radius: var(--radius-xl);
  padding: 42px 46px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb.orb-1 { width: 260px; height: 260px; background: rgba(255, 168, 201, 0.32); top: -80px; right: 20%; }
.hero-orb.orb-2 { width: 220px; height: 220px; background: rgba(255, 214, 165, 0.28); bottom: -70px; left: -50px; }

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, #fde5ef 0%, #fff0f5 100%);
  border: 1px solid rgba(229, 72, 123, 0.22);
  color: var(--rose-600);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-eyebrow-pill svg { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.9vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink-950);
}

.hero-title-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.18em;
  background: linear-gradient(135deg, #e5487b 0%, #b42657 60%, #d96b27 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 5px;
}
.hero-title-script.accent-sunset { background: linear-gradient(135deg, #d97706 0%, #ea580c 55%, #e11d48 100%); -webkit-background-clip: text; background-clip: text; }
.hero-title-script.accent-berry { background: linear-gradient(135deg, #be123c 0%, #831843 60%, #e11d48 100%); -webkit-background-clip: text; background-clip: text; }
.hero-title-script.accent-violet { background: linear-gradient(135deg, #9333ea 0%, #db2777 65%, #f43f5e 100%); -webkit-background-clip: text; background-clip: text; }

.hero-subtitle {
  font-size: clamp(14.5px, 1.2vw, 17px);
  color: var(--ink-600);
  margin: 0 0 24px;
  max-width: 600px;
  line-height: 1.62;
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.quick-chip {
  padding: 7px 13px;
  border-radius: var(--pill);
  background: #fff;
  border: 1px solid #f2d5e0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}
.quick-chip:hover { border-color: var(--rose-500); color: var(--rose-600); background: var(--rose-50); }
.quick-chip svg { width: 14px; height: 14px; color: var(--rose-500); }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ea5082 0%, #c82d60 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-rose);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200, 45, 96, 0.36); }
.btn-primary svg, .btn-soft-tg svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-soft-tg {
  cursor: pointer;
  background: linear-gradient(135deg, #f0f9ff 0%, #fdeef5 100%);
  color: var(--ink-950);
  border: 1.5px dashed #dc85a5;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 13px 20px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-soft-tg:hover { border-style: solid; border-color: var(--telegram); background: #eaf6fd; }

.tg-dot-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--pill);
  background: var(--telegram);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.tg-dot-icon svg { width: 12px; height: 12px; }

.hero-metrics {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed #efd2de;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric-item strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 900; color: var(--rose-600); }
.metric-item span { font-size: 12px; font-weight: 700; color: var(--ink-600); }

.mobile-hero-compact-bar { display: none; }
.mobile-home-quick-cats { display: none; }

.hero-bento-stage {
  background: linear-gradient(160deg, #fdeaf1 0%, #fae0ec 52%, #fdf0e6 100%);
  border: 1.5px solid rgba(232, 152, 182, 0.5);
  border-radius: 28px;
  padding: 22px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(150, 38, 79, 0.09);
}

.love-stamp {
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(135deg, #ea5082, #c62c5f);
  color: #fff;
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  padding: 4px 15px;
  border-radius: 13px;
  transform: rotate(3deg);
  box-shadow: 0 8px 18px rgba(198, 44, 95, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.love-stamp svg { width: 14px; height: 14px; fill: currentColor; }

.hero-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bento-tile {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(140, 35, 73, 0.05);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(140, 35, 73, 0.12); }

.bento-tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tile-icon svg { width: 20px; height: 20px; }
.tile-icon.pink { background: #fde7f0; color: var(--rose-600); }
.tile-icon.amber { background: #fff3dc; color: #d97706; }
.tile-icon.purple { background: #f4e8ff; color: #8b5cf6; }
.tile-icon.rose { background: #ffe4ec; color: #e11d48; }

.tile-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rose-50);
  color: var(--rose-500);
  display: grid;
  place-items: center;
}
.tile-arrow svg { width: 13px; height: 13px; }

.bento-tile h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin: 0 0 2px; }
.bento-tile p { font-size: 12px; color: var(--ink-600); margin: 0 0 9px; }
.tile-price { display: inline-block; padding: 4px 10px; border-radius: var(--pill); background: var(--rose-100); color: var(--rose-600); font-size: 11px; font-weight: 800; }

.hero-story-card {
  margin-top: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 6px 18px rgba(140, 35, 73, 0.05);
}
.hero-story-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--rose-200); }
.hero-story-quote { font-family: var(--font-script); font-size: 21px; line-height: 1.18; color: var(--ink-950); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ==================== ЕДИНЫЕ ПРОПОРЦИИ ВСЕХ ФОТО-БАННЕРОВ ==================== */
.banners-section {
  padding: 10px 0 28px;
  width: 100%;
}

.banners-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.banner-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px;
  border-radius: var(--pill);
  border: 1px solid var(--border-card);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.banner-tabs::-webkit-scrollbar { display: none; }

.banner-tab {
  border: none;
  background: transparent;
  color: var(--ink-600);
  padding: 7px 14px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.banner-tab svg { width: 14px; height: 14px; }
.banner-tab.active { background: var(--rose-500); color: #fff; box-shadow: 0 5px 14px rgba(229, 72, 123, 0.26); }

.swiper-nav-group { display: flex; align-items: center; gap: 8px; }

.circle-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: #fff;
  color: var(--ink-950);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.circle-nav-btn:hover { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.circle-nav-btn svg { width: 17px; height: 17px; }

.banner-swiper {
  width: 100%;
  max-width: 100%;
  border-radius: 28px;
  padding-bottom: 34px !important;
}

.banner-swiper .swiper-slide {
  height: var(--banner-h-desktop);
}

.banner-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(229, 72, 123, 0.2);
  height: var(--banner-h-desktop);
  min-height: var(--banner-h-desktop);
  max-height: var(--banner-h-desktop);
  width: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.banner-card.mode-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
}

.banner-card.theme-rose { background: linear-gradient(135deg, #fff2f7 0%, #fde0ec 55%, #fbcfe0 100%); }
.banner-card.theme-amber { background: linear-gradient(135deg, #fffbf2 0%, #ffefd4 55%, #fde0b6 100%); }
.banner-card.theme-violet { background: linear-gradient(135deg, #fbf5ff 0%, #f1e2fd 55%, #e4cdfa 100%); }
.banner-card.theme-emerald { background: linear-gradient(135deg, #f0fdf7 0%, #daf8ea 55%, #c1f0da 100%); }

.banner-copy {
  padding: 36px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  height: 100%;
}

.banner-pills-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.banner-pill-light {
  padding: 5px 13px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--rose-600);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.banner-pill-light svg { width: 13px; height: 13px; }

.banner-pill-dark {
  padding: 5px 13px;
  border-radius: var(--pill);
  background: var(--plum-950);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
}

.banner-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-text {
  font-size: 14.5px;
  color: var(--ink-600);
  margin: 0;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-media {
  padding: 22px 32px 22px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.polaroid-frame {
  width: 100%;
  max-width: 440px;
  height: 344px;
  background: #fff;
  padding: 9px;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(48, 12, 27, 0.14);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.polaroid-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #fdf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-stage img.stage-blur-bg,
.banner-poster-stage img.stage-blur-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.15);
  transform: scale(1.18);
  opacity: 0.55;
  pointer-events: none;
}

.polaroid-stage img.stage-main-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.polaroid-frame:hover img.stage-main-img { transform: scale(1.03); }

.zoom-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  background: rgba(35, 11, 22, 0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.zoom-chip svg { width: 13px; height: 13px; }

.banner-card.mode-full_photo { background: var(--plum-950); display: block; }
.banner-card.mode-full_photo img.full-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.banner-full-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26, 7, 16, 0.93) 0%, rgba(26, 7, 16, 0.82) 48%, rgba(26, 7, 16, 0.34) 100%);
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
}
.banner-full-caption .banner-heading { color: #fff; max-width: 640px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.banner-full-caption .banner-text { color: rgba(255, 240, 246, 0.9); max-width: 560px; }

.banner-card.mode-poster_only { background: transparent; border: none; border-radius: 26px; overflow: hidden; display: block; }
.banner-poster-stage { position: relative; width: 100%; height: 100%; display: block; border-radius: inherit; overflow: hidden; padding: 0; }
.banner-poster-stage img.poster-pure-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; box-shadow: none; }
.poster-floating-cta { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }

#bannerPagination { bottom: 6px !important; }
.swiper-pagination-bullet { background: #e59ab5 !important; opacity: 0.5 !important; }
.swiper-pagination-bullet-active { width: 22px !important; border-radius: 999px !important; background: var(--rose-500) !important; opacity: 1 !important; }

/* ==================== ОБЩИЕ СЕКЦИИ ==================== */
.section { padding: 44px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: var(--pill);
  background: var(--rose-100);
  color: var(--rose-600);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow svg { width: 13px; height: 13px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink-950);
}
.section-title .serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--rose-600); }

.section-subtitle { font-size: 15px; color: var(--ink-600); margin: 0; }
.section-subtitle a { color: var(--rose-600); font-weight: 800; border-bottom: 1.5px dashed var(--rose-400); }

/* ==================== УДОБНЫЙ МАРКЕТПЛЕЙС-КАТАЛОГ (/catalog) И ПОЛНОЭКРАННОЕ МОДАЛЬНОЕ ОКНО КАТЕГОРИЙ КАК В UZUM.UZ ==================== */
.uzum-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff7fa;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  animation: fadeUzumModal 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.uzum-fullscreen-modal.open {
  display: flex;
}

@keyframes fadeUzumModal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.uzum-modal-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 249, 252, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(235, 195, 211, 0.55);
  padding: 12px 0 10px;
  margin-bottom: 12px;
}

.uzum-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.uzum-modal-scroll-body {
  flex: 1;
  max-width: 680px;
}

.mobile-uzum-backbar {
  display: none;
}

.catalog-marketplace-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.catalog-main-area {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.catalog-sidebar {
  position: sticky;
  top: 84px;
  min-width: 0;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-600);
  padding: 4px 10px 10px;
  border-bottom: 1px solid #f5e6ed;
  margin-bottom: 6px;
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-cat-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink-950);
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: all 0.18s ease;
}

.side-cat-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.side-cat-icon-tile {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.side-cat-icon-tile svg {
  width: 17px;
  height: 17px;
}

.cat-tone-pink { background: #fde6f0; color: #db2777; }
.cat-tone-amber { background: #fef3c7; color: #d97706; }
.cat-tone-purple { background: #f3e8ff; color: #7c3aed; }
.cat-tone-peach { background: #ffedd5; color: #ea580c; }
.cat-tone-mint { background: #d1fae5; color: #059669; }
.cat-tone-sky { background: #e0f2fe; color: #0284c7; }
.cat-tone-rose { background: #ffe4e6; color: #e11d48; }

.side-cat-btn:hover {
  background: #fdf2f7;
  color: var(--rose-600);
}

.side-cat-btn.active {
  background: linear-gradient(135deg, #ea5082 0%, #c82d60 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(200, 45, 96, 0.22);
}

.side-cat-btn.active .side-cat-icon-tile {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.side-cat-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--pill);
  background: #f8ebf1;
  color: var(--ink-600);
  flex-shrink: 0;
}
.side-cat-btn.active .side-cat-count {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.sidebar-custom-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff5f9, #fef0e7);
  border: 1px dashed #eab3c8;
}
.sidebar-custom-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  margin-bottom: 4px;
}
.sidebar-custom-box p {
  font-size: 11.5px;
  color: var(--ink-600);
  margin: 0 0 10px;
}

.mobile-cat-strip {
  display: none;
}

.catalog-top-controls {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.search-box {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-400);
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 13px;
  border: 1px solid #ecd2dd;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-950);
  outline: none;
  transition: border-color 0.2s ease;
}
.search-box input:focus { border-color: var(--rose-500); }

.toolbar-right-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #ecd2dd;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-800);
  outline: none;
  cursor: pointer;
}

.fav-filter-btn {
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid #ecd2dd;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.fav-filter-btn.active { background: var(--rose-100); border-color: var(--rose-400); color: var(--rose-600); }
.fav-filter-btn svg { width: 15px; height: 15px; }

.view-mode-switch {
  display: inline-flex;
  background: var(--rose-50);
  padding: 3px;
  border-radius: 11px;
  border: 1px solid #ecd2dd;
}

.view-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-600);
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn.active { background: #fff; color: var(--rose-600); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }

.catalog-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 700;
}

/* Products Grid & List View */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.products-grid.catalog-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-grid.list-mode {
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.products-grid.list-mode .product-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.products-grid.list-mode .product-visual {
  width: 140px;
  height: 126px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.product-card {
  background: #fff;
  border-radius: 24px;
  padding: 13px;
  border: 1px solid rgba(235, 190, 207, 0.5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rose-300); }

.product-visual {
  position: relative;
  height: 215px;
  border-radius: 18px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
}

.product-visual.theme-pink { background: radial-gradient(circle at top right, #fff5f9, #fde6f0 65%, #fad5e5); border: 1.5px dashed #f0b8ce; }
.product-visual.theme-amber { background: radial-gradient(circle at top right, #fffcf5, #ffefd4 65%, #fde2b8); border: 1.5px dashed #efc892; }
.product-visual.theme-purple { background: radial-gradient(circle at top right, #fcf8ff, #f1e3fc 65%, #e5cef8); border: 1.5px dashed #d6b4f0; }
.product-visual.theme-peach { background: radial-gradient(circle at top right, #fff8f5, #fde6dd 65%, #fad5c6); border: 1.5px dashed #f0bba6; }
.product-visual.theme-mint { background: radial-gradient(circle at top right, #f4fef9, #dcf8ec 65%, #c5f0de); border: 1.5px dashed #a2e0c6; }
.product-visual.theme-sky { background: radial-gradient(circle at top right, #f4faff, #ddeffd 65%, #c8e4fc); border: 1.5px dashed #a5d1f8; }
.product-visual.theme-rose { background: radial-gradient(circle at top right, #fff3f7, #ffdbe8 65%, #ffc7db); border: 1.5px dashed #f39ebc; }

.product-visual.has-photo { padding: 0; border-style: solid; }
.product-visual.has-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-visual.has-photo img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rose-600);
  padding: 4px 10px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.card-floating-tools {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.card-tool-btn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-600);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.18s ease;
}
.card-tool-btn:hover { transform: scale(1.08); color: var(--rose-600); }
.card-tool-btn.fav-active { background: var(--rose-500); color: #fff; }
.card-tool-btn svg { width: 14px; height: 14px; }

.product-illust-icon {
  width: 60px;
  height: 60px;
  border-radius: 19px;
  background: #fff;
  color: var(--rose-500);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(175, 45, 92, 0.1);
}
.product-illust-icon svg { width: 26px; height: 26px; }

.product-cat-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-600);
  padding: 4px 11px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 800;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.product-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 5px;
  color: var(--ink-950);
  cursor: pointer;
}
.product-title:hover { color: var(--rose-600); }

.product-desc {
  font-size: 12.5px;
  color: var(--ink-600);
  margin: 0 0 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-variant-select {
  width: 100%;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px solid #f0d5e0;
  background: #fff9fb;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 10px;
  outline: none;
  cursor: pointer;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #f2dce5;
}

.product-price { font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--rose-600); }
.product-actions { display: flex; align-items: center; gap: 6px; }

.btn-card-tg {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  border: 1px solid rgba(36, 161, 222, 0.28);
  background: #eef8fe;
  color: var(--telegram-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.btn-card-tg:hover { background: var(--telegram); color: #fff; }
.btn-card-tg svg { width: 14px; height: 14px; }

.btn-card-add {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ea5082 0%, #cc3063 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-card-add svg { width: 14px; height: 14px; }

/* Удобный счётчик прямо внутри карточки товара! */
.inline-card-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--rose-100);
  border: 1px solid var(--rose-300);
  border-radius: 10px;
  padding: 2px;
}

.step-inline-btn {
  width: 27px;
  height: 27px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: var(--rose-600);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.step-inline-qty {
  min-width: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: var(--rose-700);
}

/* ==================== БЫСТРЫЕ ТЕГИ В КАТАЛОГЕ, КОМБО-ПАКЕТЫ В ПРАЙСЕ И КАЛЬКУЛЯТОР ГОРОДОВ ==================== */
.catalog-quick-tags-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.catalog-quick-tags-bar::-webkit-scrollbar {
  display: none;
}

.cat-qtag {
  border: 1px solid #efd5e0;
  background: #ffffff;
  color: var(--ink-800);
  padding: 6px 13px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}
.cat-qtag svg {
  width: 13.5px;
  height: 13.5px;
  color: var(--rose-500);
}
.cat-qtag.active {
  background: var(--plum-950);
  border-color: var(--plum-950);
  color: #ffffff;
}
.cat-qtag.active svg {
  color: #ff8fb8;
}

.catalog-bottom-cta {
  margin-top: 22px;
  background: linear-gradient(135deg, #fff4f8 0%, #fef4eb 100%);
  border: 1.5px dashed #e9a8c1;
  border-radius: 22px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog-bottom-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 3px;
}
.catalog-bottom-cta span {
  font-size: 12.5px;
  color: var(--ink-600);
}

/* Интерактивный калькулятор сроков доставки по городам на странице /delivery */
.city-delivery-estimator {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.city-estimator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.city-estimator-head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  margin: 0;
}

.city-pills-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.city-pills-strip::-webkit-scrollbar {
  display: none;
}

.city-pill {
  border: 1px solid #efd4e0;
  background: #fff9fb;
  color: var(--ink-800);
  padding: 7px 14px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}
.city-pill.active {
  background: linear-gradient(135deg, #ea5082, #c82d60);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(200, 45, 96, 0.25);
}

.city-estimator-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: linear-gradient(135deg, #fff5f9 0%, #fef6ee 100%);
  border: 1px solid #f2d5e2;
  border-radius: 16px;
  padding: 13px 16px;
}

.city-res-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.city-res-item svg {
  width: 20px;
  height: 20px;
  color: var(--rose-500);
  flex-shrink: 0;
}
.city-res-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-600);
}
.city-res-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-950);
}


/* ==================== КОНСТРУКТОР БОКСА, PDF, ДОСТАВКА И КОНТАКТЫ ==================== */
.builder-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff3f8 55%, #fef6ec 100%);
  border: 1.5px solid rgba(229, 72, 123, 0.24);
  border-radius: var(--radius-xl);
  padding: 38px 42px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}

.builder-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.builder-item { background: #fff; border: 1.5px solid #f0d7e1; border-radius: 15px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.builder-item.checked { border-color: var(--rose-500); background: #fff6fa; }
.builder-item input { width: 17px; height: 17px; accent-color: var(--rose-500); flex-shrink: 0; }

.builder-summary { background: var(--plum-950); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 42px rgba(35, 11, 22, 0.24); }
.builder-total-price { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: #ff8fb8; }

.pdf-velvet-box {
  background: linear-gradient(135deg, #270c19 0%, #3f152a 55%, #2b0f22 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 42px 44px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pdf-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 24px; }
.pdf-perk { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; }
.pdf-perk svg { width: 17px; height: 17px; color: #ff86b2; flex-shrink: 0; }
.pdf-list-cards { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.pdf-dark-item { background: rgba(255, 255, 255, 0.96); color: var(--ink-950); border-radius: 18px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.sheets-swiper { width: 100%; max-width: 100%; padding: 6px 2px 38px !important; }
.sheet-slide-card { background: #fff; border-radius: 20px; padding: 9px; border: 1px solid var(--border-card); box-shadow: var(--shadow-xs); cursor: zoom-in; transition: transform 0.22s ease; }
.sheet-slide-card:hover { transform: translateY(-4px); }
.sheet-slide-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.sheet-slide-card span { display: block; font-size: 12px; font-weight: 800; text-align: center; padding: 9px 4px 3px; color: var(--ink-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.steps-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.step-card { background: #fff; border-radius: 20px; padding: 20px 16px; border: 1px solid var(--border-card); box-shadow: var(--shadow-xs); }
.step-num { width: 32px; height: 32px; border-radius: 11px; background: linear-gradient(135deg, #ea5082, #c82d60); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 13.5px; display: inline-grid; place-items: center; margin-bottom: 10px; }
.step-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 800; margin: 0 0 5px; }
.step-card p { font-size: 12.5px; color: var(--ink-600); margin: 0; }

.delivery-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.delivery-box { background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--border-card); box-shadow: var(--shadow-xs); }
.delivery-box h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin: 12px 0 6px; }
.delivery-box p { margin: 0; font-size: 13.5px; color: var(--ink-600); }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq-item { background: #fff; border-radius: 16px; border: 1px solid var(--border-card); overflow: hidden; }
.faq-item summary { list-style: none; padding: 15px 18px; font-family: var(--font-display); font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 15px; margin: 0; font-size: 13px; color: var(--ink-600); }

.contacts-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 22px; }
.contact-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card { background: #fff; border-radius: 20px; padding: 20px; border: 1px solid var(--border-card); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 7px; transition: transform 0.2s ease; }
.contact-card:hover { transform: translateY(-2px); border-color: var(--rose-400); }
.contact-card strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; }
.contact-card span { font-size: 12.5px; color: var(--ink-600); }

.vip-tg-panel { background: linear-gradient(145deg, #240b16 0%, #44162b 100%); color: #fff; border-radius: 26px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; box-shadow: var(--shadow-lg); }

.btn-wa-solid, .btn-tg-solid { border: none; cursor: pointer; padding: 12px 18px; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.18s ease; }
.btn-wa-solid { background: linear-gradient(135deg, #25d366, #16a34a); }
.btn-tg-solid { background: linear-gradient(135deg, #2aabee, #1682bd); }
.btn-wa-solid:hover, .btn-tg-solid:hover { transform: translateY(-1px); }
.btn-wa-solid svg, .btn-tg-solid svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ==================== FOOTER, SOCIALS & MOBILE TAB BAR ==================== */
.site-footer { background: var(--plum-950); color: rgba(255, 236, 244, 0.85); padding: 44px 0 32px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.admin-footer-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.1); color: #ff9ec0; font-weight: 700; }

.floating-socials { position: fixed; right: 20px; bottom: 22px; z-index: 88; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); transition: transform 0.2s ease; }
.float-btn:hover { transform: scale(1.07) translateY(-2px); }
.float-btn.tg { background: linear-gradient(135deg, #2aabee, #1886bf); }
.float-btn.wa { background: linear-gradient(135deg, #2fe070, #16a34a); }
.float-btn svg { width: 22px; height: 22px; }

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 105;
  background: rgba(35, 11, 22, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 6px;
  box-shadow: 0 14px 34px rgba(25, 6, 15, 0.35);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  will-change: transform, opacity;
}
.mobile-tabbar.is-at-bottom {
  transform: translateY(calc(100% + 26px));
  opacity: 0;
  pointer-events: none;
}

.tabbar-item {
  border: none;
  background: transparent;
  color: rgba(255, 234, 243, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 2px;
  cursor: pointer;
  position: relative;
  min-width: 0;
}
.tabbar-item svg { width: 18px; height: 18px; }
.tabbar-item.active { color: #ff8fb8; }

.tabbar-cart-pill {
  background: linear-gradient(135deg, #f05588, #c82d60);
  color: #fff !important;
  border-radius: 14px;
  padding: 7px 4px;
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(229, 72, 123, 0.38);
}

.tabbar-badge {
  position: absolute;
  top: -4px;
  right: 12%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--rose-600);
  font-size: 9.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* ==================== MOBILE DRAWER, MODALS & TOP TOAST ==================== */
.mobile-drawer-backdrop { position: fixed; inset: 0; background: rgba(30, 8, 18, 0.5); backdrop-filter: blur(4px); z-index: 120; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer { position: fixed; top: 0; right: 0; width: min(340px, 88vw); height: 100dvh; background: #fff; z-index: 130; padding: 20px; display: flex; flex-direction: column; gap: 14px; transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); overflow-y: auto; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-list a { padding: 11px 14px; border-radius: 13px; background: var(--rose-50); font-family: var(--font-display); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-list a.active { background: var(--rose-500); color: #fff; }
.mobile-nav-list a.active svg { color: #fff; }
.mobile-nav-list a svg { width: 16px; height: 16px; color: var(--rose-500); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(28, 8, 17, 0.6); backdrop-filter: blur(6px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-window { background: #fff; border-radius: 26px; width: min(680px, 100%); max-height: 90dvh; overflow-y: auto; padding: 26px; box-shadow: var(--shadow-lg); position: relative; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; margin-bottom: 16px; border-bottom: 1px dashed #efd4df; }
.modal-head h3 { font-family: var(--font-display); font-size: 19px; font-weight: 900; margin: 0; }
.close-btn { width: 35px; height: 35px; border-radius: 50%; border: 1px solid #efd3de; background: var(--rose-50); color: var(--ink-950); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.close-btn svg { width: 16px; height: 16px; }

.qv-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 20px; }
.qv-variant-chips { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.qv-chip { border: 1.5px solid #efd5e0; background: #fff; border-radius: 12px; padding: 9px 12px; text-align: left; font-size: 12.5px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qv-chip.active { border-color: var(--rose-500); background: var(--rose-50); color: var(--rose-600); }

/* ==================== КОМПАКТНОЕ И УДОБНОЕ ОКНО ОФОРМЛЕНИЯ ЗАКАЗА (#cartModal) ==================== */
.checkout-modal-window {
  width: min(580px, 100%);
  padding: 20px 22px 0;
  display: flex;
  flex-direction: column;
}

.checkout-modal-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.checkout-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.checkout-count-pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--pill);
  background: var(--rose-100);
  color: var(--rose-600);
  white-space: nowrap;
}

.checkout-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.checkout-clear-btn {
  border: 1px solid #f0d4e0;
  background: #fff8fb;
  color: var(--ink-600);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.checkout-clear-btn:hover {
  background: #fee2ec;
  color: var(--rose-600);
  border-color: var(--rose-300);
}
.checkout-clear-btn svg {
  width: 13px;
  height: 13px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

/* Двухуровневая компактная карточка товара в корзине (название во всю ширину!) */
.cart-item-card {
  background: #fff9fb;
  border: 1px solid #f3dce5;
  border-radius: 14px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title-wrap {
  min-width: 0;
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-variant {
  font-size: 11px;
  color: var(--ink-600);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-del-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ink-400);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.cart-item-del-btn:hover {
  background: #fde2ec;
  color: var(--rose-600);
}
.cart-item-del-btn svg {
  width: 14px;
  height: 14px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px dashed #f3e1e8;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--rose-600);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #edd0dc;
  border-radius: 9px;
  padding: 2px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  border: none;
  background: var(--rose-50);
  color: var(--rose-600);
  font-weight: 800;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.qty-btn:hover {
  background: var(--rose-500);
  color: #fff;
}

.checkout-compact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-600);
  margin-top: 2px;
}

/* Переключатель формата заказа: 2 наглядные карточки рядом */
.order-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}

.order-mode-card {
  border: 1.5px solid #ecd4df;
  background: #ffffff;
  border-radius: 13px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  min-width: 0;
}

.order-mode-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--rose-50);
  color: var(--rose-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.order-mode-icon svg {
  width: 16px;
  height: 16px;
}

.order-mode-card.mode-tg .order-mode-icon {
  background: #eaf6fd;
  color: var(--telegram);
}

.order-mode-text {
  min-width: 0;
}
.order-mode-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.2;
}
.order-mode-text span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-600);
  line-height: 1.2;
  margin-top: 2px;
}

.order-mode-card.active {
  border-color: var(--rose-500);
  background: #fff5f9;
  box-shadow: 0 4px 12px rgba(229, 72, 123, 0.12);
}
.order-mode-card.active .order-mode-icon {
  background: var(--rose-500);
  color: #fff;
}

.order-mode-card.mode-tg.active {
  border-color: var(--telegram);
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(36, 161, 222, 0.14);
}
.order-mode-card.mode-tg.active .order-mode-icon {
  background: var(--telegram);
  color: #fff;
}

.pdf-order-auto-banner {
  background: linear-gradient(135deg, #eef8ff 0%, #f5f0ff 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0c4a6e;
}
.pdf-order-auto-banner svg {
  width: 19px;
  height: 19px;
  color: var(--telegram);
  flex-shrink: 0;
}
.pdf-order-auto-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
}
.pdf-order-auto-banner span {
  display: block;
  font-size: 10.5px;
  color: #334155;
  line-height: 1.25;
  margin-top: 1px;
}

.checkout-main-submit.tg-active-submit {
  background: linear-gradient(135deg, #2aabee 0%, #1682bd 100%);
  box-shadow: 0 10px 24px rgba(22, 130, 189, 0.28);
}

.checkout-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.form-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11px; font-weight: 800; color: var(--ink-600); }
.form-field input, .form-field select, .form-field textarea {
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid #ead0db;
  font-size: 13px;
  outline: none;
  width: 100%;
  background: #ffffff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--rose-500); }

/* Липкая нижняя панель с итоговой суммой и кнопками */
.checkout-sticky-footer {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid #f2dce5;
  padding: 11px 0 16px;
  margin-top: 4px;
  z-index: 12;
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  padding: 7px 12px;
  background: var(--rose-50);
  border-radius: 11px;
  border: 1px solid #f7d8e5;
}

.checkout-total-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-800);
}

.checkout-total-value {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 900;
  color: var(--rose-600);
}

.checkout-submit-row {
  display: flex;
  gap: 8px;
}

.checkout-main-submit {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 13px;
}

.checkout-tg-submit {
  padding: 12px 14px;
  font-size: 12.5px;
  border-radius: 13px;
  flex-shrink: 0;
}

.lightbox-window { max-width: min(860px, 94vw); max-height: 90dvh; position: relative; display: flex; flex-direction: column; align-items: center; }
.lightbox-window img { max-height: 82dvh; width: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.lightbox-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(35, 11, 22, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ВЕРХНЕЕ АККУРАТНОЕ УВЕДОМЛЕНИЕ (100% скрыто в покое, никогда не задевает нижнее мобильное меню!) */
.toast {
  position: fixed;
  left: 50%;
  top: 16px;
  bottom: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-20px);
  background: var(--plum-950);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 13px;
  z-index: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s ease;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 28px);
}
.toast svg { width: 15px; height: 15px; color: #ff8fb8; flex-shrink: 0; }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ==================== АДАПТИВНОСТЬ (ПЛАНШЕТЫ И СМАРТФОНЫ) ==================== */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: grid; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-shell { grid-template-columns: 1fr; padding: 32px 28px; }
  .steps-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Стили полноэкранного модального окна категорий в стиле Uzum.uz */
.uzum-search-wrap {
  margin-bottom: 2px;
}

.uzum-search-field {
  position: relative;
  width: 100%;
}
.uzum-search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #7d8492;
}
.uzum-search-field input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border-radius: 14px;
  border: 1px solid #ece4e8;
  background: #f3eff2;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-950);
  outline: none;
  transition: all 0.2s ease;
}
.uzum-search-field input:focus {
  background: #ffffff;
  border-color: var(--rose-400);
  box-shadow: 0 4px 16px rgba(229, 72, 123, 0.12);
}

.uzum-featured-list,
.uzum-categories-list {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(235, 195, 211, 0.55);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(70, 18, 40, 0.04);
  margin-bottom: 12px;
}

.uzum-featured-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f3eaee;
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.uzum-featured-row:last-child {
  border-bottom: none;
}
.uzum-featured-row:active,
.uzum-featured-row:hover {
  background: #fdf5f8;
}

.uzum-featured-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.uzum-featured-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #f0dce5;
}

.uzum-featured-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #1f2026;
}

.uzum-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #9ca3af;
}
.uzum-row-right svg {
  width: 18px;
  height: 18px;
}

.uzum-count-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--pill);
  background: #f6ecf0;
  color: var(--rose-600);
}

/* Разделённая строка категории: клик по названию сразу открывает раздел, клик по стрелке справа раскрывает товары внутри */
.uzum-cat-block {
  border-bottom: 1px solid #f3eaee;
}
.uzum-cat-block:last-child {
  border-bottom: none;
}

.uzum-cat-row-split {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #ffffff;
}

.uzum-cat-main-btn {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 13px 10px 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.uzum-cat-main-btn:active,
.uzum-cat-main-btn:hover {
  background: #fdf5f8;
}

.uzum-cat-arrow-btn {
  width: 48px;
  border: none;
  border-left: 1px solid #f5ebf0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.uzum-cat-arrow-btn:active,
.uzum-cat-arrow-btn:hover {
  background: #fceef4;
}

.uzum-cat-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.uzum-cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.uzum-cat-icon svg {
  width: 19px;
  height: 19px;
}

.uzum-cat-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2026;
  line-height: 1.25;
}

.uzum-cat-chevron {
  width: 19px;
  height: 19px;
  color: #9ca3af;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.uzum-cat-block.expanded .uzum-cat-chevron {
  transform: rotate(180deg);
  color: var(--rose-600);
}
.uzum-cat-block.expanded .uzum-cat-arrow-btn {
  background: #fdf0f5;
}

.uzum-subitems-drawer {
  display: none;
  background: #faf6f8;
  padding: 6px 12px 12px 56px;
  border-top: 1px dashed #efe0e7;
}
.uzum-cat-block.expanded .uzum-subitems-drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uzum-subitem-link {
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #363842;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.uzum-subitem-link:hover,
.uzum-subitem-link:active {
  background: #ffffff;
  color: var(--rose-600);
}
.uzum-subitem-link.all-in-cat {
  font-weight: 800;
  color: var(--rose-600);
  background: rgba(229, 72, 123, 0.08);
  margin-bottom: 2px;
}
.uzum-subitem-price {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-600);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .catalog-marketplace-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-sidebar {
    display: none;
  }

  .catalog-desktop-hero {
    display: none;
  }

  .catalog-products-section {
    padding-top: 8px !important;
  }

  /* Верхняя панель открытия модального окна категорий */
  .mobile-uzum-backbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 8px 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
  }

  .uzum-back-to-cats-btn {
    border: none;
    background: var(--rose-50);
    color: var(--rose-600);
    padding: 7px 11px;
    border-radius: 11px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .uzum-back-to-cats-btn svg {
    width: 15px;
    height: 15px;
  }

  .mobile-active-cat-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink-950);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    text-align: center;
  }

  .uzum-list-toggle-pill {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #efd5e0;
    background: #fff;
    color: var(--ink-800);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .uzum-list-toggle-pill svg {
    width: 16px;
    height: 16px;
  }

  .mobile-cat-strip {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding-bottom: 8px;
    margin-bottom: 6px;
    scrollbar-width: none;
  }
  .mobile-cat-strip::-webkit-scrollbar { display: none; }

  .m-cat-chip {
    border: 1px solid #efd5e0;
    background: #fff;
    color: var(--ink-800);
    padding: 7px 12px;
    border-radius: var(--pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
  }
  .m-cat-chip svg { width: 14px; height: 14px; color: var(--rose-500); }
  .m-cat-chip.active {
    background: linear-gradient(135deg, #ea5082, #c82d60);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 14px rgba(200, 45, 96, 0.24);
  }
  .m-cat-chip.active svg { color: #fff; }
}

@media (max-width: 860px) {
  .container { padding-inline: 14px; }
  .banner-swiper .swiper-slide,
  .banner-card {
    height: var(--banner-h-tablet);
    min-height: var(--banner-h-tablet);
    max-height: var(--banner-h-tablet);
  }
  .banner-card.mode-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .polaroid-frame { height: 286px; }
  .builder-card, .pdf-velvet-box, .contacts-wrap, .footer-grid, .qv-grid, .delivery-bento, .faq-grid {
    grid-template-columns: 1fr;
  }
  .banner-copy { padding: 22px 18px 22px 24px; }
  .banner-media { padding: 18px 20px 18px 8px; }
  .products-grid,
  .products-grid.catalog-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
  .container { padding-inline: 12px; }

  .topbar { padding: 5px 0; font-size: 11px; }
  .topbar-hide-sm { display: none !important; }
  .topbar-pill-link { padding: 2px 8px; font-size: 10.5px; }

  .site-header { padding: 6px 0; }
  .header-glass { padding: 7px 10px; border-radius: 17px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo-circle { width: 38px; height: 38px; }
  .brand-title { font-size: 22px; }
  .brand-handle { font-size: 10px; }
  .header-actions { gap: 6px; }
  .icon-action-btn, .mobile-menu-btn { width: 35px; height: 35px; border-radius: 11px; }
  .cart-btn .cart-label-text { display: none; }
  .cart-btn { padding: 7px 10px; border-radius: 11px; gap: 5px; }

  .floating-socials { display: none; }
  .mobile-tabbar { display: grid; }

  .above-fold-wrap { flex-direction: column; }
  .banners-section { order: 1; padding: 6px 0 12px; }
  .hero-section { order: 2; padding: 4px 0 12px; }

  .banners-head { margin-bottom: 8px; gap: 8px; }
  .swiper-nav-group { display: none; }
  .banner-tab { padding: 6px 11px; font-size: 11.5px; }
  .banner-swiper { border-radius: 22px; padding-bottom: 28px !important; }
  .banner-swiper .swiper-slide,
  .banner-card {
    border-radius: 22px;
    height: var(--banner-h-mobile);
    min-height: var(--banner-h-mobile);
    max-height: var(--banner-h-mobile);
  }
  .banner-card.mode-split { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center; }
  .banner-copy { padding: 16px 10px 16px 16px; gap: 8px; }
  .banner-pill-light, .banner-pill-dark { font-size: 9.5px; padding: 3px 8px; }
  .banner-heading { font-size: 15px; line-height: 1.24; -webkit-line-clamp: 3; }
  .banner-text { font-size: 11.5px; line-height: 1.38; -webkit-line-clamp: 2; }
  .banner-copy .btn-primary, .banner-full-caption .btn-primary { padding: 9px 14px; font-size: 11.5px; border-radius: 11px; width: auto; }
  .hide-btn-mobile { display: none !important; }
  .banner-media { padding: 14px 12px 14px 4px; }
  .polaroid-frame { height: 224px; padding: 5px; border-radius: 16px; }
  .polaroid-stage { border-radius: 12px; }
  .zoom-chip { right: 8px; bottom: 8px; padding: 3px 7px; font-size: 9.5px; }
  .banner-full-caption { padding: 18px; gap: 8px; background: linear-gradient(90deg, rgba(22, 6, 14, 0.92) 0%, rgba(22, 6, 14, 0.82) 62%, rgba(22, 6, 14, 0.45) 100%); }
  .banner-poster-stage { padding: 6px; }
  .poster-floating-cta { right: 12px; bottom: 12px; }

  /* Компактный Hero + Быстрая сетка разделов на смартфоне */
  .hero-shell { padding: 15px 14px; border-radius: 22px; gap: 12px; }
  .hero-eyebrow-pill, .hero-quick-tags, .hero-metrics, .hero-right { display: none; }
  .hero-shell.mobile-expanded .hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 12px; padding-top: 12px; }
  .hero-title { font-size: 21px; margin-bottom: 6px; line-height: 1.18; }
  .hero-title br { display: none; }
  .hero-subtitle { font-size: 12.5px; line-height: 1.45; margin-bottom: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-shell.mobile-expanded .hero-subtitle { -webkit-line-clamp: unset; }
  .hero-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-soft-tg { width: 100%; padding: 11px 10px; font-size: 12px; border-radius: 13px; gap: 6px; }

  .mobile-home-quick-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .m-home-cat-card {
    border: 1px solid #f1d9e3;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    min-width: 0;
    box-shadow: 0 3px 10px rgba(90, 20, 48, 0.04);
  }
  .m-home-cat-card:active {
    background: var(--rose-50);
    border-color: var(--rose-400);
  }
  .m-home-cat-card .side-cat-icon-tile {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .m-home-cat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ink-950);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-home-cat-card span:not(.side-cat-icon-tile) {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--rose-600);
    margin-top: 1px;
  }

  .mobile-hero-compact-bar { display: flex; justify-content: center; margin-top: 8px; }
  .mobile-expand-btn { border: none; background: transparent; color: var(--rose-600); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 2px 8px; }
  .mobile-expand-btn svg { width: 13px; height: 13px; }

  .section { padding: 22px 0; }
  .section-title { font-size: 20px; line-height: 1.22; }
  .section-subtitle { font-size: 12.5px; }
  .home-row-head { margin-bottom: 14px; gap: 10px; align-items: center; }
  .home-row-head .btn-soft-tg { padding: 8px 13px; font-size: 12px; border-radius: 11px; }

  /* Компактная панель фильтров в каталоге на телефоне */
  .catalog-top-controls {
    padding: 9px 10px;
    border-radius: 16px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .catalog-top-controls .search-box {
    flex: 1 1 100%;
  }
  .toolbar-right-filters {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .fav-filter-btn span {
    display: none;
  }
  .fav-filter-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
  }
  .sort-select {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Сетка карточек на телефоне с увеличенными фотографиями */
  .products-grid,
  .products-grid.catalog-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { padding: 8px; border-radius: 18px; overflow: hidden; }
  .product-visual { height: 156px; border-radius: 14px; padding: 22px 6px 8px; margin-bottom: 7px; gap: 6px; }
  .product-visual.has-photo { padding: 0; }
  .product-illust-icon { width: 42px; height: 42px; border-radius: 13px; }
  .product-illust-icon svg { width: 19px; height: 19px; }
  .product-badge { top: 6px; left: 6px; font-size: 8.5px; padding: 2px 7px; max-width: calc(100% - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-floating-tools { top: 6px; right: 6px; gap: 4px; }
  .card-floating-tools button[data-open-qv] { display: none; }
  .card-tool-btn { width: 25px; height: 25px; }
  .card-tool-btn svg { width: 12.5px; height: 12.5px; }
  .product-cat-chip { font-size: 9.5px; padding: 2px 8px; }
  .product-title { font-size: 12px; line-height: 1.24; min-height: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-desc { font-size: 10.5px; margin-bottom: 6px; -webkit-line-clamp: 1; }
  .product-variant-select { font-size: 11px; padding: 5px 7px; margin-bottom: 6px; max-width: 100%; min-width: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .product-footer { flex-direction: column; align-items: stretch; gap: 5px; padding-top: 6px; }
  .product-price { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-actions { width: 100%; min-width: 0; gap: 5px; }
  .btn-card-tg { width: 32px; height: 32px; border-radius: 9px; }
  .btn-card-add, .inline-card-stepper { flex: 1; min-width: 0; justify-content: center; min-height: 32px; padding: 6px 8px; font-size: 11.5px; border-radius: 9px; }
  .inline-card-stepper { justify-content: space-between; padding: 2px; }

  /* Режим списка на телефоне (чистая миниатюра без наложения бейджей) */
  .products-grid.list-mode .product-card { flex-direction: row; align-items: center; gap: 11px; padding: 10px; }
  .products-grid.list-mode .product-visual { width: 92px; height: 92px; margin-bottom: 0; }
  .products-grid.list-mode .product-cat-chip,
  .products-grid.list-mode .card-floating-tools button[data-open-qv] { display: none; }
  .products-grid.list-mode .product-title { min-height: 0; font-size: 13.5px; }
  .products-grid.list-mode .product-desc { -webkit-line-clamp: 2; }
  .products-grid.list-mode .product-footer { flex-direction: row; align-items: center; }
  .products-grid.list-mode .product-actions { width: auto; }

  /* На смартфоне горизонтальные скролл-полки товаров и комбо-пакеты прайса листаются пальцем со snap-фиксацией! */
  .home-cat-shelf {
    padding: 14px 12px;
    border-radius: 20px;
  }
  .shelf-header-left h3 {
    font-size: 15px;
  }
  .shelf-products-track {
    grid-auto-columns: 74%;
    gap: 10px;
  }
  .trust-reviews-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bottom-conversion-magnet {
    padding: 20px 16px;
    border-radius: 22px;
    gap: 14px;
  }
  .magnet-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .magnet-actions .btn-primary,
  .magnet-actions .btn-soft-tg {
    width: 100%;
  }

  .price-combos-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .price-combos-strip::-webkit-scrollbar {
    display: none;
  }
  .price-combo-card {
    scroll-snap-align: start;
    padding: 13px 14px;
  }

  .city-delivery-estimator {
    padding: 14px 12px;
    border-radius: 18px;
  }
  .city-estimator-result {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px 12px;
  }


  /* Конструктор бокса, PDF-студия, Доставка и Контакты на телефоне */
  .builder-card, .pdf-velvet-box, .vip-tg-panel { padding: 18px 14px; border-radius: 22px; gap: 16px; }
  .builder-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .builder-item {
    padding: 9px 10px;
    border-radius: 13px;
    align-items: flex-start;
    gap: 7px;
  }
  .builder-item input { margin-top: 2px; }
  .builder-item strong { font-size: 12px !important; line-height: 1.25; }
  .builder-summary { padding: 18px 15px; border-radius: 18px; }
  .builder-total-price { font-size: 24px; }

  /* Компактная шапка PDF-студии на телефоне (помещается на 1 экран вместе с карточками!) */
  .pdf-page-section {
    padding-top: 8px !important;
  }
  .pdf-velvet-box {
    padding: 15px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    gap: 10px;
  }
  .pdf-eyebrow {
    font-size: 9.5px;
    padding: 4px 10px;
    margin-bottom: 6px;
  }
  .pdf-hero-title {
    font-size: 18.5px !important;
    line-height: 1.2;
    margin-bottom: 6px !important;
  }
  .pdf-hero-desc {
    font-size: 12px !important;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pdf-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 11px;
  }
  .pdf-perk {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.2;
    gap: 6px;
  }
  .pdf-perk svg {
    width: 14px;
    height: 14px;
  }
  .pdf-cta-row .btn-tg-solid {
    width: 100%;
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 12px;
  }
  /* Убираем дублирующиеся белые карточки внутри тёмного блока на смартфоне — сразу под блоком идёт удобная сетка карточек! */
  .pdf-list-cards {
    display: none;
  }
  .pdf-grid-heading {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }

  /* Компактные горизонтальные шаги заказа и сетка 2x2 контактов на телефоне */
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
  .step-card {
    padding: 12px 14px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
  }
  .step-num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
  .step-card h4 { margin: 0 0 2px; font-size: 13.5px; }
  .step-card p { font-size: 12px; }

  .delivery-box {
    padding: 16px;
    border-radius: 18px;
  }
  .delivery-box h3 { font-size: 15.5px; margin: 9px 0 4px; }
  .delivery-box p { font-size: 12.5px; }

  .contact-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .contact-card {
    padding: 13px 12px;
    border-radius: 16px;
    gap: 5px;
  }
  .contact-card strong { font-size: 13px; word-break: break-word; }
  .contact-card span { font-size: 11px; line-height: 1.3; }

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

  /* На смартфоне поля Имя+Телефон и Город+Доставка идут аккуратно по 2 в ряд, чтобы вся форма помещалась на 1 экран! */
  .checkout-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .checkout-fields-grid .form-field input,
  .checkout-fields-grid .form-field select {
    padding: 8px 9px;
    font-size: 16px;
  }
  .cart-items-list {
    max-height: 175px;
    margin-bottom: 8px;
  }
  .checkout-clear-btn span {
    display: none;
  }
  .checkout-clear-btn {
    padding: 7px 8px;
  }
  .checkout-sticky-footer {
    padding: 9px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* Защита от авто-зума iOS Safari при фокусе в поля ввода */
  .search-box input,
  .uzum-search-field input,
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }

  /* Нижние шторки модальных окон с липкой шапкой */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-window {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    padding: 0 14px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .modal-head {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 15;
    padding: 14px 0 11px;
    margin-bottom: 12px;
  }
  .modal-head h3 { font-size: 17px; }
}
