:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #0b0f14;
  --surface-2: #111720;
  --surface-3: #171d25;
  --text: #f6f7f9;
  --muted: #aab3c0;
  --soft: #d8dee8;
  --gold: #d9bf66;
  --gold-2: #f0d77b;
  --line: rgba(217, 191, 102, 0.2);
  --line-soft: rgba(255, 255, 255, 0.1);
  --ok: #52d27c;
  --warn: #f2c96d;
  --danger: #ff5f86;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #05070b;
  color: var(--text);
}

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

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(217, 191, 102, 0.08), transparent 300px),
    #05070b;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 11, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 78px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--soft);
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(217, 191, 102, 0.11);
  color: var(--gold-2);
}

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

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 20px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--gold-2);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 0.98;
  margin: 16px 0 20px;
  letter-spacing: 0;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  line-height: 1.04;
  margin: 12px 0 16px;
  letter-spacing: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  font-size: 1.16rem;
  max-width: 720px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #07080a;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--line);
}

.visual-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-logo {
  padding: 32px;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: #07090d;
}

.visual-logo img {
  max-width: min(310px, 82%);
  max-height: 230px;
  object-fit: contain;
}

.visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}

.visual-stats div {
  padding: 18px;
  border-right: 1px solid var(--line-soft);
}

.visual-stats div:last-child {
  border-right: 0;
}

.visual-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.visual-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.product-card strong {
  color: var(--gold-2);
}

.product-card ul,
.plain-list {
  margin: 0;
  padding-left: 19px;
  color: var(--soft);
  line-height: 1.8;
}

.product-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.price {
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  font-weight: 900;
}

.price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(217, 191, 102, 0.1);
  color: var(--gold-2);
  font-weight: 900;
  border: 1px solid var(--line);
}

.checkout-shell,
.form-shell {
  max-width: 880px;
  margin: 0 auto;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.status {
  margin-top: 16px;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.status.ok {
  border-color: rgba(82, 210, 124, 0.35);
  color: #b7f2c8;
}

.status.warn {
  border-color: rgba(242, 201, 109, 0.42);
  color: #ffe3a0;
}

.status.error {
  border-color: rgba(255, 95, 134, 0.42);
  color: #ffb0c4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--soft);
  font-weight: 800;
}

.field small {
  color: var(--muted);
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0a0d12;
  color: var(--text);
  padding: 14px 14px;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.span-2 {
  grid-column: 1 / -1;
}

.phone-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 10px;
}

.footer {
  border-top: 1px solid var(--line-soft);
  background: #06080c;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
}

.footer a,
.footer p {
  display: block;
  color: var(--muted);
  margin: 0 0 9px;
  line-height: 1.55;
}

.footer a:hover {
  color: var(--gold-2);
}

.copyright {
  border-top: 1px solid var(--line-soft);
  margin-top: 26px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.diagnostic-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.diagnostic-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px;
}

.diagnostic-item b {
  color: var(--soft);
}

.diagnostic-item span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .checkout-summary,
  .form-grid,
  .phone-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 54px 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav a {
    padding: 9px 8px;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .visual-stats {
    grid-template-columns: 1fr;
  }

  .visual-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}
