@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-var.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #5D6470;
  --line: #E7E3DB;
  --accent: #5B5BD6;
  --accent-dark: #4545B8;
  --dark: #14161B;
  --dark-2: #1D2027;
  --green: #1F9D55;
  --red: #E03131;
  --r: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 8px 24px -12px rgba(22, 24, 29, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: 18px; padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; color: var(--muted); }
.tb-item { display: inline-flex; align-items: center; gap: 6px; }
.tb-spacer { flex: 1; }
.tb-link { border-bottom: 1px dashed transparent; transition: .15s; }
.tb-link:hover { color: var(--accent); border-color: var(--accent); }
.hdr-main { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }
.logo-text { font-size: 13px; font-weight: 700; letter-spacing: .14em; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.logo-text b { display: block; color: var(--accent); letter-spacing: .22em; font-size: 11px; }
.logo-dark .logo-text { color: #fff; }
.search { flex: 1; display: flex; align-items: center; gap: 9px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; height: 46px; transition: .15s; }
.search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
.search svg { color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; min-width: 0; }
.search-x { color: var(--muted); display: grid; place-items: center; }
.phone { display: flex; align-items: center; gap: 9px; text-align: left; flex-shrink: 0; }
.phone svg { color: var(--accent); }
.phone span { font-weight: 800; font-size: 15.5px; line-height: 1.1; display: block; }
.phone small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; background: var(--dark); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: .15s; }
.cart-btn:hover { background: var(--accent); }
.cart-btn em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(900px 420px at 85% -10%, rgba(91,91,214,.28), transparent 60%), radial-gradient(700px 380px at -10% 110%, rgba(124,77,186,.25), transparent 60%), var(--dark); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #B9B9F5; border: 1px solid rgba(185,185,245,.35); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.hero-copy p { color: rgba(255,255,255,.72); font-size: 16.5px; max-width: 480px; margin: 0 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 600; transition: .15s; background: rgba(255,255,255,.04); }
.chip:hover { border-color: var(--accent); background: rgba(91,91,214,.18); }
.hero-stats { display: flex; gap: 34px; }
.hero-stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { color: rgba(255,255,255,.6); font-size: 12.5px; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }

/* ---------- sections ---------- */
.sec { padding-top: 46px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sec-sub { color: var(--muted); font-size: 13px; }
.sec-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
.sec-link:hover { text-decoration: underline; }

/* ---------- catalog grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.cat-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; transition: .18s; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-ico { width: 46px; height: 46px; border-radius: 12px; background: #FBEDE7; color: var(--accent-dark); display: grid; place-items: center; transition: .18s; }
.cat-card:hover .cat-ico { background: var(--accent); color: #fff; }
.cat-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; padding-right: 34px; }
.cat-count { position: absolute; top: 16px; right: 14px; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 2px 8px; font-weight: 600; }

/* ---------- product cards ---------- */
.hits-row { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .18s; scroll-snap-align: start; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D9D2C6; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #F2EFEA; display: block; width: 100%; padding: 0; }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.ph { display: grid; place-items: center; color: #C9BFB2; }
.badge-sale, .badge-hot, .badge-new { position: absolute; top: 10px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px; color: #fff; }
.badge-sale { left: 10px; background: var(--red); }
.badge-hot { right: 10px; background: var(--accent); }
.badge-new { right: 10px; background: var(--green); }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-title:hover { color: var(--accent-dark); }
.card-brand { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-rating { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.stars { color: #F5A623; letter-spacing: 1px; font-size: 12px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price s { color: var(--muted); font-size: 12.5px; }
.price b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.price small { color: var(--muted); font-size: 12px; }
.btn-add { width: 40px; height: 40px; border-radius: 11px; background: var(--bg); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: .15s; flex-shrink: 0; }
.btn-add:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- benefits ---------- */
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ben { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.ben-ico { width: 46px; height: 46px; border-radius: 12px; background: #FBEDE7; color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 13px; }
.ben h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.ben p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- news / reviews ---------- */
.news-grid, .rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: .18s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card time { font-size: 12px; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { margin: 8px 0 6px; font-size: 15.5px; font-weight: 800; }
.news-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.rev-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.rev-card p { margin: 0; font-size: 13.5px; color: #3A4048; line-height: 1.55; flex: 1; }
.rev-card footer { display: flex; flex-direction: column; }
.rev-card footer b { font-size: 13.5px; }
.rev-card footer span { font-size: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, var(--dark) 55%, #2A2A55); color: #fff; border-radius: 20px; padding: 34px 38px; margin-top: 26px; margin-bottom: 60px; }
.cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.01em; }
.cta p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; max-width: 520px; }
.btn-light { background: #fff; color: var(--ink); border-radius: 12px; padding: 13px 22px; font-weight: 800; display: inline-flex; align-items: center; gap: 9px; transition: .15s; white-space: nowrap; }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ---------- footer ---------- */
.ftr { background: var(--dark); color: rgba(255,255,255,.72); font-size: 13.5px; margin-top: 0; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; padding-top: 46px; padding-bottom: 34px; }
.ftr-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.ftr-col a { display: block; padding: 3.5px 0; transition: .15s; }
.ftr-col a:hover { color: var(--accent); }
.ftr-about p { line-height: 1.55; margin: 14px 0 12px; }
.ftr-phone { color: #fff; font-size: 19px; font-weight: 800; display: inline-block; }
.ftr-addr { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; margin: 0 0 12px; }
.ftr-addr svg { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ---------- category page ---------- */
.crumb-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb b { color: var(--ink); font-weight: 700; }
.cat-page { padding-top: 30px; padding-bottom: 60px; }
.cat-head h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.cat-head p { color: var(--muted); margin: 6px 0 0; font-size: 13.5px; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.sub-chips .chip { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; }
.sub-chips .chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.sub-chips .chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.cat-toolbar label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.cat-toolbar select { font: inherit; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); outline: none; cursor: pointer; }
.cat-toolbar select:focus { border-color: var(--accent); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { color: #C9BFB2; margin-bottom: 14px; }
.empty-state h3 { color: var(--ink); margin: 0 0 6px; }

/* ---------- buttons / qty ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; padding: 13px 22px; font-weight: 800; font-size: 14.5px; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--dark); }
.btn-block { width: 100%; }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface); }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; transition: .15s; }
.qty button:hover { background: var(--bg); }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }

/* ---------- drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-mask { position: absolute; inset: 0; background: rgba(20,22,27,.45); opacity: 0; transition: .25s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); box-shadow: -18px 0 50px rgba(0,0,0,.2); transform: translateX(102%); transition: transform .28s cubic-bezier(.32,.72,.28,1); display: flex; flex-direction: column; }
.drawer-wrap.open { pointer-events: auto; }
.drawer-wrap.open .drawer-mask { opacity: 1; }
.drawer-wrap.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.drawer-head h3 span { color: var(--muted); font-weight: 600; font-size: 14px; }
.drawer-head button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; transition: .15s; }
.drawer-head button:hover { background: var(--bg); }
.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; color: var(--muted); text-align: center; }
.drawer-empty svg { color: #C9BFB2; margin-bottom: 6px; }
.drawer-empty p { margin: 0; font-weight: 700; color: var(--ink); }
.drawer-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 20px; }
.drawer-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.di-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.di-name small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.di-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.di-qty button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; }
.di-qty button:hover { background: var(--bg); }
.di-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 13px; }
.di-sum { font-size: 13.5px; font-weight: 800; min-width: 64px; text-align: right; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; background: #FBFAF8; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer-total b { font-size: 20px; font-weight: 800; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,27,.5); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { position: relative; background: var(--surface); border-radius: 18px; width: min(860px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .22s cubic-bezier(.32,.72,.28,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; z-index: 2; transition: .15s; }
.modal-x:hover { background: var(--line); }
.modal-grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-img { position: relative; min-height: 300px; background: #F2EFEA; }
.modal-img img, .modal-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.modal-info h2 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; padding-right: 30px; }
.modal-price b { font-size: 26px; }
.modal-benefits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.modal-benefits li { position: relative; padding-left: 24px; font-size: 13.5px; color: #3A4048; }
.modal-benefits li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: #E5F4EC; color: var(--green); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.modal-cta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.modal-cta .btn-primary { flex: 1; min-width: 200px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 46px; }
  .hero-art { display: none; }
  .ben-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .rev-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .topbar .tb-hide-s, .phone { display: none; }
  .hdr-main { flex-wrap: wrap; gap: 12px; }
  .search { order: 5; flex-basis: 100%; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .ben-grid, .news-grid, .rev-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 26px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img { min-height: 220px; }
  .ftr-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}