:root {
  --ink: #132238;
  --muted: #607089;
  --paper: #f5f7fb;
  --card: #fff;
  --primary: #ef7f1a;
  --secondary: #163a70;
  --line: #dbe3ee;
  --focus-ring: #0b5fd7;
  --shadow: 0 18px 50px rgba(20, 40, 70, .12);
  --shell: 1180px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
body, input, select, textarea, button { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
button, .primary-btn, .secondary-btn { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: #111827; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header, .site-footer, main { width: min(var(--shell), calc(100% - 32px)); margin-inline: auto; }

.site-header { position: relative; z-index: 40; padding-top: 14px; }
.header-main { min-height: 78px; display: grid; grid-template-columns: minmax(230px, auto) 1fr auto; align-items: center; gap: 28px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: color-mix(in srgb, var(--card) 95%, transparent); }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { flex: 0 0 auto; width: 54px; height: 54px; object-fit: cover; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); border-radius: 50%; background: #fff; box-shadow: 0 7px 20px rgba(15, 23, 42, .1); }
.brand > span { min-width: 0; display: grid; }
.brand strong { font-size: 16px; line-height: 1.18; }
.brand small { max-width: 240px; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 22px; }
.main-nav a { position: relative; padding: 12px 0; color: var(--muted); font-size: 13px; font-weight: 850; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; right: 100%; bottom: 7px; left: 0; height: 2px; background: var(--primary); transition: right .18s ease; }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.header-phone { display: grid; color: var(--ink); line-height: 1.15; text-align: right; text-decoration: none; white-space: nowrap; }
.header-phone span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.header-phone strong { font-size: 13px; }
.languages { display: flex; gap: 3px; }
.languages a { min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 900; text-decoration: none; }
.languages a[aria-current="page"] { color: #fff; background: var(--secondary); }
.telegram-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; color: #fff; background: #0877aa; font-size: 13px; font-weight: 900; text-decoration: none; }
.header-subbar { min-height: 36px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 6px 20px; color: color-mix(in srgb, var(--ink) 76%, transparent); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: color-mix(in srgb, var(--paper) 80%, var(--card)); font-size: 11px; font-weight: 750; }
.header-subbar a { font-weight: 900; text-decoration: none; }

.hero { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(260px, .58fr); align-items: center; gap: 54px; margin: 22px auto 0; padding: clamp(48px, 7vw, 84px); overflow: hidden; position: relative; color: #fff; border-radius: 36px; background: linear-gradient(135deg, var(--secondary), #081a35); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 380px; height: 380px; right: -160px; top: -170px; border: 80px solid color-mix(in srgb, var(--primary) 20%, transparent); }
.hero::after { width: 250px; height: 250px; right: 18%; bottom: -215px; border: 55px solid rgba(255, 255, 255, .05); }
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: 12px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.lead { max-width: 720px; margin: 22px 0 0; color: rgba(255, 255, 255, .78); font-size: clamp(17px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-btn, .secondary-btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.primary-btn { color: #fff; background: var(--primary); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.secondary-btn { color: #fff; border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .08); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 750; list-style: none; }
.hero-meta li { position: relative; padding-left: 15px; }
.hero-meta li::before { content: ""; position: absolute; top: .68em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-card { min-width: 0; padding: 27px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 900; }
.live-status { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .67); font-size: 10px; text-transform: uppercase; }
.live-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #28cf7d; box-shadow: 0 0 0 4px rgba(40, 207, 125, .15); }
.live-status.is-unavailable::before, .live-status.is-loading::before { background: #96a0ab; box-shadow: 0 0 0 4px rgba(150, 160, 171, .16); }
.hero-card > strong { display: block; margin: 9px 0 7px; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: clamp(29px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.hero-card > small { display: block; color: rgba(255, 255, 255, .7); line-height: 1.55; }
.hero-card > a { display: inline-block; margin-top: 18px; color: inherit; font-size: 12px; font-weight: 900; text-decoration: none; }

.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); margin: -26px 0 34px; position: relative; z-index: 3; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.trust-band article { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; min-height: 96px; padding: 20px 24px; }
.trust-band article + article { border-left: 1px solid var(--line); }
.trust-band span { color: var(--primary); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 900; }
.trust-band strong { font-size: 14px; line-height: 1.4; }

.content-section { margin: 26px auto; padding: clamp(26px, 5vw, 58px); border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 8px 28px rgba(29, 52, 84, .06); }
.content-section h2 { margin: 0 0 18px; font-size: clamp(29px, 4vw, 46px); line-height: 1.08; letter-spacing: -.025em; }
.content-section h3 { line-height: 1.2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading time { color: var(--muted); font-size: 12px; }
.rate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.rate-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--card) 82%, var(--paper)); }
.rate-card.focus { border: 2px solid var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--card)); }
.rate-code { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; font-size: 18px; }
.rate-code small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rate-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.rate-values small, .rate-values strong { display: block; }
.rate-values small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.rate-values strong { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 20px; }
.rate-placeholder { color: var(--muted); }
.fine-print { color: var(--muted); font-size: 12px; }

.calculator-section, .form-section, .location-section, .process-section { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(34px, 6vw, 72px); align-items: center; }
.calculator-section > div:first-child > p:not(.eyebrow), .form-section > div:first-child > p:not(.eyebrow), .process-heading > p:not(.eyebrow), .location-copy > p:not(.eyebrow) { color: var(--muted); }
.calculator-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; padding: 24px; border-radius: 22px; background: var(--paper); }
.calculator-box .primary-btn { grid-column: 1 / -1; }
.calculator-box label { font-size: 13px; font-weight: 850; }
.field-row { min-height: 54px; display: flex; margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.field-row input, .field-row select { width: 100%; min-width: 0; padding: 0 13px; color: var(--ink); border: 0; outline: 0; background: transparent; }
.field-row output { flex: 1; display: flex; align-items: center; padding: 0 13px; font-family: ui-monospace, monospace; font-size: 19px; font-weight: 900; }
.currency-pill { display: flex; align-items: center; padding: 0 13px; background: color-mix(in srgb, var(--paper) 80%, var(--line)); font-weight: 900; }
.swap-mark { padding-bottom: 14px; font-size: 25px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 850; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 12px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); outline: 0; }
.wide-field { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-status { margin: 0; font-weight: 800; }
.form-status.success { color: #138a4c; }
.form-status.error { color: #c83232; }

.process-section { align-items: start; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--primary); font-family: ui-monospace, monospace; font-size: 18px; font-weight: 950; }
.process-list h3 { margin: 0 0 6px; font-size: 20px; }
.process-list p { margin: 0; color: var(--muted); }

.location-section { grid-template-columns: .68fr 1.32fr; align-items: stretch; }
.location-copy { align-self: center; }
.location-copy .primary-btn { margin-top: 15px; }
.address-line { color: var(--ink) !important; font-size: 20px; font-weight: 900; }
.location-visuals { min-width: 0; display: grid; grid-template-columns: 1.12fr .88fr; gap: 10px; }
.map-frame, .location-photo { min-width: 0; min-height: 350px; overflow: hidden; border-radius: 18px; background: #dfe7ee; }
.map-frame iframe, .map-frame img, .location-photo img { width: 100%; height: 100%; min-height: 350px; border: 0; object-fit: cover; }
.location-photo { position: relative; margin: 0; }
.location-photo figcaption { position: absolute; right: 10px; bottom: 10px; left: 10px; padding: 10px 12px; color: #fff; border-radius: 9px; background: rgba(5, 18, 37, .78); font-size: 10px; font-weight: 800; line-height: 1.4; backdrop-filter: blur(6px); }
.article-section h3 { margin: 28px 0 8px; font-size: clamp(19px, 2vw, 25px); }
.article-section p:not(.eyebrow) { color: color-mix(in srgb, var(--ink) 83%, var(--muted)); font-size: 16px; line-height: 1.78; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { overflow: hidden; padding: 0 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.faq-list details[open] { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.faq-list summary { min-height: 62px; display: flex; align-items: center; cursor: pointer; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-left: auto; color: var(--primary); font-size: 23px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -2px 0 19px; color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1.25fr .9fr .85fr; gap: 36px; margin-top: 32px; padding: 42px 30px 24px; color: #d5deea; border-radius: 24px 24px 0 0; background: #071225; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #93a3b8; }
.site-footer .footer-brand > p { margin: 15px 0 0; color: #9babbe; font-size: 12px; }
.footer-nav, .footer-meta { display: grid; align-content: start; justify-items: start; gap: 8px; }
.footer-nav a, .footer-meta a { color: #d5deea; font-size: 13px; text-decoration: none; }
.footer-nav a:hover, .footer-meta a:hover { color: #fff; }
.footer-meta strong { color: #fff; font-size: 13px; }
.footer-legal { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 18px; color: #8798ae; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 11px; }
.mobile-actions { display: none; }

/* 2 — retail fintech / bento */
body.grid2-page { --paper: #eef5ff; --card: #fff; --ink: #0b1f3a; --muted: #53657a; --primary: #0b5fd7; --secondary: #0e2f56; --line: #c8d8ec; --focus-ring: #ffb000; background: radial-gradient(circle at 12% 0, #d8e9ff 0, transparent 30rem), var(--paper); font-family: "Segoe UI Variable Display", Aptos, Inter, system-ui, sans-serif; }
.grid2-page .site-header { position: sticky; top: 0; }
.grid2-page .header-main { background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.grid2-page .grid2-hero { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); border-radius: 40px; background-color: #09264b; background-image: linear-gradient(90deg, rgba(9, 38, 75, .62), rgba(9, 38, 75, .38) 52%, rgba(9, 38, 75, .05)), url('/assets/hero-bg.webp'); background-position: center, right center; background-size: cover; }
.grid2-page .grid2-hero .eyebrow { color: #83e8d0; }
.grid2-page .grid2-hero .hero-card { color: var(--ink); border: 0; background: #fff; box-shadow: 0 24px 55px rgba(2, 22, 54, .25); backdrop-filter: none; }
.grid2-page .grid2-hero .hero-card small, .grid2-page .grid2-hero .live-status { color: var(--muted); }
.grid2-page .grid2-hero .hero-card > a { color: var(--primary); }
.grid2-page .content-section { border-radius: 28px; box-shadow: 0 15px 42px rgba(37, 83, 141, .09); }
.grid2-page .rate-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid2-page .rate-card { grid-column: span 2; border-radius: 22px; }
.grid2-page .rate-card.focus { grid-column: span 4; border-color: #0b5fd7; background: #e7f0ff; }
.grid2-page .grid2-calculator .calculator-box { background: #e5effd; }
.grid2-page .grid2-process { background: linear-gradient(145deg, #fff, #f2f7ff); }
.grid2-page .grid2-footer { background: linear-gradient(135deg, #071d3b, #0e3565); }

/* 5 — editorial cash desk / ledger */
body.grid5-page { --paper: #f5f0e6; --card: #fffcf6; --ink: #172033; --muted: #5f6470; --primary: #8c3b2a; --secondary: #172033; --line: #cfc3ad; --focus-ring: #0b5fd7; background: repeating-linear-gradient(90deg, rgba(23, 32, 51, .025) 0 1px, transparent 1px 48px), var(--paper); font-family: Aptos, "Segoe UI", sans-serif; }
.grid5-page h1, .grid5-page h2, .grid5-page h3 { font-family: Georgia, "Times New Roman", serif; }
.grid5-page .header-main { border-radius: 0; background: #fffcf6; }
.grid5-page .header-subbar { border-radius: 0; background: #eee6d8; }
.grid5-page .grid5-hero { min-height: 520px; color: var(--ink); border-block: 4px double var(--ink); border-radius: 0; background-color: #fffcf6; background-image: linear-gradient(90deg, rgba(255, 252, 246, .83), rgba(255, 252, 246, .52) 52%, rgba(255, 252, 246, .05)), url('/assets/hero-bg.webp'); background-position: center, right center; background-size: cover; box-shadow: none; }
.grid5-page .grid5-hero::before { border-color: rgba(140, 59, 42, .1); }
.grid5-page .grid5-hero .lead, .grid5-page .grid5-hero .hero-meta { color: var(--muted); }
.grid5-page .grid5-hero .secondary-btn { color: var(--ink); border-color: var(--ink); background: transparent; }
.grid5-page .grid5-hero .hero-card { color: #fff; border: 0; border-radius: 0; background: #172033; box-shadow: 14px 14px 0 #d8c6a6; backdrop-filter: none; }
.grid5-page .grid5-hero .hero-card small, .grid5-page .grid5-hero .live-status { color: #c9d0dc; }
.grid5-page .grid5-trust { border-radius: 0; box-shadow: none; }
.grid5-page .content-section { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.grid5-page .grid5-lead { color: #fff; border-top: 0; background: #172033; }
.grid5-page .grid5-lead .eyebrow { color: #e1a58d; }
.grid5-page .grid5-lead > div > p:not(.eyebrow) { color: #c5cbd5; }
.grid5-page .grid5-lead .lead-form input, .grid5-page .grid5-lead .lead-form select, .grid5-page .grid5-lead .lead-form textarea { color: #172033; border-color: #d8d1c5; background: #fffcf6; }
.grid5-page .rate-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.grid5-page .rate-card, .grid5-page .rate-card.focus { display: grid; grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.3fr); align-items: center; padding: 18px 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.grid5-page .rate-card.focus { padding-inline: 20px; background: #fff8ea; box-shadow: inset 4px 0 #8c3b2a; }
.grid5-page .rate-values { margin-top: 0; }
.grid5-page .grid5-process .process-list li > span { padding-top: 4px; border-top: 2px solid var(--primary); }
.grid5-page .grid5-footer { border-radius: 0; background: #172033; }

/* 6 — graphite OTC command center */
body.grid6-page { --paper: #0a0d10; --card: #11171b; --ink: #f2f5f3; --muted: #a8b4ad; --primary: #c6f04d; --secondary: #20282b; --line: #34413d; --focus-ring: #fff176; color-scheme: dark; background-color: var(--paper); background-image: linear-gradient(rgba(198, 240, 77, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(198, 240, 77, .035) 1px, transparent 1px); background-size: 24px 24px; font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif; }
.grid6-page .header-main, .grid6-page .header-subbar { border-radius: 4px; background: rgba(12, 17, 20, .95); }
.grid6-page .brand img { border-color: #52615b; }
.grid6-page .languages a[aria-current="page"] { color: #101507; background: var(--primary); }
.grid6-page .telegram-link { color: #d9f7ff; border: 1px solid #287f9c; background: #0b4459; }
.grid6-page .grid6-hero { min-height: 560px; border: 1px solid var(--line); border-radius: 6px; background-color: #0d1215; background-image: linear-gradient(90deg, rgba(10, 13, 16, .74), rgba(10, 13, 16, .42) 52%, rgba(10, 13, 16, .04)), url('/assets/hero-bg.webp'); background-position: center, right center; background-size: cover; box-shadow: none; }
.grid6-page .grid6-hero::before, .grid6-page .grid6-hero::after { border-radius: 0; }
.grid6-page .grid6-hero .hero-card { border: 1px solid #46564e; border-top: 4px solid var(--primary); border-radius: 3px; background: #0a0f12; backdrop-filter: none; }
.grid6-page .grid6-hero .hero-card > strong { color: #d7ff70; }
.grid6-page .grid6-hero .primary-btn, .grid6-page .primary-btn { color: #101507; background: var(--primary); box-shadow: none; }
.grid6-page .grid6-trust { border-radius: 3px; background: #11171b; box-shadow: none; }
.grid6-page .content-section { border: 1px solid var(--line); border-radius: 6px; background: rgba(17, 23, 27, .98); box-shadow: none; }
.grid6-page .article-section p:not(.eyebrow), .grid6-page .calculator-section > div:first-child > p:not(.eyebrow), .grid6-page .form-section > div:first-child > p:not(.eyebrow), .grid6-page .process-heading > p:not(.eyebrow), .grid6-page .location-copy > p:not(.eyebrow) { color: var(--muted); }
.grid6-page .rate-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.grid6-page .rate-card { border-radius: 2px; background: #0b1013; }
.grid6-page .rate-card.focus { border-color: var(--primary); background: rgba(198, 240, 77, .08); }
.grid6-page .rate-values { grid-template-columns: 1fr; }
.grid6-page .rate-values strong, .grid6-page .hero-card > strong { font-family: ui-monospace, "Cascadia Mono", monospace; }
.grid6-page :is(.calculator-box, .field-row, .lead-form input, .lead-form select, .lead-form textarea) { color: #f2f5f3; border-color: #34413d; background: #0b1013; }
.grid6-page .calculator-box { border: 1px solid var(--line); border-radius: 3px; }
.grid6-page .currency-pill { color: #d7ff70; background: #26332e; }
.grid6-page select option { color: #f2f5f3; background: #0b1013; }
.grid6-page .faq-list details { border-radius: 2px; background: #0b1013; }
.grid6-page .grid6-footer { border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0; background: #080b0d; }

/* 7 — travel postcard / PLN */
body.grid7-page { --paper: #fff8ee; --card: #fff; --ink: #17324d; --muted: #586c7e; --primary: #c62848; --secondary: #0f5a78; --line: #d9e6ea; --focus-ring: #0b5fd7; background: radial-gradient(circle at 100% 0, #dff4f7, transparent 34rem), var(--paper); font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
.grid7-page .header-main { border-radius: 24px 24px 0 0; }
.grid7-page .header-subbar { border-radius: 0 0 24px 24px; background: #eaf6f7; }
.grid7-page .grid7-hero { min-height: 550px; color: var(--ink); border-radius: 32px 32px 110px 32px; background-color: #fff5df; background-image: linear-gradient(90deg, rgba(255, 248, 238, .80), rgba(255, 248, 238, .46) 52%, rgba(255, 248, 238, .04)), url('/assets/hero-bg.webp'); background-position: center, right center; background-size: cover; box-shadow: 0 20px 52px rgba(15, 90, 120, .13); }
.grid7-page .grid7-hero .lead, .grid7-page .grid7-hero .hero-meta { color: var(--muted); }
.grid7-page .grid7-hero .secondary-btn { color: var(--secondary); border-color: var(--secondary); background: #fff; }
.grid7-page .grid7-hero .hero-card { color: var(--ink); border: 2px dashed var(--secondary); border-radius: 16px; background: #fff; box-shadow: 0 20px 38px rgba(15, 90, 120, .13); transform: rotate(1deg); backdrop-filter: none; }
.grid7-page .grid7-hero .hero-card small, .grid7-page .grid7-hero .live-status { color: var(--muted); }
.grid7-page .grid7-hero .hero-card > a { color: var(--primary); }
.grid7-page .grid7-trust { border-radius: 28px; box-shadow: 0 16px 38px rgba(15, 90, 120, .09); }
.grid7-page .content-section { transform: none; }
.grid7-page .grid7-location { color: #fff; border: 0; background: #173b58; }
.grid7-page .grid7-location .eyebrow { color: #ff9fb1; }
.grid7-page .grid7-location .address-line, .grid7-page .grid7-location .location-copy > p:not(.eyebrow) { color: #fff !important; }
.grid7-page .grid7-location .map-frame, .grid7-page .grid7-location .location-photo { border: 5px solid #fff; border-radius: 10px; }
.grid7-page .grid7-lead { background: #fff0ef; }
.grid7-page .grid7-guide { background: #eaf6fb; }
.grid7-page .grid7-calculator { background: #fff4cf; }
.grid7-page .grid7-faq { background: #fff; }
.grid7-page .rate-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid7-page .rate-card { border-top: 6px solid var(--secondary); border-radius: 12px; background: #fff; }
.grid7-page .rate-card.focus { color: #fff; border-color: var(--primary); background: var(--primary); }
.grid7-page .rate-card.focus :is(small, .rate-code small) { color: #ffe6ec; }
.grid7-page .grid7-process .process-list li > span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--secondary); }
.grid7-page .grid7-footer { background: #123149; }

body:is(.grid2-page, .grid5-page, .grid6-page, .grid7-page) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-main { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
}

@media (max-width: 900px) {
  .grid2-page .grid2-hero { background-image: linear-gradient(rgba(9, 38, 75, .78), rgba(9, 38, 75, .86)), url('/assets/hero-bg.webp'); background-position: center, 70% center; }
  .grid5-page .grid5-hero { background-image: linear-gradient(rgba(255, 252, 246, .78), rgba(255, 252, 246, .87)), url('/assets/hero-bg.webp'); background-position: center, 70% center; }
  .grid6-page .grid6-hero { background-image: linear-gradient(rgba(10, 13, 16, .79), rgba(10, 13, 16, .89)), url('/assets/hero-bg.webp'); background-position: center, 70% center; }
  .grid7-page .grid7-hero { background-image: linear-gradient(rgba(255, 248, 238, .77), rgba(255, 248, 238, .87)), url('/assets/hero-bg.webp'); background-position: center, 70% center; }
  .header-phone { display: none; }
  .hero, .calculator-section, .form-section, .location-section, .process-section,
  .grid2-page .grid2-hero, .grid5-page .grid5-hero, .grid6-page .grid6-hero, .grid7-page .grid7-hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 34px; padding: 58px 34px; }
  .hero-card { max-width: 520px; }
  .trust-band { margin-inline: 0; }
  .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2-page .rate-grid, .grid6-page .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2-page .rate-card, .grid2-page .rate-card.focus { grid-column: auto; }
  .calculator-box { grid-template-columns: 1fr; }
  .swap-mark { padding: 0; text-align: center; transform: rotate(90deg); }
  .location-section { gap: 32px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .site-header, .site-footer, main { width: min(var(--shell), calc(100% - 20px)); }
  .site-header { padding-top: 8px; position: relative !important; }
  .header-main { min-height: 66px; gap: 8px; padding: 7px 9px; border-radius: 14px 14px 0 0 !important; }
  .brand { gap: 8px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 13px; }
  .brand small { display: none; }
  .languages a { min-width: 34px; min-height: 38px; font-size: 10px; }
  .telegram-link { display: none; }
  .header-subbar { grid-template-columns: 1fr auto; gap: 8px; padding-inline: 11px; border-radius: 0 0 14px 14px !important; }
  .header-subbar .header-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-subbar a { display: none; }
  .hero { margin-top: 12px; padding: 46px 22px; border-radius: 24px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions > * { width: 100%; }
  .hero-meta { display: grid; gap: 7px; }
  .hero-card { padding: 21px; }
  .trust-band { grid-template-columns: 1fr; margin: -18px 0 26px; }
  .trust-band article { min-height: 72px; padding: 15px 18px; }
  .trust-band article + article { border-top: 1px solid var(--line); border-left: 0; }
  .content-section { margin: 18px auto; padding: 30px 19px; border-radius: 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .rate-grid, .grid2-page .rate-grid, .grid6-page .rate-grid { grid-template-columns: 1fr; }
  .grid5-page .rate-card, .grid5-page .rate-card.focus { display: block; }
  .grid5-page .rate-values { margin-top: 14px; }
  .lead-form { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .location-visuals { grid-template-columns: 1fr; }
  .map-frame, .location-photo { min-height: 270px; }
  .map-frame iframe, .map-frame img, .location-photo img { min-height: 270px; }
  .process-list li { grid-template-columns: 40px 1fr; gap: 13px; }
  .grid7-page .grid7-hero { border-radius: 24px; }
  .grid7-page .grid7-hero .hero-card { transform: none; }
  .site-footer { grid-template-columns: 1fr; padding: 32px 20px 106px; }
  .footer-brand { grid-column: auto; }
  .footer-legal { grid-column: auto; }
  .mobile-actions { position: fixed; z-index: 80; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; background: rgba(7, 18, 37, .94); box-shadow: 0 16px 35px rgba(0, 0, 0, .26); backdrop-filter: blur(14px); }
  .mobile-actions a { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 8px 10px; color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; font-size: 12px; font-weight: 900; text-align: center; text-decoration: none; }
  .mobile-actions .mobile-primary { color: #fff; border-color: var(--primary); background: var(--primary); }
  .grid6-page .mobile-actions .mobile-primary { color: #101507; }
}

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

/* One clear, full-width rates ledger instead of small quote cards. */
.rates-section { padding: clamp(24px, 3.5vw, 42px); }
.rates-section .section-heading { align-items: center; }
.rates-section .section-heading h2 { margin-bottom: 0; }
.rates-section .section-heading time { font-size: 13px; font-weight: 750; }
.rates-search { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.rates-search span { color: var(--muted); font-size: 12px; font-weight: 800; }
.rates-search input { width: min(100%, 320px); min-height: 44px; padding: 10px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: var(--card); font-size: 14px; }
.rates-search input:focus-visible { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent); outline-offset: 2px; }
.rates-no-results { margin: 15px 0 0; color: var(--muted); font-size: 14px; }
.rates-table tbody tr[hidden], .rates-no-results[hidden] { display: none; }
.rates-table-wrap { width: 100%; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.rates-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; text-align: left; }
.rates-table thead { background: color-mix(in srgb, var(--paper) 80%, var(--card)); }
.rates-table thead th { padding: 15px 20px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.rates-table thead th:first-child { width: 38%; }
.rates-table thead th:nth-child(2), .rates-table thead th:nth-child(3) { width: 22%; }
.rates-table thead th:last-child { width: 18%; }
.rates-table thead th:nth-child(2), .rates-table thead th:nth-child(3) { text-align: right; }
.rates-table thead th:last-child { text-align: center; }
.rates-table tbody tr { border-top: 1px solid var(--line); transition: background .15s ease; }
.rates-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 48%, var(--card)); }
.rates-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 8%, var(--card)); }
.rates-table tbody tr.is-focus { background: color-mix(in srgb, var(--primary) 10%, var(--card)); box-shadow: inset 4px 0 var(--primary); }
.rates-table tbody th, .rates-table tbody td { padding: 19px 20px; vertical-align: middle; }
.rates-table__currency { display: flex; align-items: center; gap: 14px; text-align: left; }
.rates-table__flag { width: 40px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 25px; line-height: 1; }
.rates-table__flag img { width: 30px; height: 22px; border-radius: 3px; object-fit: contain; }
.rates-table__code { display: block; color: var(--ink); font-size: 17px; font-weight: 950; line-height: 1.18; white-space: nowrap; }
.rates-table__name { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.35; }
.rates-table__value { color: var(--ink); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: clamp(19px, 2vw, 25px); font-weight: 900; text-align: right; white-space: nowrap; }
.rates-table__action { text-align: right; }
.rates-table__action :is(a, button) { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border: 0; border-radius: 10px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rates-table__action :is(a, button):hover { filter: brightness(.92); }
.rates-table-wrap > :is(.fine-print, .rate-placeholder) { margin: 0; padding: 24px; }
.rates-section > .fine-print { margin: 16px 0 0; }

.grid5-page .rates-table-wrap { border-radius: 0; background: #fffcf6; }
.grid5-page .rates-table thead { background: #eee6d8; }
.grid5-page .rates-table tbody tr.is-focus { background: #fff3e4; }
.grid6-page .rates-table-wrap { border-color: #46564e; border-radius: 4px; background: #0d1316; }
.grid6-page .rates-table thead { background: #1a2425; }
.grid6-page .rates-table tbody tr:nth-child(even) { background: #111b1d; }
.grid6-page .rates-table tbody tr.is-focus { background: #26332e; }
.grid6-page .rates-table__flag { background: #1c292a; }
.grid6-page .rates-table__action :is(a, button) { color: #101507; border-radius: 4px; }
.grid7-page .rates-table thead { background: #eaf6f7; }
.grid7-page .rates-table tbody tr.is-focus { background: #fff0ef; }

@media (max-width: 900px) {
  .rates-table thead th, .rates-table tbody th, .rates-table tbody td { padding-inline: 12px; }
  .rates-table__currency { gap: 9px; }
  .rates-table__flag { width: 34px; height: 32px; font-size: 21px; }
}

@media (max-width: 680px) {
  .rates-section { padding: 24px 16px; }
  .rates-section .section-heading { align-items: flex-start; }
  .rates-search { align-items: stretch; flex-direction: column; gap: 6px; }
  .rates-search input { width: 100%; }
  .rates-table-wrap { margin-top: 18px; border-radius: 14px; }
  .rates-table, .rates-table tbody, .rates-table tbody th, .rates-table tbody td { display: block; width: 100%; }
  .rates-table thead { display: none; }
  .rates-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 18px; }
  .rates-table tbody th, .rates-table tbody td { padding: 0; }
  .rates-table tbody th { grid-column: 1 / -1; }
  .rates-table__flag { width: 38px; height: 36px; font-size: 24px; }
  .rates-table__value { font-size: clamp(20px, 6vw, 26px); text-align: left; }
  .rates-table__value::before { content: attr(data-label); display: block; margin: 1px 0 4px; color: var(--muted); font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .rates-table__action { grid-column: 1 / -1; margin-top: 4px; text-align: left; }
  .rates-table__action :is(a, button) { width: 100%; }
}
