/* L2Cruma — light premium theme: tokens, base, header, footer, buttons and the inner public pages.
   Homepage sections: home.css. Personal cabinet uses its own template (ICP_Control_Panel). */
:root {
  --bg: #F8F7F3;
  --bg-deep: #F2EEEA;
  --card: #FFFFFF;
  --ink: #17233D;
  --ink-2: #657086;
  --ink-3: #8A92A3;
  --gold: #B9822D;
  --gold-2: #E9C77A;
  --gold-ink: #8C5F1C;
  --sapphire: #4D86E8;
  --glow: #8CCBFF;
  --up: #159B70;
  --down: #D9535D;
  --line: #E8E3D8;
  --line-2: #F1EDE4;
  --navy: #141E33;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 35, 61, .04), 0 8px 24px rgba(23, 35, 61, .06);
  --shadow-hover: 0 2px 4px rgba(23, 35, 61, .05), 0 14px 34px rgba(23, 35, 61, .10);
  --serif: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.feather { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn-gold { color: #fff; background: linear-gradient(180deg, #CC9A45 0%, var(--gold) 55%, #A06F22 100%); box-shadow: 0 6px 18px rgba(185, 130, 45, .28), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-gold:hover { color: #fff; box-shadow: 0 8px 24px rgba(185, 130, 45, .38), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn-outline { color: var(--ink); background: rgba(255, 255, 255, .85); border-color: var(--line); }
.btn-outline:hover { color: var(--gold-ink); border-color: var(--gold-2); background: #fff; }
.btn-quiet { color: var(--ink-2); background: transparent; }
.btn-quiet:hover { color: var(--ink); }
.btn-ghost-light { color: #F6E7C4; border-color: rgba(233, 199, 122, .55); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { color: #fff; border-color: var(--gold-2); background: rgba(233, 199, 122, .12); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 14px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.link-arrow .feather { transition: transform .2s; }
.link-arrow:hover .feather { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 243, .88); border-bottom: 1px solid rgba(232, 227, 216, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(23, 35, 61, .07); }
.header-inner { max-width: 1480px; margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; transition: height .25s; }
.site-header.is-scrolled .header-inner { height: 64px; }
.brand { flex: none; display: block; }
.brand { display: flex; align-items: center; }
.brand-wordmark { display: block; width: auto; height: 56px; max-width: none; object-fit: contain; transition: height .25s; }
.site-header.is-scrolled .brand-wordmark { height: 48px; }
@media (max-width: 700px) { .brand-wordmark, .site-header.is-scrolled .brand-wordmark { height: 44px; } }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.main-nav > a {
  position: relative; padding: 10px 8px; border-radius: 8px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.main-nav > a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav > a:hover { color: var(--gold-ink); }
.main-nav > a.active { color: var(--gold-ink); }
.main-nav > a.active::after, .main-nav > a:hover::after { transform: scaleX(1); }
.nav-account { display: flex; gap: 10px; margin-left: 14px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(23, 35, 61, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-header.is-scrolled .main-nav { top: 64px; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav > a { padding: 0 6px; min-height: 48px; display: flex; align-items: center; font-size: 14px; border-bottom: 1px solid var(--line-2); }
  .main-nav > a::after { display: none; }
  .nav-account { margin: 16px 0 0; }
  .nav-account .btn { flex: 1; }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 72px; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 32px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand .footer-logo { width: auto; height: 88px; max-width: 100%; object-fit: contain; }
.footer-brand p { margin: 14px 0 18px; max-width: 34ch; color: var(--ink-2); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h2 { margin-bottom: 10px; font: 600 14px/1.3 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--gold-ink); }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } .footer-col a { padding: 10px 0; } }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- inner pages (info, news, downloads, rules, rankings...) */
.inner-hero { position: relative; overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.inner-hero-bg { position: absolute; inset: 0; background: url("../../images/hero-1440.webp") center 30% / cover no-repeat; opacity: .38; }
.inner-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248, 247, 243, .35), var(--bg) 92%); }
.inner-hero-content { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 40px; text-align: center; }
.inner-hero-content h1, .inner-hero-content .hero-title { font: 700 clamp(28px, 4vw, 46px)/1.15 var(--serif); letter-spacing: .04em; color: var(--ink); }
.inner-hero-content p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.section-kicker { display: inline-flex; gap: 6px; margin-bottom: 12px; font: 700 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.section-kicker span { color: var(--gold); }
.section-pad { padding-top: 40px; padding-bottom: 40px; }
.inner-content { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.inner-copy { max-width: 760px; }
.inner-copy h2, .dl-hero h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.25 var(--serif); margin-bottom: 12px; }
.inner-copy p { color: var(--ink-2); }
.inner-panel { margin-top: 18px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink-2); }
.inner-panel h3 { font: 600 18px/1.3 var(--serif); margin-bottom: 8px; color: var(--ink); }
.inner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.feature-card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card .feature-icon { font-size: 22px; color: var(--gold); }
.feature-card h3 { margin: 8px 0 6px; font: 600 18px/1.3 var(--serif); }
.feature-card p { color: var(--ink-2); font-size: 15px; }
.text-link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 700; color: var(--gold-ink); }
/* old template buttons still used by pages */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 10px; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.button-primary { color: #fff; border-color: transparent; background: linear-gradient(180deg, #CC9A45 0%, var(--gold) 55%, #A06F22 100%); box-shadow: 0 6px 18px rgba(185, 130, 45, .28); }
.button-primary:hover { color: #fff; }
.button b { font-weight: 700; }

/* server strip (shown on «О сервере») */
.server-strip[hidden] { display: none; }
.server-strip { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 12px; }
.server-strip > * { flex: 1 1 180px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.strip-intro { display: flex; align-items: center; gap: 10px; font: 600 14px/1.3 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(185, 130, 45, .15); }
.stat-label { display: block; color: var(--ink-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.server-stat strong { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.online-indicator, .offline-indicator { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(21, 155, 112, .16); }
.offline-indicator { background: var(--down); box-shadow: 0 0 0 3px rgba(217, 83, 93, .16); }

/* news list + single article */
.news-page .news-back { display: none; }
.news-page.is-single .news-back { display: inline-flex; margin-bottom: 12px; }
.news-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.news-full { display: none; }
.news-page.is-single .news-feed { grid-template-columns: 1fr; max-width: 860px; margin-left: auto; margin-right: auto; }
.news-page.is-single .news-back { display: flex; width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
.news-page.is-single .pagination { display: none; }
.news-card .news-text p, .news-text p { margin: 0 0 14px; padding: 0; color: var(--ink); font-size: 16.5px; text-indent: 0; }
.news-text h2 { margin: 28px 0 12px; font: 700 clamp(20px, 2.4vw, 26px)/1.25 var(--serif); }
.news-text ul, .news-text ol { margin: 0 0 16px; padding-left: 22px; }
.news-text li { margin: 4px 0; }
.news-page.is-single .news-card-link { display: none; }
.news-page.is-single .news-full { display: block; padding: clamp(20px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.news-page .news-full .news-meta { display: flex; justify-content: flex-start; gap: 16px; padding: 0; color: var(--ink-3); font-size: 13px; letter-spacing: .04em; text-transform: none; }
.news-full h2, .news-full .news-title { margin: 10px 0 18px; font: 700 clamp(24px, 3vw, 34px)/1.2 var(--serif); }
.news-cover { width: 100%; border-radius: 12px; margin-bottom: 20px; }
.news-text { color: var(--ink); font-size: 16.5px; line-height: 1.75; overflow-wrap: anywhere; }
.news-text img { border-radius: 10px; margin: 12px 0; }
.news-text a { text-decoration: underline; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.news-card-link:hover { color: var(--ink); }
.news-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #EFE6D3, #F8F3E7 50%, #E6EEFB); overflow: hidden; }
.news-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb { transform: scale(1.03); }
.news-art-mark { position: absolute; inset: 0; font-size: 0; background: url("../../images/icon-128.webp") center / 72px no-repeat; opacity: .55; }
.news-art > .news-date { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 12px; font-weight: 700; }
.news-corner { display: none; }
.news-card .news-meta { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px 0; color: var(--ink-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { padding: 8px 18px 0; font: 600 18px/1.3 var(--serif); }
.news-card p { padding: 8px 18px 0; color: var(--ink-2); font-size: 14.5px; }
.news-read { margin-top: auto; padding: 14px 18px 18px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news-empty-note { margin-top: 18px; color: var(--ink-3); }
.news-empty-note[hidden] { display: none; }
.pagination { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span, .pagination li { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); list-style: none; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.pagination .atual, .pagination .active { border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }

/* downloads */
.dl-hero { display: flex; gap: 28px; align-items: center; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dl-icon { width: 112px; height: 112px; flex: none; }
.dl-hero p { color: var(--ink-2); }
.dl-meta { color: var(--ink-3); font-size: 14px; }
.dl-alt { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 20px clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.dl-alt-copy { flex: 1 1 320px; }
.dl-alt h3 { margin: 0 0 6px; font: 700 20px/1.3 var(--serif); }
.dl-alt p { margin: 0; color: var(--ink-2); font-size: 15px; }
.dl-alt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-alt-button { color: var(--ink); background: #fff; border-color: var(--line); }
.dl-alt-button:hover { color: var(--gold-ink); border-color: var(--gold-2); background: #FBF4E4; }
.dl-kicker { margin-top: 36px; }
.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.dl-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.dl-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #FBF4E4; color: var(--gold-ink); font-weight: 800; border: 1px solid var(--gold-2); }
.dl-steps b { color: var(--ink); }
.dl-steps code { padding: 1px 6px; border-radius: 6px; background: var(--line-2); font-size: 14px; overflow-wrap: anywhere; }
.dl-grid { display: grid; gap: 16px; margin-top: 24px; }
.dl-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 640px) { .dl-hero { flex-direction: column; align-items: flex-start; } .dl-icon { width: 80px; height: 80px; } }

/* rankings */
.rank-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rank-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.rank-table th { padding: 14px 16px; text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: #FCFBF8; border-bottom: 1px solid var(--line); }
.rank-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tbody tr:hover { background: #FDFAF2; }
.rank-table-small { min-width: 0; }
.rank-pos { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-right: 10px; border-radius: 8px; background: #FBF4E4; color: var(--gold-ink); font-weight: 800; font-size: 13px; }
.rank-switch { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.rank-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin: 0 !important; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.rank-switch a:hover { border-color: var(--gold-2); color: var(--gold-ink); }
.class-rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.class-rank h3 { margin-bottom: 10px; font: 600 17px/1.3 var(--serif); }

/* staff, gallery, videos */
.staff-grid, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.staff-grid img, .gallery-grid img { border-radius: 10px; margin: 10px 0; width: 100%; object-fit: cover; }
.gallery-card { margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-card figcaption { padding: 4px 4px 2px; color: var(--ink); font-size: 14px; }
.gallery-card small { display: block; color: var(--ink-3); }

/* legal stubs */
.legal-list { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); }
.legal-list li { margin: 6px 0; }
.rank-empty { padding: 28px 16px !important; text-align: center; color: var(--ink-3); }
.rank-table .cap { text-transform: capitalize; }
.rank-pos img { width: auto; height: 18px; }
.rank-switch a.active { border-color: var(--gold); background: var(--gold); color: #fff; }
.staff-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.staff-grid .staff-card img { width: 96px; height: 96px; margin: 0 0 6px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-2); background: var(--line-2); }
.staff-card strong { font: 600 18px/1.3 var(--serif); color: var(--ink); }
.staff-card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.info-rates { margin-top: 28px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-rates h3 { font: 600 20px/1.3 var(--serif); }
.info-rates dl { margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.info-rates dl div { padding: 12px; text-align: center; border: 1px solid var(--line-2); border-radius: 10px; }
.info-rates dt { color: var(--ink-3); font-size: 12.5px; }
.info-rates dd { margin: 2px 0 0; font: 800 20px/1.2 var(--sans); color: var(--gold-ink); }
.info-rates p { color: var(--ink-2); }
.feature-card .feature-icon .feather { width: 26px; height: 26px; stroke-width: 1.7; }
.feature-card .text-link { min-height: 40px; margin-top: 6px; }
.info-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .info-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .info-features { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .server-strip > * { flex: 1 1 140px; } .server-strip > .strip-intro { flex-basis: 100%; } }

/* header status pill (main.js) */
.status-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 12.5px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-pill:hover { color: var(--ink); border-color: var(--gold-2); }
.status-pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.status-pill[data-state="online"] .status-pill-dot { background: var(--up); box-shadow: 0 0 0 3px rgba(21, 155, 112, .18); }
.status-pill[data-state="offline"] .status-pill-dot { background: var(--down); box-shadow: 0 0 0 3px rgba(217, 83, 93, .18); }
.status-pill[data-state="offline"] { color: var(--down); }
@media (max-width: 1199px) { .status-pill { margin-left: auto; } .menu-toggle { margin-left: 10px; } }
@media (max-width: 380px) { .status-pill { padding: 0 9px; font-size: 12px; } }

/* rating sites buttons (templates/tops.html) */
.cv-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.cv-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.cv-title { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cv-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cv-slot { display: flex; align-items: center; justify-content: center; min-width: 88px; min-height: 31px; }
.cv-slot:empty { display: none; }
.cv-slot img { max-height: 60px; width: auto; }
.cv-slot a { display: block; line-height: 0; border-radius: 3px; }
.cv-box:not(:has(.cv-slot:not(:empty))) { display: none; }

/* rules page */
.rules-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.rules-toc { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rules-toc strong { display: block; margin-bottom: 8px; font: 600 14px/1.3 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.rules-toc ol { margin: 0; padding-left: 22px; color: var(--ink-3); font-size: 14px; }
.rules-toc li { padding: 3px 0; }
.rules-toc a { color: var(--ink-2); }
.rules-toc a:hover { color: var(--gold-ink); }
.rules-body { display: grid; gap: 16px; max-width: 860px; }
.rules-body section { padding: clamp(18px, 3vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.rules-body h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font: 700 clamp(19px, 2vw, 23px)/1.25 var(--serif); }
.rules-body h2 span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #FBF4E4; border: 1px solid var(--gold-2); color: var(--gold-ink); font: 800 15px/1 var(--sans); }
.rules-body ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); font-size: 16px; line-height: 1.65; }
.rules-body ol li::marker { color: var(--gold); font-weight: 700; }
.rules-body a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .rules-layout { grid-template-columns: 1fr; } .rules-toc { position: static; } .rules-toc ol { columns: 2; column-gap: 24px; } }
@media (max-width: 480px) { .rules-toc ol { columns: 1; } .rules-toc li { padding: 6px 0; } }
.dl-note { margin-top: 20px; color: var(--ink-2); font-size: 14px; }

/* legal documents (terms, privacy): the rules page layout + meta line and requisites */
.legal-meta { margin: 0 0 18px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.legal-page .rules-body ol { font-size: 15.5px; }
.legal-page .rules-body b { color: var(--ink); }
.req-list { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.req-list div { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #FCFBF8; }
.req-list dt { color: var(--ink-3); font-size: 12.5px; }
.req-list dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.legal-single { margin: 0 auto; }

/* News type badge (Новость = sapphire, Обновление = gold) and the forum link of a news item. */
.news-type { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; color: #fff; background: var(--sapphire); vertical-align: middle; }
.news-type-update { background: linear-gradient(180deg, #CC9A45 0%, var(--gold) 100%); }
.news-date .news-type { margin-right: 6px; }
.news-next { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #FBFAF7; text-decoration: none; transition: border-color .2s, background .2s; }
.news-next:hover { border-color: var(--gold-2, #E9C77A); background: #FBF4E4; }
.news-next-label { color: var(--gold, #B9822D); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-next-title { color: var(--ink); font: 700 18px/1.3 var(--serif); }
