:root {
  --bg: #080A0D;
  --bg-alt: #080A0F;
  --section: #0A0D11;
  --card: #11151A;
  --card-product: #11151C;
  --card-review: #111318;
  --footer: #0F1115;
  --button-dark: #181E27;
  --border: #29313D;
  --border-hover: #3A4658;

  --text: #F2F5F8;
  --muted: #8E9AA8;
  --muted-2: #65717F;
  --accent: #FF6A2A;
  --accent-hover: #FF804A;
  --accent-soft: rgba(255,106,42,.12);
  --shadow: 0 24px 70px rgba(0,0,0,.32);
  --radius: 22px;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(58,70,88,.15), transparent 33%),
    radial-gradient(circle at 90% 0%, rgba(255,106,42,.08), transparent 24%),
    var(--bg);
  color: var(--text);
}
body::selection { background: rgba(255,106,42,.28); color: #fff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8,10,13,.86);
  border-bottom: 1px solid rgba(41,49,61,.85);
  backdrop-filter: blur(18px);
}
.topbar__inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 78px;
  margin: auto;
  display: grid;
  grid-template-columns: 245px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 950;
  letter-spacing: -.05em;
  background: linear-gradient(145deg, #1A2029, #11151C);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--muted-2);
  font-weight: 800;
}
.search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  height: 46px;
  padding-left: 16px;
  transition: .2s;
}
.search:focus-within {
  background: var(--card-product);
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px rgba(58,70,88,.12);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search input::placeholder { color: var(--muted-2); }
.search button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--button-dark);
  color: #fff;
  font-size: 22px;
}
.search button:hover { background: #202936; }
.topbar__actions { display: flex; gap: 9px; align-items: center; }
.icon-button, .cart-button {
  border: 1px solid var(--border);
  background: var(--button-dark);
  color: var(--text);
  height: 42px;
  border-radius: 13px;
  padding: 0 13px;
}
.icon-button:hover, .cart-button:hover {
  border-color: var(--border-hover);
  background: #1D2530;
}
.cart-button b {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
}

main { overflow: hidden; }

.hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: 410px;
  margin: 28px auto 28px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,106,42,.10), transparent 28%),
    linear-gradient(120deg, #0A0D11, #0C1016 58%, #0D1219);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero__copy { padding: 62px 58px 56px; position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 850;
  color: #FF8A58;
}
.hero h1 {
  margin: 12px 0 17px;
  font-size: clamp(36px, 4vw, 62px);
  line-height: .98;
  letter-spacing: -.05em;
}
.hero h1 em { color: #FF7A45; font-style: normal; }
.hero p {
  max-width: 600px;
  color: #AAB4C0;
  line-height: 1.65;
  margin: 0;
  font-size: 16px;
}
.hero__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero__tags span {
  border: 1px solid var(--border);
  padding: 9px 11px;
  border-radius: 12px;
  color: #C0C9D3;
  background: rgba(17,21,28,.72);
  font-size: 12px;
}
.hero__visual { position: relative; min-height: 410px; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb--1 {
  width: 350px;
  height: 350px;
  right: 4%;
  top: -15%;
  background: radial-gradient(circle, rgba(255,106,42,.36), rgba(255,106,42,0) 70%);
}
.orb--2 {
  width: 390px;
  height: 390px;
  right: 19%;
  bottom: -58%;
  background: radial-gradient(circle, rgba(58,70,88,.6), rgba(58,70,88,0) 70%);
}
.hero-device {
  position: absolute;
  right: 16%;
  top: 24%;
  width: 240px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-hover);
  border-radius: 28px;
  color: #E9EEF3;
  font-size: 50px;
  font-weight: 950;
  transform: rotate(-9deg);
  background: linear-gradient(145deg, rgba(58,70,88,.32), rgba(17,21,28,.28));
  box-shadow: 0 35px 70px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-chip {
  position: absolute;
  right: 49%;
  top: 13%;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: #C9D0D9;
  font-weight: 900;
  transform: rotate(9deg);
}
.hero-float {
  position: absolute;
  right: 8%;
  bottom: 10%;
  min-width: 120px;
  padding: 14px 17px;
  border: 1px solid var(--border);
  background: rgba(17,21,28,.72);
  border-radius: 16px;
  text-align: center;
  color: #7F8A98;
  font-size: 10px;
  backdrop-filter: blur(10px);
}
.hero-float b { display: block; font-size: 28px; color: #fff; }

.layout {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
}
.sidebar { min-width: 0; }
.sidebar__head, .catalog__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}
.sidebar h2, .catalog h2 {
  margin: 5px 0 3px;
  font-size: 22px;
  letter-spacing: -.03em;
}
.catalog__toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.text-button {
  border: 0;
  padding: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}
.text-button:hover { color: var(--text); }
.category-list { display: grid; gap: 5px; margin-top: 20px; }
.category {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  padding: 11px 10px;
  color: #87929F;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
}
.category b { font-size: 10px; color: #5E6977; }
.category__icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border);
}
.category:hover {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
.category.is-active {
  background: var(--accent-soft);
  border-color: rgba(255,106,42,.24);
  color: #FF8A5A;
  font-weight: 800;
}
.category.is-active .category__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.category.is-active b { color: #FF8A5A; }
.sidebar__card {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 19px;
}
.sidebar__card-icon {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--button-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.sidebar__card strong { display: block; margin-top: 12px; font-size: 13px; }
.sidebar__card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.catalog { min-width: 0; }
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.sort-control select {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  padding: 0 10px;
  color: var(--text);
  outline: 0;
}
.sort-control select:hover { border-color: var(--border-hover); }

.plugin-strip { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.plugin-pill {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 11px;
  color: #85909D;
  font-size: 11px;
}
.plugin-pill:hover {
  border-color: var(--border-hover);
  color: #C0C8D1;
  background: var(--card-product);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.product-card {
  border: 1px solid var(--border);
  background: var(--card-product);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 36px rgba(0,0,0,.28);
}
.product-card__visual {
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(58,70,88,.34), transparent 35%),
    linear-gradient(145deg, #10151B, #151A21);
}
.product-card__visual::before,
.product-card__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .55;
}
.product-card__visual::before {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,106,42,.34), rgba(255,106,42,0) 70%);
  top: -50px;
  left: -30px;
}
.product-card__visual::after {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(58,70,88,.55), rgba(58,70,88,0) 70%);
  bottom: -80px;
  right: -45px;
}
.product-card__visual-text {
  position: relative;
  z-index: 2;
  color: #E8EDF2;
  font-size: 56px;
  font-weight: 950;
  letter-spacing: -.06em;
  transform: rotate(-5deg);
  text-shadow: 0 12px 28px rgba(0,0,0,.42);
}
.product-card__visual--word .product-card__visual-text { font-size: 35px; }
.product-card__badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
}
.favorite {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  width: 33px;
  height: 33px;
  border: 1px solid var(--border);
  background: rgba(8,10,13,.34);
  color: #DCE3EA;
  border-radius: 50%;
  font-size: 18px;
}
.favorite:hover { border-color: var(--border-hover); background: var(--button-dark); }
.product-card__body { padding: 15px; }
.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.product-card__meta span:last-child { color: #D9A34B; font-weight: 800; }
.product-card h3 {
  margin: 8px 0 5px;
  font-size: 16px;
  letter-spacing: -.03em;
  color: #F1F5F8;
}
.product-card p {
  margin: 0;
  min-height: 35px;
  color: #8994A1;
  font-size: 11px;
  line-height: 1.45;
}
.product-card__spec {
  display: inline-block;
  margin-top: 11px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--button-dark);
  border: 1px solid var(--border);
  color: #8F9AA7;
  font-size: 9px;
  font-weight: 800;
}
.product-card__buy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.product-card__buy del {
  display: block;
  color: #586270;
  font-size: 10px;
  margin-bottom: 2px;
}
.product-card__buy strong {
  font-size: 17px;
  letter-spacing: -.04em;
  color: #F4F6F8;
}
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: #fff;
  background: var(--accent);
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 11px;
  white-space: nowrap;
}
.add-button:hover { background: var(--accent-hover); transform: translateY(-1px); }

.empty-state {
  margin-top: 18px;
  padding: 65px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 22px;
  background: var(--section);
}
.empty-state > div { font-size: 37px; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }

.primary-button {
  border: 0;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  transition: .15s;
}
.primary-button:hover { background: var(--accent-hover); transform: translateY(-1px); }

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--button-dark);
  color: #F0F3F6;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11px;
  transition: .2s;
  box-shadow: 0 15px 35px rgba(0,0,0,.32);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.external-links-section { margin-top: 34px; }
.external-links__head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:14px;
}
.external-links__head h2 { margin:5px 0 3px; font-size:22px; letter-spacing:-.03em; }
.external-links__head p { margin:0; color:var(--muted); font-size:12px; }
.external-links-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.external-link-card {
  display:grid;
  grid-template-columns:110px 1fr;
  overflow:hidden;
  background:var(--card-product);
  border:1px solid var(--border);
  border-radius:18px;
}
.external-link-card:hover { border-color:var(--border-hover); }
.external-link__image {
  min-height:150px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--card);
}
.external-link__image img { width:100%; height:100%; object-fit:cover; }
.external-link__fallback {
  color:#E7EDF2;
  font-weight:950;
  font-size:20px;
  letter-spacing:-.05em;
  transform:rotate(-5deg);
}
.external-link__body { padding:14px; }
.external-link__meta {
  display:flex;
  gap:8px;
  color:#74808D;
  font-size:9px;
  text-transform:uppercase;
  font-weight:800;
}
.external-link__body h3 { margin:8px 0 7px; font-size:14px; line-height:1.2; color:#EEF3F6; }
.external-link__price { display:block; margin-bottom:10px; font-size:15px; color:#F2F5F7; }
.external-link__body .add-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

@media (max-width: 1080px) {
  .topbar__inner { grid-template-columns: 210px 1fr auto; gap: 12px; }
  .layout { grid-template-columns: 220px 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .external-links-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .topbar__inner {
    width: min(var(--max), calc(100% - 20px));
    grid-template-columns: 1fr auto;
  }
  .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .topbar { padding-top: 8px; }
  .hero {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
  .hero__copy { padding: 36px 28px 28px; }
  .hero__visual { min-height: 230px; }
  .hero-device { top: 15%; right: 20%; width: 190px; height: 120px; font-size: 39px; }
  .layout {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar { order: 2; }
  .category-list { display: flex; overflow: auto; padding-bottom: 5px; }
  .category { flex: 0 0 auto; width: auto; grid-template-columns: 27px auto auto; }
  .sidebar__card { display: none; }
  .catalog__toolbar { align-items: flex-end; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-button { padding: 0 10px; }
  .hero h1 { font-size: 36px; }
  .sort-control span { display: none; }
  .sort-control select { max-width: 130px; }
  .external-links-grid { grid-template-columns:1fr; }
  .external-link-card { grid-template-columns:100px 1fr; }
}

.site-footer {
  margin-top: 30px;
  background: var(--footer);
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 38px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand strong,
.footer-brand span {
  display: block;
}
.footer-brand strong {
  color: #F2F5F8;
  font-size: 15px;
}
.footer-brand > div > span {
  margin-top: 4px;
  color: #66717F;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .17em;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #74808D;
  font-size: 11px;
}
.footer-column a:hover { color: #DDE4EA; }
.footer-title {
  margin-bottom: 4px;
  color: #C5CDD6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.site-footer__bottom {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid rgba(41,49,61,.6);
  color: #596572;
  font-size: 9px;
}
.empty-state__mark {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  color: #8C98A5;
  font-weight: 900;
  font-size: 20px;
}

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; }
}
