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

:root {
  --bg-deep: #060C24;
  --bg: #0B1235;
  --bg-2: #101A4A;
  --bg-3: #16225C;
  --card: rgba(255, 255, 255, .045);
  --card-brd: rgba(120, 165, 255, .16);
  --cyan: #3DBCF5;
  --violet: #8B5CF6;
  --pink: #F0559B;
  --orange: #FF7A2F;
  --gold: #FFC531;
  --text: #EAF0FF;
  --muted: #98A7D6;
  --grad: linear-gradient(120deg, #3DBCF5 0%, #8B5CF6 55%, #F0559B 100%);
  --grad-cta: linear-gradient(120deg, #FF7A2F 0%, #FFC531 100%);
  --head: 'Fredoka', sans-serif;
  --body: 'Nunito', sans-serif;
  --header-h: 84px;
  --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader img { width: 80px; height: 80px; }

html.hide .preloader { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .2px;
  color: #2A1400;
  background: var(--grad-cta);
  padding: 15px 34px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(255, 140, 47, .32);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 16px 38px rgba(255, 160, 60, .44);
}

.btn--sm { padding: 11px 26px; font-size: 15px; }

.btn--hero {
  padding: 18px 42px;
  font-size: 19px;
  animation: levitate 3s ease-in-out infinite;
}

.btn--hero:hover { animation-play-state: paused; }

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

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(-3deg); }
}

@keyframes drift-alt {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50%      { transform: translateY(-16px) rotate(-2deg); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(61, 188, 245, .1);
  border: 1px solid rgba(61, 188, 245, .28);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -.5px;
}

.section-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}

.header.scrolled {
  height: 70px;
  background: rgba(8, 14, 42, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.logo__mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 6px 20px rgba(61, 188, 245, .3);
}

.logo__text {
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: .2px;
}

.logo__text em {
  display: block;
  font-style: normal;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--head);
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .28s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.burger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: var(--text);
  transition: transform .3s ease, opacity .25s ease;
}

.burger-btn.act span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  opacity: 0;
  pointer-events: none;
  background: rgba(6, 12, 36, .97);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity .3s ease;
}

.mobile-menu.opened { opacity: 1; pointer-events: auto; }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__nav .nav-link { font-size: 24px; color: var(--text); }

.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 110px;
  background:
    radial-gradient(900px 620px at 78% 18%, rgba(139, 92, 246, .28), transparent 62%),
    radial-gradient(760px 520px at 12% 76%, rgba(255, 122, 47, .16), transparent 60%),
    linear-gradient(180deg, rgba(6, 12, 36, .72) 0%, rgba(11, 18, 53, .92) 100%),
    url('../img/space-bg.webp') center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero__title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.hero__text {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.pill {
  font-family: var(--head);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .3px;
  color: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(6px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phone {
  width: 100%;
  max-width: 400px;
  animation: drift 6s ease-in-out infinite;
}

.hero__astronaut {
  position: absolute;
  left: -58px;
  bottom: -18px;
  width: 240px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .5));
  animation: drift-alt 5s ease-in-out infinite;
}

.hero__rocket {
  position: absolute;
  right: -28px;
  top: 3%;
  width: 142px;
  filter: drop-shadow(0 14px 28px rgba(240, 85, 155, .35));
  animation: drift 4.4s ease-in-out infinite;
}

.about {
  position: relative;
  padding: 110px 0;
  background: var(--bg);
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 480px at 18% 40%, rgba(61, 188, 245, .12), transparent 62%);
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.about__visual { display: flex; justify-content: center; }

.about__visual img {
  width: 100%;
  max-width: 340px;
  animation: drift 7s ease-in-out infinite;
}

.about__content p {
  color: var(--muted);
  margin-top: 18px;
}

.about__content .section-title { margin-bottom: 6px; }

.how {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, .45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .4);
}

.step__media { position: relative; margin-bottom: 24px; }

.step__media img { width: 100%; max-width: 260px; margin: 0 auto; }

.step__num {
  position: absolute;
  top: -6px;
  left: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .75;
}

.step__text { color: var(--muted); font-size: 16px; }

.features {
  position: relative;
  padding: 110px 0;
  background: var(--bg);
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 460px at 85% 20%, rgba(240, 85, 155, .12), transparent 62%),
    radial-gradient(680px 460px at 10% 85%, rgba(61, 188, 245, .1), transparent 62%);
  pointer-events: none;
}

.features .container { position: relative; z-index: 2; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 34px 30px 36px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.feature:hover {
  transform: translateY(-8px);
  border-color: rgba(61, 188, 245, .4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .42);
}

.feature:hover::before { transform: scaleX(1); }

.feature__icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--cyan);
  background: rgba(61, 188, 245, .12);
  border: 1px solid rgba(61, 188, 245, .3);
}

.feature:nth-child(2) .feature__icon,
.feature:nth-child(5) .feature__icon {
  color: var(--pink);
  background: rgba(240, 85, 155, .12);
  border-color: rgba(240, 85, 155, .3);
}

.feature:nth-child(3) .feature__icon,
.feature:nth-child(6) .feature__icon {
  color: var(--gold);
  background: rgba(255, 197, 49, .12);
  border-color: rgba(255, 197, 49, .3);
}

.feature__icon svg { width: 30px; height: 30px; }

.feature__title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.feature__text { color: var(--muted); font-size: 16px; }

.contact {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
}

.contact__inner {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-title { margin-bottom: 26px; }

.contact__text { color: var(--muted); margin-bottom: 14px; }

.contact__mail {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px);
  padding: 16px 42px;
  margin: 12px 0 26px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(61, 188, 245, .38);
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.contact__mail:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 85, 155, .6);
  box-shadow: 0 14px 40px rgba(139, 92, 246, .3);
}

.footer {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  padding: 104px 0 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 14, 42, .3) 0%, rgba(8, 13, 38, .16) 55%, rgba(8, 13, 38, .34) 100%),
    url('../img/mars-bg.webp') center center / cover no-repeat;
}

.footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 10, 32, .82) 0%,
    rgba(5, 10, 32, .46) 52%,
    rgba(5, 10, 32, 0) 100%);
}

.footer__inner,
.footer__bottom { position: relative; z-index: 2; }

.footer__brand .logo__text,
.footer__tagline,
.footer__links a,
.footer__bottom p { text-shadow: 0 2px 12px rgba(4, 8, 26, .9), 0 1px 3px rgba(4, 8, 26, .95); }

.footer__brand .logo__text em { text-shadow: none; }

.footer__tagline,
.footer__links a,
.footer__bottom p { color: #DCE4FB; }

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
}

.footer__brand { max-width: 470px; }

.footer__tagline {
  font-size: 16px;
  margin-top: 12px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer__links a {
  font-family: var(--head);
  font-weight: 500;
  color: var(--muted);
  transition: color .25s ease;
}

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

.footer__bottom {
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}

.footer__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  border-top: 1px solid rgba(190, 215, 255, .2);
  background: linear-gradient(180deg, rgba(4, 8, 26, .58), rgba(4, 8, 26, .86));
  backdrop-filter: blur(3px);
}

.footer__bottom p { font-size: 15px; }

.legal-page {
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(800px 520px at 80% 0%, rgba(139, 92, 246, .18), transparent 62%),
    var(--bg);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 54px 56px;
  overflow-wrap: break-word;
}

.legal-content h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.15;
  margin-bottom: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
  color: var(--text);
  margin: 38px 0 14px;
}

.legal-content p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol { margin: 0 0 16px 22px; }

.legal-content li {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content strong { color: var(--text); }

.legal-content a {
  color: var(--cyan);
  word-break: break-word;
  transition: color .25s ease;
}

.legal-content a:hover { color: var(--pink); }

.legal-content .date,
.legal-content .name,
.legal-content .domain { color: var(--text); }

@media (max-width: 1024px) {
  .nav { gap: 22px; }
  .nav-link { font-size: 15px; }
  .hero { padding: calc(var(--header-h) + 50px) 0 90px; }
  .hero__inner { gap: 30px; }
  .hero__astronaut { width: 190px; left: -30px; }
  .hero__rocket { width: 112px; }
  .about__inner { gap: 44px; }
  .how__grid { gap: 22px; }
  .step { padding: 26px 20px 28px; }
  .step__num { font-size: 44px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .legal-content { padding: 44px 38px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header .btn--sm { display: none; }
  .burger-btn { display: flex; margin-left: auto; }
  .about, .how, .features, .contact { padding: 80px 0; }
  .section-head { margin-bottom: 46px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .pills { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 26px; }
  .hero__phone { max-width: 300px; }
  .hero__astronaut { width: 152px; left: -8px; bottom: -6px; }
  .hero__rocket { width: 94px; right: 8px; top: 2%; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .about__visual img { max-width: 280px; }
  .how__grid { grid-template-columns: 1fr; gap: 26px; max-width: 460px; margin: 0 auto; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer { padding-top: 76px; min-height: 464px; }
  .footer::before {
    height: 100%;
    background: linear-gradient(180deg,
      rgba(5, 10, 32, .88) 0%,
      rgba(5, 10, 32, .72) 52%,
      rgba(5, 10, 32, .62) 100%);
  }
  .footer__bottom { padding-top: 40px; padding-bottom: 40px; }
  .legal-page { padding: calc(var(--header-h) + 40px) 0 70px; }
  .legal-content { padding: 34px 26px; }
}

@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .logo__mark { width: 40px; height: 40px; border-radius: 11px; }
  .logo__text { font-size: 14px; }
  .logo__text em { font-size: 16px; }
  .btn { font-size: 16px; padding: 14px 28px; }
  .btn--hero { font-size: 17px; padding: 16px 32px; }
  .hero__lead { font-size: 18px; }
  .pill { font-size: 12.5px; padding: 7px 14px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { padding: 28px 24px 30px; }
  .feature__title { font-size: 19px; }
  .contact__mail { padding: 14px 20px; font-size: 19px; max-width: 100%; }
  .mobile-menu__nav .nav-link { font-size: 21px; }
  .legal-content { padding: 28px 20px; }
  .legal-content h2 { font-size: 20px; }
}
