/* ============================================================
   InfoMarket — Homepage styles
   HTML5 / CSS3 — responsive (desktop + mobile)
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/InterVariable.woff2') format('woff2');
}

:root {
    --navy: #0b1f3a;
    --navy-2: #0c2340;
    --navy-deep: #081a30;
    --red: #e10915;
    --red-dark: #c2070f;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --text: #16202f;
    --text-2: #41506a;
    --muted: #8a94a6;
    --border: #e6e9ee;
    --green: #16a34a;
    --down: #e23b3b;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(16, 32, 56, 0.06), 0 1px 2px rgba(16, 32, 56, 0.04);
    --shadow-md: 0 6px 24px rgba(16, 32, 56, 0.10);
    --maxw: 1240px;
    color-scheme: light;
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
    --navy: #1f4061;
    --navy-2: #0e1a28;
    --navy-deep: #0c1622;
    --bg: #0b1521;
    --surface: #13202f;
    --text: #e7edf5;
    --text-2: #aab7c9;
    --muted: #6f7d96;
    --border: #24344a;
    --green: #2ec27a;
    --down: #ef5a5a;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
}

html[data-theme="dark"] .logo-img--light { display: none; }
html[data-theme="dark"] .logo-img--dark { display: block; }
html[data-theme="dark"] .burger span { background: var(--text); }
html[data-theme="dark"] .site-footer { background: var(--navy-deep); }
html[data-theme="dark"] .cta-card { border: 1px solid var(--border); }
html[data-theme="dark"] .partner-thumb { background-color: #1c2a3c; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.nav-open { overflow: hidden; }

.site-header,
.panel,
.indicators,
.cta-card,
.site-footer,
.category-bar,
.tag-light,
.cal-date,
.tab,
.main-nav {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

[x-cloak] { display: none !important; }

/* ---------- Reusable bits ---------- */
.card-image {
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
    position: relative;
}
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 20, 40, 0.98) 0%,
        rgba(8, 20, 40, 0.94) 25%,
        rgba(8, 20, 40, 0.72) 50%,
        rgba(8, 20, 40, 0) 70%
    );
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 3px;
}
.tag-light { background: var(--navy); color: #fff; }
.tag-red { background: var(--red); color: #fff; }
.tag-text { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: 0.04em; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:active { transform: translateY(1px); }

.link-open { color: var(--green); font-size: 13px; font-weight: 600; }
.status-open { color: var(--green); font-size: 13px; font-weight: 600; text-transform: lowercase; }
.link-more { color: var(--red); font-size: 13px; font-weight: 600; white-space: nowrap; }
.link-sub { color: var(--muted); font-size: 12px; }

.block { margin-top: 36px; }
.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.block-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { display: block; height: 36px; width: auto; }
.logo-img--dark { display: none; }
.logo-img--footer { height: 34px; margin-bottom: 4px; }
/* Footer is always on navy — use the dark-theme (light) logo regardless of page theme. */
.logo-img--footer-fixed,
.footer-brand .logo-img--dark { display: block; }
.footer-brand .logo-img--light { display: none; }
.logo-mark { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.logo-mark .dot { color: var(--red); }
.logo-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}
.main-nav a {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 600;
    color: var(--muted); padding: 2px 4px; text-decoration: none;
}
.lang-switch a.active { color: var(--navy); }
html[data-theme="dark"] .lang-switch a.active { color: var(--text); }
.icon-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-2); display: flex; padding: 6px;
}
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-2); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.login-btn { padding: 8px 18px; }

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth__session {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}

.header-auth__email {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
    color: var(--text-2);
    text-align: center;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.auth-modal__panel {
    position: relative;
    width: min(420px, 100%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-modal__close:hover { color: var(--text); }

.auth-modal__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.auth-modal__lead {
    margin: 0 0 16px;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-2);
}

.auth-modal__field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.auth-modal__field input:focus {
    outline: 2px solid color-mix(in srgb, var(--red) 35%, transparent);
    border-color: var(--red);
}

.auth-modal__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
}

.auth-modal__link {
    border: 0;
    background: transparent;
    color: var(--red);
    cursor: pointer;
    font: inherit;
    text-align: center;
    padding: 4px;
}

.auth-modal__link:hover { text-decoration: underline; }

.auth-modal__success {
    margin: 0;
    color: #16a34a;
    font-size: 0.92rem;
}

.auth-modal__captcha {
    margin-top: 8px;
}

.auth-modal__captcha--page {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.auth-modal__widget {
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.auth-modal__hint {
    margin: 10px 0 0;
    color: var(--text-2);
    font-size: 0.9rem;
}

.auth-reset-page__inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.auth-reset-page__lead {
    color: var(--text-2);
    line-height: 1.5;
}

.auth-reset-page__card h1 {
    margin: 0 0 20px;
    font-size: 1.6rem;
}

html.auth-modal-open,
html.auth-modal-open body {
    overflow: hidden;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/*
 * Offers page header: follows the site theme.
 * Light — ordinary sticky surface header (dark text / dark logo).
 * Dark  — transparent overlay on the navy hero (light text / light logo).
 */
.site-header--overlay {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .site-header--overlay .logo-img--light { display: none; }
html[data-theme="dark"] .site-header--overlay .logo-img--dark { display: block; }
html[data-theme="dark"] .site-header--overlay .main-nav a { color: rgba(255, 255, 255, 0.75); }
html[data-theme="dark"] .site-header--overlay .main-nav a:hover,
html[data-theme="dark"] .site-header--overlay .main-nav a.active { color: #fff; }
html[data-theme="dark"] .site-header--overlay .lang-switch a { color: rgba(255, 255, 255, 0.55); }
html[data-theme="dark"] .site-header--overlay .lang-switch a.active { color: #fff; }
html[data-theme="dark"] .site-header--overlay .icon-btn { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .site-header--overlay .icon-btn:hover { color: #fff; }
html[data-theme="dark"] .site-header--overlay .theme-toggle {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] .site-header--overlay .theme-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}
html[data-theme="dark"] .site-header--overlay .burger { border-color: rgba(255, 255, 255, 0.22); }
html[data-theme="dark"] .site-header--overlay .burger span { background: #fff; }
/* Mobile dropdown keeps the themed surface, so restore readable link colors. */
html[data-theme="dark"] .site-header--overlay .main-nav.is-open a { color: var(--text-2); }
html[data-theme="dark"] .site-header--overlay .main-nav.is-open a:hover,
html[data-theme="dark"] .site-header--overlay .main-nav.is-open a.active { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.hero-main {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.hero-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.hero-main-link:hover h1 { text-decoration: underline; text-underline-offset: 3px; }
.hero-content { position: relative; z-index: 2; padding: 28px; color: #fff; }
.hero-content h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 12px 0; }
.hero-content p { font-size: 14px; color: rgba(255,255,255,0.82); max-width: 90%; }
.card-meta {
    display: flex; align-items: center; gap: 14px;
    margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,0.75);
}
.dots { display: flex; gap: 7px; margin-top: 16px; }
.dots .dot,
.dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}
.dots .dot-active,
.dots .dot-active.dot { background: #fff; width: 18px; border-radius: 4px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}
.hero-card {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 222px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: inherit;
}
.hero-card:hover .hero-card-content h3 { text-decoration: underline; text-underline-offset: 2px; }
.hero-card-content { position: relative; z-index: 2; padding: 16px; color: #fff; }
.hero-card-content h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin: 8px 0; }

/* ============================================================
   KEY INDICATORS
   ============================================================ */
.indicators {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}
.metric {
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}
a.metric:hover { background: rgba(11, 31, 58, 0.03); }
html[data-theme="dark"] a.metric:hover { background: rgba(255, 255, 255, 0.04); }
.metric:last-child { border-right: none; }
.metric-name { font-size: 11px; font-weight: 600; color: var(--text-2); min-height: 28px; }
.metric-unit { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.metric-value { font-size: 22px; font-weight: 800; color: var(--text); }
.metric-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.metric-change { font-size: 11px; font-weight: 700; }
.metric-change.up { color: var(--green); }
.metric-change.down { color: var(--down); }
.metric-change.rising::before { content: "▲ "; font-size: 8px; }
.metric-change.falling::before { content: "▼ "; font-size: 8px; }
.metric-date { font-size: 10px; color: var(--muted); }
.sparkline { height: 32px; margin-top: 8px; }

/* ============================================================
   NEWS + EXPERT
   ============================================================ */
.news-expert {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.news-col { min-width: 0; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.news-card { display: flex; flex-direction: column; min-width: 0; }
.news-card h4 { overflow-wrap: anywhere; }
.news-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
}
.news-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 20, 40, 0.82) 0%,
        rgba(8, 20, 40, 0.45) 30%,
        rgba(8, 20, 40, 0) 50%
    );
    pointer-events: none;
    z-index: 1;
}
.news-thumb .tag {
    position: relative;
    z-index: 2;
    margin: 0;
    border-radius: 0;
    font-size: 9px;
    padding: 3px 7px;
    letter-spacing: 0.03em;
}
.news-card h4 { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.news-time { font-size: 11.5px; color: var(--muted); }
.news-time.light { color: rgba(255,255,255,0.8); }

/* Expert */
.expert-col { border-left: 1px solid var(--border); padding-left: 32px; }
.expert-list { display: flex; flex-direction: column; }
.expert-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 158px;
    gap: 14px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.expert-item:first-child { padding-top: 0; }
.expert-item:last-child { border-bottom: none; padding-bottom: 0; }
.expert-item__body { min-width: 0; }
.expert-item__body .tag { margin-bottom: 8px; }
.expert-item__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.expert-item__title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}
.expert-item__title a:hover { color: var(--red); }
.expert-item__lead {
    margin: 0 0 8px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.expert-item__meta {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.expert-item__thumb {
    display: block;
    width: 158px;
    height: 105px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.expert-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.expert-item__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--surface) 0%, color-mix(in srgb, var(--surface) 45%, transparent) 32%, transparent 62%);
    pointer-events: none;
}
.expert-empty { color: var(--muted); font-size: 14px; margin: 0; }

/* ============================================================
   TRIPLE (rates / feed / calendar)
   ============================================================ */
.triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
    align-items: stretch;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 0;
    min-width: 0;
}
.triple .panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.triple .panel-foot {
    margin-top: auto;
    padding-top: 14px;
}
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 600;
    color: var(--text-2); padding: 6px 12px;
}
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.rates-table { width: 100%; border-collapse: collapse; }
.rates-table th {
    text-align: left; font-size: 11px; font-weight: 600;
    color: var(--muted); text-transform: uppercase;
    padding: 6px 0; border-bottom: 1px solid var(--border);
}
.rates-table th:not(:first-child) { text-align: right; }
.rates-table td {
    padding: 11px 0; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid var(--border); text-align: right;
}
.rates-table td:first-child { text-align: left; }
.rates-table--banks th:not(:first-child),
.rates-table--banks td:not(:first-child) { text-align: right; }
.cur-code { color: var(--text); }

.home-rates-panel .panel-foot {
    min-height: 24px;
}
.home-rates-fuel-note {
    margin: 14px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
}
.home-rates-bank-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.home-rates-bank-filter__label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
}
.home-rates-bank-filter .ui-select {
    flex: 1;
    min-width: 0;
}
.ui-select--compact .ui-select__trigger {
    padding: 8px 10px;
}
.ui-select__name--solo {
    flex: 1;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.panel-note { display: block; font-size: 11px; color: var(--muted); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 10px; }
.panel-foot__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.rates-history { margin-top: 24px; }
.rates-history__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.rates-history__lead {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-2);
    max-width: 720px;
}
.rates-history__table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.rates-history-table th,
.rates-history-table td { padding: 12px 14px; white-space: nowrap; }
.rates-history-date { font-weight: 600; color: var(--text); }
.rate-history-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.rate-history-cell__value { font-variant-numeric: tabular-nums; }
.rate-history-cell__change { font-size: 11px; font-weight: 700; }
.rates-history__empty {
    margin-top: 20px;
    color: var(--text-2);
}
.rates-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 12px;
}
.rates-pagination__info {
    font-size: 13px;
    color: var(--muted);
}
.news-list-page { padding-bottom: 48px; }
.news-list-layout { margin-top: 8px; }
.news-list-head { margin-bottom: 20px; }
.category-partner-banner {
    margin: 0 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
}
.category-partner-banner a {
    display: block;
}
.category-partner-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.news-list-layout--banks {
    grid-template-areas:
        "full full"
        "main side";
}
.news-list-layout--banks .news-list-full { grid-area: full; }
.news-list-layout--banks .news-list-main { grid-area: main; }
.news-list-layout--banks .listing-sidebar-wrap { grid-area: side; }

.bank-panel {
    margin: 0 0 28px;
}
.bank-panel__lead {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
}
.bank-panel__note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}
.bank-panel__empty {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.bank-panel__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
}
.bank-panel__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}
.bank-panel__table thead th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 10px 8px;
    white-space: normal;
    line-height: 1.25;
    border-bottom: 1px solid var(--border);
    vertical-align: bottom;
}
.bank-panel__table--data thead th {
    width: 9.5%;
}
.bank-panel__table--data thead .bank-panel__th--name {
    width: 14%;
}
.bank-panel__th--num,
.bank-panel__td--num {
    text-align: right;
}
.bank-panel__table tbody td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}
.bank-panel__table tbody tr:last-child td { border-bottom: none; }
.bank-panel__table tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.bank-panel__td--name {
    font-weight: 600;
    white-space: nowrap;
}
.bank-panel__td--name a {
    color: var(--navy);
    text-decoration: none;
}
.bank-panel__td--name a:hover { text-decoration: underline; }
.bank-panel__td--num {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 11.5px;
}

@media (max-width: 1100px) {
    .news-list-layout--banks {
        grid-template-areas:
            "full"
            "main"
            "side";
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bank-panel__table--data {
        table-layout: auto;
        min-width: 640px;
    }
    .bank-panel__table { font-size: 11.5px; }
    .bank-panel__table thead th,
    .bank-panel__table tbody td { padding: 8px 7px; }
}
.news-list-section__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
}
.news-list-section__empty {
    margin: 28px 0 0;
    color: var(--text-2);
}
.news-list-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-list-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.news-list-row:first-child { padding-top: 0; }
.news-list-row:last-child { border-bottom: none; }
.news-list-row__thumb {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}
.news-list-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-list-row__body { min-width: 0; }
.news-list-row__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.news-list-row__title a {
    color: var(--text);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    transition: color 0.15s ease;
}
.news-list-row__title a:hover { color: var(--red); }
.news-list-row__lead {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-row__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}
.news-list-sentinel {
    width: 100%;
    height: 1px;
}
.news-list-loading,
.news-list-error {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--text-2);
    text-align: center;
}
.news-list-error { color: var(--red); }
.listing-sidebar-wrap {
    position: sticky;
    top: 80px;
    align-self: start;
}
.listing-sidebar__empty {
    padding: 12px 0;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .rates-history__title { font-size: 22px; }
}

.rates-page { padding-bottom: 48px; }
.rates-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 20px;
}
.rates-filter__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.rates-filter__input {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}
.rates-filter__note {
    font-size: 13px;
    color: var(--muted);
}
.rates-filter__label--bank {
    margin-left: 8px;
}
.rates-filter__bank-select {
    min-width: 220px;
    max-width: 280px;
}
.rates-day-panel--full {
    margin-top: 20px;
}

/* Datepicker */
.rates-datepicker {
    position: relative;
}
.rates-datepicker__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rates-datepicker__trigger:hover {
    border-color: color-mix(in srgb, var(--navy) 35%, var(--border));
}
.rates-datepicker--open .rates-datepicker__trigger,
.rates-datepicker__trigger:focus-visible {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent);
}
.rates-datepicker__icon {
    flex-shrink: 0;
    color: var(--navy);
}
.rates-datepicker__value {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}
.rates-datepicker__chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s ease;
}
.rates-datepicker--open .rates-datepicker__chevron {
    transform: rotate(180deg);
}
.rates-datepicker__popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.rates-datepicker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.rates-datepicker__month {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-transform: capitalize;
}
.rates-datepicker__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--navy);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.rates-datepicker__nav:hover:not(:disabled) {
    border-color: var(--navy);
    background: var(--surface);
}
.rates-datepicker__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.rates-datepicker__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}
.rates-datepicker__weekdays span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
}
.rates-datepicker__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.rates-datepicker__day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    min-height: 36px;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rates-datepicker__day:hover:not(:disabled):not(.rates-datepicker__day--selected) {
    background: var(--bg);
    border-color: var(--border);
}
.rates-datepicker__day--today:not(.rates-datepicker__day--selected) {
    border-color: color-mix(in srgb, var(--navy) 45%, var(--border));
    color: var(--navy);
}
.rates-datepicker__day--selected {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.rates-datepicker__day--disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.rates-datepicker__day--empty {
    pointer-events: none;
    visibility: hidden;
}

/* Styled currency select */
.ui-select {
    position: relative;
}
.ui-select__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ui-select__trigger:hover {
    border-color: color-mix(in srgb, var(--navy) 35%, var(--border));
}
.ui-select--open .ui-select__trigger,
.ui-select__trigger:focus-visible {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent);
}
.ui-select__code {
    flex-shrink: 0;
    min-width: 38px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--navy);
}
.ui-select__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-2);
    font-size: 13px;
}
.ui-select__chevron {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}
.ui-select--open .ui-select__chevron {
    transform: rotate(-135deg) translateY(2px);
}
.ui-select__menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 240px;
    overflow-y: auto;
}
.ui-select__option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.ui-select__option:hover,
.ui-select__option.is-active {
    background: var(--bg);
}
.ui-select__option.is-active .ui-select__code {
    color: var(--red);
}
.ui-select__placeholder {
    color: var(--muted);
}
.field .ui-select {
    width: 100%;
}
.rates-page-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}
.rates-page-top--banks {
    grid-template-columns: minmax(0, 1fr) 294px;
    gap: 14px;
}
.rates-page-top .rates-day-panel,
.rates-page-top .rates-converter {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.rates-page-top .rates-converter__result {
    margin-top: auto;
}
.rates-day-panel { margin-top: 0; }
.rates-day-table th.rates-day-table__chart-col,
.rates-day-table td.rates-day-table__chart-col {
    width: 48px;
    text-align: center;
    padding-right: 0;
}
.rates-day-table th.rates-day-table__chart-col { text-align: center; }
.rates-chart-toggle {
    width: 16px;
    height: 16px;
    accent-color: var(--navy);
    cursor: pointer;
}

/* Bank rates comparison */
.rates-compare__hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.rates-compare__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.rates-compare__legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--green) 22%, transparent);
    box-shadow: inset 0 0 0 1.5px var(--green);
    flex-shrink: 0;
}
.rates-compare--mobile { display: none; }
.rates-compare__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.rates-compare-table {
    width: 100%;
    table-layout: fixed;
}
.rates-compare-table th,
.rates-compare-table td {
    padding: 7px 4px;
    vertical-align: middle;
}
.rates-compare-table th.rates-compare-table__bank,
.rates-compare-table td.rates-compare-table__bank {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
    width: 18%;
    min-width: 0;
    padding-left: 0;
    padding-right: 6px;
}
.rates-compare-table thead th.rates-compare-table__bank {
    z-index: 2;
}
.rates-compare-table__cur {
    text-align: center !important;
    white-space: nowrap;
    width: 16.4%;
}
.rates-compare-table__cur-code {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.rates-compare-table__cur-sides {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    font-weight: 600;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
}
.rates-compare-table__pair {
    text-align: center !important;
}
.rates-compare-table__pair-inner {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rates-compare-table__pair-sep {
    color: var(--muted);
    font-weight: 500;
    font-size: 10px;
}
.rates-compare-table__rate {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.rates-compare-table__rate.is-best {
    color: var(--green);
    background: color-mix(in srgb, var(--green) 14%, transparent);
    border-radius: 3px;
    padding: 0 2px;
}
.rates-compare-table__bank-name {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rates-compare-table__row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.rates-compare-table__row:hover {
    background: color-mix(in srgb, var(--navy) 5%, transparent);
}
.rates-compare-table__row:hover td.rates-compare-table__bank {
    background: color-mix(in srgb, var(--navy) 5%, var(--surface));
}
.rates-compare-table__row.is-selected {
    background: color-mix(in srgb, var(--navy) 10%, transparent);
}
.rates-compare-table__row.is-selected td.rates-compare-table__bank {
    background: color-mix(in srgb, var(--navy) 10%, var(--surface));
}
.rates-compare-table__row.is-selected .rates-compare-table__bank-name {
    color: var(--navy);
}
.rates-compare-table__row:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: -2px;
}
.rates-compare-mobile-table .rates-compare-table__rate.is-best {
    display: inline-block;
}
.rates-chart-panel__bank {
    font-weight: 700;
    color: var(--text-2);
}

@media (max-width: 980px) {
    .rates-compare--desktop { display: none; }
    .rates-compare--mobile { display: block; }
    .rates-compare-table__row.is-selected td.rates-compare-table__bank,
    .rates-compare-table__row:hover td.rates-compare-table__bank {
        background: transparent;
    }
}
.rates-converter { margin-top: 0; }
.rates-converter__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.rates-converter__hint {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.rates-converter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.rates-converter__field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
}
.rates-converter__input,
.rates-converter__select {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    width: 100%;
}
.rates-converter__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}
.rates-converter__swap {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 14px;
}
.rates-converter__swap:hover { border-color: var(--navy); }
.rates-converter__result {
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
}
.rates-converter__result-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.rates-converter__result-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

/* Compact converter on bank comparison page */
.rates-page-top--banks .rates-converter__title {
    font-size: 16px;
}
.rates-page-top--banks .rates-converter__hint {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.35;
}
.rates-page-top--banks .rates-converter__field {
    gap: 5px;
    margin-bottom: 12px;
}
.rates-page-top--banks .rates-converter__field label {
    font-size: 11px;
}
.rates-page-top--banks .rates-converter__input {
    font-size: 13px;
    padding: 8px 10px;
}
.rates-page-top--banks .rates-converter__row {
    gap: 6px;
    margin-bottom: 12px;
}
.rates-page-top--banks .rates-converter .ui-select__trigger {
    padding: 8px;
    gap: 4px;
}
.rates-page-top--banks .rates-converter .ui-select__code--solo {
    flex: 1;
    text-align: left;
}
.rates-page-top--banks .rates-converter .ui-select__option {
    padding: 8px 10px;
}
.rates-page-top--banks .rates-converter__swap {
    width: 34px;
    height: 34px;
    font-size: 15px;
    margin-bottom: 12px;
}
.rates-page-top--banks .rates-converter__result {
    padding: 10px 12px;
}
.rates-page-top--banks .rates-converter__result-label {
    font-size: 10px;
}
.rates-page-top--banks .rates-converter__result-value {
    font-size: 17px;
    word-break: break-word;
}
.rates-chart-panel { margin-top: 20px; }
.rates-chart-panel__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.rates-chart-panel__note {
    margin: -6px 0 12px;
    font-size: 12px;
    color: var(--muted);
}
.rates-chart-wrap {
    position: relative;
    height: 360px;
}

@media (max-width: 900px) {
    .rates-page-top {
        grid-template-columns: 1fr;
    }
}

.feed-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px solid var(--border);
}
.feed-list li:last-child { border-bottom: none; }
.feed-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    flex-shrink: 0;
    width: 3.25rem;
    line-height: 1.3;
}
.feed-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.35;
    text-decoration: none;
}
.feed-link:hover { color: var(--red); }
.feed-link .lock-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--navy);
}
html[data-theme="dark"] .feed-link .lock-icon { color: #7eb3ff; }

.calendar-list li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 13px 0; border-bottom: 1px solid var(--border);
}
.calendar-list li:last-child { border-bottom: none; }
.cal-date {
    display: flex; flex-direction: column; align-items: center;
    background: var(--bg); border-radius: var(--radius-sm);
    padding: 8px 10px; flex-shrink: 0; min-width: 50px;
}
.cal-date strong { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1; }
.cal-date span { font-size: 10px; text-transform: uppercase; color: var(--red); font-weight: 700; margin-top: 2px; }
.cal-body { flex: 1; }
.cal-body h4 { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.cal-time { font-size: 12px; font-weight: 600; color: var(--text-2); flex-shrink: 0; }

/* ============================================================
   PARTNERS + CTA
   ============================================================ */
.partners-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 48px;
}
.partners-col { min-width: 0; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.partner-card { min-width: 0; }
.partner-card h4 { font-size: 13px; font-weight: 600; line-height: 1.35; margin: 10px 0 6px; overflow-wrap: anywhere; }
.partner-card h4 a { color: inherit; text-decoration: none; }
.partner-card h4 a:hover { color: var(--red); }
.partner-thumb {
    display: block;
    border-radius: var(--radius-sm);
    aspect-ratio: 16 / 9;
    background-color: #f0f2f5;
}
.partner-by { font-size: 11.5px; color: var(--muted); }
.partners-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.cta-card {
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    background-image: url('../assets/bg_subscribe.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    padding: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-card h3 { position: relative; z-index: 1; font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.cta-card p { position: relative; z-index: 1; font-size: 13.5px; color: rgba(255,255,255,0.78); margin-bottom: 20px; }
.cta-card .btn { position: relative; z-index: 1; align-self: flex-start; }

/* ============================================================
   CATEGORY BAR
   ============================================================ */
.category-bar { background: var(--navy-deep); padding: 26px 0; }
.category-inner {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
}
.category-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.category-item:last-child { border-right: none; }
.category-item strong { font-size: 13.5px; font-weight: 700; }
.cat-count { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.cat-go { font-size: 11.5px; color: var(--red); font-weight: 600; }
.category-item:hover .cat-go { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: #fff;
    padding: 48px 0 32px;
    margin-top: auto;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
}
.footer-brand .logo-mark { color: #fff; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.65); margin: 14px 0; max-width: 280px; line-height: 1.55; }
.copyright { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col li { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: #fff; }
.contacts li { line-height: 1.5; }

/* ============================================================
   ARTICLE / CONTENT PAGE
   ============================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    margin: 18px 0 22px;
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: var(--muted); }
.breadcrumbs .current { color: var(--muted); }

/* ============================================================
   STATIC TEXT PAGE (about, legal, etc.)
   ============================================================ */
.static-page {
    padding-bottom: 56px;
}
.static-page__content {
    max-width: 720px;
}
.static-page__title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text);
    margin: 0 0 28px;
}
.static-page__tagline {
    margin-top: 8px;
    margin-bottom: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
.article { min-width: 0; }

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.article-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text);
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}
.article-lead {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-2);
    margin-bottom: 26px;
}

.article-figure { margin: 0 0 28px; }
.article-figure img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}
.article-figure figcaption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.article-body { font-size: 16px; line-height: 1.7; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 32px 0 14px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body a {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--red) 35%, transparent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-body a:hover {
    color: var(--red-dark);
    text-decoration-color: var(--red-dark);
}
html[data-theme="dark"] .article-body a {
    color: #ff5a63;
    text-decoration-color: color-mix(in srgb, #ff5a63 40%, transparent);
}
html[data-theme="dark"] .article-body a:hover {
    color: #ff7a80;
    text-decoration-color: #ff7a80;
}

.article-body div[data-youtube-video] {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
}

.article-body div[data-youtube-video] iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pullquote {
    position: relative;
    margin: 30px 0;
    padding: 24px 26px 24px 30px;
    background: rgba(11, 31, 58, 0.04);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-sm);
}
html[data-theme="dark"] .pullquote { background: rgba(255, 255, 255, 0.05); }
.pullquote-mark {
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
    color: var(--red);
    opacity: 0.35;
    margin-bottom: 4px;
}
.pullquote p {
    font-size: 17px;
    font-style: italic;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 14px;
}
.pullquote cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-tag {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.article-tag:hover { color: var(--text); border-color: var(--text-2); }

.read-also { margin-top: 40px; }
.read-also-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.topic-list li { border-bottom: 1px solid var(--border); }
.topic-list li:last-child { border-bottom: none; }
.topic-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}
.topic-list a:hover { color: var(--red); }
.topic-list .arrow { color: var(--red); font-weight: 700; flex-shrink: 0; }

.rubric-list li {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.rubric-list li:last-child { border-bottom: none; }
.rubric-list a {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 5px;
}
.rubric-list a:hover { color: var(--red); }
.rubric-date { font-size: 11.5px; color: var(--muted); }

.side-cta { margin-top: 0; }

/* Closed / subscriber-only article */
.status-locked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}
html[data-theme="dark"] .status-locked { color: #7eb3ff; }
.status-locked svg { flex-shrink: 0; }

.paywall-wrap {
    margin: 40px 0 48px;
}
.paywall {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 44px 40px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.paywall::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
    opacity: 0.55;
}
html[data-theme="dark"] .paywall::before { opacity: 0.35; }
.paywall-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.05);
    border: 1px solid var(--border);
    color: var(--navy);
}
html[data-theme="dark"] .paywall-icon {
    background: rgba(255, 255, 255, 0.05);
    color: #7eb3ff;
}
.paywall h2 {
    position: relative;
    z-index: 1;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 12px;
}
.paywall-desc {
    position: relative;
    z-index: 1;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto 28px;
}
.paywall-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-2); }

.content-blur-wrap {
    position: relative;
    margin-top: 8px;
    user-select: none;
    pointer-events: none;
}
.content-blur {
    filter: blur(6px);
    opacity: 0.55;
}
.content-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(244, 245, 247, 0.3) 0%, rgba(244, 245, 247, 0.85) 40%, var(--bg) 100%);
    pointer-events: none;
}
html[data-theme="dark"] .content-blur-overlay {
    background: linear-gradient(to bottom, rgba(11, 21, 33, 0.2) 0%, rgba(11, 21, 33, 0.85) 40%, var(--bg) 100%);
}
.content-blur-overlay svg { color: var(--navy); opacity: 0.7; }
html[data-theme="dark"] .content-blur-overlay svg { color: #7eb3ff; }
.content-blur-overlay span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.inside-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}
.inside-list li {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 10px;
}
.inside-list li:last-child { margin-bottom: 0; }

.related-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.related-topic {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.related-topic:hover { color: var(--text); border-color: var(--text-2); }

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
.cta-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 14px;
}
.cta-benefits li:last-child { margin-bottom: 0; }
.cta-benefits svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.65);
}

.read-also-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.news-card--locked .news-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.news-card--locked .lock-icon {
    color: var(--navy);
    flex-shrink: 0;
}
html[data-theme="dark"] .news-card--locked .lock-icon { color: #7eb3ff; }

/* ============================================================
   OFFERS / SUBSCRIPTION PAGE
   ============================================================ */
.offer-hero {
    position: relative;
    background-color: var(--navy);
    background-image:
        linear-gradient(115deg, rgba(8,20,40,0.95) 0%, rgba(8,20,40,0.78) 55%, rgba(8,20,40,0.55) 100%),
        url('../assets/bg_subscribe.png');
    background-size: cover;
    background-position: center;
    color: #fff;
}
html[data-theme="dark"] .offer-hero {
    padding-top: 64px; /* clears the absolute overlay header */
}
.offer-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) 210px;
    gap: 32px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 60px;
}
.offer-hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}
.offer-hero-lead {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    max-width: 520px;
    margin-bottom: 28px;
}
.offer-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 32px;
    margin-bottom: 30px;
}
.offer-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 240px;
}
.offer-point svg { flex-shrink: 0; color: #fff; opacity: 0.85; margin-top: 2px; }
.offer-point strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.offer-point span { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.7); }
.offer-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.offer-hero-media { display: flex; justify-content: center; min-width: 0; }
.offer-hero-media img {
    width: 100%;
    min-width: 0;
    max-width: 620px;
    height: auto;
    filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.45));
}

/* Hero product timeline */
.offer-hero-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-left: 4px;
}
.offer-hero-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.18);
}
.offer-tl-item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.offer-tl-dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(225, 9, 21, 0.25);
}
.offer-tl-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}
.offer-tl-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.offer-tl-desc {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
}

.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 12px;
}
.section-head p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* Four products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.product-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--product-accent, var(--navy)) 10%, transparent);
    color: var(--product-accent, var(--navy));
}
.product-head h3 { font-size: 15.5px; font-weight: 800; line-height: 1.25; color: var(--text); }
.product-desc { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-bottom: 16px; }
.product-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}
.product-features li {
    position: relative;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}
.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--product-accent, var(--navy));
    opacity: 0.6;
}
.product-freq {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--product-accent, var(--navy));
}

/* Corporate format banner */
.corpformat-note {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 28px;
}
html[data-theme="dark"] .corpformat-note { background: var(--surface); border: 1px solid var(--border); }
.corpformat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
html[data-theme="dark"] .corpformat-icon { background: rgba(255, 255, 255, 0.06); color: #7eb3ff; }
.corpformat-note p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
html[data-theme="dark"] .corpformat-note p { color: var(--text-2); }
.corpformat-note strong { color: #fff; }
html[data-theme="dark"] .corpformat-note strong { color: var(--text); }

/* Embassies / representations */
.section--embassy { padding-top: 0; }
.embassy-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f7f2ea;
    border: 1px solid #ebe4d8;
    border-radius: var(--radius);
    padding: 32px 36px;
}
.embassy-panel__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}
html[data-theme="dark"] .embassy-panel {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
}
.embassy-illustration { color: var(--red); opacity: 0.85; }
.embassy-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.embassy-body h2 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
}
.embassy-accent {
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}
.embassy-desc { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.btn-embassy {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--red);
    white-space: nowrap;
    cursor: pointer;
}
.btn-embassy:hover { background: color-mix(in srgb, var(--red) 8%, transparent); }
.embassy-more {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ebe4d8;
}
html[data-theme="dark"] .embassy-more {
    border-top-color: var(--border);
}
.embassy-more p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-2);
    margin: 0;
}
.embassy-more p + p { margin-top: 14px; }
.embassy-more strong { color: var(--text); font-weight: 700; }
.embassy-more-enter,
.embassy-more-leave { transition: opacity 0.2s ease, transform 0.2s ease; }
.embassy-more-enter-start,
.embassy-more-leave-end { opacity: 0; transform: translateY(-6px); }
.embassy-more-enter-end,
.embassy-more-leave-start { opacity: 1; transform: translateY(0); }

/* Team scenarios */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.team-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    min-width: 0;
}
html[data-theme="dark"] .team-card { background: var(--bg); }
.team-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--team-accent, var(--navy)) 10%, transparent);
    color: var(--team-accent, var(--navy));
}
.team-head h3 { font-size: 14.5px; font-weight: 800; line-height: 1.3; color: var(--text); }
.team-desc { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-bottom: 14px; }
.team-kit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.team-kit li {
    position: relative;
    padding-left: 20px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}
.team-kit li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--green);
}

/* Quiz / lead form */
.quiz {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}
.quiz h2 { font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 6px; }
.quiz-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.quiz-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px 28px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.field input {
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    width: 100%;
    transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--navy); }
html[data-theme="dark"] .field input:focus { border-color: #7eb3ff; }
.field--error input { border-color: var(--red); }
.field-error {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    line-height: 1.35;
}
.field-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}
.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.file-upload:hover,
.file-upload:focus-within {
    border-color: var(--navy);
    background: color-mix(in srgb, var(--navy) 4%, var(--bg));
}
html[data-theme="dark"] .file-upload:hover,
html[data-theme="dark"] .file-upload:focus-within {
    border-color: #7eb3ff;
    background: rgba(126, 179, 255, 0.08);
}
.file-upload--filled {
    border-style: solid;
    border-color: color-mix(in srgb, var(--navy) 35%, var(--border));
}
.file-upload--error {
    border-color: var(--red);
}
.file-upload--drag {
    border-color: var(--navy);
    border-style: dashed;
    background: color-mix(in srgb, var(--navy) 8%, var(--bg));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent);
}
html[data-theme="dark"] .file-upload--drag {
    border-color: #7eb3ff;
    background: rgba(126, 179, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(126, 179, 255, 0.18);
}
.file-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-upload__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--navy);
    background: color-mix(in srgb, var(--navy) 10%, transparent);
}
html[data-theme="dark"] .file-upload__icon {
    color: #9ec5ff;
    background: rgba(126, 179, 255, 0.14);
}
.file-upload__body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.file-upload__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-upload__hint {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}
.file-upload__action {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    padding: 7px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--red) 10%, transparent);
    white-space: nowrap;
}
.file-upload--filled .file-upload__action {
    color: var(--navy);
    background: color-mix(in srgb, var(--navy) 10%, transparent);
}
@media (max-width: 640px) {
    .file-upload {
        align-items: flex-start;
    }
    .file-upload__action {
        display: none;
    }
}
#press-release-form {
    scroll-margin-top: 88px;
}
.press-release-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.press-release-actions {
    grid-column: 1 / -1;
}
.press-release-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.press-release-success__icon {
    color: #146c3a;
}
.quiz-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.45;
}
.quiz-status--success {
    background: #e8f7ee;
    color: #146c3a;
    border: 1px solid #b7e4c7;
}
.quiz-status--error {
    background: #fdebec;
    color: #9b1c1c;
    border: 1px solid #f5c2c7;
}
html[data-theme="dark"] .quiz-status--success {
    background: rgba(20, 108, 58, 0.22);
    color: #9be4b5;
    border-color: rgba(155, 228, 181, 0.35);
}
html[data-theme="dark"] .quiz-status--error {
    background: rgba(155, 28, 28, 0.25);
    color: #f5b5b5;
    border-color: rgba(245, 181, 181, 0.35);
}
.quiz-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.45;
}
.quiz-consent--error { color: var(--red); }
.quiz-consent input { margin-top: 2px; accent-color: var(--red); }
.quiz-consent a { color: var(--red); }
.quiz-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.quiz-captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.quiz-captcha-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 51, 0.55);
}
.quiz-captcha-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 28, 51, 0.22);
    padding: 28px 24px 24px;
    text-align: center;
}
.quiz-captcha-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.quiz-captcha-modal__close:hover {
    background: var(--bg);
    color: var(--text);
}
.quiz-captcha-modal__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    padding-right: 24px;
}
.quiz-captcha-modal__lead {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
}
.quiz-captcha-modal__widget {
    display: flex;
    justify-content: center;
    min-height: 65px;
}
.quiz-captcha-modal__hint {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
}
html.quiz-captcha-open,
html.quiz-captcha-open body {
    overflow: hidden;
}
.quiz-submit { width: 100%; margin-top: 4px; }
.quiz-submit:disabled { opacity: 0.7; cursor: wait; }
.quiz-col-actions { display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }

/* Site search modal */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 20px;
}
.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 51, 0.55);
}
.search-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    background: var(--card, #fff);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 28, 51, 0.22);
    padding: 28px 24px 24px;
}
.search-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.search-modal__close:hover {
    background: var(--bg);
    color: var(--text);
}
.search-modal__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    padding-right: 36px;
}
.search-modal__form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.search-modal__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg, #fff);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.search-modal__input:focus {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 1px;
    border-color: transparent;
}
.search-modal__submit {
    flex-shrink: 0;
    white-space: nowrap;
}
.search-query-label {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--muted);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 560px) {
    .search-modal {
        padding-top: 8vh;
    }
    .search-modal__form {
        flex-direction: column;
    }
    .search-modal__submit {
        width: 100%;
    }
}

.section--alt { background: var(--surface); }
html[data-theme="dark"] .section--alt { background: var(--navy-2); }

/* Additional services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.service-icon {
    display: inline-flex;
    color: var(--red);
    margin-bottom: 14px;
}
.service-card h3 { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 13px; line-height: 1.5; color: var(--text-2); margin-bottom: 18px; }
.service-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: -6px 0 14px;
}
.service-price span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.btn-service {
    width: 100%;
    margin-top: auto;
    background: var(--surface);
    color: var(--text-2);
    border: 1px solid var(--border);
    font-size: 13px;
}
.btn-service:hover { border-color: var(--text-2); color: var(--text); }
.btn-service-primary { width: 100%; margin-top: auto; font-size: 13px; }

/* Product comparison table */
.compare-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
html[data-theme="dark"] .compare-wrap { background: var(--bg); }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.compare-table th,
.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.compare-table thead th {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td { text-align: center; }
.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-yes { color: var(--green); font-weight: 800; }
.compare-no { color: var(--muted); }

/* How to start */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
}
.step-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
}
.step-card h4 { font-size: 13.5px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 6px; }
.step-card p { font-size: 12px; line-height: 1.45; color: var(--text-2); }
.step-arrow {
    align-self: center;
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
}

/* Final CTA strip */
.offer-final-cta {
    background: var(--navy);
    color: #fff;
    padding: 40px 0;
}
html[data-theme="dark"] .offer-final-cta { background: var(--navy-deep); }
.offer-final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.offer-final-cta h2 { font-size: 23px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.offer-final-cta p { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.offer-final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; }
    .hero-main { min-height: 380px; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .indicators-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .category-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .category-item { border-right: none; }

    /* Header → mobile nav */
    .header-inner { gap: 12px; }
    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex: none;
        max-height: 0;
        overflow: hidden;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transition: max-height 0.3s ease;
        z-index: 200;
    }
    .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 16px;
        flex-wrap: nowrap;
    }
    .main-nav li { border-bottom: 1px solid var(--border); }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: 13px 0; font-size: 15px; }
    .burger { display: flex; }
    .lang-switch a { padding: 4px 6px; font-size: 11px; }
}

@media (max-width: 980px) {
    .news-expert { grid-template-columns: 1fr; }
    .expert-col { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
    .triple { grid-template-columns: 1fr; }
    .partners-wrap { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }

    .article-layout { grid-template-columns: 1fr; gap: 36px; }
    .listing-sidebar-wrap { position: static; }
    .article-title { font-size: 28px; }
    .static-page__title { font-size: 28px; }

    .offer-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding-top: 44px;
        padding-bottom: 48px;
    }
    .offer-hero h1 { font-size: 30px; }
    .offer-hero-media { order: -1; }
    .offer-hero-timeline {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px 28px;
    }
    .offer-hero-timeline::before { display: none; }
    .offer-tl-item { flex-basis: calc(50% - 14px); }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-arrow { display: none; }
    .embassy-panel__top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    .embassy-illustration { display: none; }
}

@media (max-width: 760px) {
    .news-list-row {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0;
    }
    .news-list-row__title { font-size: 13px; }
    .news-list-row__lead {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .indicators-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .read-also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .read-also-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .quiz-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .news-list-row {
        grid-template-columns: 1fr;
    }
    .news-list-row__thumb { max-width: 100%; }
    .container { padding: 0 14px; }
    .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .hero-content h1 { font-size: 21px; }
    .hero-content p { max-width: 100%; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .indicators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { border-right: none; }
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr; }
    .block-head h2 { font-size: 16px; }
    .partners-wrap { margin-bottom: 32px; }

    .article-title { font-size: 23px; }
    .static-page__title { font-size: 23px; }
    .article-lead { font-size: 15.5px; }
    .article-body { font-size: 15px; }
    .read-also-grid { grid-template-columns: 1fr; }
    .read-also-grid--4 { grid-template-columns: 1fr; }
    .paywall-wrap { margin: 32px 0 40px; }
    .paywall { padding: 32px 24px 28px; }
    .paywall::before { inset: 6px; }
    .paywall h2 { font-size: 19px; }
    .paywall-actions { flex-direction: column; align-items: stretch; }
    .paywall-actions .btn { width: 100%; }
    .pullquote { padding: 18px 18px 18px 22px; }
    .pullquote p { font-size: 15.5px; }

    .section { padding: 40px 0; }
    .offer-hero-inner { padding-left: 20px; padding-right: 20px; }
    .offer-hero h1 { font-size: 25px; }
    .section-head h2 { font-size: 22px; }
    .products-grid { grid-template-columns: 1fr; }
    .teams-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .offer-tl-item { flex-basis: 100%; }
    .quiz { padding: 22px 18px; }
    .quiz-grid { grid-template-columns: 1fr; }
    .press-release-grid { grid-template-columns: 1fr; }
    .offer-hero-actions { flex-direction: column; }
    .offer-hero-actions .btn { width: 100%; }
    .offer-final-cta-actions { width: 100%; flex-direction: column; }
    .offer-final-cta-actions .btn { width: 100%; }
    .corpformat-note { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
    .news-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
}

/* ===== OMP page (economic indicators) ===== */
.omp-page { padding-top: 18px; padding-bottom: 32px; }
.omp__title { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.omp__lead { color: var(--muted); margin: 0 0 4px; font-size: 14px; }
.omp__hint { color: var(--muted); margin: 0 0 18px; font-size: 12.5px; }
.omp__empty { color: var(--muted); padding: 24px 0; }

.omp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 6px 18px;
}
.omp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.omp-table thead th {
    text-align: left; color: var(--muted);
    font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
    padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--border);
}
.omp-th--num, .omp-th--change { text-align: right; }

.omp-table tbody td {
    padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.omp-table tbody tr:last-child td { border-bottom: none; }
.omp-table tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }

.omp-td--name { min-width: 240px; }
.omp-name { font-weight: 600; color: var(--text); }
.omp-unit { color: var(--muted); font-size: 12px; margin-left: 4px; }

.omp-td--period { color: var(--muted); white-space: nowrap; }
.omp-td--value {
    text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text);
}
.omp-td--change { text-align: right; white-space: nowrap; }
.omp-change { font-weight: 700; font-size: 13px; }
.omp-change.up { color: var(--green); }
.omp-change.down { color: var(--down); }
.omp-change.flat { color: var(--muted); }
.omp-change.rising::before { content: "▲ "; font-size: 8px; }
.omp-change.falling::before { content: "▼ "; font-size: 8px; }
.omp-cmp { color: var(--muted); font-size: 12px; margin-left: 4px; }

.omp-row--clickable { cursor: pointer; }
.omp-row--clickable:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.omp-table tbody tr.omp-row--active { background: color-mix(in srgb, #3b82f6 12%, transparent); }
.omp-table tbody tr.omp-row--active .omp-name { color: var(--navy); }
html[data-theme="dark"] .omp-table tbody tr.omp-row--active { background: color-mix(in srgb, #60a5fa 18%, transparent); }
html[data-theme="dark"] .omp-table tbody tr.omp-row--active .omp-name { color: #93c5fd; }

.omp-chart {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 16px 18px;
}
.omp-chart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.omp-chart__title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.omp-chart__close {
    border: none; background: transparent; color: var(--muted);
    font-size: 24px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.omp-chart__close:hover { color: var(--text); }
.omp-chart__canvas-wrap { height: 280px; }
.omp-chart__canvas-wrap canvas { width: 100% !important; height: 100% !important; }

@media (max-width: 640px) {
    .omp-td--name { min-width: 160px; }
    .omp-cmp { display: none; }
    .omp-chart__canvas-wrap { height: 220px; }
}

/* ===== NOW archive & reader ===== */
.now-list-page { padding-bottom: 64px; }
.now-list-hero {
    margin: 8px 0 28px;
    padding: 28px 0 8px;
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, transparent), transparent);
}
.now-list-hero__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
}
.now-list-hero__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    color: var(--text);
}
.now-list-hero__lead {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}
.now-list-feed { display: flex; flex-direction: column; gap: 14px; }
.now-list-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.now-list-card:hover { border-color: color-mix(in srgb, var(--navy) 35%, var(--border)); }
.now-list-card__link {
    display: block;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
}
.now-list-card__cover {
    width: 100%;
    height: 160px;
    margin: 0 0 14px;
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--navy) 8%, var(--surface));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.now-list-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}
.now-list-card__number {
    font-weight: 700;
    color: var(--navy);
}
.now-list-card__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}
.now-list-card__intro {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}
.now-list-card__count {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.now-list-empty { color: var(--muted); padding: 24px 0; }

.now-issue-page { padding-bottom: 72px; }
.now-issue-hero { margin: 8px 0 28px; }
.now-issue-hero__cover {
    width: 100%;
    height: min(360px, 42vw);
    margin: 0 0 18px;
    border-radius: 14px;
    background-color: color-mix(in srgb, var(--navy) 8%, var(--surface));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.now-issue-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}
.now-issue-hero__title {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.2;
}
.now-issue-hero__intro {
    margin: 0 0 10px;
    max-width: 48rem;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}
.now-issue-hero__count {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.now-reader {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.now-reader--stacked {
    max-width: none;
}
.now-list-hero {
    margin: 0 0 22px;
    padding: 8px 0 0;
}
.now-issue-layout {
    margin-top: 8px;
}
.now-issue-main {
    min-width: 0;
}
.now-reader__toc {
    position: static;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 16px 16px 12px;
}
.now-reader__toc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.now-reader__toc-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.now-reader__accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.now-acc {
    border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg) 55%, var(--surface));
    overflow: hidden;
}
.now-acc__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--text);
}
.now-acc__toggle:hover {
    background: color-mix(in srgb, var(--text) 4%, transparent);
}
.now-acc__title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--navy);
}
.now-acc__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    min-width: 1.5rem;
    text-align: right;
}
.now-acc__chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.18s ease;
}
.now-acc.is-open .now-acc__chevron {
    transform: rotate(180deg);
}
.now-acc__panel {
    display: none;
    padding: 0 8px 10px;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.now-acc.is-open .now-acc__panel {
    display: block;
}

.now-reader__toc-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 9px 10px;
    margin: 4px 0 0;
    cursor: pointer;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.12s ease;
}
.now-reader__toc-item:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.now-reader__toc-item.is-active {
    background: color-mix(in srgb, var(--navy) 10%, transparent);
    color: var(--navy);
    font-weight: 600;
}
.now-reader__content {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 24px 28px 28px;
    min-height: 220px;
    scroll-margin-top: 88px;
}
.now-reader__placeholder,
.now-reader__loading,
.now-reader__error,
.now-reader__locked-note {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.now-reader__error { color: #b91c1c; }
.now-reader__section {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy);
}
.now-reader__title {
    margin: 0 0 18px;
    font-size: clamp(22px, 2.8vw, 28px);
    line-height: 1.25;
}
.now-reader__body {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text);
}
.now-reader__body p { margin: 0 0 1em; }
.now-reader__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.now-reader__progress {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}
.now-reader__locked-note { margin-bottom: 8px; }

@media (max-width: 900px) {
    .now-reader__content { padding: 18px 16px 22px; }
    .now-reader__nav { flex-wrap: wrap; justify-content: center; }
}

/* ---------- 404 error page ---------- */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 280px);
    padding: 56px 20px 72px;
}

.error-404__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px 40px;
    background:
        radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--red) 10%, transparent) 0%, transparent 55%),
        linear-gradient(180deg, color-mix(in srgb, var(--navy) 4%, var(--surface)) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: error404-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.error-404__panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--red) 100%);
}

.error-404__code {
    margin: 0 0 8px;
    font-size: clamp(72px, 14vw, 120px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: transparent;
    background: linear-gradient(135deg, var(--navy) 20%, var(--red) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: error404-code 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.error-404__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    animation: error404-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.error-404__lead {
    margin: 0 auto 28px;
    max-width: 46ch;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text-2);
    animation: error404-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    animation: error404-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.error-404__actions .btn {
    min-width: 150px;
}

.error-404__links {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    animation: error404-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.error-404__links-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.error-404__links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.error-404__links-list a {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.15s ease;
}

.error-404__links-list a:hover {
    color: var(--red);
}

html[data-theme="dark"] .error-404__links-list a {
    color: var(--text);
}

html[data-theme="dark"] .error-404__links-list a:hover {
    color: #ff6b72;
}

@keyframes error404-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes error404-code {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 640px) {
    .error-404 {
        min-height: auto;
        padding: 36px 0 56px;
    }

    .error-404__panel {
        padding: 36px 22px 28px;
        border-radius: 12px;
    }

    .error-404__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-404__panel,
    .error-404__code,
    .error-404__title,
    .error-404__lead,
    .error-404__actions,
    .error-404__links {
        animation: none;
    }
}
