/* Музыкальное лото — общий стиль информационных страниц (правила, гайды, статьи, FAQ) */
:root{
  --ink:#1D1D1F; --muted:#6E6E73; --line:#E5E5EA;
  --bg:#F5F5F7; --paper:#FFFFFF; --soft:#F5F5F7;
  --blue:#0071E3; --blue-dark:#0058B0; --blue-soft:#E8F1FD;
  --coral:#FF3B30; --green:#1F9D55; --green-soft:#E6F6EC;
  --amber:#B7791F; --amber-soft:#FFF4DB;
}
*{ box-sizing:border-box; }
html,body{ max-width:100%; overflow-x:hidden; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Manrope',system-ui,sans-serif;
  padding:24px 16px 64px; line-height:1.6;
}
.wrap{ width:100%; max-width:820px; margin:0 auto; }

/* шапка */
.topnav{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 18px; margin-bottom:18px; }
.brand{ display:flex; align-items:center; gap:8px; text-decoration:none; font-weight:700; font-size:1.15rem; color:var(--ink); }
.brand svg{ width:26px; height:26px; }
.nav-links{ display:flex; flex-wrap:wrap; gap:6px 16px; }
.nav-links a{ font-size:.86rem; font-weight:600; color:var(--muted); text-decoration:none; padding:4px 0; border-bottom:2px solid transparent; }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--blue-dark); border-bottom-color:var(--blue); }

/* хлебные крошки */
.crumbs{ font-size:.8rem; color:var(--muted); margin:0 0 12px; }
.crumbs a{ color:var(--muted); text-decoration:none; }
.crumbs a:hover{ text-decoration:underline; }
.crumbs span{ margin:0 6px; opacity:.6; }

/* герой */
.hero{
  position:relative; overflow:hidden; border-radius:22px; color:#fff;
  padding:34px 28px 30px; margin-bottom:16px;
  background:linear-gradient(135deg,#0A84FF 0%,#0058B0 55%,#3A1C8F 100%);
  box-shadow:0 10px 34px rgba(0,88,176,.22);
}
.hero::after{
  content:"♪ ♫ ♪"; position:absolute; right:18px; top:6px; font-size:5.2rem; letter-spacing:.2em;
  color:rgba(255,255,255,.1); font-weight:700; pointer-events:none; white-space:nowrap;
}
.hero.has-img{ background-size:cover; background-position:center; }
.hero .kicker{ display:inline-block; font-size:.74rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  background:rgba(255,255,255,.18); border-radius:999px; padding:4px 11px; margin-bottom:12px; }
.hero h1{ font-size:clamp(1.55rem,4.6vw,2.2rem); line-height:1.18; margin:0 0 10px; font-weight:800; position:relative; z-index:1; max-width:640px; }
.hero p{ margin:0; font-size:1.02rem; opacity:.93; max-width:600px; position:relative; z-index:1; }
.hero .meta{ margin-top:16px; display:flex; flex-wrap:wrap; gap:8px 16px; font-size:.82rem; opacity:.88; position:relative; z-index:1; }
.hero .meta b{ font-weight:700; }

/* карточка контента */
.card{ background:var(--paper); border:1px solid rgba(0,0,0,.06); border-radius:20px; padding:30px 28px 34px; box-shadow:0 2px 24px rgba(0,0,0,.05); }
.card + .card{ margin-top:16px; }
.lead{ font-size:1.08rem; color:#2c2c2e; margin:0 0 18px; }

h2{ font-size:1.38rem; line-height:1.25; margin:38px 0 12px; font-weight:800; scroll-margin-top:16px; }
h2:first-child{ margin-top:0; }
h3{ font-size:1.05rem; margin:22px 0 8px; font-weight:700; }
p,li{ font-size:1rem; margin:0 0 12px; }
ul,ol{ padding-left:22px; margin:0 0 14px; }
li{ margin-bottom:7px; }
a{ color:var(--blue-dark); }
a:hover{ color:var(--blue); }
strong,b{ font-weight:700; }

/* оглавление */
.toc{ background:var(--soft); border-radius:16px; padding:16px 20px; margin:0 0 26px; }
.toc-title{ font-size:.76rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.toc ol{ margin:0; padding-left:20px; columns:2; column-gap:28px; }
.toc li{ font-size:.93rem; margin-bottom:5px; break-inside:avoid; }
.toc a{ text-decoration:none; }
.toc a:hover{ text-decoration:underline; }

/* быстрые факты */
.facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:0 0 26px; }
.fact{ background:var(--blue-soft); border-radius:14px; padding:14px 14px 12px; }
.fact .n{ font-size:1.45rem; font-weight:800; color:var(--blue-dark); line-height:1.1; }
.fact .t{ font-size:.82rem; color:#33415c; margin-top:4px; line-height:1.35; }

/* шаги */
.steps{ list-style:none; padding:0; counter-reset:st; margin:0 0 14px; }
.steps li{ counter-increment:st; position:relative; padding:2px 0 14px 54px; margin:0; }
.steps li::before{
  content:counter(st); position:absolute; left:0; top:0; width:38px; height:38px; border-radius:50%;
  background:var(--blue); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.steps li::after{ content:""; position:absolute; left:18px; top:42px; bottom:4px; width:2px; background:var(--line); }
.steps li:last-child::after{ display:none; }
.steps li b:first-child{ display:block; font-size:1.03rem; margin-bottom:2px; }

/* врезки */
.callout{ border-radius:14px; padding:14px 18px 6px; margin:18px 0; border-left:4px solid var(--blue); background:var(--blue-soft); }
.callout .ct{ font-weight:800; margin-bottom:4px; font-size:.95rem; }
.callout.tip{ background:var(--green-soft); border-left-color:var(--green); }
.callout.warn{ background:var(--amber-soft); border-left-color:#E0A21B; }
.callout p, .callout li{ font-size:.96rem; }

/* сетка карточек */
.grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:12px; margin:14px 0 18px; }
.tile{ background:var(--soft); border-radius:16px; padding:16px 16px 8px; border:1px solid transparent; }
.tile .ic{ font-size:1.7rem; line-height:1; margin-bottom:6px; }
.tile h3{ margin:0 0 4px; font-size:1rem; }
.tile p{ font-size:.92rem; color:#3a3a3c; }
a.tile{ text-decoration:none; color:inherit; display:block; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
a.tile:hover{ transform:translateY(-2px); border-color:var(--blue); box-shadow:0 8px 22px rgba(0,113,227,.12); }

/* таблицы */
.tbl-wrap{ overflow-x:auto; margin:12px 0 18px; border:1px solid var(--line); border-radius:14px; }
table{ border-collapse:collapse; width:100%; font-size:.93rem; min-width:480px; }
th{ background:var(--soft); text-align:left; font-weight:700; padding:10px 14px; }
td{ padding:10px 14px; border-top:1px solid var(--line); vertical-align:top; }

/* фото */
.photo{ display:block; width:100%; height:auto; border-radius:16px; margin:20px 0; }

/* мини-поля */
.mini-examples{ display:flex; justify-content:center; gap:20px; flex-wrap:wrap; background:var(--soft); border-radius:16px; padding:20px 14px; margin:12px 0 6px; }
.mini-example{ display:flex; flex-direction:column; align-items:center; gap:7px; }
.mini-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:2px; background:var(--ink); padding:5px; border-radius:6px; }
.mini-grid.g5{ grid-template-columns:repeat(5,1fr); }
.mini-grid.g4{ grid-template-columns:repeat(4,1fr); }
.mini-cell{ width:11px; height:11px; border-radius:2px; background:rgba(255,255,255,.18); }
.mini-cell.hit{ background:#4DA3FF; }
.mini-label{ font-size:.72rem; color:var(--muted); text-align:center; max-width:90px; line-height:1.25; }

/* интерактивный тренажёр линии */
.sim{ background:var(--soft); border-radius:18px; padding:18px; margin:14px 0 8px; }
.sim-top{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; margin-bottom:12px; }
.sim-top b{ font-size:.95rem; }
.sim-btns{ display:flex; gap:6px; }
.sim-btns button{ font:inherit; font-size:.82rem; font-weight:700; padding:6px 12px; border-radius:9px; border:1px solid var(--line); background:#fff; cursor:pointer; color:var(--ink); }
.sim-btns button:hover{ border-color:var(--blue); color:var(--blue-dark); }
.sim-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; max-width:420px; margin:0 auto; }
.sim-cell{ aspect-ratio:1/0.82; border-radius:10px; border:1px solid var(--line); background:#fff; font:inherit; font-size:.72rem; font-weight:600; padding:4px; cursor:pointer; line-height:1.2; color:var(--ink);
  display:flex; align-items:center; justify-content:center; text-align:center; transition:background .12s, color .12s, transform .12s; }
.sim-cell:hover{ transform:scale(1.03); }
.sim-cell.on{ background:var(--blue); color:#fff; border-color:var(--blue); text-decoration:line-through; text-decoration-color:rgba(255,255,255,.7); }
.sim-cell.win{ background:var(--green); border-color:var(--green); }
.sim-msg{ text-align:center; margin-top:12px; font-weight:700; min-height:1.5em; font-size:.98rem; }
.sim-msg.ok{ color:var(--green); }

/* чек-лист */
.check{ list-style:none; padding:0; }
.check li{ position:relative; padding-left:32px; }
.check li::before{ content:"✓"; position:absolute; left:0; top:1px; width:22px; height:22px; border-radius:50%; background:var(--green-soft); color:var(--green); font-weight:800; font-size:.8rem; display:flex; align-items:center; justify-content:center; }

/* сценарий вечера */
.timeline{ border-left:3px solid var(--blue-soft); margin:12px 0 18px 8px; padding-left:0; list-style:none; }
.timeline li{ position:relative; padding:0 0 16px 22px; margin:0; }
.timeline li::before{ content:""; position:absolute; left:-9px; top:6px; width:15px; height:15px; border-radius:50%; background:var(--blue); border:3px solid #fff; box-shadow:0 0 0 2px var(--blue-soft); }
.timeline .tm{ font-size:.78rem; font-weight:800; color:var(--blue-dark); letter-spacing:.04em; text-transform:uppercase; }

/* реплики ведущего */
.say{ background:#1D1D1F; color:#F5F5F7; border-radius:14px; padding:16px 20px 6px; margin:14px 0 18px; }
.say .st{ font-size:.72rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:#8FC4FF; margin-bottom:8px; }
.say p{ font-size:.97rem; font-style:italic; }

/* FAQ */
.faq details{ border:1px solid var(--line); border-radius:14px; margin:0 0 10px; background:#fff; }
.faq summary{ cursor:pointer; list-style:none; padding:15px 46px 15px 18px; font-weight:700; font-size:1rem; position:relative; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:18px; top:50%; transform:translateY(-50%); font-size:1.4rem; color:var(--blue); font-weight:500; }
.faq details[open] summary::after{ content:"–"; }
.faq details[open]{ border-color:var(--blue); box-shadow:0 4px 18px rgba(0,113,227,.08); }
.faq .ans{ padding:0 18px 6px; color:#2c2c2e; }
.faq-group{ font-size:.78rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:26px 0 10px; }

/* CTA */
.cta-band{ margin:30px 0 4px; border-radius:18px; padding:24px 22px; text-align:center; background:linear-gradient(135deg,#F0F6FF,#EAF1FF); border:1px solid #D6E6FB; }
.cta-band h3{ margin:0 0 6px; font-size:1.2rem; }
.cta-band p{ color:#3a3a3c; font-size:.95rem; }
.cta-btn{ display:inline-block; background:var(--blue); color:#fff !important; font-weight:700; font-size:1rem; text-decoration:none; padding:14px 26px; border-radius:12px; transition:filter .15s, transform .15s; }
.cta-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.cta-note{ display:block; margin-top:9px; font-size:.8rem; color:var(--muted); }

/* похожие статьи */
.related{ margin-top:30px; }
.related h2{ font-size:1.15rem; margin-bottom:10px; }

.back{ display:inline-block; margin-top:22px; font-size:.9rem; color:var(--ink); text-decoration:none; font-weight:600; opacity:.85; }
.back:hover{ opacity:1; text-decoration:underline; }
.footer-links{ margin-top:30px; padding-top:18px; border-top:1px solid var(--line); font-size:.82rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px 16px; }
.footer-links a{ color:var(--muted); }

@media (max-width:620px){
  body{ padding:16px 12px 48px; }
  .card{ padding:22px 18px 26px; border-radius:18px; }
  .hero{ padding:26px 20px 22px; border-radius:18px; }
  .hero::after{ font-size:3.4rem; }
  h2{ font-size:1.22rem; }
  .toc ol{ columns:1; }
  .steps li{ padding-left:48px; }
}
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } *{ transition:none !important; } }

/* 3D-иконки и плитки с центрированием (раздел «Статьи», «Читайте также») */
.ic3d{ display:block; width:96px; height:96px; object-fit:contain; margin:0 auto; filter:drop-shadow(0 10px 14px rgba(40,60,120,.18)); transition:transform .25s cubic-bezier(.3,1.5,.5,1); }
.tile-c{ text-align:center; padding:22px 18px 14px; }
.tile-c .ic{ margin:0 0 10px; }
.tile-c h3{ font-size:1.02rem; margin:0 0 6px; }
a.tile-c:hover .ic3d{ transform:translateY(-4px) scale(1.06) rotate(-2deg); }
.tile-c small{ display:inline-block; margin-top:2px; }

/* все плитки — по центру, включая те, где внутри список */
.tile{ text-align:center; }
.tile .ic3d{ margin:0 auto; width:96px; height:96px; }
.tile .ic{ margin:0 0 10px; }
.tile ul{ list-style:none; padding:0 !important; margin:6px 0 8px !important; }
.tile ul li{ text-align:center; }
