@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic-var.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 800;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
}

:root {
  --blog-bg: #061217;
  --blog-panel: rgba(17, 37, 48, .76);
  --blog-panel-strong: rgba(14, 30, 42, .92);
  --blog-border: rgba(85, 236, 220, .18);
  --blog-text: #eff9fb;
  --blog-muted: rgba(225, 241, 245, .68);
  --blog-soft: rgba(225, 241, 245, .48);
  --blog-a1: #38efc9;
  --blog-a2: #22d3ee;
  --blog-danger: #f02b36;
  --blog-radius: 26px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

.blog-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 239, 201, .13), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(34, 211, 238, .11), transparent 34%),
    linear-gradient(180deg, #07161d 0%, var(--blog-bg) 58%, #03090d 100%);
  color: var(--blog-text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

.blog-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, .035) 36%, transparent 37% 100%),
    radial-gradient(circle, rgba(255, 255, 255, .18) 1px, transparent 1.6px);
  background-size: 760px 420px, 170px 170px;
  opacity: .35;
}

.blog-header,
.blog-main,
.blog-footer {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.blog-logo img {
  display: block;
  height: auto;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  background: rgba(5, 17, 23, .72);
  backdrop-filter: blur(18px);
}

.blog-nav a,
.blog-hero-actions a,
.blog-back,
.blog-breadcrumbs a {
  color: var(--blog-muted);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.blog-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.blog-nav a:hover,
.blog-nav a:focus-visible {
  color: var(--blog-text);
  background: rgba(56, 239, 201, .1);
}

.blog-nav .blog-nav-cta {
  color: #031317;
  background: linear-gradient(135deg, var(--blog-a1), var(--blog-a2));
}

.blog-main {
  padding: 34px 0 78px;
}

.blog-hero,
.article-hero,
.article-content,
.article-toc,
.blog-post-card,
.faq-shell,
.blog-footer {
  border: 1px solid var(--blog-border);
  background: linear-gradient(145deg, rgba(18, 43, 55, .82), rgba(9, 24, 34, .74));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .045);
  backdrop-filter: blur(18px);
}

.blog-hero,
.article-hero {
  overflow: hidden;
  padding: clamp(34px, 6vw, 76px);
  border-radius: 34px;
}

.blog-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: -28%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 239, 201, .16), transparent 68%);
  pointer-events: none;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #8bf8ec;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blog-a1);
  box-shadow: 0 0 18px rgba(56, 239, 201, .8);
}

.blog-hero h1,
.article-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #f7feff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.article-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.blog-hero p,
.article-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--blog-muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.article-hero-media {
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid rgba(64, 224, 190, .2);
  border-radius: 20px;
  background: #07121b;
  box-shadow: 0 24px 60px rgba(2, 8, 14, .34);
}

.article-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 30 / 13;
  object-fit: cover;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.blog-hero-actions a,
.blog-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--blog-border);
  border-radius: 999px;
  background: rgba(3, 17, 24, .56);
  font-weight: 800;
}

.blog-hero-actions a:first-child {
  color: #031317;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blog-a1), var(--blog-a2));
}

.blog-hero-actions a:hover,
.blog-back:hover {
  transform: translateY(-1px);
  color: var(--blog-text);
  border-color: rgba(56, 239, 201, .48);
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--blog-muted);
  font-size: 13px;
}

.blog-breadcrumbs a {
  color: var(--blog-a1);
  font-weight: 750;
}

.blog-breadcrumbs a:hover,
.blog-breadcrumbs a:focus-visible {
  color: var(--blog-text);
}

.blog-breadcrumbs [aria-current="page"] {
  max-width: min(66ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.blog-post-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--blog-radius);
  color: var(--blog-text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.blog-post-card:hover,
.blog-post-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(56, 239, 201, .46);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34), 0 0 36px rgba(56, 239, 201, .12);
}

.blog-post-card.is-disabled {
  opacity: .72;
  cursor: default;
}

.blog-post-card.is-disabled:hover {
  transform: none;
  border-color: var(--blog-border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.blog-post-card span {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  color: #07161d;
  background: rgba(139, 248, 236, .92);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-post-card h2 {
  margin: 18px 0 12px;
  font-size: 22px;
  line-height: 1.17;
  letter-spacing: -.02em;
}

.blog-post-card p {
  margin: 0 0 18px;
  color: var(--blog-muted);
}

.blog-post-card b {
  margin-top: auto;
  color: #90f7ef;
}

.article-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.article-toc {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
}

.article-toc b {
  color: #8bf8ec;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-toc a {
  color: var(--blog-muted);
  font-size: 14px;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--blog-text);
}

.article-content {
  padding: clamp(28px, 4vw, 54px);
  border-radius: 28px;
}

.article-content h2 {
  margin: 38px 0 12px;
  color: #f7feff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 26px 0 10px;
  color: #dffbfd;
  font-size: 20px;
}

.article-content p {
  max-width: 860px;
  margin: 0 0 16px;
  color: var(--blog-muted);
  font-size: 17px;
}

.article-content a,
.article-content a:visited,
.article-hero .blog-kicker a,
.article-hero .blog-kicker a:visited {
  color: #72f4e5;
  font-weight: 700;
  text-decoration-color: rgba(114, 244, 229, .58);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.article-content a:hover,
.article-content a:focus-visible,
.article-hero .blog-kicker a:hover,
.article-hero .blog-kicker a:focus-visible {
  color: #ffffff;
  text-decoration-color: #72f4e5;
}

.blog-split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.blog-list-card,
.blog-segment-grid section {
  border: 1px solid rgba(85, 236, 220, .16);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(12, 39, 50, .74), rgba(8, 23, 32, .64));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 45px rgba(0, 0, 0, .18);
  padding: 18px;
}

.blog-list-card--wide {
  max-width: 980px;
  margin: 20px 0 28px;
}

.blog-list-card h3,
.blog-segment-grid h3 {
  margin: 0 0 12px;
  color: #f5feff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 18px;
  letter-spacing: -.015em;
}

.blog-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-check-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.blog-check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--blog-muted);
  font-size: 16px;
  line-height: 1.55;
}

.blog-check-list li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blog-a1), var(--blog-a2));
  box-shadow: 0 0 16px rgba(85, 236, 220, .45);
}

.blog-check-list strong {
  color: #f8feff;
}

.blog-callout {
  max-width: 920px;
  margin: 22px 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(85, 236, 220, .24);
  border-left: 3px solid var(--blog-a1);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 239, 201, .1), rgba(34, 211, 238, .045));
  color: var(--blog-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.blog-callout strong {
  color: #f8feff;
}

.blog-segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.blog-segment-grid p {
  margin: 0;
  font-size: 15.5px;
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 22px 0 28px;
  border: 1px solid var(--blog-border);
  border-radius: 18px;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.blog-table th,
.blog-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(85, 236, 220, .13);
  text-align: left;
  vertical-align: top;
}

.blog-table th {
  color: #c5fdf8;
  background: rgba(15, 42, 60, .8);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-table td {
  color: var(--blog-muted);
}

.faq-tabs {
  margin-top: 34px;
}

.faq-tabs h2 {
  margin-bottom: 16px;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
}

.faq-tablist {
  display: grid;
  gap: 8px;
  align-content: start;
}

.faq-tab {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(85, 236, 220, .16);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--blog-muted);
  background: rgba(4, 17, 25, .72);
  font: 800 14px/1.25 "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
}

.faq-tab:hover,
.faq-tab:focus-visible,
.faq-tab.is-active {
  color: #07161d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blog-a1), var(--blog-a2));
}

.faq-panel {
  display: none;
  min-height: 170px;
  padding: 22px;
  border: 1px dashed rgba(139, 248, 236, .18);
  border-radius: 18px;
  background: rgba(2, 13, 19, .4);
}

.faq-panel.is-active {
  display: block;
}

.faq-panel p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 17px;
}

.article-next {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(85, 236, 220, .16);
  border-radius: 20px;
  background: rgba(56, 239, 201, .055);
}

.article-next h2 {
  margin-top: 0;
}

.article-next a {
  color: #8bf8ec;
  font-weight: 900;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: 24px;
}

.blog-footer img {
  display: block;
  max-width: 165px;
  height: auto;
}

.blog-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-footer a {
  color: var(--blog-muted);
  text-decoration: none;
  font-weight: 700;
}

.blog-footer a:hover {
  color: var(--blog-text);
}

@media (max-width: 980px) {
  .blog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-nav {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .blog-grid,
  .article-shell,
  .faq-shell,
  .blog-split-list,
  .blog-segment-grid,
  .blog-check-list--columns {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .blog-header,
  .blog-main,
  .blog-footer {
    width: min(100% - 24px, 1180px);
  }

  .blog-hero,
  .article-hero,
  .article-content {
    border-radius: 22px;
    padding: 24px;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: 34px;
  }

  .blog-post-card {
    min-height: auto;
  }

  .blog-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
