/* ==========================================================================
   bitcoins.se – stilmall
   Nordisk, minimalistisk fintech-känsla. Inga externa ramverk eller typsnitt
   (systemtypsnitt = noll nätverksanrop och ingen layoutförskjutning).
   ========================================================================== */

/* ---------- 1. Designtokens ---------- */
:root {
  /* Färger */
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --orange: #F7931A;          /* Bitcoin-orange – primära CTA */
  --orange-hover: #E07F0A;
  --orange-ink: #1A1206;      /* Text på orange (kontrast > 7:1) */
  --orange-soft: #FFF4E5;

  --navy: #1E3A8A;            /* Tillit: BankID / FI */
  --navy-soft: #EFF4FF;
  --green: #047857;           /* Tillit: reglerat / bekräftat */
  --green-soft: #ECFDF5;
  --red: #B91C1C;
  --dark: #0F172A;

  /* Typografi */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.25rem);

  /* Form och rytm */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 6px 20px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 40px -16px rgba(15, 23, 42, 0.22);
  --container: 1120px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- 2. Bas & reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-base); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { font-weight: 650; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--dark); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.skip-link:hover, .skip-link:focus { color: #fff; }

/* ---------- 3. Annonsmärkning (toppbanner) ---------- */
.ad-bar {
  background: var(--dark);
  color: #CBD5E1;
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.ad-bar__inner {
  display: flex; align-items: center; gap: 10px;
  padding-block: 7px;
}
.ad-bar__label {
  flex: none;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6875rem;
  color: #F1F5F9;
}
.ad-bar a, .ad-bar a:hover { color: #fff; }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo__tld { color: var(--text-subtle); font-weight: 600; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--fs-sm); font-weight: 550;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  position: relative; transition: transform .2s;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobilmeny – aktiveras bara när JS finns (klassen .js sätts i app.js) */
@media (max-width: 879px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .js .site-nav a { padding: 12px; font-size: var(--fs-base); }

  /* Utan JS: horisontellt scrollbar meny */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { width: 100%; overflow-x: auto; }
}

/* ---------- 5. Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: inherit; font-size: var(--fs-sm); font-weight: 650;
  line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn--primary { background: var(--orange); color: var(--orange-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-hover); color: var(--orange-ink); }

.btn--secondary { background: var(--navy); color: #fff; }
.btn--secondary:hover { background: #172F70; color: #fff; }

.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #1E293B; color: #fff; }

.btn--outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--text); color: var(--text); }

.btn__hint { font-weight: 500; opacity: .8; }

/* ---------- 6. Gemensamma sektioner ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section__head { max-width: 720px; margin-bottom: 40px; }
.section__intro { color: var(--text-muted); font-size: var(--fs-lg); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}

.fine-print { margin-top: 24px; color: var(--text-subtle); font-size: var(--fs-xs); max-width: 720px; }

/* Checklistor med grön bock */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; font-size: var(--fs-sm); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23047857' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--compact { margin: 16px 0 0; }

/* Taggar */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 650; line-height: 1.3;
  white-space: nowrap;
}
.tag--orange { background: var(--orange-soft); color: #8A4B00; }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--blue { background: var(--navy-soft); color: var(--navy); }
.tag--slate { background: var(--bg-alt); color: #334155; }

/* ---------- 7. Hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(247,147,26,.10), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(30,58,138,.07), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; }
}
.hero__meta { margin: 0 0 16px; color: var(--text-muted); font-size: var(--fs-sm); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 620px; }
.lead strong { color: var(--text); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

.trust-row {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 550;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; }
.trust-dot--blue { background: var(--navy); }
.trust-dot--green { background: var(--green); }
.trust-dot--orange { background: var(--orange); }

/* Live-kurs */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.price-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.price-card__title {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: var(--fs-sm); font-weight: 650; color: var(--text-muted); letter-spacing: 0;
}
.price-card__pair {
  font-size: var(--fs-xs); font-weight: 700; color: #8A4B00;
  background: var(--orange-soft); padding: 3px 8px; border-radius: 6px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.price-card__sek {
  margin: 0 0 16px;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  min-height: 1.3em; /* förhindrar layoutförskjutning (CLS) */
}
#price-sek[data-state="loading"] { color: var(--text-subtle); font-size: 1.25rem; font-weight: 600; }
#price-sek[data-state="error"] { color: var(--text-muted); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }

.price-card__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border);
}
.price-card__meta dt { font-size: var(--fs-xs); color: var(--text-subtle); }
.price-card__meta dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-up { color: var(--green); }
.is-down { color: var(--red); }
.price-card__foot { margin: 16px 0 0; font-size: var(--fs-xs); color: var(--text-subtle); }

/* ---------- 8. Topplista / jämförelsekort ---------- */
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.offer {
  position: relative;
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow .2s, border-color .2s;
}
.offer:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.offer:target { border-color: var(--orange); outline: 2px solid var(--orange); outline-offset: -1px; }
.offer--featured { border-color: rgba(4,120,87,.35); }

.offer__rank {
  position: absolute; top: -10px; left: -10px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dark); color: #fff;
  font-weight: 800; font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
}
.offer__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.offer__name { margin: 0; font-size: 1.375rem; }

.offer__specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 0; padding: 16px;
  background: var(--bg); border-radius: var(--radius-sm);
}
.offer__specs dt { font-size: var(--fs-xs); color: var(--text-subtle); }
.offer__specs dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 650; }

.offer__cta { display: grid; gap: 8px; align-content: center; }
.offer__small { margin: 0; text-align: center; font-size: 0.75rem; color: var(--text-subtle); }

@media (min-width: 960px) {
  .offer {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 200px;
    align-items: center; gap: 28px; padding: 28px;
  }
  .offer__specs { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .offer__specs { grid-template-columns: 1fr 1fr; }
}

/* ---------- 9. Flikar (köpguide) ---------- */
.tabs__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px; margin-bottom: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 640px;
}
.tabs__tab {
  font: inherit; font-weight: 700; font-size: var(--fs-sm);
  padding: 12px 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-muted);
  cursor: pointer; text-align: left;
  transition: background-color .15s, color .15s;
}
.tabs__tab:hover { color: var(--text); background: var(--bg-alt); }
.tabs__tab[aria-selected="true"] { background: var(--dark); color: #fff; }
.tabs__sub { display: block; font-weight: 500; font-size: var(--fs-xs); opacity: .75; }

/* Utan JS visas båda panelerna; flikraden döljs */
html:not(.js) .tabs__list { display: none; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 48px; }
.js .tabs__panel[hidden] { display: none; }
.js .tabs:not([data-ready]) .tabs__panel + .tabs__panel { display: none; } /* undviker blink innan JS initierat */
.js .tabs__panel-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.step p { color: var(--text-muted); font-size: var(--fs-sm); }
.step__num {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 10px;
  background: var(--orange-soft); color: #8A4B00;
  font-weight: 800;
}
.tabs__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 10. Jämförelsetabell (ISK) ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--bg); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); }
.compare-table tbody th { font-weight: 650; width: 26%; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--red); font-weight: 700; }

/* ---------- 11. Säkerhet & skatt ---------- */
.info-grid { display: grid; gap: 20px; }
@media (min-width: 880px) { .info-grid { grid-template-columns: 1fr 1fr; } }

.info-box {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.info-box p { color: var(--text-muted); font-size: var(--fs-sm); }
.info-box__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.info-box__head h3 { margin: 0; }
.info-box__icon { flex: none; }
.info-box__icon--blue { color: var(--navy); }
.info-box__icon--green { color: var(--green); }
.info-box__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }

/* ---------- 12. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  font-weight: 650; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230F172A' d='M7.4 8.6 12 13.2l4.6-4.6L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--navy); }
.faq__body { padding: 0 22px 20px; color: var(--text-muted); font-size: var(--fs-sm); }
.faq__body p + p { margin-top: 0.75em; }

/* ---------- 13. Avslutande CTA ---------- */
.section--cta { padding-block: 0 clamp(56px, 8vw, 96px); }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--dark); color: #E2E8F0;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  max-width: calc(var(--container) - 2 * var(--gutter));
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #CBD5E1; }

/* ---------- 14. Sidfot & compliance ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 48px 32px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.risk-box {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 40px;
  color: #422006;
}
.risk-box__title {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-base); margin-bottom: 8px; color: #78350F;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.footer-title { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--text-muted); text-decoration: none; display: inline-block; padding-block: 4px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--text-subtle);
}
.footer-bottom p { margin: 0; }

/* ---------- 15. Modaler (<dialog>) ---------- */
.modal {
  width: min(680px, calc(100% - 2 * var(--gutter)));
  max-height: min(85vh, 760px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal__inner { display: flex; flex-direction: column; max-height: inherit; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal__head h2 { font-size: 1.375rem; margin: 0; }
.modal__close {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--bg-alt); }
.modal__body { padding: 20px 24px 28px; overflow-y: auto; font-size: var(--fs-sm); color: var(--text-muted); }
.modal__body h3 { font-size: var(--fs-base); color: var(--text); margin-top: 1.5em; }
.modal__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.modal__body li + li { margin-top: 6px; }
