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

:root {
  --bg: #17101f;
  --bg-alt: #1f1629;
  --bg-card: #271b34;
  --bg-deep: #120c19;
  --accent: #f5a65b;
  --accent-2: #e8734a;
  --violet: #a879e6;
  --mint: #5fd6c4;
  --text: #f3ecf7;
  --muted: #b4a5c6;
  --border: rgba(168, 121, 230, 0.18);
  --grad: linear-gradient(135deg, #f5a65b 0%, #e8734a 100%);
  --font-h: 'Fredoka', sans-serif;
  --font-b: 'Nunito', sans-serif;
  --radius: 22px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  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; }

h1, h2, h3 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: 58px; }
h2 { font-size: 42px; }
h3 { font-size: 24px; }

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

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

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

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

html.hide .preloader { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 17px;
  color: #26160c;
  background: var(--grad);
  border: 0;
  border-radius: 100px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 32px rgba(232, 115, 74, 0.28);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(232, 115, 74, 0.4); }

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

.btn--lg { padding: 18px 44px; font-size: 19px; margin-top: 34px; }

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

.btn--float { animation: float 3s ease-in-out infinite; }

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

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

.header.scrolled {
  background: rgba(18, 12, 25, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 16px;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}

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

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

.nav a:hover::after { width: 100%; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 34px;
  height: 26px;
  position: relative;
  cursor: pointer;
}

.burger-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 50%; margin-top: -1.5px; }
.burger-btn span:nth-child(3) { bottom: 0; }

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

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.mobile-nav a {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 500;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 110px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -180px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(168, 121, 230, 0.28) 0%, rgba(168, 121, 230, 0) 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 166, 91, 0.2) 0%, rgba(245, 166, 91, 0) 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 60px;
  align-items: center;
}

.hero__lead {
  font-size: 20px;
  color: var(--text);
  margin: 26px 0 16px;
}

.hero__content p:last-of-type { max-width: 560px; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 620px;
  align-items: center;
  transition: transform 0.55s ease;
}

.hero__visual:hover { transform: rotate(-2.5deg); }

.section {
  position: relative;
  padding: 110px 0;
}

.section--alt { background: var(--bg-alt); }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  align-items: center;
}

.split--reverse .split__visual { order: 2; }

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

.split__visual--duo { gap: 26px; }

.split__visual--duo .phone:first-child { transform: rotate(-5deg) translateY(14px); }
.split__visual--duo .phone:last-child { transform: rotate(5deg) translateY(-14px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.split__content h2 { margin-bottom: 22px; }

.split__content p + p { margin-top: 16px; }

.phone {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  aspect-ratio: 9 / 19;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(160deg, #4b3a5f 0%, #241a30 45%, #150e1d 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

.phone::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 24px;
  background: var(--bg-deep);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 150px;
  width: 3px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(180deg, #6b5580, #33253f);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg-deep);
}

.phone__screen img { width: 100%; height: 100%; object-fit: cover; }

.phone--main { z-index: 2; transform: rotate(-3deg); }

.phone--back {
  width: 236px;
  margin-left: -74px;
  transform: rotate(7deg) translateY(26px);
  opacity: 0.94;
  z-index: 1;
}

.phone--sm { width: 240px; }

.list-title {
  font-size: 22px;
  margin-bottom: 22px;
}

.list-title--inline { margin-top: 30px; margin-bottom: 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover { transform: translateY(-6px); border-color: rgba(245, 166, 91, 0.45); }

.card__num {
  display: block;
  font-family: var(--font-h);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.card p { color: var(--text); font-size: 16px; line-height: 1.55; }

.ticks { list-style: none; display: grid; gap: 12px; }

.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(95, 214, 196, 0.16);
  border: 1px solid rgba(95, 214, 196, 0.5);
}

.ticks li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}

.story { background: linear-gradient(180deg, var(--bg) 0%, #1c1327 60%, #241833 100%); }

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

.pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
}

.pill span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.pill strong { font-family: var(--font-h); font-weight: 500; font-size: 18px; }

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 70px 0 28px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr;
  gap: 50px;
}

.footer__brand p { margin-top: 18px; font-size: 16px; max-width: 380px; }

.footer__brand .logo { font-size: 18px; }

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 34px;
  align-content: start;
}

.footer__links a { color: var(--muted); transition: color 0.2s ease; }

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

.footer__contact span {
  display: block;
  font-family: var(--font-h);
  color: var(--text);
  margin-bottom: 10px;
}

.footer__contact a { color: var(--accent); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 34px;
  flex-wrap: wrap;
}

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

.footer__bottom-links { display: flex; gap: 28px; }

.footer__bottom-links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer__bottom-links a:hover { color: var(--accent); }

.legal-page {
  padding: calc(var(--header-h) + 70px) 0 100px;
}

.legal-page h1 { font-size: 46px; margin-bottom: 34px; }

.legal-content {
  max-width: 900px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 46px 50px;
}

.legal-content h2 {
  font-size: 26px;
  margin: 36px 0 14px;
  color: var(--accent);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 { font-size: 20px; margin: 26px 0 10px; }

.legal-content p { margin-bottom: 14px; font-size: 16px; }

.legal-content ul { margin: 0 0 18px 20px; }

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

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

.legal-content .name,
.legal-content .app-domain,
.legal-content .domain { color: var(--text); font-weight: 700; }

@media (max-width: 1024px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .nav { display: none; }
  .header__cta { display: none; }
  .burger-btn { display: block; margin-left: auto; }
  .hero { padding: calc(var(--header-h) + 60px) 0 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { min-height: auto; }
  .section { padding: 80px 0; }
  .split { grid-template-columns: 1fr; gap: 46px; }
  .split--reverse .split__visual { order: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 38px; }
  h2 { font-size: 29px; }
  .hero__lead { font-size: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 264px; }
  .phone--back { display: none; }
  .split__visual--duo { flex-wrap: wrap; }
  .split__visual--duo .phone { width: 210px; }
  .legal-content { padding: 30px 24px; }
  .legal-page h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .btn--lg { width: 100%; padding: 15px 32px; font-size: 17px; }
  .section { padding: 62px 0; }
  .cards { grid-template-columns: 1fr; }
  .pills { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  .split__visual--duo { gap: 14px; }
  .split__visual--duo .phone { width: 168px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { grid-template-columns: 1fr; justify-items: center; }
  .footer__contact { text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__bottom-links { justify-content: center; }
}
