:root {
  --ink: #071426;
  --muted: #5d6a7d;
  --line: #dfe7f1;
  --paper: #ffffff;
  --wash: #f3f7fb;
  --blue: #1463ff;
  --cyan: #14d9f5;
  --green: #24c57a;
  --navy: #071b37;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(7, 20, 38, .11);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.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-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(223,231,241,.78); background: rgba(255,255,255,.86); backdrop-filter: blur(18px); }
.nav-shell { min-height: 72px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand img { border-radius: 11px; }
.nav-shell nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-shell nav a { padding: 10px 2px; color: var(--muted); font-size: .92rem; font-weight: 700; text-decoration: none; }
.nav-shell nav a:hover, .nav-shell nav a.is-current { color: var(--ink); }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(20,99,255,.23); font-size: .9rem; font-weight: 800; text-decoration: none; }

.blog-hero { position: relative; padding: 64px 0 44px; overflow: hidden; background: radial-gradient(circle at 12% 18%, rgba(20,217,245,.18), transparent 34%), linear-gradient(145deg, #f7fbff 0%, #eef5ff 55%, #fff 100%); }
.blog-hero::before { content: ''; position: absolute; inset: auto -10% -70% 45%; height: 500px; border-radius: 50%; background: rgba(36,197,122,.11); filter: blur(80px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 58px; }
.hero-grid h1 { max-width: 700px; margin: 12px 0 20px; font: 750 clamp(2.65rem, 5.4vw, 5.2rem)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero-grid h1 em { color: var(--blue); font-style: normal; }
.hero-grid > div > p { max-width: 650px; color: var(--muted); font-size: 1.08rem; line-height: 1.72; }
.hero-grid > img { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: 34px; box-shadow: var(--shadow); }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.text-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.hero-proof { display: grid; grid-template-columns: auto auto auto auto; align-items: center; justify-content: start; gap: 8px 14px; margin-top: 30px; color: var(--muted); font-size: .78rem; }
.hero-proof strong { color: var(--ink); font-size: 1.45rem; }

.featured, .library, .related { padding-top: 76px; }
.library { padding-bottom: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 7px 0 0; font: 750 clamp(2rem, 3.2vw, 3.35rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.section-heading > a { color: var(--blue); font-weight: 800; text-decoration: none; }
#resultCount { color: var(--muted); font-size: .88rem; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.post-card:hover { transform: translateY(-5px); border-color: #c7d7eb; box-shadow: 0 24px 55px rgba(7,20,38,.1); }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; background: #dce8f7; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .card-media img { transform: scale(1.035); }
.card-media > span { position: absolute; left: 14px; bottom: 14px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; color: white; background: rgba(7,20,38,.72); backdrop-filter: blur(12px); font-size: .7rem; font-weight: 800; }
.card-copy { padding: 20px 21px 22px; }
.card-meta { display: flex; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: .71rem; font-weight: 700; }
.card-copy h3 { margin: 0 0 11px; font: 700 1.28rem/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.card-copy h3 a { text-decoration: none; }
.card-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .86rem; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.read-more { display: inline-block; margin-top: 17px; color: var(--blue); font-size: .82rem; font-weight: 800; text-decoration: none; }
.post-card--compact .card-copy p { -webkit-line-clamp: 2; }

.search-box { position: relative; display: flex; align-items: center; margin: 0 0 18px; }
.search-box svg { position: absolute; left: 20px; width: 21px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; min-height: 58px; padding: 0 22px 0 54px; border: 1px solid var(--line); border-radius: 17px; outline: none; color: var(--ink); background: var(--wash); font: 600 .95rem inherit; }
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,99,255,.1); }
.filter-row { display: flex; gap: 9px; margin-bottom: 31px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font: 700 .75rem inherit; cursor: pointer; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--navy); color: white; background: var(--navy); }
.post-card[hidden] { display: none; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed #c8d5e5; border-radius: var(--radius); background: var(--wash); }
.empty-state h3 { margin: 0; font: 700 1.6rem Georgia, serif; }

.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 90px; padding: 46px 52px; border-radius: 30px; color: white; background: radial-gradient(circle at 80% 20%, rgba(20,217,245,.3), transparent 35%), var(--navy); }
.newsletter h2 { margin: 8px 0; font: 700 clamp(2rem, 4vw, 3.4rem)/1.05 Georgia, serif; }
.newsletter p { margin: 0; color: #bed0e7; }
.button--light { flex: 0 0 auto; color: var(--navy); background: white; box-shadow: none; }

.breadcrumbs { display: flex; gap: 10px; padding-top: 28px; color: var(--muted); font-size: .75rem; }
.breadcrumbs a { text-decoration: none; }
.article-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.article-hero { max-width: 940px; margin: 46px auto 0; text-align: center; }
.article-kicker { display: flex; justify-content: center; gap: 8px; }
.article-kicker span { padding: 8px 11px; border-radius: 999px; color: var(--blue); background: #eaf1ff; font-size: .7rem; font-weight: 800; }
.article-hero h1 { margin: 17px auto; font: 750 clamp(2.55rem, 6.1vw, 5.5rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.052em; }
html[lang="ru"] .article-hero h1, html[lang="uz-Cyrl"] .article-hero h1 { font-size: clamp(2.35rem, 5.1vw, 4.65rem); }
.article-deck { max-width: 790px; margin: 0 auto; color: var(--muted); font-size: 1.06rem; line-height: 1.72; }
.byline { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; margin: 23px 0 30px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.article-hero > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 740px); justify-content: center; align-items: start; gap: 64px; padding-top: 58px; }
.toc { position: sticky; top: 102px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--wash); }
.toc strong { font-size: .79rem; }
.toc ol { display: grid; gap: 10px; margin: 14px 0 16px; padding: 0; list-style: none; }
.toc li { line-height: 1.35; }
.toc li a { color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none; }
.toc > a { color: var(--blue); font-size: .72rem; font-weight: 800; text-decoration: none; }
.article-content { min-width: 0; color: #26354a; font: 400 1.04rem/1.84 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.article-content > h1:first-child { display: none; }
.article-content h2 { scroll-margin-top: 105px; margin: 2.25em 0 .7em; color: var(--ink); font: 700 clamp(1.7rem, 3vw, 2.55rem)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.article-content h3 { scroll-margin-top: 105px; margin: 1.8em 0 .55em; color: var(--ink); font: 700 1.35rem/1.3 Georgia, "Times New Roman", serif; }
.article-content p { margin: 0 0 1.2em; }
.article-content a { color: #0d55d6; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content strong { color: var(--ink); }
.article-content blockquote { margin: 1.7em 0; padding: 22px 24px; border-left: 4px solid var(--cyan); border-radius: 0 16px 16px 0; color: #173657; background: #effaff; }
.article-content blockquote p { margin: 0; }
.article-content ul, .article-content ol { display: grid; gap: 9px; margin: 0 0 1.4em; padding-left: 1.35em; }
.article-content li::marker { color: var(--blue); font-weight: 800; }
.article-content hr { margin: 2.3em 0; border: 0; border-top: 1px solid var(--line); }
.article-content code { padding: 2px 6px; border-radius: 6px; background: #edf2f7; font-size: .92em; }
.article-content pre { padding: 20px; overflow: auto; border-radius: 15px; color: white; background: var(--navy); }
.table-scroll { max-width: 100%; margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
th, td { min-width: 150px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); background: var(--wash); }
.article-content h3 + p:has(a[href*="#waitlist"]), .article-content h3:has(+ p a[href*="#waitlist"]) { }
.article-content h3:has(+ p a[href*="#waitlist"]) { margin-top: 2.1em; padding: 24px 26px 0; border: 1px solid #cbdcff; border-bottom: 0; border-radius: 18px 18px 0 0; background: #f1f6ff; }
.article-content h3:has(+ p a[href*="#waitlist"]) + p { padding: 0 26px 24px; border: 1px solid #cbdcff; border-top: 0; border-radius: 0 0 18px 18px; background: #f1f6ff; }
.related { padding-bottom: 90px; }

.blog-footer { padding: 56px 0 24px; color: #c2d0e3; background: #061225; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-grid .brand { color: white; }
.footer-grid p { max-width: 400px; color: #91a5bf; font-size: .84rem; }
.footer-grid strong { margin-bottom: 8px; color: white; font-size: .78rem; }
.footer-grid a:not(.brand) { color: #aabbd1; font-size: .78rem; text-decoration: none; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #7890ad; font-size: .7rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > img { max-height: 520px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 740px); }
  .toc { position: static; }
}

@media (max-width: 700px) {
  .shell, .article-shell { width: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 64px; gap: 14px; }
  .nav-shell nav { display: none; }
  .nav-cta { margin-left: auto; min-height: 40px; padding-inline: 15px; }
  .blog-hero { padding-top: 42px; }
  .hero-grid { gap: 34px; }
  .hero-grid h1 { font-size: clamp(2.55rem, 13vw, 4.15rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero-proof { grid-template-columns: auto 1fr auto 1fr; }
  .featured, .library, .related { padding-top: 58px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .newsletter { align-items: flex-start; flex-direction: column; padding: 34px 26px; }
  .article-hero { margin-top: 32px; }
  .article-hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .article-hero > img { border-radius: 20px; }
  .article-layout { gap: 30px; padding-top: 34px; }
  .toc { display: none; }
  .article-content { font-size: .98rem; line-height: 1.78; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
