/* ABC Translation Switzerland — site.css
   Palette: chancery teal, Swiss seal red, ink, cool paper. Type: system transitional serif for headings, system sans for text. */
:root {
  --ink: #172230;
  --ink-2: #33414f;
  --muted: #56636b;
  --teal: #0e4f4f;
  --teal-2: #136463;
  --teal-soft: #e5eeec;
  --seal: #c8102e;
  --seal-dark: #a10c24;
  --paper: #f6f7f4;
  --white: #ffffff;
  --rule: #d6ddda;
  --rule-2: #c2ccc9;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 6px;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);
}
.lang-ar { --serif: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, serif; --sans: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
.lang-zh { --serif: "Songti SC", "Noto Serif SC", "SimSun", serif; --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.lang-uk, .lang-ru { --serif: Charter, "Sitka Text", Cambria, Georgia, "Noto Serif", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.62 var(--sans); text-rendering: optimizeLegibility; }
.lang-zh body, body.lang-zh { line-height: 1.8; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--seal); }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: var(--step-4); letter-spacing: -.015em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.hp { position: absolute !important; inset-inline-start: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .72em 1.2em; border-radius: var(--r); border: 1.5px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--lg { padding: .9em 1.45em; font-size: 1.05rem; }
.btn--seal { background: var(--seal); color: #fff; }
.btn--seal:hover { background: var(--seal-dark); color: #fff; }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* top bar */
.topbar { background: var(--teal); color: #e6efed; font-size: .9rem; }
.topbar__in { display: flex; align-items: center; gap: 1.4rem; min-height: 40px; }
.topbar__item { color: inherit; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.topbar__item:hover { color: #fff; text-decoration: underline; }
.langs { margin-inline-start: auto; position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; gap: .45em; align-items: center; padding: 6px 4px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.langs__list { position: absolute; inset-inline-end: 0; top: 100%; z-index: 50; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 12px 30px -12px rgba(23,34,48,.35); display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px; }
.langs__list a { display: block; padding: 7px 10px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.langs__list a:hover, .langs__list a[aria-current] { background: var(--teal-soft); color: var(--teal); }
.langs__list a[aria-current] { font-weight: 700; }
@media (max-width: 640px) { .topbar__item span { display: none; } .topbar__in { gap: .8rem; } }

/* header */
.header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { white-space: nowrap; font: 700 1.28rem/1.05 var(--serif); letter-spacing: -.01em; display: flex; flex-direction: column; }
.brand__name small { font: 500 .78rem/1.3 var(--sans); color: var(--teal); letter-spacing: .02em; margin-top: 3px; }
.brand--light { color: #fff; } .brand--light .brand__name small { color: #9fc4bf; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .5rem .6rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 4px; }
.nav a:hover { color: var(--teal); background: var(--teal-soft); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--seal); border-radius: 0; }
.nav .nav__cta a { color: #fff; margin-inline-start: .5rem; }
.nav .nav__cta a:hover { background: var(--seal-dark); color: #fff; }
.navtoggle { display: none; margin-inline-start: auto; background: none; border: 1.5px solid var(--rule-2); border-radius: var(--r); padding: .5rem .9rem; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 1240px) {
  .js .navtoggle { display: inline-block; }
  .js .nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 20px 30px -20px rgba(23,34,48,.4); }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gut) 1rem; gap: 0; }
  .nav a { padding: .85rem .3rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--seal); padding-inline-start: .8rem; }
  .nav .nav__cta a { margin: 1rem 0 0; text-align: center; justify-content: center; border-bottom: 0; }
  .no-js .header__in { flex-wrap: wrap; }
  .no-js .nav { width: 100%; }
}

/* breadcrumbs */
.crumbs { padding-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline: .35rem; color: var(--rule-2); }
.crumbs a { color: var(--muted); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--rule); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero h1 { max-width: 20ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.hero__note { display: flex; gap: .5em; align-items: center; color: var(--muted); font-size: .95rem; margin: 0; }
.hero__note .ico { color: var(--teal); }
.hero__art { justify-self: center; width: min(100%, 440px); }
.hero__art img { display: block; width: 100%; height: auto; animation: seal-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes seal-in { from { opacity: 0; transform: rotate(-24deg) scale(.92); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { position: absolute; inset-inline-end: -110px; top: -40px; width: 300px; opacity: .22; z-index: 0; pointer-events: none; }
  .hero__text { position: relative; z-index: 1; }
}

/* sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--flush { padding-top: .5rem; }
.section--tint { background: var(--teal-soft); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }

/* ledger (services list) */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-top: 2px solid var(--ink); }
.ledger__row { display: flex; gap: 1.1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule-2); position: relative; }
.ledger__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.ledger__icon .ico { width: 24px; height: 24px; }
.ledger__name { font-size: 1.22rem; margin: .1rem 0 .3rem; }
.ledger__name a { color: var(--ink); text-decoration: none; }
.ledger__name a::after { content: ""; position: absolute; inset: 0; }
.ledger__row:hover .ledger__name a { color: var(--seal); }
.ledger__row:hover .ledger__icon { background: var(--teal); color: #fff; }
.ledger__body p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }

/* steps — real sequence */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps__item { counter-increment: step; border-top: 2px solid var(--teal); padding-top: 1rem; }
.steps__item::before { content: counter(step); font: 700 2.4rem/1 var(--serif); color: var(--seal); display: block; margin-bottom: .6rem; }
.steps__item h3 { margin-bottom: .35rem; }
.steps__item p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.pillars--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillars__item { padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--seal); }
.pillars__item p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .pillars, .pillars--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pillars, .pillars--3 { grid-template-columns: 1fr; } }

/* canton grid */
.cantons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.cantons a { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.cantons abbr { text-decoration: none; font: 700 .85rem/1 var(--sans); letter-spacing: .04em; color: #fff; background: var(--teal); border-radius: 3px; padding: .38rem .4rem; min-width: 2.4rem; text-align: center; }
.cantons a:hover { border-color: var(--teal); color: var(--teal); }
.cantons a:hover abbr, .cantons a[aria-current] abbr { background: var(--seal); }

/* tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .95rem; }
.tags a:hover { border-color: var(--teal); color: var(--teal); }
.tags small { color: var(--muted); font-size: .75rem; margin-inline-start: .25rem; }

/* language grid */
.langgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); border-top: 2px solid var(--ink); }
.langgrid a { display: flex; align-items: baseline; gap: .8rem; padding: .9rem .2rem; border-bottom: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; font: 600 1.1rem var(--serif); }
.langgrid a:hover { color: var(--seal); }
.langgrid__code { font: 600 .78rem var(--sans); color: var(--teal); min-width: 1.8rem; }

/* page head */
.pagehead { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem); }
.pagehead h1 { max-width: 24ch; }
.pagehead--icon { display: flex; flex-direction: column; gap: 1rem; }
.pagehead__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--seal); color: #fff; }
.pagehead__icon .ico { width: 32px; height: 32px; }
.pagehead--place { display: flex; gap: 1.5rem; align-items: flex-start; }
.placecode { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font: 700 1.45rem/1 var(--sans); letter-spacing: .04em; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--teal); margin-top: .3rem; }
.placecode--lang { background: var(--seal); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--seal); text-transform: lowercase; }
@media (max-width: 600px) { .pagehead--place { flex-direction: column; gap: 1rem; } .placecode { width: 58px; height: 58px; font-size: 1.15rem; } }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1rem 0 0; }
.facts div { border-inline-start: 2px solid var(--seal); padding-inline-start: .7rem; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* article layout */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 2rem; }
@media (max-width: 920px) { .article { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose--narrow { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose p { color: var(--ink-2); }
.prose .lead { color: var(--ink); }
.checks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .ico { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: .15em; }
.article__side { position: sticky; top: 96px; display: grid; gap: 1.5rem; }
@media (max-width: 920px) { .article__side { position: static; } }
.sidecard { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--seal); border-radius: var(--r); padding: 1.5rem; }
.sidecard h2 { font-size: 1.35rem; }
.sidecard p { color: var(--ink-2); font-size: .98rem; }
.sidecard .btn { width: 100%; justify-content: center; }
.sidecard__alt { margin: 1rem 0 0; font-size: .95rem; }
.sidelist h2 { font-size: 1.05rem; font-family: var(--sans); color: var(--muted); font-weight: 600; margin-bottom: .4rem; }
.sidelist ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.sidelist a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.sidelist a:hover { color: var(--seal); }

/* faq */
.faq { padding-block: 2rem; }
.faq__list { border-top: 2px solid var(--ink); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--rule-2); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font: 600 1.12rem/1.35 var(--serif); }
[dir="rtl"] .faq__item summary { padding: 1.1rem 0 1.1rem 2.5rem; }
.faq__item summary h2 { font-size: inherit; margin: 0; display: inline; font-family: inherit; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; inset-inline-end: .3rem; top: .9rem; font: 400 1.6rem/1 var(--sans); color: var(--seal); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 70ch; }
.faq__list--page { margin-bottom: 3rem; }

/* quote section */
.quote { background: var(--teal); color: #e8f0ee; padding-block: clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset-inline-end: -180px; bottom: -180px; width: 520px; height: 520px; background: url(/assets/img/rosette.svg) center/contain no-repeat; opacity: .08; filter: brightness(4); pointer-events: none; }
.quote__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); position: relative; }
@media (max-width: 920px) { .quote__in { grid-template-columns: 1fr; } }
.quote h2 { color: #fff; }
.quote__note { font-size: .95rem; color: #b9d3cf; border-inline-start: 3px solid var(--seal); padding-inline-start: .8rem; }
.quote__direct { margin: 1.6rem 0 .6rem; font-weight: 600; color: #fff; }
.quote__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.quote__links a { display: inline-flex; gap: .6rem; align-items: center; color: #fff; text-decoration: none; font-weight: 600; }
.quote__links a:hover { text-decoration: underline; color: #fff; }
.quote__links--dark a { color: var(--teal); }
.quote__links--dark a:hover { color: var(--seal); }
.quote__form { background: var(--white); color: var(--ink); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }

/* form */
.qform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
@media (max-width: 560px) { .qform__grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; }
.req { color: var(--seal); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule-2); border-radius: var(--r); padding: .68rem .75rem; min-height: 46px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(14,79,79,.18); }
.field input[type="file"] { padding: .55rem; background: #fff; border-style: dashed; }
.field small { color: var(--muted); font-size: .85rem; }
.field--check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; accent-color: var(--teal); flex: none; }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--seal); }
.qform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.qform__status { margin: 0; font-weight: 600; flex: 1 1 240px; }
.qform__status.is-error { color: var(--seal); }
.qform.is-sent .qform__grid, .qform.is-sent .qform__foot .btn { display: none; }
.qform__done { padding: 1rem 0; }
.qform__done h3 { color: var(--teal); }

/* contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); padding-bottom: 4rem; align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
.contact__form { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--seal); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2rem); }
.contact__side h2 { font-size: 1.3rem; margin-top: 1.5rem; }
.contact__side h2:first-child { margin-top: 0; }
.contact__addr { margin-top: 1rem; }

/* thanks / 404 */
.thanks { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.thanks .lead { margin-inline: auto; }
.thanks h1 { margin-inline: auto; }
.thanks__seal { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--seal); color: #fff; margin-bottom: 1.2rem; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--seal); }
.thanks__seal .ico { width: 40px; height: 40px; }
.bigcode { font: 700 clamp(4rem, 12vw, 8rem)/1 var(--serif); color: var(--teal); margin: 0 0 .5rem; }

.legaltext { padding-bottom: 4rem; }

/* footer */
.footer { background: var(--ink); color: #c5cdd3; font-size: .95rem; padding-top: 3.5rem; padding-bottom: 5rem; }
.footer a { color: #e6ebee; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: 1rem; max-width: 36ch; }
.footer__h { font: 600 .95rem var(--sans); color: #fff; margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer__base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #33414f; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .85rem; }
.footer__base p { margin: 0; }
.footer .footer__langs { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }

/* mobile quick bar */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar { display: grid; grid-template-columns: auto auto 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -12px rgba(23,34,48,.35); padding: 8px; gap: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem .9rem; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--teal); border: 1.5px solid var(--teal); }
  .quickbar .quickbar__main { background: var(--seal); border-color: var(--seal); color: #fff; }
  .quickbar a:not(.quickbar__main) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body { padding-bottom: 70px; }
}

/* RTL tweaks */
[dir="rtl"] .ico[viewBox] { transform: none; }
[dir="rtl"] .crumbs li + li::before { content: "\\"; }

@media print { .topbar, .header, .quickbar, .quote, .footer { display: none; } body { background: #fff; } }
