/* MiniBro — игровой стиль для детей и подростков: толстые обводки, «наклейки», аркадные кнопки */
:root {
  --bg: #f4efff;
  --dots: #ddd0ff;
  --surface: #ffffff;
  --text: #1b1340;
  --muted: #5b5480;
  --ink: #1b1340;
  --line: #1b1340;
  --purple: #7b3fe4;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --cyan: #2ec4ff;
  --lime: #7ae582;
  --orange: #ff8a3d;
  --accent: var(--pink);
  --accent-2: var(--purple);
  --ok: #17a34a;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160f33;
    --dots: #2a1f5c;
    --surface: #231a4d;
    --text: #f6f2ff;
    --muted: #b9b0e0;
    --ink: #000000;
    --line: #0b0720;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  color: var(--text);
  font: 17px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
html { overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--purple); font-weight: 700; }
h1, h2, h3, .logo, .price, .btn, .step-num, .tag, .sticker {
  font-family: "Unbounded", "Nunito", system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
h3 { font-size: 19px; font-weight: 800; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; position: relative; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Заголовок секции с «наклейкой» */
.sticker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border: 3px solid var(--line); border-radius: 999px;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-sm); rotate: -2deg; margin-bottom: 14px;
}
.sticker.pink { background: var(--pink); color: #fff; }
.sticker.cyan { background: var(--cyan); }
.sticker.lime { background: var(--lime); }
.sticker.purple { background: var(--purple); color: #fff; }
.mark { background: var(--yellow); color: var(--ink); padding: 0 .2em; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 3px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font-weight: 900; font-size: 22px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.logo::before {
  content: ""; width: 42px; height: 42px; margin-right: 10px; flex: none;
  background: url("logo/icon.svg") center / contain no-repeat; rotate: -6deg;
}
.logo span { color: var(--pink); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; }
.nav a:hover { color: var(--pink); }
@media (max-width: 820px) { .nav { display: none; } }

/* Кнопки как в аркадах: жёсткая тень, при нажатии кнопка «вдавливается» */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 16px; border: 3px solid var(--line);
  font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-yellow { background: var(--yellow); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 12px; }

/* Первый экран */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 .c1 { color: var(--pink); }
.hero h1 .c2 { color: var(--purple); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span {
  font-weight: 800; font-size: 14px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface);
}
.hero-art { position: relative; justify-self: center; width: min(330px, 100%); }
.phone {
  width: 100%; aspect-ratio: 9 / 17; border-radius: 40px; padding: 12px;
  background: var(--purple); border: 4px solid var(--line); box-shadow: 8px 8px 0 var(--ink); rotate: 3deg;
}
.phone iframe { width: 100%; height: 100%; border: 3px solid var(--line); border-radius: 28px; background: #fff; }
.float {
  position: absolute; z-index: 2; font-weight: 800; font-size: 14px; white-space: nowrap;
  padding: 8px 14px; border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  animation: bob 3s ease-in-out infinite;
}
.float.f1 { top: 8%; left: -18%; background: var(--yellow); color: var(--ink); rotate: -8deg; }
.float.f2 { top: 64%; right: -16%; background: var(--cyan); color: var(--ink); rotate: 6deg; animation-delay: -1s; }
.float.f3 { bottom: -2%; left: -10%; background: var(--lime); color: var(--ink); rotate: -4deg; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.deco { position: absolute; font-size: 44px; pointer-events: none; animation: bob 4s ease-in-out infinite; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .phone { rotate: 0deg; }
  .float.f1 { left: -4%; }
  .float.f2 { right: -4%; }
  .float.f3 { left: 0; }
  .deco { display: none; }
}
@media (prefers-reduced-motion: reduce) { .float, .deco, .marquee-track { animation: none !important; } }

/* Бегущая строка */
.marquee {
  background: var(--purple); color: #fff; border-block: 3px solid var(--line);
  overflow: hidden; rotate: -1.5deg; margin: 0 -20px; position: relative; z-index: 1;
}
.marquee-track { display: flex; width: max-content; animation: run 28s linear infinite; }
.marquee span { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 18px; padding: 14px 22px; white-space: nowrap; }
@keyframes run { to { transform: translateX(-50%); } }

/* Карточки */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 36px; }
.card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s;
}
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card p { margin: 0 0 16px; }
.card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.step-num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 900; font-size: 22px; color: var(--ink); background: var(--yellow);
  border: 3px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 16px; rotate: -6deg;
}
.step:nth-child(2) .step-num { background: var(--pink); color: #fff; rotate: 5deg; }
.step:nth-child(3) .step-num { background: var(--cyan); rotate: -3deg; }
.step:nth-child(4) .step-num { background: var(--lime); rotate: 7deg; }

.game-cover {
  height: 170px; border-radius: 16px; margin-bottom: 18px; display: grid; place-items: center;
  font-size: 76px; border: 3px solid var(--line);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .15);
}
.kids-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.game-shot { display: block; height: auto; aspect-ratio: 600 / 373; overflow: hidden; background: var(--ink); position: relative; }
.game-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.game-shot:hover img { transform: scale(1.05); }
.game-shot::after {
  content: "▶"; position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 24px; color: var(--ink); background: var(--yellow); border: 3px solid var(--line); border-radius: 50%;
  box-shadow: var(--shadow-sm); opacity: .95;
}
.idea {
  font-weight: 800; font-size: 15px; padding: 10px 14px; border: 2px dashed var(--purple); border-radius: 14px;
  background: color-mix(in srgb, var(--purple) 8%, var(--surface));
}
.idea::before { content: "💡 Идея ребёнка: "; color: var(--purple); }
.tag {
  align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--yellow); color: var(--ink); margin-bottom: 10px;
}

/* Тарифы */
.price-card { position: relative; }
.price-card:nth-child(1) { background: color-mix(in srgb, var(--cyan) 14%, var(--surface)); }
.price-card:nth-child(3) { background: color-mix(in srgb, var(--lime) 16%, var(--surface)); }
.price-card.featured { background: color-mix(in srgb, var(--pink) 12%, var(--surface)); transform: rotate(-1deg); }
.price-card.featured::before {
  content: "⭐ Хит"; position: absolute; top: -18px; right: 20px; rotate: 6deg;
  font-family: "Unbounded", sans-serif; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; border: 3px solid var(--line); box-shadow: var(--shadow-sm);
}
.price { font-size: 34px; font-weight: 900; margin: 4px 0 12px; }
.price small { font-family: "Nunito", sans-serif; font-size: 15px; color: var(--muted); font-weight: 800; }
.list { list-style: none; padding: 0; margin: 0 0 20px; }
.list li { padding-left: 32px; position: relative; margin: 10px 0; font-weight: 700; }
.list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: var(--ink); background: var(--lime); border: 2px solid var(--line); border-radius: 7px;
}

/* Форма заказа */
.order-box {
  background: var(--surface); border: 3px solid var(--line); border-radius: 28px;
  padding: clamp(20px, 4vw, 44px); box-shadow: 8px 8px 0 var(--ink); max-width: 840px; margin: 36px auto 0;
}
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.tariffs label {
  border: 3px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; font-weight: 900;
  background: var(--bg); transition: transform .1s, box-shadow .1s;
}
.tariffs label span { display: block; font-weight: 700; color: var(--muted); font-size: 14px; }
.tariffs input { position: absolute; opacity: 0; }
.tariffs label:has(input:checked) { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.tariffs label:has(input:checked) span { color: var(--ink); }
.tariffs label:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
@media (max-width: 600px) { .tariffs { grid-template-columns: 1fr; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 900; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 600; color: var(--text); background: var(--bg);
  border: 3px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--purple); }
.hint { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 15px; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--pink); }
.form-error { color: var(--pink); font-weight: 900; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.order-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; font-weight: 800; }
.order-total b { font-family: "Unbounded", sans-serif; font-size: 26px; }
.success { text-align: center; padding: 20px 0; }
.success .big { font-size: 72px; display: inline-block; animation: bob 2s ease-in-out infinite; }
.trap { position: absolute; left: -9999px; }

/* Конструктор игры */
.builder {
  border: 3px dashed var(--purple); border-radius: 20px; padding: 18px; margin-bottom: 22px;
  background: color-mix(in srgb, var(--purple) 6%, var(--surface));
}
.builder-title { margin-bottom: 4px; }
.builder-group { margin-top: 16px; }
.builder-group legend { font-weight: 900; font-size: 15px; margin-bottom: 8px; padding: 0; }
.builder-group { border: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-weight: 800; font-size: 14px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.chip input:checked + span { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.chip input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.drawing { margin-top: 18px; }
.drawing input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drawing-drop {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer;
  border: 3px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.drawing input:focus-visible + .drawing-drop, .drawing-drop:focus-within { outline: 3px solid var(--purple); }
.drawing-icon { font-size: 36px; }
.drawing-drop img { margin-left: auto; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); }

/* Блок сертификата на главной */
.gift-promo { padding: 24px 0; }
.promo-card { flex-direction: row; gap: 28px; align-items: center; background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); }
.promo-card:hover { transform: none; }
.promo-emoji { font-size: 96px; rotate: -8deg; }
@media (max-width: 700px) { .promo-card { flex-direction: column; text-align: center; } .promo-card .actions { justify-content: center; } }

/* Сертификат в анкете */
.gift-box { margin: 18px 0 4px; border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; background: var(--bg); }
.gift-box summary { font-weight: 900; cursor: pointer; }
.gift-row { display: flex; gap: 10px; margin-top: 12px; }
.gift-row input {
  flex: 1; min-width: 0; font: inherit; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 3px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--surface); color: var(--text);
}

/* FAQ */
.faq { max-width: 840px; margin: 30px auto 0; }
.faq details {
  background: var(--surface); border: 3px solid var(--line); border-radius: 18px; padding: 16px 22px;
  margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary { font-weight: 900; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Unbounded", sans-serif; font-size: 20px; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* Подвал */
.footer { background: var(--ink); color: #cfc8f0; padding: 36px 0; font-size: 15px; border-top: 3px solid var(--line); }
.footer .container { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer a { color: #fff; font-weight: 700; }

/* SEO-страницы */
.seo-hero .container.seo-hero-in { display: block; }
.seo-hero-in > * { max-width: 860px; }
.crumbs { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.idea-emoji { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.kid-mini-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kid-mini { text-decoration: none; color: var(--text); padding: 14px; }
.kid-mini img { width: 100%; aspect-ratio: 600 / 373; object-fit: cover; border: 3px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.kid-mini h3 { margin-bottom: 4px; }
.kid-mini p { margin: 0; font-weight: 600; }
.footer-links { flex-basis: 100%; order: -1; line-height: 1.9; }

/* Текстовые страницы */
.contacts-grid { margin: 24px 0 8px; }
.page { max-width: 840px; padding: 48px 0 72px; }
.page h1 { font-size: clamp(26px, 5vw, 40px); }
.page h2 { font-size: 21px; margin-top: 1.6em; }
