:root {
  --brand: #ff2d55;
  --bg: #000;
  --text: #f2f3f7;
  --muted: #a5a8b6;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font: 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.t {
  display: inline;
}

body.lang-en .t-ru {
  display: none;
}

body.lang-ru .t-en {
  display: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(160%) blur(10px);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

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

.brand img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(255, 45, 85, 0.25));
}

.brand b {
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  color: var(--muted);
}

.menu a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  color: #fff;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ff6a8b, var(--brand));
  color: #fff;
}

.btn.lg {
  padding: 16px 26px;
  font-size: 1.06rem;
}

.btn.disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  color: #fff;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-toggle button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.lang-toggle button.active,
.lang-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.hero {
  position: relative;
  padding: 92px 0 40px;
  overflow: hidden;
  background: transparent;
}

.hero .grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.lead {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--muted);
  margin: 0 0 26px;
}

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

.hint {
  font-size: 12px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.stat b {
  font-size: clamp(28px, 4.8vw, 44px);
  display: block;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.stat:hover {
  transform: translateY(-2px) scale(1.03);
}

.stat:active {
  transform: scale(0.99);
}

.scene {
  perspective: 1200px;
}

.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 26px;
  height: min(520px, 70vh);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(255, 45, 85, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(600px 280px at var(--mx, 70%) -10%, rgba(255, 255, 255, 0.25), transparent 60%);
}

.tilt-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(50px);
}

.tilt-inner img {
  width: min(78%, 520px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(255, 45, 85, 0.35));
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px) saturate(120%);
  opacity: 0.6;
  transform: translateZ(0);
  pointer-events: none;
}

.orb.o1 {
  width: 380px;
  height: 380px;
  left: -120px;
  top: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 45, 85, 0.7), transparent 60%);
}

.orb.o2 {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(98, 0, 234, 0.55), transparent 60%);
}

.orb.o3 {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 196, 255, 0.45), transparent 60%);
}

section {
  padding: 80px 0;
  background: transparent;
}

.section-title {
  font-size: 32px;
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

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

.card h3 {
  margin: 6px 0 8px;
}

.card > .btn,
.card > .more-btn,
.card > a.btn,
.card > button.btn {
  margin-top: auto;
}

#services .btn {
  font-size: 1rem;
  padding: 12px 20px;
}

.more-content {
  margin-top: 12px;
}

.bullets {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.15);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.step b {
  display: block;
  margin-bottom: 6px;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}

details + details {
  margin-top: 10px;
}

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

footer {
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.lang-only {
  display: none;
}

.hamburger {
  display: none;
}

#mobileMenu[hidden] {
  display: none !important;
}

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

  .hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 32px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .lang-only {
    display: flex;
    gap: 8px;
  }

  .lang-only button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 10px;
  }

  header .nav {
    gap: 10px;
  }

  .mobile-menu {
    position: fixed;
    inset: 64px 0 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 10px;
    z-index: 40;
  }

  .mobile-menu .mm-link {
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
  }

  .mobile-menu .mm-cta {
    margin-top: 8px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  #mobileMenu {
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.menu-open header {
    background: #000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #mobileMenu .mm-link {
    background: #0f0f12 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #edeff4 !important;
    font-weight: 600;
  }

  #mobileMenu .mm-link + .mm-link {
    margin-top: 8px;
  }

  #mobileMenu .mm-link:hover {
    background: #14151a !important;
  }

  #mobileMenu .mm-link:active {
    background: #0c0d10 !important;
  }

  #mobileMenu .mm-cta {
    box-shadow: 0 10px 28px rgba(255, 45, 85, 0.35);
  }
}
