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

:root {
  --pink: #F6A3E8;
  --purple: #C78BFF;
  --blue: #4DD7FF;
  --yellow: #FFD84D;
  --green: #7ED957;
  --white: #FFFFFF;
  --bg-main: #FFF8FF;
  --bg-alt: #F0F4FF;
  --bg-dark: #2D1B69;
  --bg-mid: #3D2A7A;
  --text-body: #4A3B6B;
  --text-light: #7A6B9A;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-card: 0 8px 32px rgba(199, 139, 255, 0.18);
  --shadow-btn: 0 6px 24px rgba(77, 215, 255, 0.35);
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; }
html.hide .preloader { display: none; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-main);
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

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

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

/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader img { width: 80px; height: 80px; }

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled,
.legal .header {
  background: rgba(45, 27, 105, 0.97);
  box-shadow: 0 4px 24px rgba(45, 27, 105, 0.25);
  backdrop-filter: blur(12px);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo img {
  height: 44px;
  width: auto;
}
.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.header__logo-text span {
  color: var(--yellow);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 50px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.header__cta {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--yellow), #FFB347);
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,216,77,0.4);
  white-space: nowrap;
}
.header__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,216,77,0.5); }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.act span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(45, 27, 105, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.3s;
}
#mobile-menu.opened {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu .nav-link {
  font-size: 1.4rem;
  padding: 12px 32px;
}
#mobile-menu .header__cta {
  margin-top: 12px;
  font-size: 1.1rem;
  padding: 14px 32px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #2D1B69 0%, #3D2A7A 50%, #1A0E3F 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg-shapes::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(199,139,255,0.2) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.hero__bg-shapes::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(77,215,255,0.15) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  border-radius: 50%;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}
.hero__content {}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__title .accent-pink { color: var(--pink); }
.hero__title .accent-blue { color: var(--blue); }
.hero__title .accent-yellow { color: var(--yellow); }
.hero__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.hero__btn {
  animation: btn-pulse 2s ease-in-out infinite;
}
.hero__btn:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(77,215,255,0.45);
}
@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.hero__btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__image::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(199,139,255,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__image img {
  position: relative;
  z-index: 1;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(77,215,255,0.3));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero__sparkle {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  animation: sparkle 2.5s ease-in-out infinite;
}
.hero__sparkle:nth-child(2) { top: 15%; right: 10%; animation-delay: 0.5s; background: var(--pink); }
.hero__sparkle:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 1s; background: var(--blue); width: 8px; height: 8px; }
.hero__sparkle:nth-child(4) { top: 60%; right: 5%; animation-delay: 1.5s; background: var(--green); width: 10px; height: 10px; }
@keyframes sparkle {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* SECTION BASE */
.section { padding: 96px 0; }
.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section__title .accent { color: var(--purple); }
.section__text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 560px;
}

/* ABOUT (Block 2) */
.about {
  background: var(--bg-alt);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.about__image {
  position: relative;
}
.about__image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(199,139,255,0.15), rgba(77,215,255,0.1));
  border-radius: var(--radius-xl);
  z-index: 0;
}
.about__image img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-card);
}
.about__content {}
.about__text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}
.about__text p:last-child { margin-bottom: 0; }

/* HOW IT WORKS (Block 3) */
.how {
  background: var(--bg-main);
}
.how__header { text-align: center; margin-bottom: 56px; }
.how__header .section__text { max-width: 100%; margin: 0 auto; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.how__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.how__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.how__card:nth-child(1)::before { background: linear-gradient(90deg, var(--pink), var(--purple)); }
.how__card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), var(--green)); }
.how__card:nth-child(3)::before { background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.how__card:hover { transform: translateY(-6px); border-color: rgba(199,139,255,0.3); }
.how__num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.how__icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(199,139,255,0.15), rgba(77,215,255,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how__icon img { width: 44px; height: 44px; object-fit: contain; }
.how__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 12px;
}
.how__card-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-light);
}

/* BENEFITS (Block 4) */
.benefits {
  background: linear-gradient(160deg, #2D1B69 0%, #3D2A7A 100%);
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(77,215,255,0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.benefits__content .section__title { color: var(--white); }
.benefits__content .section__title .accent { color: var(--yellow); }
.benefits__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.benefits__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefits__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.benefits__list li::before {
  content: '✦';
  font-size: 0.9rem;
  color: var(--yellow);
  flex-shrink: 0;
}
.benefits__note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.benefits__image { position: relative; }
.benefits__image img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* SAFE (Block 5) */
.safe {
  background: var(--bg-alt);
}
.safe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.safe__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.safe__card:hover { transform: translateY(-6px); }
.safe__icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(246,163,232,0.2), rgba(199,139,255,0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.safe__icon img { width: 48px; height: 48px; object-fit: contain; }
.safe__card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 10px;
}
.safe__card-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
}
.safe__header { max-width: 700px; margin: 0 auto; text-align: center; }
.safe__header .section__text { margin: 0 auto; }

/* WHY (Block 6) */
.why {
  background: var(--bg-main);
}
.why__single {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.why__single .section__text {
  margin: 0 auto;
}
.why__list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}
.why__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.5;
}
.why__bullet {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why__bullet img { width: 32px; height: 32px; object-fit: contain; }

/* CTA FINAL */
.cta-final {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
.cta-final__inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-final__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-final__text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.cta-final__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--yellow), #FFB347);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 18px 44px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(255,216,77,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.cta-final__btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,216,77,0.55); }

/* FOOTER */
.footer {
  background: #1A0E3F;
  padding: 40px 0;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo span { color: var(--yellow); }
.footer__copy {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--blue); }

/* COOKIES */
.cookies-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(45, 27, 105, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(199,139,255,0.25);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookies-banner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  flex: 1;
}
.cookies-banner a { color: var(--blue); text-decoration: underline; }
.cookies-btns { display: flex; gap: 12px; flex-shrink: 0; }
.cookies-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.cookies-btn:hover { transform: translateY(-2px); }
.cookies-btn--accept {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: var(--white);
}
.cookies-btn--decline {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* LEGAL */
.legal-page {
  padding: 140px 0 80px;
  min-height: 70vh;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 32px;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 32px 0 12px;
}
.legal-content p, .legal-content li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 12px;
}
.legal-content ul { padding-left: 24px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero__inner { gap: 32px; }
  .about__grid, .benefits__grid, .why__grid { gap: 40px; }
  .how__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header__nav, .header__cta { display: none; }
  .burger-btn { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  .hero__content { order: 2; }
  .hero__image { order: 1; }
  .hero__text { margin: 0 auto 32px; }

  .about__grid, .benefits__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .benefits__image { order: -1; }

  .how__grid { grid-template-columns: 1fr; }
  .safe__grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .how__grid { grid-template-columns: 1fr; }
  .safe__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
  .cookies-banner { flex-direction: column; align-items: flex-start; }
}
