:root {
  --bg: #050505;
  --card: #101010;
  --text: #f6f3ee;
  --muted: #a39c93;
  --gold: #c6a36a;
  --gold-soft: #e4d0a6;
  --line: rgba(198, 163, 106, 0.28);
  --line-strong: rgba(198, 163, 106, 0.55);
  --ink: #1a140c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(198, 163, 106, 0.14), transparent 60%),
    var(--bg);
  font-family: "Avenir Next", Manrope, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color-scheme: dark;
}
img { max-width: 100%; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 1px solid var(--gold-soft); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

.script {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 28px 8px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav contacts";
  gap: 22px;
  align-items: center;
}
.lockup {
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.topbar .lockup { grid-area: logo; }
.logo { display: block; width: 100%; height: auto; }
.consulting {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
  color: var(--gold);
}
.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.site-nav a {
  color: #d9d3cb;
  text-decoration: none;
  font-size: 14px;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--gold-soft); }
.top-contacts {
  grid-area: contacts;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.top-contacts p { margin: 0; }
.top-contacts strong { color: var(--text); font-weight: 500; }
.nav-toggle {
  display: none;
  grid-area: toggle;
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 28px 72px;
}
.hero,
.pillars,
.cards,
.cases,
.split,
.slots,
.photos,
.steps,
.footer-inner,
.sveden-layout,
.topbar,
.hero > *,
.pillars > *,
.cards > *,
.cases > *,
.split > *,
.slots > *,
.photos > *,
.steps > *,
.footer-inner > *,
.sveden-layout > *,
.topbar > * {
  min-width: 0;
}
.narrow { max-width: 760px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 500; letter-spacing: 0.01em; }
h1 { margin: 0 0 12px; font-size: 56px; line-height: 0.98; }
h2 { margin: 0 0 12px; font-size: 32px; line-height: 1.2; }
h3 { margin: 0 0 8px; font-size: 20px; }
.lead { margin: 0; max-width: 46rem; color: #ddd6cc; font-size: 18px; }
.muted { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 18px;
}
.hero-mark {
  width: min(460px, 100%);
  justify-self: end;
  mix-blend-mode: lighten;
}
.slogan-line {
  margin: 18px 0;
  color: var(--gold-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  background: transparent;
}
.btn:hover { color: #fff; border-color: #fff; }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { color: var(--ink); background: var(--gold-soft); }
.btn-small { min-height: 38px; padding: 0 12px; }
button.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.block { margin-top: 64px; }
.block-head { margin-bottom: 22px; }
.block-head p:last-child { margin-bottom: 0; }

.pillars, .cards, .slots, .cases, .photos, .split, .facts {
  display: grid;
  gap: 14px;
}
.pillars, .split { grid-template-columns: 1fr 1fr; }
.cards, .cases { grid-template-columns: 1fr 1fr; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four, .slots { grid-template-columns: repeat(4, 1fr); }
.slots { grid-template-columns: repeat(3, 1fr); }
.photos { grid-template-columns: repeat(3, 1fr); }

.card, .pillar, .case, .logo-slot, .photo-slot, .empty-panel, .doc, .contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 90px), var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.card, .pillar, .case, .contact-card { padding: 22px; }
.card h3, .pillar h2, .case h3 { margin-top: 0; }
.pillar p:last-child, .card p:last-child, .case p:last-child { margin-bottom: 0; }
.card a, .pillar a { text-decoration: none; }

.logo-slot, .photo-slot, .empty-panel {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  color: var(--muted);
}
.photo-slot { margin: 0; }
.photo-slot {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(-45deg, rgba(198, 163, 106, 0.08) 0 1px, transparent 1px 12px),
    var(--card);
}
.empty-panel { min-height: 180px; border-style: dashed; }
.empty-panel .script { font-size: 32px; margin: 0 0 6px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { border-top: 1px solid var(--gold); padding-top: 12px; }
.steps span { display: block; color: var(--gold); letter-spacing: 0.14em; font-size: 12px; margin-bottom: 8px; }

.facts { grid-template-columns: 1fr 1fr; margin: 8px 0 0; }
.facts div { border-top: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
.facts dt { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; }

.faq { display: grid; gap: 8px; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 0; }
.faq summary { cursor: pointer; font-size: 18px; }
.faq p { margin: 10px 0 0; color: #ddd6cc; }

.form { display: grid; gap: 14px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--gold-soft); }
input, textarea, select {
  width: 100%;
  background: #0c0c0c;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); margin: 0; }

.page-hero { margin-bottom: 28px; }
.page-hero h1 { font-size: 48px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 28px 48px;
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-content: start; }
.footer-nav a { color: var(--gold-soft); text-decoration: none; }
.footer-inner p { margin: 0 0 10px; }

.sveden-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}
.sveden-nav {
  position: sticky;
  top: 132px;
  max-height: calc(100vh - 148px);
  overflow: auto;
}
.sveden-nav p {
  margin: 0 0 10px 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.sveden-nav a {
  display: block;
  text-decoration: none;
  color: #d9d3cb;
  padding: 8px 14px;
  border-left: 1px solid rgba(198, 163, 106, 0.2);
  font-size: 14px;
  line-height: 1.35;
}
.sveden-nav a:hover, .sveden-nav a.active { color: var(--gold-soft); }
.sveden-nav a.active {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(198, 163, 106, 0.12), transparent 80%);
}
.doc {
  padding: 28px 28px 18px;
  margin: 0 0 14px;
  scroll-margin-top: 200px;
}
.doc h2 { font-size: 26px; }
.doc h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 12px;
  background: var(--gold);
}
.doc h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.doc p { margin: 0 0 12px; }
.doc a, .links a { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; }
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.doc th {
  width: 40%;
  padding-right: 22px;
  color: var(--gold);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
}
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.pending {
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.2em;
}
.files, .links { list-style: none; margin: 0; padding: 0; }
.files li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.files li:last-child { border-bottom: 0; }
.files small { color: var(--gold); letter-spacing: 0.04em; white-space: nowrap; }
.links li { margin: 10px 0; padding-left: 16px; position: relative; }
.links li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.55em;
}

@media (max-width: 980px) {
  h1, .page-hero h1 { font-size: 40px; }
  .cards,
  .cards.four,
  .cards.three,
  .cases,
  .steps,
  .photos,
  .slots { grid-template-columns: 1fr 1fr; }
  .footer-inner, .hero, .sveden-layout { grid-template-columns: 1fr; }
  .hero-mark { justify-self: center; width: min(280px, 70%); }
  .sveden-nav { position: static; max-height: none; }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo toggle"
      "nav nav";
    gap: 0 12px;
    align-items: center;
    padding: 12px 16px;
  }
  .lockup { width: 132px; gap: 6px; }
  .consulting { letter-spacing: 0.28em; text-indent: 0.28em; font-size: 10px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    min-height: 44px;
  }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .top-contacts { display: none; grid-area: auto; }
  .site-nav.is-open ~ .top-contacts {
    display: flex;
    grid-area: auto;
    grid-column: 1 / -1;
    padding: 12px 0 4px;
  }
  .site-nav.is-open ~ .top-contacts p { display: none; }
  .site-nav.is-open ~ .top-contacts .btn { width: 100%; min-height: 46px; }

  h1, .page-hero h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .doc h2 { font-size: 22px; }
  .lead { font-size: 16.5px; }
  .eyebrow, .slogan-line { letter-spacing: 0.1em; }
  .slogan-line { line-height: 1.7; }
  .wrap { padding: 28px 16px 56px; }
  .block { margin-top: 44px; }
  .page-hero { margin-bottom: 20px; }
  .hero { gap: 18px; padding-bottom: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .block-head .btn,
  .form .btn { width: 100%; }
  .card, .pillar, .case, .contact-card { padding: 18px 16px; }
  .empty-panel .script { font-size: 28px; }
  .logo-slot, .photo-slot { min-height: 120px; padding: 16px; }

  .footer-inner {
    padding: 28px 16px 40px;
    gap: 22px;
    justify-items: start;
  }
  .footer-inner .lockup { width: 140px; }
  .footer-nav { gap: 12px 16px; }

  .pillars,
  .cards,
  .cards.three,
  .cards.four,
  .cases,
  .split,
  .facts,
  .steps { grid-template-columns: 1fr; }
  .slots,
  .photos { grid-template-columns: 1fr 1fr; }

  .doc { padding: 20px 16px 12px; scroll-margin-top: 96px; }
  .doc th, .doc td { display: block; width: auto; padding-right: 0; }
  .doc th { border-bottom: 0; padding-bottom: 2px; }
  .doc td { padding-top: 0; }
  .files li { flex-direction: column; gap: 4px; align-items: flex-start; }
  .files small { white-space: normal; }
  .faq summary { min-height: 44px; padding: 8px 0; }
  .sveden-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px 12px;
    padding: 0 16px 6px;
    -webkit-overflow-scrolling: touch;
  }
  .sveden-nav p { display: none; }
  .sveden-nav a {
    flex: none;
    border: 1px solid var(--line);
    border-left-width: 1px;
    white-space: nowrap;
    background: #101010;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .sveden-nav a.active { border-color: var(--gold); background: #16120c; }
}
