:root {
  --accent: #7B2CBF;
  --accent-dark: #5A189A;
  --accent-light: #E9DDF7;
  --cyan: #4CC9F0;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --white: #FFFFFF;
  --bg-gray: #F5F5F7;
  --line: #E2E2E6;
  --green: #2BA84A;
  --red: #E5383B;
  --dark: #1A1A1A;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1440px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--cyan { background: var(--cyan); color: var(--dark); }
.btn--cyan:hover { background: #7AD8F5; }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--accent-light); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

.chip {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 0;
}
.chip--accent { background: var(--accent); color: var(--white); }
.chip--cyan { background: var(--cyan); color: var(--dark); }
.chip--glass { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.chip--glass:hover { background: rgba(255,255,255,.26); }

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(42, 9, 74, .96) 0%, rgba(90, 24, 154, .88) 45%, rgba(123, 44, 191, .45) 100%),
    url('../img/hero.jpg') center / cover no-repeat,
    var(--accent-dark);
  padding-bottom: 72px;
}
.header {
  display: flex; align-items: center; gap: 32px;
  height: 80px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo__mark {
  width: 36px; height: 36px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--accent); color: var(--white);
  font-size: 13px; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }
.badge-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--cyan); color: var(--dark);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--white); border-radius: 2px; }

.hero__content { padding-top: 56px; max-width: var(--container); }
.hero h1 {
  max-width: 760px; margin: 20px 0 16px;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
}
.hero__lead { max-width: 560px; font-size: 18px; opacity: .9; }

.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 640px; margin-top: 32px; padding: 6px 6px 6px 18px;
  background: var(--white); border-radius: 14px; color: var(--muted);
  box-shadow: 0 0 0 4px rgba(76, 201, 240, .45);
}
.search input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0;
  font: inherit; font-size: 16px; color: var(--text); background: transparent;
}
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.quick > span { opacity: .8; margin-right: 4px; }

.section { padding: 80px 0; }
.section--tight { padding: 40px 0 0; }
.section--gray { background: var(--bg-gray); margin-top: 80px; }
.section h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__head .muted { margin-top: 6px; }

.cats { --n: 6; --g: 16px; }
.cat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--accent); }
.cat b { margin-top: 12px; font-size: 15px; }
.cat small { color: var(--muted); font-size: 13px; }
.cat__icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--accent-light); color: var(--accent);
}

.dual { display: flex; gap: 24px; }
.dual > * { flex: 1 1 0; min-width: 0; }
.deal { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; }
.deal--buy { background: var(--accent-light); }
.deal--sell { background: var(--dark); color: var(--white); }
.deal__img { aspect-ratio: 16 / 9; overflow: hidden; }
.deal__img img { width: 100%; height: 100%; object-fit: cover; }
.deal__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; }
.deal__body h2 { font-size: 28px; }
.deal__body p { color: var(--muted); max-width: 520px; }
.deal--sell .deal__body p { color: rgba(255,255,255,.7); }
.deal__body .btn { margin-top: auto; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before {
  content: '✓'; width: 22px; height: 22px; flex: none;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700;
}
.steps { list-style: none; counter-reset: s; margin: 0 0 8px; padding: 0; width: 100%; --n: 3; --g: 12px; }
.steps li { counter-increment: s; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.07); display: flex; flex-direction: column; }
.steps li::before {
  content: counter(s); width: 26px; height: 26px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--cyan); color: var(--dark); font-size: 13px; font-weight: 700;
}
.steps small { color: rgba(255,255,255,.6); font-size: 13px; }

.products { --n: 4; --g: 24px; }
.product {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s;
}
.product:hover { box-shadow: 0 12px 32px rgba(90, 24, 154, .12); }
.product__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-gray); }
.product__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product__badge { position: absolute; top: 12px; left: 12px; }
.product__badge.is-hit { background: var(--accent); color: var(--white); }
.product__badge.is-new { background: var(--cyan); color: var(--dark); }
.product__badge.is-sale { background: var(--red); color: var(--white); }
.product__badge.is-used { background: var(--accent-light); color: var(--accent-dark); }
.fav {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--muted);
}
.fav svg { width: 18px; height: 18px; }
.fav.is-on { color: var(--red); }
.fav.is-on svg { fill: currentColor; }
.product__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.stock { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.product__title { font-size: 17px; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.product__spec { font-size: 13px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.price b { font-size: 22px; color: var(--accent); }
.price s { font-size: 14px; color: var(--muted); }
.product .btn { width: 100%; margin-top: 10px; }
.product .btn.is-added { background: var(--green); }

.why { --n: 4; --g: 24px; margin-top: 32px; }
.why__item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.why__item h3 { margin: 16px 0 8px; font-size: 18px; }
.why__item p { color: var(--muted); font-size: 15px; }

.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 56px 0 24px; font-size: 14px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 32px; }
.footer__grid > * { flex: 1 1 0; min-width: 0; }
.footer__grid > :first-child { flex-grow: 2; }
.footer__grid > :nth-child(3) { flex-grow: 1.4; }
.footer .logo { color: var(--white); }
.footer__about p { margin: 14px 0 18px; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer__grid > div > a:not(.logo) { display: block; margin-bottom: 10px; }
.footer__grid a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 12px; background: var(--dark); color: var(--white);
  font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.topbar { background: linear-gradient(100deg, #2A094A 0%, var(--accent-dark) 60%, var(--accent) 100%); color: var(--white); position: relative; z-index: 10; }
.topbar .header { gap: 24px; }
.search--mini {
  flex: 1; max-width: 420px; margin: 0; padding: 0 14px; height: 42px;
  box-shadow: none; border-radius: 10px; gap: 8px;
}
.search--mini svg { width: 18px; height: 18px; flex: none; }
.search--mini input { height: 42px; font-size: 15px; }

.page { padding: 24px 0 80px; min-height: 60vh; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page__head { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 20px; }
.page__head h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; }

.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: thin; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--text); font-size: 15px; font-weight: 500;
}
.tab svg { width: 18px; height: 18px; color: var(--accent); }
.tab small { color: var(--muted); font-size: 13px; }
.tab:hover { border-color: var(--accent); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.tab.is-active svg, .tab.is-active small { color: rgba(255,255,255,.85); }

.catalog { display: flex; flex-direction: column; }
.filters {
  position: sticky; top: 16px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters fieldset { border: 0; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.filters fieldset:first-of-type { border-top: 0; }
.filters legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.filters legend + * { clear: both; }
.filters__close { display: none; width: 100%; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.range { display: flex; gap: 8px; }
.range input { flex: 1 1 0; width: 0; }
.range input, .sort select {
  height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: var(--white); color: var(--text); min-width: 0;
}
.range input:focus, .sort select:focus { border-color: var(--accent); outline: none; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 20px; }
.filters-open { display: none; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.products--3 { --n: 3; }
.product__title a:hover { color: var(--accent); }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h1, .empty h2 { font-size: 26px; font-weight: 800; }

.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 30% 20%, #fff 0%, var(--accent-light) 70%);
  color: var(--accent);
}
.ph svg { width: 64px; height: 64px; stroke-width: 1.2; }
.ph span { font-weight: 700; font-size: 15px; color: var(--accent-dark); opacity: .7; }

.item {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; margin-top: 20px;
}
.item > .empty { flex: 1 1 100%; }
.item__media { flex: 1.1 1 0; position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg-gray); }
.item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item__media .ph svg { width: 110px; height: 110px; }
.item__media .product__badge { top: 16px; left: 16px; }
.item__info { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.item__cat { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.item__cat svg { width: 18px; height: 18px; }
.item__info h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 800; }
.item__buy { margin-top: 12px; padding: 24px; border-radius: var(--radius); background: var(--bg-gray); display: flex; flex-direction: column; gap: 14px; }
.price--big { padding: 0; }
.price--big b { font-size: 34px; }
.price--big s { font-size: 17px; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.buy-row .btn { flex: 1; }
.qty { display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--accent); }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fav--static { position: static; width: 48px; height: 48px; flex: none; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); }
.fav--static svg { width: 22px; height: 22px; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.perks li { display: flex; gap: 8px; }
.perks li::before { content: '✓'; color: var(--green); font-weight: 700; }
.item__details { flex: 1 1 100%; max-width: 820px; }
.item__details h2 { font-size: 24px; font-weight: 800; margin: 8px 0 14px; }
.item__details p { margin-bottom: 28px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 45%; font-weight: 400; color: var(--muted); padding-right: 16px; }
.similar { margin-top: 64px; }
.similar h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }

body.no-scroll { overflow: hidden; }

@container main (max-width: 760px) {
  .products--3 { --n: 2; }
  .item { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; }
  .item__media, .item__info { flex: none; }
}
@media (max-width: 860px) {
  .topbar .header { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  .search--mini { order: 5; flex-basis: 100%; max-width: none; }
  .nav { top: 64px; }
  .filters-open { display: inline-flex; margin-right: auto; }
  .filters {
    position: fixed; inset: 0; z-index: 40; overflow-y: auto; border-radius: 0; border: 0;
    transform: translateX(-100%); transition: transform .25s;
  }
  .filters.is-open { transform: none; }
  .filters__close { display: flex; position: sticky; bottom: 0; margin-top: 8px; }
}
@container main (max-width: 480px) {
  .products--3 { --n: 1; }
}
@media (max-width: 600px) {
  .toolbar { flex-wrap: wrap; }
  .sort { width: 100%; justify-content: space-between; }
  .page__head { flex-direction: column; gap: 4px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { order: 3; flex-basis: 100%; }
  .specs th { width: 50%; }
}

@container main (max-width: 920px) {
  .cats { --n: 3; }
  .products { --n: 3; }
  .why { --n: 2; }
}
@container main (max-width: 680px) {
  .products { --n: 2; }
}
@container main (max-width: 520px) {
  .products, .why { --n: 1; }
}
@media (max-width: 1100px) {
  .footer__grid > * { flex: 1 1 calc(50% - 16px); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 16px; right: 16px; z-index: 20;
    flex-direction: column; gap: 0; padding: 8px;
    background: var(--white); color: var(--text); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 8px; }
  .nav a:hover { background: var(--bg-gray); text-decoration: none; }
  .dual { flex-direction: column; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header { gap: 12px; height: 68px; }
  .header__actions { gap: 2px; }
  .header__actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .header__actions .btn.is-user { max-width: 90px; line-height: 32px; }
  .logo__text { font-size: 18px; }
  .hero { padding-bottom: 48px; }
  .hero__content { padding-top: 24px; }
  .hero__lead { font-size: 16px; }
  .search { padding-left: 14px; }
  .search .btn { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section--tight { padding-top: 32px; }
  .section--gray { margin-top: 56px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .cats { --n: 2; --g: 12px; }
  .deal__body { padding: 24px; }
  .deal__body h2 { font-size: 24px; }
  .steps { --n: 1; }
  .footer__grid > * { flex: 1 1 100%; }
  .footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
.header__actions .btn.is-user { max-width: 160px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 36px; }

.notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.notice--warn { background: #FFF4D6; color: #6B4E00; border: 1px solid #F2D27A; }
.notice code { font-size: 13px; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

.page--auth { padding-top: 48px; }
.auth { display: flex; gap: 48px; align-items: flex-start; max-width: 1040px; margin: 0 auto; }
.auth__aside { padding: 40px; border-radius: 20px; color: var(--white);
  background: linear-gradient(140deg, #2A094A 0%, var(--accent-dark) 55%, var(--accent) 100%); }
.auth__aside h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 800; margin: 18px 0 14px; }
.auth__aside p { opacity: .85; margin-bottom: 22px; }
.checks--light li::before { background: var(--cyan); color: var(--dark); }
.auth__aside { flex: 1 1 0; min-width: 0; }
.auth__card { flex: 0 0 460px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.auth__tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 12px; background: var(--bg-gray); }
.auth__tab { flex: 1 1 0; height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--muted); }
.auth__tab.is-active { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form--2 { flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
.form--2 > * { flex: 1 1 calc(50% - 10px); min-width: 0; }
.form--2 > .form__error, .form--2 > .form__actions, .form--2 > .field--wide { flex-basis: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input {
  height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--white); width: 100%;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 44, 191, .15); }
.field input:disabled { background: var(--bg-gray); color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.field__error, small.field__error { font-weight: 500; color: var(--red); font-size: 13px; min-height: 0; }
.field__error:empty { display: none; }
.form__error { padding: 12px 14px; border-radius: 10px; background: #FDECEC; color: #A3191B; font-size: 14px; font-weight: 500; }
.form__hint { text-align: center; font-size: 14px; color: var(--muted); }
.pass { position: relative; display: block; }
.pass input { padding-right: 92px; }
.pass__toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--bg-gray); font-size: 13px; font-weight: 600; color: var(--accent); }
.check--top { align-items: flex-start; font-size: 14px; color: var(--muted); }
.check--top input { margin-top: 2px; flex: none; }
.check--top a { color: var(--accent); text-decoration: underline; }

.account { display: flex; gap: 32px; margin-top: 20px; align-items: flex-start; }
.account__main { flex: 1 1 0; min-width: 0; }
.account__side { flex: 0 0 280px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 64px; height: 64px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 28px; font-weight: 800; }
.account__nav { display: flex; flex-direction: column; margin: 18px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.account__nav a, .account__nav .soon { padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.account__nav a:hover { background: var(--bg-gray); }
.account__nav a.is-active { background: var(--accent-light); color: var(--accent-dark); }
.account__nav .soon { color: var(--muted); }
.account__nav .soon em { font-style: normal; font-size: 12px; padding: 2px 8px; margin-left: 6px; border-radius: 999px; background: var(--bg-gray); }
.account__main h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 24px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }

@media (max-width: 960px) {
  .auth { flex-direction: column; align-items: stretch; gap: 24px; }
  .auth__card { flex: none; }
  .auth__aside { padding: 28px; }
  .auth__aside .checks { display: none; }
  .account__side { position: static; }
}
@container main (max-width: 720px) {
  .account { flex-direction: column; align-items: stretch; }
  .account__side { flex: none; position: static; }
}
@media (max-width: 600px) {
  .page--auth { padding-top: 20px; }
  .auth__card, .panel { padding: 20px; }
  .form--2 > * { flex-basis: 100%; }
  .form--2 > span:empty { display: none; }
}

.logo { white-space: nowrap; }
@media (max-width: 400px) {
  .header .logo__text { display: none; }
}

.stock--low { color: #C77700; }
.stock--out { color: var(--muted); }
.btn[disabled]:not(.is-added) { background: var(--line); color: var(--muted); cursor: not-allowed; }
.field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--white); width: 100%;
}
.field select { height: 48px; padding: 0 12px; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 44, 191, .15); }
.notice a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }

.choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.choice legend { float: left; width: 100%; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.choice__grid { clear: both; --n: 2; --g: 10px; }
.choice__grid--3 { --n: 3; }
.choice__item { position: relative; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; inset: 0; }
.choice__item > span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px;
}
.choice__item small { color: var(--muted); font-size: 13px; }
.choice__item em { font-style: normal; font-weight: 600; color: var(--accent); margin-top: 4px; font-size: 14px; }
.choice__item input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #FBF8FE; }
.choice__item input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.cart { display: flex; gap: 32px; align-items: flex-start; }
.cart > .summary { flex: 0 0 320px; }
.cart__main { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cart__list { border: 1px solid var(--line); border-radius: var(--radius); }
.line {
  display: flex; gap: 16px; align-items: center;
  padding: 16px; border-top: 1px solid var(--line);
}
.line:first-child { border-top: 0; }
.line--problem { background: #FFF6F6; }
.line--gone { color: var(--muted); }
.line__img { flex: 0 0 96px; }
.line__info { flex: 1 1 0; }
.line .qty { flex: none; }
.line__price { flex: 0 0 130px; }
.line__remove { flex: 0 0 auto; }
.line__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-gray); }
.line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line__img .ph svg { width: 32px; height: 32px; }
.line__img .ph span { display: none; }
.line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line__title { font-weight: 600; line-height: 1.3; }
.line__title:hover { color: var(--accent); }
.line__error { color: var(--red); font-weight: 600; }
.line__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.line__price b { font-size: 17px; }
.line__remove { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 15px; }
.line__remove:hover { background: var(--bg-gray); color: var(--red); }
.qty--sm { height: 40px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 34px; }
.qty button:disabled { color: var(--line); cursor: default; }

.summary { position: sticky; top: 16px; padding: 24px; border-radius: var(--radius); background: var(--bg-gray); display: flex; flex-direction: column; gap: 14px; }
.summary h2 { font-size: 20px; font-weight: 700; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary__free { font-size: 13px; color: var(--accent-dark); }
.summary__free:empty { display: none; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__total b { font-size: 26px; }
.summary__note { font-size: 12px; color: var(--muted); }
.summary__note a { text-decoration: underline; }

.done { padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.done__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: var(--white); font-size: 30px; font-weight: 700; }
.done h2 { font-size: 26px; font-weight: 800; }
.done p { max-width: 460px; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.sell { display: flex; gap: 40px; align-items: flex-start; margin-top: 20px; }
.sell > * { min-width: 0; }
.sell__intro { flex: 1 1 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.sell__intro h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 800; }
.steps--light li { background: var(--accent-light); }
.steps--light li::before { background: var(--accent); color: var(--white); }
.steps--light small { color: var(--muted); }
.sell__form { flex: 1.4 1 0; margin: 0; }
.sell__form .done { border: 0; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 24px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; color: var(--muted);
  transition: border-color .15s, background .15s;
}
.drop b { color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #FBF8FE; }
.drop.is-full { display: none; }
.drop:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 96px; height: 96px; margin: 0; border-radius: 10px; overflow: hidden; background: var(--bg-gray); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: var(--white); font-size: 12px; }

.account__nav .count { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: var(--white); }
.account__admin { color: var(--accent); font-weight: 600 !important; }
.pane-head { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.orders { display: flex; flex-direction: column; gap: 16px; }
.order { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; background: var(--bg-gray); }
.order__head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order__items { list-style: none; margin: 0; padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.order__items li { display: flex; justify-content: space-between; gap: 16px; }
.order__items a:hover { color: var(--accent); }
.order__items li span:last-child { white-space: nowrap; color: var(--muted); }
.order__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.order__foot b { font-size: 18px; }
.order__foot--actions { background: #FFF8E6; flex-wrap: wrap; }
.order__foot--actions div { display: flex; gap: 8px; }
.order__client { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 20px 0; font-size: 14px; }
.order__client a { color: var(--accent); }
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status--info { background: #E3F5FC; color: #0B6E8E; }
.status--accent { background: var(--accent-light); color: var(--accent-dark); }
.status--ok { background: #E3F4E7; color: #1D7A35; }
.status--warn { background: #FFF1CC; color: #8A5A00; }
.status--muted { background: var(--bg-gray); color: var(--muted); }
.req { display: flex; gap: 20px; padding: 16px 20px; }
.req > .req__info { flex: 1 1 0; min-width: 0; }
.req__photos { flex: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 330px; }
.req__photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.req__info { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.req__info > div { display: flex; gap: 12px; }
.req__info dt { flex: 0 0 170px; }
.req__info dd { flex: 1 1 0; min-width: 0; }
.req__info dt { color: var(--muted); }
.req__info dd { margin: 0; white-space: pre-line; }
.req__offer { font-weight: 800; font-size: 18px; color: var(--accent); }
.req__admin { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); background: #FBFBFC; }
.req__admin .field input, .req__admin .field select { height: 40px; font-size: 15px; }
.req__admin .btn { height: 40px; }
.req__admin > .field:nth-child(1) { flex: 0 0 180px; }
.req__admin > .field:nth-child(2) { flex: 0 0 150px; }
.req__admin > .req__note { flex: 1 1 200px; }
.req__admin > .btn { flex: none; }
.req__err { flex-basis: 100%; }

.stats { --n: 5; --g: 16px; margin-bottom: 24px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-gray); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-weight: 800; color: var(--accent-dark); }
.stat span { color: var(--muted); font-size: 14px; }
.toolbar--left { justify-content: flex-start; flex-wrap: wrap; }
.status-select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: var(--white); }
.admin-search { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 15px; min-width: 240px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.admin-table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 12px 16px; background: var(--bg-gray); }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tr.is-hidden td { opacity: .55; }
.admin-table td.low { color: #C77700; font-weight: 700; }
.pcell { display: flex; align-items: center; gap: 12px; }
.pcell > span:last-child { display: flex; flex-direction: column; }
.pcell a:hover { color: var(--accent); }
.pcell__img { position: relative; flex: none; width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--bg-gray); }
.pcell__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcell__img .ph svg { width: 20px; height: 20px; }
.pcell__img .ph span { display: none; }

.modal { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(20, 8, 35, .55); }
.modal form { padding: 24px 28px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.modal__head h2 { font-size: 22px; font-weight: 800; }
.modal__close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--bg-gray); font-size: 15px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 6px; font-weight: 400; }
.pd-image { display: flex; align-items: center; gap: 16px; font-weight: 400; }
.pd-image__preview { position: relative; flex: none; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.pd-image__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-image__preview .ph svg { width: 36px; height: 36px; }

@container main (max-width: 940px) {
  .cart { flex-direction: column; align-items: stretch; }
  .cart > .summary { flex: none; position: static; }
  .sell { flex-direction: column; align-items: stretch; gap: 24px; }
  .sell__intro, .sell__form { flex: none; }
  .sell__intro { position: static; }
}
@media (max-width: 1100px) {
  .stats { --n: 3; }
  .req__admin > .field:nth-child(1), .req__admin > .field:nth-child(2) { flex: 1 1 calc(50% - 6px); }
  .req__admin > .req__note { flex-basis: 100%; }
}
@container main (max-width: 600px) {
  .line { position: relative; flex-wrap: wrap; gap: 8px 12px; padding-left: 100px; min-height: 104px; }
  .line__img { position: absolute; left: 16px; top: 16px; width: 72px; }
  .line__info { flex: 1 1 calc(100% - 44px); }
  .line__remove { align-self: flex-start; }
  .line__price { flex: 1 1 auto; }
  .line--gone { padding-left: 16px; min-height: 0; }
  .choice__grid, .choice__grid--3 { --n: 1; }
  .req { flex-direction: column; }
  .req__info > div { flex-direction: column; gap: 0; }
  .req__info dt { flex: none; }
  .order__head { flex-direction: column; }
  .modal form { padding: 20px; }
}
@media (max-width: 600px) {
  .stats { --n: 2; --g: 10px; }
  .stat b { font-size: 20px; }
  .req__admin > * { flex: 1 1 100% !important; }
  .admin-search { min-width: 0; flex: 1; }
}

.field input[type=checkbox], .field input[type=radio] { width: 18px; height: 18px; padding: 0; flex: none; box-shadow: none; }
.field .check { font-weight: 400; font-size: 15px; }
.drop input { height: 100%; }
.pd-image input[type=file] { height: auto; padding: 8px; border: 0; }
.line__price b, .summary dd, .summary__total b, .order__foot b { white-space: nowrap; }

.choice__item > span {
  position: relative;
  padding-right: 44px;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.choice__item > span::after {
  content: ''; position: absolute; top: 14px; right: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #C9C4D3; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.choice__item:hover > span {
  border-color: var(--accent);
  background: #FBF8FE;
  box-shadow: 0 6px 18px rgba(90, 24, 154, .10);
  transform: translateY(-1px);
}
.choice__item:hover > span::after { border-color: var(--accent); }
.choice__item input:checked + span::after {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--white);
  background: var(--accent);
}
.choice__item input:checked + span { transform: none; }
.choice__item:active > span { transform: translateY(0); }

.field select, .sort select, .status-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%237B2CBF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select:hover, .sort select:hover, .status-select:hover {
  border-color: var(--accent);
  background-color: #FBF8FE;
}
.field select:focus, .sort select:focus, .status-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 44, 191, .15);
}
.field select:invalid, .field select option[value=""] { color: var(--muted); }
.field select option, .sort select option, .status-select option { color: var(--text); background: var(--white); }
.sort select { height: 42px; min-width: 210px; font-weight: 500; }
.status-select { height: 36px; padding-left: 12px; padding-right: 34px; background-position: right 11px center; font-weight: 600; border-radius: 999px; }
.field select:disabled, .status-select:disabled { cursor: progress; opacity: .6; }

.field input:not([type=checkbox]):not([type=radio]):not([disabled]):hover,
.field textarea:hover, .range input:hover, .admin-search:hover { border-color: #B79BD6; }
.check { border-radius: 8px; transition: color .15s; }
.check:hover { color: var(--accent-dark); }
.check input { cursor: pointer; }

.ph.art {
  background: radial-gradient(120% 90% at 30% 15%, #FFFFFF 0%, #F3ECFB 45%, #E6D9F5 100%);
  justify-content: center;
}
.ph.art .art__svg { width: 82%; height: auto; max-height: 82%; stroke: none; filter: drop-shadow(0 10px 14px rgba(42, 9, 74, .18)); }
.ph.art > span {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .85); color: var(--accent-dark); opacity: 1;
}
.item__media .ph.art .art__svg { width: 70%; }
.item__media .ph.art > span { font-size: 14px; right: 16px; bottom: 16px; }
.line__img .ph.art > span, .pcell__img .ph.art > span { display: none; }
.line__img .ph.art .art__svg, .pcell__img .ph.art .art__svg { width: 92%; filter: none; }

.cmp-btn {
  position: absolute; top: 52px; right: 10px;
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--muted);
  font-size: 13px; font-weight: 600; overflow: hidden; max-width: 36px;
  transition: max-width .2s, color .15s, background .15s;
}
.cmp-btn svg { width: 18px; height: 18px; flex: none; }
.cmp-btn span { white-space: nowrap; }
.product:hover .cmp-btn, .cmp-btn:focus-visible, .cmp-btn.is-on { max-width: 130px; }
.cmp-btn:hover { color: var(--accent); }
.cmp-btn.is-on { background: var(--accent); color: var(--white); }
.fav:hover { color: var(--red); }
.cmp-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.cmp-link svg { width: 18px; height: 18px; }
.cmp-link.is-on span::after { content: ' ✓'; }

.compare-bar {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
  border-radius: 999px; background: var(--accent-dark); color: var(--white); font-weight: 600;
  box-shadow: 0 10px 30px rgba(42, 9, 74, .35); transition: transform .15s, background .15s;
}
.compare-bar:hover { background: var(--accent); transform: translateY(-2px); }
.compare-bar b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--cyan); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 13px; }

.cmp-wrap { margin-top: 12px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tbody th { width: 200px; min-width: 160px; font-weight: 400; color: var(--muted); background: #FBFBFC; position: sticky; left: 0; }
.cmp td { min-width: 200px; }
.cmp tr.is-diff td { background: #FBF8FE; }
.cmp tr.is-diff th { color: var(--accent-dark); font-weight: 600; }
.cmp thead th { border-top: 0; vertical-align: bottom; }
.cmp-head { position: relative; min-width: 200px; }
.cmp-head .btn { width: 100%; margin-top: 10px; }
.cmp-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-gray); margin-bottom: 10px; }
.cmp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-title { font-weight: 600; line-height: 1.3; display: block; min-height: 2.6em; }
.cmp-title:hover { color: var(--accent); }
.cmp-remove { position: absolute; top: 18px; right: 22px; z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.cmp-price { font-size: 18px; color: var(--accent); }
.similar__note { margin: -14px 0 20px; }

.order__total { display: flex; align-items: center; gap: 16px; }
.link-btn--danger { color: var(--red); }
.link-btn--danger.is-confirm { font-weight: 700; }
.order.is-done { opacity: .7; }
.msg-text { padding: 12px 20px 16px; white-space: pre-line; }

.info { display: flex; flex-direction: column; }
.info__nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.info__nav a { padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; transition: background .15s, color .15s; }
.info__nav a:hover { background: var(--bg-gray); color: var(--accent-dark); }
.info__nav a.is-active { background: var(--accent-light); color: var(--accent-dark); }
.info__nav-sep { margin: 10px 12px 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.info__body { display: flex; flex-direction: column; gap: 48px; max-width: 820px; min-width: 0; }
.info__sec { scroll-margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.info__sec h2 { font-size: 26px; font-weight: 800; }
.info__sec p a, .faq a { color: var(--accent); text-decoration: underline; }
.info-table { min-width: 0; }
.steps--wide { --n: 3; }
.faq { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; transition: border-color .15s; }
.faq:hover { border-color: #B79BD6; }
.faq[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 16px; color: var(--muted); }
.info__doc p { color: var(--muted); font-size: 15px; }
.info__doc h2 { font-size: 20px; }

.notfound { max-width: 620px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notfound__code { font-size: clamp(90px, 16vw, 160px); line-height: 1; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--accent-dark), var(--accent) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 30px; font-weight: 800; }
.notfound__search { width: 100%; margin-top: 10px; }

@media (max-width: 960px) {
  .info__nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .info__nav-sep { display: none; }
}
@media (max-width: 600px) {
  .section--tight { padding-top: 24px; }
  .steps--wide { --n: 1; }
  .compare-bar { right: 16px; bottom: 16px; }
  .cmp tbody th { width: 120px; min-width: 120px; }
  .cmp td, .cmp-head { min-width: 160px; }
  .order__total { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
}

.stars {
  --r: 0; position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px;
  color: #D9D3E3; white-space: nowrap;
}
.stars::before { content: '★★★★★'; }
.stars::after {
  content: '★★★★★'; position: absolute; left: 0; top: 0; overflow: hidden; color: #F5A524;
  width: calc(var(--r) / 5 * 100%);
}
.item__rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); align-self: flex-start; }
.item__rating:hover span:last-child { color: var(--accent); text-decoration: underline; }
.product__rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.product__rating .stars { font-size: 13px; letter-spacing: 1px; }
.product__title { min-height: 0; }
.product__body { gap: 6px; }

.item__features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.item__features li { display: flex; gap: 10px; align-items: flex-start; }
.item__features li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

.item__details { max-width: none; }
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.ptab {
  flex: none; height: 52px; padding: 0 18px; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.ptab small { font-size: 13px; color: var(--accent); margin-left: 2px; }
.ptab:hover { color: var(--text); }
.ptab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.ppane { max-width: 980px; }
.ppane h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.about { display: flex; gap: 32px; align-items: flex-start; }
.about > .about__text { flex: 1 1 0; }
.about > .checked { flex: 0 0 300px; }
.about:not(:has(.checked)) { max-width: 760px; }
.about__text p { margin-bottom: 14px; font-size: 16px; line-height: 1.65; }
.checked { padding: 20px; border-radius: var(--radius); background: #E3F4E7; color: #1D5E2E; display: flex; flex-direction: column; gap: 8px; }
.checked b { display: flex; align-items: center; gap: 8px; }
.checked svg { width: 20px; height: 20px; }
.checked p { font-size: 15px; line-height: 1.55; margin: 0; }
.feature-grid { list-style: none; margin: 0; padding: 0; --n: 2; --g: 12px; }
.feature-grid li { padding: 16px 18px 16px 48px; position: relative; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.feature-grid li::before { content: '✓'; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 800; }
.specs { max-width: 760px; }
.specs__note { margin-top: 14px; font-size: 13px; }
.specs__note a { color: var(--accent); text-decoration: underline; }
[data-pane="delivery"] .checks { margin: 20px 0 12px; }

.reviews__top { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 28px; }
.reviews__top > .reviews__summary { flex: 0 0 280px; }
.reviews__top > :last-child { flex: 1 1 0; }
.reviews__summary { padding: 24px; border-radius: var(--radius); background: var(--bg-gray); display: flex; flex-direction: column; gap: 6px; }
.reviews__avg { font-size: 48px; font-weight: 800; line-height: 1; }
.reviews__summary > .stars { font-size: 22px; }
.reviews__dist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.reviews__dist li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.reviews__dist li > span:first-child { flex: 0 0 34px; }
.reviews__dist li > i { flex: 1 1 0; }
.reviews__dist li > span:last-child { flex: 0 0 24px; }
.reviews__dist i { display: block; height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.reviews__dist i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: #F5A524; border-radius: 4px; }
.reviews__form h3, .reviews__login h3 { margin: 0 0 4px; font-size: 18px; }
.reviews__login { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rate { display: flex; align-items: center; gap: 2px; }
.rate__star { width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #D9D3E3; transition: color .1s, transform .1s; }
.rate__star.is-on, .rate__star.is-hover { color: #F5A524; }
.rate__star:hover { transform: scale(1.12); }
.rate__hint { margin-left: 10px; font-size: 14px; color: var(--muted); }
.reviews__list { display: flex; flex-direction: column; gap: 14px; }
.reviews__empty { padding: 20px 0; }
.review { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.review header { display: flex; align-items: center; gap: 12px; }
.review header > div { display: flex; flex-direction: column; flex: 1; }
.review header .stars { font-size: 15px; }
.review__avatar { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); font-weight: 800; }
.review__bought { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #E3F4E7; color: #1D7A35; font-size: 12px; font-weight: 600; }
.review p { white-space: pre-line; line-height: 1.6; }
.review .link-btn { align-self: flex-start; font-size: 13px; }

@container main (max-width: 760px) {
  .about, .reviews__top { flex-direction: column; align-items: stretch; }
  .about > *, .reviews__top > * { flex: none !important; }
}
@media (max-width: 600px) {
  .feature-grid { --n: 1; }
  .ptab { padding: 0 12px; font-size: 15px; }
  .review header { flex-wrap: wrap; }
}
.item > *, .about > *, .reviews__top > * { min-width: 0; }

.cats, .steps, .products, .why, .choice__grid, .stats, .feature-grid {
  display: flex; flex-wrap: wrap; gap: var(--g, 24px);
}
.cats > *, .steps > *, .products > *, .why > *, .choice__grid > *, .stats > *, .feature-grid > * {
  flex: 0 0 calc((100% - (var(--n, 4) - 1) * var(--g, 24px)) / var(--n, 4));
  min-width: 0;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
body > .footer { margin-top: auto; }
.layout { display: flex; align-items: flex-start; gap: 28px; padding-top: 24px; padding-bottom: 72px; }
.layout__main { flex: 1 1 0; min-width: 0; container: main / inline-size; }
.layout__main.page { padding: 0; min-height: 0; }
.home > .section { padding: 40px 0 0; }
.home > .section:first-child { padding-top: 0; }
.home > .section--gray { margin-top: 40px; padding: 32px; border-radius: 20px; }

.sidenav {
  flex: 0 0 220px;
  display: flex; flex-direction: column; gap: 16px;
}
.sidenav__menu { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.sidenav__title { margin: 12px 10px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sidenav__title:first-child { margin-top: 4px; }
.sidenav__menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.sidenav__menu a svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.sidenav__menu a:hover { background: var(--bg-gray); color: var(--accent-dark); }
.sidenav__menu a.is-active { background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }
@media (min-width: 861px) {
  .sidenav .filters, .sidenav .info__nav { position: static; }
}

.sidepanel { flex: 0 0 260px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.spanel { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.spanel > b, .spanel__title { font-size: 15px; }
.spanel__title { display: flex; align-items: center; gap: 8px; }
.spanel__title svg { width: 18px; height: 18px; color: var(--accent); }
.spanel__row { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.spanel__row > b { font-size: 18px; color: var(--accent-dark); white-space: nowrap; }
.spanel .btn--block { align-self: stretch; }
.spanel--dark { border: 0; color: var(--white); background: linear-gradient(140deg, #2A094A 0%, var(--accent-dark) 70%, var(--accent) 100%); }
.spanel--dark p { opacity: .8; }
.mini { align-self: stretch; display: flex; align-items: center; gap: 10px; }
.mini__img { position: relative; flex: 0 0 56px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--bg-gray); }
.mini__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini__img .ph > span { display: none; }
.mini__img .ph svg { width: 22px; height: 22px; }
.mini__img .ph.art .art__svg { width: 90%; filter: none; }
.mini__text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.mini__text span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini__text b { color: var(--accent); margin-top: 2px; }
.mini:hover .mini__text span { color: var(--accent); }

@media (min-width: 1201px) {
  body:has(.sidepanel) .compare-bar { display: none; }
}
@media (min-width: 861px) {
  .catalog-page #catTabs, .layout #catTabs { display: none; }
}

@media (max-width: 1200px) {
  .layout { flex-wrap: wrap; }
  .layout__main { flex-basis: 0; }
  .sidepanel { order: 3; flex: 1 1 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .sidepanel > .spanel { flex: 1 1 220px; }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; padding-top: 16px; padding-bottom: 48px; }
  .sidenav { display: contents; }
  .sidenav__menu { display: none; }
  .layout__main { flex: none; }
  .info__nav { order: 0; }
  .home > .section--gray { padding: 24px 16px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
}

.hero { padding-top: 80px; }
.headbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: var(--white); transition: box-shadow .35s; }
.headbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(100deg, #2A094A 0%, var(--accent-dark) 60%, var(--accent) 100%);
  transition: opacity .35s;
}
.headbar .header { height: 72px; }
.headbar.is-stuck::before { opacity: 1; }
.headbar.is-stuck { box-shadow: 0 8px 24px rgba(42, 9, 74, .28); }
.headbar__search { flex: 1 1 auto; max-width: 0; padding: 0; opacity: 0; overflow: hidden; transition: max-width .45s ease, padding .45s ease, opacity .3s; }
.headbar.is-stuck .headbar__search { max-width: 420px; padding: 0 14px; opacity: 1; }
.headbar .nav a { transition: opacity .2s; }
.headbar.nav-away .nav a { opacity: 0; pointer-events: none; }

.home-anim .sidenav__menu { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; }
.home-anim .sidenav__menu.is-in { opacity: 1; transform: none; }
.sidenav__menu a.is-landing { color: transparent; }
.sidenav__menu a.is-landing svg { opacity: 0; }
.sidenav__menu a.just-landed { animation: landed .7s ease-out; }
@keyframes landed { 0% { background: var(--accent-light); } 100% { background: transparent; } }
.sidenav__menu a.is-active.just-landed { animation: none; }
.fly-ghost {
  position: fixed; z-index: 60; margin: 0; pointer-events: none; white-space: nowrap;
  font-size: 15px; font-weight: 500; line-height: 1.5; will-change: transform;
}

@media (max-width: 860px) {
  .headbar .nav a { opacity: 1 !important; pointer-events: auto !important; }
  .headbar .header { height: 64px; }
  .hero { padding-top: 64px; }
}
@media (max-width: 600px) {
  .headbar__search { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-anim .sidenav__menu { transform: none; }
}
@media (min-width: 861px) {
  .home-anim .sidenav { position: sticky; top: 88px; }
  .home-anim .sidepanel { top: 88px; }
}
@media (max-width: 860px) {
  .sidenav .info__nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sidenav .info__nav a { flex: none; white-space: nowrap; }
}
