/* ==========================================================================
   SORIN RADU PFA — Design System "Siguranța / Safety Signage"
   --------------------------------------------------------------------------
   A design language drawn from fire-safety signage (ISO 7010):
   safety red, safety green, warning amber, mandatory blue, hazard stripes,
   inspection registers and rubber stamps.

   Structure:
     1. Tokens (color, type, spacing, elevation)
     2. Base / reset
     3. Utilities (wrap, kicker, mono, hazard, reveal, tick)
     4. Components (buttons, plates, header, hero, ticker, registry,
        calculator, steps, forms, contact, footer, to-top)
     5. Motion & reduced-motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color — ISO 7010 safety palette */
  --ink:        #1b1f1c;   /* deep charcoal-green, like aged sign plates   */
  --ink-2:      #232925;   /* raised dark surface                          */
  --ink-3:      #2d342f;   /* borders on dark                              */
  --paper:      #f5f4ef;   /* warm inspection-paper white                  */
  --paper-2:    #ebeae1;   /* recessed paper                               */
  --paper-3:    #e0dfd4;   /* lines on paper                               */
  --fire:       #d5381e;   /* safety red — fire equipment                  */
  --fire-deep:  #a02812;   /* red shadow / pressed state                   */
  --safe:       #177a4c;   /* safety green — compliant / safe condition    */
  --safe-deep:  #0e5c38;
  --warn:       #e8a020;   /* warning amber — hazard tape                  */
  --mandate:    #1d5fbf;   /* mandatory blue — obligation                  */
  --muted:      #5c6157;   /* secondary text on paper                      */
  --muted-dk:   #a7ada4;   /* secondary text on ink                        */

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --fs-hero:  clamp(2.75rem, 7vw, 5rem);
  --fs-h2:    clamp(1.9rem, 4.2vw, 2.9rem);
  --fs-h3:    1.45rem;
  --fs-lead:  clamp(1.02rem, 1.4vw, 1.19rem);
  --fs-body:  1rem;
  --fs-small: .875rem;
  --fs-mono:  .74rem;

  /* Geometry */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --wrap: 1180px;
  --head-h: 78px;

  /* Elevation */
  --shadow-card: 0 18px 44px -18px rgba(20, 24, 21, .38);
  --shadow-pop:  0 10px 30px -12px rgba(20, 24, 21, .45);

  /* Motion */
  --ease-out: cubic-bezier(.22, .75, .25, 1);
  --t-fast: .18s;
  --t-med:  .45s;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: .012em;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, output { font: inherit; }

::selection { background: var(--fire); color: #fff; }

:focus-visible {
  outline: 3px solid var(--warn);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

section[id] { scroll-margin-top: calc(var(--head-h) + 14px); }

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fire);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.on-dark .kicker, .dark .kicker { color: var(--warn); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 56ch;
}
.dark .lead { color: var(--muted-dk); }

/* Hazard tape divider */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--warn) 0 14px,
    var(--ink) 14px 28px);
}

/* Scroll reveal — hidden state only applies when JS is active,
   so the page is fully readable (and crawlable) without scripts. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .65s var(--ease-out) var(--d, 0s),
    transform .65s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Checklist tick (green circle + check) */
.tick {
  position: relative;
  padding-left: 2rem;
}
.tick::before {
  content: "";
  position: absolute;
  left: 0;
  top: .14em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--safe);
  background: transparent center / 11px no-repeat;
  transition: background-color var(--t-med) var(--ease-out);
}
.tick.done::before {
  background-color: var(--safe);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--warn);
  color: var(--ink);
  font-weight: 600;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   4. COMPONENTS
   -------------------------------------------------------------------------- */

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .9rem 1.4rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background-color var(--t-fast),
              border-color var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-fire {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 0 0 0 var(--fire-deep);
}
.btn-fire:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--fire-deep);
}
.btn-fire:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 0 var(--fire-deep);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .07);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---- Safety sign plates -------------------------------------------------- */
.plate {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--r-lg);
  color: #fff;
  background: var(--acc, var(--fire));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28),
              0 6px 14px -6px rgba(20, 24, 21, .4);
  flex: none;
}
.plate svg { width: 28px; height: 28px; }
.plate.sm { width: 44px; height: 44px; border-radius: var(--r-md); }
.plate.sm svg { width: 22px; height: 22px; }
.plate-amber { color: var(--ink); }

/* ---- Header -------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 31, 28, .92);
  backdrop-filter: blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--ink-3);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--head-h);
  transition: height var(--t-med) var(--ease-out);
}
.site-head.scrolled .head-in { height: 62px; }

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--fire);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
  transition: transform var(--t-fast) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.brand-text small {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .24em;
  color: var(--muted-dk);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.main-nav > a:not(.btn) {
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding-block: .35rem;
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease-out);
}
.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--ink-3);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
}
.lang a {
  padding: .45rem .7rem;
  color: var(--muted-dk);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.nav-cta { padding: .7rem 1.1rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-3);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform .28s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--fire);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--paper);
  background:
    radial-gradient(880px 480px at 88% -8%, rgba(213, 56, 30, .30), transparent 62%),
    radial-gradient(720px 520px at -8% 112%, rgba(23, 122, 76, .16), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
}
.hero::before { /* blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero::after { /* grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4.5rem, 9vw, 7rem);
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4.5rem; }
}

.hero h1 {
  font-size: var(--fs-hero);
  margin: 1.1rem 0 1.3rem;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--fire);
  display: block;
}
@supports (-webkit-text-stroke: 1px #000) {
  .hero h1 em {
    color: transparent;
    -webkit-text-stroke: 2px var(--fire);
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink-3);
}
.hero-stats li { display: grid; gap: .15rem; min-width: 8.5rem; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--warn);
  line-height: 1;
}
.hero-stats span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dk);
}

/* Inspection sheet card */
.hero-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.7rem 1.4rem;
  transform: rotate(.6deg);
}
.hero-card::before { /* clipboard clip */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 26px;
  background: var(--ink);
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .12);
}
.hero-card > header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px dashed var(--paper-3);
}
.hero-card .status {
  margin-left: auto;
  background: var(--safe);
  color: #fff;
  padding: .25rem .55rem;
  border-radius: var(--r-sm);
  letter-spacing: .12em;
}
.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--safe);
  flex: none;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23, 122, 76, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(23, 122, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 122, 76, 0); }
}

.checklist { display: grid; gap: .75rem; }
.checklist li { font-size: .92rem; line-height: 1.45; }
.js .checklist li {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .45s var(--ease-out) calc(var(--i) * .13s + .25s),
              transform .45s var(--ease-out) calc(var(--i) * .13s + .25s);
}
.checklist.go li { opacity: 1; transform: none; }

.hero-card > footer {
  margin-top: 1.2rem;
  padding-top: .9rem;
  border-top: 2px dashed var(--paper-3);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stamp {
  position: absolute;
  right: -14px;
  bottom: -20px;
  rotate: -7deg;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--fire);
  border: 2px solid var(--fire);
  border-radius: var(--r-sm);
  padding: .45rem .7rem;
  background: rgba(245, 244, 239, .9);
  box-shadow: var(--shadow-pop);
}

/* ---- Ticker -------------------------------------------------------------- */
.ticker {
  background: var(--warn);
  color: var(--ink);
  overflow: hidden;
  border-block: 2px solid var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding: .72rem 1.3rem .72rem 2.6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  white-space: nowrap;
}
.ticker-track li { display: flex; align-items: center; gap: 2.6rem; }
.ticker-track li::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--fire);
  rotate: 45deg;
  flex: none;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(4.2rem, 8vw, 6.8rem); }
.dark {
  background:
    radial-gradient(900px 480px at 92% 0%, rgba(213, 56, 30, .14), transparent 55%),
    var(--ink);
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.section-head h2 { font-size: var(--fs-h2); margin-top: 1rem; max-width: 22ch; }
.section-head h2 em { font-style: normal; color: var(--fire); }
.dark .section-head h2 em { color: var(--warn); }
.mono-note {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .5rem;
  flex: none;
}
.dark .mono-note { color: var(--muted-dk); }

/* ---- Services registry ---------------------------------------------------- */
.registry { border-top: 2px solid var(--ink); }

.svc {
  position: relative;
  border-bottom: 1px solid var(--paper-3);
  transition: background-color var(--t-med) var(--ease-out);
}
.svc::before { /* accent bar */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--acc, var(--fire));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease-out);
}
.svc:hover, .svc.open { background: var(--paper-2); }
.svc:hover::before, .svc.open::before { transform: scaleY(1); }

.svc-head {
  display: grid;
  grid-template-columns: 70px 58px 1fr auto 40px;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
  text-align: left;
  padding: 1.55rem 1.2rem 1.55rem 1.6rem;
}
.svc-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.4px #a9a798;
  line-height: 1;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .svc-num { color: var(--paper-3); }
}
.svc-title h3 {
  font-size: var(--fs-h3);
  letter-spacing: .02em;
  margin-bottom: .35rem;
}
.svc-title p {
  font-size: .93rem;
  color: var(--muted);
  max-width: 58ch;
}
.svc-tags {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  max-width: 15ch;
}
.svc-chev {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--paper-3);
  border-radius: 50%;
  transition: transform .35s var(--ease-out), border-color var(--t-fast), background-color var(--t-fast);
}
.svc-chev svg { width: 18px; height: 18px; }
.svc:hover .svc-chev { border-color: var(--ink); }
.svc.open .svc-chev {
  transform: rotate(180deg);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.svc-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .45s var(--ease-out), visibility 0s .45s;
}
.svc.open .svc-body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .45s var(--ease-out);
}
.svc-body-in {
  overflow: hidden;
}
.svc-body-pad {
  padding: .4rem 1.2rem 2.1rem calc(70px + 58px + 3.2rem + 1.6rem);
}
.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 2.4rem;
  margin-bottom: 1.5rem;
}
.svc-list li { font-size: .92rem; line-height: 1.5; }
.svc-list .mono {
  display: block;
  color: var(--muted);
  font-size: .64rem;
  margin-top: .1rem;
}
.svc-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.svc-cta .hint {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Protected workshop + calculator -------------------------------------- */
.up-grid {
  display: grid;
  gap: 3.2rem;
  align-items: start;
}
@media (min-width: 1000px) {
  .up-grid { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; }
}
.up-copy h2 { font-size: var(--fs-h2); margin: 1rem 0 1.2rem; }
.up-copy h2 em { font-style: normal; color: var(--warn); }
.up-copy p + p { margin-top: 1rem; }
.up-copy .lead { margin-bottom: 1.4rem; }

.legal-plate {
  margin-top: 1.8rem;
  border-left: 5px solid var(--safe);
  background: var(--ink-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.3rem 1.5rem;
}
.legal-plate h3 {
  font-size: 1.05rem;
  color: var(--safe);
  letter-spacing: .06em;
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.legal-plate h3 svg { width: 18px; height: 18px; }
.legal-plate p {
  font-size: .9rem;
  color: var(--muted-dk);
  line-height: 1.6;
}
.legal-plate .mono { color: var(--warn); display: block; margin-top: .7rem; font-size: .64rem; }

.up-steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  counter-reset: upstep;
}
.up-steps li {
  counter-increment: upstep;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: .93rem;
  color: var(--muted-dk);
}
.up-steps li::before {
  content: counter(upstep, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--safe);
  flex: none;
}
.up-steps strong { color: var(--paper); font-weight: 600; }

/* Calculator card */
.calc {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 1.7rem 1.7rem 1.4rem;
  position: relative;
}
.calc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: repeating-linear-gradient(-45deg, var(--warn) 0 12px, var(--ink) 12px 24px);
}
.calc-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: .6rem 0 1.5rem;
}
.calc-head h3 { font-size: 1.35rem; letter-spacing: .03em; }
.calc-head .mono { color: var(--muted); font-size: .62rem; margin-top: .3rem; display: block; }

.calc-field { display: block; margin-bottom: 1.35rem; }
.calc-field > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .55rem;
}
.calc-field output {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.calc-field input[type="number"] {
  width: 100%;
  padding: .7rem .9rem;
  border: 2px solid var(--paper-3);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--font-mono);
  font-size: .95rem;
  transition: border-color var(--t-fast);
}
.calc-field input[type="number"]:focus { border-color: var(--fire); outline: none; }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--fire) var(--fill, 10%), var(--paper-3) var(--fill, 10%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fire);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(20, 24, 21, .35), inset 0 0 0 2px rgba(255, 255, 255, .3);
  transition: transform var(--t-fast) var(--ease-out);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fire);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(20, 24, 21, .35);
}
input[type="range"]::-moz-range-track { background: transparent; }

.calc-results { border-top: 2px dashed var(--paper-3); padding-top: 1.1rem; display: grid; gap: .8rem; }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
}
.calc-row > span { color: var(--muted); }
.calc-row strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc-row.highlight {
  background: rgba(23, 122, 76, .1);
  border: 1.5px solid rgba(23, 122, 76, .4);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
}
.calc-row.highlight > span { color: var(--safe-deep); font-weight: 600; }
.calc-row.highlight strong { color: var(--safe-deep); font-size: 1.9rem; }

.calc-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- About ---------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 980px) {
  .about-grid { grid-template-columns: 1.2fr .8fr; gap: 5rem; }
}
.about-copy h2 { font-size: var(--fs-h2); margin: 1rem 0 1.3rem; }
.about-copy h2 em { font-style: normal; color: var(--fire); }
.about-copy p { color: var(--muted); max-width: 60ch; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p strong { color: var(--ink); }

.quote {
  position: relative;
  margin-top: 2.2rem;
  padding: 1.8rem 2rem 1.6rem 2.4rem;
  background: var(--paper-2);
  border-left: 5px solid var(--fire);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -.4rem;
  left: .9rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--fire);
  opacity: .25;
  line-height: 1;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: .01em;
  color: var(--ink);
  max-width: none;
}
.quote footer {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
}
.facts::after {
  content: "DIN 2007";
  position: absolute;
  top: -16px;
  right: 18px;
  rotate: 5deg;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--warn);
  border: 2px solid var(--warn);
  border-radius: var(--r-sm);
  padding: .4rem .65rem;
  background: var(--ink);
}
.facts h3 {
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: var(--warn);
  margin-bottom: 1.2rem;
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--ink-3);
  font-size: .88rem;
}
.facts li:last-child { border-bottom: 0; }
.facts li span {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dk);
  padding-top: .2rem;
}
.facts li strong { font-weight: 600; text-align: right; }

/* ---- Process steps --------------------------------------------------------- */
.process { background: var(--paper-2); border-block: 1px solid var(--paper-3); }
.process h2 { font-size: var(--fs-h2); margin-top: 1rem; }
.process h2 em { font-style: normal; color: var(--fire); }
.steps {
  display: grid;
  gap: 2rem;
  margin-top: 2.8rem;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 29px;
    left: calc(58px + 1rem);
    right: -0.7rem;
    border-top: 2px dashed #b9b7aa;
  }
}
.steps li {
  position: relative;
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.steps li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
}
.step-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--warn);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.steps h3 { font-size: 1.2rem; letter-spacing: .03em; margin-bottom: .5rem; }
.steps p { font-size: .9rem; color: var(--muted); }

/* ---- Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 5rem; }
}
.contact-copy h2 { font-size: var(--fs-h2); margin: 1rem 0 1.1rem; }
.contact-copy h2 em { font-style: normal; color: var(--warn); }
.contact-copy > p { max-width: 46ch; }

.big-phone {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--paper);
  transition: color var(--t-fast);
}
.big-phone svg { width: .85em; height: .85em; color: var(--fire); }
.big-phone:hover { color: var(--warn); }
.big-phone:hover svg { animation: ring .5s var(--ease-out); }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  60% { transform: rotate(10deg); }
}
.big-mail {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 2px solid var(--fire);
  padding-bottom: .15rem;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.big-mail svg { width: 1.1em; height: 1.1em; }
.big-mail:hover { color: var(--warn); border-color: var(--warn); }
.area {
  margin-top: 2rem;
  color: var(--muted-dk);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.area svg { width: 14px; height: 14px; color: var(--fire); }

.biz-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotate(-.5deg);
}
.biz-card > header {
  background: var(--ink);
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.biz-card > header::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--fire);
  rotate: 45deg;
}
.biz-card ul { padding: 1.2rem 1.5rem .6rem; }
.biz-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px dashed var(--paper-3);
  font-size: .88rem;
}
.biz-card li:last-child { border-bottom: 0; }
.biz-card li span {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .25rem;
  flex: none;
}
.biz-card li strong { font-weight: 600; text-align: right; }
.biz-card > footer {
  padding: 0 1.5rem 1.3rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Footer ----------------------------------------------------------------- */
.site-foot {
  background: #141714;
  color: var(--muted-dk);
  border-top: 1px solid var(--ink-3);
}
.foot-grid {
  display: grid;
  gap: 2.6rem;
  padding-block: 3.4rem 2.6rem;
}
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr auto; }
}
.foot-brand .brand-text strong { color: var(--paper); }
.foot-brand p {
  margin-top: 1rem;
  font-size: .88rem;
  max-width: 30ch;
}
.site-foot h4 {
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.foot-links { display: grid; gap: .55rem; }
.foot-links a {
  font-size: .88rem;
  transition: color var(--t-fast), padding-left var(--t-fast) var(--ease-out);
}
.foot-links a:hover { color: var(--warn); padding-left: .35rem; }
.foot-contact li {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .88rem;
  margin-bottom: .55rem;
}
.foot-contact svg { width: 15px; height: 15px; color: var(--fire); flex: none; }
.foot-contact a:hover { color: var(--warn); }

.foot-legal {
  border-top: 1px solid var(--ink-3);
  padding-block: 1.2rem;
  font-size: .62rem;
  letter-spacing: .12em;
  color: #6d736b;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* ---- To-top ------------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--fire);
  color: #fff;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out), background-color var(--t-fast);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--fire-deep); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   5. RESPONSIVE & MOTION
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .svc-tags { display: none; }
  /* 4 visible children (num, plate, title, chev) → 4 tracks */
  .svc-head { grid-template-columns: 52px 48px 1fr 38px; gap: 1.1rem; padding: 1.4rem 1.2rem 1.4rem 1.4rem; }
  .svc-num { font-size: 2rem; }
  .svc .plate { width: 48px; height: 48px; }
  .svc .plate svg { width: 24px; height: 24px; }
  .svc-body-pad { padding-left: calc(52px + 48px + 2.2rem + 1.4rem); }
  .svc-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--fire);
    padding: 1rem 1.4rem 1.6rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  }
  .main-nav > a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    padding: .8rem 0;
    border-bottom: 1px solid var(--ink-3);
  }
  .main-nav > a:not(.btn)::after { display: none; }
  .main-nav .lang { align-self: flex-start; margin-top: 1.1rem; }
  .main-nav .nav-cta { margin-top: 1.1rem; justify-content: center; }
  .site-head.scrolled .main-nav { top: 62px; }
}

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .mono-note { padding-bottom: 0; }
  /* 4 visible children → 4 tracks; never let the title fall into a narrow column */
  .svc-head { grid-template-columns: 38px 44px 1fr 32px; gap: .8rem; padding: 1.2rem .9rem; }
  .svc-num { font-size: 1.5rem; }
  .svc .plate { width: 44px; height: 44px; }
  .svc .plate svg { width: 22px; height: 22px; }
  .svc-title h3 { font-size: 1.2rem; }
  .svc-body-pad { padding-left: .9rem; padding-right: .9rem; }
  .hero-stats { gap: 1.2rem 2rem; }
  .stamp { right: 8px; }
  .hero-card { transform: none; }
}

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