body {
    --lime: #B0CB21;
    --red: #E22027;
    --page: #f3f5f8;
    --paper: #fff;
    --ink: #17263e;
    --muted: #51637a;
    --line: #dce3ee;
    --tint: #edf2f8;
    --rail: #112341;
    --rail-muted: #c8d3e7;
    --rail-line: #ffffff32;
    --buy: #456000;
    --sell: #b81222;
    --radius: 18px;
    margin: 0;
    font: 16px/1.45 "Segoe UI", Arial, sans-serif;
}
:root[data-theme=dark] body {
    --page: #101310;
    --paper: #191e1a;
    --ink: #f3f6ed;
    --muted: #bcc6bb;
    --line: #394339;
    --tint: #222a23;
    --rail: #171b17;
    --rail-muted: #c2ccbe;
    --rail-line: #465143;
    --buy: #B0CB21;
    --sell: #ff8185;
    --radius: 14px;
}
html { color-scheme: light; background: #f3f5f8; }
body { background: var(--page); color: var(--ink); }
:root[data-theme=dark] { color-scheme: dark; background: #101310; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #2d91be;
    outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.wrap { width: min(1480px, calc(100% - 112px)); margin-inline: auto; }
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
:root[data-theme=dark] .mast { background: #121712; }
.mast-layout { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { flex: none; }
.brand img { width: 156px; height: auto; }
.mast-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2.3vw, 34px); font-weight: 650; color: var(--muted); }
.mast-nav a { padding-block: 6px; border-bottom: 3px solid transparent; }
.mast-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
:root[data-theme=dark] .mast-nav a[aria-current] { color: var(--lime); }
.mast-tools { display: flex; align-items: center; gap: 10px; }
.action { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--lime); color: #1a2308; font-weight: 750; white-space: nowrap; }
.action:hover { background: #bed63d; }
.language-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    min-width: 60px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
}
.language-control::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.language-control select { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; }
.language-control:focus-within { outline: 3px solid #2d91be; outline-offset: 3px; }
.theme-picker { position: relative; flex: none; margin: 0; z-index: 40; font-size: 14px; line-height: 1.4; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); cursor: pointer; list-style: none; }
.theme-toggle::-webkit-details-marker { display: none; }
.theme-toggle:hover, .theme-picker[open] .theme-toggle { color: var(--ink); background: var(--tint); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-moon, :root[data-theme=dark] .theme-sun { display: none; }
:root[data-theme=dark] .theme-moon { display: block; }
.theme-options { position: absolute; right: 0; top: calc(100% + 9px); width: 222px; max-width: calc(100vw - 28px); padding: 13px 8px 8px; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 38px #0003; }
.theme-options legend { float: left; width: 100%; padding: 0 10px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.theme-options label { display: flex; align-items: center; gap: 10px; clear: both; padding: 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.theme-options label:hover, .theme-options label:focus-within { background: var(--tint); }
.theme-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--buy); flex: none; }
.home-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.14fr); grid-template-areas: "contact rates"; gap: 28px; align-items: start; margin-top: 34px; }
.contact-rail { grid-area: contact; padding: 27px; color: #f7faf4; background: var(--rail); border: 1px solid var(--rail-line); border-radius: var(--radius); box-shadow: 0 14px 25px #17263e18; }
:root[data-theme=dark] .contact-rail { border-top: 5px solid var(--lime); box-shadow: none; }
.rail-heading { margin-bottom: 23px; }
.eyebrow { display: flex; gap: 9px; align-items: center; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--rail-muted); }
.eyebrow::before { content: ""; flex: 0 0 23px; height: 3px; background: var(--lime); }
.rail-heading h1 { margin-top: 12px; font-size: clamp(31px,3vw,46px); line-height: 1.04; letter-spacing: -.045em; font-weight: 780; overflow-wrap: anywhere; }
.rail-heading em { color: var(--lime); font-style: normal; }
.rail-location { padding: 16px 0; border-top: 1px solid var(--rail-line); }
.rail-location h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 6px; }
.rail-location p { font-size: 14px; color: var(--rail-muted); }
.rail-location .hours { font-size: 13px; margin-top: 4px; }
.rail-location a { display: inline-block; margin-top: 8px; font-size: 18px; font-weight: 750; }
.rail-location a:hover, .rail-meta a:hover { color: var(--lime); }
.branch-video { position: relative; isolation: isolate; display: block; width: 100%; height: 186px; padding: 0; border: 0; overflow: hidden; border-radius: 12px; margin-top: 6px; color: #fff; }
:root[data-theme=dark] .branch-video { height: 213px; }
.branch-video img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.branch-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#09120be6,transparent 75%); }
.branch-caption { z-index: 1; position: absolute; inset: auto 14px 13px; display: flex; justify-content: space-between; align-items: end; gap: 8px; font-size: 14px; text-align: left; }
.play { display: grid; flex: none; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 50%; color: #fff; background: var(--red); font-size: 13px; }
.rail-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 13px; color: var(--rail-muted); margin-top: 15px; overflow-wrap: anywhere; }
.rail-meta a { font-weight: 700; color: #f7faf4; }
.rates { grid-area: rates; min-width: 0; }
.rates-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 1px 0 18px; }
.rates-heading h2, .section-copy h2 { font-size: clamp(32px,3vw,44px); line-height: 1.08; letter-spacing: -.044em; font-weight: 790; overflow-wrap: anywhere; }
.rates-heading p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.rate-meta { text-align: right; max-width: 46%; }
.rates-heading .rate-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 11px; background: var(--tint); border: 1px solid var(--line); border-radius: 30px; font-size: 13px; font-weight: 600; }
.rate-status i { width: 8px; height: 8px; background: var(--lime); border: 1px solid #25321855; border-radius: 50%; flex: none; }
.rate-status.warn i { background: #e59d44; }
.rates-heading .rate-warning { font-size: 13px; }
.rate-tabs { display: none; }
.tables { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: 0 10px 25px #17263e0c; }
.table-title { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 13px 17px; border-top: 5px solid var(--lime); border-bottom: 1px solid var(--line); }
:root[data-theme=dark] .table-title { background: #202820; }
:root[data-theme=dark] .wholesale .table-title { background: #2b2222; }
.wholesale .table-title { border-top-color: var(--red); }
.table-title h3 { font-size: clamp(18px,1.65vw,23px); line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
.table-title p, :root[data-theme=dark] .table-title p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.exchange { flex: none; width: 36px; aspect-ratio: 1; background: var(--lime); color: #1d2906; display: grid; place-items: center; border-radius: 8px; font-size: 21px; font-weight: 700; }
.wholesale .exchange { background: var(--red); color: #fff; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.currency-col { width: 44%; }
th, td { text-align: right; padding: 0 14px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; padding-left: 17px; }
th, :root[data-theme=dark] th { height: 36px; background: var(--tint); color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; border-color: var(--line); }
td, :root[data-theme=dark] td { height: 43px; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; border-color: var(--line); }
tbody tr:last-child td { border-bottom: 0; }
:root[data-theme=dark] tbody tr:nth-child(even) { background: #ffffff03; }
.currency { display: flex; align-items: center; gap: 9px; }
.currency img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px #3332; }
.currency strong { display: block; font-size: 14px; line-height: 1.15; letter-spacing: .015em; }
.currency small, :root[data-theme=dark] .currency small { display: block; color: var(--muted); font-size: 12px; font-weight: 550; line-height: 1.15; margin-top: 2px; }
td.buy, :root[data-theme=dark] td.buy { color: var(--buy); }
td.sell, :root[data-theme=dark] td.sell { color: var(--sell); }
td.empty-rates { height: auto; text-align: center; padding: 24px 17px; font-size: 14px; color: var(--muted); }
.empty-rates a { text-decoration: underline; white-space: nowrap; }
.rate-note, :root[data-theme=dark] .rate-note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 15px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); color: var(--muted); font-size: 14px; }
.rate-note strong, .rate-note a, :root[data-theme=dark] .rate-note strong { color: var(--ink); font-weight: 750; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); margin-top: 26px; padding: 15px 0 calc(23px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 12px; }
.wizbox-open {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-inline-start: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    color: var(--muted);
    box-shadow: 0 3px 13px #10182412;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
}
.wizbox-open:hover { background: var(--tint); }
.wizbox-open strong { display: block; color: var(--ink); letter-spacing: .035em; }
.wizbox-open img { flex: none; width: 78px; height: 28px; object-fit: contain; }
.wizbox-dialog {
    color-scheme: light;
    position: fixed;
    width: min(660px, calc(100vw - 24px));
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 25px 80px #0005;
}
.wizbox-dialog::backdrop { background: #101b29a6; backdrop-filter: blur(4px); }
.wizbox-scroll { max-height: min(90vh, calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain; }
.wizbox-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 17px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #b7d7eb;
    border-radius: 50%;
    background: #0b3558;
    color: #fff;
    font-size: 23px;
    line-height: 1;
}
.wizbox-close:hover { background: #164c72; }
html:has(.wizbox-dialog[open]) { overflow: hidden; }
.section-view { padding-top: 34px; }
.section-copy { margin-bottom: 22px; }
.section-copy p { margin-top: 10px; color: var(--muted); }
.section-copy .lead { color: var(--ink); font-size: 20px; }
#platnosci { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0,1.35fr); gap: 30px; align-items: start; }
.content-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.banks { padding: 23px; border-top: 4px solid var(--lime); }
.banks h3, .contact-form h3, .map-address h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; }
.banks>p, .contact-form p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.bank-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; border-bottom: 1px solid var(--line); padding: 13px 0; overflow-wrap: anywhere; }
.bank-row a, .directions { color: var(--sell); font-weight: 650; }
.contact-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.map-card { overflow: hidden; border-top: 4px solid var(--lime); }
.map-card:nth-child(2) { border-top-color: var(--red); }
.map-address { padding: 20px; }
.map-address p { color: var(--muted); margin-block: 5px; }
.map-address a { display: inline-block; font-weight: 750; margin-top: 5px; }
.map-card iframe { width: 100%; height: 260px; display: block; border: 0; }
.directions { display: block; padding: 12px 20px; }
.contact-form { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 16px; padding: 20px; }
.contact-form>div { grid-column: 1/-1; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea, :root[data-theme=dark] .contact-form input, :root[data-theme=dark] .contact-form textarea {
    background: var(--tint); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); width: 100%; padding: 9px;
}
.contact-form button { justify-self: start; white-space: normal; }
.toast { position: fixed; z-index: 15; inset: auto 16px calc(70px + env(safe-area-inset-bottom)); margin-inline: auto; width: max-content; max-width: calc(100% - 32px); padding: 11px 16px; background: #32181c; color: #fff; border-radius: 9px; font-size: 14px; }
.film-dialog, :root[data-theme=dark] .film-dialog { width: min(1100px,96vw); max-height: 94dvh; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--paper); }
.film-dialog::backdrop { background: #0a120cbb; }
.film-dialog video { width: 100%; max-height: 78dvh; display: block; }
.close-film { display: flex; margin: 0 0 9px auto; }

@media (max-width: 1280px) {
    .wrap { width: calc(100% - 50px); }
    .home-layout { gap: 19px; }
    .contact-rail { padding: 20px; }
    th, td { padding-inline: 9px; }
    th:first-child, td:first-child { padding-left: 11px; }
    .currency { gap: 6px; }
    .mast-phone { font-size: 14px; }
}
@media (min-width: 761px) and (max-width: 1060px) {
    .home-layout { grid-template-columns: minmax(245px,1fr) minmax(0,2fr); }
    .tables { grid-template-columns: 1fr; }
    .mast-layout { gap: 13px; }
    .brand img { width: 133px; }
    .mast-nav { gap: 12px; font-size: 14px; }
    .mast-phone { display: none; }
}
@media (max-width: 760px) {
    .site-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .wizbox-open { align-self: flex-end; gap: 7px; padding-inline: 8px; }
    .wizbox-open img { width: 64px; height: 24px; }
    .wrap { width: calc(100% - 32px); }
    .mast-layout { min-height: 0; padding: 7px 0 0; flex-wrap: wrap; justify-content: space-between; gap: 4px 9px; }
    .brand img { width: 127px; }
    .mast-nav { order: 3; width: 100%; gap: 15px; font-size: 14px; }
    .mast-nav a { padding-block: 9px; }
    .mast-phone { display: none; }
    .mast-tools { gap: 7px; }
    .language-control, .theme-toggle { height: 38px; }
    .theme-toggle { width: 38px; }
    .home-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "rates" "contact"; gap: 19px; margin-top: 16px; }
    .contact-rail { padding: 16px; }
    .rail-heading { margin-bottom: 13px; }
    .rail-heading h1 { font-size: clamp(27px,6.6vw,38px); }
    .rail-locations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
    .rail-location { padding: 11px 0 4px; }
    .rail-location h2 { font-size: 15px; }
    .rail-location p, .rail-location .hours { font-size: 12px; }
    .rail-location a { font-size: 14px; }
    .branch-video, :root[data-theme=dark] .branch-video { margin-top: 12px; height: 122px; }
    .rates-heading { flex-wrap: wrap; margin-bottom: 10px; gap: 7px; }
    .rate-meta { max-width: 100%; text-align: left; }
    .tables { grid-template-columns: 1fr; }
    .enhanced .rate-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; margin: 11px 0; }
    .rate-tabs button { padding: 8px 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
    .rate-tabs button[aria-pressed=true] { background: var(--lime); color: #19220d; }
    .rate-tabs [data-table=wholesale][aria-pressed=false] { border-color: var(--red); }
    .enhanced .tables[data-active-table=retail] .wholesale,
    .enhanced .tables[data-active-table=wholesale] .retail { display: none; }
    .table-title { min-height: 57px; padding: 9px 10px; }
    th { font-size: 11px; }
    td, :root[data-theme=dark] td { font-size: 17px; }
    .section-view { padding-top: 19px; }
    #platnosci, .contact-cards, .contact-form { grid-template-columns: 1fr; gap: 12px; }
    .contact-form>div { grid-column: auto; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .rate-tabs [data-table=wholesale][aria-pressed=false] { animation: wholesale-pulse 2.2s ease-out infinite; }
    @keyframes wholesale-pulse {
        0% { box-shadow: 0 0 0 0 #e2202790; }
        65%, 100% { box-shadow: 0 0 0 5px #e2202700; }
    }
}

/* Portrait displays use both tables and keep the contact and signature below them. */
@media (min-width: 640px) and (max-aspect-ratio: 2/3) {
    body { display: flex; flex-direction: column; min-height: 100dvh; }
    .wrap { width: min(1480px, calc(100% - clamp(32px, 5vw, 80px))); }
    .mast-layout { min-height: clamp(66px, 5.4dvh, 96px); flex-wrap: nowrap; gap: 14px; padding-block: 0; }
    .mast-nav { order: 0; width: auto; gap: clamp(10px, 2vw, 26px); }
    .mast-nav a { padding-block: 6px; }
    main.wrap { display: flex; flex: 1; flex-direction: column; }
    .home-layout {
        flex: 1;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "rates" "contact";
        align-content: space-between;
        gap: clamp(16px, 1.6dvh, 30px);
        margin-top: clamp(16px, 2dvh, 32px);
    }
    .rate-tabs, .enhanced .rate-tabs { display: none; }
    .tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
    .enhanced .tables[data-active-table] .table-card { display: block; }
    .rates-heading { flex-wrap: nowrap; margin-bottom: 14px; gap: 14px; }
    .rate-meta { max-width: 46%; text-align: right; }
    .rates-heading h2 { font-size: clamp(34px, 4.3vw, 56px); }
    .table-title { min-height: clamp(66px, 4.6dvh, 93px); padding: 9px clamp(10px, 1.5vw, 22px); }
    .table-title h3 { font-size: clamp(18px, 2.3vw, 29px); }
    .tables th, :root[data-theme=dark] .tables th { height: clamp(34px, 2.5dvh, 48px); font-size: clamp(11px, 1.3vw, 15px); }
    .tables td, :root[data-theme=dark] .tables td {
        height: clamp(40px, calc((100dvh - clamp(670px, 45dvh, 850px)) / 13), 142px);
        font-size: clamp(17px, 2.35vw, 32px);
    }
    .tables .currency { gap: clamp(6px, 1vw, 14px); }
    .tables .currency img { width: clamp(24px, 3vw, 42px); height: auto; aspect-ratio: 1; }
    .tables .currency strong { font-size: clamp(14px, 1.75vw, 24px); }
    .tables .currency small { font-size: clamp(11px, 1.2vw, 17px); }
    .tables td.empty-rates, :root[data-theme=dark] .tables td.empty-rates { height: auto; font-size: 14px; }
    .rate-note { margin-top: 12px; padding: 10px 13px; }

    .contact-rail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(145px, 27%);
        grid-template-areas: "intro video" "locations video" "meta meta";
        gap: 10px 18px;
        padding: clamp(14px, 1.8vw, 26px);
    }
    .rail-heading { grid-area: intro; margin-bottom: 0; }
    .rail-heading h1 { margin-top: 5px; font-size: clamp(24px, 3.25vw, 45px); }
    .rail-heading h1 br { display: none; }
    .rail-locations { grid-area: locations; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .rail-location { padding: 8px 0 0; }
    .rail-location h2 { margin-bottom: 4px; font-size: clamp(14px, 1.85vw, 25px); }
    .rail-location a { margin-top: 5px; }
    .branch-video, :root[data-theme=dark] .branch-video {
        grid-area: video;
        align-self: stretch;
        height: auto;
        min-height: 110px;
        margin: 0;
    }
    .branch-video img { position: absolute; inset: 0; }
    .branch-caption { inset: auto 8px 8px; font-size: clamp(11px, 1.4vw, 16px); }
    .rail-meta { grid-area: meta; margin-top: 0; }
    .site-footer {
        flex-direction: row;
        align-items: center;
        margin-top: 16px;
        padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
    }
}
