:root {
  --bg: #071018;
  --bg-2: #0a1624;
  --surface: #102033;
  --card: #12263a;
  --ink: #eaf6ff;
  --muted: #8faabb;
  --cyan: #3ee8ff;
  --cyan-2: #9af3ff;
  --lime: #c8ff5a;
  --magenta: #ff4ec8;
  --line: rgba(62, 232, 255, 0.16);
  --shadow: 0 18px 44px rgba(0, 8, 18, 0.45);
  --max: 1180px;
  --radius: 18px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.04rem;
  line-height: 1.7;
  background:
    radial-gradient(920px 420px at 8% -10%, rgba(62, 232, 255, 0.14), transparent 58%),
    radial-gradient(720px 380px at 100% 0%, rgba(255, 78, 200, 0.12), transparent 52%),
    linear-gradient(180deg, #0b1828 0%, var(--bg) 42%, #050b12 100%);
  overflow-x: hidden;
  max-width: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-2); text-underline-offset: 0.18em; }
a:hover { color: var(--lime); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin: 0 0 0.38rem; }

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 0.8rem;
}

h1 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
h2 { font-size: clamp(1.28rem, 2vw, 1.7rem); margin-top: 2rem; color: var(--cyan-2); }
h3 { font-size: 1.12rem; margin-top: 1.4rem; color: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--cyan);
  color: #041018;
  padding: 0.4rem 0.75rem;
  z-index: 90;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(7, 16, 24, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 96px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}
.logo img {
  height: 72px;
  width: auto;
  max-width: min(420px, 58vw);
  filter: drop-shadow(0 0 10px rgba(62, 232, 255, 0.28));
}
.logo:hover img { filter: drop-shadow(0 0 14px rgba(62, 232, 255, 0.5)); }

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-list a {
  color: #d5e6f2;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.62rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #041018;
  background: var(--cyan);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  background-image:
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-size: 18px 2px;
  background-position: center 15px, center 22px, center 29px;
}

.hero {
  padding: 2.4rem 0 1.4rem;
}
.kicker {
  margin: 0 0 0.55rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lead {
  font-size: 1.14rem;
  color: #d5e8f4;
  max-width: 46rem;
}

.section { padding: 0.4rem 0 3.2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  min-width: 0;
}
.card-grid.latest .card:first-child {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-grid.latest .card:first-child > * { min-width: 0; }
.card-grid.latest .card:first-child .card-media {
  min-height: 190px;
  aspect-ratio: 16 / 9;
}
@media (min-width: 981px) {
  .card-grid.latest .card:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .card-grid.latest .card:first-child .card-media {
    min-height: 280px;
    aspect-ratio: auto;
  }
}

[hidden] {
  display: none !important;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, rgba(18, 38, 58, 0.92), rgba(12, 26, 40, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 232, 255, 0.48);
  color: inherit;
}
.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1826;
  min-width: 0;
}
.card-media img,
.card-media svg {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 1rem 1.05rem 1.15rem; }
.chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041018;
  background: var(--magenta);
}
.chip.cyan { background: var(--cyan); }
.chip.lime { background: var(--lime); }
.card h2,
.card h3 {
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
  color: var(--ink);
}
.card-grid.latest .card:first-child h2,
.card-grid.latest .card:first-child h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.excerpt {
  color: var(--muted);
  margin: 0 0 0.7rem;
  font-size: 0.96rem;
}
.meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

.panel {
  background: rgba(16, 32, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.5rem;
  min-width: 0;
}
.panel.panel--wide {
  max-width: none;
  width: 100%;
}

.featured {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 1.25rem;
  background: #08141f;
}
.featured img,
.featured svg {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.crumbs {
  margin: 0 0 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #5d7386;
}
.crumbs a { color: var(--cyan-2); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
}
.post-meta a { color: var(--cyan-2); text-decoration: none; }

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--cyan);
  background: rgba(62, 232, 255, 0.06);
  border-radius: 0 14px 14px 0;
  color: #c5d7e4;
  font-size: 0.92rem;
}
.disclaimer h2 { margin-top: 0; font-size: 1.05rem; }

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.side-block {
  background: rgba(16, 32, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.15rem;
  margin-bottom: 1rem;
}
.side-block h2 {
  margin-top: 0;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.94rem;
}
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--cyan-2); }

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050c14;
  padding: 2.2rem 0 1.4rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}
.site-footer h2 {
  margin-top: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #d5e6f2; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer .logo img { height: 64px; max-width: min(380px, 90%); }
.providers-label {
  margin: 1.05rem 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}
.footer-providers img {
  height: 36px;
  width: auto;
  max-width: 34%;
  flex: 0 1 auto;
  opacity: 1;
  filter: none;
  pointer-events: none;
}
.legal {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #102033;
  border: 1px solid rgba(62, 232, 255, 0.55);
  color: var(--cyan);
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.to-top:hover { background: var(--cyan); color: #041018; }
.to-top svg { width: 18px; height: 18px; }

.more-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 232, 255, 0.7);
  background: transparent;
  color: var(--cyan-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.show-more:hover,
.show-more[aria-expanded="true"] {
  background: var(--cyan);
  color: #041018;
  border-color: var(--cyan);
}

.author-hero {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 1.2rem;
}
.author-hero img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.author-hero h1 { margin-bottom: 0.45rem; }

.contact-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.contact-form p { margin: 0 0 0.95rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0a1624;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}
.form-ok {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--lime);
  background: rgba(200, 255, 90, 0.08);
  border-radius: 0 14px 14px 0;
}
.form-err { color: #ff9ab8; font-weight: 700; }

.page-intro { max-width: 46rem; margin-bottom: 1.6rem; }
.page-intro--wide { max-width: none; }
.page-intro--wide .lead { max-width: 46rem; }

.faq {
  margin: 2rem 0 0;
  padding: 1.1rem 1.15rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 22, 36, 0.55);
}
.faq h2 { margin-top: 0; }
.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  color: #fff;
}
.faq-item p { margin: 0; color: var(--muted); }

.about-home { padding-top: 0.5rem; }
.about-home .faq { margin-top: 1.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--cyan-2); font-weight: 700; width: 34%; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 46px;
    border-color: rgba(62, 232, 255, 0.7);
  }
  .site-header { position: sticky; overflow: visible; }
  .nav {
    display: none;
    position: absolute;
    left: 50%;
    right: auto;
    top: 100%;
    width: 100vw;
    margin-left: -50vw;
    background: #0b1622;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1rem;
    z-index: 80;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .logo img { height: 52px; max-width: calc(100vw - 6.5rem); }
  h1, .lead { overflow-wrap: break-word; }
  .card-grid,
  .card-grid.latest .card:first-child,
  .related,
  .layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card-grid.latest .card:first-child .card-media { min-height: 190px; }
  .author-hero { grid-template-columns: 1fr; }
  .footer-providers img { max-width: 46%; height: 32px; }
  .to-top { right: 0.75rem; bottom: 0.75rem; }
  .panel { padding: 1rem 0.95rem 1.2rem; }
  .nav-list a { min-height: 48px; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.latest .card:first-child { grid-column: 1 / -1; }
}
