/* ==========================================================================
   Section styles – services, pricing, process, faq, about, contact, footer
   ========================================================================== */

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 16px;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
}
.svc-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-navy-100);
}
.svc-illu {
  display: block;
  width: 160px;
  height: 160px;
  margin: -8px 0 12px -8px;
  user-select: none;
}
@media (max-width: 560px) {
  .svc-illu { width: 128px; height: 128px; }
}
.svc-title { font-size: 22px; margin-bottom: 12px; }
.svc-body {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  padding: 6px 0;
}
.svc-list li svg { color: var(--brand-cyan); margin-top: 3px; flex: 0 0 auto; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  background: linear-gradient(180deg, #0F2443 0%, #1A3A6B 100%);
  border-color: transparent;
  color: var(--fg-on-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.price-card.is-featured:hover { transform: translateY(-8px); }
.price-tag {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--brand-cyan);
  color: #fff;
}
.price-name {
  font-size: 18px;
  font-weight: 600;
  color: inherit;
  margin-bottom: 20px;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 2px;
  margin-bottom: 4px;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.price-num.is-text {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.is-featured .price-num { color: #fff; }
.price-period {
  font-size: 15px;
  color: var(--fg-3);
  font-weight: 500;
  flex: 0 1 auto;
}
.is-featured .price-period { color: var(--fg-on-dark-2); }
.price-sub {
  font-size: 14px;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.is-featured .price-sub { color: var(--fg-on-dark-2); }

.price-card .btn-secondary { /* override on featured card */
  color: var(--fg);
}
.price-card .btn-secondary:hover { color: #fff; }
.is-featured .btn-primary {
  background: #fff;
  color: var(--fg);
}
.is-featured .btn-primary:hover { background: var(--brand-cyan); color: #fff; }

.price-cta-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}
.price-cta-write {
  flex: 1 1 auto;
  min-width: 0;
}
.price-cta-row .msgr {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.price-cta-row .msgr img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 999px;
}
.price-cta-row .msgr:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--border-strong);
}
.is-featured .price-cta-row .msgr {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}
.is-featured .price-cta-row .msgr:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.32);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.is-featured .price-features { border-top-color: rgba(255,255,255,0.12); }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  padding: 7px 0;
  line-height: 1.45;
}
.is-featured .price-features li { color: var(--fg-on-dark-2); }
.price-features li svg { color: var(--color-success); margin-top: 3px; flex: 0 0 auto; }
.is-featured .price-features li svg { color: #7FE4A3; }
.price-features li.is-strong {
  color: var(--fg);
  font-weight: 600;
}
.is-featured .price-features li.is-strong { color: #fff; }

.pricing-footnote {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
}

/* ---- Process ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 980px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}
.proc-step {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.proc-step:last-child { border-right: 0; }
@media (max-width: 980px) {
  .proc-step:nth-child(2) { border-right: 0; }
  .proc-step:nth-child(1), .proc-step:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .proc-step { border-right: 0; border-bottom: 1px solid var(--border); }
  .proc-step:last-child { border-bottom: 0; }
}
.proc-illu {
  display: block;
  width: 128px;
  height: 128px;
  margin: -8px 0 8px -10px;
  user-select: none;
}
@media (max-width: 560px) {
  .proc-illu { width: 104px; height: 104px; }
}
.proc-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.proc-title {
  font-size: 20px;
  margin-bottom: 10px;
}
.proc-body {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ---- FAQ ---- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: 96px;
}
.faq-intro .eyebrow { margin-bottom: 16px; }
.faq-intro .section-title { margin-bottom: 16px; }
.faq-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-bottom: 28px;
  max-width: 380px;
}
.faq-illustration {
  margin: 0 0 28px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.faq-illustration svg,
.faq-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faq-cta { padding: 12px 18px; font-size: 15px; }
.faq-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-msgr-ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 999px;
  flex: 0 0 auto;
}

@media (max-width: 880px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .faq-illustration { max-width: 360px; }
  .faq-lead { max-width: none; }
}

.faq-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.faq-q:hover { background: var(--bg-muted); }
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--bg-muted);
  color: var(--fg);
  flex: 0 0 auto;
}
.faq-icon .ic-minus { display: none; }
.faq-item.is-open .faq-icon {
  background: var(--brand-navy);
  color: #fff;
}
.faq-item.is-open .faq-icon .ic-plus { display: none; }
.faq-item.is-open .faq-icon .ic-minus { display: inline; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-item.is-open .faq-a { max-height: 800px; }
.faq-a p {
  padding: 0 24px 22px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}
.faq-a p.faq-a-links {
  padding-top: 0;
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--fg-3, var(--fg-2));
}
.faq-a-links-label {
  margin-right: 6px;
  opacity: 0.75;
}
.faq-a-links a {
  color: var(--brand-cyan);
  text-decoration: underline;
}
.faq-a-links-sep {
  opacity: 0.5;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-para {
  font-size: 17px;
  color: var(--fg-2);
  margin-bottom: 14px;
  line-height: 1.6;
}
.about-para b { color: var(--fg); font-weight: 600; }
.about-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}
.about-ctas .msgr-lg {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.about-ctas .msgr-lg img { width: 32px; height: 32px; }
.about-ctas .msgr-lg:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--border-strong);
}
.about-aside {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.a-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--brand-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.a-stat-unit {
  font-size: 18px;
  color: var(--fg-3);
  font-weight: 600;
  margin-left: 2px;
}
.a-stat-label {
  display: block;
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 4px;
  line-height: 1.4;
}
.stack-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--fg-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}

/* ---- Contact (dark section) ---- */
.section-dark {
  background: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(46, 127, 200, 0.22), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(91, 127, 168, 0.16), transparent 45%);
}
.section-dark .eyebrow.on-dark { color: #7FB9EB; }
.section-dark .eyebrow.on-dark::before { background: #7FB9EB; }
.section-dark .section-title.on-dark { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
}
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-lead {
  font-size: 18px;
  color: var(--fg-on-dark-2);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 460px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chan {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  color: var(--fg-on-dark);
  transition: background var(--dur-fast) var(--ease-out);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.chan:hover {
  color: var(--fg-on-dark);
  background: rgba(255,255,255,0.08);
}
.chan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  flex: 0 0 auto;
}
.chan-tg { background: #229ED9; color: #fff; }
.chan-wa { background: #25D366; color: #fff; }
.chan-call { background: var(--brand-cyan); color: #fff; }
.chan-label {
  display: block;
  font-size: 13px;
  color: var(--fg-on-dark-2);
  margin-bottom: 2px;
}
.chan-value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-on-dark);
}

.contact-form {
  background: #fff;
  color: var(--fg);
  padding: 32px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.contact-form .field { margin-bottom: 16px; }

.f-submit-default,
.f-submit-sending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
#f-submit { display: inline-flex; align-items: center; justify-content: center; }
#f-submit .f-submit-default svg { flex: 0 0 auto; }
.input.is-err, .textarea.is-err {
  border-color: var(--color-danger);
  background: var(--color-danger-50);
}
.err {
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 2px;
}
.err-consent { display: block; margin-top: 6px; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  padding: 8px 0 16px;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: var(--r-xs);
  border: 1.5px solid var(--border-strong);
  background: #fff;
  margin-top: 2px;
  color: #fff;
  transition: all var(--dur-fast) var(--ease-out);
}
.check input:checked + .check-box {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}
.check input:focus-visible + .check-box {
  box-shadow: var(--shadow-focus);
}
.check-text {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.form-footer {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
}

.contact-success {
  text-align: center;
  padding: 40px 20px;
}
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 999px;
  background: var(--color-success);
  color: #fff;
  margin-bottom: 24px;
}
.success-lead {
  color: var(--fg-on-dark-2);
  font-size: 18px;
  margin: 16px auto 12px;
  max-width: 480px;
}
.success-meta { color: #7FB9EB; font-size: 13px; margin-bottom: 28px; }
.success-ctas { display: flex; gap: 12px; justify-content: center; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-darkest);
  color: var(--fg-on-dark-2);
  padding: 72px 0 0;
}
.site-footer .logo { color: #fff; }
.site-footer .logo-word { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-tagline {
  margin-top: 18px;
  font-size: 15px;
  color: var(--fg-on-dark-2);
  max-width: 280px;
  line-height: 1.5;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7FB9EB;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--fg-on-dark-2);
  font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-col .muted {
  color: var(--fg-on-dark-2);
  opacity: 0.7;
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom .muted { color: #6F8FB8; font-size: 13px; }
@media (max-width: 560px) {
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Blog – shared (used on blog index, category, post)
   ========================================================================== */

/* Shared logo image rule (was inline on index.html) */
.logo-img { height: 32px; width: auto; display: block; }
.site-footer .footer-logo-box {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.site-footer .footer-logo-box .logo-img { display: block; }
.site-footer .footer-col .muted { margin-top: 10px; }

/* ---- Breadcrumbs ---- */
.bc-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  margin: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fg-3);
}
.bc li { display: inline-flex; align-items: center; }
.bc-link {
  color: var(--fg-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.bc-link:hover { color: var(--brand-cyan); }
.bc-sep {
  color: var(--fg-4);
  font-size: 11px;
  user-select: none;
}
.bc-current {
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
  max-width: 60ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Blog hero (index + category) ---- */
.blog-hero {
  padding: 72px 0 48px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.blog-hero-h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 18px;
}
.blog-hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 620px;
  margin-bottom: 18px;
}
.blog-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-hero-meta b { color: var(--fg); font-weight: 600; }
.blog-hero-meta span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--fg-4);
}

/* ---- Cluster chips ---- */
.chips-wrap {
  background: var(--bg);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover {
  color: var(--brand-navy);
  border-color: var(--brand-navy);
  background: var(--brand-navy-50);
}
.chip.is-active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}
.chip.is-active:hover { background: var(--brand-navy-600); color: #fff; }

/* ---- Section: blog list (compact top) ---- */
.section.section--blog-list { padding-top: 40px; }
@media (max-width: 768px) {
  .section.section--blog-list { padding-top: 32px; }
}

/* ---- Post grid + cards ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1199px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 20px; }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: inherit;
}
.post-card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-muted);
  overflow: hidden;
}
.post-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-card-cover img { transform: scale(1.04); }
.post-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 22px 20px;
  gap: 10px;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.post-card:hover .post-card-title { color: var(--brand-navy); }
.post-card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.post-card-meta svg { color: var(--fg-4); flex: 0 0 auto; }
.post-card-meta time, .post-card-meta .rt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
}
.pagination-link, .pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.pagination-link:hover, .pagination-arrow:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--brand-navy);
}
.pagination-link[aria-current="page"] {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}
.pagination-arrow svg { width: 14px; height: 14px; }

/* ---- CTA banner (used on category bottom + post bottom) ---- */
.cta-banner {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--fg-on-dark);
  margin-bottom: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner p {
  color: var(--fg-on-dark-2);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner-soft {
  background: var(--bg-soft);
  color: var(--fg);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-banner-soft h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 12px;
}
.cta-banner-soft p {
  color: var(--fg-2);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Pagination (blog list, category list)
   ========================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 0;
  font-family: var(--font-body);
}
.pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-page,
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.pagination-page:hover,
.pagination-arrow:not(.is-disabled):hover {
  background: var(--brand-cyan-50, #E6F0FA);
  border-color: var(--brand-cyan);
  color: var(--brand-navy);
}
.pagination-page.is-current {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
  cursor: default;
}
.pagination-arrow.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg-soft);
}
.pagination-gap {
  min-width: 24px;
  text-align: center;
  color: var(--fg-3);
  user-select: none;
}

/* ==========================================================================
   Post page – hero, layout, TOC, prose, callout, author
   ========================================================================== */

/* ---- Post hero ---- */
.post-hero {
  padding: 56px 0 36px;
  background: var(--bg);
}
.post-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-cyan-600);
  background: var(--brand-cyan-50);
  border: 1px solid color-mix(in oklab, var(--brand-cyan) 18%, transparent);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.post-hero-tag:hover {
  background: color-mix(in oklab, var(--brand-cyan) 14%, white);
  color: var(--brand-cyan-600);
}
.post-hero h1 {
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  margin-bottom: 22px;
}
.post-hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-bottom: 28px;
  max-width: 720px;
}
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--fg-3);
}
.post-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-hero-meta svg { color: var(--fg-4); }
.post-hero-meta b { color: var(--fg); font-weight: 600; }
.post-hero-divider {
  height: 1px;
  background: var(--border);
  margin-top: 36px;
}

/* ---- 2-col layout ---- */
.post-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding: 40px 0 80px;
  align-items: start;
}
.post-layout > * { min-width: 0; }
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
}

/* ---- TOC ---- */
.toc {
  position: sticky;
  top: 96px;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.toc-list li { counter-increment: toc; }
.toc { counter-reset: toc; }
.toc-link {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.toc-link::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  flex: 0 0 auto;
  padding-top: 2px;
}
.toc-link:hover { color: var(--brand-navy); }
.toc-link.is-active {
  color: var(--brand-navy);
  font-weight: 600;
  border-left-color: var(--brand-cyan);
}
.toc-link.is-active::before { color: var(--brand-cyan); }

.toc-mobile {
  display: none;
  margin: 0 0 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
}
.toc-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after {
  content: "";
  margin-left: auto;
  width: 8px; height: 8px;
  border-right: 2px solid var(--fg-3);
  border-bottom: 2px solid var(--fg-3);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.toc-mobile[open] summary::after { transform: rotate(225deg); }
.toc-mobile ol {
  margin: 0;
  padding: 0 18px 16px 36px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.7;
}
.toc-mobile a { color: var(--fg-2); }
.toc-mobile a:hover { color: var(--brand-navy); }
@media (max-width: 1024px) {
  .toc { display: none; }
  .toc-mobile { display: block; }
}

/* ---- Cover ---- */
.post-cover {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}
.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Prose (article body) ---- */
.prose {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg);
  max-width: 720px;
}
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--fg);
}
.prose p { margin: 0 0 16px; }

/* ---- Lists ---- */
.prose ul, .prose ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.65;
  list-style: none;
}
.prose ul li::marker,
.prose ol li::marker {
  content: "";
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px var(--brand-cyan-50, #E6F0FA);
}
.prose ol {
  counter-reset: prose-ol;
}
.prose ol > li {
  counter-increment: prose-ol;
  padding-left: 36px;
}
.prose ol > li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-navy);
  border-radius: var(--r-sm);
  letter-spacing: 0;
}
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul {
  margin: 8px 0 0;
}
.prose ul ul li::before {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--brand-cyan);
  width: 7px;
  height: 7px;
}

/* ---- Tables ---- */
.prose .table-wrap,
.prose figure.table,
.prose figure.wp-block-table {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.prose table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.55;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prose .table-wrap > table,
.prose figure.table > table,
.prose figure.wp-block-table > table {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.prose thead {
  background: var(--bg-soft);
}
.prose th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.prose td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg);
}
.prose tbody tr:first-child td { border-top: 0; }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }
.prose tbody tr:hover { background: var(--brand-cyan-50, #E6F0FA); }
.prose td code {
  font-size: 0.92em;
}
.prose a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--brand-navy); text-decoration-color: var(--brand-navy); }
.prose a.btn, .prose .callout a { text-decoration: none; }
.prose a.btn-primary { color: #fff; }
.prose a.btn-primary:hover { color: #fff; }
.prose a.btn-secondary { color: var(--fg); }
.prose a.btn-max { color: var(--fg); }
.prose a.btn-max:hover { color: var(--fg); }
.prose strong { font-weight: 700; color: var(--fg); }
.prose em { font-weight: 600; font-style: normal; }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand-cyan);
  color: var(--fg-2);
  font-size: 19px;
  line-height: 1.55;
}
.prose blockquote p { margin: 0; }
.prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
}
.prose blockquote cite::before { content: "– "; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--fg);
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: var(--r-xs);
}
.prose pre {
  background: var(--bg-dark);
  color: #CDD6E4;
  padding: 20px 22px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0;
}
.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.prose img {
  display: block;
  max-width: min(100%, 400px);
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  margin: 24px 0;
}

/* ---- Callout (mid-article) ---- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 36px 0;
  padding: 22px 24px;
  background: var(--brand-cyan-50);
  border-left: 4px solid var(--brand-cyan);
  border-radius: var(--r-md);
}
.callout-icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-cyan);
  color: #fff;
  border-radius: var(--r-pill);
}
.callout-body { flex: 1 1 auto; }
.callout-body h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.callout-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin-bottom: 14px;
  max-width: none;
}
.callout-body .btn { font-size: 15px; padding: 12px 20px; }

/* ---- Author box ---- */
.author-box {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-top: 56px;
}
.author-box-avatar {
  width: 80px; height: 80px;
  border-radius: var(--r-pill);
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
}
.author-box-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--fg);
}
.author-box-bio {
  font-size: 14.5px;
  color: var(--fg-2);
  margin-bottom: 8px;
}
.author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-cyan);
}
.author-box-link:hover { color: var(--brand-navy); }

/* ---- Related posts ---- */
.related {
  background: var(--bg-soft);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 32px;
}

/* ---- Empty state (category) ---- */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-state p {
  font-size: 18px;
  color: var(--fg-2);
  margin-bottom: 18px;
}

/* ============================================================
   Header messenger icons (Telegram / Макс)
   ============================================================ */
.site-header-msgr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.msgr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.msgr img {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 999px;
}
.msgr:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 36, 67, 0.18);
}

/* ---- MAX logo in contact channels ---- */
.chan-max {
  background: #fff;
  padding: 4px;
}
.chan-max img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 999px;
}

/* ============================================================
   CTA button groups (Telegram + MAX pair)
   ============================================================ */
.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn-max {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-max:hover {
  background: var(--bg-soft);
  color: var(--fg);
  border-color: var(--fg-2);
  transform: translateY(-1px);
}
.btn-max-ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 999px;
  vertical-align: middle;
}
.on-dark .btn-max,
.cta-banner .btn-max {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.on-dark .btn-max:hover,
.cta-banner .btn-max:hover {
  background: #fff;
  color: var(--fg);
  border-color: #fff;
}

/* ============================================================
   Post intro CTA (над содержанием)
   ============================================================ */
.post-intro-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin: 0;
  background: var(--brand-cyan-50, #E6F0FA);
  border-left: 3px solid var(--brand-cyan);
  border-radius: var(--r-md);
}
.post-intro-cta p {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
}
.post-intro-cta p strong { color: var(--fg); font-weight: 700; }
.post-intro-cta .cta-actions { flex: 0 0 auto; }

/* ============================================================
   Author-box – с мессенджерами вместо ссылки
   ============================================================ */
.author-box-channels {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.author-box-channels .msgr {
  width: 36px;
  height: 36px;
}
.author-box-channels .msgr img {
  width: 32px;
  height: 32px;
}
.author-box-channels .call-lnk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.author-box-channels .call-lnk:hover { color: var(--fg); border-color: var(--fg-2); }

/* ============================================================
   Footer legal split (ИНН с новой строки)
   ============================================================ */
.footer-col .legal-name { display: block; }
.footer-col .legal-inn { display: block; margin-top: 4px; }
