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

:root {
  --bg: #04110b;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #00c26e;
  --primary-dark: #01894f;
  --accent: #1ee29a;
  --text: #e9f7ef;
  --muted: #9fd0b7;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(30, 226, 154, .1), transparent 25%), radial-gradient(circle at 80% 0%, rgba(0, 194, 110, .16), transparent 30%), var(--bg);
  color: var(--text);
  opacity: 1;
  transition: opacity .45s ease, filter .45s ease;
}

/* Плавный уход/появление страниц */
body.fade-out {
  opacity: 0;
  filter: blur(6px);
}

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  transition: transform .2s ease, box-shadow .3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 194, 110, .35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(30, 226, 154, .2);
}

.tag {
  color: var(--accent);
  letter-spacing: .08em;
}

.section-title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30, 226, 154, .08);
  color: var(--accent);
  border: 1px solid rgba(30, 226, 154, .25);
  font-weight: 600;
}

.neon-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

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

.hero-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, rgba(30, 226, 154, .18), transparent 35%), radial-gradient(circle at 80% 10%, rgba(0, 194, 110, .22), transparent 40%);
  filter: blur(30px);
  opacity: .8;
  z-index: 0;
}

.card-hover {
  transition: border-color .2s ease, transform .2s ease, box-shadow .3s ease;
}

.card-hover:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
}

.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 226, 154, .6), transparent);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  text-align: left;
}

/* Active state for language buttons */
.lang-btn.active {
  color: #1ee29a;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-trigger {
  min-width: 86px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger[aria-expanded="true"] {
  border-color: rgba(30, 226, 154, 0.45);
  background: rgba(30, 226, 154, 0.12);
  color: #fff;
}

.mobile-menu-panel {
  position: fixed;
  top: 74px;
  left: 16px;
  right: 16px;
  z-index: 40;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 17, 11, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: mobileMenuIn .18s ease-out;
}

.mobile-menu-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 30px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 17, 11, 0.94);
  transform: rotate(45deg);
}

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

.mobile-menu-item {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.mobile-menu-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(30, 226, 154, 0.12);
  color: var(--accent);
}

.mobile-menu-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.mobile-menu-item:hover,
.mobile-menu-contact:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 226, 154, 0.42);
  background: rgba(30, 226, 154, 0.1);
  color: #fff;
}

.mobile-menu-contact {
  margin-top: 10px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  border: 1px solid rgba(30, 226, 154, 0.28);
  background: linear-gradient(135deg, rgba(30, 226, 154, 0.16), rgba(0, 194, 110, 0.08));
  color: #e9fff4;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mobile-menu-contact svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--accent);
}

.mobile-menu-bottom {
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-socials,
.mobile-lang-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.mobile-socials a:hover {
  color: #fff;
  border-color: rgba(30, 226, 154, 0.35);
}

.mobile-lang-group {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.mobile-lang-group .lang-btn {
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 420px) {
  .mobile-menu-trigger {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }

  .mobile-menu-trigger span {
    display: none;
  }

  .mobile-menu-panel {
    left: 10px;
    right: 10px;
    padding: 12px;
  }

  .mobile-menu-item {
    min-height: 76px;
    padding: 12px;
    font-size: 13px;
  }
}

/* Intro overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(30, 226, 154, .08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(0, 194, 110, .12), transparent 40%),
              rgba(4, 17, 11, 0.35);
  backdrop-filter: blur(1px);
}

.intro-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#particles {
  width: 100vw;
  height: 100vh;
}

#webgl-container {
  opacity: 0.9;
}

.intro-card {
  max-width: 520px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(30, 226, 154, .35), transparent 35%, rgba(0, 194, 110, .35));
  opacity: .35;
  filter: blur(18px);
  z-index: -1;
}

.intro-overlay.leaving {
  animation: overlayExit .8s ease forwards;
  pointer-events: none;
}

@keyframes overlayExit {
  0% { opacity: 1; transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.06); }
}

.site-content {
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}

.site-hidden {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(12px);
  pointer-events: none;
}

/* Footer прижат к низу экрана */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper main {
  flex: 1;
}

/* Кнопка "Вернуться назад" на info страницах */
.info-back-btn {
  margin-bottom: 24px;
  display: inline-block;
}
