:root {
  --bg: #ffffff;
  --bg-soft: #f4f1fb;
  --hero-top: #e9f8fb;
  --hero-bottom: #bfe9ef;
  --navy: #1e2a5a;
  --navy-deep: #151c45;
  --text: #4a5670;
  --muted: #7b86a3;
  --line: #e4e6f2;
  --brand: #7a3fd1;
  --brand-bright: #9a5cf0;
  --brand-soft: #efe6fb;
  --sky: #2ec4b6;
  --radius: 22px;
  --maxw: 1140px;
  --font: "Nunito", "Segoe UI Rounded", "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; }
a { color: var(--brand); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  z-index: 20;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 0 0 16px; }
.section__text { margin: 0 0 16px; max-width: 560px; }
.section__note { color: var(--muted); font-size: 15px; margin: 0; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 63, 209, 0.28);
}
.btn__icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 48px; height: 48px; display: block; }
.logo__name { color: var(--navy); font-size: 22px; font-weight: 800; }

.nav { display: flex; gap: 28px; margin: 0 auto; }
.nav__link {
  position: relative;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 4px; }
.lang__btn {
  min-width: 44px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.lang__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 120px;
  position: relative;
  z-index: 1;
}
.hero__title { font-size: clamp(44px, 7vw, 84px); font-weight: 900; letter-spacing: -0.01em; }
.hero__tagline { margin: 12px 0 14px; color: var(--navy); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
.hero__text { margin: 0 0 28px; max-width: 420px; }

.hero__art { position: relative; display: flex; justify-content: center; }
.hero__icon {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 24px 50px rgba(30, 42, 90, 0.26);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

/* Покачивание иконки, как облачко на ветру: медленный подъём с лёгким наклоном. */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}
.hero__bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset -3px -3px 0 rgba(58, 168, 224, 0.25);
}
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  display: block;
}

/* Преимущества */
.features { padding: 40px 0 56px; }
.features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.feature__icon svg { width: 34px; height: 34px; }
.feature__icon--pink { background: #fde4ea; color: #e8467c; }
.feature__icon--blue { background: #dcf5f3; color: var(--sky); }
.feature__icon--green { background: #dff5ea; color: #22b573; }
.feature__icon--violet { background: var(--brand-soft); color: var(--brand); }
.feature__title { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.feature__text { margin: 0 auto; max-width: 220px; font-size: 15px; }

/* Игры */
.games { padding: 40px 0 72px; }
.game-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 50px rgba(18, 48, 94, 0.08);
}
.game-card__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 14px 30px rgba(30, 42, 90, 0.18);
}
.game-card__title { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.game-card__platforms { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 700; }
.game-card__text { margin: 0 0 20px; max-width: 560px; }

/* О студии */
.about { background: var(--bg-soft); padding: 72px 0; }
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.about__art { position: relative; padding: 16px 40px 40px 0; }
.canvas-card {
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(18, 48, 94, 0.14);
  transform: rotate(-3deg);
  overflow: hidden;
}
.canvas-card svg { display: block; width: 100%; }
.about__note {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 190px;
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  border-radius: 18px;
  color: var(--navy);
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  transform: rotate(6deg);
  box-shadow: 0 12px 30px rgba(18, 48, 94, 0.12);
}

/* Контакты */
.contact { padding: 64px 0 80px; }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact__card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--hero-top);
}
.contact__label { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
.contact__email { display: inline-block; margin-bottom: 18px; color: var(--navy); font-size: 22px; font-weight: 800; word-break: break-all; }
.contact__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }

/* Подвал */
.footer { background: var(--navy-deep); color: #b9c8de; padding: 24px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__copy { margin: 0; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: #fff; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 100px; }
  .hero__copy { text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__art { max-width: 520px; margin: 0 auto; width: 100%; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 1fr; }
  .game-card__art { max-width: 200px; }
  .header__inner { flex-wrap: wrap; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 18px; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__inner { gap: 12px; }
  .logo__name { font-size: 18px; }
  .hero__inner { padding-top: 32px; }
  .hero__art { min-height: 280px; }
  .about { padding: 48px 0; }
  .about__art { padding: 8px 24px 32px 0; }
  .contact { padding: 48px 0 56px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__link::after { transition: none; }
  .hero__icon { animation: none; }
}
