:root {
  --blue-dark: #0b3d78;
  --blue: #3b82f6;
  --blue-bright: #5aa9ff;
  --cyan: #45f2c5;
  --bg: #150a26;
  --bg-alt: #1b0f30;
  --panel: #1e1336;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #e7edf7;
  --text-muted: #8b98ad;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient background */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(69, 242, 197, 0.09), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.14), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.08), transparent 50%),
    var(--bg);
  animation: ambientPulse 18s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
  filter: drop-shadow(0 0 10px rgba(69, 242, 197, 0.4));
  animation: particleFloat 22s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.3; }
  40% { transform: translate3d(40px, -60px, 0) scale(1.2); opacity: 0.65; }
  70% { transform: translate3d(-30px, 30px, 0) scale(0.8); opacity: 0.4; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue-bright));
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 10, 38, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
  transition: box-shadow 0.25s ease, padding 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(21, 10, 38, 0.92);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  max-width: 1360px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  transition: padding 0.25s ease;
}

.site-header.scrolled .header-inner {
  padding: 10px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--cyan);
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
  column-gap: 20px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  background: radial-gradient(circle, var(--blue-bright) 0%, transparent 70%);
  animation: blobFloat 16s ease-in-out infinite;
}

.hero-blobs span:nth-child(1) { width: 280px; height: 280px; top: -60px; left: 8%; animation-delay: 0s; }
.hero-blobs span:nth-child(2) { width: 340px; height: 340px; top: 15%; right: 5%; animation-delay: -5s; background: radial-gradient(circle, var(--cyan) 0%, transparent 70%); }
.hero-blobs span:nth-child(3) { width: 220px; height: 220px; bottom: -40px; left: 35%; animation-delay: -9s; }

@keyframes blobFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -30px, 0) scale(1.12); }
}

.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.3);
  color: #ffcf6b;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #ffffff 30%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #150a26;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(90, 169, 255, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(90, 169, 255, 0.35); }
.btn-primary:active { transform: scale(0.97); }

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--blue-bright);
  background: rgba(90, 169, 255, 0.08);
  transform: translateY(-2px);
}

.btn-secondary:active { transform: scale(0.97); }

/* Sections */
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 30px;
  color: #fff;
  margin: 0 0 24px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 16px;
}

.section-subtitle-lg {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-text {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--text-muted);
}

.section-text:last-child {
  margin-bottom: 0;
}

.infographic {
  margin: 40px auto 0;
  max-width: 900px;
  text-align: center;
}

.infographic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(69, 242, 197, 0.4);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--cyan);
}

.advantage-icon svg { width: 100%; height: 100%; }

.advantage-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

.advantage-title {
  font-size: 17px;
  color: #fff;
  margin: 0 0 10px;
}

/* Disease stats & comparison */
.disease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.stat-card,
.limit-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  display: inline-block;
  font-size: 38px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px;
}

.stat-card p,
.limit-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.disease-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--cyan);
}

.disease-icon svg { width: 100%; height: 100%; }

.stat-card .disease-icon { margin-left: auto; margin-right: auto; }

.stat-card h3,
.limit-card h3 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 14px;
}

.limit-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.limit-card ul li { margin-bottom: 8px; }
.limit-card ul li:last-child { margin-bottom: 0; }

/* Advantage tag row */
.tag-row-title {
  font-size: 20px;
  color: #fff;
  text-align: center;
  margin: 40px 0 20px;
}

.tag-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 40px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.tag-icon {
  width: 34px;
  height: 34px;
  color: var(--cyan);
  flex-shrink: 0;
}

.tag-icon svg { width: 100%; height: 100%; }

/* Solution steps */
.solution-steps {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 40px auto 0;
}

.solution-step {
  flex: 1;
  position: relative;
  text-align: center;
}

.solution-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--panel-border);
  z-index: 0;
}

.solution-step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #150a26;
  font-weight: 800;
  font-size: 18px;
}

.solution-step p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Principle of operation */
.principle-block {
  max-width: 760px;
  margin: 40px auto 0;
}

.principle-title {
  font-size: 20px;
  color: #fff;
  text-align: center;
  margin: 0 0 20px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow);
}

.principle-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #150a26;
  font-weight: 800;
  font-size: 16px;
}

.principle-item p {
  margin: 0;
  padding-top: 6px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Roadmap */
.roadmap-list {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.roadmap-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--panel-border);
}

.roadmap-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
}

.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.roadmap-done .roadmap-marker {
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  border-color: transparent;
  color: #150a26;
}

.roadmap-body {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  flex: 1;
}

.roadmap-done .roadmap-body { border-color: rgba(90, 169, 255, 0.4); }

.roadmap-body h3 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 8px;
}

.roadmap-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Leader section */
.section-title-lined {
  position: relative;
  padding-bottom: 10px;
}

.section-title-lined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-bright));
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.leader-photo-lg {
  width: 320px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.leader-info h3 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 16px;
}

.leader-role {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-bright);
  margin: 0 0 20px;
}

.leader-info p:not(.leader-role):not(.leader-note) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.leader-note {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.75;
  margin: 0;
}

/* Contact form */
.hidden-field { position: absolute; left: -9999px; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }
.form-group:last-of-type { margin-bottom: 28px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
}

.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #ff6b6b;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #ff8080;
}

.form-status {
  margin: 18px 0 0;
  padding: 0;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-status-success { color: var(--cyan); }
.form-status-error { color: #ff8080; }

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contacts-grid h3 {
  font-size: 15px;
  color: #fff;
  margin: 0 0 8px;
}

.contacts-grid p {
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--panel-border);
  background: var(--bg-alt);
}

.footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.footer-banner p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.footer-banner-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.footer-banner-logos img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 15px;
  color: var(--cyan);
  margin: 0 0 14px;
}

.footer-brand {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--cyan) !important;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
  text-align: left;
}

.footer-strong {
  color: var(--text) !important;
  font-weight: 600;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--cyan); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a { font-size: 14px; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--cyan);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.footer-icon svg { width: 20px; height: 20px; }

.footer-icon:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 8px;
}

.footer-bottom p:last-child { margin-bottom: 0; }

.footer-disclaimer { font-size: 12px !important; }

/* Responsive */
@media (max-width: 900px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .disease-grid { grid-template-columns: 1fr; }
  .tag-row { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-banner { flex-direction: column; align-items: flex-start; }
  .footer-banner-logos { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .leader-row { flex-direction: column; text-align: center; gap: 28px; }
  .leader-photo-lg { width: 100%; max-width: 320px; height: 320px; }
  .solution-steps { flex-direction: column; gap: 28px; }
  .solution-step:not(:first-child)::before { display: none; }
  .tag-row { grid-template-columns: 1fr; }
  .logo-text { font-size: 18px; }
  .particle { display: none; }
  .animated-bg { animation: none; }
}

body.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(21, 10, 38, 0.98);
  padding: 16px 24px;
  border-bottom: 1px solid var(--panel-border);
  gap: 14px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.advantages-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.advantages-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blobs span { animation: none; }
  .animated-bg { animation: none; }
  .particle { animation: none; display: none; }
  .site-header { transition: none; }
}
