/* Витрина игры «Ночная смена». Тёплая, мультяшная, для родителей и детей. */
:root {
  --bg: #fff7ea;
  --bg-alt: #ffeed6;
  --ink: #2b2620;
  --muted: #6b6259;
  --accent: #ff8a4c;
  --accent-dark: #e86f30;
  --teal: #3aa6a0;
  --night: #1d2b45;
  --night-ink: #ffe9b8;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(80, 50, 20, 0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px;
}
.hidden { display: none !important; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 34px; font-weight: 900; margin-bottom: 8px; }
h3 { font-size: 20px; font-weight: 800; margin: 18px 0 8px; }
a { color: var(--teal); }
.sub { color: var(--muted); margin-bottom: 28px; max-width: 700px; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 6vw; background: rgba(255, 247, 234, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(80, 50, 20, 0.08);
}
.logo { font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 18px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; opacity: 0.8; }
.top nav a:hover { opacity: 1; color: var(--accent-dark); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 14px; font-weight: 900; font-size: 18px;
  text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; white-space: nowrap;
}
.btn-play { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 8px 20px rgba(232, 111, 48, 0.35); }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(232, 111, 48, 0.45); }
.btn.small { padding: 9px 18px; font-size: 15px; }
.btn.big { padding: 18px 40px; font-size: 22px; }

/* ---------- Главный экран ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 60px 6vw 50px; max-width: 1240px; margin: 0 auto;
}
.kicker { color: var(--teal); font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.hero h1 { font-size: 46px; font-weight: 900; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 26px; }
.cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-note { color: var(--muted); font-size: 14px; }
.mobile-note {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px;
  background: #fff1cf; border: 1px solid #f2c96a; font-size: 15px;
}
.hero-art img, .gallery img, .gif img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow); background: #ffe3c2;
}

/* ---------- Блоки ---------- */
.block { padding: 60px 6vw; max-width: 1240px; margin: 0 auto; }
.block.alt { max-width: none; background: var(--bg-alt); }
.block.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.block.alt h2, .block.alt .sub { max-width: 1120px; }
.block.alt .sub { margin-bottom: 28px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
  border-top: 5px solid var(--teal);
}
.card .ico { font-size: 34px; margin-bottom: 6px; }
.card h3 { margin: 4px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card.night { background: var(--night); color: var(--night-ink); border-top-color: var(--accent); }
.card.night p { color: #cfd8e3; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
figure figcaption { margin-top: 8px; color: var(--muted); font-size: 14.5px; text-align: center; }
.gif { margin-top: 26px; max-width: 760px; }

/* ---------- Родителям ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-col h3:first-child { margin-top: 0; }
ul.check { list-style: none; }
ul.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.check li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }

/* ---------- Управление ---------- */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.keys > div { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.keys span { color: var(--muted); font-size: 15px; margin-left: 4px; }
kbd {
  display: inline-block; min-width: 34px; text-align: center; padding: 4px 9px; border-radius: 8px;
  background: #fff; border: 2px solid #e5d3b8; border-bottom-width: 4px; font-family: inherit; font-weight: 800; font-size: 14px;
}

/* ---------- Новости ---------- */
.news article { background: var(--card); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.news .ver { color: var(--accent-dark); font-weight: 900; font-size: 15px; }
.news .ver time { color: var(--muted); font-weight: 600; margin-left: 10px; }
.news h3 { margin: 4px 0 8px; }
.news ul { padding-left: 22px; color: var(--muted); font-size: 15.5px; }
.news li { margin-bottom: 4px; }

/* ---------- Финальный призыв и подвал ---------- */
.cta-final { text-align: center; padding: 70px 6vw; background: var(--night); color: var(--night-ink); }
.cta-final h2 { margin-bottom: 22px; }
.cta-final p { margin-top: 14px; color: #9fb0c8; font-size: 15px; }
footer { text-align: center; padding: 26px 6vw; color: var(--muted); font-size: 14px; background: #14202e; color: #7d8ea3; }
footer .fine { font-size: 12.5px; margin-top: 4px; opacity: 0.8; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 12px; padding: 10px 16px; }
  .top nav { display: none; }
  .hero, .block { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 30px; }
  h2 { font-size: 28px; }
  .cards, .gallery, .two-col { grid-template-columns: 1fr; }
}
