:root {
  --anthracite: #1a1d21;
  --anthracite-soft: #2a2f36;
  --steel: #8a939e;
  --cloud: #f4f6f8;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-bright: #e0b83a;
  --gold-deep: #9a7b1a;
  --text: #1a1d21;
  --text-muted: #5c6570;
  --border: rgba(26, 29, 33, 0.12);
  --shadow: 0 18px 50px rgba(26, 29, 33, 0.12);
  --radius: 4px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --nav-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container-narrow {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  width: max-content;
}

.brand-word {
  display: block;
  white-space: nowrap;
}

.brand-3d {
  color: var(--steel);
}

.brand-analys {
  color: var(--gold);
}

.brand-sweden {
  display: block;
  color: var(--steel);
  font-size: 0.78em;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
  white-space: nowrap;
  text-align: center;
}

.brand .brand-name {
  color: inherit;
}

.brand .brand-3d,
.brand .brand-sweden {
  color: var(--anthracite);
}

.brand .brand-analys {
  color: var(--gold);
}

.brand .brand-sweden {
  font-size: 0.82em;
  letter-spacing: 0.05em;
  text-align: center;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-lang span {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--anthracite);
}

.nav-links a.active {
  color: var(--gold-deep);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--anthracite);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--anthracite);
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-dark {
  background: var(--anthracite);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gold);
  color: var(--anthracite);
}

.btn-dark:disabled,
.btn-dark[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-dark:disabled:hover,
.btn-dark[aria-disabled="true"]:hover {
  background: var(--anthracite);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 21, 26, 0.9) 0%, rgba(18, 21, 26, 0.68) 46%, rgba(18, 21, 26, 0.42) 100%),
    url("../img/hero-bg.png") center right / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 162, 39, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero-brand-name {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-brand-name .brand-3d {
  color: #9aa3ad;
}

.hero-brand-name .brand-analys {
  color: var(--gold);
}

.hero-brand-name .brand-sweden {
  display: block;
  color: #9aa3ad;
  font-size: 0.82em;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  white-space: nowrap;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  max-width: 18ch;
  margin-bottom: 1rem;
  color: #fff;
}

.hero .lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(360px, 100%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  animation: floatLogo 5.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
  }
  50% {
    transform: translateY(-18px) scale(1.08);
    filter: drop-shadow(0 42px 72px rgba(201, 162, 39, 0.28));
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-muted {
  background:
    linear-gradient(180deg, var(--cloud) 0%, #eef1f4 100%);
}

.section-dark {
  background: var(--anthracite);
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Dimensions ---------- */
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.5rem;
  row-gap: 0;
}

.dimension {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  padding: 2rem 1.5rem 1.75rem;
  border-top: 3px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-dark .dimension {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--gold);
}

.dimension-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.dimension h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.dimension .tool {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.section-dark .dimension .tool {
  color: var(--gold);
}

.dimension p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.section-dark .dimension p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.process-item:last-child {
  border-bottom: none;
}

.process-item::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.process-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.process-item p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split-headings {
  align-items: start;
  column-gap: 3rem;
  row-gap: 0;
  grid-template-areas:
    "label-a label-b"
    "title-a title-b"
    "body-a body-b";
}

.split-headings-label-a { grid-area: label-a; }
.split-headings-title-a { grid-area: title-a; }
.split-headings-body-a { grid-area: body-a; }
.split-headings-label-b { grid-area: label-b; }
.split-headings-title-b { grid-area: title-b; }
.split-headings-body-b { grid-area: body-b; }

.split-headings .section-intro {
  margin-bottom: 0;
  max-width: none;
}

.split-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.segment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.segment-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.segment-lead {
  margin-bottom: 0;
  max-width: 52ch;
}

.resources-block {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
}

.resources-grid {
  margin-top: 0.25rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-member {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 1.75rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: calc(0.9rem * 1.35 * 2);
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}

.team-member p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.team-contact {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.team-contact a {
  color: var(--anthracite);
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
}

.team-contact a:hover {
  color: var(--gold-deep);
}

/* ---------- Services list ---------- */
.service-blocks {
  display: grid;
  gap: 1.25rem;
}

.service-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.service-block strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.service-block p:last-child {
  margin-bottom: 0;
}

.security-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-deep);
}

.security-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.security-point {
  padding: 1.75rem;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.security-point strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
}

.security-point h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.security-point p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.help-item {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.98rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 21, 26, 0.9) 0%, rgba(18, 21, 26, 0.72) 55%, rgba(18, 21, 26, 0.55) 100%),
    url("../img/hero-bg.png") center right / cover no-repeat;
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.75);
  margin: 1rem 0 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  padding: 2rem;
  background: var(--cloud);
  border-top: 3px solid var(--gold);
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-list a:hover {
  color: var(--gold-deep);
}

.form-panel {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.form-panel .hint {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-check input {
  margin-top: 0.3rem;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #e8f6ec;
  color: #1d6b3a;
  border: 1px solid #b7e0c4;
}

.alert-error {
  background: #fdeeee;
  color: #8a2a2a;
  border: 1px solid #f0c2c2;
}

/* ---------- Legal ---------- */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(120deg, rgba(201, 162, 39, 0.15), transparent 40%),
    var(--anthracite);
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
  margin: 0 auto 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #101216;
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-brand .brand-name {
  color: inherit;
}

.footer-brand .brand-3d,
.footer-brand .brand-sweden {
  color: var(--steel);
}

.footer-brand .brand-analys {
  color: var(--gold);
}

.footer-brand .brand-sweden {
  font-size: 0.82em;
  letter-spacing: 0.05em;
  text-align: center;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.footer-admin {
  opacity: 0.55;
}

.footer-admin:hover {
  opacity: 1;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner,
  .split,
  .contact-grid,
  .dimension-grid,
  .team-grid,
  .help-grid,
  .footer-grid,
  .security-points {
    grid-template-columns: 1fr;
  }

  .split-headings {
    grid-template-areas:
      "label-a"
      "title-a"
      "body-a"
      "label-b"
      "title-b"
      "body-b";
  }

  .split-headings-body-a {
    margin-bottom: 2rem;
  }

  .dimension-grid {
    row-gap: 1.5rem;
  }

  .dimension {
    display: block;
    grid-row: auto;
  }

  .team-role {
    min-height: 0;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(220px, 55vw);
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(18, 21, 26, 0.92) 0%, rgba(18, 21, 26, 0.82) 55%, rgba(18, 21, 26, 0.78) 100%),
      url("../img/hero-bg.png") center / cover no-repeat;
  }

  .hero-inner {
    gap: 1.5rem;
    padding: 2rem 0 2.5rem;
  }

  .hero-brand img {
    width: 56px;
    height: 56px;
  }

  .page-hero {
    padding: 3rem 0 2.25rem;
    background:
      linear-gradient(180deg, rgba(18, 21, 26, 0.92) 0%, rgba(18, 21, 26, 0.82) 100%),
      url("../img/hero-bg.png") center / cover no-repeat;
  }

  .brand {
    font-size: 0.92rem;
    gap: 0.55rem;
    min-width: 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 1001;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0;
  }

  .nav-links a.active::after {
    left: 0;
    right: auto;
    bottom: 0.7rem;
    width: 1.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .resources-block {
    margin-top: 2.25rem;
    padding-top: 2rem;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 68px;
  }

  .container-narrow {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .process-item {
    grid-template-columns: 56px 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-inner {
    padding: 1.5rem 0 2rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .hero .lead {
    font-size: 0.98rem;
  }

  .hero-brand {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-brand-name {
    font-size: 1.2rem;
  }

  .page-hero {
    padding: 2.5rem 0 1.75rem;
  }

  .page-hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-title {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .cta-band {
    padding: 2.75rem 0;
  }

  .cta-band h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .contact-card,
  .form-panel,
  .service-block,
  .security-point,
  .team-member {
    padding: 1.35rem;
  }

  .segment-tags {
    gap: 0.5rem;
  }

  .segment-tag {
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
  }

  .site-header .inner {
    gap: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(26, 29, 33, 0.08), transparent 50%),
    linear-gradient(160deg, #f7f8fa 0%, #eef1f4 45%, #e6eaef 100%);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.75rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-brand .brand-3d,
.login-brand .brand-sweden {
  color: var(--anthracite);
}

.login-brand .brand-analys {
  color: var(--gold);
}

.login-brand .brand-sweden {
  font-size: 0.82em;
  letter-spacing: 0.05em;
  text-align: center;
}

.login-panel h1 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.login-lead {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.login-alert {
  background: #f8e8e8;
  border: 1px solid #e0b0b0;
  color: #6b1f1f;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.login-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.login-lang {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.login-lang a {
  color: var(--text-muted);
}

.login-lang a.active,
.login-lang a:hover {
  color: var(--gold-deep);
}

.nav-logout {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.nav-logout:hover {
  color: var(--anthracite) !important;
}

/* ---------- Under construction ---------- */
.construction-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(26, 29, 33, 0.08), transparent 50%),
    linear-gradient(160deg, #f7f8fa 0%, #eef1f4 45%, #e6eaef 100%);
}

.construction-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.construction-panel {
  width: min(520px, 100%);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.5rem 1.75rem 2rem;
}

.construction-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.construction-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.construction-panel h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.construction-panel .lead {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.construction-admin a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.construction-admin a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ---------- Admin ---------- */
.admin-section {
  padding-top: 0;
}

.admin-hero {
  padding-bottom: 1.5rem;
}

.admin-alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.admin-alert-ok {
  background: #eef7f0;
  border-color: #b7d4be;
  color: #1f4d2a;
}

.admin-alert-error {
  background: #f8e8e8;
  border-color: #e0b0b0;
  color: #6b1f1f;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem 1.35rem 1.35rem;
  margin-bottom: 1.75rem;
}

.admin-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.admin-panel-lead {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.admin-uc-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.admin-uc-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.admin-uc-status.is-ok {
  color: #1f4d2a;
}

.admin-uc-status.is-error {
  color: #6b1f1f;
}

.admin-uc-status.is-busy {
  color: var(--text-muted);
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.admin-switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cfd5db;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.admin-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.admin-switch input:checked + .admin-switch-ui {
  background: var(--gold);
}

.admin-switch input:checked + .admin-switch-ui::after {
  transform: translateX(20px);
}

.admin-switch input:focus-visible + .admin-switch-ui {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.admin-switch-label {
  font-weight: 600;
}

.lang-editor-head,
.lang-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.2fr 1.2fr;
  gap: 0.75rem;
  align-items: start;
}

.lang-editor-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--anthracite);
  color: #fff;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lang-editor {
  max-height: min(70vh, 780px);
  overflow: auto;
  border: 1px solid var(--border);
  border-top: 0;
  background: #fafbfc;
}

.lang-row {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.lang-row:nth-child(even) {
  background: #f7f8fa;
}

.lang-row.is-active {
  background: rgba(201, 162, 39, 0.12);
  box-shadow: inset 3px 0 0 var(--gold);
}

.lang-col-key code {
  display: block;
  font-size: 0.78rem;
  word-break: break-word;
  color: var(--text-muted);
  padding-top: 0.35rem;
}

.lang-row textarea {
  width: 100%;
  min-height: 2.8rem;
  resize: vertical;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.45rem 0.55rem;
  font-family: var(--font-body, inherit);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
}

.lang-row textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  border-color: var(--gold);
}

.admin-lang-actions {
  margin-top: 1.15rem;
}

@media (max-width: 900px) {
  .lang-editor-head,
  .lang-row {
    grid-template-columns: 1fr;
  }

  .lang-editor-head .lang-col-sv,
  .lang-editor-head .lang-col-en {
    display: none;
  }

  .lang-col-sv::before,
  .lang-col-en::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
  }
}
