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

:root {
  --cream: #FBF5E9;
  --cream-2: #F3EAD6;
  --paper: #FFFDF8;
  --leaf: #2F7D4A;
  --leaf-light: #4FA35F;
  --leaf-deep: #1F4D2F;
  --sprout: #A8D98A;
  --rose: #E24C7E;
  --rose-light: #F27AA0;
  --sun: #F6C54A;
  --pool: #2BB3B1;
  --ink: #23372A;
  --ink-soft: #5A6B5E;
  --line: rgba(47, 125, 74, .16);
  --grad-cta: linear-gradient(135deg, #F27AA0 0%, #E24C7E 55%, #F09B4B 100%);
  --grad-leaf: linear-gradient(135deg, #4FA35F 0%, #1F5C36 100%);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(31, 77, 47, .35);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

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

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

html.hide .preloader {
  display: none;
}

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

.header.scrolled {
  background: rgba(251, 245, 233, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -14px rgba(31, 77, 47, .4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-weight: 700;
  font-size: 16px;
  color: var(--leaf-deep);
  padding: 6px 0;
  transition: color .25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav-link:hover {
  color: var(--rose);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.btn.btn--nav {
  padding: 9px 20px;
  font-size: 14px;
  box-shadow: 0 8px 18px -8px rgba(226, 76, 126, .55);
}

.mobile-menu__cta {
  margin-top: 8px;
}

.burger-btn {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.burger-btn span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--leaf-deep);
  transition: transform .3s, opacity .3s, top .3s;
}

.burger-btn span:nth-child(1) { top: 13px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 29px; }

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

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(242, 122, 160, .25), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(168, 217, 138, .45), transparent 45%),
    var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

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

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

.mobile-menu__list .nav-link {
  font-family: var(--font-head);
  font-size: 30px;
}

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

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--leaf-deep);
  margin-bottom: 22px;
}

.section-title span {
  color: var(--rose);
  font-style: italic;
  font-weight: 700;
}

.section-text {
  color: var(--ink-soft);
}

.section-text + .section-text {
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  transition: box-shadow .3s, filter .3s;
}

.btn--primary {
  color: #fff;
  background: var(--grad-cta);
  box-shadow: 0 14px 30px -10px rgba(226, 76, 126, .6);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 36px -10px rgba(226, 76, 126, .75);
}

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

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

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

.phone {
  position: relative;
  aspect-ratio: 1242 / 2208;
  border-radius: 34px;
  padding: 10px;
  background: #1E2A22;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .08);
}

.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 34%;
  height: 16px;
  border-radius: 12px;
  background: #1E2A22;
  transform: translateX(-50%);
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 60px);
  background:
    linear-gradient(100deg, rgba(251, 245, 233, .97) 0%, rgba(251, 245, 233, .9) 45%, rgba(251, 245, 233, .35) 100%),
    url(../img/hero-bg.webp) center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
}

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

.hero__title {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  color: var(--leaf-deep);
  margin-bottom: 24px;
}

.hero__title span {
  display: block;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  color: var(--ink-soft);
  max-width: 620px;
}

.hero__lead {
  margin-top: 22px;
  font-weight: 700;
  color: var(--leaf-deep);
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.cta-row__note {
  font-weight: 800;
  color: var(--leaf);
}

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

.phone--hero {
  width: min(320px, 100%);
  transform: rotate(3deg);
}

.petal {
  position: absolute;
  border-radius: 60% 0 60% 0;
  z-index: 3;
}

.petal--1 {
  width: 54px;
  height: 54px;
  top: 8%;
  left: 2%;
  background: var(--grad-cta);
  transform: rotate(-20deg);
}

.petal--2 {
  width: 38px;
  height: 38px;
  bottom: 12%;
  right: 0;
  background: var(--grad-leaf);
  transform: rotate(35deg);
}

.petal--3 {
  width: 24px;
  height: 24px;
  bottom: 30%;
  left: 6%;
  background: var(--sun);
  border-radius: 50%;
}

.features {
  background: var(--cream);
}

.features__head {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
}

.features__body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}

.phone--tilt {
  width: 100%;
  transform: rotate(-3deg);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(31, 77, 47, .5);
  transition: transform .3s, box-shadow .3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px 16px 16px 4px;
  color: #fff;
  background: var(--grad-leaf);
}

.feature-card:nth-child(even) .feature-card__icon {
  background: var(--grad-cta);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card p {
  color: var(--ink-soft);
}

.features__quote {
  position: relative;
  max-width: 820px;
  margin: 70px auto 0;
  padding: 34px 40px 34px 90px;
  border-radius: var(--radius);
  background: var(--grad-leaf);
  color: #fff;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.45;
}

.features__quote::before {
  content: '\201C';
  position: absolute;
  left: 28px;
  top: 10px;
  font-size: 86px;
  line-height: 1;
  color: var(--sprout);
}

.gameplay {
  background:
    radial-gradient(circle at 10% 20%, rgba(168, 217, 138, .35), transparent 40%),
    var(--cream-2);
}

.gameplay__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.gameplay__visual {
  position: relative;
  height: 560px;
}

.gameplay__visual .phone {
  position: absolute;
  width: 250px;
}

.phone--back {
  left: 0;
  top: 0;
  transform: rotate(-6deg);
}

.phone--front {
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}

.gallery {
  background: var(--cream);
}

.gallery__head {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow);
  aspect-ratio: 1242 / 2208;
}

.gallery__item:nth-child(even) {
  transform: translateY(36px);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.support {
  padding-top: 150px;
  background: linear-gradient(180deg, var(--cream) 0%, #EAF3DC 100%);
}

.support__card {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 60px;
  text-align: center;
  border-radius: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.support__mail {
  font-weight: 800;
  color: var(--rose);
  border-bottom: 2px solid rgba(226, 76, 126, .3);
  word-break: break-all;
}

.support__mail:hover {
  border-bottom-color: var(--rose);
}

.footer {
  padding: 44px 0;
  background: var(--leaf-deep);
  color: #DCE9D6;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer .logo img {
  filter: brightness(0) invert(1);
  opacity: .92;
}

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

.footer__links a {
  font-weight: 700;
  transition: color .25s;
}

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

.footer__copy {
  font-size: 15px;
  opacity: .8;
}

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

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 56px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
}

.legal-content h1 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--leaf-deep);
  margin-bottom: 24px;
}

.legal-content h2,
.legal-content h3 {
  font-size: 21px;
  color: var(--leaf-deep);
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-content a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--leaf);
  text-decoration-color: transparent;
}

@media (max-width: 1024px) {
  .nav__list {
    gap: 22px;
  }

  .hero__inner {
    grid-template-columns: 1fr .8fr;
    gap: 40px;
  }

  .features__body {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .gameplay__inner {
    gap: 40px;
  }

  .gameplay__visual .phone {
    width: 210px;
  }

  .gameplay__visual {
    height: 480px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    display: none;
  }

  .btn--nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .logo img {
    height: 40px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 110px;
    background:
      linear-gradient(180deg, rgba(251, 245, 233, .95) 0%, rgba(251, 245, 233, .88) 100%),
      url(../img/hero-bg.webp) center / cover no-repeat;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    margin: 0 auto;
  }

  .cta-row {
    justify-content: center;
  }

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

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

  .phone--tilt {
    width: 220px;
    margin: 0 auto;
  }

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

  .gameplay__visual {
    order: 2;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

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

  .gallery__item:nth-child(even) {
    transform: none;
  }

  .support {
    padding-top: 80px;
  }

  .support__card {
    padding: 40px 28px;
  }

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

  .legal-content {
    padding: 36px 26px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .features__quote {
    padding: 64px 24px 28px;
  }

  .features__quote::before {
    left: 22px;
    top: 4px;
  }

  .gameplay__visual {
    height: 400px;
  }

  .gameplay__visual .phone {
    width: 170px;
    border-radius: 26px;
    padding: 7px;
  }

  .gameplay__visual .phone img {
    border-radius: 20px;
  }

  .gallery__grid {
    gap: 14px;
  }

  .footer__links {
    flex-direction: column;
    gap: 10px;
  }
}
