/* ══════════════════════════════════════════
   CHPOINT — Design System
   Вдохновлено timeweb.cloud: тёмный фон,
   фиолетовый градиентный акцент, мягкие карточки
   ══════════════════════════════════════════ */

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

:root {
  --bg:        #0a0a12;
  --bg-soft:   #0e0e1a;
  --surface:   #14141f;
  --card:      #191927;
  --card-hover:#1f1f30;
  --border:    #27273a;
  --border-light:#33334a;

  --accent:    #7c5cff;
  --accent2:   #a78bfa;
  --accent3:   #ff5ca8;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #a259ff 50%, #ff5ca8 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(124,92,255,.18), rgba(255,92,168,.14));

  --text:      #f1f1fa;
  --text-dim:  #c7c7db;
  --muted:     #8b8ba3;
  --muted2:    #64647d;

  --success:   #2fd672;
  --warn:      #ffb547;
  --danger:    #ff5c7a;
  --info:      #43b8ff;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 8px 30px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,.15), 0 12px 40px rgba(124,92,255,.12);
  --header-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.hidden { display: none !important; }
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,92,255,.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(124,92,255,.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }
.btn-ghost {
  background: var(--surface);
  color: var(--text-dim);
}
.btn-ghost:hover { background: var(--card-hover); color: var(--text); }
.btn-danger { background: rgba(255,92,122,.14); color: var(--danger); }
.btn-danger:hover { background: rgba(255,92,122,.22); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-icon { padding: 10px; border-radius: 12px; }

/* ── Badges / chips ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge-success { background: rgba(47,214,114,.13); color: var(--success); border-color: transparent; }
.badge-warn { background: rgba(255,181,71,.13); color: var(--warn); border-color: transparent; }
.badge-danger { background: rgba(255,92,122,.13); color: var(--danger); border-color: transparent; }
.badge-info { background: rgba(67,184,255,.13); color: var(--info); border-color: transparent; }
.badge-accent { background: rgba(124,92,255,.16); color: var(--accent2); border-color: transparent; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(10,10,18,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 21px; letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(124,92,255,.4);
}
.logo span.dim { color: var(--accent2); }

.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.main-nav a {
  padding: 9px 14px; border-radius: 10px;
  color: var(--text-dim); font-weight: 600; font-size: 14.5px;
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--surface); color: var(--text); }

.header-search {
  flex: 1; max-width: 380px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 16px;
  transition: border-color .15s;
}
.header-search:focus-within { border-color: var(--accent2); }
.header-search input {
  background: transparent; border: none; outline: none; color: var(--text);
  width: 100%; font-size: 14px;
}
.header-search input::placeholder { color: var(--muted2); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 18px; color: var(--text-dim);
  transition: all .15s;
}
.icon-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent-grad); color: #fff;
  font-size: 10.5px; font-weight: 800;
  min-width: 19px; height: 19px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

.mobile-toggle { display: none; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background:
    radial-gradient(ellipse 700px 400px at 15% 20%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(ellipse 600px 400px at 85% 60%, rgba(255,92,168,.14), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--accent-grad-soft); border: 1px solid rgba(124,92,255,.3);
  color: var(--accent2); font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px; line-height: 1.08; letter-spacing: -.03em;
  font-weight: 800; margin-bottom: 18px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-dim); font-size: 17px; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stat b { font-size: 26px; display: block; font-weight: 800; }
.hero-stat span { color: var(--muted); font-size: 13px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1/.85;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #1c1c30, #14141f);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-glow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.25), transparent 55%);
}
.hero-visual-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; padding: 28px;
  width: 100%;
}
.hero-visual-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px;
  backdrop-filter: blur(6px);
}
.hero-visual-card .emoji { font-size: 26px; margin-bottom: 8px; }
.hero-visual-card b { display: block; font-size: 13px; }
.hero-visual-card span { color: var(--muted); font-size: 11.5px; }

/* ══════════════════════════════════════════
   SECTIONS / TITLES
   ══════════════════════════════════════════ */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 30px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.section-link { color: var(--accent2); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* ── Категории ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: transform .18s, border-color .18s, background .18s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent2); background: var(--card-hover); }
.cat-card .icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px;
  background: var(--accent-grad-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.cat-card b { font-size: 13.5px; font-weight: 700; display: block; }

/* ── Товары ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--border-light); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 1/.85;
  background: linear-gradient(155deg,#1c1c30,#14141f);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  position: relative;
}
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(10,10,18,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-dim); border: 1px solid rgba(255,255,255,.08);
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { color: var(--muted2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.product-name {
  font-size: 14.5px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 39px;
}
.product-rating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.product-rating .stars { color: var(--warn); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-price { font-size: 19px; font-weight: 800; }
.product-price-old { font-size: 13px; color: var(--muted2); text-decoration: line-through; }
.product-add {
  margin-top: 10px; width: 100%; padding: 10px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-light);
  color: var(--text); font-weight: 700; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, border-color .15s;
}
.product-add:hover { background: var(--accent-grad); border-color: transparent; }
.product-out { opacity: .55; }
.product-out .product-add { pointer-events: none; }

/* ── Фильтры каталога ── */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; position: sticky; top: calc(var(--header-h) + 20px);
}
.filters-panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 10px; }
.filters-panel h4:first-child { margin-top: 0; }
.filter-cat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-dim); font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.filter-cat-item:hover, .filter-cat-item.active { background: var(--surface); color: var(--text); }
.filter-cat-item.active { color: var(--accent2); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 10px; color: var(--text); font-size: 13px; outline: none;
}
.price-range input:focus { border-color: var(--accent2); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.catalog-count { color: var(--muted); font-size: 13.5px; }
.sort-select {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; outline: none;
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.page-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); font-weight: 700; font-size: 13.5px;
  color: var(--text-dim);
}
.page-btn.active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .emoji { font-size: 44px; margin-bottom: 14px; }

/* ══════════════════════════════════════════
   ПРОДУКТ — карточка товара
   ══════════════════════════════════════════ */
.breadcrumbs { color: var(--muted); font-size: 13px; margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent2); }
.product-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.product-gallery-main {
  aspect-ratio: 1/.85; border-radius: var(--radius-lg);
  background: linear-gradient(155deg,#1c1c30,#14141f);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 100px;
}
.product-info h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.product-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--muted); font-size: 13.5px; }
.product-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.product-price-block .now { font-size: 34px; font-weight: 800; }
.product-price-block .old { font-size: 17px; color: var(--muted2); text-decoration: line-through; }
.product-stock { margin-bottom: 22px; font-size: 13.5px; font-weight: 700; }
.product-stock.in { color: var(--success); }
.product-stock.out { color: var(--danger); }
.qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; width: fit-content; }
.qty-stepper button { width: 40px; height: 44px; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; }
.qty-stepper button:hover { background: var(--card-hover); }
.qty-stepper input { width: 48px; height: 44px; text-align: center; background: var(--card); border: none; color: var(--text); font-weight: 700; outline: none; }
.product-actions-row { display: flex; gap: 12px; margin-top: 24px; }
.product-desc { margin-top: 34px; color: var(--text-dim); line-height: 1.7; font-size: 14.5px; }
.spec-table { margin-top: 16px; border-top: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 600; text-align: right; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 44px 0 26px; }
.tab-btn { padding: 12px 18px; color: var(--muted); font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--text); border-color: var(--accent2); }

.review-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 34px; height: 34px; border-radius: 100px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.review-stars { color: var(--warn); font-size: 13px; }
.review-date { color: var(--muted2); font-size: 12px; margin-left: auto; }
.review-text { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.rating-input { display: flex; gap: 6px; font-size: 26px; cursor: pointer; }
.rating-input span { color: var(--border-light); transition: color .1s; }
.rating-input span.on { color: var(--warn); }

/* ══════════════════════════════════════════
   КОРЗИНА (drawer)
   ══════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; background: rgba(5,5,10,.6); backdrop-filter: blur(2px);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.show { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 401; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 22px 22px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 18px; font-weight: 800; }
.drawer-close { width: 34px; height: 34px; border-radius: 10px; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 20px 22px; border-top: 1px solid var(--border); }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-thumb { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(155deg,#1c1c30,#14141f); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info b { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 4px; line-height: 1.35; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item-remove { color: var(--muted2); font-size: 12px; }
.cart-item-remove:hover { color: var(--danger); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button { width: 26px; height: 26px; border-radius: 8px; background: var(--card); color: var(--text); font-weight: 700; }
.cart-subtotal-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 15px; }
.cart-subtotal-row b { font-size: 19px; }

/* ══════════════════════════════════════════
   МОДАЛКИ / ФОРМЫ (auth, checkout)
   ══════════════════════════════════════════ */
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-46%);
  width: 440px; max-width: 92vw; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); z-index: 401; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  padding: 32px;
}
.modal.show { opacity: 1; pointer-events: all; transform: translate(-50%,-50%); }
.modal-wide { width: 640px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--card); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent2); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { color: var(--muted2); font-size: 12px; margin-top: 6px; }
.form-error {
  background: rgba(255,92,122,.12); color: var(--danger);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; font-weight: 600;
}
.form-success {
  background: rgba(47,214,114,.12); color: var(--success);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; font-weight: 600;
}

.code-inputs { display: flex; gap: 10px; justify-content: center; margin: 22px 0; }
.code-inputs input {
  width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 800;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); outline: none;
}
.code-inputs input:focus { border-color: var(--accent2); }

.auth-switch { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.auth-switch a { color: var(--accent2); font-weight: 700; }
.auth-tabs { display: flex; background: var(--card); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.auth-tab.active { background: var(--accent-grad); color: #fff; }

.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; min-width: 260px;
  animation: toastIn .25s ease;
}
.toast.success { border-color: rgba(47,214,114,.4); }
.toast.error { border-color: rgba(255,92,122,.4); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ══════════════════════════════════════════
   ЧЕКАУТ / АККАУНТ
   ══════════════════════════════════════════ */
.checkout-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: start; }
.checkout-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.checkout-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.pay-method { display: flex; gap: 12px; margin-bottom: 4px; }
.pay-option {
  flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-option.active { border-color: var(--accent2); background: var(--accent-grad-soft); }
.pay-option b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.pay-option span { color: var(--muted); font-size: 12px; }

.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.account-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-side .who { padding: 12px 10px 16px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.account-side .who b { display: block; font-size: 14.5px; }
.account-side .who span { color: var(--muted); font-size: 12.5px; }
.account-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-dim); }
.account-nav-item:hover, .account-nav-item.active { background: var(--surface); color: var(--text); }
.account-nav-item.active { color: var(--accent2); }

.order-row {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px;
}
.order-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.order-row-head b { font-size: 14.5px; }
.order-row-head .date { color: var(--muted); font-size: 12.5px; }
.order-items-mini { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.order-items-mini .mini-thumb { width: 44px; height: 44px; border-radius: 9px; background: linear-gradient(155deg,#1c1c30,#14141f); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.order-row-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ══════════════════════════════════════════
   ПРЕИМУЩЕСТВА / FAQ / FOOTER
   ══════════════════════════════════════════ */
.perks-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.perk-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.perk-card .icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-grad-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.perk-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.perk-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

.cta-band {
  background: var(--accent-grad); border-radius: var(--radius-lg);
  padding: 46px 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h3 { font-size: 25px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 14.5px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.site-footer { border-top: 1px solid var(--border); padding: 54px 0 26px; margin-top: 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--text-dim); font-size: 13.5px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; color: var(--muted2); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ══════════════════════════════════════════
   LOADER / MISC
   ══════════════════════════════════════════ */
.page-loader { display: flex; align-items: center; justify-content: center; padding: 80px 0; color: var(--muted); }
.spinner { width: 30px; height: 30px; border-radius: 100%; border: 3px solid var(--border); border-top-color: var(--accent2); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 37%, var(--card) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* success page */
.result-page { text-align: center; padding: 100px 20px; max-width: 480px; margin: 0 auto; }
.result-icon { width: 80px; height: 80px; border-radius: 100%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.result-icon.ok { background: rgba(47,214,114,.15); color: var(--success); }
.result-icon.fail { background: rgba(255,92,122,.15); color: var(--danger); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .perks-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-search { display: none; }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .product-page { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .perks-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .modal { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
