:root {
  --bg: #eef1f6;
  --bg-2: #f7f8fb;
  --ink: #101214;
  --ink-soft: #525760;
  --line: rgba(255, 255, 255, 0.68);
  --line-2: rgba(18, 24, 36, 0.08);
  --glass: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --brand: #0071e3;
  --brand-hover: #0062c4;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 10px 30px rgba(15, 20, 30, 0.08);
  --shadow-md: 0 18px 40px rgba(15, 20, 30, 0.12);
}

:root[data-theme="dark"] {
  --bg: #090b10;
  --bg-2: #10131b;
  --ink: #f2f4f8;
  --ink-soft: #a9b0bd;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(24, 28, 38, 0.56);
  --glass-strong: rgba(24, 28, 38, 0.75);
  --brand: #0a84ff;
  --brand-hover: #2a96ff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 24px 56px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1200px 700px at -20% -20%, rgba(167, 190, 255, 0.28), transparent 58%),
    radial-gradient(1000px 680px at 120% -20%, rgba(177, 246, 255, 0.24), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.7;
}

.orb-1 {
  width: 360px;
  height: 360px;
  left: -140px;
  top: -140px;
  background: rgba(140, 176, 255, 0.5);
}

.orb-2 {
  width: 440px;
  height: 440px;
  right: -180px;
  bottom: -180px;
  background: rgba(137, 237, 255, 0.35);
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(120, 130, 150, 0.25) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

.promo-line,
.topbar,
.layout {
  width: min(1320px, calc(100% - 28px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.promo-line {
  margin-top: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-xs);
}

.promo-track {
  display: inline-flex;
  gap: 30px;
  min-width: 200%;
  padding: 10px 16px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
  animation: ticker 24s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  border-radius: 10px;
  padding: 8px 11px;
  background: linear-gradient(180deg, #6ba4ff, #3f7be5);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 8px 14px rgba(47, 101, 194, 0.35);
}

.brand-text {
  font-size: 16px;
  font-weight: 700;
}

.nav-chips {
  justify-self: center;
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-chips a {
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: .18s ease;
}

.nav-chips a:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.3);
}

.topbar-actions {
  display: inline-flex;
  gap: 8px;
}

.ghost-btn,
.primary-link,
.load-more,
.buy-btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
  cursor: pointer;
}

.ghost-btn {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.3);
}

.primary-link,
.load-more,
.buy-btn {
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-hover));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.3);
}

.ghost-btn:hover,
.primary-link:hover,
.load-more:hover,
.buy-btn:hover {
  transform: translateY(-1px);
}

.layout {
  margin-top: 14px;
  margin-bottom: 30px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 12px;
}

.hero-copy,
.hero-stats,
.featured-section,
.controls,
.categories-block,
.products-section,
.faq-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  padding: 24px;
}

.pill {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -0.03em;
  max-width: 760px;
}

.lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.45;
  max-width: 720px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-list {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-list span {
  border-radius: 999px;
  border: 1px solid var(--line-2);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.28);
}

.hero-stats {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  text-align: center;
  background: var(--glass-strong);
}

.stat-card span {
  display: block;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}

.stat-card small {
  font-size: 12px;
  color: var(--ink-soft);
}

.featured-section,
.controls,
.categories-block,
.products-section,
.faq-section {
  margin-top: 12px;
  padding: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.featured-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.featured-tile {
  min-height: 184px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--glass-strong);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: .22s ease;
}

.featured-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.featured-tile h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.featured-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.featured-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 10px;
}

.search-wrap input,
.select-control {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
}

.search-wrap input::placeholder {
  color: #7a8190;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-btn {
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  padding: 8px 12px;
  cursor: pointer;
  transition: .18s ease;
}

.cat-btn.active,
.cat-btn:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand), var(--brand-hover));
  box-shadow: 0 8px 16px rgba(0, 113, 227, 0.26);
}

.section-head-catalog {
  margin-bottom: 10px;
}

.status-line {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--glass-strong);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: .22s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-thumb-link {
  aspect-ratio: 16 / 11;
  background: linear-gradient(180deg, #d7dbe5, #bcc3d2);
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.04);
}

.product-title {
  margin: 11px 10px 6px;
  font-size: 15px;
  line-height: 1.35;
}

.product-meta {
  margin: 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  min-height: 33px;
}

.product-bottom {
  margin-top: auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.load-more {
  display: block;
  margin: 14px auto 4px;
}

.empty-note {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2);
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.26);
}

.faq-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--glass-strong);
  padding: 14px;
}

.faq-item h3 {
  margin: 0;
  font-size: 16px;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(30px, 11vw, 48px);
  }

  .promo-track {
    animation-duration: 15s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
