.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-links a {
  color: rgba(245, 245, 242, 0.64);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-bright);
}

.article-hero > .container {
  position: relative;
  z-index: 2;
}

.hero-breadcrumbs {
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  color: rgba(245, 245, 242, 0.44);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-breadcrumbs a {
  color: rgba(245, 245, 242, 0.76);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 161, 91, 0.42);
}

.hero-breadcrumbs a:hover,
.hero-breadcrumbs a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.calculator-hub-strip {
  padding: 18px 0;
  background: #f5f1e8;
  border-bottom: 1px solid var(--border);
}

.calculator-hub-strip a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: #5e4728;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(198, 161, 91, 0.32);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.calculator-hub-strip a:hover,
.calculator-hub-strip a:focus-visible {
  color: var(--ink);
  border-color: rgba(198, 161, 91, 0.58);
}

.related-guide-strip {
  padding: 30px 0;
  background:
    radial-gradient(circle at top right, rgba(198, 161, 91, 0.11), transparent 22rem),
    linear-gradient(180deg, #f8f4eb 0%, #f3ede2 100%);
  border-bottom: 1px solid var(--border);
}

.related-guide-strip-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr);
  gap: 24px;
  align-items: center;
}

.related-guide-strip-heading span,
.related-guide-strip-heading strong {
  display: block;
}

.related-guide-strip-heading span {
  margin-bottom: 7px;
  color: #8a6834;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.related-guide-strip-heading strong {
  max-width: 220px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.related-guide-strip-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-guide-card {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 24, 32, 0.11);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(8, 17, 26, 0.055);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.related-guide-card:hover,
.related-guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(198, 161, 91, 0.52);
  box-shadow: 0 14px 30px rgba(8, 17, 26, 0.09);
}

.related-guide-card.is-primary {
  color: white;
  background: linear-gradient(135deg, #101b26, #182635);
  border-color: rgba(255, 255, 255, 0.09);
}

.related-guide-arrow {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .related-guide-strip-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .related-guide-strip-heading strong {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: auto;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle-line {
    width: 17px;
  }

  .main-nav {
    top: calc(100% + 7px);
    right: 0;
    left: auto;
    width: min(236px, calc(100vw - 32px));
    display: grid;
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
    gap: 0;
    padding-right: 10px;
    padding-left: 10px;
    background: #0c1620;
    border: 1px solid transparent;
    border-radius: 15px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-align: left;
    backdrop-filter: none;
    transform: translateY(-5px) scale(0.99);
    transform-origin: top right;
    pointer-events: none;
  }

  .main-nav.is-open {
    padding: 6px 10px;
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .main-nav a {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 0;
    text-align: left;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 0;
    left: 8px;
    width: auto;
    height: 1px;
    display: block;
    background: rgba(255, 255, 255, 0.07);
  }

  .hero-breadcrumbs {
    margin-bottom: 24px;
    font-size: 11px;
    line-height: 1.4;
  }

  .related-guide-strip {
    padding: 24px 0;
  }

  .related-guide-strip-heading strong {
    font-size: 21px;
  }

  .related-guide-strip-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .related-guide-card {
    min-height: 68px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
  }

  .calculator-hub-strip {
    padding: 14px 0;
  }

  .calculator-hub-strip a {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 16px;
  }
}