/* MCRated — своя айдентика, не миллидовская (приказ владельца 09.11.2026):
   светлая тема, системный шрифт (один набор на кириллицу, латиницу, деванагари и китайский),
   оценка 0–10 цветной плашкой, таблицы как главный носитель данных. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0d1321;
  --muted: #5b6474;
  --faint: #8a93a3;
  --line: #e3e7ee;
  --accent: #ff4f1f;
  --accent-ink: #ffffff;
  --good: #12a150;
  --mid: #e8a317;
  --bad: #e5484d;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 750; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* Шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: inline-flex; align-items: baseline; gap: 1px; font-size: 21px; font-weight: 850; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--accent); font-weight: 850; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current] { color: var(--ink); background: var(--bg); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(13, 19, 33, 0.12); min-width: 160px; }
.lang li a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg); }
@media (max-width: 899px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 8px; }
  .lang { margin-left: auto; }
}

/* Заголовок страницы */
.head { padding: 40px 0 8px; }
.head p { margin: 12px 0 0; max-width: 760px; font-size: 18px; color: var(--muted); }
.crumbs { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.meta { margin-top: 14px; font-size: 14px; color: var(--faint); }

.block { margin-top: 40px; }
.block > h2 { margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Оценка 0–10 */
.score { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.score.lg { min-width: 84px; height: 64px; border-radius: 14px; font-size: 34px; }
.s-good { background: var(--good); }
.s-mid { background: var(--mid); }
.s-bad { background: var(--bad); }

/* Плитки категорий на главной */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cat { padding: 20px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.cat:hover { border-color: var(--ink); }
.cat:active { transform: scale(0.99); }
.cat h3 { font-size: 20px; font-weight: 750; }
.cat-n { font-size: 14px; color: var(--muted); }
.cat ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cat li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 15px; }
.cat li i { font-style: normal; color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.cat li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cat .score { min-width: 40px; height: 26px; font-size: 14px; border-radius: 7px; }

/* Таблица рейтинга */
.rank { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.rank td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.rank tr:last-child td { border-bottom: 0; }
.rank tbody tr:hover { background: #fafbfc; }
.rank .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank .pos { width: 44px; color: var(--faint); font-weight: 800; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: var(--bg); flex: none; }
.who .ph { width: 36px; height: 36px; border-radius: 9px; background: var(--bg); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--faint); }
.who a { font-weight: 700; text-decoration: none; }
.who a:hover { text-decoration: underline; }
.who small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--faint); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.tag { padding: 2px 7px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag.on { background: #e8f6ee; color: #0b7a3b; }
@media (max-width: 760px) {
  .rank thead { display: none; }
  .rank, .rank tbody, .rank tr, .rank td { display: block; width: 100%; }
  .rank tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
  .rank td { padding: 0; border: 0; }
  .rank td.pos { grid-row: 1; }
  .rank td.c-who { grid-row: 1; grid-column: 2; }
  .rank td.c-score { grid-row: 1; grid-column: 3; }
  .rank td.c-x { grid-column: 2 / -1; font-size: 14px; color: var(--muted); }
  .rank td.c-x[data-l]::before { content: attr(data-l) ': '; color: var(--faint); }
  .rank td.c-hide { display: none; }
  .who small { max-width: 220px; }
}

/* Карточка */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 36px 0 0; }
.hero .who img, .hero .who .ph { width: 64px; height: 64px; border-radius: 14px; font-size: 24px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 17px; max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn:active { transform: translateY(1px); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; } }
.facts { margin: 0; padding: 8px 20px; }
.facts div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.parts { padding: 18px 20px; display: grid; gap: 12px; }
.part { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 4px 12px; align-items: center; font-size: 15px; }
.part span { color: var(--muted); }
.part b { text-align: right; font-variant-numeric: tabular-nums; }
.part .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.part .bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.part small { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }
.prose { padding: 20px; font-size: 16px; color: #2b3341; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin: 0; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Языки на корне */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.langs a { padding: 18px 20px; font-size: 20px; font-weight: 700; text-decoration: none; }
.langs a:hover { border-color: var(--ink); }

/* Подвал */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.foot p { margin: 0; max-width: 620px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

/* Фильтры над таблицей */
.flt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; margin-bottom: 12px; }
.flt select { height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6474' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font: 600 14px var(--font); color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.flt output { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .flt { gap: 6px; } .flt select { flex: 1 1 140px; } .flt output { flex-basis: 100%; margin: 4px 0 0; } }
/* серверы: плитки фасетов */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color 0.15s ease; }
.tile:hover { border-color: var(--ink); }
.tile b { font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.block > h3 { margin: 22px 0 10px; font-size: 15px; color: var(--muted); }

/* Отзывы и владелец */
.rvs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.rvs li { padding: 16px 18px; }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv-top .score { min-width: 32px; height: 26px; font-size: 14px; border-radius: 7px; }
.rv-top time { margin-left: auto; font-size: 13px; color: var(--faint); }
.rvs p { margin: 8px 0 0; white-space: pre-line; }
.rvs .reply { padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.ugc { display: grid; gap: 12px; margin-top: 8px; }
.rv-form { display: grid; gap: 10px; max-width: 640px; }
.rv-form textarea { min-height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: 400 15px/1.5 var(--font); resize: vertical; }
.rv-form output { font-size: 14px; color: var(--muted); }
.stars-in { display: flex; gap: 6px; }
.stars-in label { cursor: pointer; }
.stars-in input { position: absolute; opacity: 0; }
.stars-in span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; background: var(--surface); }
.stars-in input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.stars-in input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.linkbtn { padding: 0; border: 0; background: none; font: 600 15px var(--font); color: var(--ink); text-decoration: underline; cursor: pointer; }
.claim code { padding: 2px 6px; border-radius: 6px; background: var(--bg); font-size: 13px; word-break: break-all; }
.tags.facets { margin-top: 14px; max-width: none; } .tags.facets a { text-decoration: none; padding: 6px 12px; font-size: 13px; } .tags.facets a:hover { background: var(--line); }
