/* Mettransrem wireframe — theme studio (HSL vars driven by JS) */
:root {
  --hue: 212;
  --sat: 78%;
  --accent-l: 45%;
  --warm: 0;
  --accent: hsl(212 78% 45%);
  --accent-hover: hsl(212 78% 39%);
  --accent-soft: hsla(212 78% 45% / 0.14);
  --accent-glow: hsla(212 78% 45% / 0.18);
  --accent-glow-strong: hsla(212 78% 45% / 0.28);
  --bg: hsl(212 18% 92%);
  --bg-mid: hsl(212 16% 89%);
  --bg-deep: hsl(212 16% 84%);
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(255, 255, 255, 0.55);
  --line-strong: rgba(0, 0, 0, 0.08);
  --line-dashed: rgba(0, 0, 0, 0.18);
  --ph: rgba(255, 255, 255, 0.35);
  --ph-ink: #6e6e73;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --blur: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-logo: 10px;
  --radius-pill: 980px;
  --radius-circle: 50%;
  --page-note-bg: hsla(45 80% 92% / 0.88);
  --page-note-ink: #5c4b00;
  --header-bg: rgba(255, 255, 255, 0.55);
  --footer-bg: hsla(220 16% 12% / 0.88);
  --hero-overlay: linear-gradient(
    120deg,
    rgba(30, 45, 70, 0.55),
    rgba(30, 45, 70, 0.25) 45%,
    rgba(20, 30, 50, 0.4)
  );
  --hero-base: linear-gradient(160deg, #6b7c93 0%, #4a5a70 40%, #2f3b4d 100%);
  --input-bg: rgba(255, 255, 255, 0.65);
  --focus-ring: hsla(212 78% 45% / 0.15);
  --focus-border: hsla(212 78% 45% / 0.45);
  --card-hover-border: hsla(212 78% 45% / 0.35);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", sans-serif;
  --header-h: 64px;
  --note-h: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-mode="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, var(--accent-glow-strong), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Glass utility */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--line);
}

/* —— Wireframe label —— */
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 248, 220, 0.85);
  backdrop-filter: blur(8px);
  color: #5c4b00;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.page-note {
  position: relative;
  z-index: 80;
  background: var(--page-note-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  font-size: 13px;
  color: var(--page-note-ink);
}

.page-note .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.page-note strong {
  font-weight: 600;
}

.page-note__text {
  flex: 1;
  min-width: 180px;
}

.page-note a {
  color: inherit;
  text-decoration: underline;
}

/* —— Settings panel (theme studio) —— */
.settings-root {
  position: relative;
  flex-shrink: 0;
}

.settings-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--page-note-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
}

.settings-trigger svg {
  width: 16px;
  height: 16px;
}

.settings-trigger__chevron {
  transition: transform 0.15s ease;
}

.settings-root.is-open .settings-trigger__chevron {
  transform: rotate(180deg);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(480px, calc(100vw - 24px));
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 16px;
  background: var(--glass-strong);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  z-index: 100;
}

.theme-section {
  margin-bottom: 14px;
}

.theme-section__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.theme-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.theme-card__badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--muted);
  flex-shrink: 0;
}

.settings-export {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-export__btn {
  width: 100%;
}

.settings-export__hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.settings-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-panel__head strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.settings-panel__head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.settings-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

.settings-close svg {
  width: 16px;
  height: 16px;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.theme-card {
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.theme-card:hover {
  border-color: var(--card-hover-border);
}

.theme-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.theme-card__swatches {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.theme-card__swatches span {
  flex: 1;
  height: 8px;
  background: var(--sw);
  border-radius: 2px;
}

.theme-card__name {
  font-size: 12px;
  font-weight: 700;
}

.theme-card__desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.settings-colors {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.settings-colors__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.settings-colors__head strong {
  font-size: 13px;
  color: var(--ink);
}

.settings-reset {
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.slider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-row__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.slider-row__label {
  color: var(--muted);
  font-weight: 600;
}

.slider-row__value {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 560px) {
  .settings-panel {
    position: fixed;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 70vh;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Header (glass over hero) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.site-header--overlay {
  position: absolute;
  top: var(--note-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: var(--radius-logo);
}

.logo-text {
  font-size: 14px;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

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

.nav a {
  color: var(--ink);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.lang select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  min-width: 64px;
  line-height: 1.2;
}

.lang select:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.lang::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink);
  transform: translateY(-35%);
  opacity: 0.7;
}

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

.header-phone {
  display: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.45);
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
  border-radius: var(--radius-md);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn--light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border-color: transparent;
}

.btn--block {
  width: 100%;
}

/* —— Placeholders —— */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ph);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: var(--radius);
  color: var(--ph-ink);
  text-align: center;
  padding: 16px;
  min-height: 120px;
}

.ph svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  opacity: 0.85;
}

.ph__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ph__hint {
  font-size: 12px;
  max-width: 28ch;
  line-height: 1.35;
}

.ph--hero {
  min-height: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
}

.ph--video {
  min-height: 220px;
  background: rgba(29, 29, 31, 0.45);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  border-style: solid;
}

.ph--video .ph-play {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ph--sm {
  min-height: 140px;
}

.ph--md {
  min-height: 180px;
}

.ph--tall {
  min-height: 260px;
}

.ph--square {
  aspect-ratio: 1;
  min-height: 0;
}

.ph--wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* —— Sections —— */
.section {
  padding: 56px 0;
}

.section--alt {
  background: transparent;
}

.section--alt .container > .section-head,
.section--glass {
  /* spacing only */
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 8px;
}

/* —— HERO: classic full viewport —— */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--note-h));
  min-height: calc(100dvh - var(--note-h));
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-overlay), var(--hero-base);
}

.hero__bg .ph {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  min-height: 100%;
}

.hero__bg .ph__label,
.hero__bg .ph__hint {
  color: rgba(255, 255, 255, 0.7);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 70%, var(--accent-glow-strong), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  max-width: 640px;
  margin-left: max(16px, calc((100% - var(--max)) / 2));
}

.hero__panel {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__panel .eyebrow {
  color: rgba(0, 60, 140, 0.9);
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

.hero__content .lead {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 17px;
  font-weight: 500;
  max-width: 42ch;
  line-height: 1.45;
  opacity: 1;
}

html[data-mode="dark"] .hero__content .lead {
  color: color-mix(in srgb, var(--ink) 90%, #fff);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 13px;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero__meta svg {
  width: 16px;
  height: 16px;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__scroll:hover {
  text-decoration: none;
  color: #fff;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  animation: bounce 1.8s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* Home layout: header overlay + full hero */
body.is-home .site-header {
  position: absolute;
  top: var(--note-h);
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--header-bg) 55%, transparent);
  border-bottom: 1px solid var(--line);
}

body.is-home .site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

/* —— Trust / stats —— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -28px;
  position: relative;
  z-index: 5;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  margin-bottom: 0;
}

.stats-wrap {
  padding: 0 0 8px;
}

.stat {
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.stat__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* —— Cards grid —— */
.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.card:hover {
  border-color: var(--card-hover-border);
  background: var(--glass-strong);
}

.card .ph {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__body h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
  border-radius: var(--radius-md);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__link {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* —— Feature list —— */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
}

.feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
}

.feature__icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* —— Workshops strip —— */
.workshop-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.workshop-card .ph {
  border: none;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.workshop-card__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workshop-card__info h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.workshop-card__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workshop-card__meta span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.workshop-card__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* —— Form —— */
.form-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.form-panel .lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--input-bg);
  color: var(--ink);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.form-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.messenger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messenger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.messenger:hover {
  border-color: var(--card-hover-border);
  text-decoration: none;
}

.messenger svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* —— Docs —— */
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.doc-item + .doc-item {
  margin-top: 8px;
}

.doc-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.doc-item__text {
  flex: 1;
  min-width: 0;
}

.doc-item__text strong {
  display: block;
  font-size: 14px;
}

.doc-item__text span {
  font-size: 12px;
  color: var(--muted);
}

/* —— Page hero (inner) —— */
.page-hero {
  background: transparent;
  border-bottom: none;
  padding: 36px 0 12px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 6px;
}

/* —— Two column layout —— */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.content-block p,
.content-block li {
  color: var(--muted);
  font-size: 14px;
}

.content-block ul {
  padding-left: 18px;
}

.side-cta {
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.side-cta h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.side-cta p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

/* —— Map placeholder —— */
.map-ph {
  min-height: 320px;
}

/* —— Float messengers —— */
.float-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

.float-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.float-btn svg {
  width: 22px;
  height: 22px;
}

.float-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  width: auto;
  border-radius: var(--radius-pill);
  padding: 0 16px;
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: none;
}

/* —— Footer —— */
.site-footer {
  background: var(--footer-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #a1a1a6;
  padding: 40px 0 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #a1a1a6;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f5f5f7;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-brand .logo-mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #9ab0c9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 12px;
  color: #86868b;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* —— List table (services index) —— */
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.service-row + .service-row {
  margin-top: 8px;
}

.service-row:hover {
  border-color: var(--card-hover-border);
  background: var(--glass-strong);
}

/* —— Partners —— */
.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner-ph {
  min-height: 72px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--ph-ink);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.partner-ph svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__content {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-top: calc(var(--header-h) + 32px);
  }

  .hero__panel {
    padding: 28px 22px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }

  .grid-3,
  .grid-4,
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .form-panel,
  .split,
  .workshop-card {
    grid-template-columns: 1fr;
  }

  .workshop-card .ph {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partners {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: 12px;
    gap: 0;
  }

  .menu-toggle {
    display: grid;
  }

  .header-phone {
    display: none;
  }

  .site-header {
    position: relative;
  }

  body.is-home .site-header {
    position: absolute;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .features,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partners {
    grid-template-columns: repeat(2, 1fr);
  }

  .lang {
    display: inline-flex;
  }

  .hero__content h1 {
    font-size: 26px;
  }
}

/* —— Surface modes (non-glass) —— */
html[data-surface]:not([data-surface="glass"]) .site-header,
html[data-surface]:not([data-surface="glass"]) .card,
html[data-surface]:not([data-surface="glass"]) .feature,
html[data-surface]:not([data-surface="glass"]) .workshop-card,
html[data-surface]:not([data-surface="glass"]) .form-panel,
html[data-surface]:not([data-surface="glass"]) .stat,
html[data-surface]:not([data-surface="glass"]) .doc-item,
html[data-surface]:not([data-surface="glass"]) .side-cta,
html[data-surface]:not([data-surface="glass"]) .service-row,
html[data-surface]:not([data-surface="glass"]) .partner-ph,
html[data-surface]:not([data-surface="glass"]) .hero__panel,
html[data-surface]:not([data-surface="glass"]) .ph,
html[data-surface]:not([data-surface="glass"]) .btn--ghost,
html[data-surface]:not([data-surface="glass"]) .float-btn,
html[data-surface]:not([data-surface="glass"]) .messenger,
html[data-surface]:not([data-surface="glass"]) .form-aside {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-surface]:not([data-surface="glass"]) .card,
html[data-surface]:not([data-surface="glass"]) .feature,
html[data-surface]:not([data-surface="glass"]) .workshop-card,
html[data-surface]:not([data-surface="glass"]) .form-panel,
html[data-surface]:not([data-surface="glass"]) .stat,
html[data-surface]:not([data-surface="glass"]) .doc-item,
html[data-surface]:not([data-surface="glass"]) .side-cta,
html[data-surface]:not([data-surface="glass"]) .service-row,
html[data-surface]:not([data-surface="glass"]) .hero__panel {
  border-width: var(--surface-border-width, 1px);
}

html[data-surface="blueprint"] body {
  background-image:
    linear-gradient(var(--line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  background-color: var(--bg) !important;
  background-attachment: scroll !important;
}

html[data-surface="paper"] body {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      hsla(30 25% 40% / 0.08) 28px
    ) !important;
  background-attachment: scroll !important;
}

html[data-surface="swiss"] body {
  background-image: none !important;
  background-color: var(--bg) !important;
}

html[data-surface="swiss"] .section-head h2,
html[data-surface="swiss"] .hero__panel h1,
html[data-surface="swiss"] .page-hero h1 {
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: 800;
}

html[data-surface="signal"] .site-header {
  background: #111 !important;
  border-bottom: 3px solid var(--accent);
}

html[data-surface="signal"] .site-header .logo,
html[data-surface="signal"] .site-header .nav a {
  color: #fff;
}

html[data-surface="signal"] .site-header .lang select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

html[data-surface="signal"] .site-header .lang::after {
  border-top-color: #fff;
}

html[data-surface="signal"] .site-header .nav a:hover,
html[data-surface="signal"] .site-header .nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

html[data-surface="signal"] .btn {
  border-radius: 0;
  border: 2px solid #111;
}

html[data-surface="signal"] .stat__value {
  background: var(--accent);
  color: #111;
  display: inline-block;
  padding: 2px 8px;
}

html[data-surface="outline"] .card,
html[data-surface="outline"] .feature,
html[data-surface="outline"] .workshop-card,
html[data-surface="outline"] .form-panel,
html[data-surface="outline"] .stat,
html[data-surface="outline"] .hero__panel,
html[data-surface="outline"] .side-cta {
  background: transparent !important;
  border-color: var(--ink);
}

html[data-surface="outline"] .btn--ghost {
  border-width: 2px;
  border-color: var(--ink);
  background: transparent;
}

html[data-surface="flat"] body {
  background-image: none !important;
  background-color: var(--bg) !important;
}

html[data-surface="solid"] body,
html[data-surface="matte"] body {
  background-image: none !important;
  background-color: var(--bg) !important;
}

html[data-surface="matte"] .card,
html[data-surface="matte"] .feature,
html[data-surface="matte"] .workshop-card,
html[data-surface="matte"] .form-panel,
html[data-surface="matte"] .stat {
  box-shadow: none;
}

html[data-group="solid"] .settings-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
