/* Сайт приложения (babylon-kids.com): цвета — как в приложении (lib/design/theme.dart). */
:root {
  --lapis: #234a8c;
  --lapis-deep: #1d2a4d;
  --lapis-soft: #e3eaf6;
  --gold: #c8902e;
  --gold-light: #f0c46b;
  --gold-deep: #9a6a17;
  --sand: #f6efe2;
  --sand2: #ede2cc;
  --card: #fffaf1;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --green: #2f7d4f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--lapis); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--lapis-deep); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
header.top a.brand { color: #fff; text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px; }
header.top img { width: 36px; height: 36px; border-radius: 9px; }
header.top nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
header.top nav a { color: var(--gold-light); text-decoration: none; }
header.top nav a:hover { text-decoration: underline; }
.hero { padding: 40px 0 24px; display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 8px; }
.hero .sub { font-size: 21px; font-weight: 700; color: var(--gold-deep); margin: 0 0 14px; }
.hero img { width: 100%; height: auto; }
.badge {
  display: inline-block; margin-top: 8px; padding: 12px 20px; border-radius: 14px;
  background: var(--lapis); color: #fff; font-weight: 800; text-decoration: none;
}
.badge.soon { background: var(--ink-soft); }
section { padding: 18px 0; }
h2 { font-size: 26px; margin: 8px 0 12px; }
h3 { font-size: 19px; margin: 18px 0 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--sand2); border-radius: 18px; padding: 16px 18px;
}
.card .em { font-size: 30px; }
.card h3 { margin-top: 6px; }
.card p { margin: 0; color: var(--ink-soft); }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
.price { background: var(--lapis-soft); border-radius: 18px; padding: 16px 18px; }
.cast { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cast img { width: 120px; height: auto; }
.doc { background: var(--card); border: 1px solid var(--sand2); border-radius: 18px; padding: 8px 22px 22px; margin: 24px 0; }
.doc h1 { font-size: 30px; line-height: 1.2; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--sand2); padding: 6px 8px; text-align: left; vertical-align: top; }
.kids { background: var(--lapis-soft); border-radius: 14px; padding: 4px 16px; }
.muted { color: var(--ink-soft); font-size: 15px; }
footer { border-top: 1px solid var(--sand2); margin-top: 28px; padding: 18px 0 30px; font-size: 14px; color: var(--ink-soft); }
footer a { color: var(--ink-soft); }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero img { max-width: 130px; margin: 0 auto; display: block; }
  .hero { gap: 8px; }
  section { padding: 10px 0; }
  .hero h1 { font-size: 30px; }
  header.top nav { font-size: 14px; gap: 10px; }
}
/* Страница согласия родителя (/verify-email). */
button.btn {
  font: inherit; font-weight: 700; font-size: 18px; color: #fff; background: var(--lapis);
  border: 0; border-radius: 14px; padding: 14px 28px; cursor: pointer; margin: 8px 0 16px;
}
main.wrap p.brand { margin: 32px 0 0; font-weight: 800; color: var(--gold-deep); letter-spacing: .02em; }
/* Блог (30.10). */
.postcard { display: flex; gap: 16px; background: var(--card); border-radius: 16px; padding: 12px; margin: 16px 0; color: inherit; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.postcard img { width: 180px; height: 135px; object-fit: cover; border-radius: 12px; flex: none; }
.postcard h2 { margin: 0 0 6px; font-size: 20px; }
.postcard p { margin: 0 0 6px; }
.postcard span { color: var(--lapis); font-weight: 700; }
@media (max-width: 560px) { .postcard { flex-direction: column; } .postcard img { width: 100%; height: auto; aspect-ratio: 4/3; } }
article.post { max-width: 720px; margin: 0 auto; }
article.post figure { margin: 20px 0; }
article.post img { width: 100%; height: auto; border-radius: 16px; display: block; }
article.post h2 { margin-top: 32px; }
