:root {
  --pink: #ff6b9d;
  --pink-light: #ffe0ec;
  --pink-bg: #fff5f9;
  --purple: #c96dd8;
  --purple-light: #f3e0f8;
  --lavender: #e8d5f5;
  --coral: #ff8fab;
  --blue: #7c6cf0;
  --mint: #a8e6cf;
  --yellow: #ffd93d;
  --bg: #ffffff;
  --bg-section: #fff5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fff0f5;
  --text: #2d1b30;
  --text-muted: #7a5f7e;
  --text-dim: #b09ab5;
  --border: #f0dce6;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(255,107,157,0.08);
  --shadow-hover: 0 8px 32px rgba(255,107,157,0.18);
  --gradient: linear-gradient(135deg, var(--pink), var(--purple));
  --gradient-soft: linear-gradient(135deg, var(--pink-light), var(--lavender));
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --badge-sale: #ff4444;
  --badge-preorder: #c96dd8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Сброс системного вида кнопок (иначе на части браузеров «голые» grey-кнопки) */
button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,157,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
}

.btn-white {
  background: #fff;
  color: var(--pink);
  border-color: #fff;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,157,0.2);
}

.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* solid bg — без backdrop-filter: иначе fixed-потомки клипаются к шапке */
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  z-index: 1002;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop: навбар в строке шапки (вне DOM header, но fixed по центру) */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 1001;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--pink); }

.nav-item {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-link-catalog {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 4px;
}

.nav-caret {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

/* Без зазора: меню стыкуется с пунктом, «мост» сверху для hover */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(45, 27, 48, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 120;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  line-height: 1;
  font-size: 1.1em;
}

.nav-cat-icon svg,
.nav-cat-icon img,
.nav-cat-icon .cat-icon,
.nav-cat-icon .sicon {
  margin-right: 0;
  display: block;
}

.nav-cat-name {
  min-width: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--pink-light);
  color: var(--pink);
}

.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  position: relative;
  z-index: 1002;
}

.section-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
}

.product-stock {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
}

/* ПК: «В наличии» в одной строке с ценой (после цены / старой цены), если влезает */
.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 12px;
}

/* В карточке каталога кнопок нет — убираем лишний низ */
.product-card .product-price-row {
  margin-bottom: 0;
}
.product-card .product-info {
  padding-bottom: 12px;
}

.product-stock.in-stock { color: #2a9d5c; }
.product-stock.out-of-stock { color: #c44; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -6px;
  z-index: 1010;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* фон страницы можно скроллить; меню — компактная панель */

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff5f9 0%, #ffffff 60%, #f3e0f8 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(255,143,171,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(201,109,216,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(168,230,207,0.08) 0%, transparent 40%);
}

.hero-bg::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 10px 0;
}

.hero-logo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(255,107,157,0.2);
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SECTIONS */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
}

/* TABS — ПК: в ряд с переносом, без горизонтального скролла */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0;
  padding: 4px 0 20px;
}

.tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--pink-light);
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab:hover {
  background: var(--pink-light);
  color: var(--pink);
}

.tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 1px 4px rgba(255, 107, 157, 0.22);
}

.cat-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.sicon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.sicon-sm {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(45, 27, 48, 0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(45, 27, 48, 0.1);
}

/* Карточка: фикс. высота блока (адаптивная), фото на max-width без cover/растягивания */
.product-img-wrap {
  position: relative;
  height: clamp(200px, 24vw, 300px);
  overflow: hidden;
  background: var(--pink-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  max-height: 100%;
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: unset;
  transition: transform 0.4s;
}

.product-img-wrap .card-video {
  max-height: 100%;
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: unset;
  transition: transform 0.4s;
  pointer-events: none;
}

.product-card:hover .product-img-wrap img,
.product-card:hover .product-img-wrap .card-video {
  transform: scale(1.03);
}

.card-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e0f8, #ffe0ec);
}

.card-video-placeholder span {
  font-size: 36px;
  color: var(--pink);
  filter: drop-shadow(0 2px 6px rgba(255,107,157,.3));
}

.card-video-placeholder--purple {
  background: linear-gradient(135deg, #e8d5f5, #f3e0f8);
}

.card-video-placeholder--purple span {
  color: var(--purple);
}

.product-img-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  color: var(--pink);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.product-badge-sale {
  background: var(--badge-sale) !important;
  font-size: 13px;
  padding: 5px 14px;
}

.product-badge-preorder {
  background: var(--badge-preorder) !important;
  font-size: 13px;
  padding: 5px 14px;
}

.product-badge-new {
  background: linear-gradient(135deg, #3cb371, #2f9d5f) !important;
  font-size: 13px;
  padding: 5px 14px;
}

.product-old-price {
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 600;
}

.product-info {
  padding: 16px;
}

.product-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.product-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.product-btn-tg {
  background: linear-gradient(135deg, #2aabee, #229ed9);
}

.product-btns {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-cta {
  padding: 8px 20px;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 18px;
}

/* CATALOG */
.catalog { padding: 80px 0; background: #f4eef2; }

/* PREORDER — те же карточки и фон, что в каталоге; сверху чуть меньше */
.preorder { padding: 48px 0 80px; background: #f4eef2; }

/* DELIVERY */
.delivery { padding: 80px 0; background: var(--pink-bg); }

.delivery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.delivery-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255,107,157,0.06);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.delivery-pickup {
  border: 2px solid var(--pink-light);
}

.delivery-shipping {
  border: 2px solid var(--purple-light);
}

.delivery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,107,157,0.12);
}

.delivery-pickup:hover { border-color: var(--pink); }
.delivery-shipping:hover { border-color: var(--purple); }

.delivery-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--coral));
  color: #fff;
}

.delivery-shipping .delivery-icon-wrap {
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.delivery-content {
  flex: 1;
}

.delivery-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.delivery-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--pink-bg);
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
  max-width: 100%;
}

.delivery-badge-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.delivery-list {
  list-style: none;
  margin-bottom: 12px;
}

.delivery-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-list li .delivery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

.delivery-shipping .delivery-list li .delivery-dot {
  background: var(--purple);
}

.ship-ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--purple);
}

.delivery-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .delivery-row { grid-template-columns: 1fr; }
}

/* ORDER */
.order-section { padding: 80px 0; background: var(--bg); }

.order-banner {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.order-info h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
}

.order-info p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  max-width: 500px;
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* CHANNEL */
.channel-section { padding: 80px 0; background: var(--bg); }

.channel-banner {
  background: linear-gradient(135deg, var(--purple), var(--coral));
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.channel-info h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.1;
}

.channel-info p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  max-width: 500px;
  line-height: 1.4;
}

/* FOOTER */
.footer {
  background: #f0e4ef;
  border-top: 1px solid var(--border);
  padding: 48px 0 48px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 48px;
  margin-bottom: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-contact {
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-label {
  color: var(--text-dim);
  margin-right: 4px;
}

.footer-contact a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 700;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-link {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-link:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* MODAL — выше шапки (z-index 1000), не уезжает под неё */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,27,48,0.5);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, calc(70px + 12px));
  padding-bottom: 20px;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 900px;
  width: 100%;
  max-height: min(90vh, calc(100dvh - 70px - 32px));
  overflow: hidden; /* скролл в .modal-body — крестик не уезжает */
  position: relative;
  margin: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
}

.modal-body,
#policy-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 1.5px solid var(--pink);
  color: var(--pink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(45, 27, 48, 0.18);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.35);
}

.modal-main-img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 500px;
  object-fit: contain;
  background: var(--pink-bg);
  display: block;
}

/* video в слайдере модалки */
video.modal-main-img {
  object-fit: contain;
}

.slider-wrap {
  position: relative;
  background: var(--pink-bg);
  touch-action: pan-y;
  user-select: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  color: var(--pink);
  font-size: 24px;
  cursor: pointer;
  display: none; /* только ПК */
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
  .slider-btn {
    display: flex;
  }
}

.slider-btn:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* Счётчик слайдов: «3 / 12» вместо точек */
.slider-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: rgba(45, 27, 48, 0.55);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 20px;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* превью снизу убраны — на моб свайп, на ПК стрелки */

.modal-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: border-color 0.3s;
}

/* Видео-тумб в галерее */
.modal-thumb-video {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: border-color 0.3s;
  position: relative;
  background: #1a1a2e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-thumb-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb-video span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

.modal-thumb.active,
.modal-thumb:hover,
.modal-thumb-video.active,
.modal-thumb-video:hover {
  border-color: var(--pink);
}

.modal-product-info {
  padding: 24px;
}

.modal-product-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-product-price {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

.modal-product-info .product-price-row {
  margin-bottom: 10px;
}

.modal-product-desc {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 0;
  white-space: pre-line;
}

.modal-product-info .product-btns {
  margin-bottom: 16px;
}

/* Аккордеон «Описание» */
.modal-accordion {
  border: none;
  margin-top: 8px;
  background: var(--pink-bg);
  border-radius: 14px;
  overflow: hidden;
}

.modal-accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  text-align: left;
}

.modal-accordion-head:hover {
  color: var(--pink);
}

.modal-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.modal-accordion.is-open .modal-accordion-chevron {
  transform: rotate(180deg);
}

.modal-accordion-body {
  padding: 0 16px 16px;
}

.modal-accordion-body .modal-product-desc,
.modal-product-desc {
  margin-bottom: 0;
}

/* Catalog CTA: распродажа + под заказ */
.catalog-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 8px 0 28px;
}

.catalog-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  box-shadow: var(--shadow);
}

/* Hover/active — та же тень, что у карточек товаров */
.catalog-cta:hover,
.catalog-cta.active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.catalog-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.catalog-cta-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.catalog-cta-new {
  border-color: #c8e6d4;
  background: linear-gradient(135deg, #f4fbf7 0%, #fff 60%);
}

.catalog-cta-new:hover,
.catalog-cta-new.active {
  border-color: #7bc49a;
  background: linear-gradient(135deg, #eaf8f0 0%, #fff 70%);
  box-shadow: var(--shadow-hover);
}

.catalog-cta-new .catalog-cta-title {
  color: #2f9d5f;
}

.catalog-cta-sale {
  border-color: #f5c4c8;
  background: linear-gradient(135deg, #fff8f9 0%, #fff 60%);
}

.catalog-cta-sale:hover,
.catalog-cta-sale.active {
  border-color: #e88a94;
  background: linear-gradient(135deg, #fff0f2 0%, #fff 70%);
  box-shadow: var(--shadow-hover);
}

.catalog-cta-sale .catalog-cta-title {
  color: #c94a5a;
}

.catalog-cta-order {
  border-color: #e0d0f0;
  background: linear-gradient(135deg, #faf6fd 0%, #fff 60%);
}

.catalog-cta-order:hover,
.catalog-cta-order.active {
  border-color: var(--purple);
  box-shadow: var(--shadow-hover);
}

.catalog-cta-order .catalog-cta-title {
  color: #8b5aad;
}

@media (max-width: 900px) {
  .catalog-cta-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 4px 0 16px;
  }
  .catalog-cta {
    padding: 10px 12px;
    gap: 2px;
    border-radius: 12px;
  }
  .catalog-cta-title {
    font-size: 14px;
  }
  .catalog-cta-sub {
    font-size: 11px;
    line-height: 1.3;
  }
}

.modal-product-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-meta-tag {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--pink-light);
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

/* FLOATING MAX BUTTON */
.float-mak {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 24px rgba(255,107,157,0.4);
  transition: all 0.3s;
  animation: floatPulse 2s ease-in-out infinite;
}

.float-mak:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 32px rgba(255,107,157,0.5);
}

.float-mak-label { line-height: 1; }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,107,157,0.4); }
  50% { box-shadow: 0 6px 32px rgba(255,107,157,0.6); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding-bottom: 48px; }
  /* Первый экран: чуть больше отступов у текста по бокам */
  .hero .container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero-content {
    padding-left: 4px;
    padding-right: 4px;
  }
  .logo-text { font-size: 18px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 15px; }
  .hero-title { font-size: 30px; line-height: 1.1; }
  .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
    padding: 0 4px;
  }
  .hero-contacts-btn { display: none; }
  .tab { padding: 7px 14px; font-size: 13px; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .modal-product-desc { font-size: 14px; }

  /* Мобильное меню на весь экран (под шапкой); скролл только внутри меню */
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    transform: none;
    margin: 0;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 999;
    box-sizing: border-box;
  }

  .nav.open {
    display: flex;
  }

  /* body без скролла, пока открыто меню */
  body.nav-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav-item {
    width: 100%;
    position: relative;
    height: auto;
    display: block;
  }

  .nav > .nav-link,
  .nav-link-catalog {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    min-height: 48px;
    background: #fff;
    -webkit-tap-highlight-color: transparent;
  }

  .nav > .nav-link:active,
  .nav-link-catalog:active {
    background: var(--pink-light);
    color: var(--pink);
  }

  .nav-caret {
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--pink-light);
    color: var(--pink);
    opacity: 1;
    flex-shrink: 0;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none !important;
    border: none !important;
    border-radius: 12px;
    background: var(--pink-bg);
    padding: 0;
    margin: 0;
    transition: max-height 0.25s ease, padding 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
  }

  /* Раскрывается только по тапу «Каталог»; без внутреннего скролла — список целиком */
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown.open:hover .nav-dropdown-menu {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 6px;
    margin: 4px 0 6px;
    transform: none !important;
    position: static !important;
  }

  .nav-link-catalog .nav-caret {
    display: inline-flex;
  }

  .nav-dropdown-menu a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: normal;
    background: transparent;
  }

  .nav-cat-icon {
    margin-right: 12px;
    font-size: 1.15em;
  }

  .nav-dropdown-menu a:active {
    background: #fff;
  }

  .nav-dropdown.open .nav-link-catalog {
    color: var(--pink);
    background: var(--pink-light);
  }

  .order-banner { padding: 32px; text-align: center; }
  .order-info { text-align: center; }
  .order-actions { justify-content: center; width: 100%; }

  .channel-banner { padding: 28px; text-align: center; justify-content: center; flex-direction: column; }
  .channel-info { text-align: center; }
  .channel-banner .channel-info p { font-size: 14px; }
  .channel-banner .btn { width: 100%; max-width: 500px; padding: 12px 16px; font-size: 14px; margin: 0 auto; }

  .delivery-row { grid-template-columns: 1fr; }
  .delivery-card { flex-direction: column; align-items: flex-start; }
  .delivery-icon-wrap { display: none; }
  .delivery-card h3 { display: inline; margin-right: 10px; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  /* Карточка товара на мобилке — компактнее, слабее скругление */
  .product-card {
    border-radius: 10px;
  }
  .product-img-wrap {
    height: clamp(180px, 36vw, 260px);
  }
  .product-title {
    font-size: 13px;
    line-height: 1.12;
    margin-bottom: 5px;
  }
  .product-price { font-size: 17px; }
  .product-old-price { font-size: 13px; }
  .product-btn {
    font-size: 11px;
    padding: 9px 5px;
    border-radius: 10px;
    line-height: 1.15;
  }
  .product-btns { gap: 6px; }
  .modal-accordion-head {
    font-size: 14px;
    padding: 12px 14px;
  }
  .product-info { padding: 12px; }
  .product-card .product-info { padding-bottom: 10px; }
  .product-price-row { margin-bottom: 10px; gap: 6px 10px; }
  .product-card .product-price-row { margin-bottom: 0; }
  /* моб: «В наличии» под ценой */
  .product-price-row .product-stock {
    flex: 1 0 100%;
    white-space: normal;
  }

  /* Кнопки в модалке чуть компактнее */
  .modal-product-info .product-btns .btn,
  .modal-product-info .btn.btn-lg {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Заголовок товара в модалке на моб */
  .modal-product-title {
    font-size: 16px;
    line-height: 1.15;
    margin-bottom: 6px;
  }
  .modal-product-price { font-size: 22px; }
  .modal-product-info {
    padding: 16px 12px;
  }

  /* Модалка: одинаковый отступ сверху и снизу */
  .modal-overlay {
    padding: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: center;
  }
  .modal {
    max-height: calc(100dvh - 32px);
    margin: auto;
  }

  .modal-main-img { max-height: 300px; }
  .slider-counter { font-size: 12px; bottom: 10px; }

  /* моб: категории — горизонтальный скролл, без полосы прокрутки */
  .tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
    padding: 6px 2px 14px;
    margin-bottom: 0;
    gap: 8px;
  }
  .tab.active {
    box-shadow: 0 1px 3px rgba(255, 107, 157, 0.2);
  }
  .tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
  }
  .tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
  }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 24px; margin-bottom: 8px; }
  .section-desc { font-size: 15px; }
  .catalog, .delivery, .order-section, .channel-section { padding: 48px 0; }
  .preorder { padding: 28px 0 48px; }

  .float-mak { width: 58px; height: 58px; padding: 0; display: flex; justify-content: center; align-items: center; border-radius: 50%; bottom: 16px; right: 16px; font-size: 13px; }
  .float-mak .float-mak-icon { margin: 0; }
  .float-mak-label { display: none; }

  .footer { padding: 40px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .products-grid, .preorder-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img-wrap {
    height: clamp(130px, 42vw, 180px);
  }
  .product-btns { flex-direction: column; gap: 5px; }
  .product-btn {
    font-size: 9px;
    padding: 8px 3px;
    border-radius: 8px;
    line-height: 1.15;
  }
  .modal-accordion-head {
    font-size: 13px;
    padding: 11px 12px;
  }
  .modal-product-info .product-btns .btn,
  .modal-product-info .btn.btn-lg {
    padding: 9px 12px;
    font-size: 13px;
  }
  .modal-product-title {
    font-size: 14px;
    line-height: 1.12;
    margin-bottom: 5px;
  }
  .modal-product-price { font-size: 20px; }
  .modal-product-info {
    padding: 14px 10px;
  }
  .product-badge,
  .product-badge-sale,
  .product-badge-preorder,
  .product-badge-new {
    font-size: 9px;
    padding: 2px 7px;
    top: 6px;
    left: 6px;
  }
  .product-img-counter { font-size: 9px; padding: 2px 7px; bottom: 6px; right: 6px; }
  .product-img-counter .sicon-sm { width: 10px; height: 10px; }
  .product-title {
    font-size: 11px;
    line-height: 1.1;
    margin-bottom: 3px;
    -webkit-line-clamp: 2;
  }
  .product-price { font-size: 14px; line-height: 1.15; }
  .product-old-price { font-size: 11px; }
  .product-price-row { gap: 4px 8px; margin-bottom: 8px; }
  .product-card .product-price-row { margin-bottom: 0; }
  .product-info { padding: 10px 8px 10px; }
  .product-card .product-info { padding-bottom: 8px; }
  .product-stock { font-size: 11px; }
  .slider-counter { font-size: 12px; padding: 4px 10px; bottom: 10px; }
  .order-actions { flex-direction: column; }
}

@media (max-width: 400px) {
  .container { padding: 0 10px; }
  .product-title { font-size: 10.5px; line-height: 1.08; }
  .catalog,
  .delivery,
  .order-section,
  .channel-section {
    padding: 20px 0;
  }
  .preorder { padding: 12px 0 20px; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pink-bg); }
::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
