:root {
  --bg: #06080c;
  --bg-soft: #0c1119;
  --card: rgba(18, 24, 35, 0.62);
  --card-border: rgba(146, 161, 186, 0.18);
  --text: #e6ecf6;
  --muted: #99a6bd;
  --accent: #48f0b2;
  --accent-soft: #21b483;
  --warn: #ffcd59;
  --danger: #ff6f87;
  --ok: #6bf5a9;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #121d2b 0%, var(--bg) 40%), var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  animation: ambientGlow 12s ease-in-out infinite alternate;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(75, 255, 190, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 255, 190, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 8, 13, 0.1), rgba(5, 8, 13, 0.7));
  pointer-events: none;
  z-index: -1;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 13, 0.94);
  z-index: 1000;
  transition: opacity 0.45s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 78px;
  height: 78px;
  border: 3px solid rgba(72, 240, 178, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 25px rgba(72, 240, 178, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

header {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(7, 12, 19, 0.78), rgba(7, 12, 19, 0.52));
  border-bottom: 1px solid rgba(142, 162, 193, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.22s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  background: rgba(90, 108, 136, 0.25);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(142, 162, 193, 0.35);
  border-radius: 12px;
  background: rgba(10, 16, 26, 0.65);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(90, 108, 136, 0.2);
  border-color: rgba(72, 240, 178, 0.35);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

main {
  padding: 42px 0 max(80px, env(safe-area-inset-bottom, 0px));
}

.section {
  margin: 28px 0;
}

.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  animation: glassPulse 8s ease-in-out infinite;
}

.glass::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(72, 240, 178, 0.18), transparent 55%);
  opacity: 0.45;
  transform: translate3d(0, 0, 0) rotate(8deg);
  z-index: -1;
  animation: neonDrift 16s linear infinite;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -180px;
  background: radial-gradient(circle, rgba(72, 240, 178, 0.2), transparent 72%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(72, 240, 178, 0.12);
  border: 1px solid rgba(72, 240, 178, 0.35);
  color: var(--ok);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-lead {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 18px 16px 22px;
  font-size: clamp(1.05rem, 2vw + 0.55rem, 1.32rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: #f0f7ff;
  background: linear-gradient(118deg, rgba(72, 240, 178, 0.14), rgba(58, 130, 246, 0.08) 55%, rgba(72, 240, 178, 0.06));
  border: 1px solid rgba(72, 240, 178, 0.32);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.22),
    0 0 36px rgba(72, 240, 178, 0.14);
}

.hero-lead::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: calc(100% - 22px);
  max-height: 2.6em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(72, 240, 178, 0.45));
  box-shadow: 0 0 14px rgba(72, 240, 178, 0.55);
}

h1, h2, h3 {
  line-height: 1.28;
  margin: 0 0 14px;
}

h1 { font-size: clamp(1.45rem, 4.2vw + 0.6rem, 2.7rem); }
h2 { font-size: clamp(1.2rem, 2.5vw + 0.5rem, 2rem); }
h3 { font-size: 1.1rem; }

p {
  margin: 0 0 12px;
  color: #cdd8ea;
}

.hero-grid,
.analysis-grid,
.cta-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: 1.25fr 1fr;
}

.panel {
  padding: 26px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-hint {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #c7d6ec;
  background: rgba(72, 240, 178, 0.08);
  border: 1px solid rgba(72, 240, 178, 0.22);
  line-height: 1.55;
}

.form-hint strong {
  color: var(--accent);
  font-weight: 700;
}

#scan-main {
  scroll-margin-top: 96px;
  /* Снижает «прыжки» вьюпорта при появлении результата и сдвиге вёрстки */
  overflow-anchor: none;
}

label {
  font-size: 0.93rem;
  color: #d4deee;
}

input, textarea, select {
  width: 100%;
  background: rgba(8, 13, 21, 0.75);
  border: 1px solid rgba(130, 147, 173, 0.26);
  border-radius: 12px;
  color: #f0f5ff;
  font-size: 0.96rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(72, 240, 178, 0.7);
  box-shadow: 0 0 0 3px rgba(72, 240, 178, 0.16);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  touch-action: manipulation;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn:hover,
.btn:focus-visible,
.btn:active {
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nowrap {
  white-space: nowrap;
}

.btn-primary {
  color: #03120c;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 10px 28px rgba(33, 180, 131, 0.35), 0 0 18px rgba(72, 240, 178, 0.38);
}

.btn-secondary {
  color: var(--text);
  background: rgba(99, 118, 145, 0.2);
  border: 1px solid rgba(129, 152, 184, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-tg-cta {
  width: 100%;
  min-height: 46px;
  margin-top: -2px;
  gap: 8px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(15, 26, 42, 0.86), rgba(11, 20, 33, 0.78));
  border-color: rgba(86, 165, 255, 0.32);
  color: #d6e9ff;
}

.form-tg-cta img {
  width: 18px;
  height: 18px;
  display: block;
}

.form-tg-cta:hover {
  background: linear-gradient(145deg, rgba(27, 47, 74, 0.9), rgba(18, 31, 50, 0.84));
  border-color: rgba(86, 165, 255, 0.55);
  box-shadow: 0 0 18px rgba(86, 165, 255, 0.22);
}

.bridge-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.bridge-wrap .hero-grid {
  grid-template-columns: 1fr;
}

.bridge-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 18, 28, 0.85);
  border: 1px solid rgba(114, 133, 162, 0.32);
  margin: 14px 0 8px;
}

.bridge-progress > span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #47b9ff);
  box-shadow: 0 0 20px rgba(72, 240, 178, 0.28);
  transition: width 0.7s ease;
}

.bridge-sub {
  color: #b8cae5;
  margin-bottom: 14px;
}

.bridge-report {
  margin: 0;
  padding: 14px 16px 14px 34px;
  display: grid;
  gap: 11px;
  max-height: 220px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(124, 143, 171, 0.28);
  background: linear-gradient(155deg, rgba(10, 16, 26, 0.8), rgba(8, 14, 22, 0.62));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.bridge-report li {
  color: #d8e6fb;
}

.bridge-report li::marker {
  color: var(--accent);
}

.bridge-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bridge-actions .btn {
  gap: 8px;
}

.bridge-actions img {
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat-item {
  background: rgba(8, 14, 23, 0.56);
  border: 1px solid rgba(140, 160, 190, 0.2);
  border-radius: 12px;
  padding: 10px;
}

.stat-item strong {
  display: block;
  color: #f2f7ff;
}

.hero-service-links {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 143, 171, 0.22);
}

.hero-service-links-caption {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(153, 166, 189, 0.95);
  margin-bottom: 12px;
}

.hero-service-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-service-links-list li {
  margin: 0;
  padding: 0;
}

.hero-service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(8, 14, 23, 0.45);
  border: 1px solid rgba(130, 150, 180, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-service-link:hover {
  text-decoration: none;
  background: rgba(72, 240, 178, 0.08);
  border-color: rgba(72, 240, 178, 0.32);
  box-shadow: 0 0 24px rgba(72, 240, 178, 0.12);
  transform: translateY(-1px);
}

.hero-service-link:focus-visible {
  outline: none;
  text-decoration: none;
  border-color: rgba(72, 240, 178, 0.55);
  box-shadow: 0 0 0 3px rgba(72, 240, 178, 0.2);
}

.hero-service-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(6, 10, 16, 0.65);
  border: 1px solid rgba(120, 140, 170, 0.18);
}

.hero-service-icon--brand {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.hero-service-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hero-service-icon--brand img {
  width: 26px;
  height: 26px;
}

.hero-service-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.muted { color: var(--muted); }

.analysis-grid {
  grid-template-columns: 1fr;
}

.terminal {
  padding: 18px;
  background: linear-gradient(to bottom, rgba(6, 11, 18, 0.95), rgba(4, 8, 13, 0.95));
  border-radius: 12px;
  border: 1px solid rgba(91, 107, 130, 0.4);
  box-shadow:
    inset 0 0 38px rgba(67, 255, 180, 0.1),
    0 0 0 1px rgba(72, 240, 178, 0.08),
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(72, 240, 178, 0.18);
  font-family: "JetBrains Mono", "Consolas", monospace;
  min-height: 320px;
  max-height: 410px;
  overflow: auto;
  position: relative;
  animation: terminalGlow 5s ease-in-out infinite alternate;
  overflow-anchor: none;
  overscroll-behavior: contain;
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

.terminal-line {
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.28s ease forwards;
  margin-bottom: 7px;
  color: #b8f8da;
  word-break: break-word;
}

.terminal-line.warn { color: var(--warn); }
.terminal-line.danger { color: var(--danger); }
.terminal-line.ok { color: var(--ok); }
.terminal-line.info { color: #89d0ff; }

.terminal-cursor {
  display: inline-block;
  width: 9px;
  margin-left: 4px;
  color: var(--ok);
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-wrap {
  margin-top: 14px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.progress {
  height: 11px;
  background: rgba(67, 80, 100, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #43ffba, #fee573, #ff7391);
  transition: width 0.3s ease;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(116, 135, 162, 0.45);
  font-size: 0.82rem;
  color: #d5e2f4;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fbef7;
}

.status-pill.ok .status-dot { background: var(--ok); }
.status-pill.warn .status-dot { background: var(--warn); }
.status-pill.danger .status-dot { background: var(--danger); }

.result-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 170, 0.32);
  background: rgba(9, 15, 24, 0.75);
  display: none;
}

.result-card.show {
  display: block;
  animation: rise 0.35s ease;
  scroll-margin-top: 100px;
  scroll-margin-bottom: 32px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.result-item {
  background: rgba(17, 24, 36, 0.65);
  border: 1px solid rgba(120, 137, 163, 0.28);
  border-radius: 10px;
  padding: 10px;
}

.process {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.process-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 15, 24, 0.7);
  border: 1px solid rgba(121, 140, 168, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
}

.process-item strong {
  font-size: 0.92rem;
}

.process-state {
  font-size: 0.84rem;
  color: #9fc0eb;
}

.seo-block,
.faq-block,
.cta {
  padding: 30px;
}

.seo-block h2,
.faq-block h2,
.cta h2 {
  margin-bottom: 16px;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

/* Индикатор сворачивания в «Частые вопросы» */
.faq-block summary {
  justify-content: space-between;
  gap: 12px;
  padding-right: 2px;
  list-style: none;
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.faq-block summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  background: rgba(72, 240, 178, 0.1);
  border: 1px solid rgba(72, 240, 178, 0.28);
}

.faq-block details[open] summary::after {
  content: "−";
  font-size: 1.05rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 4px 0;
  list-style-position: outside;
}

details {
  background: rgba(10, 16, 26, 0.6);
  border: 1px solid rgba(124, 143, 171, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
}

details[open] summary {
  margin-bottom: 8px;
}

.cta-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

footer {
  margin-top: 34px;
  padding: 24px 0 max(42px, calc(16px + env(safe-area-inset-bottom, 0px)));
  color: #8fa2c0;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* Форма сразу в зоне видимости: в DOM она после текста, на мобилке поднимаем выше */
  .hero-grid > aside {
    order: -1;
  }

  .stats,
  .result-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 22px;
  }

  main {
    padding-top: 28px;
    padding-bottom: max(64px, env(safe-area-inset-bottom, 0px));
  }

  .section {
    margin: 22px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-height: auto;
    padding: 10px 0 12px;
    row-gap: 0;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
  }

  .menu {
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.38s ease, opacity 0.22s ease, padding 0.22s ease, visibility 0.22s;
  }

  .nav.is-open .menu {
    max-height: 22rem;
    padding: 12px 0 6px;
    visibility: visible;
    opacity: 1;
  }

  .menu a {
    width: 100%;
    box-sizing: border-box;
    flex: none;
    font-size: 0.9375rem;
    padding: 12px 14px;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .hero::after {
    opacity: 0.5;
  }

  .hero-lead {
    padding: 14px 14px 14px 20px;
    font-size: 1.02rem;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 8px 28px rgba(0, 0, 0, 0.2),
      0 0 24px rgba(72, 240, 178, 0.12);
  }

  .panel {
    padding: 18px 16px;
  }

  .seo-block,
  .faq-block,
  .cta {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .stats {
    gap: 8px;
  }

  .stat-item {
    padding: 12px;
  }

  .hero-service-links {
    margin-top: 16px;
    padding-top: 14px;
  }

  .hero-service-links-caption {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .hero-service-links-list {
    gap: 8px;
  }

  .hero-service-links-list li {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
  }

  .hero-service-link {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px 8px 8px;
  }

  .form-hint {
    font-size: 0.875rem;
    padding: 10px 12px;
  }

  input,
  textarea,
  select {
    font-size: 1rem;
    min-height: 48px;
    padding: 12px 14px;
  }

  .form-grid .btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
  }

  #scan-main {
    scroll-margin-top: 72px;
  }

  .result-card.show {
    scroll-margin-top: 80px;
  }

  .result-card .btn-primary {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
  }

  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8125rem;
  }

  .terminal {
    min-height: 180px;
    max-height: min(38vh, 300px);
    padding: 14px;
    font-size: 0.8125rem;
    line-height: 1.45;
    animation: none;
  }

  .process-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px;
  }

  .process-state {
    font-size: 0.8rem;
  }

  .cta .btn-primary {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
  }

  .cta-grid {
    gap: 16px;
  }

  details {
    padding: 12px;
  }

  summary {
    font-size: 0.9375rem;
    padding-right: 8px;
  }

  body {
    animation: none;
  }

  .glass {
    animation: none;
  }

  .glass::before,
  .glass::after {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .glass,
  .glass::before,
  .glass::after,
  .terminal {
    animation: none !important;
  }

  .btn:hover {
    transform: none;
  }

  .hero-service-link:hover {
    transform: none;
  }
}

@keyframes ambientGlow {
  0% { filter: saturate(1) contrast(1); }
  100% { filter: saturate(1.08) contrast(1.02); }
}

@keyframes glassPulse {
  0%,
  100% { box-shadow: var(--shadow), 0 0 0 1px rgba(72, 240, 178, 0.05); }
  50% { box-shadow: var(--shadow), 0 0 30px rgba(72, 240, 178, 0.12); }
}

@keyframes neonDrift {
  0% { transform: translate3d(-6%, -2%, 0) rotate(8deg); }
  50% { transform: translate3d(4%, 2%, 0) rotate(10deg); }
  100% { transform: translate3d(-6%, -2%, 0) rotate(8deg); }
}

@keyframes shimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  35% { opacity: 0.7; }
  60% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes terminalGlow {
  0% {
    box-shadow:
      inset 0 0 38px rgba(67, 255, 180, 0.08),
      0 0 0 1px rgba(72, 240, 178, 0.08),
      0 18px 60px rgba(0, 0, 0, 0.55),
      0 0 20px rgba(72, 240, 178, 0.14);
  }
  100% {
    box-shadow:
      inset 0 0 48px rgba(67, 255, 180, 0.12),
      0 0 0 1px rgba(72, 240, 178, 0.14),
      0 18px 60px rgba(0, 0, 0, 0.55),
      0 0 36px rgba(72, 240, 178, 0.22);
  }
}

/* Reviews system */
.reviews-preview,
.reviews-page {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 116, 146, 0.24);
  background: linear-gradient(145deg, rgba(13, 20, 31, 0.75), rgba(10, 15, 23, 0.64));
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.reviews-preview::before,
.reviews-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(72, 240, 178, 0.44), rgba(72, 240, 178, 0), rgba(56, 143, 255, 0.42));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.reviews-aggregate {
  display: grid;
  justify-items: end;
  text-align: right;
  gap: 2px;
}

.aggregate-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ecf4ff;
}

.aggregate-stars {
  color: #ffd76b;
  letter-spacing: 0.12em;
}

.aggregate-count {
  font-size: 0.86rem;
  color: var(--muted);
}

.today-accent {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(72, 240, 178, 0.38);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-card {
  background: linear-gradient(160deg, rgba(11, 17, 26, 0.88), rgba(8, 12, 19, 0.76));
  border: 1px solid rgba(130, 149, 181, 0.2);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 240, 178, 0.36);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36), 0 0 24px rgba(72, 240, 178, 0.09);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.review-author {
  margin: 0;
  font-size: 1rem;
}

.review-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.review-rating {
  color: #ffd76b;
  font-size: 0.88rem;
  white-space: nowrap;
}

.review-text {
  margin: 0 0 10px;
  color: #d8e4f7;
  font-size: 0.93rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-chip.is-ok {
  color: #d8ffe8;
  background: rgba(72, 240, 178, 0.16);
  border: 1px solid rgba(72, 240, 178, 0.36);
}

.review-chip.is-pending {
  color: #ffeccd;
  background: rgba(255, 205, 89, 0.12);
  border: 1px solid rgba(255, 205, 89, 0.35);
}

.review-order {
  color: #9fb2d3;
  font-size: 0.79rem;
}

.reviews-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.reviews-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.reviews-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid rgba(124, 143, 171, 0.35);
  background: rgba(7, 11, 18, 0.65);
  color: #d8e5fa;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(72, 240, 178, 0.5);
  background: rgba(72, 240, 178, 0.12);
}

.reviews-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.reviews-stat {
  border: 1px solid rgba(119, 139, 171, 0.24);
  border-radius: 12px;
  background: rgba(8, 13, 20, 0.74);
  padding: 10px 12px;
}

.reviews-stat strong {
  display: block;
  font-size: 1.2rem;
  color: #eaf3ff;
}

.reviews-empty {
  border: 1px dashed rgba(124, 143, 171, 0.38);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: #b8cae5;
}

.review-skeleton {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(124, 143, 171, 0.22);
  background: rgba(8, 13, 20, 0.78);
}

.skeleton-line {
  height: 10px;
  border-radius: 8px;
  margin: 8px 0;
  background: linear-gradient(90deg, rgba(130, 149, 181, 0.14), rgba(184, 205, 235, 0.34), rgba(130, 149, 181, 0.14));
  background-size: 220% 100%;
  animation: skeletonPulse 1.2s infinite linear;
}

.skeleton-line.w-95 { width: 95%; }
.skeleton-line.w-88 { width: 88%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-25 { width: 25%; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.review-form-wrap {
  margin-top: 20px;
}

.review-form {
  display: grid;
  gap: 10px;
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.review-error {
  margin-top: 8px;
  color: #ffd1d8;
  border: 1px solid rgba(255, 111, 135, 0.45);
  background: rgba(255, 111, 135, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
}

.review-error.shake {
  animation: shakeX 0.35s ease;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: grid;
  gap: 8px;
}

.toast {
  opacity: 0;
  transform: translateY(12px);
  min-width: 220px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 111, 135, 0.4);
  background: rgba(30, 10, 18, 0.9);
  color: #ffe0e5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes skeletonPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@media (max-width: 900px) {
  .reviews-grid,
  .review-form-grid {
    grid-template-columns: 1fr;
  }

  .reviews-head,
  .reviews-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews-aggregate {
    justify-items: start;
    text-align: left;
  }

}
