/* ── Reset & Base ────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:#f4f6fb;color:#1a1f2e;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:#1a3a5c;text-decoration:none}
a:hover{text-decoration:underline}
ul,ol{padding-left:1.4em}

/* ── Layout ─────────────────────────────────────────────────── */
.container{max-width:1080px;margin:0 auto;padding:0 1.25rem}
.page-wrap{max-width:780px;margin:2rem auto;padding:0 1.25rem}

/* ── Header ─────────────────────────────────────────────────── */
.site-header{background:#1a3a5c;color:#fff;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:58px;gap:1rem}
.logo{font-size:1.15rem;font-weight:700;color:#fff;display:flex;align-items:center;gap:.4rem;text-decoration:none}
.logo span{color:#fff}

/* ── Nav ─────────────────────────────────────────────────────── */
.main-nav{display:flex;align-items:center;gap:.2rem}
.main-nav a,.nav-drop-btn{color:rgba(255,255,255,.85);font-size:.875rem;font-weight:500;padding:.4rem .7rem;border-radius:5px;transition:background .15s,color .15s;text-decoration:none;border:none;background:none;cursor:pointer}
.main-nav a:hover,.nav-drop-btn:hover,.main-nav a.active{background:rgba(255,255,255,.12);color:#fff}
.nav-cta{background:#2e86ab!important;color:#fff!important;padding:.4rem .9rem!important;border-radius:20px!important;font-weight:600!important}
.nav-cta:hover{background:#2473941!important;opacity:.9}
.nav-toggle{display:none;background:none;border:none;color:#fff;font-size:1.4rem;cursor:pointer;padding:.25rem .4rem}
.nav-dropdown{position:relative}
.nav-drop-menu{display:none;position:absolute;top:100%;right:0;background:#fff;border:1px solid #d4dae8;border-radius:8px;min-width:170px;box-shadow:0 6px 20px rgba(0,0,0,.12);z-index:200;padding:.4rem 0}
.nav-drop-menu a{display:block;padding:.5rem 1rem;font-size:.875rem;color:#1a1f2e!important;white-space:nowrap}
.nav-drop-menu a:hover{background:#f4f6fb}
.nav-dropdown.active .nav-drop-menu{display:block}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero{background:linear-gradient(135deg,#1a3a5c 0%,#0f2440 60%,#1a3a5c 100%);color:#fff;padding:4rem 0 3.5rem;text-align:center}
.hero h1{font-size:clamp(1.8rem,4vw,2.7rem);font-weight:700;line-height:1.2;margin-bottom:1rem}
.hero p{font-size:1.1rem;opacity:.85;max-width:600px;margin:0 auto 2rem}
.hero-badges{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-bottom:2rem}
.hero-badge{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:.35rem .9rem;font-size:.82rem;color:rgba(255,255,255,.9)}
.disclaimer-banner{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:.75rem 1.25rem;font-size:.82rem;opacity:.85;max-width:640px;margin:0 auto;line-height:1.5}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn{display:inline-block;padding:.7rem 1.6rem;border-radius:6px;font-weight:600;font-size:.95rem;cursor:pointer;border:2px solid transparent;transition:all .15s;text-decoration:none}
.btn-primary{background:#2e86ab;color:#fff;border-color:#2e86ab}
.btn-primary:hover{background:#245d7a;border-color:#245d7a;text-decoration:none}
.btn-large{padding:.9rem 2.2rem;font-size:1.05rem;border-radius:30px}
.btn-outline{background:transparent;border-color:#1a3a5c;color:#1a3a5c}
.btn-outline:hover{background:#1a3a5c;color:#fff}
.btn-sm{padding:.4rem .9rem;font-size:.82rem}
.btn-white{background:#fff;color:#1a3a5c;font-weight:700}
.btn-white:hover{background:#f0f4f8;text-decoration:none}

/* ── Cards ───────────────────────────────────────────────────── */
.card{background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.07);padding:1.5rem;border:1px solid #e8ecf4}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;margin:2rem 0}
.card-sm{padding:1.1rem 1.25rem}
.card h3{font-size:1.05rem;margin-bottom:.5rem;color:#1a3a5c}
.card p{font-size:.9rem;color:#5a6478;line-height:1.6}
.card a{color:#1a3a5c;font-weight:600;font-size:.88rem}
.card-meta{font-size:.78rem;color:#8a95a8;margin-bottom:.5rem}

/* ── Section ─────────────────────────────────────────────────── */
.section{padding:3rem 0}
.section-title{font-size:1.5rem;font-weight:700;color:#1a3a5c;margin-bottom:1.5rem}
.section-intro{color:#5a6478;max-width:640px;margin-bottom:2rem;font-size:1rem}
.section-bg{background:#eef2f8}

/* ── Test info strip ─────────────────────────────────────────── */
.test-strip{display:flex;gap:2rem;justify-content:center;flex-wrap:wrap;margin:2rem 0}
.test-stat{text-align:center}
.test-stat .num{font-size:2rem;font-weight:700;color:#1a3a5c}
.test-stat .lbl{font-size:.82rem;color:#5a6478}

/* ── Article page ────────────────────────────────────────────── */
.article-header{margin-bottom:2rem}
.article-header .kat-badge{display:inline-block;background:#eef2f8;color:#1a3a5c;border-radius:20px;padding:.25rem .8rem;font-size:.78rem;font-weight:600;margin-bottom:.75rem}
.article-header h1{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.25;margin-bottom:.75rem}
.article-meta{font-size:.82rem;color:#8a95a8}
.article-body{line-height:1.8;font-size:1rem}
.article-body h2{font-size:1.35rem;font-weight:700;margin:2rem 0 .75rem;color:#1a3a5c}
.article-body h3{font-size:1.1rem;font-weight:600;margin:1.5rem 0 .5rem;color:#1a1f2e}
.article-body p{margin-bottom:1.1rem}
.article-body ul,.article-body ol{margin:.5rem 0 1rem;padding-left:1.5rem}
.article-body li{margin-bottom:.4rem}
.article-body blockquote{border-left:3px solid #2e86ab;padding:.5rem 1rem;background:#f4f6fb;margin:1.5rem 0;font-style:italic;color:#5a6478}
.article-body table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.9rem}
.article-body th{background:#1a3a5c;color:#fff;padding:.6rem .9rem;text-align:left}
.article-body td{padding:.55rem .9rem;border-bottom:1px solid #e8ecf4}
.article-body tr:nth-child(even) td{background:#f8fafc}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb{font-size:.8rem;color:#8a95a8;padding:.75rem 0;display:flex;gap:.3rem;align-items:center;flex-wrap:wrap}
.breadcrumb a{color:#5a6478}
.breadcrumb span{opacity:.5}

/* ── Category page ───────────────────────────────────────────── */
.kat-hero{background:linear-gradient(135deg,#1a3a5c,#0f2440);color:#fff;padding:2.5rem 0}
.kat-hero h1{font-size:clamp(1.4rem,3vw,2rem);font-weight:700}
.kat-hero p{opacity:.85;margin-top:.5rem;max-width:580px}
.kat-intro{max-width:780px;margin:0 auto;padding:1.5rem 0;color:#5a6478;line-height:1.75}
.kat-intro p{margin-bottom:1rem}

/* ── ═══════════════════════════════════════════════════════════ */
/* ── TEST ENGINE ───────────────────────────────────────────────── */
/* ── ═══════════════════════════════════════════════════════════ */

.test-page-body{background:#f4f6fb;min-height:100vh}

/* Intro screen */
.test-intro{max-width:680px;margin:3rem auto;padding:0 1.25rem}
.test-intro h1{font-size:1.8rem;font-weight:700;color:#1a3a5c;margin-bottom:1rem}
.test-rules{list-style:none;padding:0;margin:1.5rem 0}
.test-rules li{display:flex;align-items:flex-start;gap:.75rem;padding:.6rem 0;border-bottom:1px solid #e8ecf4;font-size:.95rem}
.test-rules li:last-child{border-bottom:none}
.test-rules .icon{font-size:1.2rem;flex-shrink:0;margin-top:.05rem}
.test-start-btn{display:block;width:100%;text-align:center;padding:1rem;border-radius:8px;font-size:1.1rem;font-weight:700;cursor:pointer;border:none;background:#2e86ab;color:#fff;margin-top:1.5rem;transition:background .15s}
.test-start-btn:hover{background:#245d7a}

/* Progress bar */
.test-progress-bar{background:#1a3a5c;color:#fff;padding:.75rem 1.25rem;display:flex;align-items:center;gap:1rem;position:sticky;top:58px;z-index:90}
.progress-track{flex:1;height:6px;background:rgba(255,255,255,.2);border-radius:3px}
.progress-fill{height:6px;background:#2e86ab;border-radius:3px;transition:width .3s}
.progress-text{font-size:.82rem;white-space:nowrap;opacity:.85}
.test-timer{font-size:.9rem;font-weight:600;background:rgba(255,255,255,.12);padding:.2rem .7rem;border-radius:12px;white-space:nowrap}
.timer-warning{background:rgba(220,60,60,.6)!important}

/* Question card */
.test-main{max-width:820px;margin:2rem auto;padding:0 1.25rem}
.q-card{background:#fff;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.1);padding:2rem;margin-bottom:1.5rem}
.q-type-badge{font-size:.78rem;font-weight:600;color:#2e86ab;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}
.q-number{font-size:.88rem;color:#8a95a8;margin-bottom:1rem}
.q-text{font-size:1.1rem;font-weight:500;margin-bottom:1.5rem;line-height:1.5;color:#1a1f2e}
.q-series{font-size:1.3rem;font-weight:600;color:#1a3a5c;letter-spacing:.08em;margin:1rem 0 1.5rem;text-align:center;background:#f4f6fb;padding:.75rem 1rem;border-radius:8px;font-family:monospace}
.blank{display:inline-block;border-bottom:2px solid #2e86ab;min-width:2.5rem;text-align:center;color:#2e86ab}

/* Matrix SVG */
.matrise-wrap{display:flex;justify-content:center;margin:1rem 0 1.5rem}
.q-svg{max-width:280px;width:100%;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.1)}

/* Options grid */
.options-grid{display:grid;gap:.75rem}
.options-grid.grid-6{grid-template-columns:repeat(3,1fr)}
.options-grid.grid-4{grid-template-columns:repeat(2,1fr)}

.option-btn{background:#f8fafc;border:2px solid #d4dae8;border-radius:8px;cursor:pointer;padding:.75rem;text-align:center;transition:all .15s;display:flex;flex-direction:column;align-items:center;gap:.4rem}
.option-btn:hover{border-color:#2e86ab;background:#eef7fb}
.option-btn.selected{border-color:#2e86ab;background:#d6edf5}
.option-btn.correct{border-color:#22c55e;background:#dcfce7}
.option-btn.wrong{border-color:#ef4444;background:#fee2e2}
.option-label{font-size:.78rem;font-weight:700;color:#8a95a8;text-align:center}
.option-text{font-size:1.05rem;font-weight:500;color:#1a1f2e}
.option-svg{width:70px;height:70px}

/* Next button */
.q-next-btn{width:100%;padding:.9rem;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;border:none;background:#1a3a5c;color:#fff;transition:background .15s;margin-top:.5rem}
.q-next-btn:hover:not(:disabled){background:#0f2440}
.q-next-btn:disabled{opacity:.35;cursor:default}

/* Feedback row */
.q-feedback{margin-top:1rem;padding:.75rem 1rem;border-radius:8px;font-size:.9rem;display:none}
.q-feedback.show{display:block}
.q-feedback.ok{background:#dcfce7;color:#166534}
.q-feedback.feil{background:#fee2e2;color:#991b1b}

/* ── RESULTS PAGE ────────────────────────────────────────────── */
.result-hero{background:linear-gradient(135deg,#1a3a5c,#0f2440);color:#fff;padding:3rem 0;text-align:center}
.result-score-big{font-size:4rem;font-weight:800;line-height:1;margin:.5rem 0}
.result-score-label{opacity:.75;font-size:.9rem}
.result-percentil{font-size:1.1rem;background:rgba(255,255,255,.12);display:inline-block;padding:.4rem 1.2rem;border-radius:20px;margin:.75rem 0}
.result-disclaimer{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:1rem 1.25rem;font-size:.82rem;opacity:.85;max-width:640px;margin:1.5rem auto 0;line-height:1.6;text-align:left}

.result-breakdown{max-width:780px;margin:2.5rem auto;padding:0 1.25rem}
.breakdown-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin:1.5rem 0}
.breakdown-card{background:#fff;border-radius:10px;padding:1.25rem;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.breakdown-card .bc-score{font-size:1.8rem;font-weight:700;color:#1a3a5c}
.breakdown-card .bc-max{font-size:.8rem;color:#8a95a8}
.breakdown-card .bc-name{font-size:.85rem;font-weight:600;margin-top:.4rem;color:#1a1f2e}
.score-bar-wrap{background:#eef2f8;border-radius:4px;height:8px;margin:.5rem 0}
.score-bar{height:8px;background:#2e86ab;border-radius:4px;transition:width .8s ease}

.result-cta{text-align:center;padding:2rem 0;background:#f4f6fb}
.result-cta h2{font-size:1.3rem;color:#1a3a5c;margin-bottom:.75rem}

/* ── Stat strip (homepage) ───────────────────────────────────── */
.stat-strip{background:#1a3a5c;color:#fff;padding:1.5rem 0}
.stat-strip .container{display:flex;justify-content:center;gap:3rem;flex-wrap:wrap}
.stat-item{text-align:center}
.stat-item .sn{font-size:1.8rem;font-weight:700}
.stat-item .sl{font-size:.8rem;opacity:.75}

/* ── Admin ────────────────────────────────────────────────────── */
.admin-wrap{max-width:900px;margin:2rem auto;padding:0 1rem}
.admin-table{width:100%;border-collapse:collapse;font-size:.88rem}
.admin-table th{background:#1a3a5c;color:#fff;padding:.6rem .8rem;text-align:left}
.admin-table td{padding:.55rem .8rem;border-bottom:1px solid #e8ecf4}
.admin-table tr:hover td{background:#f8fafc}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer{background:#0f2440;color:rgba(255,255,255,.75);padding:3rem 0 0}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
.footer-logo{font-size:1.1rem;font-weight:700;color:#fff;margin-bottom:.5rem}
.footer-tagline{font-size:.85rem;line-height:1.6;margin-bottom:.5rem}
.footer-disclaimer{font-size:.78rem;opacity:.6;line-height:1.5}
.footer-col h4{color:#fff;font-size:.9rem;margin-bottom.75rem;font-weight:600}
.footer-col ul{list-style:none;padding:0}
.footer-col ul li{margin-bottom:.35rem}
.footer-col ul a{font-size:.85rem;color:rgba(255,255,255,.65)}
.footer-col ul a:hover{color:#fff}
.footer-bottom{text-align:center;padding:1.25rem 0;margin-top:2rem;border-top:1px solid rgba(255,255,255,.1);font-size:.8rem;color:rgba(255,255,255,.5)}
.footer-bottom a{color:rgba(255,255,255,.6)}

/* ── Cookie banner ───────────────────────────────────────────── */
.cookie-banner{position:fixed;bottom:1rem;left:1rem;right:1rem;max-width:600px;margin:0 auto;background:#fff;border:1px solid #d4dae8;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.15);z-index:1000;padding:1.1rem 1.25rem}
.cookie-inner p{font-size:.85rem;margin-bottom:.75rem;line-height:1.5}
.cookie-btns{display:flex;gap:.5rem;flex-wrap:wrap}

/* ── Responsiv ──────────────────────────────────────────────── */
@media(max-width:768px){
  .nav-toggle{display:block}
  .main-nav{display:none;position:fixed;top:58px;left:0;right:0;bottom:0;background:#1a3a5c;flex-direction:column;align-items:flex-start;padding:1rem;gap:.2rem;overflow-y:auto;z-index:99}
  .main-nav.open{display:flex}
  .main-nav a,.nav-drop-btn{width:100%;padding:.75rem 1rem;border-radius:6px;font-size:1rem}
  .nav-dropdown{width:100%}
  .nav-drop-menu{position:static;display:none!important;border:none;background:rgba(255,255,255,.08);box-shadow:none;border-radius:6px;margin-top:.25rem}
  .nav-dropdown.active .nav-drop-menu{display:block!important}
  .nav-drop-menu a{color:rgba(255,255,255,.85)!important;padding:.6rem 1.25rem}
  .footer-inner{grid-template-columns:1fr}
  .options-grid.grid-6{grid-template-columns:repeat(2,1fr)}
  .test-progress-bar{top:0}
  .q-svg{max-width:240px}
  .stat-strip .container{gap:1.5rem}
  .breakdown-grid{grid-template-columns:repeat(2,1fr)}
  .result-score-big{font-size:3rem}
}
@media(max-width:480px){
  .options-grid.grid-4{grid-template-columns:1fr}
  .options-grid.grid-6{grid-template-columns:1fr 1fr}
  .q-card{padding:1.25rem}
}
