/* ═══════════════════════════════════════════════════════
   Allied Clinics — premium light system
   Canvas #F8FAFC · Emerald #0F766E · Accent #2563EB · Inter
   ═══════════════════════════════════════════════════════ */

:root {
  --canvas:   #F8FAFC;
  --white:    #FFFFFF;
  --sand:     #F1F5F9;

  --emerald:      #0F766E;
  --emerald-700:  #0F766E;
  --emerald-800:  #115E59;
  --emerald-900:  #134E4A;
  --emerald-50:   #ECFDF5;
  --emerald-100:  #D1FAE5;

  --accent:      #2563EB;
  --accent-700:  #1D4ED8;
  --accent-50:   #EFF6FF;
  --accent-100:  #DBEAFE;

  --ink:    #0B1220;
  --ink-2:  #334155;
  --ink-3:  #64748B;
  --ink-4:  #94A3B8;
  --line:   #E2E8F0;
  --line-2: #CBD5E1;

  --gold:   #B88A34;
  --rose:   #E11D48;

  --r:    24px;
  --r-sm: 16px;
  --r-xs: 12px;
  --r-pill: 100px;

  --sh-sm:   0 1px 2px rgba(11,18,32,.05);
  --sh:      0 1px 2px rgba(11,18,32,.04), 0 12px 32px -12px rgba(11,18,32,.10);
  --sh-lift: 0 2px 4px rgba(11,18,32,.05), 0 28px 56px -24px rgba(11,18,32,.20);
  --sh-em:   0 12px 28px -12px rgba(15,118,110,.55);

  --wrap: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.tnum { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; background: var(--emerald); color: #fff; padding: 12px 20px; z-index: 99; border-radius: 0 0 var(--r-xs) 0; font-weight: 600; }
.skip:focus { left: 0; }

/* ── type helpers ─────────────────────────────── */
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--emerald);
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.19rem); color: var(--ink-2); max-width: 58ch; line-height: 1.68; }

/* ── pills ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: -.01em;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--sand); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill--em { background: var(--emerald-50); color: var(--emerald-800); border-color: var(--emerald-100); }
.pill--ac { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.pill--gd { background: #FEF7E7; color: var(--gold); border-color: #FAEBC8; }
.pill--wh { background: rgba(255,255,255,.9); color: var(--ink); border-color: rgba(255,255,255,.7); backdrop-filter: blur(10px); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ── buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: .97rem; font-weight: 700; letter-spacing: -.015em;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  background: var(--emerald); color: #fff; box-shadow: var(--sh-em);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(15,118,110,.65); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { border-color: var(--line-2); box-shadow: var(--sh); }
.btn--ac { background: var(--accent); box-shadow: 0 12px 28px -12px rgba(37,99,235,.55); }
.btn--sm { padding: 11px 18px; font-size: .88rem; }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ── header ───────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.78);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.hd .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.08rem; letter-spacing: -.03em; }
.brand .mk { width: 34px; height: 34px; border-radius: 11px; background: var(--emerald); display: grid; place-items: center; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-2); padding: 9px 15px; border-radius: var(--r-pill); transition: background .2s, color .2s; }
.nav a:hover { background: var(--white); color: var(--ink); }
.nav .btn { margin-left: 12px; }

/* ── sections ─────────────────────────────────── */
.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec--sand { background: var(--white); border-block: 1px solid var(--line); }
[id] { scroll-margin-top: 92px; }
.sec-head { max-width: 66ch; margin-bottom: 52px; display: flex; flex-direction: column; gap: 16px; }
.sec-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* ── cards ────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh);
}

/* ── hero ─────────────────────────────────────── */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -30%; height: 120%;
  background:
    radial-gradient(46% 52% at 18% 8%, rgba(15,118,110,.10), transparent 68%),
    radial-gradient(40% 48% at 88% 4%, rgba(37,99,235,.09), transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,452px); gap: clamp(36px, 4.5vw, 68px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.15rem); margin-block: 24px 22px; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }

/* ── calculator ───────────────────────────────── */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh-lift); overflow: hidden; }
.calc-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.calc-hd .t { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); }
.calc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 9px; }
.fld > label { font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-4); }
.sel { position: relative; }
.sel select {
  appearance: none; width: 100%; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 44px 14px 16px; cursor: pointer; transition: border-color .2s, background .2s;
}
.sel select:hover { border-color: var(--line-2); background: var(--white); }
.sel::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.step { display: flex; align-items: center; gap: 11px; }
.step button {
  width: 48px; height: 52px; flex: none; font-family: inherit; font-size: 1.25rem; font-weight: 500; line-height: 1;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.step button:hover:not(:disabled) { background: var(--emerald-50); border-color: var(--emerald-100); color: var(--emerald); }
.step button:disabled { opacity: .38; cursor: default; }
.step .q {
  flex: 1; text-align: center; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 0;
}
.step .q b { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.step .q small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-top: 1px; }

.calc-out { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ol { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: .95rem; }
.ol .k { color: var(--ink-3); font-weight: 500; }
.ol .k b { color: var(--ink-2); font-weight: 600; }
.ol .v { font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; }
.ol.de .v { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.ol.zero .v { color: var(--emerald); }

.save-box {
  margin-top: 6px; background: var(--emerald-900); border-radius: 20px; padding: 22px 24px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.save-box .k { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--emerald-100); }
.save-box .k span { display: block; font-size: .8rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.6); margin-top: 4px; }
.save-box .v { font-size: clamp(2.1rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.calc-ft { padding: 0 24px 22px; font-size: .76rem; line-height: 1.65; color: var(--ink-4); }

/* ── stat strip ───────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh); overflow: hidden; }
.strip > div { padding: 28px 26px; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: none; }
.strip .n { font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.strip .n.em { color: var(--emerald); }
.strip .l { margin-top: 9px; font-size: .88rem; color: var(--ink-3); line-height: 1.55; }

/* ── destinations ─────────────────────────────── */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dest {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/3.6;
  box-shadow: var(--sh); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dest:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,18,32,.88) 0%, rgba(11,18,32,.25) 45%, rgba(11,18,32,.05) 100%); }
.dest .body { position: absolute; inset-inline: 0; bottom: 0; padding: 26px; color: #fff; }
.dest .body h3 { font-size: 1.5rem; }
.dest .meta { margin-top: 6px; font-size: .9rem; color: rgba(255,255,255,.75); }
.dest .row { margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dest .price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.dest .price small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 5px; }
.dest .tag { position: absolute; top: 20px; left: 20px; }

/* ── split feature ────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--flip .split-media { order: -1; }
.split-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lift); aspect-ratio: 4/3.3; position: relative; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ledger { margin-top: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 8px 24px; }
.lr { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.lr:last-child { border-bottom: none; }
.lr .k { color: var(--ink-2); }
.lr .k small { display: block; font-size: .78rem; color: var(--ink-4); margin-top: 2px; }
.lr .v { font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.lr.credit .v { color: var(--emerald); }
.lr.total { border-top: 2px solid var(--ink); border-bottom: none; margin-top: 4px; padding-top: 18px; }
.lr.total .k { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.lr.total .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; }

/* ── steps ────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; list-style: none; margin: 0; padding: 0; }
.stp {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 13px; box-shadow: var(--sh);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stp:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.stp .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--emerald-50); color: var(--emerald); display: grid; place-items: center; }
.stp .num { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.stp h3 { font-size: 1.12rem; }
.stp p { font-size: .93rem; color: var(--ink-3); }
.stp .who { margin-top: auto; padding-top: 14px; }

/* ── price table ──────────────────────────────── */
.tbl-wrap { border-radius: var(--r); border: 1px solid var(--line); background: var(--white); box-shadow: var(--sh); overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
table.fees { width: 100%; min-width: 660px; border-collapse: collapse; }
.fees th, .fees td { padding: 20px 26px; text-align: right; }
.fees thead th { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--line); background: var(--canvas); }
.fees th:first-child, .fees td:first-child { text-align: left; }
.fees tbody th { font-size: 1rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.fees tbody th small { display: block; font-size: .76rem; font-weight: 500; color: var(--ink-4); margin-top: 3px; letter-spacing: 0; }
.fees tbody td { border-bottom: 1px solid var(--line); }
.fees tbody tr:last-child th, .fees tbody tr:last-child td { border-bottom: none; }
.fees tbody tr { transition: background .2s; }
.fees tbody tr:hover { background: var(--canvas); }
.fees .money { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; }
.fees .rng { display: block; font-size: .76rem; color: var(--ink-4); margin-top: 3px; }
.fees .de .money { color: var(--ink-3); }
.fees .ab .money { color: var(--emerald); }
.gapc { display: inline-flex; align-items: center; gap: 13px; }
.gapc .p { font-weight: 800; color: var(--emerald); font-size: 1.02rem; letter-spacing: -.02em; }
.gapbar { width: 78px; height: 6px; border-radius: var(--r-pill); background: var(--sand); overflow: hidden; flex: none; }
.gapbar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--emerald); width: var(--fill, 0%); }
.tbl-note { margin-top: 18px; font-size: .88rem; color: var(--ink-3); max-width: 78ch; }
.tbl-note b { color: var(--ink-2); font-weight: 600; }
.tbl-note a { color: var(--emerald); font-weight: 600; }

/* ── trust cards ──────────────────────────────── */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 15px; }
.tc .ic { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; }
.tc .ic.e { background: var(--emerald-50); color: var(--emerald); }
.tc .ic.a { background: var(--accent-50); color: var(--accent); }
.tc .ic.r { background: #FFF1F2; color: var(--rose); }
.tc h3 { font-size: 1.22rem; }
.tc p { font-size: .95rem; color: var(--ink-3); }
.tc p b { color: var(--ink); font-weight: 600; }
.tc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.tc ul li { display: flex; gap: 13px; }
.tc ul li .no { flex: none; width: 25px; height: 25px; border-radius: 8px; background: var(--emerald-50); color: var(--emerald); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.tc ul li b { display: block; font-size: .96rem; font-weight: 700; letter-spacing: -.02em; }
.tc ul li span.d { font-size: .9rem; color: var(--ink-3); }
.tc ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; font-size: .93rem; color: var(--ink-3); }
.tc ol li::marker { color: var(--emerald); font-weight: 700; }

/* ── CTA ──────────────────────────────────────── */
.cta {
  border-radius: 32px; overflow: hidden; position: relative;
  background: var(--emerald-900);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,420px); gap: clamp(32px, 4vw, 64px);
  padding: clamp(38px, 5vw, 64px);
  align-items: start; color: #fff;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 88% 6%, rgba(37,99,235,.34), transparent 62%), radial-gradient(52% 80% at 6% 96%, rgba(16,185,129,.22), transparent 62%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.cta .lede { color: rgba(255,255,255,.74); max-width: 46ch; }
.form { display: flex; flex-direction: column; gap: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 26px; backdrop-filter: blur(12px); }
.form label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.form input, .form select {
  width: 100%; font-family: inherit; font-size: .97rem; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm);
  padding: 14px 16px; transition: border-color .2s, background .2s;
}
.form input::placeholder { color: rgba(255,255,255,.45); }
.form input:focus, .form select:focus { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.13); }
.form select option { color: var(--ink); background: #fff; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { background: #fff; color: var(--emerald-900); box-shadow: none; }
.form .btn:hover { box-shadow: 0 16px 32px -14px rgba(0,0,0,.5); }
.form .fine { font-size: .79rem; line-height: 1.62; color: rgba(255,255,255,.55); }
.form .fine b { color: #fff; font-weight: 600; }

/* ── footer ───────────────────────────────────── */
.ft { background: var(--white); border-top: 1px solid var(--line); padding-block: 60px 48px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.ft h4 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
.ft ul, .ft ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: .88rem; color: var(--ink-3); line-height: 1.6; }
.ft ol { counter-reset: s; }
.ft ol li { counter-increment: s; display: flex; gap: 10px; }
.ft ol li::before { content: counter(s); font-size: .7rem; font-weight: 700; color: var(--ink-4); flex: none; padding-top: 4px; }
.ft a { color: var(--emerald); font-weight: 600; }
.ft a:hover { text-decoration: underline; text-underline-offset: 3px; }
.disc { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .79rem; line-height: 1.75; color: var(--ink-4); max-width: 100ch; }
.disc b { color: var(--ink-3); font-weight: 600; }

/* ── responsive ───────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: minmax(0,1fr); }
  .split { grid-template-columns: minmax(0,1fr); }
  .split--flip .split-media { order: 0; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(2) { border-right: none; }
  .strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav ul { display: none; }
  .hd .wrap { height: 66px; }
  [id] { scroll-margin-top: 84px; }
  .dest-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-right: none; border-bottom: 1px solid var(--line); }
  .strip > div:last-child { border-bottom: none; }
  .ft-grid { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .save-box { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ── segmented switch (traveller / clinic) ────── */
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); padding: 4px; margin-bottom: 4px;
}
.seg-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .88rem; font-weight: 600; letter-spacing: -.01em;
  padding: 11px 10px; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.62);
  transition: background .2s, color .2s;
}
.seg-b:hover { color: #fff; }
.seg-b.is-on { background: #fff; color: var(--emerald-900); }
.seg-b svg { flex: none; }

.form .panel { display: flex; flex-direction: column; gap: 15px; }
.form .panel[hidden] { display: none; }

/* ── clinic band ──────────────────────────────── */
.clinic-band {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh); padding: 34px 38px;
}
.clinic-band h3 { font-size: 1.5rem; }
.clinic-band p { margin-top: 10px; font-size: .98rem; color: var(--ink-3); max-width: 62ch; }
.clinic-band .pts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
@media (max-width: 860px) {
  .clinic-band { grid-template-columns: minmax(0,1fr); }
  .seg-b { font-size: .82rem; padding: 11px 6px; }
}

/* ── language switch ──────────────────────────── */
.lang {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.lang button {
  font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 7px 13px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--ink-4);
  transition: background .2s, color .2s, box-shadow .2s;
}
.lang button:hover { color: var(--ink-2); }
.lang button.is-on { background: var(--white); color: var(--emerald); box-shadow: var(--sh-sm); }
@media (max-width: 760px) { .lang button { padding: 7px 10px; font-size: .74rem; } }

/* ═══════════════════════════════════════════════
   German layout adjustments
   German runs ~30% longer than English and forms
   compound words up to 28 characters that cannot
   break on their own. i18n.js sets <html lang>,
   so these apply only when DE is active.
   ═══════════════════════════════════════════════ */

/* every text container may break a long word rather than overflow */
p, li, td, th, h1, h2, h3, h4, .pill, .lr .k, .ol .k, .tc ul li span.d {
  overflow-wrap: break-word;
}

html[lang="de"] {
  hyphens: auto;
  -webkit-hyphens: auto;
}
html[lang="de"] h1,
html[lang="de"] h2,
html[lang="de"] h3,
html[lang="de"] .lede,
html[lang="de"] p {
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* headings: shed a little size so longer German lines still fit their block */
html[lang="de"] .hero h1        { font-size: clamp(2.4rem, 4.7vw, 3.6rem); }
html[lang="de"] .sec-head h2    { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
html[lang="de"] .cta h2         { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
html[lang="de"] .clinic-band h3 { font-size: 1.36rem; }
html[lang="de"] .tc h3          { font-size: 1.14rem; }
html[lang="de"] .stp h3         { font-size: 1.04rem; }

/* pills: let a long label wrap instead of running past its container */
html[lang="de"] .pill {
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

/* nav: German labels are up to 50% longer — trim spacing, hide one breakpoint earlier */
html[lang="de"] .nav a     { font-size: .875rem; padding: 9px 11px; }
html[lang="de"] .nav .btn  { margin-left: 8px; }
@media (max-width: 1120px) { html[lang="de"] .nav ul { display: none; } }

/* buttons: keep one line where possible, wrap gracefully where not */
html[lang="de"] .btn { font-size: .93rem; padding-inline: 22px; }
html[lang="de"] .seg-b { font-size: .8rem; padding: 11px 6px; }

/* calculator + ledger rows: label takes the slack, figure never wraps */
.ol .k, .lr .k { flex: 1 1 auto; min-width: 0; }
.ol .v, .lr .v { flex: 0 0 auto; white-space: nowrap; }
html[lang="de"] .ol { font-size: .91rem; }
html[lang="de"] .ol .k small { display: block; }

/* status chips: "Nicht vorhanden" needs more room than "Not built" */
/* price table: wider floor so German headers do not crush the columns */
html[lang="de"] table.fees { min-width: 720px; }
html[lang="de"] .fees thead th { letter-spacing: .09em; }

/* destination cards: longer city + clinic lines */
html[lang="de"] .dest .meta  { font-size: .86rem; }
html[lang="de"] .dest .price { font-size: 1.55rem; }

/* footer contact labels run long in German */
html[lang="de"] .ft ul, html[lang="de"] .ft ol { font-size: .85rem; }

/* stepper unit label */
html[lang="de"] .step .q small { letter-spacing: .06em; }
