@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-serif-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-serif-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}


:root {
  --bg: #eef1f6;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #22c55e;
  --green-dark: #16a34a;
  --navy: #07111f;
  --navy-2: #0b1a2e;
  --radius: 16px;
  --container: 1180px;
  --font: "PT Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button, input { font: inherit; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.28);
}
.btn-green:hover { background: var(--green-dark); }

.badge {
  display: inline-flex;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-cube-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.logo-text strong { font-size: 0.92rem; }
.logo-text small { font-size: 0.68rem; color: var(--green); font-weight: 700; margin-top: 0.18rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
}
.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #d1d5db;
  font-weight: 700;
  font-size: 0.92rem;
}
.site-nav a.is-current,
.site-nav a:hover {
  color: #fff;
  background: rgba(34, 197, 94, 0.18);
}
.site-nav a.is-current { color: var(--green); background: transparent; }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: #13233a;
  border-radius: 999px;
  padding: 0.15rem 0.2rem 0.15rem 0.9rem;
  min-width: 240px;
}
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  min-width: 0;
}
.header-search input::placeholder { color: #9ca3af; }
.header-search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
.nav-toggle { display: none; }
.header-menu {
  display: none;
  width: 1.4rem;
  gap: 0.28rem;
  cursor: pointer;
}
.header-menu span { display: block; height: 2px; background: #fff; }

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #123;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-steve {
  position: absolute;
  right: 6%;
  bottom: 0;
  height: 92%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.35));
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,17,31,.82) 0%, rgba(7,17,31,.35) 46%, rgba(7,17,31,.08) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 3rem 0;
}
.hero-copy { max-width: 34rem; }
.hero-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  max-width: 18ch;
}
.hero-copy p { color: #e5e7eb; margin: 0 0 1.25rem; max-width: 36ch; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #d1d5db;
  font-size: 0.92rem;
}

.page-body { padding: 1.6rem 0 3.5rem; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
.block { margin-bottom: 1.6rem; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.block-head h2, .side-title, .related-block h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
}
.block-head h2::before, .side-title::before, .related-block h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 4px;
  background: var(--green);
}
.block-link { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.block-link:hover { color: var(--green-dark); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.news-card-media { position: relative; display: block; }
.news-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card-media .badge { position: absolute; left: 0.7rem; top: 0.7rem; }
.news-card-body { padding: 0.9rem 1rem 1.05rem; display: grid; gap: 0.45rem; }
.news-card-body h3 { font-size: 1rem; }
.news-card-body h3 a:hover { color: var(--green-dark); }
.news-card-body p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.news-card-body time { color: #9ca3af; font-size: 0.78rem; }

.page-side { display: grid; gap: 1rem; position: sticky; top: 88px; }
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 0.85rem;
}
.side-cats, .side-thumb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.side-cats a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}
.side-cats a:hover, .side-cats a.is-current { background: #f0fdf4; color: var(--green-dark); }
.side-cat-icon { display: inline-flex; }
.side-count { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.side-thumb-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem 0;
}
.side-thumb-image { border-radius: 10px; overflow: hidden; }
.side-thumb-image img { width: 64px; height: 48px; object-fit: cover; }
.side-thumb-title { font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.side-empty { color: var(--muted); font-size: 0.88rem; }

.server-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 168px;
  color: #fff;
  margin: 0.4rem 0 1.6rem;
}
.server-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.server-banner-icon img { position: relative; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.server-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,17,31,.82), rgba(7,17,31,.28));
}
.server-banner-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
}
.server-banner-icon img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.server-kicker { margin: 0 0 0.25rem; color: var(--green); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.server-banner h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.server-banner p { margin: 0; color: #e5e7eb; }
.server-banner .btn-green { margin-left: auto; flex-shrink: 0; }
.server-banner.is-compact { min-height: 0; margin: 0; }
.server-banner.is-compact .server-banner-copy { flex-direction: column; align-items: flex-start; }
.server-banner.is-compact .btn-green { margin-left: 0; width: 100%; }
.server-banner.is-compact .server-banner-icon img { width: 48px; height: 48px; }

.page-hero, .article-hero {
  position: relative;
  min-height: 220px;
  color: #fff;
  overflow: hidden;
  background: var(--navy-2);
}
.page-hero img, .article-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero::after, .article-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,17,31,.78), rgba(7,17,31,.28));
}
.page-hero-copy, .article-hero-copy {
  position: relative; z-index: 1; padding: 2.4rem 0 2rem;
}
.page-hero h1, .article-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 18ch; }
.page-hero p { max-width: 42ch; color: #e5e7eb; }
.page-hero-plain { min-height: 0; background: transparent; color: var(--ink); }
.page-hero-plain::after { display: none; }
.page-hero-plain .page-hero-copy { padding: 1.4rem 0 0.2rem; }
.page-hero-plain h1 { color: var(--ink); }
.page-hero-plain p { color: var(--muted); }

.crumbs { display: flex; gap: 0.45rem; color: #d1d5db; font-size: 0.85rem; margin-bottom: 0.8rem; }
.crumbs a:hover { color: #fff; }
.crumbs-light, .page-hero-plain .crumbs { color: var(--muted); }
.page-hero-plain .crumbs a:hover { color: var(--green-dark); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.filter-bar a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.filter-bar a.is-current, .filter-bar a:hover {
  background: var(--green);
  color: #fff;
}

.list-stack { display: grid; gap: 0.85rem; }
.list-row {
  display: grid;
  grid-template-columns: 168px minmax(0,1fr);
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.list-row-media img { width: 100%; height: 100%; min-height: 110px; object-fit: cover; }
.list-row-body { display: grid; align-content: center; gap: 0.35rem; padding: 0.85rem 1rem 0.85rem 0; }
.list-row-body strong { font-size: 1.05rem; }
.list-row-body em { font-style: normal; color: var(--muted); font-size: 0.9rem; }
.list-row-body time { color: #9ca3af; font-size: 0.78rem; }
.list-row:hover strong { color: var(--green-dark); }

.article-page {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.8rem;
}
.article-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; color: var(--muted); font-size: 0.9rem; }
.tag { color: var(--green-dark); font-weight: 700; }
.prose { font-size: 1.05rem; color: #1f2937; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.prose li { margin: 0.25rem 0; }
.prose li::marker { color: var(--green); }
.article-inline-figure, .article-figure {
  margin: 1.1rem 0 1.3rem;
  border-radius: 14px;
  overflow: hidden;
}
.article-inline-figure img, .article-figure img { width: 100%; }
.article-source { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.related-block { margin-top: 1.6rem; }
.related-block h2 { margin-bottom: 0.9rem; }

.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
  align-items: center;
}
.pagination a, .pagination-status {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0 0.7rem;
  font-weight: 700;
}
.pagination a.is-current, .pagination a:hover { background: var(--green); color: #fff; }

.site-footer {
  background: var(--navy) url("/img/home/banner-server.png") center / cover;
  color: #d1d5db;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,17,31,.92), rgba(7,17,31,.96));
}
.footer-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 0;
  flex-wrap: wrap;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin: 0.45rem 0 0; font-size: 0.82rem; color: #9ca3af; }
.site-footer .logo-text small { color: var(--green); }

.empty-state { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pagefind-ui {
  --pagefind-ui-primary: var(--green);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--line);
  --pagefind-ui-font: var(--font);
}

.header-search-mobile { display: none; color: #fff; }
@media (max-width: 980px) {
  .hero-steve { display: none; }
  .header-search-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--green);
  }
  .page-grid { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .news-grid, .news-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .header-search { display: none; }
  .header-menu { display: grid; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: var(--navy-2);
    flex-direction: column;
    padding: 0.6rem;
    z-index: 30;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .logo { margin-inline: auto; }
  .server-banner-copy { flex-wrap: wrap; }
  .server-banner .btn-green { margin-left: 0; }
}

@media (max-width: 640px) {
  .news-grid, .news-grid-3 { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr; }
  .list-row-media img { min-height: 160px; }
  .list-row-body { padding: 0.85rem 1rem 1rem; }
  .hero { min-height: 360px; }
  .hero-inner { min-height: 360px; padding: 2rem 0 2.4rem; }
  .article-page { padding: 1rem; }
}
