:root {
  --bg: #0f1218;
  --surface: #1a1f28;
  --line: #2a313d;
  --text: #e8ecf2;
  --muted: #9aa5b4;
  --accent: #f5c542;
  --radius: 10px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 24px 0 8px; }

.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; border-top: 1px solid var(--line); }

/* Заглушки вместо текста */
.ph { height: 3.2em; margin: 0 0 12px; border-radius: 6px; background: var(--surface); }
.ph--short { height: 1em; width: 70%; }

/* Header */
.header { border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; position: relative; }
.burger { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 8px 16px; border-bottom: 1px solid var(--line); z-index: 10; }
.nav.is-open { display: flex; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 0; }
@media (min-width: 768px) {
  .burger { display: none; }
  .nav { display: flex; position: static; flex-direction: row; gap: 24px; padding: 0; border: 0; }
}

/* Hero */
.hero { padding: 32px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.intro { max-height: 7em; overflow: hidden; }
.intro.is-open { max-height: none; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; background: var(--accent); color: #1a1400; font-weight: 600; text-decoration: none; text-align: center; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 8px 0; font: inherit; }
.btn-link[hidden] { display: none; }

/* Ranking */
.ranking { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border-radius: var(--radius); }
.card[hidden] { display: none; }
.card__rank { font-weight: 700; color: var(--accent); }
.card__logo { width: 120px; aspect-ratio: 16/9; object-fit: contain; padding: 6px; background: var(--line); border-radius: 6px; }
.card__name { margin: 0 0 4px; font-size: 1.05rem; }
.card__bonus { margin: 0; color: var(--accent); font-weight: 600; }
.card__rating { color: var(--muted); white-space: nowrap; }
.card__rating b { color: var(--text); font-size: 1.2rem; }
.card .btn { white-space: nowrap; }
@media (max-width: 767px) {
  .card__info, .card .btn { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .card { grid-template-columns: 32px 120px 1fr auto auto; }
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); }

/* Review */
.review { padding: 16px; background: var(--surface); border-radius: var(--radius); }
.review h3 { margin-top: 0; }
.review .ph { background: var(--line); }
.review h4 { margin: 12px 0 6px; }
.review ul { padding-left: 18px; margin: 0 0 16px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details .ph { margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; }
.age { font-weight: 700; color: #ff6b6b; }

/* Контент */
.section p, .section li { color: #cfd6e0; }
.section ul, .section ol { padding-left: 20px; }
.section li { margin-bottom: 6px; }
.figure { margin: 0 0 20px; }
.figure img { width: 100%; border-radius: var(--radius); }
.todo { color: #ff9f43; font-style: italic; }
.review + .review { margin-top: 16px; }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review__head h3 { margin: 0; }
.review__logo { width: 120px; aspect-ratio: 16/9; object-fit: contain; padding: 6px; background: var(--bg); border-radius: 6px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.specs div { background: var(--bg); border-radius: 6px; padding: 8px 10px; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.review__tip { font-size: 15px; }
@media (min-width: 768px) { .specs { grid-template-columns: repeat(5, 1fr); } }
.review__shot { margin: 0 0 12px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg); }
.review__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Технические страницы */
.page .container { max-width: 820px; }
.page h2 { margin-top: 32px; }
.contact-mail { font-size: 1.3rem; font-weight: 700; }
.callout { padding: 12px 14px; background: var(--surface); border-left: 4px solid #ff6b6b; border-radius: 6px; }
