/* ============================================================================
   N7 Labs — main stylesheet
   ----------------------------------------------------------------------------
   Structure:
     1. Design tokens (:root)        6. Diagnostics
     2. Reset & base                 7. References
     3. Nav                          8. Pricing
     4. Shared primitives            9. Calculator
     5. Hero + Ticker               10. Process / FAQ / Contact / Footer
                                    11. Responsive
                                    12. Accessibility & motion
   All colors, fonts and spacing live in the tokens block — edit there to
   re-skin the whole site.
   ========================================================================== */

/* 1. Design tokens ---------------------------------------------------------- */
:root {
  --bg: #f2f1eb;
  --bg-alt: #e6e5dc;
  --ink: #1b2620;
  --ink-soft: #51604f; /* WCAG AA: ≥4.5:1 on both --bg and --bg-alt */
  --accent: oklch(0.62 0.09 165);
  --rule-soft: #c9c8bd;
  --ff-display: "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", monospace;
  --sect: 160px;
  --gap: 96px;
  --px: 64px;
}

/* 2. Reset & base ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}
section {
  scroll-margin-top: 72px;
}

/* 3. Nav -------------------------------------------------------------------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--px);
  border-bottom: 1px solid var(--rule-soft);
  position: sticky;
  top: 0;
  background: rgba(242, 241, 235, 0.94);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-cta:hover {
  opacity: 0.85;
}

/* Mobile menu (hidden on desktop; enabled in the <=900px media query) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  flex-direction: column;
  gap: 4px;
  padding: 96px var(--px) 40px;
  overflow-y: auto;
}
.mobile-menu-link {
  padding: 16px 0;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-menu-cta {
  margin-top: 24px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

/* 4. Shared primitives ------------------------------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
}
.sect-num {
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sect-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
}
.sect-h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.btn-dark:hover {
  opacity: 0.85;
}
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-sm {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

/* 5. Hero + Ticker ---------------------------------------------------------- */
#hero {
  padding: calc(var(--sect) * 0.85) var(--px) calc(var(--sect) * 0.7);
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  right: -30px;
  top: -60px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(220px, 34vw, 480px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rule-soft);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.hero-pricenote {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.6;
  white-space: nowrap;
}
.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(56px, 8vw, 147px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 40px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: var(--gap);
  align-items: end;
}
.hero-desc {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.hero-stats {
  margin-top: calc(var(--gap) * 1.4);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 32px;
}
.hero-stats > * {
  flex: 0 1 auto;
}
.stat-n {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-l {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

@keyframes n7ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.ticker-track {
  display: inline-block;
  animation: n7ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* Preserve each half's trailing space so both are pixel-identical — the
     seamless -50% loop depends on it (the last span's trailing space would
     otherwise collapse at the block boundary). */
  white-space: pre;
}

/* Origin -------------------------------------------------------------------- */
#o-nas {
  padding: var(--sect) var(--px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule-soft);
}
.origin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
}
.origin-label {
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.origin-pull {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.4;
}
.origin-h2 {
  font-family: var(--ff-display);
  font-size: clamp(32px, 3.5vw, 55px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
}
.origin-h2 u {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.origin-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  display: grid;
  gap: 20px;
}
.origin-body .hi {
  color: var(--ink);
}
.founders {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
}
.founder {
  display: flex;
  gap: 14px;
  align-items: center;
}
.founder-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.founder-name {
  font-weight: 500;
  font-size: 15px;
}
.founder-role {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Services ------------------------------------------------------------------ */
#storitve {
  padding: var(--sect) var(--px);
  border-bottom: 1px solid var(--rule-soft);
}
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: 999px;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--ink);
  color: var(--bg);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.svc-desc {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 700px;
  margin-bottom: 56px;
  line-height: 1.5;
}
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.issue-card {
  padding: 32px 28px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.2s;
}
.issue-card:not(:nth-child(3n)) {
  border-right: 1px solid var(--rule-soft);
}
.issue-card:hover {
  background: var(--bg-alt);
}
.issue-num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.issue-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.issue-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.audit-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: 16px;
}
.audit-arrow {
  font-size: 32px;
}
.audit-cta-info {
  flex: 1;
}
.audit-cta-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.audit-cta-sub {
  font-size: 14px;
  color: var(--ink-soft);
}
.phases {
  display: flex;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.phase {
  flex: 1;
  padding: 32px 24px;
  border-right: 1px solid var(--rule-soft);
}
.phase:last-child {
  border-right: none;
}
.phase-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.phase-title {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.phase-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}
.phase-meta {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--ff-mono);
}
.svc-extras {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
}
.svc-extras-label {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.extra-card {
  padding: 24px 26px;
  background: var(--bg-alt);
  border-radius: 16px;
  transition: transform 0.2s;
}
.extra-card:hover {
  transform: translateY(-4px);
}
.extra-title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.extra-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* 6. Diagnostics ------------------------------------------------------------ */
#diagnostika {
  padding: var(--sect) var(--px);
  border-bottom: 1px solid var(--rule-soft);
}
.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.diag-h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.diag-h2 em {
  font-style: normal;
  color: var(--accent);
}
.diag-p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 460px;
}
.checklist {
  border-top: 1px solid var(--ink);
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: padding-left 0.2s;
}
.check-item:hover {
  padding-left: 12px;
}
.check-n {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-soft);
  min-width: 24px;
  padding-top: 3px;
}
.check-main {
  flex: 1;
}
.check-title {
  font-size: 17px;
}
.check-why {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.5;
}
.check-x {
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 3px;
}

/* 7. References ------------------------------------------------------------- */
#reference {
  padding: var(--sect) var(--px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule-soft);
}
.ref-list {
  border-top: 1px solid var(--ink);
}
.ref-row {
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 80px 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  transition: padding 0.3s ease;
}
.ref-row.active {
  padding: 40px 0;
}
.ref-num {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.ref-row.active .ref-num {
  color: var(--accent);
}
.ref-name {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: font-size 0.3s ease;
}
.ref-row.active .ref-name {
  font-size: 44px;
}
.ref-name a {
  text-decoration: none;
}
.ref-name a:hover {
  opacity: 0.8;
}
.ref-name .arrow {
  font-size: 0.5em;
  color: var(--accent);
  vertical-align: middle;
}
.ref-meta {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
  flex-wrap: wrap;
}
.ref-meta .stat {
  color: var(--accent);
}
.ref-img-wrap {
  position: relative;
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
  border-radius: 14px;
}
.ref-row.active .ref-img-wrap {
  height: 220px;
}
.ref-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  z-index: 1;
}
.ref-ph {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 16px;
}
.ref-more {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.ref-more a {
  color: var(--accent);
}

/* 8. Pricing ---------------------------------------------------------------- */
#cenik {
  padding: var(--sect) var(--px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule-soft);
}
.pricing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
}
.pricing-note {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 280px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tier {
  background: var(--bg);
  padding: 32px;
  border-radius: 20px;
  position: relative;
  transition: transform 0.25s;
}
.tier.featured {
  background: var(--ink);
  color: var(--bg);
}
.tier:hover {
  transform: translateY(-6px);
}
.tier-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.tier-name {
  font-family: var(--ff-mono);
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 24px;
}
.tier-price {
  font-family: var(--ff-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.tier-price span {
  font-size: 24px;
  opacity: 0.6;
}
.tier-vat {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 24px;
}
.tier-desc {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 32px;
  opacity: 0.85;
}
.tier-time {
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
}
.tier.featured .tier-time {
  border-top-color: rgba(255, 255, 255, 0.13);
}
.tier-time-label {
  opacity: 0.6;
}

/* 9. Calculator ------------------------------------------------------------- */
#kalkulator {
  padding: var(--sect) var(--px);
  border-bottom: 1px solid var(--rule-soft);
}
.calc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
}
.calc-h2 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.calc-h2 em {
  font-style: normal;
  color: var(--accent);
}
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}
.csec {
  margin-bottom: 32px;
}
.csec-title {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.csec-body {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 24px;
}
.calc-pkgs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calc-pkg-btn {
  padding: 20px 12px;
  border-radius: 12px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: all 0.2s;
}
.calc-pkg-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.cpkg-name {
  font-family: var(--ff-mono);
  font-size: 11px;
  opacity: 0.7;
}
.cpkg-price {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 8px;
}
.calc-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.calc-addon-row:last-child {
  border-bottom: none;
}
.addon-name {
  font-size: 15px;
}
.addon-price {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
}
.calc-maint-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calc-maint-btn {
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  transition: all 0.2s;
}
.calc-maint-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.maint-months {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.maint-months-label {
  font-size: 14px;
  color: var(--ink-soft);
}
.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule-soft);
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: all 0.15s;
}
.qty-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.qty-val {
  min-width: 24px;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 14px;
}
.qty-val.hi {
  color: var(--accent);
}
.calc-sticky {
  position: sticky;
  top: 100px;
  align-self: start;
}
.calc-summary {
  background: var(--ink);
  color: var(--bg);
  padding: 32px;
  border-radius: 20px;
}
.sum-hd {
  font-family: var(--ff-mono);
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.sum-row.dim {
  opacity: 0.6;
}
.sum-div {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 24px 0;
}
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}
.sum-total-label {
  font-size: 14px;
  opacity: 0.7;
}
.sum-total-val {
  font-family: var(--ff-display);
  font-size: 36px;
  color: var(--accent);
}
.sum-cta {
  display: block;
  margin-top: 24px;
  padding: 14px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.sum-cta:hover {
  opacity: 0.85;
}

/* 10. Process / FAQ / Contact / Footer -------------------------------------- */
#proces {
  padding: var(--sect) var(--px);
  border-bottom: 1px solid var(--rule-soft);
}
.proc-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
}
.proc-num {
  font-family: var(--ff-mono);
  font-size: 13px;
  padding: 32px 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
}
.proc-content {
  padding: 32px 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}
.proc-title {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.proc-desc {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
  align-self: center;
}

#faq {
  padding: var(--sect) var(--px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule-soft);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.faq-h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.faq-item {
  border-top: 1px solid var(--ink);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--ink);
}
.faq-q {
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 19px;
  color: var(--ink);
  text-align: left;
  gap: 24px;
}
.faq-icon {
  font-family: var(--ff-mono);
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding-bottom: 24px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 640px;
}

#kontakt {
  padding: calc(var(--sect) * 1.3) var(--px);
  background: var(--ink);
  color: var(--bg);
}
.contact-eyebrow {
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
}
.contact-h2 {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 110px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 48px;
}
.contact-h2 em {
  font-style: normal;
  color: var(--accent);
}
.contact-p {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 64px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.contact-label {
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}
.contact-link {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

footer {
  padding: 40px var(--px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-family: var(--ff-mono);
  display: flex;
  justify-content: space-between;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
}

/* Text / legal pages (privacy, cookies, accessibility) --------------------- */
.page {
  padding: calc(var(--sect) * 0.7) var(--px);
  max-width: 860px;
}
.page-head {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-soft);
}
.page-eyebrow {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-h1 {
  font-family: var(--ff-display);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.03;
}
.page-updated {
  margin-top: 18px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
}
.prose-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.prose h2 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.prose p {
  margin: 0 0 18px;
}
.prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}
.prose code {
  font-family: var(--ff-mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose .table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.prose thead th {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Cookie-consent banner ---------------------------------------------------- */
.cc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.cc[hidden] {
  display: none;
}
.cc-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cc-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}
.cc-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cc-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.cc-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}
.cc-reject:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cc-accept {
  background: var(--accent);
  color: var(--ink);
}
.cc-accept:hover {
  filter: brightness(1.08);
}
@media (max-width: 640px) {
  .cc-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cc-actions {
    justify-content: flex-end;
  }
}

/* 11. Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-sticky {
    position: static;
  }
  .calc-pkgs {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-maint-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ref-row {
    grid-template-columns: 60px 1fr 320px;
    gap: 28px;
  }
  .ref-row.active .ref-name {
    font-size: 38px;
  }
}
@media (max-width: 900px) {
  :root {
    --sect: 100px;
    --gap: 56px;
    --px: 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-menu:not([hidden]) {
    display: flex;
  }
  .sect-header,
  .pricing-header,
  .calc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-top {
    flex-direction: column;
    gap: 16px;
  }
  .hero-pricenote {
    text-align: left;
  }
  .hero-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-ctas {
    justify-content: flex-start;
  }
  .hero-stats {
    gap: 24px 48px;
  }
  .origin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .diag-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .issues-grid {
    grid-template-columns: 1fr;
  }
  .issue-card:not(:nth-child(3n)) {
    border-right: none;
  }
  .extras-grid {
    grid-template-columns: 1fr;
  }
  .phases {
    flex-direction: column;
  }
  .phase {
    border-right: none;
    border-bottom: 1px solid var(--rule-soft);
  }
  .ref-row,
  .ref-row.active {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .ref-name,
  .ref-row.active .ref-name {
    font-size: 30px;
  }
  .ref-img-wrap,
  .ref-row.active .ref-img-wrap {
    height: 200px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .proc-grid {
    grid-template-columns: 1fr;
  }
  .proc-num {
    padding-bottom: 0;
  }
  .proc-content {
    border-top: none;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .calc-pkgs {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Stack the audit CTA so the button doesn't overflow the viewport. */
  .audit-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 12. Accessibility & motion ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track {
    animation: none !important;
  }
}
