:root {
  --sky-top: #66b3e5;
  --sky-bottom: #99d8f2;
  --sky-soft: #f2fbff;
  --surface: #ffffff;
  --surface-glass: rgba(57, 174, 226, 0.28);
  --surface-readable: rgba(22, 120, 184, 0.62);
  --surface-stroke: rgba(255, 255, 255, 0.42);
  --control-stroke: rgba(255, 255, 255, 0.5);
  --control-highlight: rgba(255, 255, 255, 0.34);
  --text: #20405d;
  --text-strong: #173553;
  --text-muted: #5c7890;
  --primary: #2196f3;
  --primary-dark: #1678b8;
  --primary-soft: #e3f5ff;
  --pink: #ff7db3;
  --green: #34c759;
  --green-top: #5edc8a;
  --yellow: #ffc844;
  --border: rgba(69, 139, 184, 0.16);
  --shadow: 0 18px 50px rgba(52, 132, 183, 0.17);
  --shadow-soft: 0 10px 28px rgba(52, 132, 183, 0.13);
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 42px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--sky-soft);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
picture { display: block; }
picture > img { width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(239, 250, 255, 0.88);
  backdrop-filter: blur(18px);
}
.header-inner, .header-actions, .brand, .main-nav, .language-switcher, .footer-inner, .site-footer nav {
  display: flex;
  align-items: center;
}
.header-inner { min-height: 76px; gap: 28px; }
.brand { gap: 11px; color: var(--text-strong); font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 14px; box-shadow: 0 5px 14px rgba(40, 128, 196, 0.18); }
.main-nav { gap: 22px; margin-left: auto; }
.main-nav a, .site-footer nav a { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .site-footer nav a:hover, .text-link:hover { color: var(--primary-dark); }
.header-actions { gap: 14px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 4px; }
.language-switcher { gap: 6px; }
.language-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--control-stroke);
  border-radius: 50%;
  background: var(--surface-glass);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-size: 20px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.language-button:hover { transform: translateY(-2px); }
.language-button[aria-current="true"] { background: var(--surface-readable); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18); transform: scale(1.08); }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  border: 1.5px solid var(--control-stroke);
  background:
    linear-gradient(180deg, var(--control-highlight), transparent 52%),
    linear-gradient(135deg, #41b8ff, var(--primary));
  box-shadow: 0 9px 18px rgba(33, 150, 243, 0.38), 0 6px 12px rgba(0, 0, 0, 0.24);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(33, 150, 243, 0.42), 0 7px 14px rgba(0, 0, 0, 0.24); }
.button:active { transform: scale(0.95); box-shadow: 0 6px 12px rgba(33, 150, 243, 0.32), 0 4px 8px rgba(0, 0, 0, 0.2); }
.app-store-badge {
  display: inline-block;
  overflow: hidden;
  border-radius: 11px;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms ease;
}
.app-store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28); }
.app-store-badge:active { transform: scale(0.96); }
.app-store-badge-image { width: 180px; height: auto; }
.app-store-badge-header .app-store-badge-image { width: 132px; }
.app-store-badge-header { overflow: visible; border-radius: 0; box-shadow: none; }
.app-store-badge-header:hover { box-shadow: none; }
.app-store-badge-image-en { display: none; }
html:lang(en) .app-store-badge-image-ru { display: none; }
html:lang(en) .app-store-badge-image-en { display: block; }
.text-link { color: var(--primary-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.button:focus-visible, .text-link:focus-visible, a:focus-visible, summary:focus-visible, .language-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.hero::after {
  position: absolute;
  right: -4%;
  bottom: -115px;
  left: -4%;
  height: 210px;
  border-radius: 50% 50% 0 0;
  background: #fff;
  content: "";
  z-index: 0;
}
.hero-grid { display: grid; min-height: 730px; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 32px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 48px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.12; letter-spacing: -0.04em; }
h1 { margin-bottom: 22px; font-size: clamp(46px, 5.6vw, 76px); }
h1 span { color: var(--primary-dark); }
h2 { margin-bottom: 14px; font-size: clamp(34px, 4vw, 54px); }
h3 { margin-bottom: 6px; font-size: 22px; }
.hero-text, .section-heading p, .parents p { max-width: 610px; color: #335c79; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin: 30px 0 35px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; color: #32617d; font-size: 14px; font-weight: 800; list-style: none; }
.trust-list li::before { margin-right: 7px; color: var(--green); content: "✓"; font-size: 18px; }
.hero-art { position: relative; z-index: 1; height: 650px; }
.hero-art > :is(img, picture):not(.cloud) { position: absolute; height: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(27, 103, 154, 0.14)); }
.hero-unicorn { z-index: 4; top: 65px; right: 0; width: 72%; }
.hero-cat { z-index: 3; top: 34px; left: -7%; width: 35%; }
.hero-dog { z-index: 5; right: -7%; bottom: 52px; width: 33%; }
.hero-pig { z-index: 2; bottom: 0; left: 4%; width: 28%; }
.cloud { pointer-events: none; opacity: 0.82; }
.cloud-hero-left { position: absolute; bottom: 95px; left: 1%; width: 270px; }
.cloud-hero-top { position: absolute; top: 74px; right: 3%; width: 270px; }
.hero-cloud { position: absolute; right: 14%; bottom: 62px; width: 72%; opacity: 0.74; }

.section { padding: 108px 0; }
.worlds { position: relative; z-index: 2; background: #fff; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.world-card {
  overflow: hidden;
  border: 1.5px solid var(--surface-stroke);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.world-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.world-card picture { overflow: hidden; }
.world-card img { width: 100%; aspect-ratio: 1.44; object-fit: cover; }
.world-card h3 { margin: 0; padding: 16px 19px 18px; }
.features { position: relative; overflow: hidden; padding-block: 76px; background: linear-gradient(180deg, #fff, var(--sky-soft)); }
.features-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 74px; }
.feature-art {
  position: relative;
  min-height: 320px;
}
.feature-art :is(img, picture) { position: absolute; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(49, 119, 160, 0.14)); }
.feature-art picture > img { position: static; filter: none; }
.feature-cow { bottom: -22px; left: 3%; z-index: 2; width: 46%; }
.feature-fox { top: -52px; left: 27%; z-index: 3; width: 47%; }
.feature-boar { right: 3%; bottom: -18px; z-index: 2; width: 45%; }
.cloud-features { position: absolute; right: -20px; bottom: 20px; width: 270px; opacity: 0.42; }
.feature-list { display: grid; gap: 15px; margin-top: 30px; }
.feature-list article { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.feature-list strong { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); }
.feature-list article:nth-child(2) strong { background: var(--pink); }
.feature-list article:nth-child(3) strong { background: var(--green); }
.feature-list p { margin: 0; color: var(--text-muted); }
.parents { padding-top: 54px; background: var(--sky-soft); }
.parent-panel {
  display: grid;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d8f2ff, #fff 74%);
  box-shadow: var(--shadow);
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
}
.parent-proof { display: grid; align-content: center; gap: 14px; }
.parent-proof span {
  padding: 16px 20px;
  border: 1.5px solid var(--surface-stroke);
  border-radius: 999px;
  background: var(--surface-glass);
  color: #32617d;
  font-weight: 800;
  text-align: center;
}

.site-footer { padding: 48px 0 34px; background: var(--sky-soft); }
.footer-inner { flex-wrap: wrap; gap: 22px 30px; }
.site-footer nav { flex-wrap: wrap; gap: 15px 22px; margin-left: auto; }
.site-footer small { width: 100%; color: var(--text-muted); font-size: 13px; }

.inner-page { background: linear-gradient(180deg, var(--sky-top), var(--sky-soft) 360px); }
.inner-main { position: relative; overflow: hidden; padding: 72px 0 30px; }
.inner-cloud-left, .inner-cloud-right { position: absolute; width: 280px; opacity: 0.56; }
.inner-cloud-left { top: 58px; left: -50px; }
.inner-cloud-right { top: 190px; right: -48px; }
.article-card {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 56px 64px 92px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}
.article-card h1 { margin-bottom: 6px; font-size: clamp(38px, 5vw, 60px); }
.article-card h2 { margin-top: 38px; font-size: 25px; letter-spacing: -0.02em; }
.article-card p { max-width: 700px; }
.updated { color: var(--text-muted); font-size: 14px; }
.lead { margin: 27px 0 36px; color: #32617d; font-size: 21px; font-weight: 700; }
.article-card a { color: var(--primary-dark); font-weight: 800; }
.article-character { position: absolute; right: 22px; bottom: -28px; width: 136px; }
.article-character img { width: 100%; }
.support-card { padding-bottom: 120px; }
.support-card > .button { margin-bottom: 14px; color: #fff; }
.faq { margin-top: 46px; }
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { padding: 18px 4px; color: var(--text-strong); cursor: pointer; font-weight: 800; }
details p { padding: 0 4px 16px; color: var(--text-muted); }
.support-download { margin-top: 38px; }
.support-download h2 { margin-bottom: 8px; }
.support-character { width: 156px; }
.compact-footer { padding-top: 30px; }
.compact-footer nav { margin-left: 0; }

@keyframes float { 50% { transform: translateY(-14px) rotate(1deg); } }
.float-slow { animation: float 5.6s ease-in-out infinite; }
.float-medium { animation: float 4.8s ease-in-out -1.1s infinite; }
.float-fast { animation: float 4.2s ease-in-out -2.1s infinite; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 70px 0 4px; }
  .hero-art { width: 100%; max-width: 680px; height: 540px; margin: 28px auto 72px; }
  .hero-unicorn { top: 82px; right: 18%; width: 56%; }
  .hero-cat { top: 8px; left: 7%; width: 25%; }
  .hero-dog { top: 18px; right: 5%; bottom: auto; width: 25%; }
  .hero-pig { bottom: 18px; left: 13%; width: 23%; }
  .hero-cloud { right: 15%; bottom: 40px; width: 66%; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-art {
    display: grid;
    position: static;
    order: 2;
    width: 100%;
    max-width: 680px;
    min-height: 0;
    align-items: end;
    margin: 34px auto 0;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature-art :is(img, picture) { position: static; width: 100%; max-height: 220px; transform: none; }
  .feature-art picture > img { max-height: 220px; object-fit: contain; }
  .parent-panel { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand { font-size: 14px; }
  .brand img { width: 40px; height: 40px; border-radius: 12px; }
  .header-actions { gap: 9px; margin-left: auto; }
  .main-nav + .header-actions { margin-left: auto; }
  .language-button { width: 34px; height: 34px; font-size: 18px; }
  .back-link { font-size: 13px; }
  .hero-copy { padding-top: 48px; }
  h1 { font-size: clamp(42px, 13.5vw, 59px); }
  h2 { font-size: clamp(31px, 9vw, 42px); }
  .hero-text, .section-heading p, .parents p { font-size: 17px; }
  .hero-actions { flex-wrap: wrap; gap: 18px; margin: 24px 0 28px; }
  .hero-art { height: 340px; margin-top: 38px; margin-bottom: 54px; }
  .hero-unicorn { top: 60px; right: 25%; width: 50%; }
  .hero-cat { top: 4px; left: 2%; width: 28%; }
  .hero-dog { top: 12px; right: 0; bottom: auto; width: 28%; }
  .hero-pig { bottom: 18px; left: 8%; width: 23%; }
  .cloud-hero-left { bottom: 50px; width: 180px; }
  .cloud-hero-top { width: 170px; }
  .hero-cloud { bottom: 50px; }
  .trust-list { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 18px; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 28px; }
  .world-grid { grid-template-columns: 1fr; gap: 16px; }
  .world-card img { aspect-ratio: 1.65; }
  .feature-art { gap: 4px; margin-top: 24px; }
  .feature-art :is(img, picture) { max-height: 150px; }
  .feature-art picture > img { max-height: 150px; }
  .parents { padding-top: 20px; }
  .parent-panel { padding: 28px 22px; border-radius: var(--radius-md); gap: 28px; }
  .site-footer { padding: 36px 0 26px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .site-footer nav { margin-left: 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .inner-main { padding-top: 42px; }
  .article-card { padding: 30px 22px 96px; border-radius: var(--radius-md); }
  .article-card h1 { font-size: 38px; overflow-wrap: anywhere; }
  .article-card h2 { margin-top: 30px; font-size: 22px; }
  .lead { margin-bottom: 28px; font-size: 18px; }
  .article-character { right: 12px; width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
