/* G-Keys — палитра из логотипа: ночной синий, бирюза, фиолет, салатовый */
:root {
  --bg: #08091a;
  --bg-2: #0c0e24;
  --surface: #121432;
  --surface-2: #181b40;
  --line: #262a57;
  --line-2: #343972;
  --text: #eef0ff;
  --muted: #9195c4;
  --cyan: #2fd8f6;
  --violet: #8b45ff;
  --lime: #b8f23c;
  --lime-dark: #9bd426;
  --danger: #ff5d7d;
  --warn: #ffc65a;
  --ok: #4fe3a0;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'Russo One', 'Manrope', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.main { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.accent { color: var(--lime); }
.err { color: var(--danger); }

/* Типографика */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
.h1 { font-size: clamp(32px, 5vw, 56px); }
.h1--page { font-size: clamp(28px, 4vw, 40px); }
.h2 { font-size: clamp(22px, 3vw, 30px); }
.h3 { font-size: 19px; }
.lead { font-size: 18px; color: #c6c9ee; max-width: 640px; margin: 0 0 24px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 0;
  background: var(--lime); color: #0a0c1c; font: 800 15px/1.2 var(--font);
  cursor: pointer; text-decoration: none; transition: background .15s, transform .15s;
}
.btn:hover { background: #c8ff55; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn--accent { background: var(--cyan); }
.btn--accent:hover { background: #63e5fb; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn--muted { color: var(--muted); }
.linkbtn--danger { color: var(--danger); }
.link { font-weight: 700; }
.inline { display: inline; }

/* Шапка */
.announce { background: linear-gradient(90deg, var(--violet), #3c53ff); color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 700; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 26, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text); font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.is-active { background: var(--surface-2); color: var(--lime); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; justify-content: center; padding: 0 10px; border-radius: var(--radius-sm); color: var(--text); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.hbtn:hover { border-color: var(--cyan); text-decoration: none; }
.hbtn svg { width: 22px; height: 22px; }
.hbtn--text { padding: 0 14px; }
.hbtn--admin { color: var(--warn); font-size: 14px; padding: 0 14px; }
.hbtn__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lime); color: #0a0c1c; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(600px 380px at 82% 40%, rgba(139, 69, 255, .30), transparent 70%),
    radial-gradient(520px 320px at 70% 80%, rgba(47, 216, 246, .18), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero__in { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { display: grid; place-items: center; position: relative; }
.hero__art::before { content: ''; position: absolute; width: 330px; height: 330px; border-radius: 50%; border: 1.5px dashed rgba(184, 242, 60, .35); animation: spin 40s linear infinite; }
.hero__art img { width: 280px; height: auto; position: relative; filter: drop-shadow(0 20px 40px rgba(139, 69, 255, .45)); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__art::before { animation: none; } }

/* Плитки разделов */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); color: var(--text); border: 1px solid var(--line-2); background: var(--surface); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); text-decoration: none; }
.tile__name { font-family: var(--font-display); font-size: 26px; }
.tile__text { color: var(--muted); }
.tile__go { margin-top: 8px; font-weight: 800; font-size: 14px; }
.tile--gta6 { background: linear-gradient(135deg, rgba(255, 79, 163, .22), rgba(255, 159, 67, .10) 60%, var(--surface)); }
.tile--gta6 .tile__go, .tile--gta6:hover { color: #ff8fc4; border-color: #ff6fae; }
.tile--psn { background: linear-gradient(135deg, rgba(38, 104, 255, .28), var(--surface) 70%); }
.tile--psn .tile__go, .tile--psn:hover { color: #7fb0ff; border-color: #4d86ff; }
.tile--steam { background: linear-gradient(135deg, rgba(47, 216, 246, .20), var(--surface) 70%); }
.tile--steam .tile__go, .tile--steam:hover { color: var(--cyan); border-color: var(--cyan); }
.tile:hover .tile__name { color: var(--text); }

/* Секции */
.section { padding-top: 48px; padding-bottom: 16px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head .h2, .section__head .h3 { margin: 0; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); text-decoration: none; }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__cat { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card__title { font-weight: 800; font-size: 17px; line-height: 1.3; }
.card__sub { color: var(--muted); font-size: 14px; }
.card__price { margin-top: auto; padding-top: 12px; font-weight: 800; font-size: 19px; color: var(--lime); }
.card__price .muted { font-size: 14px; font-weight: 600; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--lime); color: #0a0c1c; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.badge--static { position: static; display: inline-block; margin-bottom: 10px; }

/* Обложки без картинок */
.cover { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__big { font-family: var(--font-display); font-size: 64px; line-height: 1; color: #fff; letter-spacing: .02em; position: relative; }
.cover__tag { position: absolute; left: 12px; bottom: 12px; background: rgba(8, 9, 26, .7); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.cover--gta { background: radial-gradient(120% 90% at 20% 100%, #ffb347 0%, #ff4f9a 45%, #6a2bd9 100%); }
.cover--gta .cover__big { font-size: 96px; text-shadow: 0 6px 30px rgba(80, 0, 60, .5); }
.cover--gta::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, rgba(20, 6, 40, .55), transparent); }
.cover--psn { background: radial-gradient(110% 100% at 80% 0%, #3d8bff 0%, #1543c9 45%, #0b1d6b 100%); }
.cover--psn .cover__big { font-size: 58px; }
.cover--steam { background: radial-gradient(110% 100% at 20% 0%, #2e6b97 0%, #172e4d 55%, #0c1526 100%); }
.cover--steam .cover__big { font-size: 46px; letter-spacing: .08em; }
.cover--lg { border-radius: var(--radius); border: 1px solid var(--line); }
.cover--lg .cover__big { font-size: 120px; }
.cover--lg.cover--psn .cover__big { font-size: 90px; }
.cover--lg.cover--steam .cover__big { font-size: 70px; }
.cover--xs { width: 72px; flex: 0 0 72px; border-radius: 10px; }
.cover--xs .cover__big { font-size: 20px !important; }
.cover--xs .cover__tag { display: none; }

/* Страница товара */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp__media { position: sticky; top: 96px; }
.pdp__sub { color: var(--muted); font-size: 18px; margin: -8px 0 22px; }
.buy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.variants { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.variants legend { font-weight: 700; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.variant input { position: absolute; opacity: 0; }
.variant__box { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.variant__box:hover { border-color: var(--muted); }
.variant input:checked + .variant__box { border-color: var(--lime); background: rgba(184, 242, 60, .07); }
.variant input:focus-visible + .variant__box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.variant__name { font-weight: 700; }
.variant__price { font-weight: 800; white-space: nowrap; }
.buy__row { display: flex; gap: 10px; }
.qty input { width: 76px; height: 100%; text-align: center; }
.buy__total { margin: 6px 0 14px; font-size: 18px; }
.buy__total b { color: var(--lime); }
.prose { color: #cdd0f2; }
.prose p { margin: 0 0 .8em; }

/* Формы */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 4px; }
.buy .field { margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 700; color: #c6c9ee; }
.field small { font-size: 13px; }
input, select, textarea {
  width: 100%; font: 500 16px/1.4 var(--font); color: var(--text); background: var(--bg-2);
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; transition: border-color .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); }
input[type=checkbox], input[type=radio] { width: auto; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 4px 0 14px; }
.check input { accent-color: var(--lime); width: 18px; height: 18px; }
.code-input { font: 800 28px/1 ui-monospace, Consolas, monospace; letter-spacing: .4em; text-align: center; padding: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { background: var(--bg-2); color: var(--text); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font: 700 14px/1.2 var(--font); cursor: pointer; }
.chip:hover { border-color: var(--muted); text-decoration: none; }
.chip.is-active { border-color: var(--lime); color: var(--lime); }

/* Уведомления */
.flashes { display: grid; gap: 8px; padding-top: 18px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; border: 1px solid; margin-bottom: 8px; }
.flash--ok { background: rgba(79, 227, 160, .1); border-color: rgba(79, 227, 160, .4); color: #a8f5d1; }
.flash--error { background: rgba(255, 93, 125, .1); border-color: rgba(255, 93, 125, .45); color: #ffb3c2; }
.flash--info { background: rgba(47, 216, 246, .08); border-color: rgba(47, 216, 246, .4); color: #b4efff; }
.flash--warn { background: rgba(255, 198, 90, .08); border-color: rgba(255, 198, 90, .4); color: #ffe0a3; }

/* Панели */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.panel--accent { border-color: rgba(184, 242, 60, .45); }
.callout { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 198, 90, .08); border: 1px solid rgba(255, 198, 90, .3); }
.callout--info { background: rgba(47, 216, 246, .07); border-color: rgba(47, 216, 246, .3); }
.callout--msg { background: rgba(139, 69, 255, .1); border-color: rgba(139, 69, 255, .4); }
.callout .inline { margin-left: 12px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .btn { margin-top: 8px; }

/* Статусы */
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--warn { background: rgba(255, 198, 90, .14); color: var(--warn); }
.pill--info { background: rgba(47, 216, 246, .14); color: var(--cyan); }
.pill--ok { background: rgba(79, 227, 160, .14); color: var(--ok); }
.pill--muted { background: rgba(145, 149, 196, .14); color: var(--muted); }

/* Корзина */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart__list { display: grid; gap: 10px; }
.line { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.line--off { opacity: .55; }
.line__info { flex: 1; min-width: 0; }
.line__title { color: var(--text); font-weight: 800; }
.line__qty input { width: 70px; text-align: center; padding: 8px; }
.line__sum { font-weight: 800; min-width: 96px; text-align: right; white-space: nowrap; }
.xbtn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.xbtn:hover { color: var(--danger); border-color: var(--danger); }
.cart__aside { position: sticky; top: 96px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 16px; }
.cart__total b { font-size: 26px; color: var(--lime); }
.mini { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }

/* Как это работает */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps p { margin: 4px 0 0; font-size: 14px; }
.steps__n { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); background: rgba(184, 242, 60, .12); color: var(--lime); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 56px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { width: 28px; height: 28px; color: var(--cyan); flex: 0 0 28px; }
.perk p { margin: 2px 0 0; }

/* Авторизация */
.auth { display: grid; place-items: center; padding-top: 56px; padding-bottom: 72px; }
.auth__box { width: 100%; max-width: 440px; padding: 32px; }
.auth__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }

/* Кабинет */
.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.acc-head .h1 { margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--text); border-color: var(--lime); }
.olist { display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: 110px 150px 1fr auto 110px; gap: 16px; align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.orow:hover { border-color: var(--line-2); text-decoration: none; }
.orow b { text-align: right; }
.orow__items { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-head { margin-bottom: 12px; }
.order-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-top .h2 { margin: 0; }
.oitem { padding: 14px 0; border-bottom: 1px solid var(--line); }
.oitem:first-of-type { padding-top: 4px; }
.oitem__top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.order-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 18px; }
.order-total b { color: var(--lime); }
.delivery { margin-top: 10px; padding: 14px; border-radius: var(--radius-sm); background: rgba(184, 242, 60, .06); border: 1px dashed rgba(184, 242, 60, .5); }
.delivery__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: 6px; }
.delivery__value { margin: 0 0 10px; white-space: pre-wrap; word-break: break-all; font: 700 17px/1.5 ui-monospace, Consolas, monospace; color: #fff; }
.narrow-panel { max-width: 480px; }
.steam-login { margin-top: 6px; font-size: 14px; padding: 8px 10px; border-radius: 8px; background: rgba(47, 216, 246, .08); }

/* Админка */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.admin__nav { display: grid; gap: 4px; position: sticky; top: 96px; }
.admin__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--warn); padding: 0 12px 8px; }
.admin__nav a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 700; display: flex; justify-content: space-between; }
.admin__nav a:hover { background: var(--surface); text-decoration: none; }
.admin__nav a.is-active { background: var(--surface-2); color: var(--lime); }
.count { background: var(--lime); color: #0a0c1c; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.admin__main { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.stat:hover { border-color: var(--line-2); text-decoration: none; }
.stat__v { font-family: var(--font-display); font-size: 28px; color: var(--lime); }
.stat__l { color: var(--muted); font-size: 13px; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .chips { margin: 0; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.toolbar .search { margin: 0; }
.search input { width: 280px; padding: 8px 12px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: var(--surface-2); }
.table--form td { padding: 8px; }
.table--form input, .table--form select { padding: 8px 10px; font-size: 15px; }
.table .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 18px; align-items: start; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; max-height: 420px; overflow: auto; }
.danger-zone { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Ошибки */
.center-block { text-align: center; padding-top: 80px; padding-bottom: 100px; }
.err-code { font-family: var(--font-display); font-size: 110px; line-height: 1; color: var(--violet); margin-bottom: 12px; }

/* Подвал */
.footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer__in img { height: 38px; width: auto; margin-bottom: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--text); font-size: 15px; }
.footer__h { font-weight: 800; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer__bottom { padding-bottom: 28px; }

/* Адаптив */
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 64px; }
  .hero__art { display: none; }
  .tiles, .perks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pdp, .cart, .admin-grid { grid-template-columns: 1fr; }
  .pdp__media, .cart__aside { position: static; }
  .pdp__media { max-width: 520px; }
  .admin { grid-template-columns: 1fr; }
  .admin__nav { position: static; display: flex; overflow-x: auto; }
  .admin__label { display: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .orow { grid-template-columns: 1fr auto; }
  .orow__items { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header__in { gap: 12px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .logo img { height: 38px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .nav a { flex: 1; text-align: center; padding: 8px; background: var(--surface); }
  .hbtn--text span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .line { flex-wrap: wrap; }
  .line__info { flex-basis: calc(100% - 140px); }
  .line__sum { margin-left: auto; }
  .footer__in { grid-template-columns: 1fr; }
  .search input { width: 100%; }
  .auth__box { padding: 22px; }
}
