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

/* ═══════════════════════════════════════════════
   LOADER — Ночное поле: теплица из поликарбоната
   ═══════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #010d1a;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5vh;
  opacity: 1;
  transition: opacity 0.65s ease-in-out;
}
#loader.fade-out { opacity: 0; pointer-events: none; }
.ld-sky {
  position: absolute;
  inset: 0 0 33% 0;
  background: linear-gradient(180deg, #010c17 0%, #0e2232 100%);
  overflow: hidden;
}
.ld-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: ldTwinkle 3s ease-in-out infinite alternate;
}
.ld-star:nth-child(2n) { animation-delay: -1.1s; }
.ld-star:nth-child(3n) { animation-delay: -0.6s; }
.ld-star:nth-child(5n) { animation-delay: -1.8s; }
@keyframes ldTwinkle { from { opacity: 0.3; } to { opacity: 1; } }
.ld-ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 33%;
  background: linear-gradient(180deg, #1c2e10 0%, #0c1809 100%);
  overflow: hidden;
}
.ld-frow {
  position: absolute;
  left: -5%; width: 110%;
  background: rgba(38,65,18,0.55);
  border-radius: 50%;
}
.ld-frow:nth-child(1) { top:10%; height:4px; }
.ld-frow:nth-child(2) { top:33%; height:3px; }
.ld-frow:nth-child(3) { top:58%; height:3px; opacity:.7; }
.ld-frow:nth-child(4) { top:80%; height:2px; opacity:.45; }
.ld-gh-wrap {
  position: absolute;
  bottom: 33%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(290px, 58vw, 640px);
  overflow: visible;
}
.ld-gh-svg { width: 100%; height: auto; display: block; overflow: visible; }
/* Мигание лампы */
.ld-glow { opacity: 0; animation: ldFlicker 1.5s 0.1s ease-out forwards; }
@keyframes ldFlicker {
  0%   { opacity: 0; }
  11%  { opacity: 0.88; }
  16%  { opacity: 0.04; }
  25%  { opacity: 0.92; }
  30%  { opacity: 0.08; }
  42%  { opacity: 1; }
  100% { opacity: 1; }
}
/* Внешнее свечение */
.ld-ext { opacity: 0; animation: ldFadeIn 1s 0.55s ease-out forwards; }
@keyframes ldFadeIn { to { opacity: 1; } }
/* Рост деревьев снизу вверх */
.ld-plant {
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: scaleY(0);
  animation: ldGrow 0.95s cubic-bezier(0.22,1,0.36,1) forwards;
}
.lp1 { animation-delay: 0.80s; }
.lp2 { animation-delay: 0.95s; }
.lp3 { animation-delay: 0.85s; }
@keyframes ldGrow { to { transform: scaleY(1); } }


/* Томаты созревают во время провисания */
.ld-tomato {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  animation: ldRipen 0.6s ease-out forwards;
}
.tm1 { animation-delay: 1.65s; }
.tm2 { animation-delay: 1.80s; }
.tm3 { animation-delay: 1.72s; }
.tm4 { animation-delay: 1.88s; }
@keyframes ldRipen {
  0%   { opacity: 0; transform: scale(0); }
  55%  { fill: #ff8f00; }
  100% { opacity: 1; transform: scale(1); fill: #e53935; }
}
/* Название бренда */
.gl-brand {
  position: relative;
  z-index: 3;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  color: rgba(255,255,255,0.92);
  animation: ldFadeIn 0.55s ease-out 1.95s forwards;
}
.gl-brand span { color: #a5d6a7; }

html {
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

:root {
  --green:        #2e7d32;
  --green-l:      #4caf50;
  --green-d:      #1b5e20;
  --orange:       #f57c00;
  --bg:           #dce8dc;
  --card-bg:      #ffffff;
  --text:         #1a1a1a;
  --muted:        #6b7280;
  --border:       #e0e0e0;
  --input-bg:     #f5f5f5;
  --card-img-bg:  linear-gradient(135deg, #e8f5e9, #f1f8e9);
  --radius:       14px;
  --shadow:       0 2px 16px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
}

[data-theme="dark"] {
  --bg:           #0e1a0f;
  --card-bg:      #1b2d1c;
  --text:         #ddeedd;
  --muted:        #8aaa8a;
  --border:       #2d422e;
  --input-bg:     #162117;
  --card-img-bg:  linear-gradient(135deg, #1b2d1c, #1e311e);
  --shadow:       0 2px 16px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
}
[data-theme="dark"] .cart-summary   { background: #162117; border-color: #2d422e; }
[data-theme="dark"] .subcat-group-header { border-bottom-color: var(--border); }
[data-theme="dark"] .card:hover .card-img { background: linear-gradient(135deg, #1e311e, #253b25); }

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100dvh; display: flex; flex-direction: column; }
body > footer { margin-top: auto; }

/* Параллакс-обёртка оставлена в HTML, но изображение не показываем —
   теперь фон задаётся через body */
.parallax-wrap { display: none; }

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, var(--green-d) 0%, var(--green) 100%);
  color: #fff;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  overflow: visible;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(165,214,167,.8) 15%, #fff 50%, rgba(165,214,167,.8) 85%, transparent 100%);
  box-shadow: 0 0 8px 3px rgba(165,214,167,.7), 0 0 22px 6px rgba(76,175,80,.4), 0 6px 24px 4px rgba(76,175,80,.18);
  pointer-events: none;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.12rem; font-weight: 700; }
.logo span { color: #a5d6a7; }
nav a { color: #c8e6c9; text-decoration: none; margin-left: 22px; font-size: .76rem; transition: color .2s; }
nav a:hover { color: #fff; }
.header-right { display: flex; align-items: center; gap: 11px; }

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c8e6c9;
  text-decoration: none;
  font-size: .76rem;
  transition: color .2s;
}
.cart-link:hover, .cart-link.active { color: #fff; }
.cart-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  padding: 2px 8px;
  font-size: .78rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  transition: transform .2s;
}
.cart-badge.pop { transform: scale(1.4); }

.btn-call {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-call:hover { background: #ef6c00; transform: translateY(-1px); }
header .btn-call { padding: 6px 14px; font-size: .72rem; border-radius: 7px; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 5% 32px;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #1b5e20;
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* ─ Окна теплицы ─ */
.hw-win { cursor: pointer; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 18px; color: #1b5e20; text-shadow: 0 2px 14px rgba(255,255,255,.85), 0 0 40px rgba(255,255,255,.5); }
.hero p  { font-size: clamp(1rem, 2vw, 1.25rem); color: #2e7d32; max-width: 600px; margin: 0 auto 36px; text-shadow: 0 1px 8px rgba(255,255,255,.8); }
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn-secondary { border-color: #1b5e20; color: #1b5e20; }
.hero .btn-secondary:hover { background: rgba(27,94,32,.08); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #ef6c00; transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #a5d6a7;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); }

/* ── STATS ── */
/* ── USP STRIP ── */
.usp-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: var(--card-bg);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
  padding: 20px 24px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border-right: 1px solid var(--border);
}
.usp-item:last-child { border-right: none; }
.usp-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── SECTION TITLE ── */
.section-title { text-align: center; padding: 60px 5% 36px; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--green-d); }
.section-title p  { color: var(--muted); margin-top: 10px; font-size: 1rem; }

/* ── CATEGORY TABS ── */
.category-bar-wrap {
  position: relative;
  background: var(--bg);
}
.category-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 5% 40px; }
.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 11px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--text);
}
.cat-btn .icon { font-size: 1.4rem; }
.cat-btn:hover { border-color: var(--green-l); color: var(--green); }
.cat-btn.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(46,125,50,.35); }

/* ── SUBCAT (GROUP) FILTER BAR ── */
.subcat-bar {
  display: flex;
  gap: 8px;
  padding: 6px 24px 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg);
  position: sticky;
  top: 56px;
  z-index: 90;
}
.subcat-bar::-webkit-scrollbar { display: none; }
.subcat-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all .18s;
  white-space: nowrap;
}
.subcat-btn:hover  { border-color: var(--green-l); color: var(--green); }
.subcat-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(46,125,50,.40);
  transform: scale(1.06);
}

/* ── PRODUCT GRID ── */
.products { padding: 0 5% 70px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.subcat-group-header {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-d);
  padding: 18px 0 4px;
  border-bottom: 2px solid #e8f5e9;
  margin-bottom: 4px;
}
[data-theme="dark"] .subcat-group-header { border-bottom-color: var(--border); }

.card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.stars-gold { color: #f9a825; }
.stars-empty { color: var(--border); }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.14); }
.card-img { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; background: var(--card-img-bg); }
.card-body { padding: 16px; }
.card-body h3   { font-size: 1rem; font-weight: 700; }
.card-body .origin { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); }
.price { font-size: 1.1rem; font-weight: 800; color: var(--green); }
.price span { font-size: .75rem; font-weight: 400; color: var(--muted); }

.btn-order { background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-order:hover { background: var(--green-d); }

/* Кнопка избранного на карточке */
.btn-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; cursor: pointer;
  font-size: 1.15rem; color: #bdbdbd; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: color .2s, transform .2s, background .2s;
  z-index: 2; backdrop-filter: blur(4px); line-height: 1;
}
.btn-fav:hover  { transform: scale(1.2); }
.btn-fav.active { color: #e53935; background: #fff0f5; }

.hidden { display: none !important; }

/* Кнопка "Назад" поверх цветного hero-блока (Market/Base, Section, Warehouse, Firm) */
.hero-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: background .15s, transform .15s;
}
.hero-back-btn:hover { background: rgba(255,255,255,.32); transform: translateX(-2px); }

/* ── Cookie banner ── */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1b5e20;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5%;
  font-size: .85rem;
  z-index: 9999;
  flex-wrap: wrap;
}
#cookieBanner a { color: #a5d6a7; text-underline-offset: 2px; }
#cookieBanner #cookieOkBtn {
  background: #fff;
  color: #1b5e20;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
#cookieBanner #cookieOkBtn:hover { opacity: .85; }

/* ── WHY ── */
.why { background: var(--bg); }
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 0 5% 70px; }
.why-card { flex: 1 1 220px; max-width: 280px; }
.why-card { background: var(--card-bg); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.why-card .icon { font-size: 2.5rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--green-d); }
.why-card p  { font-size: .88rem; color: var(--muted); line-height: 1.55; }

/* ── CONTACT ── */
#contact, #catalog, #why { scroll-margin-top: 56px; }
.contact-section { background: linear-gradient(135deg, var(--green-d), var(--green)); color: #fff; padding: 70px 5%; display: flex; flex-wrap: wrap; gap: 50px; justify-content: space-between; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p  { color: #c8e6c9; line-height: 1.7; max-width: 380px; }
.contact-details { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-details a { color: #a5d6a7; text-decoration: none; font-size: 1rem; display: flex; align-items: center; gap: 10px; transition: color .2s; }
.contact-details a:hover { color: #fff; }

.contact-form { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border-radius: var(--radius); padding: 36px; flex: 1; min-width: 280px; max-width: 480px; }
.contact-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; color: #c8e6c9; }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 11px 14px; color: #fff; font-size: .95rem; outline: none; transition: border-color .2s; font-family: inherit; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #a5d6a7; }
.field select option { color: var(--text); background: #fff; }
.field textarea { resize: vertical; min-height: 90px; }

.btn-submit { width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; }
.btn-submit:hover { background: #ef6c00; transform: translateY(-1px); }

/* ── FOOTER ── */
footer { background: var(--green-d); color: #a5d6a7; text-align: center; padding: 24px 5%; font-size: .85rem; }

/* ── ORDER MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card-bg); border-radius: var(--radius); padding: 40px 36px; max-width: 420px; width: 90%; text-align: center; position: relative; }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.modal-product-icon { font-size: 3.5rem; margin-bottom: 12px; }
.modal h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.modal-price { color: var(--green); font-weight: 700; font-size: 1.1rem; margin-bottom: 22px; }
.modal-total { margin: 14px 0 20px; font-size: 1rem; color: var(--muted); }
.modal-total strong { color: var(--text); font-size: 1.15rem; }

.qty-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.qty-btn { width: 38px; height: 38px; background: var(--bg); border: 2px solid var(--border); border-radius: 8px; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.qty-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
#qtyInput { width: 80px; text-align: center; border: 2px solid var(--border); border-radius: 8px; padding: 8px; font-size: 1rem; outline: none; background: var(--card-bg); color: var(--text); }
#qtyInput:focus { border-color: var(--green-l); }
#qtyUnit { font-size: .9rem; color: var(--muted); }

.btn-add-cart { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-add-cart:hover { background: var(--green-d); }

/* ── CART PAGE ── */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 40px 5% 70px; }

.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.cart-empty p  { color: var(--muted); }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cart-item-emoji { font-size: 2.2rem; flex-shrink: 0; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-weight: 700; font-size: .98rem; }
.cart-item-price { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; }
.cart-item-qty span { font-weight: 700; min-width: 30px; text-align: center; }
.unit-label { font-size: .82rem; color: var(--muted); }
.cart-item-total { font-weight: 800; font-size: 1rem; color: var(--green); min-width: 90px; text-align: right; }
.btn-remove { background: none; border: none; color: #bbb; font-size: 1.1rem; cursor: pointer; transition: color .2s; padding: 4px 8px; }
.btn-remove:hover { color: #e53935; }

.cart-summary { background: #e8f5e9; border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.07); position: sticky; top: 88px; border: 1px solid #c8e6c9; }

.cart-page .section-title h2 { color: var(--green-d); }
.cart-summary h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.summary-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--border); padding-top: 14px; font-size: 1rem; }
.summary-total strong { font-size: 1.3rem; color: var(--green); }

.btn-clear { width: 100%; background: none; border: 2px solid var(--border); border-radius: 10px; padding: 11px; font-size: .9rem; color: var(--muted); cursor: pointer; margin-top: 10px; transition: border-color .2s, color .2s; }
.btn-clear:hover { border-color: #e53935; color: #e53935; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: #323232; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: .92rem; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 300; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── VARIETIES MODAL ── */
.varieties-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 4%;
  overflow-y: auto;
}
.varieties-overlay.open { display: flex; }
.varieties-modal {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 900px;
  margin: auto;
  position: relative;
}
.varieties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.varieties-header h3 { font-size: 1.4rem; font-weight: 800; color: var(--green-d); }
.varieties-close {
  background: var(--input-bg);
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  transition: background .2s;
  flex-shrink: 0;
}
.varieties-close:hover { background: var(--border); color: var(--text); }
.varieties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
@media (max-width: 680px) {
  .varieties-modal { padding: 20px 16px; }
  .varieties-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── BURGER ── */
.burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background .2s;
}
.burger:hover { background: rgba(255,255,255,.12); }

.mobile-nav {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--green-d);
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height .22s ease-out, opacity .2s ease-out, transform .2s ease-out;
}
.mobile-nav.open {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav a {
  display: block;
  color: #c8e6c9;
  text-decoration: none;
  padding: 11px 5%;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s, color .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }

/* ── FLOAT CONTACT BUTTONS ── */
.float-contact {
  position: fixed;
  bottom: 28px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  transition: bottom .32s cubic-bezier(.34, 1.15, .64, 1);
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.float-tg { background: #229ED9; }
.float-wa { background: #25D366; }

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-section { gap: 30px; }
  .contact-form { min-width: unset; flex: unset; width: 100%; }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 680px) {
  .usp-strip { display: none; }

  /* Header */
  nav { display: none; }
  .burger { display: block; }
  .btn-login-header { display: none; }
  .btn-header-only  { display: none; }
  .btn-call { padding: 7px 13px; font-size: .82rem; }

  /* Hero и статистика — скрыты на мобильном */
  .hero { display: none; }
  .stats { display: none; }

  /* Stats */
  .stats { flex-wrap: wrap; }
  .stat { min-width: 45%; border-right: none; border-bottom: 1px solid #eee; }
  .stat:nth-child(odd) { border-right: 1px solid #eee; }
  .stat:last-child { border-bottom: none; }
  .stat-num { font-size: 1.7rem; }

  /* Category — scroll-snap карусель */
  .category-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 12px 24px 28px;
    gap: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .category-bar::-webkit-scrollbar { display: none; }
  .cat-btn {
    flex-direction: column;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 16px 14px 13px;
    gap: 6px;
    min-width: 86px;
    text-align: center;
    border-radius: 20px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 -10px;
    position: relative;
    z-index: 1;
    opacity: 0.65;
    transform: scale(0.82);
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                opacity .35s, box-shadow .35s, z-index 0s .18s;
  }
  .cat-btn .icon { font-size: 2rem; }
  .cat-btn.adj {
    z-index: 5;
    opacity: 0.88;
    transform: scale(0.91);
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                opacity .35s, box-shadow .35s, z-index 0s;
  }
  .cat-btn.active {
    z-index: 10;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                opacity .35s, box-shadow .35s, z-index 0s;
  }

  /* Subcat bar — мобильный */
  .subcat-bar {
    padding: 4px 16px 10px;
  }
  .subcat-bar::-webkit-scrollbar { display: none; }
  .subcat-btn { flex-shrink: 0; font-size: .8rem; padding: 5px 14px; }

  /* Products */
  .products { padding: 0 4% 48px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .card-img { height: 120px; font-size: 3.2rem; }
  .card-body { padding: 12px 12px 8px; }
  .card-body h3 { font-size: .9rem; }
  .card-footer { padding: 10px 12px; }
  .price { font-size: 1rem; }
  .btn-order { padding: 7px 12px; font-size: .8rem; }

  /* Section title */
  .section-title { padding: 38px 4% 22px; }

  /* Cart */
  .cart-page { padding: 24px 4% 48px; }
  .cart-item { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .cart-item-emoji { font-size: 2rem; }
  .cart-item-info { flex: 1; min-width: 120px; }
  .cart-item-qty { flex-wrap: wrap; }
  .cart-item-total { min-width: auto; text-align: left; }

  /* Contact */
  .contact-section { padding: 44px 5%; flex-direction: column; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }

  /* Modal */
  .modal { padding: 28px 18px; }

  /* Why */
  .why-grid { gap: 16px; padding: 0 4% 50px; }
}

/* ── RESPONSIVE: SMALL MOBILE ── */
@media (max-width: 400px) {
  .logo { font-size: .96rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn-call { display: none; }
  .header-right { gap: 8px; }
  .cart-badge { padding: 2px 6px; min-width: 18px; }
}

/* ── PWA Install Banner ──────────────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 14px 16px;
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 2000;
  transition: bottom .4s cubic-bezier(.34,1.3,.64,1);
}
.pwa-banner--visible { bottom: 20px; }
.pwa-banner__icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.pwa-banner__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pwa-banner__text strong { font-size: .95rem; color: #1b5e20; }
.pwa-banner__text span   { font-size: .78rem; color: #666; }
.pwa-banner__btn {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.pwa-banner__btn:hover { background: var(--green-d); }
.pwa-banner__ios {
  flex: 1;
  font-size: .78rem;
  color: #444;
  align-items: center;
  gap: 4px;
}
.pwa-ios-share {
  display: inline-block;
  background: #007aff;
  color: #fff;
  border-radius: 6px;
  padding: 0 5px;
  font-size: .85rem;
}
.pwa-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1rem;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.pwa-banner__close:hover { color: #666; }

/* ── Поиск по каталогу (Market/Firm, Market/Warehouse) ─────────────────── */
.catalog-search-wrap { display:flex; justify-content:center; margin: 12px 5% 4px; }
.catalog-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.catalog-search:focus-within { border-color: var(--green); box-shadow: 0 2px 12px rgba(76,175,80,.18); }
.search-icon { font-size: 1.05rem; margin-right: 10px; opacity: .45; flex-shrink: 0; }
.catalog-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: .95rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.catalog-search input::placeholder { color: #aaa; }
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  color: #aaa;
  padding: 0 0 0 6px;
  flex-shrink: 0;
  line-height: 1;
}
.search-clear:hover { color: #555; }
.search-no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 1rem;
}

/* ── Visual polish ────────────────────────────────────────────────────────── */

/* Card hover: green ring + emoji bg highlight */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.14), 0 0 0 2px rgba(76,175,80,.18);
}
.card-img { transition: background .25s ease; }
.card:hover .card-img { background: linear-gradient(135deg, #c8e6c9, #e8f5e9); }
[data-theme="dark"] .card:hover .card-img { background: linear-gradient(135deg, #1e311e, #253b25); }

/* Subcat hover bg fill */
.subcat-btn:hover { background: rgba(76,175,80,.08); }

/* Button tap feedback */
.btn-order:active        { transform: scale(0.95); transition: transform .08s; }
.btn-primary:active      { transform: scale(0.96); transition: transform .08s; }
.btn-add-cart:active     { transform: scale(0.96); transition: transform .08s; }

/* Tighter headings */
.section-title h2 { letter-spacing: -0.015em; }
.hero h1          { letter-spacing: -0.02em; }

/* ── Cart float bar (mobile only) ─────────────────────────────────────────── */
.cart-float-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green-d);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 11px 5%;
  padding-bottom: max(11px, calc(11px + env(safe-area-inset-bottom, 0px)));
  gap: 12px;
  z-index: 950;
  box-shadow: 0 -2px 18px rgba(0,0,0,.22);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.34, 1.15, .64, 1);
}
.cart-float-bar.visible { transform: translateY(0); }
.cfb-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: .88rem;
}
.cfb-emoji { font-size: 1.1rem; }
.cfb-btn {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.cfb-btn:active { transform: scale(0.96); }
@media (min-width: 681px) { .cart-float-bar { display: none !important; } }
