/* МАРКИНИ — витрина. Мотив: строчка (пунктир цвета нитки) как у шва на сумке. */
:root {
  --ink: #1e2730;
  --ink-2: #33414d;
  --canvas: #eef0f1;
  --paper: #ffffff;
  --muted: #5e6a73;
  --line: #d3d9dd;
  --stitch: #c8952e;
  --stitch-ink: #8a6418;
  --ok: #2f7a4f;
  --bad: #b23b2e;
  --r: 6px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4.2vw, 44px); }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 48px 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 2px solid var(--stitch); outline-offset: 2px; }
[hidden] { display: none !important; }

/* шапка */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font: 700 20px/1 var(--display); text-decoration: none; letter-spacing: .04em; padding-bottom: 6px;
  border-bottom: 2px dashed var(--stitch); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a, .cart-link { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover, .cart-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-count { background: var(--ink); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; padding: 0 6px;
  font-size: 13px; display: inline-grid; place-items: center; }
@media (max-width: 720px) {
  .top-in { gap: 12px; }
  .nav { display: none; }
  .cart-link { margin-left: auto; }
}

/* кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff;
  border: 0; border-radius: var(--r); padding: 14px 22px; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--canvas); }
.btn-wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--stitch-ink); font: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
label { display: block; font-weight: 500; font-size: 14px; margin: 0 0 6px; }
input[type=text], input[type=tel], input[type=email], input[type=search], input:not([type]) {
  width: 100%; font: 400 16px/1.3 var(--text); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--stitch); outline-offset: 0; border-color: var(--stitch); }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.alert { background: #fbecea; color: var(--bad); border-radius: var(--r); padding: 12px 14px; }
.note { background: var(--canvas); border-radius: var(--r); padding: 12px 14px; }
.err { color: var(--bad); font-size: 14px; margin-top: 8px; }

/* главная */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); max-width: 13ch; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-media { position: relative; display: block; background: var(--canvas); border-radius: 14px; padding: 28px; aspect-ratio: 4/5; }
.hero-media::after { content: ""; position: absolute; inset: 12px; border: 2px dashed var(--stitch); border-radius: 9px; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .hero-media { max-width: 420px; aspect-ratio: 1; }
}
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.card-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.card-img { position: relative; background: var(--paper); border-radius: var(--r); aspect-ratio: 3/4; padding: 14px; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-link:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
.card-name { font-weight: 500; }
.card-price { font-weight: 600; font-size: 18px; }
.old { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.badge-out { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.empty { color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 700 15px/1 var(--display); color: var(--stitch-ink); width: 34px; height: 34px;
  border: 2px dashed var(--stitch); border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; }
.steps span { color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* товар */
.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-top: 16px; padding-bottom: 56px;
  grid-template-areas: "g b" "d b"; align-items: start; }
.gallery { grid-area: g; }
.buy { grid-area: b; background: var(--paper); border-radius: 10px; padding: 28px; position: sticky; top: 84px; }
.desc { grid-area: d; max-width: 68ch; }
.gallery-main { background: var(--paper); border-radius: 10px; aspect-ratio: 1; padding: 24px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 72px; height: 72px; padding: 6px; background: var(--paper); border: 2px solid transparent; border-radius: var(--r); cursor: pointer; }
.thumb.is-on { border-color: var(--stitch); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy h1 { font-size: clamp(22px, 2.6vw, 30px); }
.price { font: 700 30px/1.1 var(--text); margin: 8px 0 6px; }
.stock { font-size: 14px; margin-bottom: 20px; }
.stock.ok { color: var(--ok); }
.stock.no { color: var(--bad); }
.facts { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; grid-template-areas: "g" "b" "d"; gap: 24px; }
  .buy { position: static; padding: 20px; }
}

/* корзина и заказ */
.lines { list-style: none; padding: 0; margin: 0 0 24px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines .total { font-size: 18px; border-bottom: 0; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--paper);
  border-radius: var(--r); padding: 12px; margin-bottom: 10px; }
.cart-item img { width: 88px; height: 88px; object-fit: contain; }
.cart-item a { text-decoration: none; font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); margin-top: 8px; }
.qty button { width: 36px; height: 36px; background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; }
.cart-sum { background: var(--paper); border-radius: var(--r); padding: 20px; margin-top: 20px; }
@media (max-width: 520px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 64px; } .cart-item .line-price { grid-column: 2; } }
.order-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stitch); }
.dot-in_delivery, .dot-delivered { background: var(--ok); }
.dot-cancelled, .dot-expired { background: var(--muted); }
.order h2 { margin-top: 32px; }

/* оформление */
.co-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.co-step { background: var(--paper); border-radius: 10px; padding: 22px; margin-bottom: 16px; }
.co-step[aria-disabled="true"] { opacity: .5; }
.co-step[aria-disabled="true"] .co-body { display: none; }
.co-step h2 { font-size: 18px; margin-bottom: 14px; }
.co-done { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.co-summary { background: var(--paper); border-radius: 10px; padding: 22px; position: sticky; top: 84px; }
.co-summary .lines li { font-size: 14px; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } .co-summary { position: static; } }
.map { height: 420px; border-radius: var(--r); border: 1px solid var(--line); margin: 12px 0; z-index: 1; }
@media (max-width: 520px) { .map { height: 360px; } }
.geo-results { list-style: none; padding: 0; margin: 6px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.geo-results button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; cursor: pointer; }
.geo-results button:hover { background: var(--canvas); }
.pin-cluster { background: var(--ink); color: #fff; border-radius: 50%; display: grid !important; place-items: center; font: 600 13px/1 var(--text);
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.pin-point { background: var(--stitch); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--stitch-ink); }
.pin-point.is-on { background: var(--ink); box-shadow: 0 0 0 2px var(--stitch); }
.point-card { border: 2px dashed var(--stitch); border-radius: var(--r); padding: 14px; margin-top: 8px; }
.point-card b { display: block; margin-bottom: 4px; }
.code-input { letter-spacing: .4em; font-size: 22px !important; max-width: 160px; text-align: center; }

/* текстовые страницы */
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p, .prose dd { max-width: 70ch; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }
@media (max-width: 520px) { .req { grid-template-columns: 1fr; gap: 2px; } .req dd { margin-bottom: 10px; } }

/* подвал */
.foot { background: var(--ink); color: #dfe4e7; margin-top: 40px; }
.foot .muted { color: #a8b3ba; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; }
.foot-name { font: 700 18px/1 var(--display); margin-bottom: 12px; color: #fff; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-legal { display: grid; gap: 4px; align-content: start; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
