:root {
  color-scheme: dark;
  --bg: #0b1017;
  --bg-soft: #101827;
  --panel: rgba(17, 26, 40, 0.82);
  --panel-strong: #121c2c;
  --text: #f6f8fc;
  --muted: #aab7ca;
  --line: rgba(174, 194, 225, 0.18);
  --blue: #248dff;
  --cyan: #35d7ff;
  --green: #8af41f;
  --green-soft: rgba(138, 244, 31, 0.14);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 141, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 20%, rgba(138, 244, 31, 0.13), transparent 34rem),
    linear-gradient(180deg, #0b1017 0, #0b1017 760px, #080d14 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.38;
  z-index: -2;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 215, 255, 0.16), transparent 64%);
  pointer-events: none;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 15, 24, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.24);
}

.brand,
.header-actions,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 210px;
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #d9e5f5;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.header-actions {
  gap: 8px;
}

.header-action,
.button,
.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.header-action,
.button {
  padding: 0 16px;
  white-space: nowrap;
}

.header-action,
.button.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--green), #42d7ff);
  border-color: transparent;
}

.button.secondary {
  color: #e9f3ff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-button {
  width: 42px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.lang-button.is-active {
  color: #071017;
  background: var(--green);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 78px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lead {
  max-width: 680px;
  font-size: 19px;
}

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

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.contact-actions .button {
  width: 100%;
}

.button.telegram {
  color: #06111f;
  background: #2aabee;
  border-color: #2aabee;
}

.button.email {
  color: #06111f;
  background: var(--cyan);
  border-color: var(--cyan);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-top: 32px;
}

.hero-points span,
.trust-list span {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf3ff;
  font-weight: 750;
}

.hero-visual {
  min-width: 0;
}

.interface-board {
  position: relative;
  min-height: 520px;
}

.board-main,
.board-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.board-main {
  right: 0;
  top: 72px;
  width: min(660px, 100%);
  z-index: 3;
}

.board-card {
  width: min(430px, 72%);
  opacity: 0.9;
}

.board-card-a {
  left: 0;
  top: 6px;
  z-index: 2;
  transform: rotate(-4deg);
}

.board-card-b {
  left: 42px;
  bottom: 16px;
  z-index: 1;
  transform: rotate(3deg);
}

.proof-strip,
.service-grid,
.case-grid,
.steps,
.format-grid,
.faq-grid,
.link-grid {
  display: grid;
  gap: 14px;
}

.proof-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 74px;
}

.proof-strip article,
.info-card,
.case-card,
.steps article,
.faq details,
.contact-panel,
.seo-page-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.proof-strip article {
  padding: 22px;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.55;
}

section:not(.hero):not(.proof-strip) {
  padding: 86px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  color: #fff;
}

.block-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(138, 244, 31, 0.28);
  border-radius: var(--radius);
  background: var(--green-soft);
}

.block-cta span {
  color: #f3ffe4;
  font-size: 18px;
  font-weight: 800;
}

.case-grid {
  grid-template-columns: 1fr;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
}

.case-card img {
  width: 100%;
  border-radius: var(--radius);
  background: #0d1420;
}

.case-type {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: 36px;
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 10px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article {
  padding: 24px;
}

.steps b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #071017;
}

.format-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq details {
  padding: 20px 22px;
}

.faq summary {
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.faq p {
  margin: 12px 0 0;
}

.seo-links {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-grid a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: #eaf3ff;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 30px;
  height: 100%;
}

/* CodeCraft Solutions: project estimate form — posts to the same leads API
   as the ProkatOS site (api.prokatos.ru), source: codecraft-solutions-site. */
.lead-form {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 141, 255, 0.22);
}

.lead-form .form-honeypot {
  display: none !important;
}

.consent-field {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: 13px;
}

.consent-field input {
  width: auto;
  margin-top: 3px;
}

.consent-field a {
  color: var(--cyan);
}

.form-status {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-status[data-type="success"] {
  color: var(--green);
}

.form-status[data-type="error"] {
  color: #ff8a8a;
}

.lead-form button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 152-FZ analytics consent dialog — counters load only after "Allow analytics". */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 26px 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-consent h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.cookie-consent p {
  max-width: 900px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}

.cookie-consent-link {
  display: inline-block;
  color: #1d6fe0;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-link:hover {
  color: #0b4fb3;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.consent-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

.consent-accept {
  border: 0;
  background: linear-gradient(135deg, #1f7ae8, #0b4fb3);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 111, 224, 0.28);
}

.consent-accept:hover {
  filter: brightness(1.08);
}

.consent-decline {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.consent-decline:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.consent-button:focus-visible,
.cookie-consent-link:focus-visible {
  outline: 3px solid rgba(29, 111, 224, 0.4);
  outline-offset: 2px;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--text);
}

.form-captcha {
  min-height: 100px;
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 20px;
  }

  .cookie-consent p,
  .cookie-consent-link {
    font-size: 15px;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .consent-button {
    width: 100%;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.seo-body {
  padding-top: 46px;
}

.seo-hero {
  padding: 72px 0 32px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: #dce8ff;
}

.seo-page-panel {
  padding: 32px;
}

.seo-page-panel h2 {
  margin-top: 34px;
}

.seo-page-panel ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero,
  .split-section,
  .seo-links,
  .contact-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding-top: 58px;
  }

  .interface-board {
    min-height: 420px;
  }

  .proof-strip,
  .service-grid,
  .steps,
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    margin-top: 10px;
  }

  .header-actions {
    width: 100%;
  }

  .header-action {
    flex: 1;
  }

  .hero {
    padding: 42px 0 48px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero-actions,
  .contact-actions,
  .block-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .header-action {
    width: 100%;
  }

  .hero-points,
  .proof-strip,
  .service-grid,
  .steps,
  .format-grid,
  .faq-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .interface-board {
    min-height: 300px;
  }

  .board-main {
    position: relative;
    top: auto;
    right: auto;
  }

  .board-card {
    display: none;
  }

  section:not(.hero):not(.proof-strip) {
    padding: 56px 0;
  }

  .proof-strip {
    padding-bottom: 36px;
  }

  .info-card,
  .proof-strip article,
  .case-card,
  .steps article,
  .contact-panel,
  .seo-page-panel {
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ==========================================================================
   Dynamic site: navigation state, blog, articles, prose
   ========================================================================== */

.nav a.is-current {
  color: var(--green);
  background: var(--green-soft);
}

.inner-page main.section-shell {
  padding-top: 40px;
}

.inner-page .contact {
  padding: 40px 0 80px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-heading-row > div {
  max-width: 760px;
}

/* --- tags & meta --------------------------------------------------------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cfe0f5;
  font-size: 12px;
  font-weight: 800;
}

a.tag:hover {
  border-color: rgba(138, 244, 31, 0.5);
  color: var(--green);
}

.tag-accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #42d7ff);
  color: #061018;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta > * + *::before {
  content: "·";
  margin-right: 16px;
  color: rgba(170, 183, 202, 0.5);
}

/* --- article cards ------------------------------------------------------- */

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

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, opacity 520ms ease;
}

.article-card:hover {
  border-color: rgba(138, 244, 31, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(138, 244, 31, 0.12);
}

.article-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1520;
  border-bottom: 1px solid var(--line);
}

.article-card-cover img,
.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.article-card:hover .article-card-cover img,
.featured-article:hover .featured-cover img {
  transform: scale(1.04);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.article-card h3 {
  color: #fff;
  font-size: 20px;
}

.article-card p {
  flex: 1;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- blog index ---------------------------------------------------------- */

.blog-hero {
  padding: 40px 0 28px;
}

.blog-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.tag-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e5f5;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.tag-chip span {
  color: var(--muted);
  font-weight: 600;
}

.tag-chip:hover {
  border-color: rgba(138, 244, 31, 0.45);
}

.tag-chip.is-active {
  border-color: transparent;
  background: var(--green);
  color: #071017;
}

.tag-chip.is-active span {
  color: rgba(7, 16, 23, 0.7);
}

.featured-article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(138, 244, 31, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(138, 244, 31, 0.12), transparent 26rem),
    var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 200ms ease;
}

.featured-article:hover {
  border-color: rgba(138, 244, 31, 0.6);
}

.featured-cover {
  min-height: 300px;
  overflow: hidden;
  background: #0d1520;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.featured-body h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.read-more {
  margin-top: 22px;
  color: var(--green);
  font-weight: 800;
  transition: letter-spacing 200ms ease;
}

.featured-article:hover .read-more {
  letter-spacing: 0.02em;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.pagination a.is-active {
  background: var(--green);
  color: #071017;
  border-color: transparent;
}

.empty-state {
  padding: 60px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

/* --- article page -------------------------------------------------------- */

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
}

.article-header {
  max-width: 900px;
  padding: 24px 0 30px;
}

.article-header h1 {
  max-width: none;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
}

.article-cover {
  margin: 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1520;
  aspect-ratio: 21 / 9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 56px;
  align-items: start;
}

.article-layout.no-toc {
  grid-template-columns: minmax(0, 760px);
}

.article-toc {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 26, 40, 0.6);
}

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

.article-toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  transition: color 160ms ease, border-color 160ms ease;
}

.article-toc .toc-level-3 a {
  padding-left: 22px;
  font-size: 13px;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--text);
  border-left-color: var(--green);
}

.related {
  padding: 80px 0 20px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.share-row a,
.share-row button {
  padding: 0;
  border: 0;
  background: none;
  color: #dce8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.share-row a:hover,
.share-row button:hover {
  color: var(--green);
}

/* --- prose (article & service page content) ------------------------------ */

.prose {
  color: #c9d6e8;
  font-size: 18px;
  line-height: 1.75;
}

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

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 22px;
  color: #c9d6e8;
  line-height: 1.75;
}

.prose h2 {
  margin: 52px 0 18px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  scroll-margin-top: 110px;
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 22px;
  scroll-margin-top: 110px;
}

.prose strong {
  color: #fff;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(53, 215, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.prose a:hover {
  text-decoration-color: var(--cyan);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.prose li::marker {
  color: var(--green);
  font-weight: 800;
}

.prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--green-soft);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070b11;
}

.prose pre code {
  padding: 0;
  background: none;
}

.prose table {
  display: block;
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.seo-page-panel.prose h2:first-child {
  margin-top: 0;
}

.article-cta {
  margin-top: 40px;
}

.not-found {
  padding: 100px 0 120px;
}

@media (max-width: 980px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-article,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    max-height: none;
  }

  .featured-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-body {
    padding: 20px;
  }

  .prose {
    font-size: 17px;
  }

  .article-cover {
    aspect-ratio: 16 / 9;
  }

  .footer-links {
    gap: 14px;
  }

  .inner-page main.section-shell {
    padding-top: 20px;
  }
}
