:root {
  --bg: #07090d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --card: rgba(13, 18, 27, 0.86);
  --text: #f2f5f9;
  --muted: #8c96a8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #77f7c3;
  --accent-2: #6aa6ff;
  --danger: #ff6a8a;
  --warning: #ffd166;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 74px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[data-theme="light"] {
  --bg: #f4f6f9;
  --surface: rgba(7, 9, 13, 0.055);
  --surface-strong: rgba(7, 9, 13, 0.085);
  --card: rgba(255, 255, 255, 0.86);
  --text: #0a0d14;
  --muted: #687386;
  --line: rgba(7, 9, 13, 0.12);
  --shadow: 0 24px 70px rgba(23, 32, 48, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(119, 247, 195, 0.14), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(106, 166, 255, 0.18), transparent 32%),
    linear-gradient(180deg, var(--bg), var(--bg));
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.1rem 0.35rem;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2,
.hero h1 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-head h2 {
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.section-head p,
.hero__lead {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.muted {
  color: var(--muted);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 13, 0.68);
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s ease, background 0.25s ease;
}

html[data-theme="light"] .header {
  background: rgba(244, 246, 249, 0.76);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo__mark {
  width: 38px;
  height: 38px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--surface-strong);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  border-radius: 999px;
}

.theme-toggle {
  display: grid;
  place-items: center;
}

.burger {
  position: relative;
  display: none;
}

.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.burger span:first-child {
  top: 16px;
}

.burger span:last-child {
  bottom: 16px;
}

.burger.is-active span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.burger.is-active span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--text);
  background: var(--surface);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.btn--primary {
  color: #03100b;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 850;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn--ghost {
  backdrop-filter: blur(14px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  gap: 12px;
  margin-top: 44px;
}

.hero__stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.hero__stats strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero__visual {
  perspective: 1200px;
}

.pc-card {
  position: relative;
  min-height: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.pc-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(119, 247, 195, 0.22), transparent, rgba(106, 166, 255, 0.24), transparent);
  animation: rotateGlow 9s linear infinite;
  opacity: 0.5;
}

.pc-card > * {
  position: relative;
  z-index: 1;
}

.pc-card__top,
.build-summary__top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}

.motherboard {
  position: relative;
  height: 395px;
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent 49%, var(--line) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--line) 50%, transparent 51%),
    rgba(0, 0, 0, 0.14);
  background-size: 52px 52px;
  overflow: hidden;
}

.chip {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.chip--cpu {
  width: 130px;
  height: 130px;
  left: 48px;
  top: 64px;
}

.chip--gpu {
  width: 240px;
  height: 70px;
  right: 36px;
  bottom: 76px;
}

.chip--ram {
  width: 48px;
  height: 210px;
  right: 72px;
  top: 44px;
  writing-mode: vertical-rl;
}

.chip--ssd {
  width: 160px;
  height: 46px;
  left: 42px;
  bottom: 66px;
}

.trace {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.trace--1 {
  width: 260px;
  left: 138px;
  top: 130px;
  transform: rotate(18deg);
}

.trace--2 {
  width: 220px;
  left: 92px;
  bottom: 116px;
  transform: rotate(-14deg);
}

.trace--3 {
  width: 180px;
  right: 90px;
  top: 278px;
  transform: rotate(90deg);
}

.fan {
  position: absolute;
  width: 96px;
  height: 96px;
  right: 48px;
  bottom: 168px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 18%, rgba(119, 247, 195, 0.38) 19% 28%, transparent 29% 48%, rgba(106, 166, 255, 0.35) 49% 58%, transparent 59% 78%, rgba(119, 247, 195, 0.32) 79% 88%, transparent 89%);
  animation: rotateGlow 1.6s linear infinite;
}

.pc-card__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.pc-card__bottom div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.pc-card__bottom span,
.pc-card__bottom strong {
  display: block;
}

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.ticker__track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 18px 0;
  animation: ticker 28s linear infinite;
}

.ticker__track span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.82rem;
}

.service-grid,
.catalog-grid,
.timeline {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.product-card,
.timeline__item,
.cart-panel,
.builder,
.contact-form,
.build-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.service-card,
.timeline__item {
  padding: 28px;
}

.service-card__number,
.timeline__item span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 900;
}

.service-card h3,
.timeline__item h3,
.product-card h3 {
  margin: 0 0 12px;
  letter-spacing: -0.04em;
  font-size: 1.34rem;
}

.service-card p,
.timeline__item p,
.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 410px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 16px;
}

.search input {
  width: 100%;
  min-height: 48px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.search input::placeholder {
  color: var(--muted);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  padding: 0 14px;
}

.filter-tabs button.is-active,
.filter-tabs button:hover {
  color: #03100b;
  background: var(--accent);
  border-color: transparent;
}

.catalog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
}

.product-card__media {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at center, rgba(119, 247, 195, 0.16), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
}

.product-card__icon {
  width: 94px;
  height: 94px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 950;
  letter-spacing: -0.08em;
  font-size: 1.45rem;
  background: rgba(0, 0, 0, 0.12);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.product-card__meta span {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.product-card__add {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #03100b;
  background: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.cart-panel {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-top: 22px;
}

.cart-panel__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.86rem;
}

.cart-chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  color: var(--text);
  background: var(--surface-strong);
  border-radius: 50%;
}

.cart-panel__total {
  display: grid;
  gap: 4px;
}

.cart-panel__total span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-panel__total strong {
  white-space: nowrap;
}

.builder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.builder {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 18px;
}

.builder__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 9px;
}

label span {
  color: var(--muted);
  font-size: 0.85rem;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: var(--surface);
  padding: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent), transparent 20%);
  background: var(--surface-strong);
}

.build-summary {
  padding: 20px;
  box-shadow: none;
}

.build-summary__price {
  margin: 38px 0 18px;
}

.build-summary__price span,
.build-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.build-summary__price strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.build-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.build-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.compatibility {
  margin: 18px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.compatibility.is-good {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
}

.compatibility.is-warning {
  color: var(--warning);
  border-color: color-mix(in srgb, var(--warning), transparent 55%);
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-form {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.form-note {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 150;
  max-width: min(560px, calc(100% - 32px));
  transform: translateX(-50%) translateY(120%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease;
  white-space: pre-wrap;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotateGlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero__grid,
  .builder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    max-width: 680px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    display: grid;
    gap: 8px;
    border-radius: 24px;
    padding: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .service-grid,
  .builder,
  .builder__form {
    grid-template-columns: 1fr;
  }

  .pc-card {
    min-height: 510px;
  }

  .pc-card::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .hero__stats,
  .catalog-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .pc-card {
    padding: 14px;
    border-radius: 26px;
  }

  .motherboard {
    height: 330px;
    margin-top: 34px;
  }

  .chip--cpu {
    width: 104px;
    height: 104px;
    left: 24px;
  }

  .chip--gpu {
    width: 190px;
    right: 20px;
  }

  .chip--ram {
    height: 160px;
    right: 42px;
  }

  .chip--ssd {
    width: 128px;
    left: 24px;
  }

  .fan {
    width: 76px;
    height: 76px;
    right: 28px;
  }

  .pc-card__bottom {
    grid-template-columns: 1fr;
  }

  .product-card__media {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
