:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6eaf2;
  --navy: #0b1f3d;
  --green: #16a34a;
  --blue: #2563eb;
  --gold: #f5c518;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --radius: 18px;
  --header: 96px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
body.drawer-on, body.map-on { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}
.header-top {
  background: linear-gradient(90deg, #071628 0%, #0b1f3d 55%, #12325c 100%);
  color: #dbe4f3;
  font-size: 12px;
}
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  gap: 12px;
}
.ht-left { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ht-badge {
  background: var(--gold);
  color: #111827;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
}
.ht-right { display: flex; align-items: center; gap: 14px; }
.top-phone {
  color: #e2e8f0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ht-admin {
  color: #86efac;
  font-weight: 700;
}
.header-main {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.hdr-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 150px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #e8edf5;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  flex-shrink: 0;
}
.hdr-loc:hover, .hdr-loc.open { border-color: #93c5fd; background: #eef4fb; }
.hdr-loc-pin {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hdr-loc-pin svg { width: 12px; height: 12px; }
.hdr-loc-txt { min-width: 0; flex: 1; }
.hdr-loc-txt small { display: none; }
.hdr-loc-txt strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-loc-cta { display: none; }
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.burger span { width: 16px; height: 2px; background: var(--navy); display: block; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header .brand img {
  width: auto;
  height: 32px;
  max-width: 110px;
  object-fit: contain;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand .q {
  width: 72px; height: 72px; border-radius: 16px;
  background: #111827; color: #fff;
  display: grid; place-items: center; font-size: 32px;
}
.brand .q b { color: var(--gold); }
.brand-name { font-weight: 800; font-size: 26px; letter-spacing: -.04em; }
.brand-name span { color: var(--blue); font-weight: 700; }
.search-wrap { flex: 1; position: relative; max-width: none; }
.search {
  display: flex;
  background: #f4f6fb;
  border: 1px solid #e8edf5;
  border-radius: 999px;
  overflow: hidden;
}
.search input {
  flex: 1; border: 0; background: transparent; padding: 8px 12px; outline: none; min-width: 0; font-size: 13px;
}
.search button[type="submit"] {
  border: 0; background: var(--navy); color: #fff; width: 40px; cursor: pointer;
}
.rayons-btn {
  border: 0; background: #e8eef8; color: var(--navy); font-weight: 700; font-size: 12px;
  padding: 0 14px; cursor: pointer; white-space: nowrap;
}
.rayons-short { display: none; }
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(15,23,42,.16);
  padding: 16px; z-index: 45; max-height: 70vh; overflow: auto;
  animation: slideDown .22s ease;
}
.search-panel[hidden] { display: none; }
.search-panel-head { display: flex; justify-content: space-between; align-items: center; }
.search-panel-head h3 { margin: 0; font-size: 16px; }
.search-panel-head button { border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.search-panel h4 { margin: 14px 0 8px; font-size: 13px; color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.panel-grid a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 12px; background: #f8fafc; font-size: 13px; font-weight: 600;
}
.panel-grid a:hover { background: #e8f0fe; }
.panel-grid img, .panel-grid .ph { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; margin: 0; }
.panel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-chips a { background: #f1f5f9; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.actions { display: flex; align-items: center; gap: 4px; }
.act {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  position: relative;
}
.act:hover { background: #f8fafc; }
.act small { color: var(--navy); font-weight: 700; font-size: 10px; }
.fav-act .badge { right: 10px; }
.fav-btn {
  position: absolute; left: 10px; top: 10px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #fff; color: #94a3b8; cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
  display: grid; place-items: center; z-index: 2;
}
.fav-btn.on { color: #e11d48; background: #fff1f2; }
.cart-btn .badge, .mbar .badge, .fav-act .badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--navy); color: #fff; border-radius: 999px;
  min-width: 16px; height: 16px; font-size: 10px;
  display: grid; place-items: center; padding: 0 4px; font-style: normal;
}

.nav { display: none; }
.nav .wrap, #drawer-nav {
  display: flex; gap: 18px; overflow: auto; min-height: 40px; align-items: center;
  font-size: 13px; font-weight: 600;
}
.nav a, #drawer-nav a { white-space: nowrap; color: #334155; }
.nav a:hover, .nav a.active, #drawer-nav a:hover { color: var(--blue); }

.drawer { display: none; }
.drawer.open { display: block; }
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60; }
.drawer-panel {
  position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; z-index: 61; padding: 16px; overflow: auto;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head button { border: 0; background: #f1f5f9; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
#drawer-nav { flex-direction: column; align-items: flex-start; gap: 0; }
#drawer-nav a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }

.page { padding: 22px 0 48px; }
.page-enter { animation: fadeUp .35s ease; }
.grid-home { display: block; }
.card, .hero, .store-card, .product-card, .brand-card, .cat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-card, .store-card, .brand-card, .cat, .depot {
  animation: fadeUp .4s ease both;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover, .store-card:hover, .brand-card:hover, .cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15,23,42,.1);
}
.promo-duo {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 8px;
}
.promo-photo {
  display: block;
  margin: 0;
  max-width: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.promo-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.promo-text {
  background: #fff;
  color: var(--ink);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin: 0;
}
.promo-text p { margin: 0; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: #2563eb; }
.promo-text .checks { color: #334155; }
.promo-text h1 {
  margin: 6px 0 10px; font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2; letter-spacing: -.03em;
}
.anim-title {
  overflow: hidden;
  animation: textIn .7s ease both;
}
.anim-line { animation: textIn .7s ease both; }
.promo-text .anim-line:nth-child(1) { animation-delay: .05s; }
.promo-text .anim-title { animation-delay: .18s; }
.promo-text .checks { animation-delay: .36s; }
.promo-text .btn { animation-delay: .5s; width: fit-content; }
@keyframes textIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes drive {
  0% { left: -30%; }
  100% { left: 110%; }
}
@keyframes floatBox {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero {
  display: none;
}
.hero-copy { padding: 36px 40px; }
.hero-copy h1 { margin: 8px 0 16px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; color: #dbeafe; font-size: 14px; margin-bottom: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; font-weight: 700;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--muted); border: 0; }
.guest-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.guest-note b { display: block; color: #1d4ed8; margin-bottom: 4px; }
.guest-note p { margin: 0; color: #334155; font-size: 13px; line-height: 1.45; }
.hero-offer {
  margin: 22px; background: #fff; color: var(--ink); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; justify-content: center;
}
.hero-offer .tag { color: var(--green); font-weight: 700; font-size: 13px; }
.hero-offer h3 { margin: 8px 0; font-size: 22px; }
.hero-offer p { color: var(--muted); margin: 0 0 14px; }

.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head span, .section-head a { color: var(--muted); font-size: 13px; white-space: nowrap; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat { padding: 14px 10px 16px; text-align: center; }
.cat img, .ph { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; background: #f8fafc; border-radius: 16px; }
.cat b { display: block; font-size: 13px; line-height: 1.3; }

.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.product-card { padding: 12px 12px 14px; position: relative; }
.product-card img, .product-card .ph {
  height: 140px; width: 100%; object-fit: contain; background: #f8fafc; border-radius: 12px;
}
.product-card h3 { font-size: 14px; margin: 10px 0 4px; min-height: 36px; }
.product-card .meta { color: var(--muted); font-size: 12px; }
.price { font-weight: 800; font-size: 18px; margin-top: 8px; }
.old { color: #94a3b8; text-decoration: line-through; font-size: 12px; font-weight: 500; margin-left: 6px; }
.add {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--blue); color: #fff; cursor: pointer; font-size: 20px;
}

.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store-card { padding: 16px; display: flex; gap: 12px; align-items: center; }
.store-card img, .store-card .ph {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #f1f5f9; flex-shrink: 0;
}
.store-card h3 { margin: 0 0 4px; font-size: 16px; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.brand-card {
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.brand-card img, .brand-card .ph {
  width: 110px; height: 72px; object-fit: contain; background: #f8fafc; border-radius: 12px; margin: 0;
}
.brand-card b { font-size: 14px; }

.app-banner {
  margin-top: 28px;
  background: linear-gradient(120deg, #0b1f3d, #12325f);
  color: #fff; border-radius: 24px; padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.trust div { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.trust b { display: block; margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 13px; }

.footer {
  background: #0b1f3d;
  color: #d7e0ee;
  padding: 40px 0 90px;
  margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { margin: 0 0 12px; color: #fff; }
.footer a, .footer p { color: #b6c3d6; font-size: 14px; display: block; margin: 7px 0; }
.footer a:hover { color: #fff; }
.foot-brand { color: #fff; margin-bottom: 8px; }
.foot-brand .brand-name { color: #fff; font-size: 22px; }
.foot-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px;
  font-size: 12px; color: #8ea0b8;
}

.pdp { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.pdp-photo {
  background: #fff; border-radius: 24px; min-height: 360px;
  display: grid; place-items: center; box-shadow: var(--shadow); padding: 24px;
}
.pdp-photo img { max-height: 360px; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow: auto; }
.pdp-thumbs img, .pdp-thumbs .ph { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.pdp-price { font-size: 28px; margin: 8px 0 14px; }
.pdp-block { margin-top: 22px; }
.pdp-block h2 { margin: 0 0 8px; font-size: 18px; }
.pdp-block p { margin: 0; color: #475569; line-height: 1.55; }
.pdp-specs { display: grid; gap: 8px; margin: 0; }
.pdp-specs div { display: flex; justify-content: space-between; gap: 12px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }
.pdp-specs dt { color: var(--muted); font-weight: 600; }
.pdp-specs dd { margin: 0; font-weight: 700; text-align: right; }
.pdp-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-extras span { background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.tier { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; cursor: pointer; }
.tier.active { border-color: var(--blue); box-shadow: 0 0 0 3px #dbeafe; }
.qty { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.qty input { width: 64px; text-align: center; border: 1px solid var(--line); border-radius: 10px; height: 36px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.step { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.step.on { color: var(--ink); box-shadow: 0 0 0 2px #bfdbfe, var(--shadow); }
.checkout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 18px; }
.depot { padding: 16px; margin-bottom: 14px; }
.depot h3 { margin: 0 0 6px; }
.depot-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.depot-tag { background: #dcfce7; color: #166534; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.modes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.modes span { background: #f1f5f9; border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.modes span.on { background: #dbeafe; color: #1d4ed8; font-weight: 700; }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; }
.pay-card { display: block; margin-bottom: 10px; }
.pay-card input { margin-right: 8px; }
.line {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid #f1f5f9;
}
.line img, .line .ph { width: 64px; height: 64px; object-fit: contain; background: #f8fafc; border-radius: 10px; }
.recap { padding: 18px; position: sticky; top: 96px; }
.recap .sum { display: flex; justify-content: space-between; margin: 8px 0; color: #475569; }
.recap .sum.total { font-weight: 800; color: var(--ink); font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.form { display: grid; gap: 10px; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.map {
  height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px;
}
#qdia-map { width: 100%; height: 100%; min-height: 340px; }
#header-gmap,
.gmap-canvas {
  width: 100%;
  height: 380px;
  min-height: 280px;
  flex: 1 1 auto;
}
.gmap-modal[hidden] { display: none; }
.gmap-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.gmap-bg { position: absolute; inset: 0; background: rgba(7, 16, 32, .55); }
.gmap-sheet {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 56px auto 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
  overflow: hidden;
  animation: slideDown .24s ease;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}
.gmap-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 8px;
}
.gmap-head h3 { margin: 0 0 4px; font-size: 18px; }
.gmap-head p { margin: 0; color: var(--muted); font-size: 13px; }
.gmap-head button {
  border: 0; background: #f1f5f9; width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
}
.gmap-tools {
  display: flex;
  gap: 8px;
  padding: 8px 18px 12px;
}
.gmap-tools input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.gmap-tools .btn { white-space: nowrap; }
.pac-container { z-index: 130 !important; }
.gmap-canvas { height: 360px; background: #e8eef8; }
.gmap-communes {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 12px 18px 0;
}
.gmap-communes button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.gmap-communes button.active, .gmap-communes button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.gmap-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 18px;
}
.gmap-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.pin-pulse {
  width: 18px; height: 18px; border-radius: 50%; background: #2563eb;
  box-shadow: 0 0 0 8px rgba(37,99,235,.25);
  animation: pulse 1.4s ease infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); }
  100% { box-shadow: 0 0 0 16px rgba(37,99,235,0); }
}
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.badge.pop { animation: badgePop .35s ease; }
.addr-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; cursor: pointer; }
.addr-card.active { border-color: var(--blue); background: #eff6ff; }
.addr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.toast {
  position: fixed; bottom: 18px; right: 18px; background: var(--navy); color: #fff;
  padding: 12px 16px; border-radius: 12px; z-index: 80; display: none;
}
.toast.show { display: block; }
.ph { background: linear-gradient(90deg, #f1f5f9, #fff, #f1f5f9); background-size: 200% 100%; }

.mbar { display: none !important; }

@media (max-width: 1180px) {
  .hdr-loc { max-width: 132px; }
  .search-wrap { max-width: none; }
}
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .stores { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .wrap { width: calc(100% - 24px); }
  .header-top, .burger, .nav, .hdr-loc, .act span, .act small, .rayons-btn { display: none; }
  .header-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand acts"
      "search search";
    gap: 8px;
    padding: 8px 0 10px;
    min-height: auto;
    align-items: center;
  }
  .brand { grid-area: brand; justify-self: start; }
  .header .brand img { height: 38px; width: auto; max-width: 110px; }
  .actions { grid-area: acts; justify-self: end; gap: 0; }
  .act { min-width: 40px; padding: 6px; }
  .search-wrap { grid-area: search; max-width: none; width: 100%; }
  .search input, .form input, .form select, .form textarea,
  .form-grid input, .form-grid select, .gmap-tools input, .promo input {
    font-size: 16px;
  }
  .gmap-sheet {
    width: min(920px, calc(100% - 16px));
    margin: 24px auto 0;
    max-height: calc(100vh - 40px);
    border-radius: 18px;
  }
  .gmap-canvas { height: 42vh; }
  .gmap-foot { flex-direction: column; align-items: stretch; }
  .rayons-btn { font-size: 11px; padding: 0 12px; }
  .search-panel {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 8px);
    bottom: auto;
    max-height: 62vh;
    z-index: 45;
  }
  .pdp, .checkout, .footer-grid, .hero, .trust, .addr-list, .tiers {
    grid-template-columns: 1fr;
  }
  .steps {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    grid-template-columns: none;
    -webkit-overflow-scrolling: touch;
  }
  .step { min-width: 148px; flex: 1; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .stores, .brands-grid { grid-template-columns: 1fr 1fr; }
  .promo-duo { grid-template-columns: 1fr; }
  .promo-photo { border-radius: 16px; }
  .promo-photo img { width: 100%; height: auto; }
  .promo-text { min-height: auto; padding: 20px 18px; }
  .promo-text h1 { font-size: 24px; }
  .hero-copy { padding: 22px 18px 8px; }
  .hero-offer { margin: 12px 12px 16px; }
  .app-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .line {
    grid-template-columns: 52px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }
  .line > :first-child { grid-row: 1 / span 2; }
  .line .qty { margin: 6px 0 0; grid-column: 2; }
  .line > b { grid-column: 3; grid-row: 1; font-size: 14px; }
  .page { padding: 16px 0 48px; }
  .footer { padding-bottom: 40px; }
  .recap { position: static; }
  .form-grid, .veh-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 24px 18px; margin: 10px auto 30px; }
  .social-row { flex-direction: column; }
  .row-btns { flex-wrap: wrap; }
  .map, #qdia-map { min-height: 240px; height: 240px; }
  .toast { left: 12px; right: 12px; bottom: 16px; }
}

@media (max-width: 420px) {
  .act { min-width: 38px; }
  .product-card { padding: 10px 8px 12px; }
  .product-card h3 { font-size: 12px; min-height: 32px; }
  .price { font-size: 15px; }
  .section-head h2 { font-size: 18px; }
  .menu-hero h1 { font-size: 18px; }
  .stores, .brands-grid { grid-template-columns: 1fr; }
}

.steps {
  background: transparent;
  box-shadow: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.step b {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e2e8f0; color: #475569;
  display: grid; place-items: center; font-size: 12px; flex-shrink: 0;
}
.step.on { background: #fff; }
.step.on b { background: var(--navy); color: #fff; }
.recap { border: 1px solid var(--line); }
.recap h3 { margin: 0 0 4px; }
.addr-book { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-book .addr-card { min-height: 140px; }
.addr-card small { display: block; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.addr-add {
  border: 1px dashed #cbd5e1; border-radius: 14px; padding: 14px;
  background: #f8fafc; cursor: pointer; color: var(--navy); font-weight: 700;
  display: grid; place-items: center; min-height: 56px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 4px; }
.veh-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.route-box {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin: 14px 0;
}
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.trust-mini {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px;
}
.trust-mini div { background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); font-size: 13px; }
.auth-box {
  max-width: 460px; margin: 10px auto 30px;
  background: #fff; border-radius: 24px; padding: 32px 28px;
  box-shadow: var(--shadow);
}
.auth-box h1 { margin: 0 0 8px; text-align: center; }
.social-row { display: flex; gap: 10px; margin: 16px 0; }
.social-btn {
  flex: 1; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; padding: 12px 10px; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.social-btn:hover { background: #f8fafc; }
.or { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 14px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-card { padding: 18px; }
.menu-page { max-width: 960px; margin: 0 auto 32px; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.menu-hero {
  background: #2563eb; color: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.menu-ava {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.menu-hero h1 { margin: 0 0 4px; font-size: 22px; }
.menu-hero p { margin: 0; opacity: .9; font-size: 13px; }
.menu-sec { margin: 18px 12px 8px; color: #94a3b8; font-size: 13px; font-weight: 700; }
.menu-list {
  background: #fff; border-radius: 16px; margin: 0 12px 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px; border: 0; background: #fff;
  border-bottom: 1px solid #f1f5f9; cursor: pointer; font-weight: 600;
}
.menu-list a:last-child, .menu-list button:last-child { border-bottom: 0; }
.menu-list i {
  width: 22px; color: #64748b; font-style: normal; text-align: center;
}
.menu-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 8px 12px 20px; padding: 14px;
  background: #fff; border-radius: 16px; font-weight: 800; color: #ef4444;
  box-shadow: var(--shadow);
}
.info-page { max-width: 720px; }
.lang-pick { display: grid; gap: 10px; margin-top: 16px; }
.lang-pick button { text-align: left; padding: 16px 18px; border-radius: 14px; }
.lang-pick button.on { border-color: #2563eb; background: #eff6ff; }

@media (max-width: 980px) {
  .addr-book, .acct-grid, .trust-mini, .menu-cols { grid-template-columns: 1fr !important; }
  .menu-page { width: 100%; max-width: none; margin: 0 0 24px; }
  .menu-hero { border-radius: 16px; padding: 22px 18px; }
  .menu-list, .menu-login, .menu-sec { margin-left: 0; margin-right: 0; }
  .menu-login { margin-top: 8px; }
}
