:root {
    --bg: #07131d;
    --bg-soft: #0d1d2a;
    --bg-panel: rgba(255,255,255,.06);
    --surface: #0f1f2d;
    --surface-2: #12283a;
    --surface-3: #17344a;
    --card: rgba(15,31,45,.92);
    --card-2: rgba(18,40,58,.96);
    --text: #e7f2fb;
    --text-soft: #adc4d4;
    --muted: #8ca6b7;
    --line: rgba(255,255,255,.12);
    --line-strong: rgba(255,255,255,.18);
    --brand: #14b8a6;
    --brand-2: #22c55e;
    --brand-3: #38bdf8;
    --brand-ink: #07211b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #38bdf8;
    --shadow: 0 22px 60px rgba(2, 12, 23, .32);
    --radius: 22px;
    --radius-sm: 16px;
    --max: 1320px;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #eef6fb;
    --bg-soft: #f7fbfe;
    --bg-panel: rgba(255,255,255,.78);
    --surface: #ffffff;
    --surface-2: #f7fbfe;
    --surface-3: #eef7fb;
    --card: rgba(255,255,255,.94);
    --card-2: rgba(250,253,255,.98);
    --text: #102232;
    --text-soft: #4c6478;
    --muted: #6d8597;
    --line: rgba(16,34,50,.10);
    --line-strong: rgba(16,34,50,.16);
    --brand-ink: #062821;
    --shadow: 0 20px 60px rgba(2, 12, 23, .12);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 26%),
        radial-gradient(circle at top right, rgba(34,197,94,.10), transparent 22%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap, .container-fluid { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.page-main { padding-bottom: 3.2rem; }
.page-content-shell { padding-top: 1.2rem; }
.site-header {
    position: sticky; top: 0; z-index: 60;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--line);
}
.nav-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 78px;
}
.brand-link { display: flex; flex-direction: column; gap: .18rem; }
.brand-top {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .18em;
    color: var(--text-soft);
}
.brand-name { font-size: 1.15rem; font-weight: 800; }
.nav-links { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.nav-links a {
    padding: .62rem .9rem; border-radius: 999px; color: var(--text-soft);
    border: 1px solid transparent; transition: .18s ease;
}
.nav-links a:hover, .nav-links a.is-active {
    color: var(--text); background: var(--bg-panel); border-color: var(--line);
}
.theme-toggle {
    appearance: none; border: 1px solid var(--line); background: var(--bg-panel); color: var(--text);
    border-radius: 999px; min-height: 44px; padding: 0 .95rem; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: .55rem;
}
.theme-toggle:hover { transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
    appearance: none; display: none; align-items: center; justify-content: center; flex-direction: column;
    width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
    background: var(--bg-panel); color: var(--text); cursor: pointer; gap: 5px;
}
.nav-toggle span {
    display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-drawer {
    display: none; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
}
.mobile-nav-inner { padding: .85rem 0 1rem; }
.mobile-nav-links { display: grid; gap: .5rem; margin-bottom: .85rem; }
.mobile-nav-links a {
    display: block; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line);
    background: rgba(255,255,255,.04); color: var(--text);
}
.mobile-nav-links a.is-active { background: rgba(56,189,248,.14); border-color: rgba(56,189,248,.28); }
.mobile-theme-toggle { width: 100%; justify-content: center; }
.back-to-top {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 55; width: 46px; height: 46px;
    border-radius: 999px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-3), var(--brand));
    color: #fff; box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-open { overflow: hidden; }
.page-hero { padding: 2.1rem 0 0; }
.compact-hero .page-hero-card { padding: 1.6rem 1.7rem; }
.page-hero-card, .soft-card {
    background:
        radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 28%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem;
    padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700;
    background: rgba(20,184,166,.14); color: #ccfbf1; border: 1px solid rgba(20,184,166,.22);
}
:root[data-theme="light"] .eyebrow { color: #115e59; }
.page-hero-card h1, .hero h1 {
    margin: 0 0 .85rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em;
}
.page-hero-card p, .hero p { color: var(--text-soft); line-height: 1.75; font-size: 1.02rem; }
.hero {
    position: relative; overflow: hidden; margin-top: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(56,189,248,.24), transparent 26%),
        radial-gradient(circle at 85% 10%, rgba(34,197,94,.18), transparent 22%),
        linear-gradient(135deg, #07131d 0%, #0b2334 52%, #0a3f3a 100%);
    color: #fff;
}
.hero-inner { padding: 4.8rem 0 4rem; display: grid; grid-template-columns: 1.25fr .9fr; gap: 2rem; align-items: center; }
.hero-panel {
    padding: 1.15rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.04) 100%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.7rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.stat { padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; display: block; margin-bottom: .35rem; }
.stat-label { color: #c8dde9; font-size: .95rem; }
.section { padding: 4.2rem 0; }
.section-head { margin-bottom: 1.6rem; }
.section-kicker {
    display: inline-block; margin-bottom: .75rem; padding: .35rem .7rem; border-radius: 999px;
    background: rgba(56,189,248,.14); color: var(--info); font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
}
.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-card, .highlight-card, .faq-item, .cta-band, .soft-card {
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
}
.module-card, .highlight-card, .faq-item { padding: 1.35rem; }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .95rem; }
.module-title { font-size: 1.25rem; font-weight: 800; margin: 0; }
.module-desc { color: var(--text-soft); line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.15rem; }
.tag, .pill {
    display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem;
    border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); font-size: .82rem;
    background: rgba(255,255,255,.04);
}
.steps { display: grid; gap: .9rem; }
.step { display: flex; gap: .85rem; align-items: flex-start; }
.step-number {
    width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--brand-ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px;
}
.cta-band { padding: 1.5rem; }
.footer-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 2.4rem;
    border-top: 1px solid var(--line);
}
.footer-mini { color: var(--muted); font-size: .92rem; line-height: 1.6; }

.row { display: flex; flex-wrap: wrap; margin-left: -.75rem; margin-right: -.75rem; }
.row > [class*="col-"] { padding-left: .75rem; padding-right: .75rem; width: 100%; }
.col-12, .col-lg-12, .col-md-12, .col-sm-12 { width: 100%; }
@media (min-width: 576px) {
  .col-sm-6 { width: 50%; }
}
@media (min-width: 768px) {
  .col-md-2 { width: 16.6667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; }
  .col-md-8 { width: 66.6667%; }
  .col-md-9 { width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-5 { width: 41.6667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-8 { width: 66.6667%; }
  .col-lg-9 { width: 75%; }
}
@media (min-width: 1200px) {
  .col-xl-3 { width: 25%; }
  .col-xl-4 { width: 33.3333%; }
  .col-xl-5 { width: 41.6667%; }
  .col-xl-6 { width: 50%; }
  .col-xl-8 { width: 66.6667%; }
  .col-xl-9 { width: 75%; }
  .col-xl-12 { width: 100%; }
}

.card {
    position: relative; border-radius: var(--radius-sm); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.25rem;
}
.card-header, .card-footer { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.card-footer { border-bottom: 0; border-top: 1px solid var(--line); }
.card-body { padding: 1.2rem; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.card-tools { display: flex; align-items: center; gap: .75rem; }
.card-outline.card-primary { border-top: 3px solid var(--brand-3); }
.card-outline.card-success { border-top: 3px solid var(--success); }
.card-outline.card-warning { border-top: 3px solid var(--warning); }
.card-outline.card-danger { border-top: 3px solid var(--danger); }
.card-outline.card-info { border-top: 3px solid var(--info); }
.card-outline.card-secondary { border-top: 3px solid #94a3b8; }
.card-outline.card-dark { border-top: 3px solid #334155; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: 0 1rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; font-weight: 800; transition: .18s ease; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.btn-success { background: linear-gradient(135deg, #22c55e, #84cc16); color: #07210e; }
.btn-info { background: linear-gradient(135deg, #38bdf8, #60a5fa); color: #071f2b; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #facc15); color: #2b1905; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f97316); color: #250806; }
.btn-secondary, .btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
:root[data-theme="light"] .btn-secondary, :root[data-theme="light"] .btn-ghost { background: rgba(255,255,255,.9); }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-light {
    background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-outline-primary:hover { background: rgba(56,189,248,.12); }
.btn-outline-secondary:hover, .btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-link { background: transparent; border: 0; color: var(--text); font-weight: 700; }

.form-group { margin-bottom: 1rem; }
label { display: inline-block; font-weight: 700; margin-bottom: .45rem; color: var(--text); }
.form-control, select, input[type="text"], input[type="search"], textarea {
    width: 100%; min-height: 48px; padding: .8rem .95rem; border-radius: 14px; border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); outline: none;
}
.form-control::placeholder, input::placeholder, textarea::placeholder { color: var(--muted); }
.form-control:focus, select:focus, input:focus, textarea:focus {
    border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 4px rgba(56,189,248,.12);
}

.alert {
    border-radius: 16px; padding: 1rem 1.1rem; border: 1px solid var(--line); margin-bottom: 1rem;
    background: rgba(255,255,255,.04); color: var(--text);
}
.alert-info { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.22); }
.alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); }
.alert-warning { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.24); }
.alert-danger { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.24); }
.badge, .meta-badge {
    display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .42rem .75rem;
    font-weight: 800; font-size: .82rem; border: 1px solid transparent;
}
.badge-primary, .meta-badge { background: rgba(56,189,248,.14); color: var(--info); border-color: rgba(56,189,248,.18); }
.badge-success { background: rgba(34,197,94,.14); color: #86efac; border-color: rgba(34,197,94,.18); }
.badge-warning { background: rgba(245,158,11,.14); color: #fde68a; border-color: rgba(245,158,11,.18); }
.badge-danger { background: rgba(239,68,68,.14); color: #fca5a5; border-color: rgba(239,68,68,.18); }
.progress { width: 100%; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress-bar { height: 100%; min-height: 10px; background: linear-gradient(135deg, var(--brand-3), var(--brand)); border-radius: inherit; }
.table-responsive { width: 100%; overflow: auto; }
.table { width: 100%; border-collapse: collapse; color: var(--text); }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .85rem .9rem; vertical-align: top; }
.table thead th { text-align: left; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.table-striped tbody tr:nth-child(odd) { background: rgba(255,255,255,.03); }
:root[data-theme="light"] .table-striped tbody tr:nth-child(odd) { background: rgba(16,34,50,.03); }
.small-box {
    position: relative; overflow: hidden; border-radius: var(--radius-sm); padding: 1.2rem; box-shadow: var(--shadow); color: #fff; margin-bottom: 1rem;
}
.small-box .inner h3 { margin: 0 0 .3rem; font-size: 2rem; }
.small-box .inner p { margin: 0; color: rgba(255,255,255,.86); }
.small-box .icon { position: absolute; right: 1rem; bottom: .7rem; font-size: 2.2rem; opacity: .18; }
.bg-info { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.bg-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.bg-light, .bg-white { background: rgba(255,255,255,.04) !important; }
:root[data-theme="light"] .bg-light, :root[data-theme="light"] .bg-white { background: rgba(16,34,50,.03) !important; }
.shadow-sm { box-shadow: var(--shadow); }
.rounded { border-radius: 14px; }
.text-center { text-align: center; }
.text-right, .text-md-right { text-align: right; }
.text-left { text-align: left; }
.text-muted, .small, .text-sm { color: var(--text-soft); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-md-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.p-0 { padding: 0 !important; }
.p-4 { padding: 1.5rem !important; }
.p-md-5 { padding: 2rem !important; }
.pt-2 { padding-top: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .35rem !important; }
.mb-2 { margin-bottom: .7rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.4rem !important; }
.mt-2 { margin-top: .7rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.4rem !important; }
.mr-1 { margin-right: .35rem !important; }
.mr-2 { margin-right: .65rem !important; }
.ml-2 { margin-left: .65rem !important; }
.custom-control { display: flex; align-items: center; gap: .5rem; min-height: 48px; }
.custom-control-input { width: 18px; height: 18px; accent-color: var(--brand); }
.custom-control-label { margin: 0; }
.breadcrumb { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0; color: var(--text-soft); }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; margin-right: .4rem; color: var(--muted); }
.content-header { padding: 0 0 1rem; }
.rule-list, .list-unstyled { padding-left: 1.1rem; }
.rule-list li, .list-unstyled li { margin-bottom: .45rem; }
code { background: rgba(255,255,255,.08); padding: .15rem .35rem; border-radius: 6px; font-family: Consolas, monospace; }
:root[data-theme="light"] code { background: rgba(16,34,50,.08); }
.accordion .collapse { display: none; }
.accordion .collapse.show { display: block; }
.accordion .card-header { cursor: pointer; }
.site-footer { padding-top: 1rem; }

@media (max-width: 1100px) {
    .hero-inner, .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .nav-row { min-height: 72px; padding: .75rem 0; }
    .nav-links, .desktop-theme-toggle { display: none; }
    .nav-toggle, .mobile-nav-drawer { display: block; }
    .nav-actions { margin-left: auto; }
    .brand-link { min-width: 0; }
    .brand-top { font-size: .72rem; letter-spacing: .16em; }
    .brand-name { font-size: 1.05rem; }
    .mobile-nav-drawer.is-open { display: block; }
}
@media (max-width: 768px) {
    .page-hero { padding-top: 1.4rem; }
    .hero-inner { padding: 3rem 0; }
    .footer-row, .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .btn { width: 100%; }
    .text-md-right, .justify-content-md-end { text-align: left; justify-content: flex-start; }
}
@media (max-width: 560px) {
    body { font-size: 15px; }
    .wrap, .container-fluid { width: min(calc(100% - 1rem), var(--max)); }
    .nav-row { min-height: 68px; }
    .brand-top { font-size: .68rem; }
    .brand-name { font-size: .98rem; }
    .page-hero-card h1, .hero h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
    .hero-stats { grid-template-columns: 1fr; }
    .back-to-top { right: .85rem; bottom: .85rem; }
}

.bg-primary { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.text-success { color: #86efac; }
.border { border: 1px solid var(--line) !important; }
.border-0 { border: 0 !important; }
.shadow-lg { box-shadow: 0 28px 70px rgba(2,12,23,.42); }
.d-none { display: none !important; }
.align-items-start { align-items: flex-start; }
.mt-auto { margin-top: auto !important; }
.mb-sm-0, .mb-lg-0, .mt-md-0 { margin-bottom: 0 !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.btn-sm { min-height: 38px; padding: 0 .85rem; font-size: .92rem; }
.btn-group { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-group-sm .btn { min-height: 36px; font-size: .9rem; }
.card-img-top { display: block; width: 100%; height: auto; }
.table-hover tbody tr:hover { background: rgba(56,189,248,.06); }
@media (min-width: 1200px) { .col-xl-2 { width: 16.6667%; } .col-xl-3 { width: 25%; } .col-xl-4 { width: 33.3333%; } .col-xl-6 { width: 50%; } .col-xl-9 { width: 75%; } }


.form-control, select.form-control, input.form-control { width: 100%; }


/* Horgász kötések modul */
.hk-module .small-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    min-height: 132px;
    padding: 1.35rem 1.2rem;
}
.hk-module .small-box .inner h3 {
    margin: 0 0 .35rem;
    font-size: clamp(2rem, 3vw, 2.4rem);
    line-height: 1;
    font-weight: 800;
}
.hk-module .small-box .inner p {
    margin: 0;
    opacity: .95;
    font-size: 1rem;
}
.hk-module .small-box .icon {
    position: absolute;
    right: 1rem;
    bottom: .85rem;
    font-size: 2.2rem;
    opacity: .18;
}
.hk-module .small-box.bg-info {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #effbff;
}
.hk-module .small-box.bg-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #f3fff7;
}
.hk-module .small-box.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #2e1b02;
}
.hk-module .hk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.hk-module .hk-grid-item { min-width: 0; }
.hk-module .hk-card {
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.hk-module .hk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(2, 12, 23, .34);
}
.hk-module .hk-card {
    cursor: pointer;
    overflow: hidden;
}
.hk-module .hk-card-body {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 1rem;
}
.hk-module .hk-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    flex-wrap: wrap;
}
.hk-module .hk-card-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
.hk-module .hk-card-summary {
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.65em;
}
.hk-module .hk-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    min-height: 2rem;
}
.hk-module .hk-card-action {
    margin-top: auto;
    padding-top: .15rem;
}
.hk-module .hk-card .badge {
    white-space: nowrap;
}
.hk-module .hk-card .btn {
    pointer-events: auto;
}
.hk-module .hk-card:focus-visible {
    outline: 2px solid rgba(56,189,248,.75);
    outline-offset: 2px;
}
.hk-module .hk-card-img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: rgba(255,255,255,.04);
}
.hk-module .hk-badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .6rem;
    border-radius: 999px;
    background: rgba(56,189,248,.10);
    border: 1px solid rgba(56,189,248,.14);
    color: var(--text-soft);
    font-size: .78rem;
    margin: 0 .35rem .35rem 0;
}
.hk-module .hk-empty-state {
    min-height: 170px;
    display: flex;
    align-items: center;
}
.hk-module .hk-detail-image-wrap {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.04);
    border-radius: 14px;
    padding: .65rem;
}
.hk-module .hk-related .badge {
    margin: 0 .35rem .35rem 0;
    cursor: pointer;
    font-size: .8rem;
}
.hk-module .hk-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
}
.hk-module .hk-modal.hk-open { display: block; }
.hk-module .hk-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,12,23,.72);
}
.hk-module .hk-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.hk-module .hk-modal-dialog .card-header {
    position: relative;
    padding-right: 4.25rem;
}
.hk-module .hk-modal-dialog .close {
    position: absolute;
    top: .75rem;
    right: .85rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ff5f6d;
    opacity: 1;
    float: none;
    padding: 0;
    margin: 0;
    text-shadow: none;
    box-shadow: none;
    line-height: 1;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.hk-module .hk-modal-dialog .close span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
}
.hk-module .hk-modal-dialog .close:hover,
.hk-module .hk-modal-dialog .close:focus-visible {
    background: rgba(255,95,109,.12);
    color: #ff7b86;
    outline: none;
    transform: scale(1.04);
}
.hk-module .hk-modal-dialog .close:active {
    transform: scale(.98);
}
:root[data-theme="light"] .hk-module .hk-modal-dialog .close:hover,
:root[data-theme="light"] .hk-module .hk-modal-dialog .close:focus-visible {
    background: rgba(220,38,38,.10);
    color: #dc2626;
}

.hk-module .hk-modal-body {
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}
@media (max-width: 1199.98px) {
    .hk-module .hk-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .hk-module .hk-card-grid {
        grid-template-columns: 1fr;
    }
    .hk-module .hk-card-img {
        height: 180px;
    }
    .hk-module .hk-modal-dialog {
        width: calc(100vw - 1rem);
        margin: .5rem auto;
    }
    
.hk-module .hk-modal-dialog .card-header {
    position: relative;
    padding-right: 4.25rem;
}
.hk-module .hk-modal-dialog .close {
    position: absolute;
    top: .75rem;
    right: .85rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ff5f6d;
    opacity: 1;
    float: none;
    padding: 0;
    margin: 0;
    text-shadow: none;
    box-shadow: none;
    line-height: 1;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.hk-module .hk-modal-dialog .close span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
}
.hk-module .hk-modal-dialog .close:hover,
.hk-module .hk-modal-dialog .close:focus-visible {
    background: rgba(255,95,109,.12);
    color: #ff7b86;
    outline: none;
    transform: scale(1.04);
}
.hk-module .hk-modal-dialog .close:active {
    transform: scale(.98);
}
:root[data-theme="light"] .hk-module .hk-modal-dialog .close:hover,
:root[data-theme="light"] .hk-module .hk-modal-dialog .close:focus-visible {
    background: rgba(220,38,38,.10);
    color: #dc2626;
}

.hk-module .hk-modal-body {
        max-height: calc(100vh - 6rem);
    }
}


/* Globális publikus layout grid utilok */
.hs-grid { display: grid; gap: 1.25rem; }
.hs-grid-4-2-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hs-grid-3-2-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-grid-2-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-grid-sidebar { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); align-items: start; }
.hs-grid-item { min-width: 0; }
.hs-section-title { margin: 0 0 .4rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.hs-section-subtitle { margin: 0; color: var(--text-soft); }
.hs-tight-card .card-body { padding: 1rem; }
.hk-module .small-box { margin-bottom: 0; }
.hk-module .hk-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199.98px) {
  .hs-grid-4-2-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-grid-3-2-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-grid-sidebar { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
  .hs-grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .hs-grid-4-2-1, .hs-grid-3-2-1, .hs-grid-2-1 { grid-template-columns: 1fr; }
}

/* === Halfelismerő játék === */
.soft-card--quiz {
    padding: clamp(1rem, 1.3vw, 1.35rem);
}

.fish-game-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.fish-selection-bar {
    display: grid;
    grid-template-columns: 1.2fr .95fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 94%, transparent), color-mix(in srgb, var(--card-2) 98%, transparent));
}

.fish-selection-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: .9rem;
}

.fish-mini-note {
    color: var(--text-soft);
    font-size: .92rem;
    line-height: 1.55;
}

.fish-mode-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.fish-mode-card {
    height: 100%;
    cursor: pointer;
    border-radius: 22px;
    padding: 1.05rem;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(56,189,248,.10), transparent 26%),
        linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--card-2) 98%, transparent));
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fish-mode-card:hover,
.fish-mode-card:focus-visible,
.fish-mode-card.active {
    transform: translateY(-2px);
    border-color: rgba(56,189,248,.42);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.fish-mode-card h5 {
    margin: 0 0 .6rem;
    font-size: 1.12rem;
    line-height: 1.2;
}

.fish-mode-card p {
    margin: 0 0 .8rem;
    color: var(--text-soft);
    line-height: 1.65;
}

.fish-mode-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: .8rem;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1px solid rgba(56,189,248,.24);
    background: rgba(56,189,248,.14);
    color: var(--info);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.fish-hud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    margin-bottom: 1rem;
}

.fish-hud-card {
    padding: .95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 94%, transparent), color-mix(in srgb, var(--card-2) 99%, transparent));
    box-shadow: var(--shadow);
}

.fish-hud-label {
    display: block;
    margin-bottom: .2rem;
    color: var(--text-soft);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}

.fish-hud-value {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text);
}

.fish-state-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size: .9rem;
    font-weight: 800;
    white-space: nowrap;
}

:root[data-theme="light"] .fish-state-pill {
    background: rgba(15,23,42,.04);
}

.fish-state-pill--progress {
    background: rgba(56,189,248,.14);
    border-color: rgba(56,189,248,.24);
    color: var(--info);
}

.fish-state-pill--lives {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.22);
    color: #fca5a5;
}

:root[data-theme="light"] .fish-state-pill--lives {
    color: #b91c1c;
}

.fish-state-pill--theme {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.24);
    color: #86efac;
}

:root[data-theme="light"] .fish-state-pill--theme {
    color: #166534;
}

.fish-lives {
    letter-spacing: .08em;
    font-size: 1.15rem;
}

.fish-stage {
    padding: 1.1rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.08), transparent 26%),
        linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--card-2) 99%, transparent));
    box-shadow: var(--shadow);
}

.fish-image-wrap {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 98%, transparent));
    overflow: hidden;
}

.fish-image-wrap img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(15,23,42,.24);
}

.fish-badge-floating {
    position: absolute;
    top: .9rem;
    left: .9rem;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .8rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, .76);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    backdrop-filter: blur(6px);
}

:root[data-theme="light"] .fish-badge-floating {
    background: rgba(15, 23, 42, .70);
}

.fish-statement-box,
.fish-feedback-card {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--surface) 98%, transparent));
}

.fish-statement-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: .8rem;
    padding: 0 .75rem;
    border-radius: 999px;
    background: rgba(56,189,248,.14);
    color: var(--info);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.fish-statement-text {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 800;
}

.fish-answers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.fish-answer-btn,
.soft-card--quiz .answer-btn,
.soft-card--quiz .btn.answer-btn {
    display: inline-flex;
    width: 100%;
    min-height: 72px;
    justify-content: flex-start;
    align-items: center;
    gap: .85rem;
    text-align: left;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--card-2) 99%, transparent));
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
    box-shadow: var(--shadow);
    white-space: normal;
}

.answer-btn__letter {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .35);
    background: rgba(15, 23, 42, .55);
    color: #e0f2fe;
    font-size: .88rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.answer-btn__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

:root[data-theme='light'] .answer-btn__letter,
body.light .answer-btn__letter {
    background: rgba(255,255,255,.9);
    color: #0f172a;
    border-color: rgba(2, 132, 199, .28);
}

.fish-answer-btn:hover,
.fish-answer-btn:focus-visible,
.soft-card--quiz .answer-btn:hover,
.soft-card--quiz .answer-btn:focus-visible,
.soft-card--quiz .btn.answer-btn:hover,
.soft-card--quiz .btn.answer-btn:focus-visible {
    border-color: rgba(56,189,248,.42);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 96%, transparent), color-mix(in srgb, var(--card) 98%, transparent));
    color: var(--text);
}

.fish-answer-btn.is-correct,
.soft-card--quiz .answer-btn.btn-success,
.soft-card--quiz .btn.answer-btn.btn-success {
    border-color: rgba(34,197,94,.9);
    background: rgba(34,197,94,.14);
    color: var(--text);
    box-shadow: 0 0 0 2px rgba(34,197,94,.32), 0 18px 36px rgba(34,197,94,.12);
}

.fish-answer-btn.is-wrong,
.soft-card--quiz .answer-btn.btn-danger,
.soft-card--quiz .btn.answer-btn.btn-danger {
    border-color: rgba(239,68,68,.92);
    background: rgba(239,68,68,.12);
    color: var(--text);
    box-shadow: 0 0 0 2px rgba(239,68,68,.26), 0 18px 36px rgba(239,68,68,.12);
}

.soft-card--quiz .answer-btn.btn-success .answer-btn__letter,
.soft-card--quiz .btn.answer-btn.btn-success .answer-btn__letter {
    border-color: rgba(34,197,94,.9);
    background: rgba(34,197,94,.18);
    color: #dcfce7;
}

.soft-card--quiz .answer-btn.btn-danger .answer-btn__letter,
.soft-card--quiz .btn.answer-btn.btn-danger .answer-btn__letter {
    border-color: rgba(239,68,68,.92);
    background: rgba(239,68,68,.16);
    color: #fee2e2;
}

.soft-card--quiz .answer-btn.btn-outline-secondary,
.soft-card--quiz .btn.answer-btn.btn-outline-secondary {
    border-color: var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--card-2) 99%, transparent));
    color: var(--text-soft);
}

.fish-cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

#quizResult .soft-card,
#quizResult .card,
#quizResult > div {
    border-radius: 20px;
}

@media (max-width: 1399.98px) {
    .fish-mode-grid,
    .fish-hud {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .fish-selection-bar {
        grid-template-columns: 1fr;
    }

    .fish-mode-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fish-hud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .soft-card--quiz {
        padding: .85rem;
    }

    .fish-selection-controls,
    .fish-mode-grid,
    .fish-hud,
    .fish-answers-grid {
        grid-template-columns: 1fr;
    }

    .fish-image-wrap {
        min-height: 280px;
        padding: .8rem;
    }

    .fish-image-wrap img {
        max-height: 260px;
    }

    .fish-selection-bar,
    .fish-stage {
        padding: .95rem;
    }

    .fish-badge-floating {
        position: static;
        margin-bottom: .8rem;
    }

    .fish-answer-btn,
    .soft-card--quiz .answer-btn,
    .soft-card--quiz .btn.answer-btn {
        min-height: 64px;
    }
}


.soft-card--quiz .answer-btn::after,
.soft-card--quiz .btn.answer-btn::after {
    content: none !important;
    display: none !important;
}


/* ---- Header + mobile navigation + logo ---- */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: .72rem;
    min-width: 0;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    gap: .14rem;
    min-width: 0;
}
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 42px;
    filter: drop-shadow(0 6px 14px rgba(2, 12, 23, .22));
}
.header-actions {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex: 0 0 auto;
}
.desktop-nav { flex: 1 1 auto; }
.desktop-theme-toggle { flex: 0 0 auto; }
.mobile-menu-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--bg-panel);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.mobile-menu-toggle span {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.mobile-menu-toggle span:nth-child(1) { top: 18px; }
.mobile-menu-toggle span:nth-child(2) { top: 24px; }
.mobile-menu-toggle span:nth-child(3) { top: 30px; }
.mobile-menu-toggle.is-open span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(2, 12, 23, .48);
    backdrop-filter: blur(6px);
}
.mobile-nav-panel {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 96%, transparent), color-mix(in srgb, var(--surface) 98%, transparent));
    box-shadow: 0 20px 40px rgba(2, 12, 23, .36);
}
.mobile-nav-inner {
    padding: 1rem 0 1.15rem;
}
.mobile-nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: .8rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255,255,255,.03);
    text-align: center;
    font-weight: 700;
}
.mobile-nav-links a.is-active {
    background: color-mix(in srgb, var(--brand-3) 18%, transparent);
    border-color: rgba(56,189,248,.28);
}
.mobile-theme-toggle {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}
body.mobile-menu-open {
    overflow: hidden;
}
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 85;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20,184,166,.88), rgba(56,189,248,.9));
    color: #062821;
    box-shadow: 0 12px 30px rgba(2, 12, 23, .28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover { filter: brightness(1.04); }

@media (max-width: 920px) {
    .nav-row {
        min-height: 78px;
    }
    .desktop-nav,
    .desktop-theme-toggle {
        display: none;
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .brand-top {
        font-size: .75rem;
        letter-spacing: .14em;
    }
    .brand-name {
        font-size: 1.05rem;
    }
}

@media (max-width: 520px) {
    .wrap, .container-fluid {
        width: min(calc(100% - 1rem), var(--max));
    }
    .nav-row {
        gap: .7rem;
    }
    .brand-link {
        gap: .55rem;
        min-width: 0;
    }
    .brand-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .brand-copy {
        min-width: 0;
    }
    .brand-top {
        font-size: .7rem;
        letter-spacing: .12em;
    }
    .brand-name {
        font-size: .98rem;
    }
    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
    .mobile-nav-panel {
        top: 78px;
    }
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }
}


/* --- Logo inline before text: final mobile/desktop fix --- */
.site-header .brand-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: .72rem !important;
    min-width: 0;
}
.site-header .brand-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: .12rem !important;
    min-width: 0;
}
.site-header .brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    object-fit: contain;
}
@media (max-width: 920px) {
    .site-header .brand-link {
        flex-direction: row !important;
        align-items: center !important;
        gap: .62rem !important;
    }
    .site-header .brand-copy {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .site-header .brand-logo {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }
}
@media (max-width: 520px) {
    .site-header .brand-link {
        gap: .55rem !important;
    }
    .site-header .brand-logo {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }
    .site-header .brand-top {
        font-size: .68rem !important;
        line-height: 1.05 !important;
    }
    .site-header .brand-name {
        font-size: .98rem !important;
        line-height: 1.05 !important;
    }
}
