/* ============================================
   EU VAT Calculator — Modern Light Blue Theme
   Reusable across all pages (landing + country pairs)
   ============================================ */

/* --- Design Tokens --- */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a5f;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.05);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.1);
  --shadow-xl: 0 16px 48px rgba(30, 58, 95, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Compatibility aliases ── */
  --accent:      #2563eb;
  --accent-soft: #eff6ff;
  --accent-mid:  #bfdbfe;
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --surface-2:   #f1f5f9;
  --ink:         #0f172a;
  --ink-2:       #334155;
  --ink-3:       #64748b;
  --ink-4:       #94a3b8;
  --line:        rgba(15,23,42,0.10);
  --line-2:      rgba(15,23,42,0.16);
  --green:       #15803d;
  --green-bg:    #f0fdf4;
  --green-mid:   #86efac;
  --amber-bg:    #fffbeb;
  --r-sm:   8px;  --r-md:  12px; --r-lg: 16px; --r-xl: 20px; --r-full: 999px;
  --f-xs: 0.75rem; --f-sm: 0.875rem; --f-base: 1rem; --f-md: 1.125rem; --f-lg: 1.375rem;
}

/* --- Reset & Base --- */
/* ── Prevent horizontal overflow globally ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  min-width: 0;
}

img, video, iframe, table {
  max-width: 100%;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
  scroll-margin-top: 78px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-700);
  background: var(--slate-50);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-800);
}

strong {
  color: var(--slate-800);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--blue-700);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-logo__text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate-800);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-500);
  transition: all var(--transition);
}

.site-nav a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.site-nav a.active {
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 600;
}

.site-header__cta {
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  color: var(--blue-800);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-600);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--blue-50);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(170deg, var(--blue-50) 0%, var(--white) 40%, var(--blue-50) 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 em {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--blue-600);
  font-style: italic;
}

.hero > .container > p {
  font-size: 1.15rem;
  color: var(--slate-500);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
  color: var(--white) !important;
}

/* --- Quick Calculator --- */
.quick-calc {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.quick-calc__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.quick-calc__selects {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-calc__selects select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--blue-50);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.quick-calc__selects select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.quick-calc__arrow {
  font-size: 1.4rem;
  color: var(--blue-400);
  font-weight: 300;
  flex-shrink: 0;
}

.quick-calc__toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-btn:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.toggle-btn.active {
  background: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-700);
  font-weight: 600;
}

/* Quick result states */
.quick-result {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.quick-result.rc {
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  color: var(--green-700);
}

.quick-result.same {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  color: var(--amber-700);
}

.quick-result.no-rc {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--red-700);
}

.quick-result a {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
  padding: 32px 0;
}

.stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__n {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.2;
}

.stat__l {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   SECTION HEADER (shared)
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--slate-900);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--slate-500);
  font-size: 1.05rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: 80px 0;
}

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

.how__card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.how__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.how__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.how__card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 10px;
}

.how__card p {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ============================================
   COUNTRY PICKER
   ============================================ */
.country-picker {
  padding: 80px 0;
  background: var(--white);
}

.picker-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.country-list {
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.country-list__search {
  padding: 12px;
  border-bottom: 1px solid var(--blue-100);
}

.country-list__search input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--slate-700);
  background: var(--blue-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.country-list__search input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background: var(--white);
}

.country-list ul {
  list-style: none;
  max-height: 480px;
  overflow-y: auto;
}

.country-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
  transition: all var(--transition);
}

.country-list li a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.country-list li a.active {
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 600;
}

.country-list li a small {
  font-size: 0.78rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* Pairs panel */
.pairs-panel {
  min-height: 300px;
}

.pairs-panel__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--slate-800);
  margin-bottom: 20px;
}

.pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.pair-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: all var(--transition);
}

.pair-card:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pair-card__flags {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pair-card__vat {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-500);
  background: var(--blue-50);
  padding: 2px 8px;
  border-radius: 50px;
  text-align: center;
}

/* ============================================
   POPULAR PAIRS
   ============================================ */
.popular {
  padding: 80px 0;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
  background: var(--slate-50);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.feature__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.65;
}

/* ============================================
   CTA STRIP
   ============================================ */
.cta-strip {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 25% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-strip .container {
  position: relative;
  z-index: 1;
}

.cta-strip h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-strip h2 em {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--blue-200);
  font-style: italic;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .cta-btn {
  background: var(--white);
  color: var(--blue-700) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-strip .cta-btn:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--slate-700);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--slate-400);
}

.footer-brand .site-logo__text {
  color: var(--white);
}

.footer-brand .site-logo__mark {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-300);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--slate-400);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* ============================================
   COUNTRY PAIR PAGE — BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--slate-300);
  font-weight: 500;
}

.breadcrumb a {
  color: var(--blue-500);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--blue-700);
}

.breadcrumb [aria-current="page"] {
  color: var(--slate-600);
  font-weight: 600;
}

/* ============================================
   COUNTRY PAIR PAGE — MAIN
   ============================================ */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  flex: 1;
}

/* ============================================
   COUNTRY PAIR PAGE — HEADER
   ============================================ */
.page-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 50%, var(--blue-50) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--blue-100);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(96, 165, 250, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.country-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge.seller {
  background: var(--blue-100);
  color: var(--blue-800);
  border: 1px solid var(--blue-200);
}

.badge.buyer {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid #bbf7d0;
}

.badge small {
  font-weight: 500;
  opacity: 0.75;
  font-size: 0.8rem;
}

.arrow {
  font-size: 1.5rem;
  color: var(--blue-400);
  font-weight: 300;
}

.page-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.25;
  position: relative;
}

.lead {
  font-size: 1.05rem;
  color: var(--slate-500);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: inherit;
}

/* ============================================
   COUNTRY PAIR PAGE — RESULT CARD
   ============================================ */
.result-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600), var(--blue-400));
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-700);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid #bbf7d0;
  margin-bottom: 20px;
}

.result-card h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.result-card > p {
  color: var(--slate-600);
  margin-bottom: 28px;
  line-height: 1.75;
}

.result-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Checklist */
.checklist {
  list-style: none;
  counter-reset: checklist;
  margin-bottom: 32px;
}

.checklist li {
  counter-increment: checklist;
  position: relative;
  padding: 12px 12px 12px 48px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  line-height: 1.6;
}

.checklist li:hover {
  background: var(--blue-50);
}

.checklist li::before {
  content: counter(checklist);
  position: absolute;
  left: 8px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.checklist li a {
  font-weight: 500;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.metric {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-700);
}

/* ============================================
   COUNTRY PAIR PAGE — CALCULATOR
   ============================================ */
.calculator-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-md);
}

.calculator-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 8px;
}

#calc-embed > p {
  color: var(--slate-500);
  margin-bottom: 24px;
}

.calc-row {
  margin-bottom: 24px;
}

.calc-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-row input {
  width: 100%;
  max-width: 360px;
  padding: 14px 18px;
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--slate-800);
  background: var(--blue-50);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.calc-row input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  background: var(--white);
}

.calc-output {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 520px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.95rem;
}

.calc-line:last-child {
  border-bottom: none;
}

.calc-line span:first-child {
  color: var(--slate-500);
}

.calc-line span:last-child {
  font-weight: 600;
  color: var(--slate-800);
}

.calc-line.total {
  border-top: 2px solid var(--blue-300);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 14px;
}

.calc-line.total span:last-child {
  font-size: 1.15rem;
  color: var(--blue-700);
}

.calc-line.muted span {
  font-size: 0.85rem;
  color: var(--slate-400) !important;
  font-weight: 400 !important;
}

/* ============================================
   COUNTRY PAIR PAGE — FAQ
   ============================================ */
.faq-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-md);
}

.faq-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.faq-intro {
  color: var(--slate-500);
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-top: 6px;
  margin-bottom: 6px;
}

.faq-item:hover {
  border-color: var(--blue-200);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--slate-50);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background var(--transition), color var(--transition);
}

.faq-question:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.faq-question[aria-expanded="true"] {
  background: var(--blue-50);
  color: var(--blue-800);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--blue-500);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  overflow: hidden;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  padding: 16px 0 20px;
  color: var(--slate-600);
  line-height: 1.75;
  border-top: 1px solid var(--blue-100);
}

/* ============================================
   COUNTRY PAIR PAGE — COUNTRY INFO
   ============================================ */
.country-info {
  margin-bottom: 40px;
}

.country-info h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.country-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.country-card-header {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.country-card dl {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  align-items: baseline;
}

.country-card dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.country-card dd {
  font-weight: 600;
  color: var(--slate-800);
  font-size: 0.95rem;
}

.country-card dd a {
  font-weight: 600;
}

/* ============================================
   COUNTRY PAIR PAGE — RELATED
   ============================================ */
.related-section {
  margin-bottom: 40px;
}

.related-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.related-link {
  display: block;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: all var(--transition);
}

.related-link:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   COUNTRY PAIR PAGE — DISCLAIMER
   ============================================ */
.disclaimer {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.disclaimer strong {
  color: var(--blue-700);
}

.disclaimer a {
  font-weight: 500;
}

/* ============================================
   COUNTRY PAIR PAGE — SIMPLE FOOTER
   ============================================ */
footer:not(.site-footer) {
  background: var(--white);
  border-top: 1px solid var(--blue-100);
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-400);
}

footer:not(.site-footer) a {
  color: var(--blue-500);
  font-weight: 500;
}

footer:not(.site-footer) a:hover {
  color: var(--blue-700);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* Header mobile */
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--blue-100);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .quick-calc {
    padding: 24px 20px;
  }

  .quick-calc__selects {
    flex-direction: column;
  }

  .quick-calc__arrow {
    transform: rotate(90deg);
  }

  .quick-calc__toggle {
    flex-direction: column;
  }

  /* Stats */
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat__n {
    font-size: 1.4rem;
  }

  /* How */
  .how {
    padding: 48px 0;
  }

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

  /* Country picker */
  .country-picker {
    padding: 48px 0;
  }

  .picker-layout {
    grid-template-columns: 1fr;
  }

  .country-list ul {
    max-height: 240px;
  }

  /* Popular */
  .popular {
    padding: 48px 0;
  }

  .popular-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  /* Features */
  .features {
    padding: 48px 0;
  }

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

  /* CTA strip */
  .cta-strip {
    padding: 48px 0;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* Country pair page */
  main {
    padding: 24px 16px 40px;
  }

  .page-header {
    padding: 32px 20px;
    margin-bottom: 32px;
  }

  .country-badges {
    gap: 10px;
  }

  .badge {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .arrow {
    font-size: 1.2rem;
  }

  .result-card {
    padding: 24px 20px;
  }

  .result-card h2 {
    font-size: 1.4rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .metric {
    padding: 16px 12px;
  }

  .metric-value {
    font-size: 1.15rem;
  }

  .calculator-section {
    padding: 24px 20px;
  }

  .calc-row input {
    max-width: 100%;
  }

  .calc-output {
    max-width: 100%;
  }

  .faq-section {
    padding: 24px 20px;
  }

  .country-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    padding: 10px 16px;
  }

  .breadcrumb ol {
    font-size: 0.8rem;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-value {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.7rem;
  }

  .calc-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
  }

  .pairs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card,
.calculator-section,
.faq-section,
.country-info,
.related-section,
.disclaimer {
  animation: fadeInUp 0.5s ease-out both;
}

.calculator-section { animation-delay: 0.05s; }
.faq-section { animation-delay: 0.1s; }
.country-info { animation-delay: 0.15s; }
.related-section { animation-delay: 0.2s; }
.disclaimer { animation-delay: 0.25s; }

/* ============================================
   SCROLLBAR & SELECTION
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-200);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-300);
}

::selection {
  background: var(--blue-200);
  color: var(--blue-900);
/* ============================================
   RESPONSIVE — full coverage for all pages
   ============================================ */

/* ── 1024px ── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .picker-layout { grid-template-columns: 200px 1fr; gap: 20px; }
}

/* ── 768px ── */
@media (max-width: 768px) {

  /* Global */
  .container { padding: 0 16px; }

  /* Nav */
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--blue-100);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.95rem; }
  .site-header__cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero .container { text-align: left; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero > .container > p { max-width: 100%; margin-inline: 0; font-size: 1rem; }
  .hero__eyebrow { font-size: 0.7rem; }
  .hero__actions { justify-content: flex-start; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .cta-btn,
  .hero__actions .btn-ghost { text-align: center; justify-content: center; }

  /* Quick calc */
  .quick-calc { padding: 20px 16px; margin-top: 24px; }
  .quick-calc__selects { flex-direction: column; gap: 8px; }
  .quick-calc__arrow { display: none; }
  .quick-calc__toggle { flex-direction: column; gap: 6px; }
  .toggle-btn { padding: 10px 12px; font-size: 0.82rem; }
  .quick-result { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.85rem; }
  .quick-result a { align-self: stretch; text-align: center; }

  /* Stats */
  .stats { padding: 28px 0; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px; }
  .stat__n { font-size: 1.5rem; }
  .stat__l { font-size: 0.68rem; }

  /* How */
  .how { padding: 48px 0; }
  .how__grid { grid-template-columns: 1fr; gap: 12px; }
  .how__card { padding: 20px; }

  /* Section header */
  .section-header h2 { font-size: 1.4rem; }

  /* Country picker */
  .country-picker { padding: 40px 0; }
  .picker-layout { grid-template-columns: 1fr; gap: 16px; }
  .country-list ul { max-height: 220px; }
  .pairs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pair-card { font-size: 0.8rem; padding: 10px 12px; }

  /* Popular */
  .popular { padding: 40px 0; }
  .popular-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Features */
  .features { padding: 48px 0; }
  .features__grid { grid-template-columns: 1fr; gap: 16px; }

  /* CTA strip */
  .cta-strip { padding: 48px 0; }
  .cta-strip h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cta-strip p { font-size: 0.9rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 16px 28px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  .footer-bottom p { font-size: 0.75rem; }

  /* Country pair pages */
  main { padding-bottom: 40px; }
  .page-header { padding: 28px 20px; margin-bottom: 28px; border-radius: var(--radius-lg); }
  .page-header h1 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .country-badges { flex-wrap: wrap; gap: 8px; }
  .badge { padding: 6px 12px; font-size: 0.82rem; }
  .arrow { font-size: 1rem; }
  .lead { font-size: 0.9rem; }
  .result-card { padding: 20px 18px; }
  .result-card h2 { font-size: 1.25rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 14px 12px; }
  .metric-value { font-size: 1.1rem; }
  .metric-label { font-size: 0.7rem; }
  .calculator-section { padding: 20px 18px; }
  .calc-row input { max-width: 100%; }
  .faq-section { padding: 20px 18px; }
  .country-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .related-link { font-size: 0.75rem; }

  /* FAQ page */
  .faq-hero { padding: 36px 0 28px; margin-bottom: 24px; }
  .faq-hero h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; }
  .faq-hero p { font-size: 0.9rem; }
  .faq-hero .cta-btn { display: block; text-align: center; }
  .cat-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 10px; margin-bottom: 28px; }
  .cat-nav a { font-size: 0.68rem; padding: 4px 10px; white-space: nowrap; }
  .faq-category { margin-bottom: 32px; }
  .faq-category h2,
  .faq-category h3 { font-size: 1.1rem; margin-bottom: 14px; }
  .faq-list { border-radius: var(--radius-md); }
  .faq-question { padding: 14px 16px; font-size: 0.875rem; gap: 12px; }
  .faq-answer { padding: 0 16px 14px; }
  .faq-answer p { font-size: 0.845rem; }
  .countries-section { margin-bottom: 28px; }
  .tag-cloud { gap: 5px; }
  .tag { font-size: 0.72rem; padding: 3px 10px; }

  /* vat-reverse-charge index */
  .rc-hero { padding: 32px 0 24px; margin-bottom: 24px; }
  .rc-hero h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .rc-search { max-width: 100%; }
  .country-grid-rc { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
  .cc__btn { padding: 8px 10px; font-size: 0.78rem; }
  .pairs-grid-rc { grid-template-columns: 1fr 1fr; gap: 6px; }
  .pair-link { font-size: 0.78rem; padding: 8px 10px; }
  .pairs-banner { padding: 14px 16px; border-radius: var(--radius-md); flex-wrap: wrap; }
  .pairs-filter input { width: 100%; max-width: 220px; }

  /* Breadcrumb */
  .breadcrumb { padding: 10px 0 0; }
  .breadcrumb ol { font-size: 0.75rem; }
}

/* ── 480px ── */
@media (max-width: 480px) {

  .container { padding: 0 14px; }

  /* Hero */
  .hero h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .quick-calc { padding: 16px 14px; }

  /* Stats */
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
  .stat__n { font-size: 1.35rem; }

  /* Grids → 1 col */
  .pairs-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .pairs-grid-rc { grid-template-columns: 1fr; }

  /* Pair pages */
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .metric-value { font-size: 1rem; }
  .calc-line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .page-header h1 { font-size: 1.3rem; }
  .lead { font-size: 0.85rem; }

  /* FAQ */
  .cat-nav { gap: 4px; padding: 10px; }
  .cat-nav a { font-size: 0.62rem; padding: 3px 8px; }
  .faq-question { font-size: 0.83rem; padding: 12px 14px; }
  .faq-hero h1 { font-size: 1.3rem; }

  /* Country rc index */
  .country-grid-rc { grid-template-columns: 1fr 1fr; }
  .pairs-banner { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Footer */
  .footer-inner { padding: 28px 14px 20px; }
}

/* ── 360px ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.35rem; }
  .badge { font-size: 0.72rem; padding: 4px 8px; }
  .country-grid-rc { grid-template-columns: 1fr; }
  .cat-nav a { font-size: 0.58rem; padding: 2px 6px; }
}

}