/* ---------- Tokens ---------- */
:root {
  --bg-base:        #FAFAF7;
  --bg-alt:         #F2F1EC;
  --bg-dark:        #0E1820;
  --bg-darker:      #091118;
  --surface-card:   #FFFFFF;

  --text-primary:   #0F1B24;
  --text-secondary: #4A5560;
  --text-muted:     #7A8590;
  --text-on-dark:   #F2F1EC;

  --accent:         #0E6E68;
  --accent-hover:   #0A5A55;
  --accent-subtle:  #E6F0EF;

  --border:         #E5E3DC;
  --border-strong:  #C9C6BC;

  --font-display:   "Lora", "Source Serif Pro", Georgia, serif;
  --font-sans:      "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:      ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --shadow-xs:      0 1px 2px rgba(15, 27, 36, 0.04);
  --shadow-sm:      0 2px 8px rgba(15, 27, 36, 0.06);

  --radius-card:    8px;
  --radius-hero:    12px;
  --radius-btn:     6px;

  --container-max:  1280px;
  --container-pad:  48px;
  --grid-gap:       32px;

  --header-h:       80px;
}

@media (max-width: 767px) {
  :root {
    --container-pad: 20px;
    --header-h: 64px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--border-strong);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

h1.display {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1.1;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  text-wrap: balance;
}
h1.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-btn);
  min-height: 48px;
  padding: 16px 28px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-base);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 15px 27px;
}
.btn-secondary:hover {
  border-color: var(--text-primary);
  background: var(--bg-alt);
}

.btn-sm {
  min-height: 44px;
  padding: 12px 22px;
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font-sans);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variation-settings: "opsz" 36;
}
.wordmark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
  margin-left: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-desktop a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-primary);
}
.menu-toggle:hover { background: var(--bg-alt); }
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle .bar + .bar { margin-top: 6px; }

/* ---------- Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 60;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }

.mobile-menu-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--container-pad);
  border-bottom: 1px solid var(--border);
}
.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}
.mobile-menu-close:hover { background: var(--bg-alt); }

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px var(--container-pad);
  gap: 4px;
}
.mobile-menu-nav a {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu-nav a .arrow {
  color: var(--text-muted);
  font-size: 16px;
  transition: transform .2s ease, color .2s ease;
}
.mobile-menu-nav a:hover { color: var(--accent); }
.mobile-menu-nav a:hover .arrow { color: var(--accent); transform: translateX(3px); }

.mobile-menu-footer {
  padding: 24px var(--container-pad) 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu-footer .phone {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
}
.mobile-menu-footer .phone strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 88px;
  padding-bottom: 120px;
  position: relative;
}
@media (max-width: 767px) {
  .hero { padding-top: 48px; padding-bottom: 72px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--grid-gap);
  align-items: center;
}

.hero-copy { max-width: 600px; }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 16px;
}

.microcopy {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.microcopy::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-visual .accent-arc {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -56px;
  bottom: -56px;
  background: var(--accent);
  opacity: 0.06;
  border-radius: 50% 0 0 0;
  z-index: 0;
  pointer-events: none;
}
.hero-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.hero-photo .placeholder-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    #E5E3DC 0,
    #E5E3DC 1px,
    transparent 1px,
    transparent 14px
  );
  background-color: #ECEAE3;
}
.hero-photo .placeholder-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 6px;
  max-width: 320px;
}
.hero-photo > picture,
.hero-photo > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo .placeholder-label .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Credibility row */
.cred-row {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}
.cred-row .label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cred-row .items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--accent-subtle);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}
.cred-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cred-row .text-item {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
}
.cred-row .text-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 879px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-copy { max-width: 100%; order: 1; }
  .hero-visual { order: 2; }
}

@media (max-width: 767px) {
  h1.display { font-size: 40px; line-height: 1.15; margin-bottom: 20px; }
  .lead { font-size: 17px; margin-bottom: 32px; }
  body { font-size: 16px; }
  .eyebrow { margin-bottom: 20px; }
  .cta-row { gap: 16px 20px; }
  .btn { width: 100%; }
  .btn-secondary { display: none; }
  .text-link { font-size: 15px; }
  .hero-visual .accent-arc { width: 180px; height: 180px; right: -32px; bottom: -32px; }
  .cred-row { margin-top: 56px; gap: 16px 24px; }
  .cred-row .items { gap: 8px; }
}

/* Body scroll lock when menu open */
body.menu-open { overflow: hidden; }

/* Skip link */
/* Skip link — branded, slides down on focus */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 6px 0;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Visible when focused (e.g. for sr-only links that should appear on tab) */
.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ===========================================================
   Section: shared
   =========================================================== */
.section { padding-block: 120px; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
@media (max-width: 767px) {
  .section { padding-block: 72px; }
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

h2.h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  color: var(--text-primary);
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.section--dark h2.h2 { color: var(--text-on-dark); }

.section-head .lead {
  margin-top: 20px;
  margin-bottom: 0;
}
.section-head.center .lead { margin-inline: auto; }

.section--dark .eyebrow { color: var(--accent); }
.section--dark .eyebrow::before { background: color-mix(in oklab, var(--accent) 50%, transparent); }

@media (max-width: 767px) {
  h2.h2 { font-size: 28px; }
  .section-head { margin-bottom: 44px; }
}

.section-foot {
  margin-top: 64px;
  text-align: center;
}
@media (max-width: 767px) { .section-foot { margin-top: 44px; } }

.section--dark .section-foot .text-link {
  color: var(--accent);
}

/* ===========================================================
   Problems grid
   =========================================================== */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 32px;
}
@media (max-width: 1023px) {
  .problems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .problems-grid { grid-template-columns: 1fr; gap: 8px; }
}

.problem {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 1023px) { .problem { padding-right: 16px; } }
@media (max-width: 559px) {
  .problem {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .problem:last-child { border-bottom: 0; }
}

.problem-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.problem-icon svg { width: 24px; height: 24px; }

.problem h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
.problem p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* ===========================================================
   Services
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 959px) {
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .service-card h3 { font-size: 26px; line-height: 1.3; }
}

.service-card .desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}

.service-card .sep {
  height: 1px;
  background: var(--border);
  margin-block: 4px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}
.check-list .check {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.service-card .card-cta {
  margin-top: auto;
  padding-top: 4px;
}

/* Supporting cards row */
.services-extra {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 959px) {
  .services-extra { grid-template-columns: 1fr; }
}

.service-mini {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, background-color .2s ease;
}
.service-mini:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  background: color-mix(in oklab, var(--accent-subtle) 40%, var(--surface-card));
}
.service-mini h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}
.service-mini p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.service-mini .text-link { font-size: 14px; margin-top: 4px; }

/* ===========================================================
   Process — timeline
   =========================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: color-mix(in oklab, var(--accent) 55%, transparent);
  z-index: 0;
}
@media (max-width: 959px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-grid::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 959px) {
  .step {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
  .step-body { flex: 1; padding-top: 8px; }
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 6px var(--bg-dark);
  flex-shrink: 0;
}

.step h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-on-dark);
  margin: 0 0 10px;
  text-wrap: balance;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: #B0B8C2;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.step .commit {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.4;
}
.step .commit .commit-label {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent) 80%, var(--text-on-dark));
}
.step .commit .commit-value {
  color: var(--text-on-dark);
  font-size: 13px;
}

/* ===========================================================
   Shared: portrait media
   =========================================================== */
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-7-5 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 879px) {
  .split-7-5 { grid-template-columns: 1fr; gap: 40px; }
}

/* ===========================================================
   Dowody kompetencji (stats)
   =========================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 479px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}
.stat .num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  font-weight: 500;
  font-variation-settings: "opsz" 120;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.stat .num.compact { font-size: 44px; letter-spacing: -0.01em; }
.stat p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 260px;
  text-wrap: pretty;
}
@media (max-width: 767px) {
  .stat .num { font-size: 52px; }
  .stat .num.compact { font-size: 38px; }
}

.industries {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ===========================================================
   Installation types (Typy wdrożeń) — in Dowody section
   =========================================================== */
.installation-types {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
@media (max-width: 767px) {
  .installation-types { margin-top: 48px; padding-top: 40px; }
}
.installation-types .eyebrow { margin-bottom: 16px; }
.installation-types h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.installation-types .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 620px;
}
@media (max-width: 767px) {
  .installation-types h3 { font-size: 22px; }
  .installation-types .lead { font-size: 17px; margin-bottom: 28px; }
}
.installation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 767px) {
  .installation-grid { grid-template-columns: 1fr; gap: 16px; }
}
.installation-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.installation-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  transform: translateY(-2px);
}
.installation-card .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .installation-card .icon { width: 28px; height: 28px; }
}
.installation-card h4 {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .installation-card h4 { font-size: 18px; }
}
.installation-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}

.section-note {
  max-width: 720px;
  margin: 72px auto 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}
@media (max-width: 767px) {
  .section-note { font-size: 17px; margin-top: 48px; text-align: left; }
}

/* ===========================================================
   Opinie (testimonials)
   =========================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 959px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
}
.testimonial {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.6;
  font-weight: 500;
  color: color-mix(in oklab, var(--accent) 30%, transparent);
  margin-bottom: 12px;
  height: 44px;
}
.testimonial .quote {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.testimonial .sep {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testimonial .who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.testimonial .who .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial .who .role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================================================
   O Łukaszu
   =========================================================== */
.about-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 620px;
  text-wrap: pretty;
}
.about-text p:first-of-type { color: var(--text-primary); }
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cert-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.about-text .eyebrow,
.about-text h2.h2 { max-width: none; }

/* ===========================================================
   Case studies
   =========================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 879px) {
  .cases-grid { grid-template-columns: 1fr; }
}
.case-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.case-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  transform: translateY(-2px);
}
.case-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  overflow: hidden;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-body h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (min-width: 1024px) { .case-body h3 { font-size: 26px; } }
.case-body .desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-block: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric .mnum {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin: 12px 0 6px;
}
.metric .mdesc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0 0 8px;
}
@media (max-width: 479px) {
  .metric .mnum { font-size: 26px; }
}

/* ===========================================================
   FAQ accordion
   =========================================================== */
.faq-wrap { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq-item[open] .faq-q .chev,
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 720px;
  text-wrap: pretty;
}
@media (max-width: 767px) {
  .faq-q { font-size: 18px; }
  .faq-a-inner { font-size: 16px; }
}

/* ===========================================================
   Contact + form
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 879px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
.contact-lead {
  font-size: 20px;
  line-height: 1.55;
  color: #B0B8C2;
  margin: 0 0 36px;
  max-width: 520px;
  text-wrap: pretty;
}
@media (max-width: 767px) { .contact-lead { font-size: 17px; } }

.contact-portrait {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-hero);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  background: #15212B;
}
.contact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 879px) {
  .contact-portrait { max-width: 220px; margin-bottom: 28px; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-on-dark);
}
.contact-list .ic {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-list a { color: var(--text-on-dark); text-underline-offset: 3px; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

/* Form */
.contact-form {
  background: #15212B;
  border-radius: var(--radius-hero);
  padding: 40px;
}
@media (max-width: 479px) { .contact-form { padding: 28px 24px; } }
.contact-form h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact-form .form-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #B0B8C2;
  margin: 0 0 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #B0B8C2;
  margin-bottom: 8px;
}
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-on-dark);
  background: #0E1820;
  border: 1px solid #2A3742;
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #6B7682; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.2);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 24px;
}
.consent input {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.consent label {
  font-size: 13px;
  line-height: 1.5;
  color: #B0B8C2;
  font-weight: 400;
  letter-spacing: 0;
}
.consent label a { color: var(--accent); text-underline-offset: 2px; text-decoration: underline; }
.contact-form .btn { width: 100%; }
.form-microcopy {
  font-size: 14px;
  line-height: 1.55;
  color: #B0B8C2;
  margin: 16px 0 0;
  text-align: center;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  padding: 80px 0 40px;
}
@media (max-width: 767px) { .site-footer { padding: 48px 0 32px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
.footer-brand .wordmark {
  font-size: 24px;
  color: var(--text-on-dark);
}
.footer-brand .wordmark .dot { background: var(--accent); }
.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: #B0B8C2;
  max-width: 280px;
  margin: 16px 0 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1A2530;
  border-radius: 8px;
  color: var(--text-on-dark);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B0B8C2;
  margin: 0 0 20px;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
@media (max-width: 767px) { .footer-nav { grid-template-columns: 1fr 1fr; max-width: 320px; } }
.footer-nav a, .footer-contact a, .footer-contact span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-on-dark);
}
.footer-nav a { transition: color .15s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact a { text-underline-offset: 3px; transition: color .15s ease; }
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #1A2530;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 14px; color: #B0B8C2; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 14px;
  color: #B0B8C2;
  transition: color .15s ease;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--text-on-dark); text-decoration: underline; }
.footer-legal a.legal-todo {
  opacity: 0.6;
  cursor: not-allowed;
}
.footer-legal a.legal-todo:hover { text-decoration: none; color: #B0B8C2; }
@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   Subpage hero (legal / 404)
   =========================================================== */
.subhero {
  padding-top: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.subhero .eyebrow { margin-bottom: 20px; }
.subhero h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.subhero .updated {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.subhero .updated::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 767px) {
  .subhero { padding-top: 48px; padding-bottom: 40px; }
  .subhero h1 { font-size: 36px; }
}

/* ===========================================================
   Legal page layout (TOC sidebar + content)
   =========================================================== */
.legal-wrap {
  padding-block: 80px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 899px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.legal-toc h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: color .15s ease;
}
.legal-toc a::before {
  content: counter(toc);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
  min-width: 18px;
}
.legal-toc a:hover { color: var(--accent); }
@media (max-width: 899px) {
  .legal-toc {
    position: static;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    background: var(--bg-alt);
  }
}

.legal-content { max-width: 720px; }
.legal-section { padding-block: 8px 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-section + .legal-section { border-top: 1px solid var(--border); padding-top: 40px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-section h2 .num {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.legal-section ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-section ul li strong { color: var(--text-primary); font-weight: 600; }
.legal-section a.inline-link {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.legal-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Definition-style callout for legal basis */
.legal-callout {
  background: var(--accent-subtle);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 14px;
}
.legal-callout p { margin: 0 0 8px; color: var(--text-primary); }
.legal-callout p:last-child { margin: 0; }
.legal-callout .basis { font-weight: 600; color: var(--accent); }

/* Cookie table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}
.cookie-table th, .cookie-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cookie-table th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cookie-table td { color: var(--text-secondary); line-height: 1.5; }
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}
@media (max-width: 559px) {
  .cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
  .cookie-table thead { display: none; }
  .cookie-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 8px 4px;
    margin-bottom: 12px;
  }
  .cookie-table td { border: 0; padding: 6px 14px; }
  .cookie-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
}

/* ===========================================================
   404 page
   =========================================================== */
.notfound {
  padding-block: 96px;
}
.notfound-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 899px) {
  .notfound-grid { grid-template-columns: 1fr; gap: 48px; }
  .notfound-visual { order: -1; max-width: 320px; }
}
.notfound h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.08;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 20px 0 24px;
  text-wrap: balance;
}
@media (max-width: 767px) { .notfound h1 { font-size: 38px; } .notfound { padding-block: 64px; } }
.notfound .lead { margin-bottom: 36px; }
.notfound-status {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
}
.notfound-status .ok {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.notfound-links {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 540px;
}
@media (max-width: 479px) { .notfound-links { grid-template-columns: 1fr; } }
.notfound-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.notfound-link:hover {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--border));
  transform: translateY(-2px);
}
.notfound-link .nl-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.notfound-link .nl-title .arrow { color: var(--accent); transition: transform .2s ease; }
.notfound-link:hover .nl-title .arrow { transform: translateX(3px); }
.notfound-link .nl-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.notfound-visual {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.notfound-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================
   Thank-you page (/dziekuje.html)
   =========================================================== */
.thankyou { padding-block: 120px; }
@media (max-width: 767px) { .thankyou { padding-block: 80px; } }
.thankyou-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.thankyou-inner .eyebrow::before { display: none; }
.thankyou-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.thankyou-badge svg { width: 30px; height: 30px; }
.thankyou h1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
@media (max-width: 767px) { .thankyou h1 { font-size: 38px; } }
.thankyou .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 36px;
}
.thankyou .lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
@media (max-width: 767px) { .thankyou .lead { font-size: 17px; } }
.thankyou-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===========================================================
   Cookie banner + preferences modal
   =========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--bg-darker);
  color: var(--text-on-dark);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(110%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-shown { transform: translateY(0); }
.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--container-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
  position: relative;
}
@media (max-width: 767px) {
  .cookie-inner { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
}
.cookie-text h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 6px;
}
.cookie-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #B0B8C2;
  margin: 0;
  max-width: 640px;
}
.cookie-text a { color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie-text a:hover { color: #fff; }
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { width: 100%; }
}
.cookie-banner .btn-ghost-dark {
  background: transparent;
  border: 1px solid #2A3742;
  color: var(--text-on-dark);
  padding: 15px 22px;
}
.cookie-banner .btn-ghost-dark:hover { border-color: #46545F; background: #15212B; }
.cookie-banner .text-link-dark {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-underline-offset: 4px;
}
.cookie-banner .text-link-dark:hover { text-decoration: underline; }
.cookie-banner .text-link-dark .arrow { transition: transform .2s ease; }
.cookie-banner .text-link-dark:hover .arrow { transform: translateX(3px); }
.cookie-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #B0B8C2;
  font-size: 22px;
  line-height: 1;
  border-radius: 6px;
}
.cookie-close:hover { background: #15212B; color: var(--text-on-dark); }
@media (max-width: 767px) { .cookie-close { top: 8px; right: 8px; } }

/* preferences modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 17, 24, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cookie-modal.is-open { display: flex; }
.cookie-dialog {
  background: var(--surface-card);
  border-radius: var(--radius-hero);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(15, 27, 36, 0.3);
  animation: fadeUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) { .cookie-dialog { animation: none; } }
.cookie-dialog-head {
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cookie-dialog-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  color: var(--text-primary);
  margin: 0;
}
.cookie-dialog-head .x {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 22px; color: var(--text-muted);
  flex-shrink: 0;
}
.cookie-dialog-head .x:hover { background: var(--bg-alt); color: var(--text-primary); }
.cookie-dialog-body { padding: 16px 28px 8px; }
.cookie-dialog-body > p {
  font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 20px;
}
.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.cookie-option:last-of-type { border-bottom: 1px solid var(--border); }
.cookie-option .switch { grid-row: span 2; padding-top: 2px; }
.cookie-option .opt-title {
  font-weight: 600; font-size: 16px; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.cookie-option .opt-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-subtle); padding: 2px 8px; border-radius: 999px;
}
.cookie-option .opt-desc { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

/* category cards (Consent Mode v2 — phase 1: 2 categories) */
.cat-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-card);
  margin-bottom: 12px;
}
.cat-card:last-of-type { margin-bottom: 0; }
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cat-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cat-card .opt-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-subtle); padding: 2px 8px; border-radius: 999px;
}
.cat-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 8px 0 0;
}
.cat-toggle {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
}
.cat-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.cat-cookies {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-cookies li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.cat-cookies code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}
/* toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--border-strong); transition: background .2s ease;
}
.switch .track::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-xs); transition: transform .2s ease;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .track { background: var(--accent); opacity: 0.5; cursor: not-allowed; }
.switch input:disabled { cursor: not-allowed; }
.cookie-dialog-foot {
  padding: 20px 28px 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-dialog-foot .btn { flex: 1; min-width: 160px; }
@media (max-width: 479px) { .cookie-dialog-foot .btn { flex-basis: 100%; } }

/* ===========================================================
   Form accessibility — required indicator, legend, errors
   =========================================================== */
.field label .req,
.consent label .req {
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}
.form-required-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.form-required-note .req { color: var(--accent); font-weight: 700; }

/* aria-invalid styling (mirrors .has-error from microinteractions.css) */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #C2410C;
}
.consent.has-error input { outline: 2px solid #C2410C; outline-offset: 2px; }

/* ===========================================================
   Force light color-scheme — site has no dark variant.
   Keeps form controls / scrollbars from auto-inverting under
   prefers-color-scheme: dark without breaking the palette.
   =========================================================== */
:root { color-scheme: light; }

/* ===========================================================
   Print stylesheet
   =========================================================== */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .cookie-banner,
  .cookie-modal,
  .mobile-menu,
  .sticky-cta,
  .accent-arc,
  video, iframe { display: none !important; }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .section,
  .hero,
  .legal-wrap,
  .notfound { padding-block: 18pt !important; }

  .section--dark,
  .section--alt,
  .contact-form,
  .service-card,
  .testimonial,
  .case-card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .section--dark h2.h2,
  .section--dark .step h4,
  .contact-form h3,
  .form-desc { color: #000 !important; }
  .step p { color: #222 !important; }

  h1, h2, h3, h4 { page-break-after: avoid; color: #000 !important; }
  .section, section, .service-card, .case-card, .testimonial, .step, figure { page-break-inside: avoid; }
  img, picture { max-width: 100% !important; }

  /* Expose link targets for printed pages */
  a[href^="http"]::after,
  a[href^="mailto"]::after,
  a[href^="tel"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }
  /* Don't print in-page hash or javascript links */
  a[href^="#"]::after,
  a[href^="/#"]::after { content: ""; }

  /* Force FAQ answers open for print */
  .faq-a { max-height: none !important; opacity: 1 !important; overflow: visible !important; }
}
