/* Ryerson Petroleum Services – stilark */
:root {
  /* Paletten: grunntone 210° (Nordsjø-gråblå). Nøytralene har samme kulør med lav metning,
     aksenten er komplementær (~28°), sterkt nedtonet bronse. Fordeling ca. 60/30/10. */
  --bg: #FFFFFF;
  --bg-alt: #F5F7F9;
  --line: #DFE4EA;
  --petrol: #23415A;       /* skifer – primær */
  --petrol-dark: #182F42;
  --steel: #5E7488;        /* stålgrå – sekundær */
  --text: #1C2733;
  --muted: #56636F;
  --accent: #8C6A4F;       /* bronse – kun detaljer */
  --accent-dark: #6E523C;
  --sand-bg: #F4F0EA;
  --sand-line: #E2D8CB;
  --sand-text: #5E4632;
  --focus: #3D6E99;
  --ok: #4F7A63;
  --error: #A23B3B;
  --control-border: #7E8C9A; /* minst 3:1 mot hvit (manualen) */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --head: "Barlow Semi Condensed", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--petrol); }
a:hover { color: var(--petrol-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0; color: var(--petrol-dark); letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; }
h3 { font-size: 26px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 10px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); color: #fff; }
.btn-secondary { background: var(--petrol); color: #fff; }
.btn-secondary:hover { background: var(--petrol-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--petrol); border-color: var(--control-border); }
.btn-outline:hover { border-color: var(--petrol); color: var(--petrol); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* Varselstripe */
.notice { background: var(--petrol-dark); color: #E2E8F0; font-size: 14px; }
.notice .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; text-align: center; }
.notice strong { color: #fff; }
.notice a { color: #E2D3C0; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petrol-dark); }
.brand img { display: block; height: 44px; width: auto; }
.ic { width: 16px; height: 16px; flex: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--petrol); }
.main-nav .btn { margin-left: 8px; color: #fff; }
.main-nav .btn:hover { background: var(--petrol-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--control-border); border-radius: 10px; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--petrol); position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(560px, 82vh, 780px); display: flex; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; transform: scaleX(-1); /* speilvendt: plattform og arbeidere til høyre */ }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; /* sterkest bak tekstkolonnen, lettere mot kantene */ background: linear-gradient(90deg, rgba(245,247,249,.55) 0, rgba(245,247,249,.86) max(0px, calc(50% - 560px)), rgba(245,247,249,.86) calc(50% + 140px), rgba(245,247,249,.3) calc(50% + 360px), rgba(245,247,249,0) calc(50% + 560px)); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero-content { max-width: 660px; padding: 72px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--accent); border-radius: 2px; }
.hero h1 span { color: var(--steel); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 22px 0 30px; max-width: 580px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 760px; }
.facts li { background: #fff; padding: 16px 18px; }
.facts span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.facts strong { font-family: var(--head); font-size: 22px; color: var(--petrol-dark); line-height: 1.2; }

/* Tillitsstripe */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--muted); line-height: 1.35; }
.trust b { display: block; color: var(--petrol-dark); font-size: 16px; }
.trust svg { flex: none; width: 36px; height: 36px; }

/* Seksjoner */
section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { font-size: 19px; color: var(--muted); margin: 16px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* Kurskort */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 16px 32px rgba(15,23,42,.1); }
.course-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); position: relative; }
.course-card figure img { width: 100%; height: 100%; object-fit: cover; }
.code-badge { position: absolute; left: 12px; top: 12px; background: var(--petrol); color: #fff; font: 700 14px/1 var(--head); letter-spacing: .06em; padding: 7px 10px; border-radius: 6px; }
.course-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-size: 24px; }
.course-body p { font-size: 15px; color: var(--muted); margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--petrol-dark); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.chip.warn { background: var(--sand-bg); border-color: var(--sand-line); color: var(--sand-text); }
.course-body .btn { margin-top: 8px; width: 100%; }
.modality { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Dialog */
dialog.course-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 64px rgba(15,23,42,.3); color: var(--text); }
dialog::backdrop { background: rgba(24, 47, 66, .55); backdrop-filter: blur(3px); }
.dialog-inner { display: grid; grid-template-columns: 340px 1fr; }
.dialog-inner figure { margin: 0; min-height: 100%; }
.dialog-inner figure img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { padding: 34px 34px 30px; overflow: auto; max-height: calc(100vh - 32px); }
.dialog-content h3 { font-size: 34px; margin: 6px 0 12px; }
.dialog-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: var(--shadow); font-size: 26px; line-height: 1; cursor: pointer; color: var(--petrol-dark); }
.topics { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topics li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.4; }
.topics svg { flex: none; margin-top: 2px; }
.note { border-left: 4px solid var(--accent); background: var(--sand-bg); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 15px; color: var(--sand-text); margin: 0 0 18px; }

/* Sertifiseringsrute */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.path::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--petrol)); z-index: 0; }
.path li { position: relative; z-index: 1; text-align: center; counter-increment: step; }
.path .num { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); display: grid; place-items: center; font: 700 22px var(--head); color: var(--petrol-dark); }
.path li:nth-child(n+3) .num { border-color: var(--petrol); }
.path li.goal .num { background: var(--petrol); color: #fff; }
.path h3 { font-size: 21px; margin-bottom: 8px; }
.path p { font-size: 15px; color: var(--muted); margin: 0; }
.path .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.disclaimer { margin-top: 36px; font-size: 14px; color: var(--muted); text-align: center; }

/* Tidslinje */
.timeline-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.tl-btn { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 14px 16px; min-height: 96px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font: inherit; color: var(--text); cursor: pointer; }
.tl-btn i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.tl-btn.done i { background: var(--steel); }
.tl-btn small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.tl-btn b { font-family: var(--head); font-size: 19px; line-height: 1.15; color: var(--petrol-dark); }
.tl-btn[aria-pressed="true"] { border-color: var(--petrol); box-shadow: inset 0 -3px 0 var(--petrol); }
.tl-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow); }
.tl-panel small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; }
.tl-panel h3 { margin: 8px 0 10px; font-size: 30px; }
.tl-panel p { margin: 0; color: var(--muted); font-size: 18px; max-width: 780px; }

/* Slik foregår kurset + Om oss */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #EDF1F5; }
.feature-list b { display: block; color: var(--petrol-dark); }
.feature-list span { font-size: 15px; color: var(--muted); }

.instructor { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.portrait { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #DCE7EF, #F8FAFC); display: grid; place-items: center; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; position: absolute; inset: 0; }
.portrait .initials { font: 700 72px var(--head); color: var(--petrol); opacity: .5; }
.instructor h3 { font-size: 34px; }
.instructor .role { color: var(--steel); font-weight: 600; margin: 6px 0 18px; }
.creds { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.creds li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--muted); }
.creds b { display: block; color: var(--petrol-dark); font-size: 16px; }

/* Eksamen */
.exam-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.exam-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.exam-table th, .exam-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.exam-table th { background: var(--petrol); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.exam-table tr:last-child td { border-bottom: 0; }
.exam-table td:first-child { font-weight: 700; color: var(--petrol-dark); white-space: nowrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; margin-bottom: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 15px; color: var(--muted); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: #fff; font: 700 16px var(--head); display: grid; place-items: center; }
.steps b { color: var(--text); }
.venues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Pris */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.counts { display: flex; gap: 10px; margin: 14px 0 0; }
.cnt { width: 58px; height: 58px; border-radius: 12px; border: 1.5px solid var(--control-border); background: #fff; font: 700 22px var(--head); color: var(--petrol-dark); cursor: pointer; }
.cnt[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.calc .row { display: flex; justify-content: space-between; color: var(--muted); }
.calc .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; }
.calc .total strong { font: 700 46px var(--head); color: var(--petrol-dark); }
.calc small { color: var(--muted); font-size: 13px; }
.includes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.includes li { display: flex; gap: 10px; align-items: flex-start; }
.includes svg { flex: none; margin-top: 4px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; font-weight: 600; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--steel); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: 16px; }

/* Skjema */
.form-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { flex: none; width: 40px; height: 40px; padding: 9px; background: #EDF1F5; border-radius: 10px; }
form.signup { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
label, legend { font-weight: 600; font-size: 15px; color: var(--petrol-dark); }
.req { color: var(--error); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--control-border); border-radius: 10px; background: #fff; color: var(--text); }
select { -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E7488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
select::-ms-expand { display: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(35, 65, 90, .18); }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--control-border); border-radius: 10px; padding: 11px 12px; cursor: pointer; font-weight: 500; color: var(--text); font-size: 15px; line-height: 1.35; }
.check:has(input:checked) { border-color: var(--petrol); background: #EDF1F5; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--petrol); flex: none; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.check-all { grid-column: 1 / -1; }
.consent { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--petrol); flex: none; }
.error-msg { color: var(--error); font-size: 14px; font-weight: 500; min-height: 0; }
.invalid { border-color: var(--error) !important; }
.form-status { border-radius: 12px; padding: 16px 18px; font-weight: 500; }
.form-status.ok { background: #F0FDF4; color: #14532D; border: 1px solid #BBF7D0; }
.form-status.fail { background: #FEF2F2; color: #7F1D1D; border: 1px solid #FECACA; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { background: var(--petrol-dark); color: #CBD5E1; padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: #E2D3C0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #94A3B8; }

/* Underside */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 760px; margin: 16px 0 0; }
.prose { max-width: 800px; }
.prose h2 { font-size: 34px; margin: 48px 0 14px; }
.prose h3 { font-size: 24px; margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.callout { background: #EDF1F5; border: 1px solid #D6DEE6; border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.credits { font-size: 14px; }
.credits li { margin-bottom: 10px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Studiemateriell (prototype) */
.proto-banner { background: var(--sand-bg); color: var(--sand-text); border-bottom: 1px solid var(--sand-line); font-size: 14px; text-align: center; padding: 10px 16px; font-weight: 500; }
.subject-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.subject-tabs button { font: 600 15px var(--body); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--control-border); background: #fff; color: var(--petrol-dark); cursor: pointer; }
.subject-tabs button[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.res .kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.res h3 { font-size: 21px; }
.res p { font-size: 15px; color: var(--muted); margin: 0; }
.res .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.res.locked { background: var(--bg-alt); }
.lock { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ks-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ks-out { display: grid; gap: 10px; }
.ks-out div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line); padding: 8px 0; }
.ks-out strong { font: 700 26px var(--head); color: var(--petrol-dark); }
.ks-out code { font-size: 13px; color: var(--muted); }

/* Responsivt */
@media (max-width: 1080px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline-tabs { grid-template-columns: repeat(3, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 17px; }
  .main-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 960px) {
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 17px; }
  .main-nav .btn { margin: 8px 0 0; }
  .split, .form-wrap, .price-grid, .exam-grid, .instructor, .ks-grid { grid-template-columns: 1fr; gap: 32px; }
  .instructor .portrait { max-width: 280px; }
  .path { grid-template-columns: 1fr; gap: 0; }
  .path::before { top: 20px; bottom: 20px; left: 27px; right: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent), var(--petrol)); }
  .path li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; text-align: left; padding-bottom: 26px; }
  .path .num { margin: 0; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-inner figure { aspect-ratio: 16 / 7; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.86) 30%, rgba(255,255,255,.86) 75%, rgba(255,255,255,.6) 100%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .brand img { height: 36px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .course-grid, .trust ul, .footer-grid, .feature-list, .creds, .topics, .checks, .field-row, .res-grid, .ks-inputs { grid-template-columns: 1fr; }
  .timeline-tabs { grid-template-columns: 1fr 1fr; }
  .instructor, form.signup, .calc, .card { padding: 22px; }
  .dialog-content { padding: 24px 20px; }
  .exam-table th, .exam-table td { padding: 12px; font-size: 14px; }
  .ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .course-card, .btn { transition: none; }
}
