/* ================================================================
   GrossNetSalary.com — style.css
   Design: Financial-trustworthy. Navy + Emerald accent. Sora + DM Sans.
   ================================================================ */

/* ── Variables ── */
:root {
  /* Core palette */
  --navy:       #0f1f3d;
  --navy-mid:   #1a3260;
  --navy-soft:  #243b6e;
  --emerald:    #00b87a;
  --emerald-dk: #009962;
  --emerald-lt: #e6f9f2;
  --gold:       #f5a623;
  --red-soft:   #ff4d4d;

  /* Neutrals */
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --gray-50:    #f1f3f8;
  --gray-100:   #e4e8f0;
  --gray-300:   #b0bac9;
  --gray-500:   #6b7a99;
  --gray-700:   #3d4966;
  --text:       #1a2340;
  --text-muted: #6b7a99;

  /* Typography */
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(15,31,61,0.08);
  --sh:    0 4px 16px rgba(15,31,61,0.10);
  --sh-lg: 0 8px 32px rgba(15,31,61,0.14);

  /* Transitions */
  --t: 0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin-bottom: 0.8rem; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

/* ── Layout ── */
.wrap     { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap-sm  { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* ── AdSense slots ── */
.ad-slot {
  width: 100%; min-height: 90px;
  background: var(--gray-50);
  border: 1px dashed var(--gray-100);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); font-size: 0.75rem;
  margin: 24px 0;
  overflow: hidden;
}
.ad-slot-728 { min-height: 90px; }
.ad-slot-300 { min-height: 250px; max-width: 336px; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-soft);
}
.hdr-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 2px;
  text-decoration: none;
}
.logo-gross { color: var(--gray-300); }
.logo-sep   { color: var(--emerald); font-size: 1rem; margin: 0 2px; }
.logo-net   { color: var(--white); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--gray-300); letter-spacing: 0.02em;
  transition: color var(--t);
}
.main-nav a:hover { color: var(--white); text-decoration: none; }
.main-nav a.active { color: var(--emerald); }

/* Burger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: all var(--t);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 0;
  font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb .wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--emerald); text-decoration: none; }
.breadcrumb .sep { color: var(--gray-300); }

/* ================================================================
   HERO — Homepage
   ================================================================ */
.hero-home {
  background: var(--navy);
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-home::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,184,122,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-home h1 { color: var(--white); margin-bottom: 14px; }
.hero-home h1 span { color: var(--emerald); }
.hero-home .hero-sub {
  color: var(--gray-300); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 32px; line-height: 1.6;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; margin-top: 36px;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--emerald); display: block; }
.hero-stat-lbl { font-size: 0.78rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.06em; }

/* ================================================================
   HERO — Country pages
   ================================================================ */
.hero-country {
  background: var(--navy);
  padding: 40px 0 36px;
  position: relative; overflow: hidden;
}
.hero-country::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(0,184,122,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-country-inner {
  display: flex; align-items: center; gap: 20px;
  position: relative;
}
.hero-flag { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.hero-country h1 { color: var(--white); font-size: clamp(1.4rem, 3.5vw, 2rem); }
.hero-country .hero-sub { color: var(--gray-300); font-size: 0.95rem; margin-top: 6px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(0,184,122,0.15); border: 1px solid rgba(0,184,122,0.3);
  color: var(--emerald); font-size: 0.78rem; font-weight: 600;
}

/* ================================================================
   COUNTRY TABS (homepage)
   ================================================================ */
.tabs-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 60px; z-index: 100;
}
.tabs-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px;
  background: none; border: none; border-bottom: 3px solid transparent;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  white-space: nowrap; transition: all var(--t);
}
.tab-btn:hover { color: var(--text); border-bottom-color: var(--gray-100); }
.tab-btn.active { color: var(--emerald); border-bottom-color: var(--emerald); font-weight: 600; }
.tab-flag { font-size: 1.1rem; }

/* ================================================================
   CALCULATOR CARD
   ================================================================ */
.calc-section { padding: 40px 0; }
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.calc-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--sh);
  overflow: hidden;
}
.calc-head {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.calc-head h2 { font-size: 1rem; margin: 0; }
.calc-year-badge {
  background: var(--emerald-lt); color: var(--emerald-dk);
  font-size: 0.75rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px;
}
.calc-body { padding: 24px; }

/* Inputs grid */
.inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.inp-group { display: flex; flex-direction: column; gap: 6px; }
.inp-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.inp-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-100); border-radius: var(--r);
  background: var(--gray-50); transition: border-color var(--t), background var(--t);
  overflow: hidden;
}
.inp-wrap:focus-within { border-color: var(--emerald); background: var(--white); }
.inp-pre {
  padding: 0 10px 0 14px;
  font-weight: 600; font-size: 1rem; color: var(--text-muted);
  font-family: var(--font-head); flex-shrink: 0;
}
.inp-wrap input,
.inp-wrap select {
  flex: 1; border: none; background: transparent;
  height: 46px; padding: 0 14px; font-size: 0.97rem;
  font-family: var(--font-body); color: var(--text);
}
.inp-wrap input:focus, .inp-wrap select:focus { outline: none; }
.inp-wrap select { cursor: pointer; }

/* Full-width input */
.inp-full { grid-column: 1 / -1; }

/* Calc button */
.calc-btn {
  width: 100%; height: 52px;
  background: var(--emerald); color: var(--white);
  border: none; border-radius: var(--r);
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  cursor: pointer; letter-spacing: 0.02em;
  transition: background var(--t), transform var(--t);
  margin-top: 4px;
}
.calc-btn:hover { background: var(--emerald-dk); }
.calc-btn:active { transform: scale(0.99); }

/* ── Results ── */
.results-wrap {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.result-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 16px 14px;
  text-align: center; transition: border-color var(--t);
}
.result-card.highlight {
  background: var(--emerald-lt);
  border-color: rgba(0,184,122,0.25);
  grid-column: 1 / -1;
}
.result-label {
  display: block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 6px;
}
.result-value {
  display: block; font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; color: var(--text);
}
.result-card.highlight .result-value { font-size: 2rem; color: var(--emerald); }
.result-period { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; display: block; }

/* ── Breakdown ── */
.breakdown {
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); overflow: hidden;
}
.bk-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}
.bk-row:last-child { border-bottom: none; }
.bk-row.bk-head {
  background: var(--gray-50);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.bk-row.bk-deduct .bk-val { color: var(--red-soft); }
.bk-row.bk-total {
  background: var(--gray-50); font-weight: 700;
}
.bk-row.bk-total .bk-val { color: var(--emerald); font-size: 1rem; font-family: var(--font-head); }
.bk-lbl { color: var(--text); }
.bk-val { font-weight: 600; }

/* ── Chart ── */
.chart-wrap {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
.chart-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.chart-canvas-wrap { position: relative; height: 180px; }

/* ── Sidebar ── */
.calc-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Quick facts card */
.sidebar-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl); box-shadow: var(--sh-sm); padding: 20px;
}
.sidebar-card h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 14px; }
.fact-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-50); font-size: 0.88rem; }
.fact-row:last-child { border-bottom: none; }
.fact-lbl { color: var(--text-muted); }
.fact-val { font-weight: 600; color: var(--text); text-align: right; }

/* ================================================================
   TAX RATES TABLE
   ================================================================ */
.tax-table-section { padding: 40px 0 0; }
.tax-table-section h2 { margin-bottom: 20px; }
.tax-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.tax-table thead th {
  background: var(--navy); color: var(--white);
  padding: 12px 16px; text-align: left;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.tax-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--gray-50); }
.tax-table tbody tr:last-child td { border-bottom: none; }
.tax-table tbody tr:hover { background: var(--gray-50); }
.rate-pill {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-weight: 700; font-size: 0.85rem;
}
.rate-0  { background: var(--gray-50); color: var(--text-muted); }
.rate-lo { background: var(--emerald-lt); color: var(--emerald-dk); }
.rate-mid{ background: #fff3e0; color: #e65100; }
.rate-hi { background: #fdecea; color: #c62828; }

/* ================================================================
   COUNTRY GRID — homepage
   ================================================================ */
.countries-section { padding: 56px 0; background: var(--white); border-top: 1px solid var(--gray-100); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--emerald);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.country-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 18px 20px;
  transition: all var(--t); color: var(--text);
}
.country-card:hover {
  border-color: var(--emerald); background: var(--white);
  box-shadow: var(--sh); transform: translateY(-2px); text-decoration: none;
}
.cc-flag { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.cc-info { flex: 1; min-width: 0; }
.cc-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; display: block; }
.cc-sub  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; display: block; }
.cc-arrow { color: var(--emerald); font-size: 1.1rem; opacity: 0; transition: opacity var(--t); }
.country-card:hover .cc-arrow { opacity: 1; }

/* World card special */
.country-card.world-card {
  background: var(--navy); border-color: var(--navy-soft);
  grid-column: 1 / -1;
}
.country-card.world-card .cc-name { color: var(--white); }
.country-card.world-card .cc-sub  { color: var(--gray-300); }
.country-card.world-card .cc-arrow { color: var(--emerald); opacity: 1; }
.country-card.world-card:hover { border-color: var(--emerald); }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-section { padding: 56px 0; }
.how-section .section-head { text-align: center; align-items: center; margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  text-align: center; padding: 28px 20px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl); box-shadow: var(--sh-sm);
}
.step-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--emerald-lt); color: var(--emerald);
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.88rem; margin: 0; }

/* ================================================================
   CONTENT SECTION (country description)
   ================================================================ */
.content-section { padding: 40px 0; }
.content-prose h2 { margin-bottom: 14px; }
.content-prose p  { line-height: 1.75; }
.content-prose ul { list-style: disc; padding-left: 20px; }
.content-prose ul li { margin-bottom: 6px; color: var(--text-muted); font-size: 0.95rem; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-section { padding: 48px 0; background: var(--white); border-top: 1px solid var(--gray-100); }
.faq-section h2 { margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--gray-100); border-radius: var(--r-xl); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: none; border: none;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left;
  transition: background var(--t);
}
.faq-q:hover { background: var(--gray-50); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--emerald); transition: transform var(--t);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--emerald-lt); border-color: var(--emerald); }
.faq-a {
  padding: 0 22px 18px; font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ================================================================
   RELATED CALCULATORS
   ================================================================ */
.related-section { padding: 40px 0 56px; }
.related-section h2 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 16px 18px;
  color: var(--text); transition: all var(--t);
}
.related-card:hover { border-color: var(--emerald); box-shadow: var(--sh-sm); text-decoration: none; }
.related-flag { font-size: 1.6rem; }
.related-name { font-weight: 600; font-size: 0.9rem; display: block; }
.related-sub  { font-size: 0.78rem; color: var(--text-muted); }

/* ================================================================
   WORLD CALCULATOR PAGE
   ================================================================ */
.world-countries-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 24px;
}
.wc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--gray-50); border: 1px solid var(--gray-100);
  cursor: pointer; transition: all var(--t); font-size: 0.85rem;
}
.wc-item:hover { border-color: var(--emerald); background: var(--white); }
.wc-item.selected { border-color: var(--emerald); background: var(--emerald-lt); font-weight: 600; }
.wc-flag { font-size: 1.1rem; }
.wc-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================
   COMPARE PAGE
   ================================================================ */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare-col { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-xl); padding: 24px; }
.compare-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.compare-result {
  background: var(--gray-50); border-radius: var(--r-lg);
  padding: 20px; text-align: center; margin-top: 16px;
}
.compare-net-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.compare-net-val { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--emerald); display: block; margin-top: 4px; }
.compare-winner {
  background: var(--emerald); color: var(--white);
  padding: 4px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  display: inline-block; margin-top: 8px;
}

/* ================================================================
   BLOG
   ================================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl); overflow: hidden; transition: all var(--t);
  color: var(--text);
}
.blog-card:hover { border-color: var(--emerald); box-shadow: var(--sh); transform: translateY(-2px); text-decoration: none; }
.blog-card-body { padding: 20px; }
.blog-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: var(--emerald-lt); color: var(--emerald-dk);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.blog-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.35; display: block; }
.blog-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.blog-meta { padding: 12px 20px; border-top: 1px solid var(--gray-50); font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; }

/* ================================================================
   STATIC PAGES
   ================================================================ */
.static-section { padding: 56px 0; }
.static-section h1 { margin-bottom: 28px; }
.static-section h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.static-section p  { line-height: 1.75; margin-bottom: 14px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--navy); padding: 56px 0 32px; margin-top: 0; }
.footer-inner { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 3fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .footer-logo {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--white); display: inline-block; margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--emerald); }
.footer-brand p { color: var(--gray-300); font-size: 0.88rem; line-height: 1.65; margin: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: var(--gray-300); font-size: 0.88rem; transition: color var(--t); }
.footer-col ul a:hover { color: var(--emerald); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--navy-soft); padding-top: 24px; }
.footer-bottom p { color: var(--gray-500); font-size: 0.8rem; margin: 0 0 4px; }
.footer-disclaimer { font-size: 0.75rem !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .world-countries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--navy); border-top: 1px solid var(--navy-soft); padding: 16px 24px; gap: 4px; z-index: 199; }
  .main-nav.open { display: flex; }
  .nav-burger { display: flex; }
  .inputs-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .world-countries-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-home { padding: 44px 0 40px; }
  .hero-stats { gap: 24px; }
  .calc-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .country-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .world-countries-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Salary table links grid ───────────────────────────────── */
.salary-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.salary-link-item {
  display: block;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, border-color .15s;
  text-align: center;
}
.salary-link-item:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Inline pension/loan inputs suffix ──────────────────────── */
.inp-suf {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .875rem;
  pointer-events: none;
}
