/* Toto's World — общий стиль внутренних страниц (главная — index.html со своим героем) */
:root {
  --sky-top: #6fb6f5;
  --sky-bottom: #2f74de;
  --ink: #1d2a44;
  --ink-soft: #4a5874;
  --white: #ffffff;
  --paper: #fffaf0;
  --gold: #f6c453;
  --gold-deep: #d99a1e;
  --pink: #ff6f9a;
  --emerald: #2fbf8f;
  --glass: rgba(255, 255, 255, .16);
  --glass-edge: rgba(255, 255, 255, .55);
  --radius: 22px;
  --shadow: 0 14px 40px rgba(20, 40, 90, .18);
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  --script: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; font-family: var(--ui); color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0, #4f95ec 420px, #eaf3ff 420px, #f6f9ff 100%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* шапка — та же, что на главной */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 3.2vw; color: var(--white);
}
.top .logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(20, 40, 90, .35)); }
.top nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.top nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--glass); border: 1.5px solid var(--glass-edge);
}
.top nav a[aria-current="page"] { background: var(--white); color: var(--ink); }
.wish {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; background: var(--white); color: var(--ink);
  box-shadow: 0 6px 20px rgba(20, 40, 90, .25); white-space: nowrap;
}

/* заголовок страницы на небе */
.page-head { color: var(--white); padding: 28px 3.2vw 40px; max-width: 980px; }
.page-head .kicker { font-weight: 600; opacity: .95; margin-bottom: 8px; }
.page-head h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 5vw, 58px); line-height: 1; }
.page-head h1 em { font-family: var(--script); font-style: italic; font-weight: 400; text-transform: none; color: #fff3cf; }
.page-head p { margin-top: 12px; font-size: 18px; max-width: 640px; line-height: 1.45; }

main { padding: 0 3.2vw 64px; }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 15px/1 var(--ui); color: var(--ink);
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  box-shadow: 0 8px 20px rgba(150, 90, 0, .25);
}
.btn.ghost { background: #eef4ff; box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #eef4ff; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.note { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

footer { padding: 28px 3.2vw 40px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; border-top: 1px solid #dde6f5; }
footer b { color: var(--ink); }

@media (max-width: 900px) {
  .top { flex-wrap: wrap; }
  .top nav { order: 3; width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { flex: none; }
}
@media (max-width: 600px) {
  .top { padding: 14px 16px; }
  .page-head { padding: 18px 16px 32px; }
  main { padding: 0 16px 48px; }
  footer { padding: 24px 16px 32px; }
}
@media print {
  .top, footer, .no-print { display: none !important; }
  body { background: #fff; }
}
