/* ============ Zumar — витрина ============
   Брейкпоинты: телефон < 640px, планшет 640–1023px, ПК ≥ 1024px */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #2b2129;
  --ink-2: #5b4f58;
  --muted: #8d828a;
  --line: #ece4dc;
  --soft: #f4ede6;
  --accent: #7a3b5e;
  --accent-ink: #ffffff;
  --accent-soft: #f3e7ee;
  --gold: #b8894a;
  --sale: #c0392b;
  --ok: #2e7d5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 33, 41, .04), 0 8px 24px rgba(43, 33, 41, .06);
  --hdr-h: 64px;
  --tab-h: 64px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 20px; padding-bottom: 48px; outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }

/* ---------- visibility helpers ---------- */
.only-d { display: none !important; }
@media (min-width: 1024px) { .only-d { display: flex !important; } .only-mt { display: none !important; } }
@media (max-width: 639px) { .hide-m { display: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; white-space: nowrap; transition: .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #69304f; }
.btn-primary:disabled { background: #c9b6c1; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; flex: none;
}
.icon-btn:hover { background: var(--soft); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.badge:empty { display: none; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 244, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: 4px 8px; padding-top: 8px; padding-bottom: 10px; }
#menuBtn { grid-area: menu; margin-left: -8px; }
.logo { grid-area: logo; font: 700 26px/1 var(--serif); letter-spacing: .02em; justify-self: center; }
.hdr-actions { grid-area: actions; display: flex; margin-right: -8px; }
.search { grid-area: search; position: relative; }
.search input {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px 0 42px; outline: none; transition: border-color .15s; -webkit-appearance: none;
}
.search input:focus { border-color: var(--accent); }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search-ic svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .hdr-in { grid-template-columns: auto auto 1fr auto; grid-template-areas: "menu logo search actions"; gap: 12px; padding-top: 10px; }
  .logo { justify-self: start; }
  .search { max-width: 420px; justify-self: end; width: 100%; }
}
@media (min-width: 1024px) {
  .hdr-in { grid-template-columns: auto 1fr minmax(220px, 300px) auto; grid-template-areas: "logo nav search actions"; height: var(--hdr-h); padding: 0 16px; gap: 24px; }
  .topnav { grid-area: nav; gap: 22px; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; min-width: 0; }
  .topnav a { color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
  .topnav a:hover, .topnav a.on { color: var(--ink); border-color: var(--gold); }
}

/* ---------- mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tab-h); font-size: 11px; color: var(--muted); font-weight: 600; }
.tabbar a.on { color: var(--accent); }
.tabbar .badge { top: 6px; right: calc(50% - 22px); }
body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(30, 20, 28, .4); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--bg); overflow-y: auto;
  transform: translateX(-100%); transition: transform .28s ease; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px;
}
.drawer.right .drawer-panel { left: auto; right: 0; transform: translateX(100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 24px; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.menu-list a span { color: var(--muted); font-size: 13px; }
.menu-contacts { margin-top: auto; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
body.lock { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 20px; background: linear-gradient(135deg, #f6ece4, #efe1ea); border-radius: 24px; padding: 28px 20px; overflow: hidden;
}
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(34px, 7vw, 60px); margin: 10px 0 12px; }
.hero p { color: var(--ink-2); margin: 0 0 22px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero > * { min-width: 0; }
.hero-art { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; aspect-ratio: 4 / 3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.hero-art img:first-child { grid-row: span 2; }
@media (min-width: 640px) { .hero { padding: 40px; } }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 56px; gap: 40px; } }

/* ---------- sections ---------- */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 36px); }
.sec-head a { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover img { transform: scale(1.05); }
.cat span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; background: linear-gradient(transparent, rgba(30, 20, 28, .55)); color: #fff; font-weight: 600; font-size: 13px; }
.cat small { display: block; font-weight: 500; opacity: .85; font-size: 11px; }
@media (min-width: 640px) { .cats { gap: 14px; } .cat span { font-size: 15px; padding: 30px 14px 14px; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(6, 1fr); } }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.perk svg { color: var(--gold); width: 26px; height: 26px; flex: none; }
.perk b { display: block; font-size: 14px; }
.perk span { font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) { .perks { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .perks { grid-template-columns: 1fr; } }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .with-filters .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .with-filters .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* лента на телефоне листается свайпом */
@media (max-width: 639px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 46%; scroll-snap-align: start; }
}

.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
.card-img { position: relative; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.oos .card-img img { opacity: .55; filter: grayscale(.4); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.b { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--ink); letter-spacing: .02em; }
.b-new { background: var(--ink); color: #fff; }
.b-hit { background: var(--gold); color: #fff; }
.b-sale { background: var(--sale); color: #fff; }
.fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--ink-2); transition: .15s; }
.fav svg { width: 20px; height: 20px; }
.fav.on { color: var(--sale); }
.fav.on svg path { fill: currentColor; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 16px; display: flex; flex-direction: column; line-height: 1.2; }
.price s { font-weight: 500; font-size: 12px; color: var(--muted); }
.price.sale { color: var(--sale); }
.btn-cart { height: 40px; width: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; transition: .15s; }
.btn-cart svg { width: 19px; height: 19px; }
.btn-cart span { display: none; }
.btn-cart.in { background: var(--accent-soft); color: var(--accent); }
.oos-label { font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) {
  .card-body { padding: 14px 16px 16px; }
  .card-name { font-size: 15px; }
  .price { font-size: 17px; }
}

/* ---------- catalog ---------- */
.page-title { font-size: clamp(30px, 5vw, 44px); margin-bottom: 4px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 250px 1fr; gap: 32px; } .chips { display: none; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar .count { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 400px) { .toolbar .count { display: none; } .toolbar-r { flex: 1; } .toolbar-r .select { flex: 1; min-width: 0; } }
.toolbar-r { display: flex; gap: 8px; }
.select { height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d828a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 0 34px 0 14px; -webkit-appearance: none; appearance: none; font-size: 14px; }
.filter-btn { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.filter-btn svg { width: 18px; height: 18px; }
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.f-list { display: flex; flex-direction: column; gap: 2px; }
.f-list button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 10px; display: flex; justify-content: space-between; font-weight: 500; }
.f-list button:hover { background: var(--soft); }
.f-list button.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.f-list button span { color: var(--muted); font-size: 13px; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input { width: 100%; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 0 14px; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--accent); }
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.more { display: flex; justify-content: center; margin-top: 24px; }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty svg { width: 52px; height: 52px; color: var(--gold); margin: 0 auto 12px; }
.empty h3 { font-size: 28px; margin-bottom: 8px; color: var(--ink); }
.empty p { margin: 0 0 20px; }

/* ---------- product page ---------- */
.pp { display: grid; gap: 20px; }
@media (min-width: 768px) { .pp { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
@media (min-width: 1024px) { .pp { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.gallery { display: grid; gap: 10px; }
@media (min-width: 768px) { .gallery { position: sticky; top: 90px; } }
.g-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; background: var(--soft); }
.g-main::-webkit-scrollbar { display: none; }
.g-main img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.g-thumbs { display: flex; gap: 8px; }
.g-thumbs button { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--soft); }
.g-thumbs button.on { border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-dots { display: flex; justify-content: center; gap: 6px; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.g-dots i.on { background: var(--accent); }
@media (min-width: 768px) { .g-dots { display: none; } }
@media (max-width: 767px) { .g-thumbs { display: none; } .pp { margin: -20px -16px 0; } .pp > .info { padding: 0 16px; } .g-main { border-radius: 0; } }
.info h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 6px 0 12px; }
.pp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 28px; font-weight: 700; }
.pp-price s { font-size: 18px; color: var(--muted); font-weight: 500; }
.pp-price .b { font-size: 13px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin: 10px 0 20px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); }
.stock.low { color: #c27c0e; }
.stock.no { color: var(--muted); }
.buy { display: flex; gap: 10px; align-items: center; }
.buy .btn-primary { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); height: 48px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--ink-2); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 18px; }
.fav-lg { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.fav-lg.on { color: var(--sale); }
.fav-lg.on svg path { fill: currentColor; }
.props { margin-top: 28px; border-top: 1px solid var(--line); }
.props > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.props h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.props p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.mini-perks { display: grid; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.mini-perks div { display: flex; gap: 10px; align-items: center; }
.mini-perks svg { width: 20px; height: 20px; color: var(--gold); }
/* липкая кнопка покупки на телефоне */
@media (max-width: 639px) {
  .buy-sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 30; padding: 10px 16px; background: rgba(251, 248, 244, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .has-sticky { padding-bottom: 80px; }
}

/* ---------- cart / checkout ---------- */
.two-col { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 360px; gap: 32px; align-items: start; } .summary { position: sticky; top: 90px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
@media (min-width: 640px) { .panel { padding: 24px; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.cl-top { display: flex; justify-content: space-between; gap: 8px; }
.cl-name { font-weight: 600; line-height: 1.3; }
.cl-unit { font-size: 13px; color: var(--muted); }
.cl-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.cl-sum { font-weight: 700; }
.x-btn { border: 0; background: none; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; margin: -6px -6px 0 0; }
.x-btn:hover { background: var(--soft); color: var(--sale); }
.x-btn svg { width: 18px; height: 18px; }
.cl-warn { font-size: 12px; color: var(--sale); margin-top: 4px; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 110px 1fr; } .cart-line img { width: 110px; height: 110px; } }
.summary h3 { font-size: 26px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); gap: 10px; }
.sum-row.total { color: var(--ink); font-weight: 700; font-size: 20px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 16px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.hint b { color: var(--accent); }
.progress { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

.form { display: grid; gap: 16px; }
.form h3 { font-size: 24px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--sale); }
.row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.opt { position: relative; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 12px 44px; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.opt input { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.opt b { display: block; font-size: 14px; }
.opt span { font-size: 12px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.err { color: var(--sale); font-size: 14px; background: #fdecea; padding: 10px 12px; border-radius: 10px; }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.mini-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.mini-line div { flex: 1; min-width: 0; }
.mini-line .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

.success { max-width: 560px; margin: 24px auto; text-align: center; }
.success .ok-ic { width: 76px; height: 76px; border-radius: 50%; background: #e3f3eb; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.success .ok-ic svg { width: 38px; height: 38px; }
.success h1 { font-size: 40px; margin-bottom: 10px; }
.success .num { font: 700 30px var(--serif); color: var(--accent); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; color: var(--ink-2); }
.ftr-in { display: grid; gap: 24px; }
.ftr h4 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.ftr a:hover { color: var(--accent); }
.ftr-links { display: grid; gap: 6px; }
.ftr .logo { font-size: 28px; display: inline-block; margin-bottom: 6px; }
.ftr-copy { font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- toast & skeleton ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 80; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #f3c98b; text-decoration: underline; white-space: nowrap; }
@media (min-width: 640px) { .toast { bottom: 24px; } }
.skel { background: linear-gradient(90deg, var(--soft), #fbf6f1, var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.skel-card { aspect-ratio: .72; }

/* ---------- карта в оформлении ---------- */
.field .sub { font-weight: 500; font-size: 12px; color: var(--muted); }
.addr { display: grid; gap: 10px; }
.addr > label { margin-bottom: 0; }
.map-search { position: relative; }
.map-search .input { padding-left: 42px; }
.ms-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.ms-ic svg { width: 18px; height: 18px; }
.ms-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; max-height: 280px; overflow-y: auto; }
.ms-results button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ms-results button:last-child { border-bottom: 0; }
.ms-results button:hover { background: var(--soft); }
.ms-results svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.ms-empty { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.map-box { position: relative; height: 280px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--soft); isolation: isolate; z-index: 0; }
@media (min-width: 640px) { .map-box { height: 340px; } }
#map { position: absolute; inset: 0; }
.map-err { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.map-locate { position: absolute; right: 10px; bottom: 28px; z-index: 1000; width: 46px; height: 46px; border-radius: 12px; border: 0; background: #fff; color: #333; box-shadow: 0 2px 6px rgba(0,0,0,.25); display: grid; place-items: center; transition: color .15s; }
.map-locate:hover { color: #000; }
.map-locate svg { width: 24px; height: 24px; }
.map-locate.on { color: #2f7cf6; }
.map-locate.busy svg { animation: locpulse 1s ease-in-out infinite; color: #2f7cf6; }
@keyframes locpulse { 50% { opacity: .3; transform: scale(.85); } }
.pin { background: none; border: 0; }
.pin i { position: absolute; left: 3px; top: 0; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.3); border: 3px solid #fff; }
.pin::after { content: ''; position: absolute; left: 13px; bottom: -2px; width: 8px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.25); }
.place { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--soft); }
.place-ic { color: var(--muted); display: flex; }
.place-ic svg { width: 22px; height: 22px; }
.place b { display: block; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.place small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.place.set { background: var(--accent-soft); }
.place.set .place-ic { color: var(--accent); }
.place.set b { color: var(--ink); }
