/* iskra — техника с искрой. Светлая тема: бумага, графит, искровый оранжевый. */

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --line: #e8e6df;
  --line2: #d9d6cc;
  --text: #191813;
  --mut: #71706a;
  --acc: #ff4d00;
  --acc-dark: #d94100;
  --acc-soft: #fff0e8;
  --acc-line: #ffd9c4;
  --ok: #157347;
  --ok-soft: #e6f4ec;
  --warn: #9a5b00;
  --warn-soft: #fdf3e0;
  --bad: #b02a37;
  --bad-soft: #fbebed;
  --r: 10px;
  --shadow: 0 1px 2px rgba(25, 24, 19, .05), 0 8px 28px rgba(25, 24, 19, .08);
  --shadow-lg: 0 2px 6px rgba(25, 24, 19, .06), 0 18px 48px rgba(25, 24, 19, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; }
body {
  font-family: 'Golos Text', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; padding: 26px 0 64px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--acc); }
h1, h2 {
  font-family: 'Oswald', 'Golos Text', sans-serif;
  font-weight: 600; text-transform: uppercase; letter-spacing: .015em;
  line-height: 1.12;
}
h1 { font-size: 34px; } h2 { font-size: 22px; }
h3 { font-size: 16.5px; font-weight: 700; }
.mut { color: var(--mut); }
img { max-width: 100%; }
.ic { vertical-align: -3px; flex: none; }

/* ---------- полоса загрузки страницы */
#pageload {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
  background: var(--acc);
  opacity: 0; transition: width .3s ease, opacity .3s;
  pointer-events: none;
}
#pageload.go { opacity: 1; }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 9px; border: 1.5px solid var(--line2);
  background: var(--surface); color: var(--text); cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: 14.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--text); color: var(--text); }
.btn-acc {
  background: var(--acc); border-color: var(--acc); color: #fff;
  box-shadow: 0 6px 18px rgba(255, 77, 0, .28);
}
.btn-acc:hover { background: var(--acc-dark); border-color: var(--acc-dark); color: #fff; box-shadow: 0 8px 24px rgba(255, 77, 0, .38); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad-soft); border-color: #ecc5ca; color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }
.btn-big { padding: 15px 30px; font-size: 16px; border-radius: 10px; }
.btn-wide { width: 100%; }

/* ---------- шапка */
.topline { background: var(--text); color: #cfcec7; font-size: 12.5px; }
.topline .wrap { display: flex; gap: 24px; align-items: center; padding: 7px 0; }
.topline a { color: #cfcec7; display: inline-flex; gap: 7px; align-items: center; }
.topline a:hover { color: #fff; }
.topline .tl-right { margin-left: auto; display: flex; gap: 20px; }
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 240, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 22px; padding: 14px 0 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo:hover { color: var(--text); }
.logo-spark { color: var(--acc); display: grid; }
.logo-stack { display: grid; line-height: 1; }
.logo-word {
  font-family: 'Golos Text', sans-serif; font-weight: 900; font-size: 27px;
  letter-spacing: -.02em; color: var(--text);
}
.logo-word em { font-style: normal; color: var(--acc); }
.logo-tag {
  font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase; color: var(--mut); margin-top: 4px;
}
.head-search { flex: 1; max-width: 480px; position: relative; }
.head-search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--mut); }
.head-search input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 9px;
  border: 1.5px solid var(--line2); background: var(--surface);
  color: var(--text); font: inherit; outline: none;
}
.head-search input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.head-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.head-link { color: var(--mut); font-weight: 600; font-size: 14.5px; }
.head-link:hover { color: var(--acc); }
.cart-n {
  background: #fff; color: var(--acc); font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 1px 7px; font-family: 'Golos Text', sans-serif;
}
.catbar {
  display: flex; gap: 2px; overflow-x: auto; padding: 0 0 0; margin-top: 2px;
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.catlink {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px 11px; white-space: nowrap;
  color: var(--mut); font-weight: 600; font-size: 13.5px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.catlink .ic { color: inherit; opacity: .75; }
.catlink:hover { color: var(--text); }
.catlink.on { color: var(--acc); border-bottom-color: var(--acc); }

/* ---------- флеши */
.flashes { display: grid; gap: 8px; margin-top: 14px; }
.flash {
  background: var(--ok-soft); border: 1px solid #bfe3cf;
  color: var(--ok); padding: 11px 16px; border-radius: 9px; font-weight: 600;
}
.flash-warn { background: var(--warn-soft); border-color: #ecd9b0; color: var(--warn); }

/* ---------- hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; align-items: stretch;
  border-radius: 18px; overflow: hidden; margin-top: 6px;
  background: linear-gradient(115deg, #1d1c17 0%, #26241d 55%, #392a1f 100%);
  color: #f4f2ec;
}
.hero-text { padding: 52px 20px 52px 52px; display: grid; align-content: center; justify-items: start; gap: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: #ffb38f; margin-bottom: 18px;
}
.hero-kicker .ic { color: var(--acc); }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px); font-weight: 700; color: #fff;
}
.hero h1 em { font-style: normal; color: var(--acc); }
.hero-sub { color: #b9b6ab; margin: 16px 0 26px; max-width: 44ch; font-size: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.hero-cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; color: #b9b6ab; font-size: 13.5px; font-weight: 500; }
.hero-points span { display: inline-flex; gap: 8px; align-items: center; }
.hero-points .ic { color: var(--acc); }
.hero-visual { position: relative; min-height: 380px; overflow: hidden; }
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  object-position: center bottom; padding: 40px 36px 0;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, .5));
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 64% at 52% 58%, rgba(255, 77, 0, .42), transparent 70%),
    radial-gradient(95% 95% at 50% 60%, rgba(255, 143, 64, .16), transparent 78%);
}
.hero-visual::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -2px; height: 60px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(0, 0, 0, .5), transparent 75%);
}

/* ---------- полки и сетка карточек */
.shelf { margin-top: 42px; }
.shelf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.shelf-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.shelf-head .ic { color: var(--acc); }
.shelf-head .shelf-link { margin-left: auto; color: var(--mut); font-size: 14px; font-weight: 600; }
.shelf-head .shelf-link:hover { color: var(--acc); }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.pcard {
  display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .16s ease, border-color .16s, box-shadow .16s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--shadow-lg); color: var(--text); }
.pcard-cover { position: relative; aspect-ratio: 1/1; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard-cover img, .product-cover img, .ci-cover img {
  opacity: 0; transition: opacity .3s ease;
}
.pcard-cover img.ld, .product-cover img.ld, .ci-cover img.ld { opacity: 1; }
.pcard-cover::before, .product-cover::before, .ci-cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, #fff 30%, #f3f2ee 46%, #fff 62%);
  background-size: 220% 100%;
  animation: shimmer 1.15s linear infinite;
}
.pcard-cover.ld::before, .product-cover.ld::before, .ci-cover.ld::before { display: none; }
@keyframes shimmer { to { background-position: -120% 0; } }
.pcard-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 7%; display: block; }
.pcard-body { display: grid; gap: 5px; padding: 13px 15px 15px; }
.pcard-title { font-weight: 700; font-size: 14.5px; line-height: 1.32; }
.pcard-sub { color: var(--mut); font-size: 13px; }
.pcard-meta { display: flex; gap: 11px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.pcard-price b { font-size: 17px; font-weight: 800; }
.pcard-price s, .price-old { color: var(--mut); font-size: 13px; font-weight: 500; }
.stars { color: #e8930c; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.stars .ic { color: #e8930c; }
.stars.big { font-size: 15px; }
.instock { color: var(--ok); font-weight: 700; }
.preorder { color: var(--warn); font-weight: 700; }

/* ---------- категории на главной */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-card {
  display: flex; gap: 13px; align-items: center; padding: 16px 17px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.cat-card:hover .cat-ic { background: var(--acc); color: #fff; border-color: var(--acc); }
.cat-ic {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); border: 1px solid var(--acc-line);
  transition: background .15s, color .15s;
}
.cat-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.cat-count { color: var(--mut); font-size: 12.5px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 46px; }
.trust-item {
  display: flex; gap: 15px; align-items: flex-start; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.trust-ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--acc-soft); color: var(--acc); border: 1px solid var(--acc-line);
}
.trust-item b { font-size: 15px; }

/* ---------- страницы каталога */
.crumbs { color: var(--mut); font-size: 13.5px; margin-bottom: 16px; }
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--acc); }
.cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.page-title { margin-bottom: 20px; }

/* ---------- товар */
.product { display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: start; }
.product-cover {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  aspect-ratio: 1/1;
}
.product-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 6%; display: block; }
.product-brand {
  font-family: 'Oswald', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px;
}
.product-info h1 { font-size: 30px; }
.product-sub { color: var(--mut); font-size: 16px; margin-top: 8px; }
.product-meta { display: flex; gap: 16px; align-items: center; margin: 14px 0 4px; flex-wrap: wrap; font-size: 14px; }
.variants { margin-top: 18px; }
.variants-label { font-weight: 700; font-size: 13.5px; margin-bottom: 9px; color: var(--mut); }
.variants-list { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: 8px; font-size: 13.5px;
  font-weight: 600; border: 1.5px solid var(--line2); color: var(--text);
  background: var(--surface);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.chip.warn { background: var(--warn-soft); border-color: #ecd9b0; color: var(--warn); }
.buy-panel {
  margin-top: 22px; padding: 22px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 15px; }
.price-big { font-weight: 900; font-size: 32px; letter-spacing: -.02em; }
.buy-notes { display: grid; gap: 8px; margin-top: 15px; color: var(--mut); font-size: 13.5px; }
.buy-notes span { display: inline-flex; gap: 9px; align-items: center; }
.buy-notes .ic { color: var(--acc); }
.specs { margin-top: 26px; }
.specs h3 { margin-bottom: 10px; }
.specs ul { list-style: none; display: grid; gap: 7px; }
.specs li { padding-left: 20px; position: relative; }
.specs li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  background: var(--acc); border-radius: 2px; rotate: 45deg;
}
.product-desc { margin-top: 20px; color: var(--mut); max-width: 62ch; white-space: pre-line; }

/* ---------- отзывы */
.reviews { display: grid; gap: 12px; }
.review { padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.review-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 7px; }
.review-stars { color: #e8930c; letter-spacing: 1px; font-size: 15px; }
.review-stars .off { color: var(--line2); }
.review-author { font-weight: 700; }
.verified {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ok); background: var(--ok-soft); border: 1px solid #bfe3cf;
  padding: 2.5px 9px; border-radius: 999px;
}
.review-date { font-size: 12.5px; }
.review-form {
  margin-top: 16px; padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
}
.review-form h3 { margin-bottom: 12px; }
.review-form form { display: grid; gap: 11px; }
.star-radio { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-radio input { position: absolute; opacity: 0; pointer-events: none; }
.star-radio label { font-size: 27px; color: var(--line2); cursor: pointer; transition: color .12s; }
.star-radio input:checked ~ label,
.star-radio label:hover, .star-radio label:hover ~ label { color: #e8930c; }

/* ---------- корзина */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.ci-cover {
  position: relative; width: 88px; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: block;
}
.ci-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 6%; display: block; }
.ci-title { font-weight: 700; }
.ci-title:hover { color: var(--acc); }
.ci-sub { font-size: 13px; }
.ci-price { color: var(--mut); font-size: 13.5px; margin-top: 4px; }
.ci-controls { display: grid; gap: 8px; justify-items: end; }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line2);
  background: var(--surface); color: var(--text); font-size: 17px; font-weight: 700; cursor: pointer;
}
.qty-btn:hover { border-color: var(--text); }
.qty-n { min-width: 26px; text-align: center; font-weight: 800; }
.ci-del {
  margin-left: 8px; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid transparent; background: transparent; color: var(--mut); font-size: 15px;
}
.ci-del:hover { color: var(--bad); border-color: #ecc5ca; }
.ci-sum { font-weight: 800; font-size: 17px; }
.cart-summary {
  position: sticky; top: 132px; padding: 22px; display: grid; gap: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow);
}
.cs-head { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.cs-item { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.cs-row { display: flex; justify-content: space-between; color: var(--mut); font-size: 14.5px; }
.cs-row b { color: var(--text); }
.cs-hint { font-size: 13px; color: var(--warn); }
.cs-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 13px; font-size: 15px;
}
.cs-total b { font-size: 23px; font-weight: 900; letter-spacing: -.02em; }
.cs-note { font-size: 13px; }
.empty-cart { text-align: center; padding: 80px 0; display: grid; gap: 16px; justify-items: center; }
.empty-cart .ic { color: var(--line2); }

/* ---------- оформление */
.checkout-form { display: grid; gap: 18px; }
.checkout-form fieldset {
  border: 1px solid var(--line); border-radius: 13px; padding: 20px; display: grid; gap: 13px;
  background: var(--surface);
}
.checkout-form legend {
  padding: 0 10px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em;
}
.checkout-form label, .admin-form label, .auth-card label, .review-form label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.checkout-form input, .checkout-form textarea, .checkout-form select,
.admin-form input, .admin-form textarea, .admin-form select,
.auth-card input, .review-form textarea, .review-form input,
.os-card input {
  padding: 11px 14px; border-radius: 9px; border: 1.5px solid var(--line2);
  background: #fff; color: var(--text); font: inherit; outline: none; width: 100%;
  font-weight: 500;
}
.checkout-form input:focus, .checkout-form textarea:focus, .admin-form input:focus,
.admin-form textarea:focus, .auth-card input:focus, .os-card input:focus, .review-form textarea:focus {
  border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 13px; font-weight: 400; }
.delivery-opts { display: grid; gap: 8px; }
.delivery-opt {
  display: flex !important; align-items: center; gap: 11px; padding: 12px 15px;
  border: 1.5px solid var(--line2); border-radius: 9px; cursor: pointer; font-weight: 600;
  background: #fff;
}
.delivery-opt:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.delivery-opt input { accent-color: var(--acc); width: auto; }
.agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14px; }
.agree input { width: auto; margin-top: 3px; accent-color: var(--acc); }

/* ---------- заказ */
.order-page { max-width: 1000px; }
.order-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.status {
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mut);
  background: var(--surface);
}
.status-new { color: var(--warn); border-color: #ecd9b0; background: var(--warn-soft); }
.status-reported { color: #1d4ed8; border-color: #c3d4f5; background: #ecf2fd; }
.status-paid { color: var(--acc-dark); border-color: var(--acc-line); background: var(--acc-soft); }
.status-shipped { color: #6d28d9; border-color: #ddd3f5; background: #f3effc; }
.status-done { color: var(--ok); border-color: #bfe3cf; background: var(--ok-soft); }
.status-cancelled { color: var(--bad); border-color: #ecc5ca; background: var(--bad-soft); }
.order-steps { display: flex; gap: 6px; margin: 18px 0 24px; flex-wrap: wrap; }
.ostep {
  display: flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--mut);
  border: 1px solid var(--line); background: var(--surface);
}
.ostep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.ostep.on { color: var(--text); }
.ostep.on .ostep-dot { background: var(--ok); }
.ostep.now { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-dark); }
.ostep.now .ostep-dot { background: var(--acc); }
.order-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; }
.order-main { display: grid; gap: 16px; align-content: start; }
.pay-card {
  padding: 24px; border-radius: 13px; background: var(--surface);
  border: 1.5px solid var(--acc-line); display: grid; gap: 15px; box-shadow: var(--shadow);
}
.pay-card.ok { border-color: #bfe3cf; }
.pay-card.warn-card { border-color: #ecc5ca; }
.pay-card h2 { font-size: 20px; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line2); font-weight: 600;
}
.pay-total b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.pay-secure {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: var(--mut);
}
.pay-secure .ic { color: var(--ok); flex: none; margin-top: 2px; }
.pay-methods-title {
  font-family: 'Oswald', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-top: 2px;
}
.pay-method {
  border: 1.5px solid var(--line2); border-radius: 12px; background: #fff;
}
.pay-method[open] { border-color: var(--acc); }
.pay-method > summary {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  cursor: pointer; list-style: none;
}
.pay-method > summary::-webkit-details-marker { display: none; }
.pm-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); border: 1px solid var(--acc-line);
}
.pm-name { font-weight: 700; font-size: 14.5px; display: grid; gap: 1px; }
.pm-note { font-weight: 500; font-size: 12.5px; color: var(--mut); }
.pm-chevron {
  margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut);
  transform: rotate(45deg); transition: transform .15s; margin-top: -4px;
}
.pay-method[open] .pm-chevron { transform: rotate(-135deg); margin-top: 4px; }
.pm-body {
  padding: 14px 16px 16px; display: grid; gap: 14px;
  border-top: 1px solid var(--line);
}
.pay-after { font-size: 13px; }
.pay-req { font-size: 14px; }
.pay-req td:first-child { width: 150px; }
.pay-req b { font-family: ui-monospace, 'SF Mono', monospace; font-size: 13.5px; }
.pay-req .btn { margin-left: 6px; }
.pay-qr {
  justify-self: center; padding: 16px; background: #fff; border-radius: 14px;
  border: 1px solid var(--line);
}
.pay-qr img { display: block; width: 240px; height: 240px; }
.pay-steps { display: grid; gap: 9px; padding-left: 20px; }
.pay-steps a { color: var(--acc); font-weight: 600; }
.pay-waiting {
  padding: 13px 16px; border-radius: 10px; background: #ecf2fd;
  border: 1px solid #c3d4f5; color: #1d4ed8; font-weight: 600;
  display: flex; gap: 10px; align-items: center;
}
.track-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.track { font-family: ui-monospace, 'SF Mono', monospace; font-size: 17px; letter-spacing: .05em; }
.order-side { display: grid; gap: 14px; align-content: start; }
.os-card {
  padding: 19px; border-radius: 13px; background: var(--surface);
  border: 1px solid var(--line); display: grid; gap: 10px;
}
.os-head {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .07em;
}
.os-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.os-line { font-size: 14px; }

/* ---------- документы */
.doc { max-width: 800px; display: grid; gap: 14px; }
.doc h1 { margin-bottom: 4px; }
.doc h2 { margin-top: 16px; font-size: 18px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 7px; }
.doc a { color: var(--acc); }
.how-steps li { padding-left: 4px; }
.req-table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.req-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { color: var(--mut); width: 220px; }

/* ---------- админка */
.auth-card {
  max-width: 400px; margin: 60px auto; padding: 28px; display: grid; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.auth-card form { display: grid; gap: 14px; }
.admin-nav {
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
  padding: 10px 0 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.admin-nav a {
  padding: 8px 15px; border-radius: 8px; font-weight: 600; font-size: 14px;
  color: var(--mut);
}
.admin-nav a:hover { color: var(--text); background: var(--surface); }
.admin-nav a.on { color: var(--acc-dark); background: var(--acc-soft); }
.admin-logout { margin-left: auto; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.atab {
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line2);
  color: var(--mut); font-weight: 600; font-size: 13.5px; background: var(--surface);
}
.atab:hover { border-color: var(--text); color: var(--text); }
.atab.on { color: #fff; background: var(--text); border-color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.atable th {
  text-align: left; padding: 11px 14px; color: var(--mut); font-size: 11.5px;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line2);
  background: var(--bg);
}
.atable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.atable tr:last-child td { border-bottom: none; }
.atable tr:hover td { background: #fafaf7; }
.row-off td { opacity: .45; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter { display: flex; gap: 8px; flex: 1; max-width: 560px; }
.admin-filter input, .admin-filter select {
  padding: 9px 13px; border-radius: 8px; border: 1.5px solid var(--line2);
  background: var(--surface); color: var(--text); font: inherit;
}
.admin-filter input { flex: 1; }
.admin-form { max-width: 660px; display: grid; gap: 14px; }
.mail-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px;
  margin-bottom: 10px; background: var(--surface);
}
.mail-item summary { cursor: pointer; font-size: 14.5px; }
.mail-body {
  white-space: pre-wrap; font-family: inherit; font-size: 14px; color: var(--mut);
  background: var(--bg); padding: 14px; border-radius: 9px; margin: 10px 0;
}

/* ---------- футер */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px;
}
.foot-brand { display: grid; gap: 15px; justify-items: start; align-content: start; }
.foot-brand .mut { font-size: 14px; max-width: 40ch; }
.foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.paybadge {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 12.5px; font-weight: 600; color: var(--mut);
  border: 1px solid var(--line2); padding: 6px 12px; border-radius: 999px;
}
.paybadge .ic { color: var(--acc); }
.foot-pay { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.psbadge {
  font-family: 'Oswald', sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em; color: var(--text);
  border: 1px solid var(--line2); background: #fff;
  padding: 4px 10px; border-radius: 6px;
}
.psbadge.ps-mir { color: #0f754e; border-color: #bfe3cf; }
.psbadge.ps-sbp { color: #6d28d9; border-color: #ddd3f5; }
.psbadge-note { font-size: 12px; color: var(--mut); margin-left: 4px; }
.foot-contacts { display: grid; gap: 8px; }
.foot-contact { display: inline-flex; gap: 9px; align-items: center; color: var(--text); font-weight: 600; font-size: 14.5px; }
.foot-contact .ic { color: var(--acc); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-head {
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px;
}
.foot-col a { color: var(--text); opacity: .85; font-size: 14.5px; }
.foot-col a:hover { opacity: 1; color: var(--acc); }
.foot-bottom {
  display: grid; gap: 6px; padding: 18px 0 28px; border-top: 1px solid var(--line);
  color: var(--mut); font-size: 13px;
}
.foot-note { font-size: 12px; opacity: .8; }

/* ---------- адаптив */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 38px 28px; }
  .hero-visual { min-height: 300px; }
  .product { grid-template-columns: 1fr; }
  .product-cover { max-width: 440px; }
  .cart-layout, .checkout-layout, .order-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .topline .tl-right { display: none; }
}
@media (max-width: 640px) {
  .head-row { flex-wrap: wrap; gap: 12px; }
  .head-search { order: 3; max-width: none; width: 100%; }
  .head-actions .head-link { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 68px 1fr; }
  .ci-cover { width: 68px; }
  .ci-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: 27px; }
  .hero h1 { font-size: 32px; }
}
