/* Промо «Пингвиниума» — в стиле основного сайта (deploy/site/style.css): белый, фирменный синий, Onest, воздух */
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --border: #e6e8ec;
  --text: #0b0d12;
  --text-muted: #5f6673;
  --text-subtle: #9aa0ab;
  --accent: #2f54eb;
  --accent-hover: #2344d1;
  --accent-soft: #eef1fe;
  --on-accent-soft: #2f54eb;
  --glass: rgb(255 255 255 / 0.9);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1120px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e13;
    --surface: #161a21;
    --border: #262b35;
    --text: #f1f3f6;
    --text-muted: #a3a9b5;
    --text-subtle: #6f7682;
    --accent: #4f6ef7;
    --accent-hover: #6a84fa;
    --accent-soft: #1a2244;
    --on-accent-soft: #c3cffd;
    --glass: rgb(12 14 19 / 0.85);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Onest Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Кнопки — как на основном сайте */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.button.sm { height: 40px; padding: 0 16px; font-size: 15px; }
.button.lg { height: 54px; padding: 0 26px; font-size: 17px; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--accent-soft); color: var(--on-accent-soft); }
.light { background: #fff; color: #2f54eb; }
.light:hover { background: #eef1fe; }
.outline { border: 1px solid rgb(255 255 255 / 0.5); color: #fff; }
.outline:hover { border-color: #fff; }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.logo-mark { width: 36px; height: 36px; padding: 4px; border-radius: 10px; background: var(--accent-soft); image-rendering: pixelated; }

/* Первый экран — во всю ширину картина из игры: море, скалы, остров с медведями (studio/make_promo_bg.py).
   Картина светлая в любой теме — текст на ней всегда тёмный */
.hero {
  min-height: calc(100svh - 68px);
  padding: clamp(40px, 9svh, 96px) 0 40px;
  background: #a9d2ff url('/img/cover.png?v=2') center bottom / cover no-repeat;
  image-rendering: pixelated;
  --text: #0b0d12;
  --text-muted: #34405e;
  --accent: #2f54eb;
  --accent-hover: #2344d1;
  --accent-soft: rgb(255 255 255 / 0.75);
  --on-accent-soft: #2f54eb;
  color: var(--text);
}
.hero-in { display: block; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.055em; line-height: 0.98; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 480px; font-size: 19px; color: var(--text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* Разделы */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 32px; }

/* Список фич — нумерованный, как в портфолио студии */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.list li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.num { font-size: 15px; font-weight: 500; color: var(--accent); padding-top: 4px; }
.list b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.list p { margin-top: 4px; color: var(--text-muted); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots img { width: 100%; border-radius: var(--radius-lg); }

/* Звери */
.beasts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.beasts figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 24px 8px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.beasts img { height: 48px; width: auto; image-rendering: pixelated; }
.beasts figcaption { font-size: 14px; color: var(--text-muted); text-align: center; }
.beasts .boss { background: var(--accent-soft); }
.beasts .boss figcaption { color: var(--on-accent-soft); font-weight: 500; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); }
.stats b { display: block; font-size: clamp(36px, 4.6vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: var(--text-muted); font-size: 15px; }

/* Финал */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 56px;
  border-radius: 28px;
  background: #2f54eb;
  color: #fff;
}
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 520px; opacity: 0.85; font-size: 18px; margin-bottom: 24px; }
.cta img { width: 112px; image-rendering: pixelated; }

/* Подвал — как на основном сайте */
.footer { margin-top: 40px; padding: 56px 0 40px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p { max-width: 300px; }
.logo-word { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.social { display: flex; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--text-muted); transition: background-color 0.2s, color 0.2s; }
.social a:hover { background: #26a5e4; color: #fff; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-heading { margin-bottom: 4px; color: var(--text); font-weight: 600; }
.footer a:hover { color: var(--text); }
.footer-legal { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; font-size: 13px; line-height: 1.55; color: var(--text-subtle); }

/* Уведомление о cookie — как на основном сайте */
.cookie { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 20px; width: min(720px, calc(100vw - 32px)); padding: 14px 14px 14px 22px; border: 1px solid var(--border); border-radius: 20px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 12px 32px rgb(16 24 40 / 0.08); translate: -50% 0; animation: rise 0.45s var(--ease) both; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1; font-size: 15px; line-height: 1.45; }
.cookie a { color: var(--accent); }
.cookie .button { flex-shrink: 0; }
@keyframes rise { from { opacity: 0; translate: -50% 24px; } }

@media (max-width: 860px) {
  .hero { background-position: 70% bottom; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .beasts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  /* Телефон: картина по ширине вдвое больше экрана, остров с медведями целиком, небо выше — тем же цветом */
  .hero { padding-top: 32px; min-height: calc(100svh - 68px); background-size: 210% auto; background-position: 86% bottom; }
  .hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .cookie-extra { display: none; }
  .cookie { flex-wrap: wrap; bottom: 16px; padding: 14px; gap: 12px; }
  .cookie p { flex-basis: 100%; }
  .cookie .button { margin-left: auto; }
  .actions .button { flex: 1 1 100%; }
  .section { padding: 40px 0; }
  .list li { grid-template-columns: 44px minmax(0, 1fr); }
  .beasts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  .cta img { display: none; }
}
