/* ==========================================================================
   MTR Sprachendienst — site styles
   Brand colours from the client: #A52B2A (primary) and #732F2E (deep).
   Shape rule: buttons 10px, cards 16px, chips full pill.
   ========================================================================== */

:root {
    --brand: #a52b2a;
    --brand-deep: #732f2e;
    --brand-ink: #a52b2a;            /* brand red used as text */
    --brand-soft: #f8eceb;           /* tinted surface */
    --brand-line: #ecd3d2;

    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f4f4f5;
    --ink: #18181b;
    --ink-2: #3f3f46;
    --muted: #63636c;
    --line: #e4e4e7;

    --shadow: 0 1px 2px rgb(115 47 46 / .05), 0 12px 32px -12px rgb(115 47 46 / .14);
    --shadow-lg: 0 2px 4px rgb(115 47 46 / .06), 0 28px 60px -24px rgb(115 47 46 / .28);

    --r-btn: 10px;
    --r-card: 16px;
    --wrap: 1200px;
    --header-h: 76px;

    --font: "Onest", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);

    --z-header: 50;
    --z-bar: 60;
    --z-skip: 100;

    color-scheme: light;
}

:root[data-theme="dark"] {
        --brand-ink: #e8827f;
        --brand-soft: #2a1716;
        --brand-line: #4a2726;

        --bg: #0e0e10;
        --surface: #17171a;
        --surface-2: #1f1f23;
        --ink: #f4f4f5;
        --ink-2: #d4d4d8;
        --muted: #a1a1aa;
        --line: #2a2a2f;

        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
        --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 28px 60px -24px rgb(0 0 0 / .7);

        color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
            --brand-ink: #e8827f;
            --brand-soft: #2a1716;
            --brand-line: #4a2726;
    
            --bg: #0e0e10;
            --surface: #17171a;
            --surface-2: #1f1f23;
            --ink: #f4f4f5;
            --ink-2: #d4d4d8;
            --muted: #a1a1aa;
            --line: #2a2a2f;
    
            --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
            --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 28px 60px -24px rgb(0 0 0 / .7);
    
            color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
:root[data-theme="dark"] a:hover { color: #f3a5a2; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) a:hover { color: #f3a5a2; }
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.022em;
    margin: 0 0 .6em;
    text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
    padding: 10px 16px; border-radius: var(--r-btn);
    background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
    transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
#main:focus { outline: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* light/dark logo swap */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .only-dark { display: block !important; }
    :root:not([data-theme]) .only-light { display: none !important; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: 0 22px;
    border-radius: var(--r-btn); border: 1px solid transparent;
    font: 600 1rem/1 var(--font); letter-spacing: -0.005em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn i { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(3px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgb(165 43 42 / .7); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }

.btn-outline { border-color: var(--brand-line); color: var(--brand-ink); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-ink); }

.btn-quiet { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #fbeeee; color: var(--brand-deep); }
.btn-ghost-light { border-color: rgb(255 255 255 / .4); color: #fff; }
.btn-ghost-light:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

.text-link {
    display: inline-flex; align-items: center; gap: .35em;
    font-weight: 600; text-decoration: none; color: var(--brand-ink);
}
.text-link i { transition: transform .25s var(--ease); }
.text-link:hover i { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-nav .theme-toggle-row { display: none; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: auto; height: 44px; }
.brand-name { font-weight: 650; font-size: 1.125rem; line-height: 1; color: var(--brand-ink); letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 8px; padding: 0; }
.nav-list a {
    display: block; padding: 8px 12px; white-space: nowrap; border-radius: 8px;
    color: var(--ink-2); font-weight: 500; font-size: .96rem; text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }

.lang-menu { position: relative; }
.lang-menu summary {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; list-style: none; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface);
    font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--ink);
    transition: border-color .2s var(--ease);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--ink); }
.lang-menu summary i { font-size: .85rem; color: var(--muted); transition: transform .2s var(--ease); }
.lang-menu[open] summary i { transform: rotate(180deg); }
.lang-menu img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.lang-menu-list {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; min-width: 180px;
    margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu-list a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
    color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.lang-menu-list a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu-list a[aria-current="true"] { color: var(--brand-ink); }
.lang-menu-list i { margin-left: auto; }

.theme-toggle {
    display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-btn);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.2rem;
    transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle .ph-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ph-moon { display: none; }

.nav-toggle {
    display: none; margin-left: auto; width: 46px; height: 46px; border-radius: var(--r-btn);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
    font-size: 1.4rem; align-items: center; justify-content: center;
}

@media (max-width: 1140px) {
    .nav-toggle { display: inline-flex; margin-left: 0; }
    .header-actions { margin-left: auto; }
    .header-actions .header-cta, .header-actions > .theme-toggle { display: none; }
    .lang-menu summary { height: 46px; }
    .site-nav .theme-toggle-row {
        display: flex; align-items: center; gap: 10px; width: 100%; height: auto; padding: 12px 14px;
        border-radius: var(--r-btn); font: 500 1.05rem/1.2 var(--font); justify-items: start;
    }
    .theme-toggle-row .ph-sun { display: none; }
    :root[data-theme="dark"] .theme-toggle-row .ph-sun { display: inline; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; margin: 0; }
    .nav-list a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- shared section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 10vw, 124px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem); }
.section-title-sm { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); }
.section-lead { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.prose-lg { font-size: 1.15rem; max-width: 62ch; }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
    background:
        radial-gradient(900px 480px at 92% -10%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
        radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: .875rem; font-weight: 500; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); max-width: 56ch; color: var(--ink-2); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .95rem; color: var(--muted); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--brand-ink); font-size: 1.15rem; }
.hero-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hero-meta a:hover { color: var(--brand-ink); }

/* language panel */
.hero-panel {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 460px; padding: 28px; border-radius: 24px; color: #fff;
    background:
        radial-gradient(120% 80% at 100% 0%, #c0423f 0%, transparent 60%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: var(--shadow-lg);
}
.hero-panel::after { /* grain */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-panel-top img { width: 96px; height: auto; }
.hero-panel-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; padding-top: 6px; }

.lang-rail {
    position: relative; height: 230px; overflow: hidden; margin: 18px 0;
    -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.lang-rail-track {
    list-style: none; margin: 0; padding: 0;
    animation: rail 60s linear infinite;
}
.lang-rail-track li {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.45;
    color: rgb(255 255 255 / .92);
}
.lang-rail-track li:nth-child(3n+2) { color: rgb(255 255 255 / .45); }
.lang-rail-track li:nth-child(3n) { color: rgb(255 255 255 / .7); }
@keyframes rail { to { transform: translateY(-50%); } }

.hero-panel-foot { display: flex; gap: 8px; }
.hero-panel-foot span {
    padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35);
    font-size: .8rem; font-weight: 600; letter-spacing: .08em;
}

/* pillars under hero */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.pillar {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
    padding: 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
}
.pillar-icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand-ink); font-size: 1.5rem;
}
.pillar h2 { font-size: 1.2rem; margin-bottom: .45em; }
.pillar p { color: var(--muted); font-size: 1rem; margin-bottom: .8em; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-panel { min-height: 0; }
    .lang-rail { height: 150px; }
    .pillars { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- features (numbered rows) ---------- */
.features { padding-top: clamp(24px, 4vw, 48px); }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature {
    display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: baseline;
    padding: 30px 0; border-bottom: 1px solid var(--line);
}
.feature-num { font-size: .9rem; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.feature-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin: 0; }
.feature-title strong { color: inherit; font-weight: inherit; }
.feature p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) {
    .feature { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
}

/* ---------- about + stats ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy .btn { margin-top: 12px; }

.stats {
    display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 20px; overflow: hidden;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff;
    box-shadow: var(--shadow-lg);
}
.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon num" "icon label"; column-gap: 20px; padding: 26px 30px; }
.stat + .stat { border-top: 1px solid rgb(255 255 255 / .16); }
.stat i { grid-area: icon; font-size: 1.6rem; opacity: .75; padding-top: 10px; }
.stat-num { grid-area: num; margin: 0; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.25rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: .55em; margin-left: 6px; opacity: .85; vertical-align: .35em; }
.stat-label { grid-area: label; margin: 6px 0 0; font-weight: 500; opacity: .85; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services ---------- */
.service-rows { display: grid; gap: 16px; }
.service-row {
    display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr); gap: 32px;
    padding: 32px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-row:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.service-row-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.service-row-head h3 { font-size: 1.6rem; margin: 4px 0 0; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.6rem; }
.service-row-head .text-link { margin-top: auto; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; align-content: start; }
.check-list li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); font-weight: 500; }
.check-list i { color: var(--brand-ink); flex-shrink: 0; transform: translateY(2px); }
.check-list-lg { grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: 1.1rem; }
@media (max-width: 760px) {
    .service-row { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 20px; }
    .check-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- prices ---------- */
.prices { background: var(--brand-soft); }
.prices-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prices-head { position: sticky; top: calc(var(--header-h) + 32px); }
.prices-head .btn { margin-top: 8px; }
.prices-body { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--brand-line); }
@media (max-width: 900px) {
    .prices-grid { grid-template-columns: minmax(0, 1fr); }
    .prices-head { position: static; }
}

/* ---------- prose (rich text from the data files) ---------- */
.prose { max-width: 70ch; }
.prose strong:first-child { display: inline-block; }
.prose-page { font-size: 1.0625rem; }
.prose-page > p:first-child > strong:first-child,
.prose-page > strong:first-child { font-size: 1.25rem; }

/* ---------- testimonials ---------- */
.quote-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.quote {
    margin: 0; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
}
.quote:nth-child(2) { margin-top: 32px; }
.quote:nth-child(3) { margin-top: 64px; }
.quote-mark { font-size: 2rem; color: var(--brand-ink); }
.quote blockquote { margin: 10px 0 20px; }
.quote blockquote p { color: var(--ink); font-size: 1.04rem; margin: 0; }
.quote figcaption { display: flex; flex-direction: column; font-size: .95rem; padding-top: 16px; border-top: 1px solid var(--line); }
.quote figcaption span { color: var(--muted); }
@media (max-width: 900px) {
    .quote-wall { grid-template-columns: minmax(0, 1fr); }
    .quote:nth-child(n) { margin-top: 0; }
}

/* ---------- contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info h3, .contact-form-card h3 { font-size: 1.35rem; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--brand-ink); text-decoration: underline; }
.contact-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.25rem; }

.partner-badge {
    display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px;
    border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg);
    color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.partner-badge:hover { border-color: var(--brand-line); box-shadow: var(--shadow); color: var(--ink); }
.partner-badge img { width: 56px; height: auto; border-radius: 8px; background: #fff; padding: 4px; }
.partner-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.partner-badge i { color: var(--brand-ink); }

.contact-form-card { padding: clamp(24px, 4vw, 36px); border-radius: 20px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field span { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 13px 14px; border-radius: var(--r-btn);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: 400 1rem/1.5 var(--font);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c2410c; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.is-ok { color: #15803d; }
.form-status.is-error { color: #c2410c; }
:root[data-theme="dark"] .form-status.is-ok { color: #4ade80; }
:root[data-theme="dark"] .form-status.is-error, :root[data-theme="dark"] .field.is-invalid input, :root[data-theme="dark"] .field.is-invalid textarea { color: #fb923c; border-color: #fb923c; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .form-status.is-ok { color: #4ade80; }
    :root:not([data-theme]) .form-status.is-error, :root:not([data-theme]) .field.is-invalid input, :root:not([data-theme]) .field.is-invalid textarea { color: #fb923c; border-color: #fb923c; }
}
#contactForm.is-sending { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
.page-head {
    padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 56px);
    background: radial-gradient(800px 360px at 90% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 70%);
    border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; margin-bottom: .3em; max-width: 22ch; }
.page-head .lead { font-size: 1.15rem; max-width: 62ch; color: var(--ink-2); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs i { font-size: .8rem; }

.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-card {
    padding: 30px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card-num { display: block; margin-bottom: 18px; font-size: .85rem; font-weight: 600; color: var(--brand-ink); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.service-card h2 { font-size: 1.3rem; }
.service-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .service-cards { grid-template-columns: minmax(0, 1fr); } }

.languages-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.lang-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chips a {
    display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); font-weight: 500; text-decoration: none;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.lang-chips a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 900px) { .languages-grid { grid-template-columns: minmax(0, 1fr); } }

.career-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.career-col { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 760px) { .career-grid { grid-template-columns: minmax(0, 1fr); } }

.not-found { text-align: left; }
.not-found-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--brand-ink); margin-bottom: 16px; }
.not-found .lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }

/* ---------- guides ---------- */
.section-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.section-head-split .section-title { margin: 0; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.guide-card {
    display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-card);
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.guide-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink-2); }
.guide-card h2, .guide-card h3 { font-size: 1.25rem; margin: 0; }
.guide-card p { margin: 0; color: var(--muted); }
.guide-card .text-link { margin-top: auto; padding-top: 8px; }
.guide-card:hover .text-link i { transform: translateX(3px); }
.guide-card-meta { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }

.guide-head h1 { max-width: 28ch; }
.guide-head .lead { max-width: 68ch; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; font-size: .92rem; color: var(--muted); }
.guide-meta span { display: inline-flex; align-items: center; gap: 7px; }
.guide-meta i { color: var(--brand-ink); }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; align-items: start; }
.guide-body { max-width: 72ch; }
.summary-box {
    padding: 24px 28px; margin-bottom: 40px; border-radius: var(--r-card);
    background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.summary-box h2 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.summary-box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--ink); }

.guide-section { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 24px); }
.guide-section h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.75rem); }
.guide-section ul, .guide-section ol { padding-left: 1.2em; display: grid; gap: 8px; }
.guide-section ul.checklist { list-style: none; padding: 0; }
.guide-section ul.checklist li { position: relative; padding-left: 30px; }
.guide-section ul.checklist li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a52b2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
    border: 1px solid var(--brand-line);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.table-wrap tbody th { color: var(--ink); font-weight: 600; }
.table-wrap tr:last-child td, .table-wrap tr:last-child th { border-bottom: 0; }

.guide-faq details { border-bottom: 1px solid var(--line); }
.guide-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
    cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary i { color: var(--brand-ink); transition: transform .25s var(--ease); flex-shrink: 0; }
.guide-faq details[open] summary i { transform: rotate(45deg); }
.guide-faq details p { margin: 0 0 18px; color: var(--ink-2); }

.guide-sources ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.guide-sources li::before { content: "\2197"; margin-right: 8px; color: var(--brand-ink); }
.guide-disclaimer { display: flex; gap: 10px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .92rem; }
.guide-disclaimer i { color: var(--brand-ink); font-size: 1.15rem; flex-shrink: 0; padding-top: 2px; }

.guide-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.toc a { padding: 6px 0; color: var(--muted); font-size: .93rem; text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--brand-ink); }
.aside-cta { display: grid; gap: 10px; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.aside-cta p { margin: 0 0 4px; }

.related { padding-top: 0; }
@media (max-width: 960px) {
    .guide-layout { grid-template-columns: minmax(0, 1fr); }
    .guide-aside { position: static; }
    .toc { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(64px, 9vw, 112px); }
.cta-band-inner {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center;
    padding: clamp(28px, 5vw, 52px); border-radius: 24px; color: #fff;
    background: radial-gradient(100% 120% at 100% 0%, #c0423f 0%, transparent 55%), linear-gradient(150deg, var(--brand), var(--brand-deep));
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.cta-band p { margin: 0; color: rgb(255 255 255 / .85); max-width: 56ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 18px 0; }
.footer-title { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.social { display: flex; gap: 8px; }
.social a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--line); color: var(--ink); font-size: 1.25rem; text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); text-align: left; font-weight: 500; }
.hours th { color: var(--ink-2); font-weight: 500; }
.hours td { text-align: right; color: var(--ink); }
.hours .is-closed td, .hours .is-closed th { color: var(--muted); }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.footer-contact i { color: var(--brand-ink); font-size: 1.15rem; padding-top: 3px; }
.footer-contact a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--brand-ink); text-decoration: underline; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: var(--ink-2); text-decoration: none; }
.legal-links a:hover { color: var(--brand-ink); text-decoration: underline; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- mobile action bar ---------- */
.mobile-actions { display: none; }
.mobile-actions .label-long { display: none; }
@media (max-width: 1140px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .mobile-actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 90%, transparent);
        -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
    }
    .mobile-actions a {
        display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 8px;
        border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface);
        color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
    }
    .mobile-actions a i { font-size: 1.15rem; color: var(--brand-ink); }
    .mobile-actions a.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
    .mobile-actions a.is-primary i { color: #fff; }
}

/* ---------- cinematic intro ---------- */
.intro-screen { display: none; }
.intro .intro-screen {
    position: fixed; inset: 0; z-index: calc(var(--z-skip) + 10);
    display: grid; place-items: center; color: #fff;
    background:
        radial-gradient(70% 60% at 50% 40%, #b8403d 0%, transparent 70%),
        linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
    animation: intro-out .8s cubic-bezier(.76, 0, .24, 1) 1.35s forwards;
}
.intro .intro-screen::after {
    content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.intro-mark { display: grid; justify-items: center; gap: 18px; }
.intro-mark img {
    width: clamp(120px, 18vw, 180px); height: auto;
    animation: intro-mark 1.1s var(--ease) both;
}
.intro-line {
    width: 140px; height: 1px; background: rgb(255 255 255 / .6);
    transform-origin: left; animation: intro-line .8s var(--ease) .35s both;
}
.intro-word {
    font-size: .8rem; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em;
    animation: intro-word .9s var(--ease) .55s both;
}
@keyframes intro-mark { from { opacity: 0; transform: scale(1.12); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-word { from { opacity: 0; letter-spacing: .9em; } to { opacity: .85; letter-spacing: .5em; } }
@keyframes intro-out {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
}

/* page content rises in as the curtain lifts */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.intro .site-header { animation: rise .8s var(--ease) 1.55s both; }
.intro .hero-copy > *,
.intro .page-head .wrap > * { animation: rise .9s var(--ease) both; }
.intro .hero-copy > :nth-child(1), .intro .page-head .wrap > :nth-child(1) { animation-delay: 1.6s; }
.intro .hero-copy > :nth-child(2), .intro .page-head .wrap > :nth-child(2) { animation-delay: 1.72s; }
.intro .hero-copy > :nth-child(3), .intro .page-head .wrap > :nth-child(3) { animation-delay: 1.84s; }
.intro .hero-copy > :nth-child(4) { animation-delay: 1.96s; }
.intro .hero-panel { animation: panel-in 1.1s var(--ease) 1.7s both; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .lang-rail-track { animation: none; }
    .intro .intro-screen { display: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 600px) {
    .pillar { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
}

@media (max-width: 600px) {
    .guide-head .crumbs span[aria-current] { display: none; }
    .guide-head .crumbs i:last-of-type { display: none; }
}

@media (min-width: 560px) and (max-width: 1140px) {
    .mobile-actions { max-width: 720px; margin: 0 auto; border-radius: 16px 16px 0 0; }
    .mobile-actions .label-short { display: none; }
    .mobile-actions .label-long { display: inline; }
}
