@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --font-sans: "Manrope", "Helvetica Neue", sans-serif;
  --font-display: "Montserrat", "Helvetica Neue", sans-serif;
  --brand-violet: #5824ee;
  --brand-indigo: #321588;
  --brand-blue: #39a5fe;
  --brand-mint: #7cfae4;
  --brand-ink: #0f0a1f;
  --brand-graphite: #1a1433;
  --brand-sand: #f5f6ff;
  --brand-cloud: #eef9f6;
  --text-primary: #101018;
  --text-secondary: #4c4f67;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --border: rgba(25, 25, 40, 0.08);
  --shadow: 0 20px 40px rgba(19, 22, 46, 0.12);
  --glow: 0 0 40px rgba(57, 165, 254, 0.35);
  --logo-width: 98px;
}

html {
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  --text-primary: #f5f5ff;
  --text-secondary: #b8bdd9;
  --surface: rgba(12, 12, 24, 0.82);
  --surface-solid: #0c0c18;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  background: radial-gradient(circle at 15% 20%, rgba(124, 250, 228, 0.2), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(88, 36, 238, 0.18), transparent 50%),
    linear-gradient(135deg, var(--brand-sand) 0%, var(--brand-cloud) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .section-sub, .lead {
  font-family: var(--font-display);
}

body.menu-open {
  overflow: hidden;
}

main {
  overflow-x: hidden;
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at 15% 20%, rgba(57, 165, 254, 0.15), transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(124, 250, 228, 0.12), transparent 55%),
    linear-gradient(135deg, #0b0b14 0%, #120c26 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 1;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-container {
  width: min(1600px, 96vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(24, 28, 55, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(24, 28, 55, 0.12);
}

html[data-theme="dark"] .site-header {
  background: rgba(10, 10, 18, 0.72);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(10, 10, 18, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  background: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  box-shadow: none;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:nth-child(2) {
  width: 22px;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  right: 24px;
  left: 24px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
  border: 1px solid rgba(120, 140, 200, 0.2);
  display: grid;
  gap: 22px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

html[data-theme="dark"] .mobile-menu {
  background: rgba(16, 16, 30, 0.98);
}

.mobile-menu .mobile-nav {
  display: grid;
  gap: 14px;
  text-align: center;
}

.mobile-menu .nav-link {
  font-size: 1.05rem;
  justify-self: center;
}

.mobile-actions {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.mobile-actions .toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-actions .btn {
  width: auto;
  padding: 12px 26px;
  margin-bottom: 8px;
}

body.menu-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .nav,
  .header-actions {
    display: none !important;
  }

  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

body.menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-lang="ru"] [data-logo="en"],
html[data-lang="en"] [data-logo="ru"] {
  display: none !important;
}

html[data-lang="ru"] [data-logo="ru"],
html[data-lang="en"] [data-logo="en"] {
  display: block !important;
}

.logo-img {
  height: 44px;
  max-height: 44px;
  width: var(--logo-width);
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-violet));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav .nav-link::after {
  display: none;
}

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

@media (max-width: 1200px) {
  .header-actions {
    display: none !important;
  }
}

.toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  overflow: visible;
}

html[data-theme="dark"] .toggle-group {
  background: rgba(12, 12, 24, 0.6);
}

.toggle {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 6px 14px;
  min-height: 32px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
}

.toggle.active {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-violet));
  color: #ffffff;
}

.theme-switch {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 4px;
}

.theme-switch-track {
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: rgba(90, 110, 140, 0.2);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.45s ease, border-color 0.45s ease;
}

.theme-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  box-shadow: 0 6px 12px rgba(25, 40, 75, 0.25);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.45s ease,
    box-shadow 0.45s ease;
  display: grid;
  place-items: center;
}

html[data-theme="dark"] .theme-switch-track {
  background: rgba(126, 93, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .theme-switch-knob {
  transform: translate(26px, -50%);
  background: #141522;
  box-shadow: 0 6px 16px rgba(110, 90, 255, 0.35);
}

.theme-switch-icon {
  position: absolute;
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-switch-icon.sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-switch-icon.sun {
  opacity: 0;
  transform: scale(0.7);
}

html[data-theme="dark"] .theme-switch-icon.moon {
  opacity: 1;
  transform: scale(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  line-height: 1.1;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-violet));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(88, 36, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(88, 36, 238, 0.3);
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip.active {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-violet));
  color: #ffffff;
  border-color: transparent;
}

.glow-card {
  position: relative;
  overflow: visible;
  isolation: isolate;
  --glow-color: rgba(57, 165, 254, 0.45);
  --glow-size: 26%;
}

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

.section.glow-card > .glow-spot {
  z-index: 0;
}

.hero.glow-card > .glow-spot {
  z-index: 0;
}

.section.glow-card {
  overflow: visible;
  --glow-color: rgba(124, 250, 228, 0.3);
  --glow-size: 36%;
}

.section.glow-card > .glow-spot {
  opacity: 0.25;
  filter: blur(36px);
}

.glow-bg-only > * {
  position: relative;
  z-index: 2;
}

.glow-bg-only > .glow-spot,
.glow-bg-only > .section-orbs {
  z-index: 0;
}

.section-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(2px);
  animation: none;
}

.glow-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--glow-color), transparent var(--glow-size));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.glow-card.glow-strong {
  --glow-color: rgba(124, 250, 228, 0.85);
  --glow-size: 28%;
}

.hero.glow-card {
  --glow-color: rgba(124, 250, 228, 0.35);
  --glow-size: 32%;
}

.glow-card:hover .glow-spot {
  opacity: 1;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}

.hero {
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  animation: floatOrb 18s ease-in-out infinite;
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orb-bg, radial-gradient(circle, rgba(160, 220, 255, 0.6), rgba(90, 150, 220, 0.2)));
  box-shadow:
    inset -18px -18px 32px rgba(20, 35, 70, 0.35),
    0 20px 40px rgba(40, 90, 160, 0.28);
  opacity: 0.85;
  filter: saturate(110%);
}

.orb-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1d;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 18px rgba(14, 24, 60, 0.2);
  white-space: nowrap;
}

.orb-ru .orb-label {
  transform: translate(-50%, -50%) translateX(20px);
}

.orb-uae .orb-label {
  transform: translate(-50%, -50%) translateX(-20px);
}

.orb-ru {
  width: 220px;
  height: 220px;
  right: 22%;
  top: 8%;
  --orb-bg: radial-gradient(circle at 30% 30%, rgba(140, 230, 210, 0.9), rgba(60, 180, 200, 0.6) 45%, rgba(40, 90, 160, 0.55) 100%);
  animation-duration: 24s;
}

.orb-uae {
  width: 180px;
  height: 180px;
  right: 30%;
  top: 36%;
  --orb-bg: radial-gradient(circle at 32% 32%, rgba(160, 220, 255, 0.9), rgba(90, 150, 220, 0.55) 50%, rgba(88, 36, 238, 0.45) 100%);
  animation-duration: 26s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -22px, 0);
  }
}

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

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 20px;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.globe {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(140, 230, 210, 0.9), rgba(60, 180, 200, 0.85) 45%, rgba(40, 90, 160, 0.95) 100%);
  box-shadow:
    inset -20px -20px 40px rgba(20, 35, 70, 0.45),
    0 24px 50px rgba(40, 90, 160, 0.35);
  overflow: hidden;
  right: 20%;
  top: 0;
  transform: rotateX(var(--globe-tilt-x, 0deg)) rotateY(var(--globe-tilt-y, 0deg));
  transition: transform 0.2s ease;
}

.globe::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px);
  opacity: 0.5;
  animation: globeSpin 18s linear infinite;
}

.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
  mix-blend-mode: screen;
}

.globe-flag {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 8px 16px rgba(10, 14, 32, 0.2);
}

.globe-flag.flag-ru {
  top: 18%;
  left: 10%;
}

.globe-flag.flag-uae {
  bottom: 18%;
  right: 12%;
}

@keyframes globeSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-card-lead {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

[data-tilt],
.service-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

[data-tilt].is-tilting,
.service-card.is-tilting {
  transition: transform 0.05s ease;
}

.hero-card {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 24px;
  max-width: 360px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.section {
  padding: 90px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 640px;
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.about-main {
  padding: 32px;
  border-radius: 28px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-main h2 {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  margin: 6px 0 18px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.about-highlight {
  padding: 18px;
  border-radius: 18px;
  background: rgba(88, 36, 238, 0.08);
  border: 1px solid rgba(88, 36, 238, 0.18);
  color: var(--text-secondary);
}

.about-side {
  display: grid;
  gap: 18px;
}

.about-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-card.soft {
  background: linear-gradient(160deg, rgba(57, 165, 254, 0.2), rgba(124, 250, 228, 0.2));
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.about-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(57, 165, 254, 0.14);
  color: var(--text-secondary);
}

.service-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card[hidden] {
  display: none !important;
}

.service-card:hover {
  --tilt-lift: -4px;
  box-shadow: 0 24px 48px rgba(19, 22, 46, 0.2);
}

.service-card h3 {
  margin: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(57, 165, 254, 0.12);
  color: var(--text-secondary);
}

.result-path {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}

.path-head {
  display: grid;
  gap: 10px;
}

.path-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(57, 165, 254, 0.2), rgba(124, 250, 228, 0.2));
  font-weight: 600;
  display: inline-flex;
  width: fit-content;
}

.path-steps {
  position: relative;
  height: 260px;
  margin-top: 12px;
}

.path-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.path-intro {
  color: var(--text-secondary);
  margin: 0;
}

.path-step {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  padding-top: 18px;
  min-width: 160px;
}

.path-step:nth-of-type(1) {
  --x: 3%;
  --y: 59.5%;
}

.path-step:nth-of-type(2) {
  --x: 28%;
  --y: 29%;
}

.path-step:nth-of-type(3) {
  --x: 55%;
  --y: 78.5%;
}

.path-step:nth-of-type(4) {
  --x: 81%;
  --y: 48%;
}

.path-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(57, 165, 254, 0.15);
}

.path-step:hover::before {
  box-shadow: 0 0 0 8px rgba(57, 165, 254, 0.2);
  animation: pulse 1.4s ease-in-out infinite;
}

.path-step:hover {
  z-index: 2;
}

.path-step.is-active {
  color: var(--brand-violet);
}

.step-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-violet);
  margin-bottom: 4px;
}

.step-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.step-detail {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translate(-50%, 8px);
  width: 220px;
  padding: 14px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.path-step:hover .step-detail,
.path-step:focus-within .step-detail {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.step-detail p {
  margin: 0;
}

.country-tabs {
  margin-top: 24px;
}

.cloud-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cloud-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.cloud-toggle {
  border: 1px solid var(--border);
}

.flag {
  margin-left: 8px;
  font-size: 1rem;
}

.cloud-field {
  position: relative;
  width: min(940px, 100%);
  min-height: clamp(520px, 60vw, 740px);
  margin: 0 auto;
}

.cloud-card {
  position: relative;
  width: var(--size, 150px);
  height: var(--size, 150px);
  border-radius: 50%;
  padding: 14px;
  margin: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--cloud-border, rgba(160, 160, 160, 0.7));
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  filter: none;
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(
      calc(-50% + var(--shift-x, 0) + var(--float-x, 0px) + var(--hover-shift-x, 0px)),
      calc(-50% + var(--shift-y, 0) + var(--float-y, 0px) + var(--hover-shift-y, 0px))
    )
    scale(var(--scale, 1));
  transition: box-shadow 0.35s ease, filter 0.35s ease, opacity 0.35s ease, background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  color: #5a5a5a;
  font-weight: 400;
  z-index: var(--z, 1);
  --hover-shift-x: 0px;
  --hover-shift-y: 0px;
  will-change: transform;
}

.cloud-card:nth-child(3n) { --shift-x: 0px; --shift-y: 0px; }
.cloud-card:nth-child(4n) { --shift-x: 2px; --shift-y: -2px; }
.cloud-card:nth-child(5n) { --shift-x: -2px; --shift-y: 2px; }

.cloud-field:not(.is-visible) .cloud-card {
  opacity: 0;
}

.cloud-field.is-visible .cloud-card {
  animation: flyIn 0.9s ease var(--fly-delay, 0s) both;
}

.cloud-card:hover,
.cloud-card.is-open {
  background: var(--cloud-color, rgba(255, 255, 255, 0.85));
  border-color: var(--cloud-border-active, rgba(150, 150, 150, 0.9));
  color: var(--cloud-text, #2b2b2b);
  opacity: 1;
  filter: none;
  --haze-opacity: 0.6;
}

.cloud-card:hover h4,
.cloud-card:hover .cloud-detail p {
  color: var(--cloud-text, #2b2b2b);
}

.cloud-card:hover {
  transform: translate(
      calc(-50% + var(--shift-x, 0) + var(--float-x, 0px) + var(--hover-shift-x)),
      calc(-50% + var(--shift-y, 0) + var(--float-y, 0px) + var(--hover-shift-y))
    )
    scale(1);
  box-shadow: none;
}

.cloud-card::before,
.cloud-card::after {
  content: "";
  position: absolute;
  background: var(--cloud-haze, rgba(255, 255, 255, 0.4));
  border-radius: 50%;
  opacity: var(--haze-opacity, 0);
  z-index: -1;
  filter: blur(8px);
}

.cloud-card::before {
  width: 42%;
  height: 42%;
  left: 6%;
  top: -20%;
}

.cloud-card::after {
  width: 38%;
  height: 38%;
  right: 6%;
  top: -14%;
}

.cloud-card:hover {
  filter: saturate(1) brightness(1);
}

.cloud-card.is-open {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(420px, 82vw);
  height: min(420px, 82vw);
  margin: 0;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.01);
  box-shadow: 0 40px 100px rgba(19, 22, 46, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  filter: none;
  z-index: 200;
  cursor: zoom-out;
  justify-content: center;
  padding: 32px 22px 72px;
  color: var(--cloud-text, #0f0a1f);
  animation: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cloud-card.is-open h4,
.cloud-card.is-open .cloud-detail {
  text-align: center;
}

.cloud-card h4 {
  margin: 0;
  font-size: clamp(0.85rem, 1.2vw, 1.02rem);
  line-height: 1.15;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  font-weight: 400;
}

.cloud-card.is-open h4 {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.cloud-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  background: transparent;
  padding: 0 12px;
  text-align: center;
}

.cloud-card.is-open .cloud-detail {
  max-height: 240px;
  opacity: 1;
  padding: 12px 14px;
}

.cloud-detail p {
  margin: 0;
  color: var(--cloud-text-muted, rgba(0, 0, 0, 0.65));
  font-weight: 400;
}

.cloud-card.is-open .cloud-detail p {
  color: var(--cloud-text, #0f0a1f);
  opacity: 1;
}

.cloud-cta {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-graphite);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.cloud-card:hover .cloud-cta,
.cloud-card.is-open .cloud-cta {
  opacity: 1;
  pointer-events: auto;
}

.cloud-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.cloud-xs { --size: 120px; }
.cloud-sm { --size: 140px; }
.cloud-md { --size: 165px; }
.cloud-lg { --size: 190px; }
.cloud-xl { --size: 220px; }

.cloud-shift-1 { --shift-x: 0px; --shift-y: 0px; }
.cloud-shift-2 { --shift-x: 0px; --shift-y: 0px; }
.cloud-shift-3 { --shift-x: 0px; --shift-y: 0px; }
.cloud-shift-4 { --shift-x: 0px; --shift-y: 0px; }

.cloud-pos-strategy { --shift-x: 20px; --shift-y: -100px; }
.cloud-pos-schools { --shift-x: 10px; --shift-y: 6px; }
.cloud-pos-support { --shift-x: 20px; --shift-y: 0px; }
.cloud-pos-tour { --shift-x: 0px; --shift-y: 10px; }
.cloud-pos-kids { --shift-x: -50px; --shift-y: 0px; }

.cloud-field .cloud-card:nth-child(1) { --x: 14%; --y: 16%; --z: 2; --fly-x: -160px; --fly-y: -80px; --fly-delay: 0.05s; }
.cloud-field .cloud-card:nth-child(2) { --x: 30%; --y: 12%; --z: 3; --fly-x: 140px; --fly-y: -120px; --fly-delay: 0.12s; }
.cloud-field .cloud-card:nth-child(3) { --x: 46%; --y: 18%; --z: 4; --fly-x: -110px; --fly-y: 130px; --fly-delay: 0.2s; }
.cloud-field .cloud-card:nth-child(4) { --x: 62%; --y: 16%; --z: 2; --fly-x: 180px; --fly-y: 40px; --fly-delay: 0.08s; }
.cloud-field .cloud-card:nth-child(5) { --x: 78%; --y: 24%; --z: 3; --fly-x: 140px; --fly-y: 120px; --fly-delay: 0.16s; }
.cloud-field .cloud-card:nth-child(6) { --x: 86%; --y: 40%; --z: 1; --fly-x: 190px; --fly-y: -30px; --fly-delay: 0.22s; }
.cloud-field .cloud-card:nth-child(7) { --x: 70%; --y: 32%; --z: 2; --fly-x: 160px; --fly-y: -110px; --fly-delay: 0.28s; }
.cloud-field .cloud-card:nth-child(8) { --x: 54%; --y: 30%; --z: 4; --fly-x: 90px; --fly-y: 90px; --fly-delay: 0.1s; }
.cloud-field .cloud-card:nth-child(9) { --x: 36%; --y: 30%; --z: 3; --fly-x: -80px; --fly-y: 120px; --fly-delay: 0.18s; }
.cloud-field .cloud-card:nth-child(10) { --x: 18%; --y: 30%; --z: 2; --fly-x: -130px; --fly-y: 60px; --fly-delay: 0.24s; }
.cloud-field .cloud-card:nth-child(11) { --x: 20%; --y: 46%; --z: 4; --fly-x: -170px; --fly-y: -20px; --fly-delay: 0.3s; }
.cloud-field .cloud-card:nth-child(12) { --x: 36%; --y: 52%; --z: 1; --fly-x: -190px; --fly-y: 70px; --fly-delay: 0.14s; }
.cloud-field .cloud-card:nth-child(13) { --x: 66%; --y: 50%; --z: 2; --fly-x: -60px; --fly-y: 160px; --fly-delay: 0.26s; }
.cloud-field .cloud-card:nth-child(14) { --x: 52%; --y: 50%; --z: 3; --fly-x: -140px; --fly-y: 140px; --fly-delay: 0.2s; }
.cloud-field .cloud-card:nth-child(15) { --x: 78%; --y: 52%; --z: 4; --fly-x: 50px; --fly-y: 150px; --fly-delay: 0.12s; }
.cloud-field .cloud-card:nth-child(16) { --x: 84%; --y: 62%; --z: 2; --fly-x: 110px; --fly-y: 140px; --fly-delay: 0.18s; }
.cloud-field .cloud-card:nth-child(17) { --x: 68%; --y: 68%; --z: 3; --fly-x: 160px; --fly-y: 90px; --fly-delay: 0.24s; }
.cloud-field .cloud-card:nth-child(18) { --x: 50%; --y: 70%; --z: 2; --fly-x: 130px; --fly-y: 160px; --fly-delay: 0.3s; }
.cloud-field .cloud-card:nth-child(19) { --x: 32%; --y: 70%; --z: 4; --fly-x: 70px; --fly-y: 180px; --fly-delay: 0.16s; }
.cloud-field .cloud-card:nth-child(20) { --x: 18%; --y: 66%; --z: 1; --fly-x: -100px; --fly-y: 170px; --fly-delay: 0.22s; }

@keyframes flyIn {
  from {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--shift-x, 0) + var(--fly-x, 0px) + var(--float-x, 0px)),
        calc(-50% + var(--shift-y, 0) + var(--fly-y, 0px) + var(--float-y, 0px))
      )
      scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(
        calc(-50% + var(--shift-x, 0) + var(--float-x, 0px)),
        calc(-50% + var(--shift-y, 0) + var(--float-y, 0px))
      )
      scale(1);
  }
}

/* cursor trail disabled */

.cloud-blue {
  --cloud-color: radial-gradient(circle at 20% 30%, rgba(140, 210, 255, 0.55), rgba(110, 170, 240, 0.55)),
    radial-gradient(circle at 75% 25%, rgba(150, 210, 255, 0.45), rgba(100, 160, 235, 0.45)),
    radial-gradient(circle at 45% 80%, rgba(120, 180, 235, 0.4), rgba(100, 160, 220, 0.45));
  --cloud-haze: radial-gradient(circle at 30% 40%, rgba(170, 220, 255, 0.35), transparent 70%);
  --cloud-text: #203042;
  --cloud-text-muted: rgba(32, 48, 66, 0.7);
  --cloud-border-active: rgba(140, 190, 235, 0.9);
  --cloud-border: rgba(140, 190, 235, 0.65);
}

.cloud-violet {
  --cloud-color: radial-gradient(circle at 20% 30%, rgba(190, 170, 255, 0.5), rgba(150, 120, 235, 0.5)),
    radial-gradient(circle at 70% 20%, rgba(180, 150, 245, 0.45), rgba(140, 110, 220, 0.45)),
    radial-gradient(circle at 50% 85%, rgba(170, 140, 235, 0.4), rgba(140, 110, 210, 0.45));
  --cloud-haze: radial-gradient(circle at 30% 40%, rgba(200, 180, 255, 0.35), transparent 70%);
  --cloud-text: #2c2140;
  --cloud-text-muted: rgba(44, 33, 64, 0.7);
  --cloud-border-active: rgba(170, 150, 235, 0.9);
  --cloud-border: rgba(170, 150, 235, 0.65);
}

.cloud-mint {
  --cloud-color: radial-gradient(circle at 20% 30%, rgba(175, 240, 220, 0.55), rgba(120, 200, 210, 0.5)),
    radial-gradient(circle at 75% 25%, rgba(190, 245, 230, 0.45), rgba(120, 200, 210, 0.45)),
    radial-gradient(circle at 45% 80%, rgba(150, 215, 210, 0.4), rgba(110, 190, 200, 0.45));
  --cloud-haze: radial-gradient(circle at 30% 40%, rgba(190, 245, 230, 0.35), transparent 70%);
  --cloud-text: #16312b;
  --cloud-text-muted: rgba(22, 49, 43, 0.7);
  --cloud-border-active: rgba(150, 210, 205, 0.9);
  --cloud-border: rgba(150, 210, 205, 0.65);
}

.cloud-sun {
  --cloud-color: radial-gradient(circle at 20% 30%, rgba(255, 220, 160, 0.6), rgba(235, 170, 120, 0.55)),
    radial-gradient(circle at 75% 25%, rgba(255, 210, 170, 0.5), rgba(230, 165, 120, 0.45)),
    radial-gradient(circle at 45% 80%, rgba(235, 185, 140, 0.45), rgba(220, 160, 120, 0.5));
  --cloud-haze: radial-gradient(circle at 30% 40%, rgba(255, 220, 170, 0.35), transparent 70%);
  --cloud-text: #3a2a1a;
  --cloud-text-muted: rgba(58, 42, 26, 0.7);
  --cloud-border-active: rgba(230, 180, 140, 0.9);
  --cloud-border: rgba(230, 180, 140, 0.65);
}

.cloud-rose {
  --cloud-color: radial-gradient(circle at 20% 30%, rgba(245, 200, 215, 0.6), rgba(230, 160, 190, 0.55)),
    radial-gradient(circle at 70% 20%, rgba(245, 190, 210, 0.5), rgba(220, 150, 180, 0.45)),
    radial-gradient(circle at 50% 85%, rgba(230, 170, 190, 0.45), rgba(210, 150, 175, 0.5));
  --cloud-haze: radial-gradient(circle at 30% 40%, rgba(250, 210, 225, 0.35), transparent 70%);
  --cloud-text: #3a1d2a;
  --cloud-text-muted: rgba(58, 29, 42, 0.7);
  --cloud-border-active: rgba(220, 170, 195, 0.9);
  --cloud-border: rgba(220, 170, 195, 0.65);
}

.cloud-sea {
  --cloud-color: radial-gradient(circle at 20% 30%, rgba(170, 230, 220, 0.6), rgba(120, 200, 195, 0.55)),
    radial-gradient(circle at 75% 25%, rgba(160, 220, 215, 0.5), rgba(110, 190, 185, 0.45)),
    radial-gradient(circle at 45% 80%, rgba(140, 205, 200, 0.45), rgba(110, 185, 180, 0.5));
  --cloud-haze: radial-gradient(circle at 30% 40%, rgba(190, 235, 225, 0.35), transparent 70%);
  --cloud-text: #18312b;
  --cloud-text-muted: rgba(24, 49, 43, 0.7);
  --cloud-border-active: rgba(150, 205, 200, 0.9);
  --cloud-border: rgba(150, 205, 200, 0.65);
}

.country-clouds[data-highlight-ru="true"] .cloud-card[data-group="ru"],
.country-clouds[data-highlight-uae="true"] .cloud-card[data-group="uae"] {
  border-color: var(--cloud-border-active, rgba(150, 150, 150, 0.9));
  box-shadow: 0 0 0 3px var(--cloud-border-active, rgba(150, 150, 150, 0.6));
  border-width: 2px;
}

.country-clouds[data-highlight-ru="true"]:not([data-highlight-uae="true"]) .cloud-card[data-group="uae"],
.country-clouds[data-highlight-uae="true"]:not([data-highlight-ru="true"]) .cloud-card[data-group="ru"] {
  opacity: 0.55;
  filter: grayscale(1) brightness(0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  pointer-events: none;
}

.country-clouds[data-highlight-ru="true"]:not([data-highlight-uae="true"]) .cloud-card[data-group="uae"]:hover,
.country-clouds[data-highlight-uae="true"]:not([data-highlight-ru="true"]) .cloud-card[data-group="ru"]:hover {
  opacity: 0.55;
  filter: grayscale(1) brightness(0.8);
  background: var(--cloud-base, rgba(247, 247, 247, 0.95));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: translate(calc(-50% + var(--shift-x, 0)), calc(-50% + var(--shift-y, 0))) scale(1);
  color: #5a5a5a;
}

.cloud-card.is-open {
  opacity: 1;
  filter: saturate(1.2) brightness(1.08);
  border-color: rgba(255, 255, 255, 0.9);
}

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

.card-wide p {
  margin-top: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.accent-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 16px 0;
}

.dark-block {
  background: linear-gradient(135deg, rgba(50, 21, 136, 0.1), rgba(57, 165, 254, 0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.list {
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.list-columns {
  columns: 2;
  gap: 40px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.list-columns li {
  break-inside: avoid;
}

.highlight {
  margin-top: 32px;
  background: linear-gradient(120deg, rgba(57, 165, 254, 0.18), rgba(124, 250, 228, 0.18));
}

.triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.triad-item {
  padding: 16px;
  background: var(--surface-solid);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.icon-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(57, 165, 254, 0.7), rgba(88, 36, 238, 0.7));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.2;
  pointer-events: none;
}

.icon-card:hover {
  --tilt-lift: -6px;
  box-shadow: 0 24px 48px rgba(19, 22, 46, 0.2);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(57, 165, 254, 0.22), rgba(124, 250, 228, 0.22));
  color: var(--brand-violet);
  margin-bottom: 14px;
}

.icon {
  width: 24px;
  height: 24px;
}

.icon-wrap.emoji {
  background: linear-gradient(135deg, rgba(124, 250, 228, 0.35), rgba(88, 36, 238, 0.2));
}

.emoji-icon {
  font-size: 24px;
  line-height: 1;
}

.stats {
  padding-top: 60px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: left;
}

.metric-card:hover {
  --tilt-lift: -4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-violet);
  margin-bottom: 6px;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(0, 140px) 1fr;
  grid-template-areas:
    "media body"
    "quote quote"
    "projects projects";
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
}

.founder-card:hover {
  --tilt-lift: -4px;
  box-shadow: 0 28px 55px rgba(19, 22, 46, 0.22);
}

.founder-media {
  grid-area: media;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(140deg, var(--brand-blue), var(--brand-violet));
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  background: #ffffff;
  transition: transform 0.3s ease;
  transform: translateY(var(--avatar-shift, 0));
}

.avatar[data-avatar="feuerbach"] {
  object-position: center 18%;
  --avatar-shift: -5px;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(57, 165, 254, 0.7), rgba(124, 250, 228, 0.3), rgba(88, 36, 238, 0.8), rgba(57, 165, 254, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.founder-card:hover .avatar-wrap {
  transform: translateZ(10px) scale(1.04);
}

.founder-card:hover .avatar {
  transform: translateY(var(--avatar-shift, 0)) scale(1.05);
}

.founder-card:hover .avatar-wrap::after {
  opacity: 1;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes pop {
  0% {
    transform: scale(0.98);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.founder-badge {
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(57, 165, 254, 0.16);
  color: var(--text-secondary);
}

.founder-body h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.founder-body {
  grid-area: body;
}

.founder-role {
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.founder-quote {
  grid-area: quote;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border-left: 4px solid var(--brand-blue);
  background: rgba(88, 36, 238, 0.08);
  font-style: italic;
}

.founder-socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 6px;
}


.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

html[data-theme="dark"] .social-link {
  color: rgba(255, 255, 255, 0.7);
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link[data-social="tg"]:hover { color: #2aabee; }
.social-link[data-social="vk"]:hover { color: #0077ff; }
.social-link[data-social="yt"]:hover { color: #ff0033; }
.social-link[data-social="wa"]:hover { color: #25d366; }

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.projects {
  grid-area: projects;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  align-items: center;
}


.project-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

html[data-theme="dark"] .project-item {
  background: rgba(10, 10, 20, 0.6);
}

.project-logo {
  width: 140px;
  height: 86px;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.project-logo img.logo-realhomeschooling {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo.project-logo--wide {
  padding: 0;
}

.project-logo img.logo-khda {
  width: 55%;
  height: 55%;
}

.project-item:hover .project-logo {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(19, 22, 46, 0.18);
}

.project-item:hover .project-logo img {
  transform: scale(1.05);
}

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-violet));
}



@media (max-width: 700px) {
  .project-logo {
    width: 120px;
    height: 76px;
  }
}

.project-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface-solid);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  width: 220px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 10;
  display: block;
}

.project-tooltip-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.project-tooltip-text {
  color: var(--text-secondary);
}

.project-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: var(--surface-solid) transparent transparent transparent;
}

.project-tooltip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
  background: transparent;
}

.project-item:hover .project-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.project-item:focus .project-tooltip,
.project-item:focus-within .project-tooltip,
.project-item:active .project-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.project-item:hover {
  z-index: 2;
}

.project-item.is-open .project-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.partners-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 140, 200, 0.15);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

html[data-theme="dark"] .partners-marquee {
  background: rgba(16, 16, 30, 0.6);
}

.partners-track {
  display: flex;
  gap: 20px;
  align-items: center;
  animation: partners-marquee 40s linear infinite;
  will-change: transform;
  width: max-content;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.partner-logo {
  width: 200px;
  height: 110px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 140, 200, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.partner-logo--dark {
  background: rgba(18, 18, 28, 0.9);
  border-color: rgba(18, 18, 28, 0.9);
}

.partner-logo img {
  width: auto;
  height: 80px;
  max-width: 180px;
  object-fit: contain;
  filter: saturate(0.9);
  opacity: 0.9;
  display: block;
}

.partner-logo.logo-large img {
  height: 100px;
  max-width: 200px;
}

.partner-logo.logo-xlarge img {
  height: 140px;
  max-width: 280px;
}

.partner-logo.logo-small img {
  height: 60px;
  max-width: 140px;
}

@keyframes partners-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.gift-float {
  position: fixed;
  right: -120px;
  bottom: 22px;
  width: 92px;
  height: 92px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.gift-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(30, 40, 80, 0.25));
}

.gift-float.is-visible {
  opacity: 1;
  transform: translateX(-140px);
}

.gift-float.is-shaking img {
  animation: gift-shake 0.6s ease-in-out infinite;
}

@keyframes gift-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-2px) rotate(-3deg); }
  50% { transform: translateX(2px) rotate(3deg); }
  75% { transform: translateX(-1px) rotate(-2deg); }
}

.person-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.person-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-violet));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
}

.person-card .quote {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--brand-blue);
  padding-left: 12px;
}

.tabs {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
}

.track-wrap {
  display: grid;
  gap: 16px;
}

.track-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.track-actions {
  display: flex;
  gap: 8px;
}

.scroll-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.track-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.track-scroll::-webkit-scrollbar {
  height: 6px;
}

.track-scroll::-webkit-scrollbar-thumb {
  background: rgba(88, 36, 238, 0.3);
  border-radius: 999px;
}

.track-card {
  scroll-snap-align: start;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.track-card.is-open {
  border-color: rgba(88, 36, 238, 0.45);
  box-shadow: 0 24px 50px rgba(19, 22, 46, 0.2);
}

.track-card:hover {
  --tilt-lift: -4px;
}

.track-card-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.track-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.track-card.is-open .track-details {
  max-height: 260px;
}

.track-list {
  padding-left: 18px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.track-toggle {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--brand-violet);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.tab-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-violet));
  color: #ffffff;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.accordion-group {
  display: grid;
  gap: 14px;
}

.accordion {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .accordion {
  background: rgba(10, 10, 20, 0.6);
}

.accordion summary {
  font-weight: 600;
  cursor: pointer;
}

.accordion p,
.accordion .list {
  color: var(--text-secondary);
}

.accordion .result {
  font-weight: 600;
  color: var(--text-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: linear-gradient(140deg, rgba(57, 165, 254, 0.18), rgba(124, 250, 228, 0.18));
  width: 100%;
}

.form .btn-primary {
  align-self: flex-end;
  width: auto;
  font-size: 1.05rem;
  padding: 14px 32px;
}


.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  min-height: 48px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--surface-solid);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

select[multiple] {
  background-image: none;
  padding-right: 14px;
  min-height: 160px;
}

.select-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

select:focus {
  outline: none;
  border-color: rgba(88, 36, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(88, 36, 238, 0.12);
}

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

.hidden {
  display: none;
}

.consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: rgba(18, 22, 40, 0.9);
  color-scheme: dark;
}

.phone-field {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0;
  min-width: 0;
}

.phone-field > * {
  min-width: 0;
}

.phone-combo {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.phone-combo input {
  background: transparent;
  border-radius: 0 12px 12px 0;
  border: none !important;
  box-shadow: none !important;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 6px;
  background: transparent;
}

.phone-prefix {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.phone-input-wrap input {
  padding-left: 0;
  background: transparent !important;
  padding-right: 6px;
}

.phone-combo input {
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: 46px;
  width: 100%;
}

.phone-code-select {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  border-radius: 12px 0 0 12px;
}

.phone-code-btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
}

.phone-code-btn .flag {
  font-size: 1rem;
}

.phone-code-btn .code {
  display: none;
}

.phone-code-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  background: rgba(20, 24, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 6px;
  width: 150px;
  max-height: 260px;
  overflow: auto;
  display: none;
  box-shadow: 0 16px 30px rgba(10, 14, 32, 0.35);
}

.phone-code-select.is-open .phone-code-dropdown {
  display: grid;
  gap: 2px;
}

.phone-code-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.phone-code-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.phone-combo select:focus {
  max-height: 220px;
}

.phone-combo input {
  padding-left: 12px;
}

@media (max-width: 700px) {
  .phone-field {
    grid-template-columns: 48px 1fr;
  }
  .phone-code-dropdown {
    width: 180px;
  }
}


.form-status {
  min-height: 20px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.form-status.is-success {
  animation: pop 0.6s ease;
}

.form-status.is-error {
  animation: shake 0.4s ease;
}

.contact-card .contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-card {
  padding: 32px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--text-primary);
  text-decoration: none;
}

.cta-mini {
  margin-top: 20px;
  padding: 16px;
  background: rgba(57, 165, 254, 0.12);
  border-radius: 16px;
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(88,36,238,0.06), rgba(57,165,254,0.06));
}

html[data-theme="dark"] .footer {
  background: linear-gradient(135deg, rgba(20,20,40,0.7), rgba(10,10,18,0.7));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  height: 40px;
  width: var(--logo-width);
  display: block;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-up--mobile {
  display: none;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  text-align: right;
}

.footer-left {
  display: grid;
  gap: 10px;
}

.reveal {
  opacity: 1;
  transform: translateY(16px);
  transition: transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .list-columns {
    columns: 1;
  }

  .founder-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body"
      "quote"
      "projects";
  }

  .founder-media {
    align-items: flex-start;
  }

  .result-path {
    grid-template-columns: 1fr;
  }

  .path-steps {
    height: auto;
    display: grid;
    gap: 16px;
    overflow-x: hidden;
  }

  .path-step {
    position: relative;
    left: 0 !important;
    top: auto;
    transform: none !important;
    text-align: left;
    padding: 6px 0 0 24px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    touch-action: manipulation;
    overflow: visible;
  }

  .path-step::before {
    left: 0;
    top: 10px;
    transform: none;
  }

  .step-detail {
    position: relative;
    left: 0;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    padding-right: 4px;
    display: block;
  }

  .path-line {
    display: none;
  }

  .about-shell {
    grid-template-columns: 1fr;
  }

  .cloud-field {
    max-width: 100%;
    min-height: 420px;
  }

  .cloud-card {
    padding: 10px;
    font-size: 0.78rem;
    --scale: 0.95;
  }

  .cloud-xs { --size: 95px; }
  .cloud-sm { --size: 110px; }
  .cloud-md { --size: 125px; }
  .cloud-lg { --size: 145px; }
  .cloud-xl { --size: 165px; }

}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 80px;
  }

  .hero h1 {
    line-height: 1.06;
  }

  .hero-orbs {
    transform: translate(-20px, 300px);
  }

  .hero-orb::before {
    opacity: 0.65;
  }

  .orb-ru {
    width: 190px;
    height: 190px;
    right: 38%;
    top: 28%;
  }

  .orb-uae {
    width: 160px;
    height: 160px;
    right: 58%;
    top: 44%;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-card {
    background: rgba(255, 255, 255, 0.85);
    max-width: 300px;
  }

  html[data-theme="dark"] .hero-card {
    background: rgba(20, 20, 40, 0.8);
  }

  .footer {
    position: relative;
    padding-bottom: 72px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-col,
  .footer-center,
  .footer-right {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-docs {
    align-items: center;
    text-align: center;
    justify-items: center;
    width: 100%;
    margin-bottom: 0;
  }

  .footer-docs a {
    text-align: center;
    width: 100%;
  }

  .footer-brand {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .footer-up--mobile {
    display: none;
  }

  .footer-right {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "docs docs"
      "line line"
      "copyright up";
    gap: 14px 16px;
    align-items: center;
    text-align: center;
  }

  .footer-center {
    order: 2;
  }

  .footer-col {
    order: 1;
  }

  .footer-docs {
    grid-area: docs;
  }

  .footer-right .footer-up {
    grid-area: up;
    justify-self: end;
  }

  .footer-divider {
    grid-area: line;
    height: 1px;
    width: 100%;
    background: rgba(120, 140, 200, 0.35);
  }

  .footer-right span {
    grid-area: copyright;
    justify-self: start;
  }

  .cloud-card h4 {
    font-size: 0.72rem;
  }

  .founder-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body"
      "quote"
      "projects";
  }

  .founder-media {
    align-items: center;
  }

  .founder-body {
    text-align: center;
  }

  .founder-media .founder-socials {
    display: flex;
  }

  .path-steps {
    position: relative;
    overflow: visible;
    display: block;
  }

  .path-steps::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    border-left: 2px dashed rgba(80, 110, 160, 0.4);
  }

  .path-step {
    pointer-events: none;
    overflow: visible;
  }

  .path-step::before {
    left: 6px;
    top: 12px;
    transform: none;
  }

  .step-detail {
    display: block !important;
    opacity: 1 !important;
    margin-left: 0;
    position: static;
    transform: none !important;
    left: 0;
  }

  .path-step:hover,
  .path-step:active {
    transform: none !important;
    left: 0 !important;
  }

  .step-index {
    display: inline-block;
    margin-right: 8px;
  }

  .path-step h3 {
    display: inline-block;
    margin: 0;
  }

  .step-detail p {
    margin-bottom: 6px;
  }

  .cloud-field {
    min-height: 560px;
    padding: 0 14px;
  }

  .cloud-card {
    font-size: 0.64rem;
    line-height: 1.1;
    padding: 6px;
    --scale: 0.75;
  }

  .cloud-xs { --size: 60px; }
  .cloud-sm { --size: 72px; }
  .cloud-md { --size: 86px; }
  .cloud-lg { --size: 102px; }
  .cloud-xl { --size: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .orb,
  .partners-track {
    transition: none;
    animation: none;
  }
}


.policy-content h2 {
  margin-top: 24px;
}

.policy-content ul {
  padding-left: 18px;
}

.form-consent {
  margin: 14px 0 6px;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.consent-check input {
  margin-top: 3px;
}


.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  z-index: 120;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-actions a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.form-consent {
  margin: 14px 0 6px;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.consent-check input {
  margin-top: 3px;
}

.footer-requisites {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: grid;
  gap: 4px;
  font-weight: 500;
}

.footer-requisites a {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-text,
.footer-list,
.footer-list a,
.footer-docs a,
.footer-right span,
.footer-requisites strong {
  font-weight: 500;
}

.footer-up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-up.footer-up--mobile {
  display: none;
}

.footer-up::before {
  content: "↑";
  font-size: 1rem;
  color: var(--primary);
}

.footer-up:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

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


.footer-docs {
  display: grid;
  gap: 8px;
}

.footer-docs a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
}


.form-card {
  padding: 34px;
  background: linear-gradient(135deg, rgba(28, 36, 66, 0.92), rgba(18, 24, 50, 0.92));
  border: 1px solid rgba(88, 36, 238, 0.28);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(10, 14, 32, 0.35);
  color: #f5f7ff;
  width: min(66%, 980px);
  margin: 0 auto;
  color-scheme: dark;
}

.form-card label span {
  color: rgba(245, 247, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.95rem;
  min-height: 46px;
}

.form-card input[type="number"] {
  color-scheme: dark;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: rgba(245, 247, 255, 0.55);
}

.form-card .consent {
  color: rgba(245, 247, 255, 0.78);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-card .consent a {
  color: #ffffff;
}

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

.form-grid label {
  min-width: 0;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-card {
    width: min(90%, 980px);
  }
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    width: 100%;
  }
}

.consent a {
  color: var(--text-primary);
  text-decoration: underline;
}


.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.footer-center .footer-list {
  justify-items: center;
  text-align: center;
}

.footer-list {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
}

.footer-list a {
  text-decoration: none;
  color: var(--text-primary);
}

.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.footer-right {
  align-items: flex-end;
  text-align: right;
}

.footer-right .footer-docs {
  margin-top: auto;
  align-self: flex-end;
}

.footer-right span {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "docs docs"
      "line line"
      "copyright up";
    gap: 10px 16px;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-right .footer-docs {
    grid-area: docs;
    justify-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
  }

  .footer-divider {
    grid-area: line;
    height: 1px;
    width: 100%;
    background: rgba(120, 140, 200, 0.5);
  }

  .footer-right span {
    grid-area: copyright;
    justify-self: start;
    margin: 0;
  }

  .footer-right .footer-up {
    grid-area: up;
    justify-self: end;
  }
}
