:root{font-size:16px}
/* FIX 1 — reset + base (top of file) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0ea5e9;
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: #0284c7;
  text-decoration: underline;
}

a:visited {
  color: #0ea5e9;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  color: #0f1224;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --header: #0f1224;
  --blue: #3b82f6;
  --green: #10b981;
  --updated-bg: #fef3c7;
  --updated-text: #92400e;
  --max: 1140px;
}

/* FIX 2 — header */
.site-header {
  background: #0f1224;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.site-header__logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-header__logo:hover {
  color: #14b8a6;
  text-decoration: none;
}

.site-header__logo:visited {
  color: #fff;
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header__nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-header__nav a:hover {
  color: #14b8a6;
  text-decoration: none;
}

.site-header__nav a:visited {
  color: rgba(255, 255, 255, 0.85);
}

.site-header__cta {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .site-header__nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 0.4rem 0.65rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .site-header__nav a,
  .site-header__nav a:visited {
    font-size: 0.88rem;
    min-height: 40px;
    padding: 0.45rem 0.4rem;
  }

  .site-header__cta {
    margin-left: auto;
  }
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-row .btn-cta {
  align-self: center;
}

/* FIX 3 — hero (index) */
.hero {
  background: linear-gradient(135deg, #0f1224 0%, #1e293b 50%, #0f1224 100%);
  color: #f9fafb;
  padding: 48px 0 64px;
  margin: 0 0 32px;
  border-radius: 0 0 24px 24px;
}

@media (min-width: 769px) {
  .hero {
    padding: 80px 0;
    margin: 0 0 48px;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
  }
}

.hero__rating {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__rating span {
  color: #94a3b8;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
  color: #f9fafb !important;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 28px 0;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s, transform 0.2s, box-shadow 0.2s, border-color 0.15s, background 0.15s;
}

.btn--primary {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff !important;
}

.btn--ghost {
  background: transparent;
  color: #f9fafb !important;
  border: 2px solid rgba(249, 250, 250, 0.25);
}

.btn--ghost:hover {
  background: rgba(249, 250, 250, 0.08);
  border-color: rgba(249, 250, 250, 0.45);
  text-decoration: none;
  color: #f9fafb !important;
}

.hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual img {
  max-width: 280px;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.updated-line {
  font-size: 0.9em;
  color: #6B7280;
  margin: 0 0 24px 0;
}

.calc-example {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table-scroll th {
  background: #0f1224;
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
}

.table-scroll td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.table-scroll tr:nth-child(even) td {
  background: #f8fafc;
}

.layout-pillar {
  display: block;
}

.pillar-main {
  min-width: 0;
}

@media (min-width: 1100px) {
  .layout-pillar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
  }

  .layout-pillar .toc {
    position: sticky;
    top: 88px;
  }
}

/* FIX 4 — TOC */
.toc {
  background: #f1f5f9;
  border-left: 4px solid #14b8a6;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  border-radius: 0 12px 12px 0;
}

@media (min-width: 1100px) {
  .layout-pillar .toc {
    margin: 0;
  }
}

.toc h2 {
  margin-top: 0;
  font-size: 1.15rem;
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
  color: #0f1224;
}

.toc ol {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  margin: 0;
}

@media (min-width: 1100px) {
  .layout-pillar > .toc ol {
    columns: 1;
  }
}

.toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.toc a {
  color: #0f1224;
  text-decoration: none;
}

.toc a:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

.toc a:visited {
  color: #0f1224;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

article > h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}


p,
li {
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.tldr {
  background: #F0F9FF;
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 1.05em;
}

.btn-tldr,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  margin-right: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3B82F6, #14B8A6);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-tldr:hover,
.btn-cta:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.updated {
  display: inline-block;
  background: var(--updated-bg);
  color: var(--updated-text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 12px;
}

/* FIX 6 — details */
details,
details.section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

details > summary,
details.section > summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

details > summary::-webkit-details-marker,
details.section > summary::-webkit-details-marker {
  display: none;
}

details > summary::after,
details.section > summary::after {
  content: "▾";
  transition: transform 0.2s;
  flex-shrink: 0;
  color: #64748b;
}

details[open] > summary::after,
details.section[open] > summary::after {
  transform: rotate(180deg);
}

details.section > summary {
  font-size: 1.15rem;
  color: #0f1224;
}

details > div {
  padding-top: 0.75rem;
}

.table-scroll table.data th {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.table-scroll table.data tbody tr:hover td {
  background: #f0f9ff;
}

.table-scroll table.data code {
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
  color: #92400e;
}

.pros-cons {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

/* FIX 5 — footer */
.site-footer {
  background: #0f1224;
  color: rgba(248, 250, 252, 0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 1.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  padding: 0;
  border: none;
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(248, 250, 252, 0.7);
  text-decoration: none;
}

.site-footer a:hover {
  color: #14b8a6;
  text-decoration: underline;
}

.site-footer a:visited {
  color: rgba(248, 250, 252, 0.7);
}

.site-footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.55);
}

.site-footer__bottom strong {
  color: #fbbf24;
}

.site-footer__bottom a {
  color: rgba(248, 250, 252, 0.75);
}

.site-footer__bottom a:hover {
  color: #14b8a6;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--muted);
}

.faq-block dt {
  font-weight: 600;
  margin-top: 16px;
}

.faq-block dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.sticky-mirror {
  display: block;
  margin: 12px 0;
  padding: 12px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 0.95rem;
}

.sticky-mirror a {
  font-weight: 600;
}

/* === HERO === */
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0F1224 0%,#1E293B 50%,#0F1224 100%);color:#F8FAFC;padding:3.5rem 0 4rem}
.hero::after{content:"";position:absolute;right:-15%;top:50%;transform:translateY(-50%);width:600px;height:600px;background:radial-gradient(circle,rgba(20,184,166,.28),transparent 65%);pointer-events:none;z-index:0}
.hero::before{content:"";position:absolute;left:-10%;bottom:-30%;width:400px;height:400px;background:radial-gradient(circle,rgba(14,165,233,.20),transparent 60%);pointer-events:none;z-index:0}
.hero .container{position:relative;z-index:1}
.hero__grid{display:grid;grid-template-columns:1fr;gap:32px;align-items:center;max-width:1140px;margin:0 auto}
@media(min-width:900px){.hero__grid{grid-template-columns:1.25fr 1fr;gap:56px}}
.hero__rating{color:#FBBF24;font-weight:600;margin-bottom:1rem;font-size:.95rem}
.hero__rating span{color:rgba(248,250,252,.7);font-weight:400}
.hero h1{color:#fff;margin-bottom:1.25rem;font-size:clamp(2rem,5vw,3.25rem);font-weight:800;letter-spacing:-.025em;line-height:1.1}
.hero__lead{font-size:1.15rem;color:rgba(248,250,252,.85);margin-bottom:1.75rem;max-width:560px}
.hero__cta{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:2rem}
.hero__trust,.hero__trust li{list-style:none!important}
.hero__trust{padding:0!important;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem 1.25rem;font-size:.95rem;color:#A7F3D0}
.hero__visual{display:flex;justify-content:center;position:relative}
.hero__visual img{max-width:300px;width:100%;border-radius:32px;box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.05);transform:rotate(-3deg);transition:transform .4s}
.hero__visual img:hover{transform:rotate(0)}
.hero__visual::before{content:"500%";position:absolute;top:-10px;right:10%;background:linear-gradient(135deg,#FBBF24,#F59E0B);color:#0F1224;font-weight:900;font-size:1.1rem;padding:.6rem 1rem;border-radius:999px;box-shadow:0 8px 24px rgba(251,191,36,.4);transform:rotate(8deg);z-index:2}

/* === BUTTONS (override !important чтобы перебить :visited) === */
a.btn,a.btn:visited,.btn{display:inline-block!important;padding:.95rem 1.75rem!important;border-radius:10px!important;font-weight:700!important;font-size:1rem!important;text-decoration:none!important;transition:all .15s!important;border:none!important;line-height:1.2!important;cursor:pointer}
a.btn--primary,a.btn--primary:visited,.btn--primary{background:linear-gradient(135deg,#14B8A6,#0EA5E9)!important;color:#fff!important;box-shadow:0 4px 14px rgba(20,184,166,.35)!important}
a.btn--primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(20,184,166,.5)!important;text-decoration:none!important}
a.btn--ghost,a.btn--ghost:visited,.btn--ghost{background:transparent!important;color:#fff!important;border:2px solid rgba(255,255,255,.4)!important}
a.btn--ghost:hover{background:rgba(255,255,255,.1)!important;border-color:#14B8A6!important;text-decoration:none!important}

/* === HEADER NAV === */
.site-header__nav a,.site-header__nav a:visited{color:#E2E8F0!important;font-size:.95rem;font-weight:500;text-decoration:none;padding:.6rem .45rem;display:inline-flex;align-items:center;min-height:44px}
.site-header__nav a:hover{color:#14B8A6!important;text-decoration:none}

/* === FEATURE BAR (плашка под hero) === */
.feature-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:-1.5rem auto 2.5rem;max-width:1140px;padding:0 1.25rem;position:relative;z-index:5}
.feature-bar__item{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:1.1rem 1.25rem;display:flex;gap:.85rem;align-items:center;box-shadow:0 4px 16px rgba(15,18,36,.06)}
.feature-bar__icon{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#14B8A6,#0EA5E9);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.3rem;flex-shrink:0}
.feature-bar__title{font-weight:800;font-size:.92rem;color:#0F1224;line-height:1.2}
.feature-bar__sub{font-size:.78rem;color:#64748B;margin-top:2px}

/* === GAME GRID === */
.game-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;margin:2rem 0}
.game-card{position:relative;border-radius:16px;overflow:hidden;background:#0F1224;aspect-ratio:4/3;display:block;text-decoration:none;box-shadow:0 8px 24px rgba(15,18,36,.12);transition:transform .25s,box-shadow .25s}
.game-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(15,18,36,.25);text-decoration:none}
.game-card img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.game-card:hover img{transform:scale(1.06)}
.game-card__overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(15,18,36,.92) 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:1.25rem}
.game-card__title{color:#fff;font-size:1.15rem;font-weight:800;margin:0}
.game-card__meta{color:#A7F3D0;font-size:.82rem;font-weight:600;margin-top:.25rem}
.game-card__badge{position:absolute;top:.75rem;left:.75rem;background:linear-gradient(135deg,#FBBF24,#F59E0B);color:#0F1224;padding:.3rem .65rem;border-radius:6px;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}

/* === SCREENSHOTS CAROUSEL === */
.screens{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:1.5rem 0;margin:1.5rem -1.25rem;padding-left:1.25rem;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.screens::-webkit-scrollbar{height:6px}
.screens::-webkit-scrollbar-thumb{background:#14B8A6;border-radius:3px}
.screens figure{flex:0 0 240px;scroll-snap-align:start;margin:0;border-radius:24px;overflow:hidden;background:#0F1224;box-shadow:0 12px 32px rgba(0,0,0,.18);position:relative}
.screens img{width:100%;height:auto;display:block;border-radius:24px}
.screens figcaption{padding:.6rem .9rem;background:#0F1224;color:rgba(255,255,255,.85);font-size:.82rem;text-align:center}

/* === H2 АКЦЕНТ === */
h2{font-size:clamp(1.5rem,3.2vw,2.1rem)!important;font-weight:800!important;letter-spacing:-.02em;margin:3rem 0 1rem!important;padding-bottom:.5rem!important;border-bottom:none!important;position:relative}
h2::after{content:"";position:absolute;left:0;bottom:0;width:48px;height:3px;background:linear-gradient(90deg,#14B8A6,#0EA5E9);border-radius:2px}

/* === TABLES === */
.table-scroll{overflow-x:auto;margin:1.5rem 0;border-radius:12px;border:1px solid #E2E8F0;-webkit-overflow-scrolling:touch}
.table-scroll table{width:100%;min-width:520px;border-collapse:collapse;font-size:.93rem}
.table-scroll th{background:linear-gradient(135deg,#0F1224,#1E293B);color:#fff;text-align:left;padding:.85rem 1.1rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.table-scroll td{padding:.8rem 1.1rem;border-bottom:1px solid #F1F5F9}
.table-scroll tr:last-child td{border-bottom:none}
.table-scroll tr:nth-child(even) td{background:#F8FAFC}
.table-scroll tr:hover td{background:#ECFEFF}

/* === FOOTER BRAND === */
.site-footer__brand{grid-column:1/-1;display:flex;align-items:center;gap:1rem;padding-bottom:1.5rem;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:1rem}
.site-footer__brand .logo{font-size:1.6rem;font-weight:900;background:linear-gradient(135deg,#14B8A6,#0EA5E9);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* === MOBILE === */
@media(max-width:640px){
  .hero{padding:2rem 0 2.5rem}
  .hero h1{font-size:1.75rem}
  .hero__cta{flex-direction:column;align-items:stretch}
  .hero__cta .btn{width:100%;text-align:center}
  .hero__trust{grid-template-columns:1fr;gap:.4rem}
  .feature-bar{margin-top:0;grid-template-columns:1fr 1fr}
  .toc ol{columns:1}
  h2::after{width:36px}
}

@media(min-width:769px) and (max-width:1024px){
  .site-header__nav{gap:.75rem}
  .site-header__nav a{padding:.55rem .4rem;font-size:.9rem}
}

/* === COLOR HOTFIX (hero/footer readability) === */
.hero__trust li{color:#A7F3D0!important}
.site-footer,.site-footer p,.site-footer li{color:rgba(248,250,252,.75)!important}
.site-footer__bottom,.site-footer__bottom p{color:rgba(248,250,252,.58)!important}
