:root {
  --bg: #f3eee8;
  --surface: #ffffff;
  --text: #33241a;
  --muted: #6b5a4c;
  --line: #ded3c5;
  --accent: #5b3b22;
  --accent-text: #ffffff;
  --gold: #c79a55;
  --link: #7a4a1f;
  --focus: #1a56db;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 820px; }

h1, h2, h3 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 14px; }

.btn {
  display: inline-block;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font: 700 1rem/1.2 'Manrope', 'Segoe UI', Arial, sans-serif;
  text-decoration: none;
  text-align: center;
  padding: 14px 26px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(51, 36, 26, .18); }
.btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-small { padding: 10px 14px; font-size: .88rem; border-radius: 10px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  font: 800 1.05rem/1.25 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
}
.top-nav a:not(.btn):hover { text-decoration: underline; }

.bvi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: 600 .88rem/1.2 'Manrope', 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
}
.bvi-toggle svg { width: 20px; height: 20px; flex: none; }

.bvi-panel {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bvi-panel[hidden] { display: none; }

.bvi-panel .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.bvi-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bvi-group > span { font-weight: 700; font-size: .95rem; }

.bvi-btn {
  min-width: 44px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 700 1rem/1.1 'Manrope', Arial, sans-serif;
  cursor: pointer;
}
.bvi-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.bvi-btn.sw-white { background: #fff; color: #000; }
.bvi-btn.sw-black { background: #000; color: #fff; }
.bvi-btn.sw-blue { background: #9dd1ff; color: #063462; }

.hero { padding: 40px 0 56px; }

.eyebrow {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero h1 { margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.points li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 18px 22px;
}
.points strong {
  display: block;
  font: 800 1.05rem/1.3 'Montserrat', 'Segoe UI', Arial, sans-serif;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section { padding: 56px 0; }
.section-white { background: var(--surface); }

.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about-photo {
  border-radius: 22px;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}

.apply { max-width: 560px; margin: 0 auto; }
.apply h2 { text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.field.is-invalid input { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .9rem; min-height: 1.2em; margin-top: 4px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 8px; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--accent); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: #b3261e; font-weight: 600; min-height: 1.4em; margin: 6px 0 10px; }
.apply .btn { width: 100%; }

.site-footer {
  background: var(--accent);
  color: var(--accent-text);
  padding: 40px 0 48px;
  font-size: .98rem;
}
.site-footer a { color: var(--accent-text); }
.site-footer h2 { font-size: 1.1rem; margin-bottom: 10px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin: 0 0 6px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }

.legal { padding: 36px 0 64px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
}
.card h1 { margin-bottom: 20px; }
.card h2 { font-size: 1.2rem; margin: 26px 0 10px; }
.card ul { padding-left: 22px; margin: 0 0 14px; }
.card li { margin-bottom: 4px; }

.sveden-head { padding: 36px 0 12px; }
.sveden-head p { color: var(--muted); }
.sveden-tools { margin: 18px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; }

.acc-list { margin: 18px 0 64px; border-top: 1px solid var(--line); }

.acc { border-bottom: 1px solid var(--line); background: var(--surface); }
.acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font: 700 1.05rem/1.35 'Manrope', 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: '+';
  flex: none;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 400;
  transition: transform .2s ease;
}
.acc[open] summary::after { content: '\2212'; }
.acc-body { padding: 0 22px 24px; }
.acc-body > :last-child { margin-bottom: 0; }

.facts { margin: 0; }
.facts dt { font-weight: 700; margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; }

.plain-list { margin: 0 0 14px; padding-left: 22px; }
.plain-list li { margin-bottom: 6px; }

.pending { color: var(--muted); font-style: italic; }

.thanks { text-align: center; padding: 80px 0; }
.thanks .card { max-width: 560px; margin: 0 auto; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .about-photo { margin: 0; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .card { padding: 36px 40px; }
}

@media (max-width: 560px) {
  .header-row { align-items: flex-start; }
  .top-nav { width: 100%; }
  .top-nav .btn { flex: 1 1 100%; }
  .hero { padding-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .acc summary { padding: 18px 16px; }
  .acc-body { padding: 0 16px 20px; }
}

html.bvi-fs-2 { font-size: 125%; }
html.bvi-fs-3 { font-size: 150%; }

html.bvi-on body { font-family: Arial, Helvetica, sans-serif; line-height: 1.75; }
html.bvi-on h1, html.bvi-on h2, html.bvi-on h3, html.bvi-on .brand, html.bvi-on .btn,
html.bvi-on .acc summary, html.bvi-on .points strong { font-family: Arial, Helvetica, sans-serif; }
html.bvi-on * { box-shadow: none !important; transition: none !important; }
html.bvi-on .btn:hover { transform: none; }

html.bvi-c-white { --bg: #fff; --surface: #fff; --text: #000; --muted: #000; --line: #000; --accent: #000; --accent-text: #fff; --gold: #000; --link: #000; }
html.bvi-c-black { --bg: #000; --surface: #000; --text: #fff; --muted: #fff; --line: #fff; --accent: #fff; --accent-text: #000; --gold: #fff; --link: #ffe600; --focus: #ffe600; }
html.bvi-c-blue { --bg: #9dd1ff; --surface: #9dd1ff; --text: #063462; --muted: #063462; --line: #063462; --accent: #063462; --accent-text: #9dd1ff; --gold: #063462; --link: #063462; }

html.bvi-c-black .field input { color-scheme: dark; }
html.bvi-c-black .site-footer, html.bvi-c-white .site-footer, html.bvi-c-blue .site-footer { border-top: 2px solid var(--line); }

html.bvi-noimg img { display: none; }
.bvi-alt { display: none; font-style: italic; margin: 8px 0; }
html.bvi-noimg .bvi-alt { display: block; }
html.bvi-noimg .about-photo { aspect-ratio: auto; background: transparent; }

@media print {
  .site-header, .bvi-panel, .skip { display: none; }
}
