/* Play & Learn — общий стиль страниц игры. Без шрифтов и библиотек извне: страница открывается во встроенных браузерах соцсетей. */
:root {
  --bg: #ffffff;
  --bg-soft: #faf5f8;
  --text: #2c2429;
  --muted: #5d5560;
  --accent: #574751;
  --pink: #c49bb4;
  --pink-hover: #b3869f;
  --pink-light: #f3e7ee;
  --yellow: #ffc60b;
  --line: #ece4e9;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Верхняя строка: бренд серии + языки */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; font-size: 15px;
}
.brand { font-weight: 700; color: var(--accent); text-decoration: none; }
.langs { display: flex; gap: 4px; }
.langs a {
  text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--muted);
}
.langs a[aria-current="page"] { background: var(--pink-light); color: var(--accent); font-weight: 700; }

/* Первый экран */
.hero { padding: 8px 0 32px; text-align: center; }
.hero > img { max-width: 80%; margin: 0 auto; border-bottom: 4px solid var(--pink); }
.hero > img + .kicker { margin-top: 20px; }

/* Девиз над баннером: надпись по дуге + декор по бокам */
@font-face { font-family: "Russo One"; font-display: swap; src: url("/fonts/russo-one-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Russo One"; font-display: swap; src: url("/fonts/russo-one-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.motto { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; }
.motto svg { flex: 0 1 640px; min-width: 0; width: 100%; height: auto; overflow: visible; }
.motto text { font-family: "Russo One", Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; fill: #da3b9e; stroke: #31083b; stroke-width: 7px; stroke-linejoin: round; paint-order: stroke fill; }
.motto img { flex: 0 0 auto; width: clamp(48px, 13vw, 110px); height: auto; }
.kicker { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pink-hover); }
h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; color: var(--accent); }
.lead { margin: 0 auto 20px; max-width: 640px; font-size: 18px; color: var(--muted); }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-block; min-width: 200px; padding: 13px 22px; border-radius: 12px;
  background: var(--pink); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--pink-hover); }
.btn.alt { background: #fff; color: var(--accent); border: 2px solid var(--pink); }
.note { margin: 12px auto 0; max-width: 560px; font-size: 14px; color: var(--muted); }
.note + .buttons { margin-top: 28px; }
.inapp {
  display: none; margin: 14px auto 0; max-width: 560px; padding: 10px 14px; border-radius: 10px;
  background: #fff8db; font-size: 14px; text-align: left;
}
.is-inapp .inapp { display: block; }

/* Разделы */
section { padding: 36px 0; }
section.soft { background: var(--bg-soft); }
h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; color: var(--accent); }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; color: var(--accent); }
p { margin: 0 0 14px; }

/* Видео: обложка, плеер YouTube грузится только по нажатию */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(196, 155, 180, .92);
}
.video .play::after {
  content: ""; position: absolute; left: 29px; top: 22px;
  border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Возможности: картинка + текст */
.features { display: grid; gap: 28px; }
.feature img { border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; }

/* Списки преимуществ */
.points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.points li { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.points b { display: block; margin-bottom: 4px; color: var(--accent); font-size: 18px; }

/* Сравнение */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--pink-light); color: var(--accent); }
td.ours, th.ours { background: #fdf3f8; font-weight: 600; }
.swipe { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Об авторе */
.author { display: grid; gap: 16px; align-items: start; }
.author .avatar {
  width: 88px; height: 88px; border-radius: 50%; background: var(--pink-light);
  display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; color: var(--accent);
}

/* Вопросы */
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--accent); }
details p { margin: 8px 0 0; }

/* Серия */
.series { display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.card img { border-radius: 10px; margin-bottom: 10px; }
.card .btn { min-width: 0; font-size: 16px; padding: 10px 16px; }
.card .btn.yellow { background: var(--yellow); color: #0f0900; }

/* Подвал */
footer { padding: 32px 0 40px; background: var(--accent); color: #fff; font-size: 15px; }
footer a { color: #fff; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; padding: 0; list-style: none; }
.social a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); text-decoration: none;
}
.social a:hover { background: rgba(255, 255, 255, .26); }
.small { font-size: 13px; opacity: .85; }

@media (min-width: 720px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero { padding: 16px 0 44px; }
  section { padding: 52px 0; }
  .feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
  .feature img { margin-bottom: 0; }
  .feature:nth-child(even) img { order: 2; }
  .points { grid-template-columns: 1fr 1fr; }
  .author { grid-template-columns: 88px 1fr; }
  .series { grid-template-columns: 1fr 1fr; }
}
