/* =========================================================
   main.css — ready version for index article + sticky sidebar
   Replace css/main.css with this file
========================================================= */

/* ==============================
   HERO ARTICLE — COMPACT VERSION
============================== */

.page-main {
  min-height: auto;
  background: transparent;
}

.page-main::before {
  display: none;
}

.hero-article {
  position: relative;
  min-height: calc(100vh - var(--header-height, 92px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d9dbe1;
  isolation: isolate;
}

.hero-article__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 33, 0.78) 0%, rgba(10, 18, 33, 0.58) 42%, rgba(10, 18, 33, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 19, 36, 0.06), rgba(11, 19, 36, 0.18)),
    url("../images/hero-heating-law.jpg") center center / cover no-repeat;
  transform: scale(1.01);
}

.hero-article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(246, 243, 236, 0), rgba(246, 243, 236, 0.96));
  pointer-events: none;
}

.hero-article__container {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container, 1380px));
  margin-inline: auto;
  padding-top: 46px;
  padding-bottom: 46px;
}

.hero-article__content {
  max-width: 640px;
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(7px);
  box-shadow: 0 22px 60px rgba(8, 15, 29, 0.24);
}

.hero-article__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-article__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold, #d7a84b);
  box-shadow: 0 0 0 5px rgba(215, 168, 75, 0.14);
}

.hero-article__title {
  max-width: 580px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(30px, 3.55vw, 50px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-article__lead,
.hero-article__text {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.hero-article__text {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-article__lead a,
.hero-article__text a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--transition, 0.22s ease), opacity var(--transition, 0.22s ease);
}

.hero-article__lead a:hover,
.hero-article__text a:hover,
.hero-article__lead a:focus-visible,
.hero-article__text a:focus-visible {
  color: #f8d987;
}

.hero-article__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-article__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  max-width: 100%;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #f46d29, #eb5b18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(235, 91, 24, 0.28);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-align: center;
  transition:
    transform var(--transition, 0.22s ease),
    box-shadow var(--transition, 0.22s ease),
    filter var(--transition, 0.22s ease);
}

.hero-article__cta:hover,
.hero-article__cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 22px 38px rgba(235, 91, 24, 0.38);
}

.hero-article__cta span {
  font-size: 22px;
  line-height: 1;
}

/* ==============================
   EDITORIAL ARTICLE / ADVERTORIAL
============================== */

.editorial-article {
  position: relative;
  padding: 74px 0 88px;
  overflow: visible !important;
  background:
    radial-gradient(circle at 8% 4%, rgba(215, 168, 75, 0.12), transparent 32%),
    linear-gradient(180deg, #f6f3ec 0%, #fbfaf7 42%, #f6f3ec 100%);
}

.editorial-article > .container {
  overflow: visible !important;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(292px, 340px);
  gap: 46px;
  align-items: start;
  justify-content: center;
  max-width: 1180px;
  margin-inline: auto;
  overflow: visible !important;
}

.article-main {
  min-width: 0;
  width: 100%;
  padding: 46px 54px 54px;
  border: 1px solid rgba(23, 63, 115, 0.10);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.article-sidebar {
  position: relative;
  min-width: 0;
  width: 100%;
  align-self: start;
  overflow: visible !important;
}

.sticky-check {
  position: sticky;
  top: calc(var(--header-height, 92px) + 24px);
  width: 100%;
  height: max-content;
  align-self: start;
  padding: 28px;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 28px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.10),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  z-index: 5;
}

.article-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--color-primary, #173f73);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold, #d7a84b);
  box-shadow: 0 0 0 6px rgba(215, 168, 75, 0.14);
}

.article-intro h2,
.article-section h2,
.mid-cta h2,
.source-note h2 {
  margin: 0;
  color: var(--color-heading, #0c1220);
  font-size: clamp(31px, 3.2vw, 46px);
  line-height: 1.13;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.article-intro h2 {
  max-width: 760px;
}

.article-lead {
  margin-top: 24px !important;
  color: #263245 !important;
  font-size: 21px !important;
  line-height: 1.72 !important;
  font-weight: 500;
}

.article-intro p,
.article-section p {
  margin: 20px 0 0;
  color: #4f5b6d;
  font-size: 18px;
  line-height: 1.84;
}

.article-section {
  margin-top: 54px;
}

.article-section h2 {
  font-size: clamp(28px, 2.8vw, 40px);
}

.article-section--accent {
  position: relative;
  padding: 34px 0 0;
}

.accent-line {
  width: 100%;
  height: 1px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, transparent, rgba(23, 63, 115, 0.18), transparent);
}

.article-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: 38px 0 12px;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #fbfaf7);
}

.article-facts div {
  padding: 22px 18px;
  border-right: 1px solid rgba(23, 63, 115, 0.09);
}

.article-facts div:last-child {
  border-right: 0;
}

.article-facts span {
  display: block;
  margin-bottom: 10px;
  color: var(--color-gold-dark, #aa7a26);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.article-facts strong {
  display: block;
  color: var(--color-heading, #0c1220);
  font-size: 15px;
  line-height: 1.35;
}

.article-image {
  margin: 34px 0;
}

.article-image img {
  display: block;
  width: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.article-image figcaption {
  margin-top: 12px;
  color: #778195;
  font-size: 14px;
  line-height: 1.55;
}

.article-pullquote {
  position: relative;
  margin: 34px 0 0;
  padding: 30px 34px;
  border-left: 5px solid var(--color-gold, #d7a84b);
  border-radius: 0 22px 22px 0;
  background:
    linear-gradient(135deg, rgba(215, 168, 75, 0.12), rgba(23, 63, 115, 0.045));
}

.article-pullquote p {
  margin: 0;
  color: var(--color-heading, #0c1220);
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.soft-calculation {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 26px;
  background:
    linear-gradient(180deg, #ffffff, #fbfaf7);
}

.soft-calculation__head {
  padding: 28px 30px 24px;
  border-bottom: 1px solid rgba(23, 63, 115, 0.09);
}

.soft-calculation__head span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary, #173f73);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soft-calculation__head h3 {
  margin: 0;
  color: var(--color-heading, #0c1220);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.soft-calculation__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.soft-calculation__grid div {
  padding: 26px 30px;
  border-right: 1px solid rgba(23, 63, 115, 0.09);
  border-bottom: 1px solid rgba(23, 63, 115, 0.09);
}

.soft-calculation__grid div:nth-child(2n) {
  border-right: 0;
}

.soft-calculation__grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.soft-calculation__grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-heading, #0c1220);
  font-size: 18px;
}

.soft-calculation__grid p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.editorial-table {
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 24px;
  background: #ffffff;
}

.editorial-table__row {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
}

.editorial-table__row > div {
  padding: 19px 21px;
  border-right: 1px solid rgba(23, 63, 115, 0.085);
  border-bottom: 1px solid rgba(23, 63, 115, 0.085);
  color: #5d6878;
  font-size: 15px;
  line-height: 1.5;
}

.editorial-table__row > div:last-child {
  border-right: 0;
}

.editorial-table__row:last-child > div {
  border-bottom: 0;
}

.editorial-table__row > div:first-child {
  color: var(--color-heading, #0c1220);
  font-weight: 900;
}

.editorial-table__row--head {
  background:
    linear-gradient(180deg, var(--color-primary, #173f73), var(--color-primary-dark, #0d2b52));
}

.editorial-table__row--head > div {
  color: #ffffff;
  font-weight: 900;
  border-color: rgba(255, 255, 255, 0.12);
}

.table-note {
  margin-top: 14px !important;
  color: #7a8495 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.mid-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 58px 0 8px;
  padding: 34px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 168, 75, 0.22), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0d1a2e 58%, #07111f 100%);
  box-shadow: 0 26px 60px rgba(7, 17, 31, 0.18);
}

.mid-cta__content span {
  display: inline-block;
  margin-bottom: 10px;
  color: #f8d987;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mid-cta h2 {
  color: #ffffff;
  font-size: clamp(27px, 2.6vw, 38px);
}

.mid-cta p {
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.65;
}

.mid-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #f46d29, #eb5b18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 18px 34px rgba(235, 91, 24, 0.34);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--transition, 0.22s ease),
    box-shadow var(--transition, 0.22s ease),
    filter var(--transition, 0.22s ease);
}

.mid-cta__button:hover,
.mid-cta__button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 24px 42px rgba(235, 91, 24, 0.44);
}

.faq-editorial details {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(23, 63, 115, 0.10);
  border-radius: 18px;
  background: #ffffff;
}

.faq-editorial summary {
  position: relative;
  padding: 20px 58px 20px 22px;
  color: var(--color-heading, #0c1220);
  font-size: 17px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.faq-editorial summary::-webkit-details-marker {
  display: none;
}

.faq-editorial summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--color-primary, #173f73);
  background: rgba(23, 63, 115, 0.08);
  transform: translateY(-50%);
  font-size: 20px;
}

.faq-editorial details[open] summary::after {
  content: "−";
}

.faq-editorial details p {
  margin: 0;
  padding: 0 22px 22px;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.source-note {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid rgba(23, 63, 115, 0.13);
}

.source-note h2 {
  font-size: clamp(25px, 2.4vw, 34px);
}

.source-note p {
  margin: 14px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.65;
}

.source-note__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.source-note__links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(23, 63, 115, 0.16);
  border-radius: 999px;
  color: var(--color-primary, #173f73);
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition:
    color var(--transition, 0.22s ease),
    background var(--transition, 0.22s ease),
    transform var(--transition, 0.22s ease);
}

.source-note__links a:hover,
.source-note__links a:focus-visible {
  color: #ffffff;
  background: var(--color-primary, #173f73);
  transform: translateY(-1px);
}

.sticky-check__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #5c6573;
  background: #edf0f4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sticky-check h3 {
  margin: 0;
  color: var(--color-heading, #0c1220);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.sticky-check p {
  margin: 18px 0 0;
  color: #5d6878;
  font-size: 15px;
  line-height: 1.7;
}

.sticky-check ul {
  display: grid;
  gap: 13px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.sticky-check li {
  position: relative;
  padding-left: 28px;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
}

.sticky-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #b37a19;
  font-size: 17px;
  font-weight: 900;
}

.sticky-check button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff7431, #f05a1a);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 20px 38px rgba(240, 90, 26, 0.30);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform var(--transition, 0.22s ease),
    box-shadow var(--transition, 0.22s ease),
    filter var(--transition, 0.22s ease);
}

.sticky-check button:hover,
.sticky-check button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 26px 46px rgba(240, 90, 26, 0.42);
}

.sticky-check small {
  display: block;
  margin-top: 17px;
  color: #7a8495;
  font-size: 12px;
  line-height: 1.55;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1200px) {
  .article-shell {
    grid-template-columns: minmax(0, 690px) minmax(280px, 320px);
    gap: 34px;
    max-width: 1050px;
  }

  .article-main {
    padding: 42px 42px 48px;
  }

  .sticky-check {
    top: calc(var(--header-height, 92px) + 18px);
    padding: 24px;
  }

  .sticky-check h3 {
    font-size: 27px;
  }

  .sticky-check button {
    font-size: 13px;
    padding-inline: 18px;
  }
}

@media (max-width: 980px) {
  .hero-article {
    min-height: calc(100vh - var(--header-height, 92px));
    align-items: center;
  }

  .hero-article__container {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .hero-article__content {
    max-width: 680px;
    padding: 30px 26px 28px;
    border-radius: 22px;
  }

  .hero-article__title {
    font-size: clamp(31px, 6vw, 48px);
  }

  .hero-article__lead,
  .hero-article__text {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-article__cta {
    min-height: 54px;
    padding: 13px 24px;
    font-size: 15px;
  }

  .editorial-article {
    padding: 52px 0 66px;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    max-width: 820px;
  }

  .article-sidebar {
    order: -1;
  }

  .sticky-check {
    position: relative;
    top: auto;
  }

  .article-main {
    padding: 34px 28px 40px;
    border-radius: 24px;
  }

  .article-lead {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }

  .article-intro p,
  .article-section p {
    font-size: 16.5px;
    line-height: 1.75;
  }

  .article-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-facts div:nth-child(2) {
    border-right: 0;
  }

  .article-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(23, 63, 115, 0.09);
  }

  .article-image img {
    min-height: 300px;
  }

  .soft-calculation__grid {
    grid-template-columns: 1fr;
  }

  .soft-calculation__grid div {
    border-right: 0;
  }

  .soft-calculation__grid div {
    border-bottom: 1px solid rgba(23, 63, 115, 0.09);
  }

  .soft-calculation__grid div:last-child {
    border-bottom: 0;
  }

  .editorial-table__row {
    grid-template-columns: 1fr;
  }

  .editorial-table__row--head {
    display: none;
  }

  .editorial-table__row > div {
    border-right: 0;
  }

  .editorial-table__row > div:first-child {
    background: rgba(23, 63, 115, 0.055);
  }

  .mid-cta {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .mid-cta__button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-article {
    min-height: calc(100svh - var(--header-height, 92px));
    align-items: flex-start;
  }

  .hero-article__bg {
    background:
      linear-gradient(180deg, rgba(10, 18, 33, 0.76) 0%, rgba(10, 18, 33, 0.72) 48%, rgba(10, 18, 33, 0.82) 100%),
      url("../images/hero-heating-law.jpg") center center / cover no-repeat;
  }

  .hero-article__container {
    width: min(100% - 24px, var(--container, 1380px));
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .hero-article__content {
    max-width: 100%;
    padding: 22px 17px 20px;
    border-radius: 17px;
  }

  .hero-article__eyebrow {
    margin-bottom: 13px;
    padding: 6px 11px;
    font-size: 10.5px;
  }

  .hero-article__title {
    margin-bottom: 15px;
    font-size: clamp(27px, 8vw, 37px);
    line-height: 1.1;
  }

  .hero-article__lead,
  .hero-article__text {
    font-size: 15px;
    line-height: 1.58;
  }

  .hero-article__actions {
    margin-top: 22px;
    gap: 11px;
  }

  .hero-article__cta {
    width: 100%;
    min-height: 54px;
    padding: 13px 18px;
    font-size: 13.5px;
  }

  .article-main {
    padding: 28px 18px 34px;
  }

  .article-intro h2,
  .article-section h2,
  .mid-cta h2,
  .source-note h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .article-facts {
    grid-template-columns: 1fr;
  }

  .article-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(23, 63, 115, 0.09);
  }

  .article-facts div:last-child {
    border-bottom: 0;
  }

  .article-image img {
    min-height: 240px;
    border-radius: 20px;
  }

  .article-pullquote {
    padding: 24px 22px;
  }

  .article-pullquote p {
    font-size: 22px;
  }

  .soft-calculation__head,
  .soft-calculation__grid div {
    padding: 22px;
  }

  .sticky-check {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .sticky-check h3 {
    font-size: 27px;
  }

  .sticky-check button {
    min-height: 58px;
    font-size: 13px;
  }

  .source-note__links a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-article__title {
    font-size: 26px;
  }

  .hero-article__lead,
  .hero-article__text {
    font-size: 14.5px;
  }

  .hero-article__cta {
    font-size: 13px;
    letter-spacing: 0;
  }
}

/* =========================================================
   FIXED FLOATING LEAD CARD — DESKTOP ONLY
   Карточка закреплена справа во время прокрутки статьи/main.
   Подключать в конце css/main.css или оставить в main-fixed.css.
========================================================= */

@media (min-width: 1025px) {
  .editorial-article,
  .editorial-article .container,
  .article-shell,
  .article-sidebar {
    overflow: visible !important;
  }

  .article-shell {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 780px) minmax(300px, 360px) !important;
    gap: 48px !important;
    align-items: start !important;
    justify-content: center !important;
    max-width: 1220px !important;
    margin-inline: auto !important;
  }

  .article-sidebar {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 1px !important;
    align-self: start !important;
  }

  .sticky-check {
    width: 100% !important;
    height: max-content !important;
    max-height: none;
  }

  body.lead-card-floating .sticky-check {
    position: fixed !important;
    top: var(--lead-card-top, 118px) !important;
    right: var(--lead-card-right, max(24px, calc((100vw - 1220px) / 2))) !important;
    width: var(--lead-card-width, 360px) !important;
    max-height: calc(100vh - var(--lead-card-top, 118px) - 24px) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    z-index: 80 !important;
  }

  body.lead-card-bottom .sticky-check {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .article-shell {
    grid-template-columns: minmax(0, 700px) minmax(280px, 330px) !important;
    gap: 36px !important;
    max-width: 1080px !important;
  }
}

@media (max-width: 1024px) {
  body.lead-card-floating .sticky-check,
  body.lead-card-bottom .sticky-check,
  .sticky-check {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
.source-note {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid rgba(23, 63, 115, 0.13);
}

.source-note h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.source-note > p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.65;
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.source-list strong {
  display: block;
  color: var(--color-heading);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.source-list span {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(23, 63, 115, 0.16);
  border-radius: 999px;
  color: var(--color-primary);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.source-list a:hover,
.source-list a:focus-visible {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .source-list li {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .source-list a {
    width: 100%;
  }
}
.sticky-check__visual {
  margin: 24px 0 26px;
  padding: 0;
  border-radius: 22px;
  overflow: visible;
  background: transparent;
}

.sticky-check__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.14));
}

@media (max-width: 1024px) {
  .sticky-check__visual {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .sticky-check__visual {
    margin: 20px 0 22px;
  }
}
/* ==============================
   QUIZ MODAL
============================== */

.modal__dialog--quiz {
  width: min(100% - 24px, 900px);
  max-height: min(92vh, 860px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 90, 45, 0.11), transparent 34%),
    linear-gradient(135deg, #eee7e4 0%, #d9dbe6 48%, #ffffff 100%);
  box-shadow: 0 32px 90px rgba(7, 17, 31, 0.35);
}

.modal__dialog--quiz::before {
  display: none;
}

.quiz-modal__close {
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
}

.quiz-form {
  min-height: 650px;
  padding: 46px 42px 38px;
}

.quiz-step {
  display: none;
  max-width: 620px;
  margin-inline: auto;
  animation: quizFade 0.24s ease both;
}

.quiz-step.is-active {
  display: block;
}

@keyframes quizFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-title {
  margin: 0 0 30px;
  color: #05033d;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.quiz-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.quiz-progress[hidden] {
  display: none;
}

.quiz-progress__circle {
  --quiz-progress: 10%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(#ff5a31 var(--quiz-progress), #ffffff var(--quiz-progress) 100%);
  box-shadow: 0 8px 22px rgba(7, 17, 31, 0.10);
  position: relative;
}

.quiz-progress__circle::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.quiz-progress__circle span {
  position: relative;
  z-index: 1;
  color: #ff5a31;
  font-size: 16px;
  font-weight: 700;
}

/* Bundesland */

.quiz-grid--states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  max-width: 820px;
  margin-inline: auto;
}

.quiz-grid--states button {
  min-height: 62px;
  padding: 12px 18px;
  border: 1px solid rgba(12, 18, 32, 0.15);
  border-radius: 999px;
  color: #050505;
  background: #ffffff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 5px 12px rgba(7, 17, 31, 0.18);
  font-size: 19px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.quiz-grid--states button:hover,
.quiz-grid--states button:focus-visible {
  color: #ffffff;
  background: #ff5a31;
  box-shadow: 0 12px 24px rgba(255, 90, 49, 0.30);
  transform: translateY(-2px);
}

/* Options */

.quiz-options {
  display: grid;
  gap: 14px;
}

.quiz-options button {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  padding: 14px 24px;
  border: 2px solid #e64722;
  border-radius: 14px;
  color: #ffffff;
  background: #ff5a31;
  box-shadow: 0 5px 0 #db3d18;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.quiz-options button:not(:has(.quiz-option__icon)) {
  display: flex;
  justify-content: center;
}

.quiz-options button:hover,
.quiz-options button:focus-visible,
.quiz-options button.is-selected {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #db3d18, 0 15px 26px rgba(255, 90, 49, 0.28);
}

.quiz-option__icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  justify-self: start;


  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

/* Fields */

.quiz-fields {
  display: grid;
  gap: 18px;
}

.quiz-field {
  display: grid;
  gap: 8px;
}

.quiz-field span {
  color: #05033d;
  font-size: 14px;
  font-weight: 700;
}

.quiz-field input {
  width: 100%;
  min-height: 66px;
  padding: 0 20px;
  border: 2px solid rgba(7, 17, 31, 0.18);
  border-radius: 14px;
  color: #101828;
  background: #ffffff;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quiz-field input::placeholder {
  color: #b5bcc8;
}

.quiz-field input:focus {
  border-color: #ff5a31;
  box-shadow: 0 0 0 5px rgba(255, 90, 49, 0.12);
}

.quiz-field.is-error input {
  border-color: #b42318;
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.10);
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.quiz-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff5a31;
}

.quiz-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* Buttons */

.quiz-main-btn {
  width: 100%;
  min-height: 64px;
  margin-top: 26px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #f45427, #e9451c);
  box-shadow: 0 5px 0 #c93616, 0 18px 30px rgba(244, 84, 39, 0.28);
  font-size: 18px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.quiz-main-btn:hover,
.quiz-main-btn:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #c93616, 0 22px 38px rgba(244, 84, 39, 0.34);
}

.quiz-back {
  display: block;
  margin: 30px auto 0;
  border: 0;
  color: #ef4e25;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}

.quiz-back:hover,
.quiz-back:focus-visible {
  text-decoration: underline;
}

/* Processing */

.quiz-step--processing {
  min-height: 460px;
  text-align: center;
  display: none;
  place-items: center;
  align-content: center;
}

.quiz-step--processing.is-active {
  display: grid;
}

.quiz-loader {
  width: 108px;
  height: 108px;
  margin: 0 auto 52px;
  border-radius: 50%;
  background:
    conic-gradient(#ff5a31 0 82deg, #ffffff 82deg 360deg);
  animation: quizSpin 1s linear infinite;
  position: relative;
  box-shadow: 0 8px 22px rgba(7, 17, 31, 0.10);
}

.quiz-loader::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #ffffff;
}

@keyframes quizSpin {
  to {
    transform: rotate(360deg);
  }
}

.quiz-step--processing h2 {
  margin: 0;
  color: #05033d;
  font-size: 25px;
  line-height: 1.25;
}

.quiz-step--processing p {
  margin: 12px auto 0;
  max-width: 520px;
  color: #555d6d;
  font-size: 18px;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 760px) {
  .modal__dialog--quiz {
    width: min(100% - 16px, 680px);
    border-radius: 22px;
  }

  .quiz-form {
    min-height: 600px;
    padding: 38px 22px 30px;
  }

  .quiz-grid--states {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz-grid--states button {
    min-height: 56px;
    font-size: 17px;
  }

  .quiz-title {
    font-size: clamp(23px, 6vw, 30px);
  }

  .quiz-options button {
    min-height: 74px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px 18px;
    font-size: 16px;
  }

  .quiz-option__icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .quiz-form {
    padding: 34px 16px 26px;
  }

  .quiz-options button {
    font-size: 15px;
  }

  .quiz-main-btn {
    font-size: 16px;
  }
}
/* ==============================
   LEGAL PAGES
   Impressum / Datenschutz / AGB
============================== */

.legal-main {
  background:
    radial-gradient(circle at 8% 4%, rgba(215, 168, 75, 0.13), transparent 32%),
    linear-gradient(180deg, #f6f3ec 0%, #fbfaf7 46%, #f6f3ec 100%);
}

.legal-hero {
  position: relative;
  padding: 82px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(23, 63, 115, 0.11), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0d1a2e 58%, #07111f 100%);
  color: #ffffff;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.32;
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8d987;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold, #d7a84b);
  box-shadow: 0 0 0 6px rgba(215, 168, 75, 0.16);
}

.legal-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.legal-hero p:not(.legal-label) {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
}

.legal-content {
  padding: 64px 0 92px;
}

.legal-content__inner {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin-inline: auto;
}

.legal-card {
  position: relative;
  padding: 34px 38px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.legal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--color-gold, #d7a84b), #f05a1a);
}

.legal-card h2 {
  margin: 0 0 18px;
  color: var(--color-heading, #0c1220);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.legal-card p {
  margin: 0;
  color: #4f5b6d;
  font-size: 16px;
  line-height: 1.78;
}

.legal-card p + p {
  margin-top: 16px;
}

.legal-card strong {
  color: var(--color-heading, #0c1220);
  font-weight: 900;
}

.legal-card a {
  color: var(--color-primary, #173f73);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  color: #f05a1a;
}

.legal-note {
  padding: 16px 18px;
  border: 1px solid rgba(215, 168, 75, 0.28);
  border-radius: 16px;
  background: rgba(215, 168, 75, 0.08);
  color: #6b562a !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

@media (max-width: 820px) {
  .legal-hero {
    padding: 62px 0 42px;
  }

  .legal-content {
    padding: 46px 0 66px;
  }

  .legal-content__inner {
    gap: 16px;
  }

  .legal-card {
    padding: 28px 26px;
    border-radius: 22px;
  }

  .legal-hero p:not(.legal-label) {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .legal-hero {
    padding: 46px 0 34px;
  }

  .legal-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .legal-card {
    padding: 24px 20px;
  }

  .legal-card::before {
    top: 24px;
    bottom: 24px;
  }

  .legal-card p {
    font-size: 15px;
    line-height: 1.72;
  }
}
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid rgba(23, 63, 115, 0.11);
  border-radius: 18px;
  background: #ffffff;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 63, 115, 0.09);
  border-right: 1px solid rgba(23, 63, 115, 0.09);
  color: #4f5b6d;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  color: #ffffff;
  background: linear-gradient(180deg, var(--color-primary, #173f73), var(--color-primary-dark, #0d2d58));
  font-weight: 900;
}

.legal-table td:first-child {
  color: var(--color-heading, #0c1220);
  font-weight: 900;
}

@media (max-width: 560px) {
  .legal-table th,
  .legal-table td {
    padding: 14px 15px;
    font-size: 14px;
  }
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr) minmax(220px, 0.65fr);
  gap: 42px;
  align-items: start;
}

.site-footer__brand p,
.site-footer__contact p,
.site-footer__contact address,
.site-footer__monetization p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
  font-style: normal;
}

.site-footer__disclaimer {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 168, 75, 0.22);
  border-radius: 18px;
  background: rgba(215, 168, 75, 0.075);
}

.site-footer__contact h2,
.site-footer__legal h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__contact address {
  margin: 0 0 16px;
}

.site-footer__contact strong {
  color: #ffffff;
  font-weight: 900;
}

.site-footer__contact a,
.site-footer__links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition), transform var(--transition);
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible,
.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #f8d987;
}

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__monetization {
  margin-top: 38px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.16);
}

.site-footer__monetization p {
  max-width: 1120px;
  margin: 0;
}

.site-footer__monetization strong {
  color: #f8d987;
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__monetization {
    margin-top: 28px;
  }
}