/* Site design system — one stylesheet for public templates.
   Sections: foundation, homepage, article pages, forms, footer, social icons.
   No library imports, inline style blocks or forced cascade overrides. */
/* SHARED FOUNDATION */

:root {
  --inc: #0b4f6c;
  --ink: #0b4f6c;
  --ink-soft: rgba(11,79,108,.72);
  --ink-faint: rgba(11,79,108,.5);
  --line: rgba(11,79,108,.14);
  --bg: #fff;
  --white: #fff;
  --panel: #f6faf8;
  --accent: #20bf55;
  --accent-dark: #189646;
  --accent-soft: rgba(32,191,85,.12);
  --shadow: 0 4px 26px rgba(11,79,108,.08);
  --shadow-sm: 0 2px 10px rgba(11,79,108,.06);
  --sans: Arial,Helvetica,sans-serif;
  --font-body: Arial,Helvetica,sans-serif;
  --font-header: "Medium",sans-serif;
  --font-narrov: "Narrov",sans-serif;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion:reduce) {

  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px,1.6vw,19px);
}

/* HOME */

body.home-page * {
  box-sizing: border-box;
}

@font-face {
  font-family: "Medium";
  src: url("fonts/Grotesk/Medium.otf");
  font-display: swap;
  font-style: normal;
  font-weight: normal;
}

html, body.home-page {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 19px);
}

body.home-page ::selection {
  background: var(--accent);
  color: var(--white);
}

body.home-page h1, body.home-page h2, body.home-page h3, body.home-page .serif {
  font-family: var(--font-header);
}

body.home-page a {
  color: inherit;
}

body.home-page section[id^="p"] {
  scroll-margin-top: 84px;
}

/* ---------- TOP NAV ---------- */

body.home-page #siteHeader {
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  position: fixed;
  transition: background-color .3s ease, box-shadow .3s ease;
}

body.home-page #siteHeader.scrolled {
  background: var(--accent-dark);
  box-shadow: var(--shadow);
}

body.home-page .site-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
}

body.home-page .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  color: var(--bg);
  flex: none;
  font-family: var(--font-header);
  font-size: 22px;
}

body.home-page .site-logo .mark {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--bg);
}

body.home-page .site-logo .small {
  display: block;
  font-family: var(--font-header);
  font-weight: 400;
  font-size: 16px;
  color: var(--bg);
}

body.home-page .site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

body.home-page .nav-link {
  font-family: var(--font-header);
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--bg);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

body.home-page .nav-link:hover, body.home-page .nav-link:focus-visible {
  color: var(--bg);
  background: var(--accent);
}

body.home-page .nav-link.active {
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 700;
}

body.home-page .header-cta {
  flex: none;
  padding: 11px 20px;
  font-size: 13px;
}

body.home-page .nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-left: auto;
}

body.home-page .nav-toggle span, body.home-page .nav-toggle span::before, body.home-page .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

body.home-page .nav-toggle span {
  top: 21px;
}

body.home-page .nav-toggle span::before {
  top: -7px;
}

body.home-page .nav-toggle span::after {
  top: 7px;
}

body.home-page .nav-toggle.open span {
  background: transparent;
}

body.home-page .nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

body.home-page .nav-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

body.home-page #scrollProgress {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 101;
  transition: width .1s linear;
}

/* ---------- GENERIC ELEMENTS ---------- */

body.home-page .section-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 48px);
}

body.home-page .kicker-title {
  font-size: clamp(50px, 3.4vw, 92px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 24ch;
  color: var(--ink);
}

body.home-page .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 40ch;
  line-height: 1.55;
  margin: 0 0 34px;
}

body.home-page .note {
  font-size: 15px;
  color: var(--ink-faint);
}

body.home-page .btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  transition: background .2s ease, transform .2s ease;
}

body.home-page .btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

body.home-page .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

body.home-page .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

body.home-page .btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- SECTIONS (formerly flip pages) ---------- */

body.home-page section[id^="p"] {
  border-bottom: 1px solid var(--line);
}

body.home-page section[id^="p"]:last-of-type {
  border-bottom: none;
}

/* ---------- HERO ---------- */

body.home-page #p0 {
  min-height: 100vh;
}

body.home-page #p0 .section-inner {
  min-height: 100vh;
  padding-top: clamp(96px, 12vw, 150px);
  padding-bottom: clamp(56px, 8vw, 104px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

body.home-page .hero-inner {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)), url(images/fon_home.png);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
  top: 0;
  position: relative;
}

body.home-page #p0 .kicker-title {
  color: var(--bg);
}

body.home-page #p0 .kicker-title span {
  color: var(--accent);
}

body.home-page .hero-text {
  flex: 1.15;
  min-width: 0;
  max-width: 100%;
  color: var(--bg);
  margin-top: 50px;
}

body.home-page .stars {
  color: var(--accent-dark);
}

body.home-page #p0 .lede {
  color: var(--bg);
  max-width: 100%;
}

body.home-page .lede-accent {
  color: var(--accent);
  font-weight: 700;
}

body.home-page #p0 .hero-visual {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 100px);
  margin-top: clamp(40px, 6vw, 80px);
  flex-wrap: wrap;
  max-width: 100%;
}

body.home-page .hero-proof {
  padding: 18px 22px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  border: 2px solid var(--accent);
  width: 100%;
  max-width: 560px;
  min-width: 0;
  box-sizing: border-box;
  color: var(--ink);
  text-align: center;
  border-radius: 16px;
  flex: 1 1 380px;
}

body.home-page .hero-proof span {
  display: block;
}

body.home-page .hero-support {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: var(--white);
  font-family: var(--font-body);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: clamp(18px, 2vw, 24px);
  border: 2px solid var(--accent);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 1 320px;
}

body.home-page .hero-support:hover {
  background: var(--accent-dark);
}

body.home-page .hero-stars {
  color: var(--accent);
}

body.home-page .hero-support-head {
  font-size: 26px;
  color: var(--text);
}

body.home-page .hero-support span {
  display: block;
}

body.home-page .hero-support .number {
  font-size: 34px;
  line-height: 1.25;
  font-family: var(--font-body);
  color: var(--accent);
}

@media screen and (max-width: 800px) {

  body.home-page .hero-support {
    display: none;
  }

  body.home-page #p0 .hero-visual {
    flex: none;
  }
}

/* ---------- BLOCK: LIVE MAP EXHIBIT ---------- */

body.home-page .exhibit-wrap {
  display: flex;
  flex-direction: column;
  gap: 5vw;
  align-items: center;
}

body.home-page .exhibit-photo {
  width: 100%;
  max-width: 1600px;
}

@media screen and (max-width: 1024px) {

  body.home-page .exhibit-wrap {
    grid-template-columns: 1fr;
  }
}

body.home-page .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

body.home-page .stat-grid> :nth-child(odd):last-child {
  grid-column: 1 / -1;
}

body.home-page .stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

body.home-page .stat-card:hover {
  transform: translateY(-10px);
  transition: transform .5s ease;
  border: 1px solid var(--accent);
}

body.home-page .stat-card .num {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 36px);
  color: var(--accent-dark);
  margin-bottom: 6px;
  line-height: 1.1;
}

body.home-page .stat-card .lbl {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

body.home-page .pulse-button-shadow {
  animation: pulse-shadow 2s infinite;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

@keyframes pulse-shadow {

  0% {
    box-shadow: 0 0 0 0 rgba(32, 191, 85, .55);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(32, 191, 85, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(32, 191, 85, 0);
  }
}

/* imported live-map component styles (scoped to .rlm) */

body.home-page .rlm {
  --panel: #0d2430;
  --map-fill: #0a1c26;
  --map-stroke: #163849;
  --map-stroke-soft: #12303f;
  --accent: #3fe07f;
  --accent-dim: rgba(63, 224, 127, .18);
  --text: #eef7f3;
  --muted: #6f95a3;
}

body.home-page .rlm {
  width: 100%;
  max-width: 1600px;
  background: var(--panel);
  border-radius: 18px;
  padding: 28px 28px 20px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text);
  box-shadow: var(--shadow);
}

body.home-page .rlm__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.home-page .rlm__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.6s infinite;
}

@keyframes blink {

  0%,
    100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

body.home-page .rlm__body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {

  body.home-page .rlm__body {
    grid-template-columns: 1fr;
  }
}

body.home-page .rlm__map-wrap {
  position: relative;
  border: 1px solid var(--map-stroke-soft);
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, rgba(63, 224, 127, .07), transparent 55%),
        var(--map-fill);
  overflow: hidden;
}

body.home-page svg.rlm__svg {
  display: block;
  width: 100%;
  height: auto;
}

body.home-page .rlm__land {
  fill: #123141;
  stroke: none;
}

body.home-page .rlm__sweep-origin {
  transform-origin: 820px 480px;
  animation: sweep 6s linear infinite;
}

@keyframes sweep {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

body.home-page .marker-label {
  font-family: var(--font-body);
  font-size: 16px;
  fill: var(--text);
  opacity: 0;
}

body.home-page .rlm__feed {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.home-page .rlm__feed-title {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

body.home-page .rlm__feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
}

body.home-page .rlm__feed-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--map-stroke-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  animation: rowIn .35s ease both;
}

body.home-page .rlm__feed-list li .city {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

body.home-page .rlm__feed-list li .ev {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes rowIn {

  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.home-page .rlm__foot {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- AUDIENCE CARDS ---------- */

body.home-page .cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}

body.home-page .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  box-shadow: var(--shadow-sm);
}

body.home-page .card .num {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--accent-dark);
}

body.home-page .card h3 {
  margin: 0;
  font-size: 19px;
}

body.home-page .card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- PRINCIPLES ---------- */

body.home-page #p2 .section-inner {
  display: flex;
  flex-direction: column;
  gap: 5vw;
}

body.home-page #p2 .hero-text {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5vw;
}

body.home-page .principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}

body.home-page .principle-grid> :nth-child(even):last-child {
  grid-column: 1 / -1;
}

body.home-page .p-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

body.home-page .p-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

body.home-page .p-card .p-num {
  font-family: var(--font-header);
  font-size: 44px;
  color: var(--accent-soft);
  margin-bottom: 16px;
  display: block;
  position: absolute;
  top: 10px;
  right: 16px;
}

body.home-page .p-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

body.home-page .p-card p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}

body.home-page .registry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

body.home-page .r-item {
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

body.home-page .r-item h4 {
  margin: 0 0 4px;
  font-size: 22px;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--ink);
}

body.home-page .r-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

body.home-page .r-item img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

body.home-page .r-item-flex {
  display: flex;
  gap: 20px;
}

@media (max-width: 800px) {

  body.home-page .r-item img {
    display: none;
  }

  body.home-page .r-item-flex {
    display: block;
  }

  body.home-page .r-item {
    padding: 14px 0;
  }
}

@media (max-width: 720px) {

  body.home-page .principle-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- LOSS TIMELINE (scroll-driven horizontal) ---------- */

body.home-page .loss-timeline {
  margin-top: 4vw;
  padding-top: 4vw;
  border-top: 1px solid var(--line);
}

body.home-page .loss-timeline__head {
  max-width: 62ch;
  margin-bottom: 20px;
}

body.home-page .loss-timeline__head h3 {
  font-family: var(--font-header);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink);
}

body.home-page .loss-timeline__head p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

body.home-page .lt-scroll {
  position: relative;
  height: 260vh;
}

body.home-page .lt-sticky {
  position: sticky;
  top: 110px;
  padding: 40px 0 10px;
  overflow: hidden;
}

body.home-page .lt-progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 46px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

body.home-page .lt-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .1s linear;
}

body.home-page .lt-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

body.home-page .lt-item {
  flex: 0 0 min(360px, 78vw);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  opacity: .38;
  transform: scale(.94);
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease;
  box-shadow: var(--shadow-sm);
}

body.home-page .lt-item.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

body.home-page .lt-item .lt-num {
  font-family: var(--font-header);
  font-size: 40px;
  color: var(--accent-soft);
  display: block;
  margin-bottom: 14px;
  transition: color .35s ease;
}

body.home-page .lt-item.active .lt-num {
  color: var(--accent-dark);
}

body.home-page .lt-item h4 {
  margin: 0 0 10px;
  font-size: 21px;
  color: var(--ink);
}

body.home-page .lt-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

body.home-page .loss-timeline__foot {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
}

body.home-page .loss-timeline__foot p {
  font-family: var(--font-header);
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 900px) {

  body.home-page .lt-scroll {
    height: auto;
  }

  body.home-page .lt-sticky {
    position: static;
    padding: 0;
    overflow: visible;
  }

  body.home-page .lt-progress {
    display: none;
  }

  body.home-page .lt-track {
    flex-direction: column;
    transform: none;
    gap: 16px;
  }

  body.home-page .lt-item {
    flex: none;
    opacity: 1;
    transform: none;
  }

  body.home-page .lt-item.active {
    transform: none;
  }
}

@media (max-width: 1300px) {

  body.home-page #p2 .hero-text {
    grid-template-columns: 1fr;
    gap: 1vw;
  }

  body.home-page #p2 .lede, body.home-page #p2 .kicker-title {
    max-width: 80%;
  }
}

/* ---------- STEPS ---------- */

body.home-page .col2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

body.home-page #p3 .kicker-title {
  max-width: 80%;
}

body.home-page .steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  max-width: 760px;
}

body.home-page .step {
  display: flex;
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

body.home-page .step:first-child {
  border-top: 1px solid var(--line);
}

body.home-page .step .step-num {
  font-family: var(--font-header);
  font-size: 38px;
  color: var(--accent-dark);
  width: 56px;
  flex-shrink: 0;
}

body.home-page .step h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

body.home-page .step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 56ch;
  line-height: 1.55;
}

@media (max-width: 1300px) {

  body.home-page .col2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.home-page .step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 100ch;
    line-height: 1.35;
  }
}

/* ---------- LEAD PROMO (replaces old "Важно" column) ---------- */

body.home-page .lead-promo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 3vw, 42px);
}

body.home-page .lead-promo .kicker-title {
  font-size: clamp(24px, 2.6vw, 34px);
}

body.home-page .check-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 52ch;
}

body.home-page .check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

body.home-page .check-list li::before {
  content: "→";
  color: var(--accent-dark);
  font-weight: 700;
  flex: none;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */

body.home-page .faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: none;
  margin-top: 10px;
}

body.home-page .faq-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.home-page .faq-cta {
  margin-top: 30px;
}

body.home-page .faq-item {
  border-bottom: 1px solid var(--line);
}

body.home-page .faq-col .faq-item:first-child {
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {

  body.home-page .faq-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.home-page .faq-col:first-child .faq-item:last-child {
    border-bottom: 1px solid var(--line);
  }

  body.home-page .faq-col + .faq-col .faq-item:first-child {
    border-top: none;
  }
}

body.home-page .faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 19px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-header);
  font-size: 27px;
  color: var(--ink);
  gap: 16px;
}

body.home-page .faq-q .plus {
  font-size: 18px;
  color: var(--accent-dark);
  transition: transform .25s ease;
  flex: none;
}

body.home-page .faq-item.open .plus {
  transform: rotate(45deg);
}

body.home-page .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

body.home-page .faq-item.open .faq-a {
  max-height: 280px;
}

body.home-page .faq-a p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- PRICING ---------- */

body.home-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

body.home-page .price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

body.home-page .price-card:hover {
  border: 1px solid var(--accent);
}

body.home-page .price-card.featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

body.home-page .price-card .badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 20px;
}

body.home-page .price-card .p-format {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

body.home-page .price-card.featured .p-format {
  color: #6fe89c;
}

body.home-page .price-card h3 {
  margin: 0 0 10px;
  font-size: 29px;
}

body.home-page .price-card .p-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}

body.home-page .price-card.featured .p-desc {
  color: rgba(255, 255, 255, .72);
}

body.home-page .price-card .p-price {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 2px;
}

body.home-page .price-card .p-price-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

body.home-page .price-card.featured .p-price-note {
  color: rgba(255, 255, 255, .55);
}

body.home-page .price-card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

body.home-page .price-card li {
  font-size: 13.5px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

body.home-page .price-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

body.home-page .price-card.featured li::before {
  color: var(--accent);
}

body.home-page .price-card .btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

body.home-page .price-card.featured .btn {
  background: var(--accent);
}

body.home-page .price-card.featured .btn:hover {
  background: var(--accent-dark);
}

@media (max-width: 880px) {

  body.home-page .pricing-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .price-card.featured {
    transform: none;
  }
}

/* ---------- CALCULATORS ---------- */

body.home-page .calc-embed {
  max-width: 1000px;
}

body.home-page #p-calc .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

body.home-page #p-calc .tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

body.home-page #p-calc .tab-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

body.home-page #p-calc .tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

body.home-page #p-calc .tab-content {
  display: none;
}

body.home-page #p-calc .tab-content.active {
  display: block;
}

body.home-page #p-calc .tab-content > h3:first-child {
  font-size: clamp(19px, 1.8vw, 23px);
  margin: 0 0 18px;
}

body.home-page #p-calc .box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

body.home-page #p-calc .box h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

body.home-page #p-calc .label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

body.home-page #p-calc .check-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

body.home-page #p-calc .check-inline input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-dark);
}

body.home-page #p-calc .input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--panel);
  color: var(--ink);
  box-sizing: border-box;
}

body.home-page #p-calc .input:focus-visible {
  outline: 2.5px solid var(--accent);
  border-color: var(--accent);
}

body.home-page #p-calc select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230b4f6c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---- result blocks (classes generated by calc.js) ---- */

body.home-page #p-calc .result-main {
  text-align: center;
  padding: clamp(22px, 3vw, 32px) 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1.5px solid var(--accent-soft);
  margin-bottom: 20px;
}

body.home-page #p-calc .result-main p {
  margin: 4px 0;
  color: var(--ink-soft);
}

body.home-page #p-calc .scale {
  height: 12px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
}

body.home-page #p-calc .scale-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  border-radius: 10px;
}

body.home-page #p-calc .warn {
  background: #fff7e6;
  border: 1px solid #f2c97d;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #a66a00;
  font-size: 14px;
}

body.home-page #p-calc .result-card {
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 10px;
}

body.home-page #p-calc .result-card.accent {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

body.home-page #p-calc .rc-label {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.home-page #p-calc .rc-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

body.home-page #p-calc .result-card.accent .rc-value {
  font-size: 24px;
  color: var(--accent-dark);
}

body.home-page #p-calc .rc-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
}

body.home-page #p-calc .tier {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

body.home-page #p-calc .tier.active {
  background: var(--accent-dark);
  color: var(--white);
}

body.home-page #p-calc .tier.mid {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

body.home-page #p-calc .tier.low {
  background: var(--line);
  color: var(--ink-faint);
}

@media (max-width: 600px) {

  body.home-page #p-calc .tabs {
    flex-direction: column;
  }

  body.home-page #p-calc .tab-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ---------- REVIEWS ---------- */

body.home-page .reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 20px;
}

body.home-page .rating-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

body.home-page .rating-badge .big {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent-dark);
}

body.home-page .rating-badge .stars {
  font-size: 14px;
  letter-spacing: 1px;
}

body.home-page .rating-badge .cnt {
  font-size: 12.5px;
  color: var(--ink-faint);
}

body.home-page .reviews-scroll {
  position: relative;
  margin: 0 calc(-1 * clamp(20px, 6vw, 48px));
  padding: 0 calc(1 * clamp(20px, 6vw, 48px));
}

body.home-page .reviews-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(20px, 6vw, 48px);
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

body.home-page .reviews-grid::-webkit-scrollbar {
  height: 6px;
}

body.home-page .reviews-grid::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 4px;
}

body.home-page .reviews-grid::-webkit-scrollbar-track {
  background: transparent;
}

body.home-page .review {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
  transition: opacity .35s ease, transform .35s ease, border-color .3s ease, box-shadow .3s ease;
}

body.home-page .review:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

@media (max-width: 880px) {

  body.home-page .reviews-scroll {
    margin: 0 calc(-1 * clamp(16px, 5vw, 24px));
    padding: 0 clamp(16px, 5vw, 24px);
  }
}

body.home-page .review {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

body.home-page .review .stars {
  color: var(--accent-dark);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

body.home-page .review p {
  font-size: 14.5px;
  color: var(--ink-soft);
  flex: 1;
}

body.home-page .review .who {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.home-page .review .who .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accent-dark);
  flex: none;
}

body.home-page .review .who b {
  font-size: 13.5px;
  display: block;
  color: var(--ink);
}

body.home-page .review .who span {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 880px) {

  body.home-page #p0 .section-inner, body.home-page #p2 .section-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  body.home-page .hero-visual {
    align-items: stretch;
  }

  body.home-page .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.home-page .kicker-title {
    max-width: none;
  }
}

@media (max-width: 520px) {

  body.home-page .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  body.home-page .registry-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- TOP NAV: MOBILE ---------- */

body.home-page #navBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 79, 108, .35);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

body.home-page #navBackdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1279px) {

  body.home-page .nav-toggle {
    display: block;
  }

  body.home-page .site-nav {
    position: fixed;
    top: var(--header-h, 64px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    gap: 2px;
    max-height: calc(100dvh - var(--header-h, 64px));
    overflow-y: auto;
      transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 99;
  }

  body.home-page .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.home-page .nav-link {
    color: var(--ink);
    padding: 14px 10px;
    border-radius: 8px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--line);
  }

  body.home-page .nav-link:hover, body.home-page .nav-link:focus-visible {
    color: var(--white);
  }

  body.home-page .nav-link:last-of-type {
    border-bottom: none;
  }

  body.home-page .header-cta {
    display: none;
  }

  body.home-page .site-nav .header-cta-mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

@media (min-width: 1280px) {

  body.home-page .header-cta-mobile {
    display: none;
  }
}

/* ---------- FOOTER ---------- */

body.home-page #siteFooter {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
}

body.home-page .footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) clamp(20px, 6vw, 48px) clamp(28px, 4vw, 40px);
}

body.home-page .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body.home-page .footer-logo {
  color: var(--white);
}

body.home-page .footer-logo .small {
  color: var(--white);
}

body.home-page .footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(32px, 4vw, 48px) 0;
}

body.home-page .footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.home-page .footer-col-title {
  font-family: var(--font-header);
  font-size: 21px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

body.home-page .footer-col a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  transition: color .2s ease;
  width: fit-content;
}

body.home-page .footer-col a:hover {
  color: var(--accent);
}

body.home-page .footer-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

body.home-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}

body.home-page .footer-disclaimer {
  max-width: 46ch;
}

@media (max-width: 720px) {

  body.home-page .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  body.home-page .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  body.home-page .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ============ SCROLL REVEAL ANIMATION ============ */

body.home-page [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

body.home-page [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.home-page [data-reveal="left"] {
  transform: translateX(-32px);
}

body.home-page [data-reveal="left"].is-visible {
  transform: translateX(0);
}

body.home-page [data-reveal="right"] {
  transform: translateX(32px);
}

body.home-page [data-reveal="right"].is-visible {
  transform: translateX(0);
}

body.home-page [data-reveal="scale"] {
  transform: scale(0.92);
}

body.home-page [data-reveal="scale"].is-visible {
  transform: scale(1);
}

/* staggered delays for grouped items (cards, steps, faq, reviews, registry) */

body.home-page [data-reveal-group] > [data-reveal]:nth-child(1) {
  transition-delay: 0ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(2) {
  transition-delay: 90ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(3) {
  transition-delay: 180ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(4) {
  transition-delay: 270ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(5) {
  transition-delay: 360ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(6) {
  transition-delay: 450ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(7) {
  transition-delay: 540ms;
}

body.home-page [data-reveal-group] > [data-reveal]:nth-child(8) {
  transition-delay: 630ms;
}

@media (prefers-reduced-motion: reduce) {

  body.home-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.home-page a.btn, body.home-page a.btn:link, body.home-page a.btn:visited, body.home-page a.btn:hover, body.home-page a.btn:focus, body.home-page a.btn:active {
  text-decoration: none;
}

/* ARTICLES */

/* =========================================================
   style_article.css
   Shared stylesheet for article pages + article hub page.
   Design tokens, fonts, header/footer/nav are carried over
   from style_z.css (the landing page) so articles read as
   part of the same site. Everything below "ARTICLE COMPONENTS"
   is new, built to match that same visual language.
   ========================================================= */

body.article-page * {
  box-sizing: border-box;
}

@font-face {
  font-family: "Medium";
  src: url("fonts/Grotesk/Medium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: normal;
}

html, body.article-page {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.6vw, 19px);
}

body.article-page ::selection {
  background: var(--accent);
  color: var(--white);
}

body.article-page h1, body.article-page h2, body.article-page h3, body.article-page .serif {
  font-family: var(--font-header);
}

body.article-page a {
  color: inherit;
}

body.article-page img {
  max-width: 100%;
  display: block;
  border-radius: 20px;
}

/* ---------- TOP NAV (carried over from style_z.css) ---------- */

body.article-page #siteHeader {
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--accent-dark);
  position: fixed;
  box-shadow: var(--shadow);
}

body.article-page .site-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
}

body.article-page .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  color: var(--bg);
  flex: none;
  font-family: var(--font-header);
  font-size: 20px;
}

body.article-page .site-logo .mark {
  width: 34px;
  height: 34px;
  flex: none;
}

body.article-page .site-logo .small {
  display: block;
  font-family: var(--font-header);
  font-weight: 400;
  font-size: 14px;
  color: var(--bg);
}

body.article-page .site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

body.article-page .nav-link {
  font-family: var(--font-header);
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--bg);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

body.article-page .nav-link:hover, body.article-page .nav-link:focus-visible {
  color: var(--bg);
  background: var(--accent);
}

body.article-page .nav-link.active {
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 700;
}

body.article-page .header-cta {
  flex: none;
  padding: 11px 20px;
  font-size: 13px;
}

body.article-page .nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-left: auto;
}

body.article-page .nav-toggle span, body.article-page .nav-toggle span::before, body.article-page .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

body.article-page .nav-toggle span {
  top: 21px;
}

body.article-page .nav-toggle span::before {
  top: -7px;
}

body.article-page .nav-toggle span::after {
  top: 7px;
}

body.article-page .nav-toggle.open span {
  background: transparent;
}

body.article-page .nav-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

body.article-page .nav-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

body.article-page #navBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 79, 108, .35);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

body.article-page #navBackdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1279px) {

  body.article-page .nav-toggle {
    display: block;
  }

  body.article-page .site-nav {
    position: fixed;
    top: var(--header-h, 64px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    gap: 2px;
    max-height: calc(100dvh - var(--header-h, 64px));
    overflow-y: auto;
      transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 99;
  }

  body.article-page .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.article-page .nav-link {
    color: var(--ink);
    padding: 14px 10px;
    border-radius: 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  body.article-page .nav-link:last-of-type {
    border-bottom: none;
  }

  body.article-page .header-cta {
    display: none;
  }

  body.article-page .site-nav .header-cta-mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

@media (min-width: 1280px) {

  body.article-page .header-cta-mobile {
    display: none;
  }
}

/* ---------- GENERIC ELEMENTS (carried over) ---------- */

body.article-page .section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 6vw, 48px);
}

body.article-page .btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

body.article-page .btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

body.article-page .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

body.article-page .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

body.article-page .btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---------- FOOTER (carried over from style_z.css) ---------- */

body.article-page #siteFooter {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
}

body.article-page .footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) clamp(20px, 6vw, 48px) clamp(28px, 4vw, 40px);
}

body.article-page .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body.article-page .footer-logo {
  color: var(--white);
}

body.article-page .footer-logo .small {
  color: var(--white);
}

body.article-page .footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(32px, 4vw, 48px) 0;
}

body.article-page .footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.article-page .footer-col-title {
  font-family: var(--font-header);
  font-size: 21px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

body.article-page .footer-col a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  transition: color .2s ease;
  width: fit-content;
}

body.article-page .footer-col a:hover {
  color: var(--accent);
}

body.article-page .footer-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

body.article-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}

body.article-page .footer-disclaimer {
  max-width: 46ch;
}

@media (max-width: 720px) {

  body.article-page .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  body.article-page .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  body.article-page .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ARTICLE COMPONENTS (new)
   ========================================================= */

body.article-page {
  padding-top: 76px;
}

/* Breadcrumbs */

body.article-page .breadcrumbs {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 0 clamp(20px, 6vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

body.article-page .breadcrumbs a {
  text-decoration: none;
  color: var(--ink-soft);
}

body.article-page .breadcrumbs a:hover {
  color: var(--accent-dark);
}

body.article-page .breadcrumbs .sep {
  color: var(--ink-faint);
}

body.article-page .breadcrumbs .current {
  color: var(--ink);
  font-weight: 600;
}

/* Article header */

body.article-page .article-hero {
  padding-top: 18px;
  padding-bottom: 8px;
}

body.article-page .article-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-header);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

body.article-page .article-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

body.article-page .article-h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 45ch;
  color: var(--ink);
}

body.article-page .article-h1 .article-num {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

body.article-page .article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

body.article-page .article-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Layout: sticky TOC + content */

body.article-page .article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 980px) {

  body.article-page .article-layout {
    grid-template-columns: 1fr;
  }
}

body.article-page .article-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px;
  background: var(--panel);
}

@media (max-width: 980px) {

  body.article-page .article-toc {
    position: static;
    margin-bottom: 8px;
  }
}

body.article-page .article-toc-title {
  font-family: var(--font-header);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

body.article-page .article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.article-page .article-toc a {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

body.article-page .article-toc a:hover {
  background: var(--white);
  color: var(--ink);
}

body.article-page .article-toc a.active {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

body.article-page .article-body {
  min-width: 0;
}

body.article-page .article-body p {
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

body.article-page .article-body>p:first-of-type {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink);
}

body.article-page .article-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

body.article-page .article-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

body.article-page .article-section h2 {
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
  scroll-margin-top: 96px;
}

body.article-page .article-section h3 {
  font-size: 17px;
  margin: 22px 0 8px;
  color: var(--ink);
}

/* Quick-facts summary card (GEO: gives crawlers/LLMs a compact answer block) */

body.article-page .quick-facts {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 24px 0 24px;
  box-shadow: var(--shadow-sm);
}

body.article-page .quick-facts-title {
  font-family: var(--font-header);
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

body.article-page .quick-facts p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

/* Fact table */

body.article-page .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin: 8px 0 4px;
}

body.article-page table.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}

body.article-page table.fact-table thead th {
  text-align: left;
  font-family: var(--font-header);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 13px 18px;
  position: sticky;
  top: 0;
}

body.article-page table.fact-table tbody td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

body.article-page table.fact-table tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

body.article-page table.fact-table tbody tr:nth-child(even) {
  background: var(--panel);
}

/* Steps list */

body.article-page ol.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.article-page ol.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 46px;
  color: var(--ink-soft);
  line-height: 1.55;
}

body.article-page ol.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-header);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Plain bullet list (non-sequential) */

body.article-page .article-body ul:not(.steps-list) {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.article-page .article-body ul:not(.steps-list) li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  line-height: 1.55;
}

body.article-page .article-body ul:not(.steps-list) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* FAQ accordion */

body.article-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.article-page .faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

body.article-page .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 46px 16px 20px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  line-height: 1.4;
}

body.article-page .faq-item summary::-webkit-details-marker {
  display: none;
}

body.article-page .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-dark);
  transition: transform .2s ease;
}

body.article-page .faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

body.article-page .faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Sources / normative base */

body.article-page .sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.article-page .sources-list li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

body.article-page .sources-list li cite {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

/* Related articles */

body.article-page .related-wrap {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

body.article-page .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

@media (max-width: 900px) {

  body.article-page .related-grid {
    grid-template-columns: 1fr;
  }
}

body.article-page .related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}

body.article-page .related-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

body.article-page .related-card .rc-icon {
  width: 40px;
  height: 40px;
}

body.article-page .related-card .rc-title {
  font-family: var(--font-header);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.3;
}

body.article-page .related-card .rc-desc {
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---- reviewed-by strip ---- */

body.article-page .related-promo {
  margin: 0 auto;
}

body.article-page .reviewed-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 36px 0;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 50px;
}

body.article-page .reviewed-strip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- article CTA ---- */

body.article-page .article-cta {
  background: var(--ink);
  border-radius: 18px;
  padding: 32px clamp(20px, 5vw, 40px);
  color: var(--white);
  margin: 44px 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
}

body.article-page .article-cta h3 {
  color: var(--white);
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 10px;
}

body.article-page .article-cta p {
  color: rgba(255, 255, 255, .78);
  max-width: 48ch;
  margin: 0 auto 22px;
  line-height: 1.55;
  font-size: 15px;
}

/* =========================================================
   HUB PAGE (articles.html)
   ========================================================= */

body.article-page .hub-hero {
  text-align: left;
  padding-bottom: 8px;
}

body.article-page .hub-hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 35ch;
}

body.article-page .hub-hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}

body.article-page .hub-section-title {
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  margin: 0 0 6px;
  scroll-margin-top: 96px;
}

body.article-page .hub-region-title {
  font-family: var(--font-header);
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 30px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

body.article-page .hub-region-title:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 20px;
}

body.article-page .hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 12px;
}

body.article-page .hub-grid--region {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}

@media (max-width: 760px) {

  body.article-page .hub-grid, body.article-page .hub-grid--region {
    grid-template-columns: 1fr;
  }
}

body.article-page .hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

body.article-page .hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

body.article-page .hub-card-media {
  aspect-ratio: 16/9;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.article-page .hub-card-media img {
  border-radius: 0px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

body.article-page .hub-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

body.article-page .hub-card-tag {
  font-family: var(--font-header);
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

body.article-page .hub-card-title {
  font-family: var(--font-header);
  font-size: 26px;
  color: var(--ink);
  line-height: 1.25;
}

body.article-page .hub-card-desc {
  font-size: 14.5px;
  color: var(--ink-faint);
  line-height: 1.55;
  flex: 1;
}

body.article-page .hub-card-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

body.article-page .hub-card-link .arrow {
  transition: transform .2s ease;
}

body.article-page .hub-card:hover .hub-card-link .arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {

  body.article-page .hub-card, body.article-page .related-card {
    transition: none;
  }
}

/* Center article navigation; keep consultation CTA on the right like the home header */

@media (min-width: 1280px) {

  body.article-page .site-header__inner {
    position: relative;
  }

  body.article-page .article-main-nav {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.article-page .site-header__inner > .header-cta {
    margin-left: auto;
  }
}

/* Article/hub typography refinements */

body.article-page .article-h1, body.article-page .hub-hero h1 {
  color: var(--inc);
}

body.article-page .hub-card-title {
  color: var(--inc);
  font-size: 29px;
}

body.article-page .hub-card-tag {
  font-size: 14px;
}

body.article-page a.btn, body.article-page a.btn:link, body.article-page a.btn:visited, body.article-page a.btn:hover, body.article-page a.btn:focus, body.article-page a.btn:active {
  text-decoration: none;
}

/* ---------- CALCULATORS ---------- */

body.article-page .calc-embed {
  max-width: 1000px;
}

body.article-page #p-calc .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

body.article-page #p-calc .tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

body.article-page #p-calc .tab-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

body.article-page #p-calc .tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
}

body.article-page #p-calc .tab-content {
  display: none;
}

body.article-page #p-calc .tab-content.active {
  display: block;
}

body.article-page #p-calc .tab-content > h3:first-child {
  font-size: clamp(19px, 1.8vw, 23px);
  margin: 0 0 18px;
}

body.article-page #p-calc .box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

body.article-page #p-calc .box h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

body.article-page #p-calc .label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

body.article-page #p-calc .check-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

body.article-page #p-calc .check-inline input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-dark);
}

body.article-page #p-calc .input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--panel);
  color: var(--ink);
  box-sizing: border-box;
}

body.article-page #p-calc .input:focus-visible {
  outline: 2.5px solid var(--accent);
  border-color: var(--accent);
}

body.article-page #p-calc select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%230b4f6c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---- result blocks (classes generated by calc.js) ---- */

body.article-page #p-calc .result-main {
  text-align: center;
  padding: clamp(22px, 3vw, 32px) 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1.5px solid var(--accent-soft);
  margin-bottom: 20px;
}

body.article-page #p-calc .result-main p {
  margin: 4px 0;
  color: var(--ink-soft);
}

body.article-page #p-calc .scale {
  height: 12px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
}

body.article-page #p-calc .scale-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-dark));
  border-radius: 10px;
}

body.article-page #p-calc .warn {
  background: #fff7e6;
  border: 1px solid #f2c97d;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: #a66a00;
  font-size: 14px;
}

body.article-page #p-calc .result-card {
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 10px;
}

body.article-page #p-calc .result-card.accent {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

body.article-page #p-calc .rc-label {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.article-page #p-calc .rc-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

body.article-page #p-calc .result-card.accent .rc-value {
  font-size: 24px;
  color: var(--accent-dark);
}

body.article-page #p-calc .rc-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
}

body.article-page #p-calc .tier {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

body.article-page #p-calc .tier.active {
  background: var(--accent-dark);
  color: var(--white);
}

body.article-page #p-calc .tier.mid {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

body.article-page #p-calc .tier.low {
  background: var(--line);
  color: var(--ink-faint);
}

@media (max-width: 600px) {

  body.article-page #p-calc .tabs {
    flex-direction: column;
  }

  body.article-page #p-calc .tab-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Article calculators: show only the calculator relevant to the current article */

body.article-page .article-calculator .tabs {
  display: none;
}

body.article-page .article-calculator .section-inner {
  padding-top: 36px;
  padding-bottom: 48px;
}

body.article-page .article-calculator .calc-embed {
  max-width: 820px;
}

/* SHARED FORMS/FOOTER */

.lead-section {
  padding: 72px 20px;
  background: #f5f8f6;
}

.lead-section-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15,45,30,.1);
  border-radius: 28px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 48px;
  box-shadow: 0 18px 50px rgba(13,48,29,.08);
}

.lead-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #16893f;
}

.lead-section h2,.lead-modal h3 {
  margin: 0;
  color: #153525;
  line-height: 1.08;
}

.lead-section h2 {
  font-size: clamp(30px,4vw,48px);
}

.lead-section-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: #55635a;
  max-width: 520px;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lead-field-wide,.lead-actions,.lead-status {
  grid-column: 1/-1;
}

.lead-field label {
  font-size: 14px;
  font-weight: 700;
  color: #20382a;
}

.lead-field input,.lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd7cf;
  border-radius: 13px;
  background: #fff;
  padding: 14px 15px;
  font: inherit;
  color: #17251c;
  outline: none;
  transition: border-color .2s,box-shadow .2s;
}

.lead-field textarea {
  resize: vertical;
  min-height: 100px;
}

.lead-field input:focus,.lead-field textarea:focus {
  border-color: #20bf55;
  box-shadow: 0 0 0 3px rgba(32,191,85,.12);
}

.lead-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lead-consent {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #748078;
}

.lead-actions .lead-consent {
  max-width: 360px;
}

.lead-status {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
}

.lead-status.is-success {
  color: #117a35;
}

.lead-status.is-error {
  color: #b42318;
}

.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7,18,12,.68);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s,visibility .2s;
}

.lead-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lead-modal {
  position: relative;
  width: min(620px,100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
  transform: translateY(12px) scale(.985);
  transition: transform .2s;
}

.lead-modal-overlay.open .lead-modal {
  transform: none;
}

.lead-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #eef3ef;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
  color: #25372b;
}

.lead-modal h3 {
  font-size: clamp(27px,5vw,38px);
  padding-right: 35px;
}

.lead-modal-lede {
  margin: 12px 0 24px;
  color: #5b675f;
  line-height: 1.5;
}

.lead-modal .lead-submit {
  grid-column: 1/-1;
  width: 100%;
}

.lead-modal .lead-consent,.lead-modal .lead-status {
  grid-column: 1/-1;
}

.lead-form button:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width:800px) {

  .lead-section {
    padding: 44px 14px;
  }

  .lead-section-inner {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 26px;
    border-radius: 22px;
  }

  .lead-section-copy p {
    font-size: 16px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-field-wide,.lead-actions,.lead-status,.lead-modal .lead-submit,.lead-modal .lead-consent,.lead-modal .lead-status {
    grid-column: 1;
  }

  .lead-modal {
    padding: 30px 20px 24px;
    border-radius: 20px;
  }

  .lead-modal-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .lead-modal {
    max-height: 92vh;
    width: 100%;
  }

  .lead-modal h3 {
    font-size: 29px;
  }
}

/* Validation and mobile hardening */

body.lead-modal-open {
  overflow: hidden;
}

.lead-field-error {
  display: block;
  min-height: 17px;
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.35;
  color: #b42318;
}

.lead-field input.is-invalid,.lead-field textarea.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217,45,32,.10);
}

.lead-field input.is-invalid:focus,.lead-field textarea.is-invalid:focus {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217,45,32,.14);
}

.lead-form input,.lead-form textarea,.lead-form button {
  max-width: 100%;
}

.lead-modal,.lead-section-inner {
  min-width: 0;
}

.lead-modal-overlay {
}

@media (max-width:480px) {

  .lead-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .lead-section-inner {
    padding: 22px 15px;
    border-radius: 18px;
  }

  .lead-section h2 {
    font-size: clamp(28px,9vw,38px);
    overflow-wrap: anywhere;
  }

  .lead-actions {
    align-items: stretch;
  }

  .lead-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lead-modal-overlay {
    padding: 6px;
  }

  .lead-modal {
    padding: 28px 15px 18px;
    border-radius: 18px 18px 0 0;
    max-height: calc(100dvh - 6px);
  }

  .lead-modal h3 {
    font-size: clamp(25px,8vw,30px);
    overflow-wrap: anywhere;
  }

  .lead-modal-close {
    right: 12px;
    top: 11px;
  }

  .lead-field input,.lead-field textarea {
    font-size: 16px;
  }
}

/* Targeted heading/menu colors */

#p0 h1.kicker-title {
  color: #fff;
}

/* Main section titles stay black; nested/card headings keep original theme colors */

main > section > .section-inner > h2,
.article-section > h2,
.hub-section-title,
.lead-section h2 {
  color: var(--inc);
}

/* Featured product title: "Личная консультация" */

.price-card.featured h3 {
  color: #fff;
}

/* Desktop active navigation item */

@media (min-width: 769px) {

  body.home-page #siteHeader .nav-link.active, body.article-page #siteHeader .nav-link.active {
    color: #fff;
  }
}

/* The modal primary action stays centered. */

.lead-modal .lead-submit {
  text-align: center;
  justify-content: center;
}

/* Final visual polish */

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
}

/* Requested home-page section titles match the lead-section title */

body.home-page #main .unified-section-title,
body.article-page #main .unified-section-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  max-width: none;
}

/* Keep modal submit label centered */

.lead-modal button[type="submit"],
.lead-modal .btn {
  text-align: center;
  justify-content: center;
}

/* Explicit consents for every lead form */

.lead-agreements {
  grid-column: 1/-1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

.lead-agreement {
  min-width: 0;
}

.lead-agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.5;
  color: #526258;
  cursor: pointer;
  font-weight: 400;
}

.lead-form .lead-agreement input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #16893f;
  cursor: pointer;
}

.lead-agreement-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lead-agreement a {
  color: #148741;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-agreement a:hover {
  text-decoration: none;
}

.lead-required {
  color: #bf2735;
}

.lead-agreement .lead-field-error {
  min-height: 0;
  margin: 0 0 0 29px;
}

.lead-agreement:not(.is-invalid) .lead-field-error:empty {
  display: none;
}

.lead-agreement.is-invalid .lead-agreement-label {
  color: #8e221b;
}

.lead-form .lead-agreement input[type="checkbox"].is-invalid {
  outline: 2px solid #d92d20;
  outline-offset: 3px;
}

.lead-form .lead-agreement input[type="checkbox"]:focus-visible {
  outline: 2px solid #16893f;
  outline-offset: 3px;
}

@media (max-width:480px) {

  .lead-agreement-label {
    font-size: 12px;
    gap: 9px;
  }

  .lead-agreement .lead-field-error {
    margin-left: 27px;
  }
}

/* Unified layout for the two static informational pages. */

body.info-page #main .info-content {
  max-width: 980px;
  padding: clamp(42px,5vw,70px) clamp(20px,6vw,48px) 90px;
}

body.info-page #main .info-content h1 {
  font-size: clamp(34px,4vw,53px);
  line-height: 1.15;
  margin: 0 0 24px;
}

body.info-page #main .info-content h2 {
  font-size: clamp(23px,2.5vw,31px);
  margin: 36px 0 12px;
}

body.info-page #main .info-content p,body.info-page #main .info-content li {
  line-height: 1.7;
}

body.info-page #main .info-content a {
  color: #137f46;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================================================
   Template-level spacing, typography and calculator states
   ================================================================ */

.article-hero-inner {
  padding-bottom: 0;
}

.article-lead-image {
  max-width: 1100px;
}

.article-mt-18 {
  margin-top: 18px;
}

.calc-label-gap {
  margin-top: 15px;
}

.calc-input-gap {
  margin-top: 12px;
}

.calc-result-number {
  font-size: 32px;
  font-weight: 700;
  color: #189646;
}

.calc-result-warning {
  color: #d97706;
}

.section-lede-spaced {
  margin-bottom: 52px;
}

.section-title-compact {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 34px);
}

.section-title-compact-lg {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.8vw, 34px);
}

.section-lede-tight {
  margin-bottom: 4px;
}

.section-lede-calculators {
  margin-bottom: 36px;
  max-width: 64ch;
}

.section-inner-compact-top {
  padding-top: 8px;
}

.not-found-content {
  padding-top: 110px;
  padding-bottom: 120px;
}

.section-title-process {
  font-size: clamp(28px, 3.6vw, 46px);
  max-width: 50ch;
}

.section-lede-constrained {
  max-width: 52ch;
}

.section-title-services {
  max-width: 14ch;
}

.section-head-no-gap {
  margin-bottom: 0;
}

.calc-scale-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}

.calc-result-detail {
  margin-top: 8px;
  font-size: 14px;
}

.calc-tier-row {
  display: flex;
  gap: 8px;
}

.calc-tier-amount {
  font-size: 12px;
}

.calc-advice-box {
  background: #fff7e6;
  border-color: #f2c97d;
}

.calc-advice-list {
  font-size: 14px;
  color: #a66a00;
  line-height: 1.4;
}

.hub-hero-inner {
  padding-bottom: 8px;
}

.hub-lede-tight {
  margin: 0 0 8px;
}

.metrika-noscript-image {
  position: absolute;
  left: -9999px;
}

/* ================================================================
   SOCIAL CHANNELS — single source of truth, no inline CSS
   ================================================================ */

.social-links-visible-2026,
.social-links-visible-2026 * {
  box-sizing: border-box;
}

.social-links-visible-2026 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  max-width: 100%;
  position: relative;
  z-index: 3;
}

.social-links-visible-2026 > .social-brand-2026 {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  overflow: hidden;
  background: var(--accent, #20bf55);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.social-brand-2026--vk {
  --social-hover-bg: #2787f5;
  --social-hover-fg: #fff;
}

.social-brand-2026--channel-02 {
  --social-hover-bg: #2c3036;
  --social-hover-fg: #fff;
}

.social-brand-2026--rutube {
  --social-hover-bg: #100943;
  --social-hover-fg: #fff;
}

.social-brand-2026--vc {
  --social-hover-bg: #fff;
  --social-hover-fg: #151515;
}

.social-brand-2026--max {
  --social-hover-bg: #483cf0;
  --social-hover-fg: #fff;
}

.social-links-visible-2026 > .social-brand-2026:is(:hover, :focus-visible) {
  background: var(--social-hover-bg, #189646);
  color: var(--social-hover-fg, #fff);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
}

.social-links-visible-2026 > .social-brand-2026--max:is(:hover, :focus-visible) {
  background: linear-gradient(135deg, #44caff 0%, #433ef2 60%, #9b30d6 100%);
}

.social-links-visible-2026 > .social-brand-2026:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.social-brand-logo-2026 {
  display: block;
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.social-brand-logo-2026 img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  transition: opacity .18s ease;
}

.social-brand-logo-2026 .social-brand-white-2026 {
  inset: 10%;
  width: 80%;
  height: 80%;
  opacity: 1;
}

.social-brand-logo-2026 .social-brand-color-2026 {
  opacity: 0;
}

.social-brand-2026:is(:hover, :focus-visible) .social-brand-white-2026 {
  opacity: 0;
}

.social-brand-2026:is(:hover, :focus-visible) .social-brand-color-2026 {
  opacity: 1;
}

.social-brand-name-2026 {
  display: none;
}

.social-links-visible-2026--footer {
  flex-wrap: wrap;
  gap: 9px;
}

.social-links-visible-2026--footer > .social-brand-2026 {
  width: auto;
  min-height: 44px;
  height: 44px;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.social-links-visible-2026--footer .social-brand-logo-2026 {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.social-links-visible-2026--footer .social-brand-name-2026 {
  display: inline;
  color: inherit;
}

.social-media-section-2026 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px 26px;
  width: 100%;
  padding: 26px 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.20);
}

.social-media-heading-2026 {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 761px) and (max-width: 1260px) {

  #siteHeader .social-links-visible-2026--header {
    gap: 4px;
  }
}

@media (max-width: 760px) {

  .social-media-section-2026 {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-links-visible-2026--header {
    gap: 5px;
  }
}

@media (max-width: 420px) {

  .social-links-visible-2026--footer {
    gap: 7px;
  }

  .social-links-visible-2026--footer > .social-brand-2026 {
    font-size: 12px;
    padding-right: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .social-links-visible-2026 > .social-brand-2026,
  .social-brand-logo-2026 img {
    transition: none;
  }
}

/* Above 1440px, keep the desktop navigation proportional to its 1600px container.
   The CTA and nav do not grow until they force a second line. */
@media (min-width: 1441px) {
  body.home-page #siteHeader .nav-link {
    font-size: 15px;
    padding: 8px 7px;
  }

  body.home-page #siteHeader .header-cta {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ================================================================
   HEADER: component sizing (desktop and mobile)
   ================================================================ */

#siteHeader .site-header__inner {
  column-gap: clamp(10px, 1.2vw, 22px);
}

@media (min-width: 1280px) and (max-width: 1440px) {

  body.home-page #siteHeader .site-logo {
    font-size: 18px;
    max-width: 245px;
  }

  body.home-page #siteHeader .site-logo .small {
    font-size: 13px;
  }

  body.home-page #siteHeader .site-nav {
    gap: 0;
  }

  body.home-page #siteHeader .nav-link {
    font-size: 13px;
    padding: 7px 5px;
  }

  body.home-page #siteHeader .header-cta {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media (max-width: 650px) {

  body.home-page #siteHeader .site-header__inner,
  body.article-page #siteHeader .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    column-gap: 9px;
    row-gap: 9px;
    padding: 10px 16px;
  }

  #siteHeader .site-header__inner > .site-logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: 16px;
  }

  #siteHeader .site-logo .mark {
    width: 30px;
    height: 30px;
  }

  #siteHeader .site-logo .small {
    font-size: 12px;
  }

  #siteHeader .site-header__inner > .social-links-visible-2026--header {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 6px;
  }

  body.home-page #siteHeader .site-header__inner > .nav-toggle,
  body.article-page #siteHeader .site-header__inner > .nav-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-left: 0;
  }

  #siteHeader .site-header__inner > .site-nav {
    grid-column: 1 / -1;
  }

  body.article-page {
    padding-top: 115px;
  }
}

/* Former inline HTML styles must override component-level typography. */

body.article-page .article-hero .section-inner.article-hero-inner {
  padding-bottom: 0;
}

body.article-page .hub-hero .section-inner.hub-hero-inner {
  padding-bottom: 8px;
}

body.article-page .section-inner.section-inner-compact-top {
  padding-top: 8px;
}

body.home-page main .section-lede-spaced {
  margin-bottom: 52px;
}

body.home-page main .section-lede-tight {
  margin-bottom: 4px;
}

body.home-page main .section-lede-calculators,
body.article-page main .section-lede-calculators {
  margin-bottom: 36px;
  max-width: 64ch;
}

body.home-page main .section-title-compact,
body.article-page main .section-title-compact {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.8vw, 34px);
}

body.home-page main .section-title-compact-lg {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.8vw, 34px);
}

body.home-page main .section-title-process {
  font-size: clamp(28px, 3.6vw, 46px);
  max-width: 50ch;
}

body.home-page main .section-title-services {
  max-width: 14ch;
}

body.home-page main .section-head-no-gap {
  margin-bottom: 0;
}

body.article-page main .hub-lede-tight {
  margin: 0 0 8px;
}

/* All unified section titles retain their original shared scale. */

body.home-page #main body.home-page #main .unified-section-title,
body.article-page #main .unified-section-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  max-width: none;
}

body.article-page main .section-inner.not-found-content {
  padding-top: 110px;
  padding-bottom: 120px;
}
