/* ========================================================================
   PrimeGid — showcase styles
   Premium FinTech, mobile-first (tested 320–1440 px). No external fonts/CDN.
   No color-mix(): older iOS Safari (< 16.2) drops such declarations, so all
   tints are precomputed rgba() custom properties.
   ======================================================================== */

:root {
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;

    --accent: #0a84ff;
    --accent-2: #5e5ce6;
    --accent-ink: #0a5fc4;  /* text-safe blue: >= 5.2:1 on every light surface */
    /* Starts at #0071e3 so white button text keeps >= 4.5:1 (WCAG AA). */
    --accent-grad: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    --accent-soft: rgba(10, 132, 255, 0.12);
    --accent-line: rgba(10, 132, 255, 0.4);
    --focus-ring: rgba(10, 132, 255, 0.55);

    --bg: #f5f7fb;
    --bg-elev: #ffffff;
    --bg-soft: #eef2f8;
    --surface: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.86);
    --text: #0b1221;
    --text-soft: #4a5568;
    --text-muted: #5b6678;
    --border: #e4e9f2;
    --border-soft: #eef1f6;
    --track: #dfe5ef;

    --star: #ffb400;
    --star-empty: #e4e9f2;
    --success: #1db980;
    --danger: #c8303a;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.12);
    --shadow-accent: 0 10px 30px rgba(10, 132, 255, 0.28);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --container: 1180px;
    --header-h: 64px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --bg: #0b0f17;
    --bg-elev: #121825;
    --bg-soft: #161d2c;
    --surface: #141b29;
    --header-bg: rgba(18, 24, 37, 0.86);
    --text: #f1f5fb;
    --text-soft: #b7c0d0;
    --text-muted: #8f9aac;
    --border: #232c3d;
    --border-soft: #1b2232;
    --track: #2a3346;
    --star-empty: #2b3447;
    --accent-ink: #4aa3ff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: none; transition: color 0.2s; }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }

[hidden] { display: none !important; }

.sr-only, .visually-hidden {
    /* !important: must beat element rules such as input[type="text"] { width: 100% } */
    position: absolute !important;
    width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important;
    padding: 0 !important; margin: -1px !important; border: 0 !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 820px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 16px;
    border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }

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

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
    min-height: 46px; padding: 12px 24px; border-radius: var(--radius-pill);
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
                background 0.2s, color 0.2s, border-color 0.2s;
    text-align: center; white-space: nowrap;
    touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); }
.btn-ghost {
    background: var(--bg-elev); color: var(--text); border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

@media (hover: hover) {
    a:hover { color: var(--accent-2); }
    .btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(10, 132, 255, 0.38); }
    .btn-ghost:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
}

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 12px;
}

.brand {
    display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
    font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.03em;
}
.brand:hover { color: var(--text); }
.brand-icon { width: 30px; height: 30px; fill: var(--accent); flex-shrink: 0; }
.brand-icon-check { stroke: #fff; }
.brand-accent { color: var(--accent-ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle, .nav-toggle {
    width: 44px; height: 44px; border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--bg-elev);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    color: var(--text-soft); transition: color 0.2s, border-color 0.2s; flex-shrink: 0;
    padding: 0;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun circle { fill: currentColor; stroke: currentColor; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; fill: currentColor; stroke: none; }
@media (hover: hover) {
    .theme-toggle:hover, .nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.header-cta { display: none; }

/* Mobile navigation: dropdown panel under the header (JS), or a simple
   wrapped row when JavaScript is unavailable. */
.site-nav a {
    color: var(--text-soft); font-weight: 500; font-size: 0.96rem;
}
.site-nav a:hover { color: var(--accent); }

.js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    margin: 0 12px; padding: 8px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.js .site-nav.is-open { display: flex; animation: navIn 0.2s var(--ease); }
.js .site-nav a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
.js .site-nav a:active { background: var(--bg-soft); }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .site-nav {
    order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 12px;
}

/* ---------------------------------------------------------------- Banners */
.preview-banner {
    background: #fff4d6; color: #6b4a00; border-bottom: 1px solid #f1d58a;
    font-size: 0.92rem; font-weight: 600; padding: 10px 0;
}
[data-theme="dark"] .preview-banner { background: #3a2e0b; color: #ffd98a; border-color: #5c4a14; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 36px; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 55% at 85% 0%, rgba(94, 92, 230, 0.16), transparent 70%),
        radial-gradient(55% 55% at 10% 10%, rgba(10, 132, 255, 0.14), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-content { min-width: 0; }
.hero-eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft);
    padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.hero-title { font-size: clamp(1.85rem, 7.4vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.nowrap { white-space: nowrap; }
.grad-text {
    background: var(--accent-grad); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-subtitle { font-size: clamp(1rem, 2.6vw, 1.22rem); color: var(--text-soft); max-width: 560px; margin-bottom: 24px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; font-size: 0.88rem; font-weight: 600;
    background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-soft);
    padding: 8px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
    max-width: 100%;
}
.hero-badge svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 200px; }

.hero-visual { position: relative; display: none; justify-content: center; }
.hero-card {
    width: 340px; height: 212px; border-radius: 20px; padding: 24px;
    background: linear-gradient(135deg, #1b2a4a 0%, #0a84ff 55%, #5e5ce6 100%);
    color: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
    justify-content: space-between; position: relative; overflow: hidden;
    animation: floaty 6s ease-in-out infinite;
}
.hero-card::after {
    content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); top: -120px; right: -70px;
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; }
.hero-card-bank { font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; }
.hero-card-chip { width: 44px; height: 34px; fill: rgba(255, 255, 255, 0.85); }
.hero-card-number { font-size: 1.32rem; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.hero-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.72rem; opacity: 0.9; }
.hero-card-rate { font-size: 0.86rem; font-weight: 700; background: rgba(255, 255, 255, 0.18); padding: 4px 10px; border-radius: var(--radius-pill); }
.hero-float {
    position: absolute; background: var(--bg-elev); color: var(--text); font-weight: 700;
    font-size: 0.86rem; padding: 10px 16px; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md); border: 1px solid var(--border); white-space: nowrap;
}
.hero-float-1 { top: 10px; right: 0; animation: floaty 5s ease-in-out infinite; }
.hero-float-2 { bottom: 16px; left: 0; animation: floaty 5.5s ease-in-out 0.6s infinite; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Sections */
.section { padding: 52px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-title { font-size: clamp(1.55rem, 5.2vw, 2.4rem); font-weight: 800; }
.section-lead { color: var(--text-soft); font-size: 1.02rem; margin: 0; }

/* ---------------------------------------------------------------- Calculator */
.calc-section { background: var(--bg-soft); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.calc-controls, .calc-result {
    min-width: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-md);
}
.calc-field { margin-bottom: 22px; }
.calc-field-head {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
    column-gap: 12px; margin-bottom: 4px;
}
.calc-field label { font-weight: 600; line-height: 1.35; }
.calc-field output {
    font-size: 1.15rem; font-weight: 800; color: var(--accent-ink); text-align: right;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.calc-hint { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Range: a 36 px tall hit area around a 6 px track; filled part via --fill. */
input[type="range"] {
    --fill: 0%;
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; height: 36px; margin: 0;
    background: transparent; cursor: pointer; touch-action: pan-y;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px; border-radius: var(--radius-pill);
    background: linear-gradient(to right, var(--accent) 0, var(--accent-2) var(--fill), var(--track) var(--fill), var(--track) 100%);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow-md);
    transition: transform 0.15s;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--radius-pill); background: var(--track); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--radius-pill); background: var(--accent-grad); }
input[type="range"]::-moz-range-thumb {
    width: 26px; height: 26px; border-radius: 50%; background: #fff;
    border: 2px solid var(--accent); box-shadow: var(--shadow-md);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--focus-ring); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--focus-ring); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.calc-result {
    display: flex; flex-direction: column; justify-content: center; text-align: center;
    background: var(--accent-grad); color: #fff; border: none;
}
.calc-result-label { font-size: 0.95rem; opacity: 0.92; }
.calc-result-value {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
    column-gap: 0.35em; margin: 6px 0;
    font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 800; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.calc-result-num { white-space: nowrap; }
.calc-result-period { font-size: 1.05rem; font-weight: 600; opacity: 0.9; }
.calc-result-month { font-size: 0.96rem; opacity: 0.92; margin-bottom: 14px; }
.calc-cap-note {
    font-size: 0.84rem; margin: 0 auto 14px; max-width: 420px;
    background: rgba(255, 255, 255, 0.16); border-radius: var(--radius-sm); padding: 8px 12px;
}
.calc-recommend {
    background: rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 18px 16px;
    display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.calc-recommend-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.calc-recommend strong { font-size: 1.2rem; overflow-wrap: anywhere; }
.calc-rec-bank { font-size: 0.9rem; opacity: 0.9; margin-bottom: 10px; }
.calc-recommend .btn-primary { background: #fff; color: #0a5fc4; box-shadow: none; }  /* white pill in both themes */
.calc-recommend .btn-primary:hover { color: #3f3cc4; }
.calc-disclaimer { font-size: 0.76rem; opacity: 0.85; margin: 14px 0 0; }

/* ---------------------------------------------------------------- Offers */
/* Phone: a single row that scrolls horizontally (no squashed two-row pill). */
.filter-tabs {
    display: flex; flex-wrap: nowrap; gap: 6px;
    width: max-content; max-width: 100%; margin: 0 auto 28px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    background: var(--bg-elev); border: 1px solid var(--border);
    padding: 5px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    flex: 0 0 auto; scroll-snap-align: center;
    border: none; background: transparent; color: var(--text-soft); font-family: inherit;
    font-size: 0.92rem; font-weight: 600; min-height: 40px; padding: 8px 16px;
    border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
    transition: background 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
    touch-action: manipulation;
}
.filter-tab.is-active { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); }
@media (hover: hover) { .filter-tab:not(.is-active):hover { color: var(--text); } }

.offers-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px 22px; }
.offers-grid > * { min-width: 0; }

.offer-card {
    position: relative;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px 20px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
    animation: cardIn 0.5s var(--ease) both;
}
.offer-card.has-badge { padding-top: 26px; }
.offer-card.is-hidden { display: none; }
.offer-card.is-entering { animation: cardIn 0.45s var(--ease) both; }
@media (hover: hover) {
    .offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* The badge sits on the card's top edge, so it can never squeeze the title. */
.offer-badge {
    position: absolute; top: -12px; right: 18px;
    max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.74rem; font-weight: 700; line-height: 1.2; color: #fff;
    background: var(--accent-grad); box-shadow: 0 6px 16px rgba(10, 132, 255, 0.3);
    padding: 6px 12px; border-radius: var(--radius-pill);
}

.offer-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; min-width: 0; }
.offer-logo {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: var(--accent-grad); color: #fff; font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
}
.offer-titles { flex: 1; min-width: 0; }
.offer-title { font-size: 1.14rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.offer-bank { display: block; font-size: 0.85rem; color: var(--text-muted); overflow-wrap: anywhere; }

.offer-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.star { width: 18px; height: 18px; }
.star-full { fill: var(--star); }
.star-empty { fill: var(--star-empty); }
.star-half { fill: var(--star); }
.star-half .star-outline { stroke: var(--star); stroke-width: 1; }
.offer-rating-num { font-weight: 700; font-size: 0.95rem; }

.offer-params { margin-bottom: 18px; flex: 1; }
.offer-params li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem;
}
.offer-params li:last-child { border-bottom: none; }
.offer-param-key { color: var(--text-muted); flex-shrink: 0; }
.offer-param-val { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.offer-cta { margin-top: auto; width: 100%; }

.offers-empty, .offers-note { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 30px 10px; margin: 0; }

/* ---------------------------------------------------------------- Expertise */
.expertise-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.expertise-card {
    min-width: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
@media (hover: hover) { .expertise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.expertise-icon {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
    background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.expertise-icon svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; }
.expertise-card h3 { font-size: 1.12rem; }
.expertise-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.faq-item.is-open { border-color: var(--accent-line); }
.faq-heading { margin: 0; font-size: inherit; letter-spacing: normal; }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: transparent; border: none; cursor: pointer; font-family: inherit;
    font-size: 1.02rem; font-weight: 600; color: var(--text); text-align: left;
    padding: 18px 20px; min-height: 56px; touch-action: manipulation;
}
.faq-chevron { width: 22px; height: 22px; stroke: var(--text-muted); fill: none; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); stroke: var(--accent); }
.js .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { color: var(--text-soft); padding: 0 20px 18px; margin: 0; font-size: 0.96rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding: 44px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-soft); }
.footer-tagline { color: var(--text-soft); font-size: 0.92rem; margin: 12px 0; }
.badge-18 { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 26px; border: 1.5px solid var(--text-muted); color: var(--text-muted); border-radius: 7px; font-weight: 800; font-size: 0.8rem; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col a { display: inline-block; padding: 4px 0; color: var(--text-soft); font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { padding-top: 22px; }
.footer-text { color: var(--text-muted); font-size: 0.82rem; margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; margin: 0; }

/* ---------------------------------------------------------------- Legal & error pages */
.legal-section { padding: 40px 0 64px; }
.breadcrumb { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 18px; }
.legal-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }
.legal-body h2 { font-size: 1.22rem; margin-top: 32px; }
.legal-body p, .legal-body li { color: var(--text-soft); }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-operator-text { white-space: pre-line; }
/* Links inside running text must not rely on colour alone (WCAG 1.4.1). */
.legal-body a, .breadcrumb a, .error-text a {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

.error-section { padding: 64px 0 80px; }
.error-box { text-align: center; }
.error-code {
    font-size: clamp(4rem, 22vw, 8rem); font-weight: 800; line-height: 1; margin: 0 0 8px;
    background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.error-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.error-text { color: var(--text-soft); max-width: 520px; margin: 0 auto 26px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------------------------------------------------------- Maintenance */
.maintenance-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; }
.maintenance { text-align: center; padding: 40px 24px; max-width: 460px; }
.maintenance-icon { width: 72px; height: 72px; fill: var(--accent); margin-bottom: 20px; }
.maintenance h1 { font-size: 2rem; }
.maintenance-text { color: var(--text-soft); margin-bottom: 24px; white-space: pre-line; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 479px) {
    .filter-tabs { gap: 4px; padding: 4px; }
    .filter-tab { font-size: 0.88rem; padding: 8px 13px; }
}
@media (max-width: 359px) {
    .container { padding: 0 14px; }
    .brand { font-size: 1.08rem; gap: 8px; }
    .brand-icon { width: 26px; height: 26px; }
    .offer-card { padding-left: 16px; padding-right: 16px; }
    .offer-params li { flex-direction: column; gap: 2px; }
    .offer-param-val { text-align: left; }
    .calc-controls, .calc-result { padding: 20px 16px; }
}
@media (min-width: 560px) {
    .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .hero-cta .btn { flex: 0 0 auto; }
}
@media (min-width: 640px) {
    .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-controls, .calc-result { padding: 28px; }
}
@media (min-width: 820px) {
    .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 900px) {
    :root { --header-h: 68px; }
    .js .site-nav, .site-nav {
        display: flex; position: static; flex-direction: row; gap: 26px;
        margin: 0; padding: 0; background: none; border: 0; box-shadow: none;
        animation: none; width: auto; order: 0;
    }
    .js .site-nav a { padding: 0; border-radius: 0; font-size: 0.96rem; }
    .nav-toggle { display: none; }
    .header-cta { display: inline-flex; }
    .hero { padding: 80px 0 60px; }
    .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
    .hero-visual { display: flex; }
    .expertise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .section { padding: 72px 0; }
}
@media (min-width: 1000px) {
    .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media print {
    .site-header, .site-footer, .filter-tabs, .calc-section, .offer-cta { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .js .faq-a { max-height: none !important; }
}
