:root {
  --bg: #07090d;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.68);
  --accent: #ff8a00;
  --accent-2: #67e8f9;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 138, 0, 0.18), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(103, 232, 249, 0.14), transparent 24%),
    var(--bg);
  font-family: Inter, Arial, sans-serif;
}
main {
  flex: 1 0 auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
}
a { color: inherit; text-decoration: none; }

.site-header,
.site-footer,
main {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}
.site-header::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,9,13,.92), rgba(7,9,13,.72));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header nav { display: flex; gap: 20px; color: var(--muted); }
.site-header nav a {
  position: relative;
  transition: color .2s ease;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform .2s ease;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a:hover::after { transform: scaleX(1); }
.logo { font-weight: 800; letter-spacing: .08em; }
.logo span { color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffbf00);
  color: #111;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(255, 138, 0, .22);
}
.button-small { min-height: 42px; }
.button-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0 24px;
}
.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
}
h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.04em;
}
h2 { font-size: clamp(24px, 3vw, 40px); }
.lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  max-width: 720px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.orbit {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
  box-shadow: inset 0 0 80px rgba(103, 232, 249, .05), var(--shadow);
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.orbit::after { inset: 30%; }
.orbit span {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.orbit span:nth-child(1) { top: 8%; left: 38%; }
.orbit span:nth-child(2) { top: 42%; right: 4%; }
.orbit span:nth-child(3) { bottom: 10%; left: 38%; }
.orbit span:nth-child(4) { top: 42%; left: 4%; }

.metrics,
.cards {
  display: grid;
  gap: 16px;
}
.metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 84px;
}
.metrics article,
.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.metrics article:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.metrics strong,
.metrics span { display: block; }
.metrics span,
.card p,
.card small,
.rich-text { color: var(--muted); }
.section { margin: 0 0 84px; }
.section-head { margin-bottom: 24px; }
.section-head h2 {
  max-width: 760px;
  margin-bottom: 0;
  letter-spacing: -.03em;
}
.cards { grid-template-columns: repeat(3, 1fr); }
.card i {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #111;
  background: var(--accent-2);
  font-style: normal;
}
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: center;
}
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.flow span {
  min-height: 92px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.products .card,
.case-row,
.service-row {
  position: relative;
  overflow: hidden;
}
.products .card::before,
.case-row::before,
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,138,0,.12), transparent 55%);
  transition: opacity .25s ease;
}
.products .card:hover::before,
.case-row:hover::before,
.service-row:hover::before { opacity: 1; }
.comparison,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.timeline { grid-template-columns: repeat(4, 1fr); }
.accent-card {
  border-color: rgba(255, 138, 0, .45);
  background: linear-gradient(180deg, rgba(255, 138, 0, .16), rgba(255,255,255,.05));
}
.faq-list { display: grid; gap: 14px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.cta-panel {
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 138, 0, .28);
  background: linear-gradient(135deg, rgba(255, 138, 0, .14), rgba(103, 232, 249, .08));
}
.lead-form select,
.calculator select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
  background: var(--panel);
}
.lead-form select option,
.calculator select option {
  color: #111;
  background: #fff;
}
.lead-form label,
.calculator label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.calculator {
  max-width: 560px;
  display: grid;
  gap: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.cabinet-leads { margin-top: 40px; }
.solution-grid { margin-top: 28px; }
.compact-cta { margin-top: 40px; }
.editions-cards { grid-template-columns: repeat(3, 1fr); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.compare-table th,
.compare-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compare-table th {
  color: var(--muted);
  font-weight: 600;
}
.compare-table tbody tr:hover {
  background: rgba(255,255,255,.03);
}
.calculator label:not(:first-child) {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calculator input[type="checkbox"] { accent-color: var(--accent); }
.calc-total {
  font-size: 22px;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.page { padding: 56px 0 84px; }
.vertical { grid-template-columns: 1fr; }
.service-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.service-row small { display: block; margin-top: 8px; }
.products .card b,
.case-row b { color: var(--accent-2); }
.contacts { max-width: 760px; }
.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
  background: var(--panel);
}
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus,
.calculator select:focus {
  outline: none;
  border-color: rgba(103, 232, 249, .7);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, .12);
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(246,247,251,.45);
}
.lead-form textarea { min-height: 140px; resize: vertical; }
.notice {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(103, 232, 249, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.3);
}
.contact-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.site-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 28px;
}
.admin-nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.admin-list { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 8px; }
.admin-form span { color: var(--muted); }
.admin-card p { margin: 8px 0; }

@media (max-width: 900px) {
  .site-header {
    position: static;
    min-height: auto;
    flex-wrap: wrap;
    padding-top: 18px;
  }
  .site-header::before { display: none; }
  .site-header nav {
    order: 3;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .hero,
  .split { grid-template-columns: 1fr; }
  .metrics,
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .comparison,
  .timeline,
  .detail-grid,
  .editions-cards { grid-template-columns: 1fr; }
  .orbit { min-height: 280px; }
  .site-footer { flex-direction: column; }
  .hero {
    min-height: auto;
    padding-top: 18px;
  }
  h1 { font-size: clamp(32px, 10vw, 46px); }
  .lead { font-size: 18px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .button { width: 100%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
