:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #172033;
  --muted: #5b6475;
  --border: #dbe3ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0.3);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
  background: #eff6ff;
  border-color: #dbe8ff;
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}

.nav a:hover::after {
  transform: scaleX(1);
  opacity: 0.9;
}

.nav a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 1px;
  color: var(--primary);
  background: #eff6ff;
  border-color: #dbe8ff;
}

.nav a:is([aria-current="page"], .is-active) {
  color: var(--primary-dark);
  background: linear-gradient(180deg, #edf4ff 0%, #e6f0ff 100%);
  border-color: #c2d9ff;
}

.nav a:is([aria-current="page"], .is-active)::after {
  transform: scaleX(1);
  opacity: 1;
}

/* HERO / INTRO */
.wrap > header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.wrap > header p {
  max-width: 860px;
  margin-top: 0;
  margin-bottom: 16px;
}

/* MAIN */
main {
  display: block;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 0 0 24px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section p:last-child {
  margin-bottom: 0;
}

/* GRID */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}

/* CARDS */
.home-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--text);
  text-decoration: none;
  height: 100%;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  border-color: #bfd0ea;
  text-decoration: none;
}

.home-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text);
}

.home-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.meta {
  font-size: 0.94rem;
  color: var(--primary);
  font-weight: 700;
}

/* LISTS */
.bullets {
  margin: 14px 0 0;
  padding-left: 20px;
}

.bullets li {
  margin-bottom: 10px;
}

.bullets li:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  padding-top: 8px;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* FOOTER */
.sbc-footer {
  background: #0f172a;
  color: #dbe4f0;
  margin-top: 40px;
}

.sbc-footer a {
  color: #dbe4f0;
}

.sbc-footer a:hover {
  color: #ffffff;
}

.sbc-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 30px;
}

.sbc-footer__brand {
  max-width: 360px;
}

.sbc-footer__logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sbc-footer__tagline {
  margin: 0 0 14px;
  color: #b8c4d6;
}

.sbc-footer__email {
  font-weight: 700;
}

.sbc-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sbc-footer__heading {
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.sbc-footer__link {
  display: block;
  margin-bottom: 10px;
  color: #dbe4f0;
}

.sbc-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #b8c4d6;
}

.sbc-footer__note {
  max-width: 680px;
}

/* GENERIC CONTENT STYLES */
strong {
  color: var(--text);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  margin-top: 0;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

th {
  background: #f8fafc;
}

/* FORMS / CALCULATOR INPUTS */
input,
select,
button,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: var(--primary);
}

button,
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

button:hover,
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* SMALL BADGES / NOTES */
.note,
.helper-text,
.small-text {
  font-size: 0.95rem;
  color: var(--muted);
}



/* CALCULATOR PAGE LAYOUT */
.calc-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 700;
}

.calc-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

@media (min-width: 800px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.calc-card h2,
.calc-card h3 {
  margin-top: 0;
}

.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.btnrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.secondary-btn {
  display: inline-block;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  border-color: #bfd0ea;
  text-decoration: none;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--muted);
  font-weight: 600;
}

.result-value {
  font-weight: 800;
}

.section-link-list li + li {
  margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sbc-footer__inner {
    grid-template-columns: 1fr;
  }

  .sbc-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 24px 16px 44px;
  }

  .header-inner {
    padding: 14px 16px;
    gap: 10px;
  }

  .nav {
    margin-left: auto;
    gap: 6px;
    gap: 4px;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 0.92rem;
  }

  .wrap > header {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .section {
    padding: 22px 18px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sbc-footer__nav {
    grid-template-columns: 1fr;
  }

  .sbc-footer__bottom {
    flex-direction: column;
  }
}
