:root {
  --blog-primary: #245edd;
  --blog-primary-deep: #1e4bb8;
  --blog-surface: #ffffff;
  --blog-surface-soft: #f4f7fb;
  --blog-surface-muted: rgba(255, 255, 255, 0.72);
  --blog-text: #0b111e;
  --blog-text-soft: #526076;
  --blog-text-muted: #73819a;
  --blog-border: rgba(11, 17, 30, 0.1);
  --blog-shadow: 0 24px 60px rgba(11, 17, 30, 0.08);
  --blog-shadow-soft: 0 14px 36px rgba(11, 17, 30, 0.08);
  --blog-radius-xl: 24px;
  --blog-radius-lg: 18px;
  --blog-radius-md: 12px;
  --blog-container: 1200px;
  --blog-reading-width: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--blog-text);
  background:
    radial-gradient(circle at top right, rgba(36, 94, 221, 0.12), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #ffffff 24%, #f7f9fc 100%);
  font-family: "Figtree", system-ui, sans-serif;
}

body.blog-page-root {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-container {
  width: min(calc(100% - 40px), var(--blog-container));
  margin: 0 auto;
}

.blog-stack > * + * {
  margin-top: 32px;
}

.blog-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  backdrop-filter: blur(10px) saturate(180%);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(11, 17, 30, 0.06);
  box-shadow: 0 8px 24px rgba(11, 17, 30, 0.04);
}

.blog-site-header__inner {
  width: min(calc(100% - 40px), var(--blog-container));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.blog-site-header__logo {
  width: clamp(156px, 16vw, 218px);
}

.blog-site-header__nav,
.blog-site-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.blog-site-header__nav {
  flex: 1;
  justify-content: center;
}

.blog-site-header__nav-link {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--blog-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-site-header__nav-link:hover {
  color: var(--blog-primary);
  transform: translateY(-1px);
}

.blog-site-header__nav-link--active {
  color: var(--blog-primary);
}

.blog-site-header__nav-link--accent {
  color: var(--blog-primary);
  font-weight: 600;
}

.blog-site-header__button,
.blog-site-header__button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blog-site-header__button {
  background: #ffffff;
  color: var(--blog-text);
  border: 1px solid var(--blog-text);
}

.blog-site-header__button-primary {
  background: var(--blog-primary);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 94, 221, 0.24);
}

.blog-site-header__button:hover,
.blog-site-header__button-primary:hover {
  transform: translateY(-1px);
}

.blog-site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--blog-border);
  background: #ffffff;
  color: var(--blog-text);
}

.blog-site-header__mobile {
  display: none;
  width: min(calc(100% - 40px), var(--blog-container));
  margin: 0 auto 18px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow-soft);
}

.blog-site-header__mobile[data-open="true"] {
  display: block;
}

.blog-site-header__mobile-links {
  display: grid;
  gap: 14px;
}

.blog-site-header__mobile-link {
  font-family: "Instrument Sans", system-ui, sans-serif;
  text-decoration: none;
  color: var(--blog-text);
}

.blog-site-header__mobile-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.blog-page {
  padding-bottom: 72px;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-eyebrow--light {
  background: rgba(36, 94, 221, 0.08);
  color: var(--blog-primary);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 44px;
  background:
    radial-gradient(circle at 85% 15%, rgba(36, 94, 221, 0.5), transparent 28%),
    linear-gradient(135deg, #0b111e 0%, #101c36 52%, #0d1832 100%);
  color: #ffffff;
}

.blog-hero__grid {
  display: grid;
  gap: 28px;
  align-items: end;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

.blog-hero h1 {
  margin: 18px 0 18px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 0.98;
  font-weight: 500;
}

.blog-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  line-height: 1.8;
}

.blog-hero__panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--blog-radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.blog-hero__metric {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.blog-hero__metric span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.blog-hero__metric strong {
  display: block;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.blog-toolbar {
  padding: 32px 0 0;
}

.blog-toolbar__card {
  padding: 24px;
  border-radius: var(--blog-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow-soft);
}

.blog-toolbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.blog-search {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 16px 18px 16px 50px;
  border-radius: 14px;
  border: 1px solid rgba(11, 17, 30, 0.12);
  background: #ffffff;
  font-size: 1rem;
  color: var(--blog-text);
}

.blog-search svg,
.blog-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--blog-text-muted);
  transform: translateY(-50%);
}

.blog-toolbar__summary {
  color: var(--blog-text-soft);
  font-size: 0.95rem;
}

.blog-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.blog-filter-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blog-surface-soft);
  color: var(--blog-text-soft);
  padding: 10px 16px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-chip:hover,
.blog-filter-chip[data-active="true"] {
  color: #ffffff;
  background: var(--blog-primary);
  box-shadow: 0 16px 32px rgba(36, 94, 221, 0.24);
}

.blog-featured-post,
.blog-post-card,
.article-summary-card,
.blog-cta-card,
.blog-related-posts,
.blog-empty-state,
.blog-footer-panel {
  border-radius: var(--blog-radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
}

.blog-featured-post {
  display: grid;
  gap: 24px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.blog-featured-post__content {
  padding: 34px;
}

.blog-featured-post__media {
  min-height: 360px;
  background: linear-gradient(135deg, #0b111e, #245edd);
}

.blog-featured-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--blog-text-muted);
  font-size: 0.92rem;
}

.blog-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-chip,
.blog-chip--soft {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
}

.blog-chip {
  background: rgba(36, 94, 221, 0.1);
  color: var(--blog-primary);
}

.blog-chip--soft {
  background: var(--blog-surface-soft);
  color: var(--blog-text-soft);
}

.blog-featured-post h2,
.blog-post-card h3,
.article-hero h1,
.blog-section-title,
.blog-site-footer__title {
  font-family: "Instrument Sans", system-ui, sans-serif;
}

.blog-featured-post h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  font-weight: 500;
}

.blog-featured-post p {
  margin: 0 0 22px;
  color: var(--blog-text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-listing-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-listing-section__header p {
  margin: 10px 0 0;
  color: var(--blog-text-soft);
}

.blog-section-title {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.06;
  font-weight: 500;
}

.blog-post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-post-card {
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px rgba(11, 17, 30, 0.12);
}

.blog-post-card[hidden],
.blog-featured-post[hidden] {
  display: none !important;
}

.blog-post-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0b111e, #245edd);
}

.blog-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-card__body {
  padding: 24px;
}

.blog-post-card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.12;
  font-weight: 500;
}

.blog-post-card p {
  margin: 0 0 18px;
  color: var(--blog-text-soft);
  line-height: 1.75;
}

.blog-post-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--blog-text-muted);
  font-size: 0.92rem;
}

.blog-link-inline {
  color: var(--blog-primary);
  text-decoration: none;
  font-weight: 600;
}

.blog-empty-state {
  padding: 42px 28px;
  text-align: center;
}

.blog-empty-state h2 {
  margin: 0 0 10px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.blog-empty-state p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--blog-text-soft);
  line-height: 1.75;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--blog-text-muted);
  font-size: 0.92rem;
}

.article-breadcrumbs a {
  text-decoration: none;
}

.article-hero {
  padding: 56px 0 32px;
}

.article-hero__header {
  max-width: 920px;
}

.article-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 500;
}

.article-lead {
  margin: 0 0 22px;
  color: var(--blog-text-soft);
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 820px;
}

.article-featured-image {
  margin-top: 26px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--blog-shadow);
}

.article-featured-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  gap: 28px;
  align-items: start;
  grid-template-columns: minmax(0, var(--blog-reading-width)) minmax(260px, 320px);
}

.article-content {
  min-width: 0;
}

.article-summary-card,
.article-toc {
  padding: 22px;
}

.article-summary-card {
  margin-bottom: 24px;
}

.article-summary-card dl {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.article-summary-card dt {
  margin-bottom: 6px;
  color: var(--blog-text-muted);
  font-size: 0.82rem;
}

.article-summary-card dd {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1rem;
}

.article-toc {
  position: sticky;
  top: 116px;
}

.article-toc__title {
  margin: 0 0 16px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.05rem;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.article-toc li[data-level="3"] {
  padding-left: 14px;
}

.article-toc a {
  color: var(--blog-text-soft);
  text-decoration: none;
  line-height: 1.6;
}

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

.rich-content {
  padding: 34px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--blog-text);
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content > :last-child {
  margin-bottom: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  font-family: "Instrument Sans", system-ui, sans-serif;
  scroll-margin-top: 126px;
}

.rich-content h2 {
  font-size: 2rem;
  font-weight: 500;
}

.rich-content h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.rich-content h4 {
  font-size: 1.18rem;
  font-weight: 600;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0 0 1.4rem;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.35rem;
}

.rich-content li + li {
  margin-top: 0.5rem;
}

.rich-content a {
  color: var(--blog-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.rich-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--blog-primary);
  background: rgba(36, 94, 221, 0.06);
  border-radius: 0 18px 18px 0;
  color: var(--blog-text-soft);
  font-style: italic;
}

.rich-content img {
  margin: 2rem auto;
  border-radius: 22px;
  box-shadow: var(--blog-shadow-soft);
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
}

.rich-content th,
.rich-content td {
  padding: 14px 16px;
  border: 1px solid rgba(11, 17, 30, 0.08);
  text-align: left;
}

.rich-content th {
  background: rgba(36, 94, 221, 0.08);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 500;
}

.blog-cta-card {
  padding: 28px;
  margin-top: 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
}

.blog-cta-card p {
  margin: 0;
  color: var(--blog-text-soft);
  line-height: 1.75;
}

.blog-cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-related {
  margin-top: 46px;
}

.blog-related h2 {
  margin: 0 0 18px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 500;
}

.blog-related p {
  margin: 0 0 22px;
  color: var(--blog-text-soft);
}

.blog-site-footer {
  margin-top: 72px;
  padding: 68px 0 24px;
  border-radius: 36px 36px 0 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(36, 94, 221, 0.3), rgba(11, 17, 30, 0.2)),
    #245edd;
  position: relative;
  overflow: hidden;
}

.blog-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    center / min(1340px, 112vw) no-repeat
      url("https://cdn.builder.io/api/v1/image/assets/TEMP/4dc48ce4e2d19dd25e5739ca76f11710f4bfda83?placeholderIfAbsent=true&apiKey=3a96b092134e47c7b6534fba8adfd151");
  opacity: 0.18;
  pointer-events: none;
}

.blog-site-footer__inner,
.blog-site-footer__bottom {
  position: relative;
  z-index: 1;
}

.blog-site-footer__top {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.8fr) minmax(320px, 1fr);
}

.blog-site-footer__columns {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(200px, 1fr) minmax(180px, 0.8fr);
}

.blog-site-footer__column {
  min-width: 0;
}

.blog-site-footer__brand-logo {
  width: clamp(180px, 20vw, 280px);
}

.blog-site-footer__company {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-site-footer__links {
  display: grid;
  gap: 10px;
}

.blog-site-footer__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-site-footer__link--accent {
  color: #ffffff;
  font-weight: 600;
}

.blog-site-footer__link:hover {
  opacity: 0.78;
}

.blog-site-footer__newsletter {
  display: grid;
  gap: 14px;
}

.blog-site-footer__newsletter p,
.blog-site-footer__newsletter small {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.blog-site-footer__newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-site-footer__newsletter-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.blog-site-footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.blog-site-footer__newsletter-button {
  border: none;
  cursor: pointer;
}

.blog-site-footer__newsletter-status {
  min-height: 1.3em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.blog-site-footer__bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.blog-site-footer__bottom-left {
  display: grid;
  gap: 14px;
}

.blog-site-footer__legal,
.blog-site-footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-site-footer__legal {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.blog-site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  text-decoration: none;
}

.blog-site-footer__credit img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.blog-site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.blog-site-footer__social img,
.blog-site-footer__social svg {
  width: 20px;
  height: 20px;
}

.blog-site-footer__social img {
  object-fit: contain;
}

.blog-site-footer__social--telegram {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
  .blog-site-header__nav,
  .blog-site-header__actions {
    display: none;
  }

  .blog-site-header__burger {
    display: inline-flex;
  }

  .blog-hero__grid,
  .blog-featured-post,
  .article-layout,
  .blog-site-footer__top,
  .blog-cta-card {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .blog-container {
    width: min(calc(100% - 28px), var(--blog-container));
  }

  .blog-site-header__inner {
    min-height: 80px;
    width: min(calc(100% - 28px), var(--blog-container));
  }

  .blog-toolbar__card,
  .blog-featured-post__content,
  .blog-post-card__body,
  .rich-content,
  .article-summary-card,
  .article-toc,
  .blog-cta-card,
  .blog-empty-state {
    padding: 22px;
  }

  .blog-featured-post__media {
    min-height: 240px;
  }

  .article-summary-card dl {
    grid-template-columns: 1fr;
  }

  .blog-site-footer__newsletter-form {
    flex-direction: column;
  }

  .blog-site-footer__newsletter-button {
    width: 100%;
  }

  .blog-hero {
    padding-top: 48px;
  }
}
