/* Стили посадочной страницы развивашки №4 «Atividades para crianças» (6-9 лет).
   Палитра и структура унаследованы от разв.3 (глубокий синий, красный акцент,
   кремовая подложка), это стиль-данные - логика вынесена в отдельный script
   внутри index.html. Реальных картинок ещё нет: добавлены классы для
   emoji-плейсхолдеров (.illustration-placeholder, .game-tile) и текстового
   логотипа (.brand-wordmark-text) - дизайнер позже подменит их на ассеты. */

:root {
  --g-blue: #02528a;
  --g-blue-soft: #a8dbff;
  --g-blue-deep: #013963;
  --g-red: #ed1c25;
  --g-red-deep: #c4151c;
  --g-cream: #f1f1e6;
  --g-eucalyptus: #d7e6f0;
  --g-text: #02528a;
  --g-text-muted: #02528a99;
  --g-shadow-sm: 0 2px 8px rgba(2, 82, 138, 0.08);
  --g-shadow-md: 0 8px 24px rgba(2, 82, 138, 0.12);
  --g-shadow-lg: 0 16px 48px rgba(2, 82, 138, 0.16);
  --g-radius-sm: 12px;
  --g-radius-md: 18px;
  --g-radius-lg: 24px;
  --g-container: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Satoshi", "Nunito", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--g-text);
  background: var(--g-cream);
  min-height: 100vh;
  line-height: 1.55;
  scroll-behavior: smooth;
}

a { color: var(--g-blue); }

/* === Хедер === */
.page-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 241, 230, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(168, 219, 255, 0.45);
}
.page-header-inner {
  max-width: var(--g-container);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--g-text);
  justify-self: start;
}
/* Текстовый логотип-заглушка вместо gelimo-blue.svg (ассета пока нет в папке). */
.brand-wordmark-text {
  font-weight: 800; font-size: 22px; letter-spacing: -0.4px;
  color: var(--g-blue);
}
.header-title {
  justify-self: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #ff5e8a;
  letter-spacing: -0.3px;
  line-height: 1;
  white-space: nowrap;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--g-blue-soft);
  color: var(--g-blue);
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.4px; text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 0 rgba(2, 82, 138, 0.12);
  justify-self: end;
}
.back-btn:hover {
  background: #c0e4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 82, 138, 0.18);
}
.back-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(2, 82, 138, 0.12); }
.back-btn-arrow { font-size: 18px; line-height: 1; }
@media (max-width: 600px) {
  .header-title { font-size: 18px; }
}
@media (max-width: 480px) {
  .header-title { display: none; }
  .page-header-inner { grid-template-columns: 1fr auto; }
  .back-btn { padding: 9px 14px; font-size: 13px; }
  .back-btn-text { display: none; }
  .back-btn-arrow { font-size: 20px; }
}

/* === Основной контейнер === */
.page-main {
  max-width: var(--g-container);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 56px 0 64px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--g-radius-lg);
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta-icon { animation: none; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 40px; }
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero h1 {
  font-size: clamp(32px, 5.8vw, 54px);
  margin: 0 0 18px;
  color: var(--g-blue);
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
}
.hero-sub {
  font-size: clamp(16px, 2.6vw, 20px);
  margin: 0 auto 28px;
  max-width: 620px;
  color: var(--g-text);
  opacity: 0.85;
}
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 32px;
}
.hero-tags span {
  background: white;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--g-eucalyptus);
  color: var(--g-blue);
  box-shadow: var(--g-shadow-sm);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--g-red);
  color: white;
  font-size: 18px; font-weight: 800;
  letter-spacing: 0.4px; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--g-red-deep), 0 12px 28px rgba(237, 28, 37, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--g-red-deep), 0 16px 36px rgba(237, 28, 37, 0.32); }
.hero-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--g-red-deep), 0 4px 10px rgba(237, 28, 37, 0.28); }
.hero-cta-icon {
  font-size: 22px; line-height: 1;
  animation: cta-bounce 1.6s ease-in-out infinite;
}
.hero-cta-small { padding: 13px 26px; font-size: 16px; margin-top: 6px; }
@keyframes cta-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* === CTA-плашка (вводная и финальная) === */
.cta-band {
  background: linear-gradient(135deg, var(--g-blue-soft) 0%, #c8e8ff 100%);
  border-radius: var(--g-radius-md);
  padding: 22px 28px;
  margin: 8px 0 24px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 14px; flex-wrap: wrap;
  border: 1px solid rgba(2, 82, 138, 0.08);
  box-shadow: var(--g-shadow-sm);
}
.cta-band p {
  margin: 0; font-size: 17px;
  color: var(--g-blue); font-weight: 600;
  text-align: center;
}

/* === SEO-секции с длинным текстом === */
.content-section {
  margin: 56px 0;
}
.content-section h2 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--g-blue);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.content-section h3 {
  font-size: clamp(19px, 3vw, 23px);
  color: var(--g-blue);
  margin: 24px 0 10px;
  font-weight: 700;
}
.content-section p {
  font-size: 17px;
  margin: 0 0 14px;
  color: var(--g-text);
  opacity: 0.9;
}
.content-section .lead {
  font-size: 20px; font-weight: 700; opacity: 1;
}
.content-section ul {
  margin: 12px 0; padding-left: 22px;
  font-size: 17px;
}
.content-section li { margin-bottom: 8px; }
.content-section li strong { color: var(--g-blue); }

/* Реплика маскота под вводным текстом. */
.mascot-quote {
  margin: 18px 0 0;
  padding: 14px 20px;
  border-left: 4px solid var(--g-red);
  background: white;
  border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
  font-size: 17px; font-style: italic;
  color: var(--g-blue);
  box-shadow: var(--g-shadow-sm);
}

/* Emoji-плейсхолдер вместо финальной иллюстрации (роль img + aria-label). */
.illustration-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3 / 2;
  margin: 24px 0 28px;
  border-radius: var(--g-radius-lg);
  background: linear-gradient(135deg, var(--g-blue-soft) 0%, #ffe9c8 100%);
  border: 1px solid var(--g-eucalyptus);
  box-shadow: var(--g-shadow-md);
  font-size: clamp(36px, 8vw, 64px);
}

/* === Сетка карточек 8 минигр === */
.game-tiles {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0 8px;
}
@media (min-width: 640px) {
  .game-tiles { grid-template-columns: repeat(4, 1fr); }
}
.game-tile {
  background: white;
  padding: 18px 14px;
  border-radius: var(--g-radius-md);
  border: 1px solid var(--g-eucalyptus);
  text-align: center;
  box-shadow: var(--g-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-tile:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-md); }
.game-tile-icon {
  aspect-ratio: 4 / 3; margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 34px);
}
.game-tile h3 {
  margin: 0 0 6px; font-size: 16px; color: var(--g-blue); font-weight: 700;
}
.game-tile p {
  margin: 0; font-size: 13px; color: var(--g-text-muted);
}

/* === Двухколоночная сетка === */
.two-col {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  margin: 48px 0;
}
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.info-card {
  background: white;
  padding: 28px;
  border-radius: var(--g-radius-md);
  border: 1px solid var(--g-eucalyptus);
  box-shadow: var(--g-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--g-shadow-md);
}
.info-card h3 {
  margin: 0 0 14px;
  color: var(--g-blue);
  font-size: 22px;
  font-weight: 700;
}
.info-card ul {
  margin: 0; padding-left: 22px;
  line-height: 1.7;
}
.info-card li { margin-bottom: 6px; }
.info-card .illustration-placeholder { aspect-ratio: 3 / 2; margin: 0 0 16px; }

/* === FAQ === */
.faq details {
  background: white;
  border: 1px solid var(--g-eucalyptus);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s ease;
}
.faq details:hover { box-shadow: var(--g-shadow-sm); }
.faq summary {
  font-weight: 700; font-size: 17px;
  color: var(--g-blue);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 28px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; font-weight: 700;
  color: white; background: var(--g-red);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(237, 28, 37, 0.3);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 12px 0 0; font-size: 16px;
  color: var(--g-text); opacity: 0.92;
  line-height: 1.6;
}

/* === Анимация появления при скролле === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* === Подвал === */
.page-footer {
  margin-top: 48px;
  background: white;
  border-top: 1px solid var(--g-eucalyptus);
}
.footer-inner {
  max-width: var(--g-container);
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-col-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--g-text-muted);
  margin: 0 0 16px;
}
.footer-brand-link { display: inline-block; margin-bottom: 16px; }
.footer-wordmark-text { font-size: 26px; }
.footer-tagline {
  font-size: 15px; line-height: 1.5;
  color: var(--g-text); opacity: 0.85;
  margin: 0 0 14px;
  max-width: 320px;
}
.footer-site-link {
  display: inline-block;
  font-weight: 700; font-size: 15px;
  color: var(--g-blue); text-decoration: none;
  border-bottom: 2px solid var(--g-blue-soft);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.footer-site-link:hover { border-color: var(--g-blue); }

.footer-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--g-text);
  font-size: 16px; font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-contact-row:hover { color: var(--g-blue-deep); transform: translateX(2px); }
.footer-contact-icon {
  width: 22px; display: inline-flex; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.footer-social-row {
  display: flex; gap: 12px;
  margin-bottom: 8px;
}
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--g-blue-soft);
  border: 1px solid rgba(2, 82, 138, 0.08);
  font-size: 18px; font-weight: 800; color: var(--g-blue);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.footer-social-link:hover {
  transform: translateY(-2px);
  background: #c0e4ff;
  box-shadow: var(--g-shadow-sm);
}

.footer-bottom {
  background: var(--g-blue);
  color: white;
}
.footer-bottom p {
  max-width: var(--g-container);
  margin: 0 auto;
  padding: 18px 20px;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.4px;
  opacity: 0.9;
}

/* Маскоты в иллюстрации вступления (вместо emoji-заглушки Левона) */
.mascot-hero { display: flex; align-items: center; justify-content: center; gap: 2%; padding: 6% 6% 0; }
.mascot-hero img { height: auto; width: 30%; max-width: 300px; filter: drop-shadow(0 12px 18px rgba(2,82,138,0.18)); }
.mascot-hero .mascot-hero-mid { width: 26%; transform: scaleX(-1) translateY(-14%); }
