:root {
  --navy: #0a1a2f;
  --navy-2: #12263f;
  --chrome: #0e1f36;
  --bg: #f4f6f8;
  --ink: #121820;
  --muted: #5c6774;
  --accent: #f15a22;
  --accent-hot: #ff6600;
  --accent-hover: #d94a16;
  --card: #ffffff;
  --line: #dce2e8;
  --ok: #1f7a4d;
  --err: #b42318;
  --focus: #ff8a3d;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(10, 26, 47, 0.04), 0 10px 28px rgba(10, 26, 47, 0.06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: none;
  --edge: 12px;
  --pad: clamp(1rem, 2vw, 1.35rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.store-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--edge);
  background: #071018;
}
.store-body .stage {
  flex: 1;
  width: 100%;
  background: var(--bg);
  padding: 1.25rem var(--pad) 3.25rem;
}
.store-body .top { border-radius: 10px 10px 0 0; }
.store-body .footer { border-radius: 0 0 10px 10px; margin-top: 0; }
.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--pad);
}

/* —— Шапка —— */
.top {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.top__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem .55rem;
  min-height: 64px;
  padding-block: .4rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}
.logo img { height: 40px; width: auto; }
.logo--footer img { height: 34px; }
.btn--catalog {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--accent);
  color: #fff;
  padding: 0 .9rem;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}
.btn--catalog:hover { background: var(--accent-hover); color: #fff; }
.top-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 280px;
  min-width: 0;
  max-width: 36rem;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  min-height: 44px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .18s ease;
}
.top-search:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.top-search__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  flex: 0 0 auto;
  color: #8b95a3;
  pointer-events: none;
}
.top-search input {
  border: 0;
  border-radius: 0;
  min-height: 44px;
  max-width: none;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: .4rem .15rem .4rem 0;
  color: var(--ink);
  background: transparent;
}
.top-search input::placeholder { color: #8b95a3; }
.top-search input::-webkit-search-cancel-button { appearance: none; }
.top-search input:focus { outline: none; }
.top-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  color: #6b7380;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}
.top-search__clear:hover { color: var(--ink); }
.top-search__go {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 1.15rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  flex: 0 0 auto;
  transition: background .15s ease;
}
.top-search__go:hover { background: var(--accent-hover); color: #fff; }
.top__actions {
  display: flex;
  align-items: stretch;
  gap: .15rem;
  margin-left: auto;
}
.top-ico {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  min-width: 52px;
  min-height: 48px;
  padding: .2rem .4rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .01em;
  line-height: 1;
}
.top-ico:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.top-ico svg { display: block; }
.top-ico__mark {
  position: relative;
  display: inline-flex;
}
.cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 .28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}
.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: .15rem;
  align-items: center;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .55rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav a svg { flex: 0 0 auto; opacity: .85; }
.nav__head, .nav__close, .nav-backdrop { display: none; }

.main { padding: 0 0 4rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Hero (на всю ширину) —— */
.hero {
  position: relative;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 2.4rem 1.5rem 2.6rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(241, 90, 34, 0.28), transparent 30%),
    linear-gradient(160deg, var(--navy) 0%, #081525 70%, var(--navy-2) 100%);
  color: #fff;
  animation: fade .6s ease both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; animation: rise .7s ease both; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .2rem .75rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 .65rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.05;
  font-weight: 700;
  max-width: 16ch;
  color: #fff;
}
.hero p {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0 0 1.35rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: .88rem;
  font-weight: 600;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.hero__trust svg { flex: 0 0 auto; opacity: .9; }
.btn--hero {
  background: var(--accent);
  min-width: 10rem;
  font-weight: 800;
}
.btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .9rem;
}
.section-head h2 { margin: 0; }
.section-kicker {
  margin: 0 0 .3rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero .section-kicker,
.page-hero .section-kicker,
.auth-screen .section-kicker { color: var(--accent-hot); }
.section-head__link {
  font-weight: 700;
  text-decoration: none;
  font-size: .92rem;
}
.showcase { padding-bottom: .5rem; }

h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 .75rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .7rem; font-weight: 800; }
h3 { font-size: 1.02rem; margin: .55rem 0 .3rem; font-weight: 700; line-height: 1.3; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1.05rem;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1.15rem 1rem;
}
.grid--shop {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem 1.1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: .85rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--product {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise .55s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform .28s ease, box-shadow .28s ease;
}
.card--product:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 26, 47, 0.14);
}
.card__body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.card__meta {
  margin: 0 0 .25rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__authors { margin: 0 0 .2rem; font-size: .92rem; color: var(--muted); }
.card__pub { margin: 0 0 .45rem; font-size: .82rem; color: var(--muted); }
.card__teaser {
  margin: 0 0 .7rem;
  font-size: .9rem;
  line-height: 1.45;
  color: #3a4450;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.card__buy { margin-top: .7rem; }
.btn--card {
  width: 100%;
  min-height: 42px;
  transition: transform .2s ease, background .2s ease;
}
.btn--card:hover { transform: translateY(-1px); }
.btn--card:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.card__badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 1;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card__badge--ok { background: var(--ok); }
.card__badge--off { background: #6b7280; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--accent); }
.card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #e8edf3;
  overflow: hidden;
}
.card__cover .card__img {
  transition: transform .45s ease;
}
.card--product:hover .card__cover .card__img {
  transform: scale(1.04);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e8edf3;
}
.card--product .card__img { height: 100%; }
.card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #d5dde6 0%, #eef2f6 55%, #c9d3de 100%);
}
.stock { margin: .15rem 0 0; font-size: .86rem; color: var(--muted); }
.price { font-weight: 800; font-size: 1.05rem; margin: 0; color: var(--ink); }

.card--editorial {
  padding: 0;
  border: 0;
  background: var(--navy);
  color: #fff;
}
.card--editorial a {
  display: block;
  padding: 1.15rem 1.2rem 1.25rem;
  text-decoration: none;
  color: #fff;
  min-height: 8rem;
}
.card--editorial a:hover { color: #fff; }
.card--editorial__label {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hot);
  font-weight: 800;
}
.card--editorial strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}
.editorial__list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.gallery { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.gallery__img { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.muted { color: var(--muted); }
.err { color: var(--err); }
.flash { padding: .7rem .85rem; margin: .7rem auto; border-radius: 6px; }
.flash--ok { background: #d8f3dc; }
.flash--err { background: #f8d7da; }
.stack { display: flex; flex-direction: column; gap: .7rem; max-width: 32rem; }
.stack--wide { max-width: 40rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.cart-table { width: 100%; }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: .55rem .4rem; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .92rem; }
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select, textarea {
  width: 100%;
  max-width: 32rem;
  padding: .5rem .6rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
textarea { min-height: 6.5rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] {
  width: auto;
  max-width: none;
  min-height: 1.1rem;
  accent-color: var(--accent);
}
label { display: block; }
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.inline { display: inline; }
.inline input:not([type="hidden"]) { width: auto; max-width: 6rem; display: inline-block; }
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-bottom: 1.15rem;
  padding: .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filters label { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.filters--bar {
  width: 100%;
  align-items: end;
  gap: .75rem;
  padding: 1rem 1.1rem;
}
.filters--bar input,
.filters--bar select { max-width: none; width: 100%; }
.filters__grow { min-width: 0; }
.filters__check {
  flex-direction: row !important;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
}
.filters__reset {
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.list { padding-left: 1.2rem; }
.list--cards { list-style: none; padding: 0; display: grid; gap: .6rem; }
.list--cards a { text-decoration: none; }
.blog-card { margin-bottom: .85rem; }
.blog-card h2 { margin: 0; }
.prose { max-width: 40rem; }
.prose--wide { max-width: 52rem; }
.prose p { margin: 0 0 .8rem; }
.prose--article {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1c2430;
}
.prose--article p:first-child { font-size: 1.12rem; }
.shop { width: 100%; }
.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin: 0 0 1rem;
}
.shop-head h1 { margin: 0; }
.shop-head__lead { margin: .35rem 0 0; color: var(--muted); }
.shop-head__count { margin: 0; font-weight: 800; color: var(--navy); }
.catalog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.1rem;
}
.catalog-pager__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.auth-screen {
  width: min(28rem, 100%);
  margin: 1.75rem auto;
  padding: 1.65rem 1.5rem 1.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.auth-screen h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0 0 .4rem;
}
.auth-screen__lead { margin: 0 0 1.1rem; color: var(--muted); }
.auth-screen__links { margin: 1.1rem 0 0; font-weight: 600; }
.auth-screen .stack { max-width: none; }
.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .86rem; color: var(--ink); }
.field__hint { font-weight: 500; font-size: .8rem; color: var(--muted); }
.field-group {
  margin: 0;
  padding: .85rem .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.field-group legend {
  padding: 0 .3rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}
.checkout__sum, .checkout__form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.checkout__form { display: flex; flex-direction: column; gap: .85rem; }
.checkout__form:not(:has([name="fulfillment"][value="cdek"]:checked)) .checkout-cdek { display: none; }
.checkout__back { display: inline-block; margin-top: .85rem; font-weight: 700; }
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: end;
  margin: .65rem 0 0;
}
.code-row .field { margin: 0; }
.code-row .btn { min-height: 44px; }
.choice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
  font-weight: 700;
}
.choice .field__hint { flex: 1 1 100%; margin-left: 1.5rem; }
.checkout-items em { font-style: normal; color: var(--muted); font-weight: 600; }
.thanks {
  width: min(40rem, 100%);
  margin: 1.5rem auto;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.thanks h1 { font-family: var(--serif); }
.thanks__lead { color: var(--muted); margin: 0 0 1rem; }
.thanks__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1.25rem;
  margin: 0 0 1.1rem;
}
.thanks__facts dt { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.thanks__facts dd { margin: .2rem 0 0; font-weight: 700; }
.thanks__note { color: var(--muted); }
.thanks__cta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 0; }
.crumbs { grid-column: 1 / -1; margin: 0 0 .25rem; font-size: .9rem; color: var(--muted); }
.crumbs a { font-weight: 700; text-decoration: none; }
.page-back { margin-top: 1.75rem; font-weight: 700; }
.account-order__num { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; }
.account-order__note { color: var(--err); font-weight: 700; }
.cancel-form { display: flex; flex-direction: column; gap: .5rem; margin-top: .7rem; }
.account-list { padding-left: 1.1rem; }
.error-page h1 { margin: .35rem 0 .5rem; }
.product .crumbs { grid-column: 1 / -1; }
.checkout__form input,
.checkout__form select,
.checkout__form textarea { max-width: none; }
.checkout-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.checkout-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}
.checkout-sum--pay { font-size: 1.2rem; }
.account { width: 100%; }
.account-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin: 0 0 1.25rem;
}
.account-top h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}
.account-top__meta { margin: .35rem 0 0; color: var(--muted); }
.account-board {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.account-stats li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
}
.account-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}
.account-stats span { color: var(--muted); font-size: .88rem; }
.account-edit { margin: 0 0 1.25rem; }
.account-edit summary {
  width: fit-content;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.account-edit summary:hover { color: var(--accent); }
.account-edit .account__form {
  max-width: 26rem;
  margin-top: .75rem;
  padding: 1rem 1rem .2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.account__form { max-width: none; }
.account__form input { max-width: none; }
.account-ticket {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.25rem;
  text-align: center;
}
.account-ticket__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.account-ticket__who { margin: .35rem 0 0; font-family: var(--serif); font-size: 1.45rem; }
.account-ticket__phone { margin: .15rem 0 .8rem; color: rgba(255, 255, 255, .72); }
.account-ticket img {
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: .45rem;
}
.account-ticket__code {
  margin: .75rem 0 .2rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .95rem;
  letter-spacing: .04em;
  word-break: break-all;
}
.account-ticket__hint { margin: 0; color: rgba(255, 255, 255, .72); font-size: .88rem; }
.account-block { margin: 0 0 1.35rem; }
.account-block h2 { margin: 0 0 .65rem; font-size: 1.2rem; }
.account-quiet { margin: 0; color: var(--muted); }
.account-books { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.account-book {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: .75rem;
  align-items: center;
  margin: 0;
}
.account-book img { width: 4.2rem; height: 5.6rem; object-fit: cover; border-radius: 6px; }
.account-book p { margin: 0 0 .15rem; }
.product {
  display: grid;
  gap: 1.75rem 3rem;
  width: 100%;
  padding-top: .4rem;
  animation: rise .5s ease both;
}
.product__media { max-width: none; }
.product__cover {
  width: 100%;
  max-width: 28rem;
  border-radius: 12px;
  overflow: hidden;
}
.product .card__img {
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  height: auto;
}
.product__cat {
  margin: 0 0 .35rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.product__authors { margin: 0 0 .75rem; font-size: 1.05rem; color: var(--muted); }
.product__price { font-size: 1.65rem; margin: 0 0 .35rem; }
.product__facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem 1.25rem;
  margin: 1rem 0 1.15rem;
}
.product__facts dt { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.product__facts dd { margin: .15rem 0 0; font-weight: 600; }
.product__lead { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.65; }
.product__buy-card {
  margin: 0 0 1.15rem;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 26rem;
}
.product__buy { max-width: none; margin-top: .75rem; }
.product__buy .btn { width: 100%; }
.review-form {
  max-width: 28rem;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.review-form__lead { margin: 0; color: var(--muted); font-size: .92rem; }
.product__body { grid-column: 1 / -1; }
.product__block { margin-bottom: 2rem; }
.product .stack { margin-top: .4rem; }
.page-article { padding-top: 0; }
.page-hero {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 1.8rem 1.25rem 1.7rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #071018 0%, var(--navy) 42%, var(--navy-2) 100%);
  color: #fff;
  animation: fade .5s ease both;
}
.page-hero h1 { color: #fff; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); }
.page-grid {
  display: grid;
  gap: 2rem;
  animation: rise .55s ease .08s both;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.contact-card span {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.contact-card strong { display: block; font-size: 1.1rem; margin-bottom: .35rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.page-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  height: fit-content;
}
.page-aside__kicker {
  margin: 0 0 .65rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-aside__nav { display: flex; flex-direction: column; gap: .35rem; }
.page-aside__nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}
.page-aside__nav a:last-child { border-bottom: 0; }
.page-aside__nav a:hover { color: var(--accent); }
.review {
  margin: 0 0 .8rem;
  padding: .7rem .85rem;
  background: var(--card);
  border-left: 3px solid var(--accent);
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  background: var(--card);
  margin: 0;
}
.panel legend { padding: 0 .35rem; font-weight: 700; }
.checkout-sum { font-size: 1.05rem; margin-bottom: .4rem; }
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.account-order { margin-bottom: .75rem; }
.account-order form { margin-top: .45rem; }
.qty-form { display: flex; align-items: center; gap: .35rem; }
.qty-form input { width: 4.2rem; max-width: 4.2rem; min-height: 40px; }
.empty { padding: 1rem 0; color: var(--muted); }
.empty-state {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.35rem;
  text-align: center;
  box-shadow: none;
}
.empty-state--wide { padding: 2rem 1.4rem; }
.empty-state--inline { text-align: left; }
.empty-state__title { margin: 0 0 .35rem; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.empty-state__text { margin: 0 0 1rem; color: var(--muted); }
.cart-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.cart-item__title { display: block; margin-bottom: .2rem; }
.cart-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.cart-summary h2 { margin: 0 0 .85rem; }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .5rem;
  color: var(--muted);
}
.cart-summary__pay {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: .85rem 0 1.1rem;
  font-size: 1.15rem;
}
.cart-summary__cta { width: 100%; }
.cart-summary__back {
  display: block;
  margin-top: .75rem;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  background: var(--chrome);
  color: rgba(255, 255, 255, 0.72);
  padding: 2rem 0 1.4rem;
  margin-top: auto;
}
.footer__inner {
  display: grid;
  gap: 1.1rem;
}
.logo--footer { display: inline-block; margin-bottom: .35rem; }
.footer__tag { margin: 0; font-size: .92rem; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
}
.footer__nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.footer__nav a:hover { color: var(--accent-hot); }
.footer__legal {
  font-size: .82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}
.footer__legal p { margin: 0 0 .4rem; }
.footer__legal a { color: #fff; text-decoration: underline; text-underline-offset: .15em; }
.footer__legal a:hover { color: var(--accent-hot); }
.footer__copy { margin: .4rem 0 0; font-size: .88rem; }

@media (min-width: 640px) {
  .filters--bar {
    grid-template-columns: minmax(8rem, 1.2fr) 7rem 7rem auto auto;
  }
  .checkout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); }
}

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(260px, 32%) 1fr; align-items: start; }
  .product__body { grid-column: 1 / -1; }
  .page-grid { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: start; }
  .account:has(.account__side) { display: grid; grid-template-columns: minmax(16rem, 22rem) 1fr; gap: 2rem; align-items: start; }
  .account-board { grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr); }
  .account-ticket { position: sticky; top: 5.2rem; }
}

@media (min-width: 721px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 960px) {
  .top { z-index: 30; }
  .top__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 50; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(7, 16, 24, 0.55);
  }
  .nav-backdrop[hidden] { display: none; }
  .nav {
    display: flex;
    position: fixed;
    z-index: 45;
    top: 0;
    left: 0;
    width: min(19.5rem, 86vw);
    height: 100dvh;
    margin: 0;
    padding: .85rem 1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--navy);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.35);
    overflow: auto;
    transform: translateX(-110%);
    visibility: hidden;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
  }
  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 .6rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .78rem;
  }
  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
  }
  .nav a {
    padding: .85rem .35rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
  }
  body.nav-lock { overflow: hidden; }
}

@media (min-width: 961px) {
  .nav a[href="/catalog"] { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .logo { order: 1; }
  .top__actions {
    order: 2;
    margin-left: auto;
  }
  .nav-toggle { order: 3; }
  .top-search { order: 4; flex-basis: 100%; max-width: none; }
  .btn--catalog { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters--bar { grid-template-columns: 1fr 1fr; }
  .filters--bar .filters__grow,
  .filters--bar .filters__actions { grid-column: 1 / -1; }
  .filters--bar .btn { width: 100%; }
  .hero { padding-top: 2.4rem; padding-bottom: 2.5rem; }
  .table { font-size: .92rem; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .7rem;
    padding: .55rem .65rem;
  }
  .cart-table td { border: 0; padding: .4rem 0; }
  .cart-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .15rem;
  }
  .cart-table td[data-label=""]::before { display: none; }
  .row { align-items: stretch; }
  .row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .row select, .row button { max-width: none; }
  .row button { min-height: 44px; }
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero .btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.hero--photo { display: grid; }
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}
.hero--photo .hero__inner { position: relative; z-index: 1; }

.gate__lead { max-width: 42rem; margin: 0 0 1.25rem; }
.gate__lead h1 {
  margin: 0 0 .6rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
.gate__lead p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.gate__choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pick {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pick:hover { color: var(--ink); border-color: var(--accent); }
.pick img { width: 100%; height: 280px; object-fit: cover; }
.pick__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.pick__kicker {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}
.pick strong { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.pick__body span:last-child { color: var(--muted); }

.place__hero, .place__block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin: 0 0 1.5rem;
}
.place__block--flip { direction: rtl; }
.place__block--flip > * { direction: ltr; }
.place img, .place__photos img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
}
.place h1, .place h2 { font-family: var(--serif); margin: 0 0 .5rem; }
.place h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.place__note {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.place__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 0 0 1.75rem;
}
@media (max-width: 800px) {
  .gate__choice, .place__hero, .place__block, .place__block--flip, .place__photos {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .pick img, .place img { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}
