:root {
  --bg: #e8eaef;
  --card: rgba(255, 255, 255, 0.52);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(255, 255, 255, 0.55);
  --accent: #0071e3;
  --accent-2: #c45c26;
  --ok: #248a3d;
  --radius: 26px;
  --shadow: 0 10px 40px rgba(15, 18, 28, 0.08);
  --glass:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 45%, rgba(255,255,255,.32) 100%),
    rgba(255,255,255,.28);
  --blur: blur(16px);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { margin: 0; background: #e8eaef; color: var(--ink); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(180, 200, 255, .22), transparent 50%),
    var(--bg);
  min-height: 100%;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0 8px;
  background: transparent;
  border: 0;
}
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 6px 10px 6px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.28) 100%),
    rgba(244, 241, 236, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 -1px 0 rgba(40, 28, 18, 0.06) inset,
    0 10px 30px rgba(40, 28, 18, 0.1),
    0 2px 8px rgba(40, 28, 18, 0.05);
}
.topbar-inner::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
  z-index: 1;
}
.topbar-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 12% -20%, rgba(255, 255, 255, 0.55), transparent 55%);
}
.logo {
  position: relative;
  z-index: 2;
  font-weight: 800; letter-spacing: -0.04em; font-size: 22px;
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo img { height: 36px; width: auto; }
.nav {
  position: relative;
  z-index: 2;
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 14px;
}
.nav a.router-link-active, .nav a:hover {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: var(--ink);
}
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px; width: 42px; height: 42px; font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center; user-select: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.nav-drop { position: relative; }
.nav-sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(40, 28, 18, 0.14);
  z-index: 30;
}
@media (hover: hover) and (min-width: 861px) {
  .nav-drop {
    padding: 10px 0 14px;
    margin: -10px 0 -14px;
  }
  .nav-sub {
    top: calc(100% - 10px);
    padding-top: 14px;
  }
  .nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: flex; flex-direction: column; }
}
.nav-sub a { display: block; border-radius: 12px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.subnav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
  color: inherit;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.subnav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero {
  padding: 36px 0 20px;
}
.hero .wrap {
  padding: 28px 28px 24px;
  border-radius: 32px;
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,.8) inset;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.05em; margin: 0 0 14px;
}
.hero p { max-width: 640px; color: var(--muted); margin: 0 0 18px; }
.catalog-head {
  padding: 22px 24px;
  margin: 0 0 18px;
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
}
.catalog-head h1, .catalog-head .lead { margin-bottom: 8px; }
.p-hero > div:last-child {
  padding: 22px;
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
}
.brand-logo img {
  height: 22px;
  width: auto;
  max-width: 86px;
  display: block;
  object-fit: contain;
}
.brand-logo:hover {
  background: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.95);
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .topbar-inner {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 8px 10px 8px 16px;
  }
  .topbar-inner:has(.nav-check:checked) { border-radius: 22px; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto; z-index: 30; position: relative;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 4px 10px;
    max-height: min(70vh, 560px);
    overflow: auto;
  }
  .nav-check:checked ~ .nav { display: flex; }
  .nav-drop { width: 100%; }
  .nav-drop > a { display: block; }
  .nav-sub {
    position: static; display: flex; flex-direction: column;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar-inner, .nav-sub, .nav-toggle {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.section { padding: 18px 0 36px; }
.section h2 { font-size: 28px; letter-spacing: -0.04em; margin: 0 0 8px; }
.section .lead { color: var(--muted); margin: 0 0 20px; }

.card {
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,.75) inset;
  overflow: hidden; text-decoration: none;
  display: block; border: 1px solid var(--line);
}
.card:hover { border-color: rgba(255,255,255,.9); transform: translateY(-1px); }
.card-body { padding: 18px 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .meta { margin-top: 10px; font-size: 13px; color: var(--accent-2); font-weight: 700; }
.banner {
  min-height: 150px;
  background: linear-gradient(135deg, #5b4bff 0%, #c45c26 100%);
  color: #fff; display: flex; align-items: flex-end; padding: 18px;
  font-weight: 700;
}

.page { padding: 28px 0 60px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.page h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.045em; margin: 0 0 14px; }
.prose {
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.prose h2 { margin: 28px 0 10px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 54px; border-radius: 16px; background: #efeaff;
  color: var(--accent); font-weight: 800; font-size: 22px;
}
.plusminus { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.pill { background: #eef8f1; color: var(--ok); padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.bad { background: #fdece6; color: #b42318; }

.catalog-layout.has-filters {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.catalog-layout.has-filters .catalog-main .grid-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1120px) {
  .catalog-layout.has-filters .catalog-main .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.filter-side {
  position: sticky; top: 92px;
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,.7) inset;
  border: 1px solid var(--line);
  padding: 16px;
}
.filter-group + .filter-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.filter-side h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.filter-side .filters { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.filter-side .chip {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; border-radius: 14px; text-decoration: none; box-sizing: border-box;
}
.filters { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0 16px; }
@media (max-width: 860px) {
  .catalog-layout.has-filters { display: block; }
  .filter-side {
    position: static;
    margin: 0 0 16px;
    padding: 14px;
  }
  .filter-side .filters { flex-direction: row; flex-wrap: wrap; }
  .filter-side .chip { width: auto; }
}
.chip {
  border:1px solid var(--line); background: rgba(255,255,255,.45); border-radius:999px;
  padding:8px 12px; font:inherit; font-size:13px; font-weight:700; cursor:pointer; color:var(--muted);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.chip.on, .chip:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.chip span { opacity:.65; margin-left:4px; }
.search {
  width:100%; max-width:420px; border:1px solid var(--line); border-radius:18px;
  padding:12px 14px; font:inherit; background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.brand-card img { width:100%; height:210px; object-fit:cover; background:#eee; display:block; }
.brand-hero { width:100%; max-height:280px; object-fit:cover; border-radius:14px; margin:8px 0 22px; background:#eee; }
.p-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #f3f1ee;
  overflow: hidden;
}
.p-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  background: #f3f1ee;
  display: block;
}
.p-photo-empty {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f3f1ee;
}
.p-card h3 { font-size: 16px; }
.p-card h3 a { text-decoration: none; }
.p-card .btn.buy { margin-top: 12px; width: 100%; }
.sale-badge {
  position: absolute; top: 12px; left: 12px; background: #b42318; color: #fff;
  font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px;
}
.sale-badge.inline { position: static; margin-left: 8px; vertical-align: middle; }
.p-cat { font-size:12px; color:var(--muted); font-weight:700; margin-bottom:4px; text-transform:uppercase; letter-spacing:.04em; }
.price { font-weight:800; color:var(--accent-2); margin-top:8px; }
.price s { margin-left: 8px; color: var(--muted); font-weight: 600; }
.price.big { font-size:28px; margin: 8px 0 16px; }
.catalog-tools { margin: 0 0 14px; }
.size-row { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0 16px; }
.size-row .chip { text-decoration:none; color:inherit; }
.thumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.thumbs button { border:0; padding:0; background:none; cursor:pointer; }
.thumbs img { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.spec { width:100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.spec th { color: var(--muted); font-weight: 600; width: 40%; }
.pager { display:flex; gap:12px; align-items:center; justify-content:center; margin: 28px 0 8px; }
.p-hero { display:grid; grid-template-columns: 1fr 1.1fr; gap:28px; align-items:start; }
.p-hero img { width:100%; border-radius: var(--radius); background:#eee; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--accent); color:#fff; text-decoration:none; font-weight:800;
  padding:12px 18px; border-radius:999px;
  box-shadow: 0 8px 22px rgba(0,113,227,.28);
}
@media (max-width: 800px) { .p-hero { grid-template-columns: 1fr; } }
.site-footer {
  margin: 12px 16px 24px;
  padding: 28px 0 32px; color: var(--muted);
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 700; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }


@supports (-webkit-touch-callout: none) {
  .topbar-inner, .card, .hero .wrap, .prose, .filter-side, .site-footer,
  .subnav a, .chip, .search, .brand-logo, .catalog-head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #f5f5f7;
  }
}

/* brand pills: logo + text label */
.brand-logo { gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.brand-logo img { height: 22px; width: 22px; max-width: 22px; flex: 0 0 auto; }
.brand-logo span { white-space: nowrap; }
