/* ============================================================
   Multi-page additions: nav menu, icon cards, inner pages,
   floating buttons, calculators
   ============================================================ */

:root {
  --color-deep: #153939;
  --gold-grad: linear-gradient(145deg, #e9a26a 0%, #d97f3f 45%, #b9622a 100%);
  --deep-grad: linear-gradient(145deg, #2e6260 0%, #1f4847 50%, #122e2d 100%);
}

/* Anchors land below the fixed nav */
[id] { scroll-margin-top: 96px; }

/* ---------- Line icons (two-tone: primary + accent) ---------- */
.line-icon { width: 100%; height: 100%; display: block; color: var(--color-primary); overflow: visible; }
.line-icon .ac { color: var(--color-accent); stroke: var(--color-accent); }
.line-icon path, .line-icon rect, .line-icon circle, .line-icon ellipse { vector-effect: non-scaling-stroke; }

/* ---------- Nav: actions, current page, mobile menu ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .3s, border-color .3s;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav.scrolled .nav-toggle, .nav.menu-open .nav-toggle { border-color: var(--color-line); background: #fff; }
.nav.scrolled .nav-toggle span, .nav.menu-open .nav-toggle span { background: var(--color-primary); }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav.menu-open {
    background: rgba(251, 247, 242, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--color-line);
  }
  .nav.menu-open .nav-logo img { filter: none; }
  .nav.menu-open .nav-affiliation { color: var(--color-ink); text-shadow: none; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: rgba(251, 247, 242, 0.98);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-lg);
    padding: 8px 20px 18px;
  }
  .nav.menu-open .nav-links li { border-bottom: 1px solid var(--color-line); }
  .nav.menu-open .nav-links li:last-child { border-bottom: none; }
  .nav.menu-open .nav-links a {
    display: block; padding: 14px 4px;
    color: var(--color-ink); text-shadow: none; font-size: 17px; font-weight: 600;
  }
  .nav.menu-open .nav-links a::after { display: none; }
  .nav.menu-open .nav-links a[aria-current="page"] { color: var(--color-accent-dark); }
  .nav.menu-open .nav-inner .btn-accent {
    background: var(--color-accent); border-color: var(--color-accent); text-shadow: none;
  }
}
@media (max-width: 520px) {
  .nav-call { display: none !important; }
}

/* ---------- Services: icon cards ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.icon-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 28px;
  padding: 36px 22px 30px;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}
.icon-card-ic {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--color-bg-alt) 100%);
  box-shadow: inset 0 0 0 1px var(--color-line);
  margin-bottom: 20px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.icon-card-ic .line-icon { width: 60px; height: 60px; }
.icon-card:hover .icon-card-ic {
  transform: scale(1.06);
  box-shadow: inset 0 0 0 1px rgba(217, 127, 63, .45), 0 10px 30px rgba(217, 127, 63, .18);
}
.icon-card h3 {
  font-size: 22px; font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.icon-card p { font-size: 14.5px; line-height: 1.6; }
.icon-card-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px; font-weight: 800;
  color: var(--color-accent-dark);
}
@media (max-width: 1000px) { .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .icon-grid { gap: 12px; }
  .icon-card { padding: 24px 12px 20px; border-radius: 22px; }
  .icon-card-ic { width: 76px; height: 76px; margin-bottom: 14px; }
  .icon-card-ic .line-icon { width: 48px; height: 48px; }
  .icon-card h3 { font-size: 18px; }
  .icon-card p { font-size: 13px; }
}

/* ---------- Guides (home teasers) ---------- */
.guides-section {
  background: var(--color-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.guides-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(217, 127, 63, .14), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(46, 98, 96, .5), transparent 70%);
  pointer-events: none;
}
.guides-section .container { position: relative; }
.guides-section h2 { color: #fff; }
.guides-section .section-head p { color: rgba(255, 255, 255, .78); }
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.guide-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  padding: 30px 28px;
  color: #fff;
  transition: transform .3s, background .3s, border-color .3s;
}
.guide-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(244, 200, 158, .45);
  color: #fff;
}
.guide-ic {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: #fbf7f2;
  margin-bottom: 20px;
}
.guide-ic .line-icon { width: 42px; height: 42px; }
.guide-tag { font-size: 13px; font-weight: 800; color: var(--color-accent-light); letter-spacing: .02em; margin-bottom: 8px; }
.guide-card h3 { color: #fff; font-size: 23px; font-weight: 900; line-height: 1.25; }
.guide-card p { color: rgba(255, 255, 255, .78); font-size: 15.5px; margin-bottom: 18px; }
.guide-more { margin-top: auto; font-weight: 800; color: var(--color-accent-light); }

.calc-banner {
  margin-top: 28px;
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(120deg, #fbf7f2, #f3ece3);
  border-radius: 24px;
  padding: 22px 28px;
  color: var(--color-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  transition: transform .3s;
}
.calc-banner:hover { transform: translateY(-3px); color: var(--color-ink); }
.calc-banner-ic { width: 64px; height: 64px; flex-shrink: 0; }
.calc-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.calc-banner-text strong { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--color-primary); }
.calc-banner-text span { color: var(--color-ink-soft); font-size: 15.5px; }
@media (max-width: 900px) {
  .guides-grid { grid-template-columns: 1fr; }
  .calc-banner { flex-direction: column; text-align: center; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--deep-grad);
  color: #fff;
  padding: 150px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(217, 127, 63, .18), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 14px; color: rgba(255, 255, 255, .7);
  margin-bottom: 26px;
}
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: var(--color-accent-light); }
.page-hero-inner { display: flex; align-items: center; gap: 32px; }
.page-hero-ic {
  width: 132px; height: 132px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 34px;
  background: #fbf7f2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3), 0 0 0 6px rgba(255, 255, 255, .06);
}
.page-hero-ic .line-icon { width: 84px; height: 84px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  margin: 6px 0 10px;
  max-width: 900px;
}
.page-hero-lead { color: var(--color-accent-light); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; }
@media (max-width: 700px) {
  .page-hero { padding: 120px 0 44px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-hero-ic { width: 88px; height: 88px; border-radius: 24px; }
  .page-hero-ic .line-icon { width: 56px; height: 56px; }
}

/* ---------- Article layout ---------- */
.article-page { padding: 70px 0 90px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
.prose { max-width: 720px; }
.prose p { font-size: 18px; line-height: 1.85; margin-bottom: 20px; }
.prose h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 900;
  color: var(--color-primary);
  margin: 42px 0 14px;
  line-height: 1.25;
}
.prose h2::before {
  content: '';
  display: block;
  width: 44px; height: 4px; border-radius: 4px;
  background: var(--color-accent);
  margin-bottom: 14px;
}
.callout {
  position: relative;
  background: var(--color-bg-alt);
  border-right: 4px solid var(--color-accent);
  border-radius: 4px var(--radius) var(--radius) 4px;
  padding: 22px 28px;
  margin: 28px 0;
  font-family: var(--font-body);
  font-size: 19px; font-weight: 700;
  color: var(--color-ink);
}
.callout strong { color: var(--color-accent-dark); }
.end-question {
  font-family: var(--font-display);
  font-size: 28px !important;
  font-weight: 900;
  color: var(--color-accent-dark) !important;
}
.fee-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 28px 0;
}
.fee-box {
  border-radius: 20px;
  padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; row-gap: 4px;
}
.fee-box small { grid-column: 1 / -1; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.fee-box strong { font-family: var(--font-display); font-size: 34px; font-weight: 900; line-height: 1.1; }
.fee-box span { font-size: 15px; color: var(--color-ink-soft); }
.fee-box.bad { background: #fbeeee; border: 1px solid #f0d2d1; }
.fee-box.bad small, .fee-box.bad strong { color: #a94442; }
.fee-box.good { background: #edf4f3; border: 1px solid #cfe1df; }
.fee-box.good small, .fee-box.good strong { color: var(--color-primary); }
@media (max-width: 560px) { .fee-compare { grid-template-columns: 1fr; } }

.inline-cta {
  display: flex; align-items: center; gap: 18px;
  margin: 30px 0;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  color: var(--color-ink-soft);
  font-size: 16px;
  transition: transform .25s, border-color .25s;
}
.inline-cta:hover { transform: translateY(-2px); border-color: var(--color-accent); color: var(--color-ink-soft); }
.inline-cta strong { color: var(--color-primary); }
.inline-cta-ic { width: 52px; height: 52px; flex-shrink: 0; }

.check-list { list-style: none; margin: 10px 0 20px; }
.check-list li {
  position: relative;
  padding: 10px 40px 10px 0;
  font-size: 18px;
  color: var(--color-ink-soft);
  border-bottom: 1px dashed var(--color-line);
}
.check-list li::before {
  content: '';
  position: absolute; right: 0; top: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.prose .story-numbers { margin: 26px 0; }
.prose .footnote {
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--color-ink-soft);
  border-top: 1px solid var(--color-line);
  padding-top: 16px;
}

/* Sticky side card with quick form */
.side-card {
  position: sticky; top: 110px;
  background: var(--deep-grad);
  color: #fff;
  border-radius: 28px;
  padding: 30px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.side-card-ic {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  margin: -66px auto 16px;
  border-radius: 24px;
  background: #fbf7f2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.side-card-ic .line-icon { width: 50px; height: 50px; }
.side-card h3 { color: #fff; font-size: 24px; font-weight: 900; }
.side-card p { color: rgba(255, 255, 255, .8); font-size: 15px; margin-bottom: 18px; }
.side-form { display: flex; flex-direction: column; gap: 10px; }
.side-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .95);
  font-family: var(--font-body); font-size: 16px; color: var(--color-ink);
}
.side-form input:focus { outline: 3px solid var(--color-accent-light); outline-offset: 1px; }
.side-form .btn { justify-content: center; width: 100%; margin-top: 4px; }
.side-card-phone { display: inline-block; margin-top: 14px; color: var(--color-accent-light); font-weight: 800; }
.side-card-phone:hover { color: #fff; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 70px; }
  .side-card { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
}

/* Compare block on its own page */
.compare-page { padding: 90px 0; }
.compare-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.compare-head h2 { color: #fff; font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; }
.compare-head p { color: rgba(255, 255, 255, .8); font-size: 18px; }

/* ---------- Footer links ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 22px; }
.footer-links a { color: rgba(255, 255, 255, .8); font-weight: 600; font-size: 15px; }
.footer-links a:hover { color: var(--color-accent-light); }

/* ============================================================
   Floating action buttons (premium)
   ============================================================ */
.fab-dock {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 90;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.fab {
  position: relative;
  display: flex; align-items: center;
  height: 62px;
  padding: 0 22px 0 6px;
  gap: 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(18, 46, 45, .32), 0 2px 6px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.fab::after {
  /* thin metallic rim */
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .05) 40%, rgba(244, 200, 158, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.fab-call { background: var(--gold-grad); }
.fab-lead { background: var(--deep-grad); }
.fab:hover, .fab:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(18, 46, 45, .38), 0 3px 8px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.fab:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 3px; }
.fab-icon {
  order: 2;
  width: 50px; height: 50px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.fab-icon svg { width: 26px; height: 26px; }
.fab-label {
  order: 1;
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px; line-height: 1.15;
  white-space: nowrap;
  direction: rtl;
}
.fab-label small { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.fab-call .fab-label { direction: ltr; text-align: right; }
.fab-call .fab-label small { direction: rtl; }
.fab-ring {
  position: absolute;
  right: auto; left: 6px; top: 6px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
  animation: fab-pulse 2.6s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fab-ring { animation: none; display: none; } }
body.a11y-pause-animations .fab-ring { animation: none; display: none; }

/* Compact on phones: icon-only circles */
@media (max-width: 560px) {
  .fab-dock { bottom: 16px; left: 16px; gap: 12px; }
  .fab { width: 58px; height: 58px; padding: 0; justify-content: center; }
  .fab-label { display: none; }
  .fab-icon { background: transparent; box-shadow: none; }
  .fab-ring { left: 4px; top: 4px; }
}

/* ============================================================
   Calculators
   ============================================================ */
.calc-section { padding: 60px 0 90px; }
.calc-tabs {
  display: flex; gap: 8px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 36px;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  overflow-x: auto;
}
.calc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: none; border-radius: 999px;
  background: transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--color-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.calc-tab svg { width: 20px; height: 20px; }
.calc-tab:hover { color: var(--color-primary); }
.calc-tab[aria-selected="true"] { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(31, 72, 71, .3); }
.calc-tab:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.calc-panel {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-intro { padding: 32px 36px 0; }
.calc-intro h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--color-primary); margin-bottom: 6px; }
.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 26px 36px 36px;
}
.calc-form fieldset {
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 16px 18px 6px;
  margin-bottom: 14px;
  background: var(--color-bg);
}
.calc-form legend { padding: 0 8px; font-weight: 800; font-size: 14px; color: var(--color-primary); }
.fieldset-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fieldset-pair fieldset.tone-a { border-top: 4px solid #9fb3b1; }
.fieldset-pair fieldset.tone-b { border-top: 4px solid var(--color-accent); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 15px; color: var(--color-ink); font-weight: 600; }
.input-wrap {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.input-wrap:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(217, 127, 63, .18); }
.input-wrap input, .input-wrap select {
  width: 110px;
  border: none; outline: none;
  padding: 10px 12px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--color-ink);
  background: transparent;
  direction: ltr; text-align: left;
}
.input-wrap select { width: 80px; cursor: pointer; }
.input-wrap i {
  font-style: normal; font-size: 13px; font-weight: 700;
  color: var(--color-ink-soft);
  padding: 0 10px;
  background: var(--color-bg-alt);
  align-self: stretch; display: flex; align-items: center;
}
.fieldset-pair .input-wrap input { width: 70px; }
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--color-bg-alt);
  border-radius: 14px; padding: 4px;
  margin-bottom: 14px;
}
.mode-switch label { cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch span {
  display: block; text-align: center;
  padding: 10px; border-radius: 10px;
  font-weight: 700; color: var(--color-ink-soft);
  transition: background .2s, color .2s;
}
.mode-switch input:checked + span { background: #fff; color: var(--color-primary); box-shadow: var(--shadow-md); }
.mode-switch input:focus-visible + span { outline: 3px solid var(--color-accent); }
.field-hint { font-size: 13px; color: var(--color-ink-soft); margin-top: 6px; line-height: 1.6; }

.calc-results {
  background: var(--deep-grad);
  border-radius: 24px;
  padding: 26px;
  color: #fff;
  align-self: start;
  position: sticky; top: 110px;
}
.result-hero small { display: block; color: rgba(255, 255, 255, .78); font-weight: 700; font-size: 15px; }
.result-hero strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 52px);
  font-weight: 900;
  color: var(--color-accent-light);
  line-height: 1.1;
  direction: ltr; text-align: right;
  font-variant-numeric: tabular-nums;
}
.result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 16px; }
.result-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 12px 14px;
}
.result-item small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.result-item strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 800; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.result-item.tone-a { border-top: 3px solid #9fb3b1; }
.result-item.tone-b { border-top: 3px solid var(--color-accent); }
.result-row + .field-hint, .calc-results .field-hint { color: rgba(255, 255, 255, .65); }

.calc-chart { direction: ltr; width: 100%; height: auto; display: block; background: rgba(0, 0, 0, .12); border-radius: 16px; }
.calc-chart .grid { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.calc-chart .axis { fill: rgba(255, 255, 255, .6); font-size: 12px; font-family: var(--font-body); }
.calc-chart .line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.calc-chart .line.tone-a { stroke: #9fb3b1; stroke-dasharray: 6 5; }
.calc-chart .line.tone-b { stroke: var(--color-accent); }
.calc-chart .area.tone-b { fill: rgba(217, 127, 63, .16); stroke: none; }
.calc-chart .dot { stroke: #fff; stroke-width: 2; }
.calc-chart .dot.tone-a { fill: #9fb3b1; }
.calc-chart .dot.tone-b { fill: var(--color-accent); }
.chart-legend { display: flex; gap: 20px; justify-content: center; margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.chart-legend span::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 18px; height: 3px; border-radius: 3px; margin-left: 6px;
}
.chart-legend .tone-a::before { background: #9fb3b1; }
.chart-legend .tone-b::before { background: var(--color-accent); }

.calc-disclaimer {
  margin: 22px auto 0;
  max-width: 820px;
  text-align: center;
  font-size: 13.5px;
  color: var(--color-ink-soft);
}
.calc-cta {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 24px;
  padding: 26px 32px;
}
.calc-cta strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--color-primary); }
.calc-cta span { color: var(--color-ink-soft); }

@media (max-width: 980px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}
@media (max-width: 560px) {
  .calc-intro { padding: 24px 20px 0; }
  .calc-body { padding: 20px; gap: 20px; }
  .calc-tab { padding: 10px 14px; font-size: 14px; }
  .calc-tab svg { display: none; }
  .fieldset-pair { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; }
  .calc-cta { flex-direction: column; text-align: center; }
  .input-wrap input { width: 96px; }
}

/* calculators v2 */
.calc-tabs { flex-wrap: wrap; justify-content: center; border-radius: 28px; overflow-x: visible; }
.calc-note {
  margin: 0; padding: 0 36px 26px;
  font-size: 13px; color: var(--color-ink-soft); line-height: 1.6;
}
.input-wrap.input-date input { width: 150px; font-size: 15px; }
.input-wrap select.select-wide { width: 120px; }
.calc-form fieldset .field-hint:empty, .calc-results .field-hint:empty { display: none; }
.calc-form fieldset .field-hint { margin: -2px 0 12px; }
.calc-form .field[hidden] { display: none; }
@media (max-width: 560px) {
  .calc-tabs { border-radius: 20px; }
  .calc-note { padding: 0 20px 20px; }
  .input-wrap.input-date input { width: 140px; }
}
