/* =========================================================
   Trafirap — design tokens
   ========================================================= */
:root {
  --ground: #EEEEEA;
  --ground-2: #E3E3DE;
  --paper: #F7F7F4;
  --ink: #161616;
  --ink-soft: #4B4A45;
  --ink-dim: #7D7C76;
  --accent: #E8A624;
  --accent-ink: #8A5A00;
  --dark: #141414;
  --dark-2: #222220;
  --dark-3: #2E2E2B;
  --on-dark: #EEEEEA;
  --on-dark-soft: #ADACA5;

  --m: clamp(20px, 4vw, 64px);
  --max: 1360px;
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(88px, 10vw, 152px);
  --r: 18px;
  --r-sm: 12px;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(46px, 7.4vw, 124px);
  --t-h2: clamp(34px, 4.2vw, 64px);
  --t-h3: clamp(21px, 1.7vw, 26px);
  --t-lead: clamp(18px, 1.45vw, 21px);
  --t-body: 17px;
  --t-small: 14px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 60; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--m) * 2); margin-inline: auto; padding-inline: var(--m); }
.section { padding-block: var(--section); }
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark-2 { background: var(--dark-2); color: var(--on-dark); }
.on-ground-2 { background: var(--ground-2); }

/* Type roles */
.display {
  font-size: var(--t-display); font-weight: 800; font-variation-settings: "wdth" 72;
  line-height: .94; letter-spacing: -0.03em; text-wrap: balance;
}
.h2 {
  font-size: var(--t-h2); font-weight: 760; font-variation-settings: "wdth" 76;
  line-height: 1; letter-spacing: -0.025em; text-wrap: balance;
}
.h3 {
  font-size: var(--t-h3); font-weight: 680; font-variation-settings: "wdth" 86;
  line-height: 1.15; letter-spacing: -0.012em;
}
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.body { max-width: 62ch; }
.small { font-size: var(--t-small); line-height: 1.5; }
.soft { color: var(--ink-soft); }
.on-dark .soft, .on-dark-2 .soft { color: var(--on-dark-soft); }

/* Section head: heading left, text right, on one baseline */
.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.head > :first-child { grid-column: 1 / 7; }
.head > :nth-child(2) { grid-column: 8 / 13; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 640; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #F3B63C; }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ink:hover { background: #000; }
.btn--light { background: rgba(255,255,255,.14); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--quiet { background: var(--ground-2); color: var(--ink); }
.btn--quiet:hover { background: #d8d8d2; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 640; text-decoration: none;
  color: inherit;
}
.link span:first-child { text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .25s var(--ease); }
.link:hover span:first-child { text-decoration-color: var(--accent); }
.link .arr { transition: transform .25s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff;
  background: var(--dark); border-bottom: 2px solid var(--accent);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .4s var(--ease);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 80px; }
.nav.is-solid, .nav--solid { background: var(--ground); color: var(--ink); border-bottom-color: transparent; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: block; width: 172px; margin-right: auto; color: inherit; }
.nav__logo svg { width: 100%; height: auto; display: block; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-weight: 560; font-size: 16px; text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: text-decoration-color .25s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { text-decoration-color: var(--accent); }
.nav__cta { min-height: 44px; padding: 0 22px; }
.nav__menu { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 999px; position: relative; }
.nav__menu span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__menu span:nth-child(1) { top: 19px; }
.nav__menu span:nth-child(2) { top: 27px; }
.nav.is-open .nav__menu span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; color: #fff; background: var(--dark);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.hero__media { position: absolute; inset: 82px 0 0 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* scrim under the text, the one place a fade is allowed */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,14,14,.6) 0%, rgba(14,14,14,.3) 38%, rgba(14,14,14,0) 58%), linear-gradient(180deg, rgba(14,14,14,0) 70%, rgba(14,14,14,.65) 100%); /* taste-skill-ignore */
}
.hero__content { position: relative; padding-top: 140px; padding-bottom: 44px; }
.hero__title { max-width: 13ch; }
.hero__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-top: 32px; }
.hero__lede { grid-column: 1 / 7; font-size: var(--t-lead); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 46ch; }
.hero__actions { grid-column: 8 / 13; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.facts {
  position: relative; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  padding-top: 28px; padding-bottom: 8px;
}
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 34px, transparent 34px 60px); opacity: .9; } /* taste-skill-ignore — road centre line */
.fact b { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 760; font-variation-settings: "wdth" 76; line-height: 1; letter-spacing: -0.02em; }
.fact span { display: block; margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.78); }

/* =========================================================
   Vision / Safe System
   ========================================================= */
.vision__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.vision__text { grid-column: 1 / 7; display: grid; gap: 24px; align-content: start; }
.vision__img { grid-column: 8 / 13; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.vision__img img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: clamp(56px, 6vw, 88px); }
.pillar { background: var(--paper); border-radius: var(--r-sm); padding: 26px 22px 24px; display: grid; gap: 10px; align-content: start; }
.pillar.is-focus { background: var(--accent); }
.pillar__tag { font-size: var(--t-small); font-weight: 600; }
.pillar .h3 { font-size: 21px; }
.pillar p { font-size: 15px; line-height: 1.5; }

/* =========================================================
   Areas (homepage overview)
   ========================================================= */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.area {
  background: var(--paper); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform .35s var(--ease);
}
.area:hover { transform: translateY(-4px); }
.area__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.area__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.area:hover .area__img img { transform: scale(1.05); }
.area__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.area__body p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.area__list { display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.area__list li { position: relative; padding-left: 18px; }
.area__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.area .link { margin-top: auto; padding-top: 10px; }

/* =========================================================
   Brake calculator (live)
   ========================================================= */
.brake__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.brake__text { grid-column: 1 / 6; display: grid; gap: 26px; }
.brake__fig { grid-column: 7 / 13; display: grid; gap: 26px; background: var(--dark-2); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); }
.brake__label { display: block; font-size: var(--t-lead); font-weight: 600; margin-bottom: 14px; }
.brake__label output { font-variant-numeric: tabular-nums; color: var(--accent); }
.brake__range { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }
.brake__presets { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.chip {
  border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px;
  background: var(--dark-3); color: var(--on-dark); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { background: #3c3c38; }
.chip:active { transform: scale(.96); }
.chip.is-on { background: var(--accent); color: var(--ink); }
.brake__road { --len: 80; position: relative; height: clamp(170px, 15vw, 220px); background: #34332F; border-radius: var(--r-sm); overflow: hidden; }
.brake__lane { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='4'%3E%3Crect width='28' height='4' fill='%23EEEEEA'/%3E%3C/svg%3E") repeat-x; opacity: .7; }
.brake__zebra { position: absolute; top: 0; bottom: 0; left: calc(var(--at) / var(--len) * 100%); width: 5%; display: flex; flex-direction: column; justify-content: space-around; padding: 6px 0; }
.brake__zebra span { height: 9%; background: var(--on-dark); }
.brake__child { position: absolute; left: calc(var(--at) / var(--len) * 100% + 1%); top: 24%; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.brake__zone { position: absolute; top: 56%; height: 34%; left: 0; width: 0; transition: left .6s var(--ease), width .6s var(--ease); }
.brake__zone--react { background: rgba(238,238,234,.16); }
.brake__zone--brake { background: rgba(232,166,36,.4); }
.brake__car { position: absolute; top: 60%; left: 0; width: 5.6%; height: 26%; transform: translateX(-100%); transition: left .9s var(--ease); }
.brake__car i { position: absolute; inset: 0; background: var(--on-dark); border-radius: 6px; }
.brake__car i::after { content: ""; position: absolute; right: 18%; top: 14%; bottom: 14%; width: 22%; background: var(--dark); border-radius: 3px; }
.brake__scale span { position: absolute; top: 8px; left: calc(var(--at) / var(--len) * 100%); font-size: 13px; color: var(--on-dark-soft); padding-left: 6px; white-space: nowrap; }
.brake__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.brake__nums div { display: flex; flex-direction: column-reverse; gap: 2px; }
.brake__nums dt { font-size: var(--t-small); color: var(--on-dark-soft); }
.brake__nums dd { font-size: clamp(24px, 2.2vw, 32px); font-weight: 720; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; line-height: 1.1; }
.brake__verdict { font-size: var(--t-lead); font-weight: 650; line-height: 1.3; }
.brake__verdict.is-safe { color: var(--accent); }

/* =========================================================
   Technology split
   ========================================================= */
.tech { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: stretch; }
.tech__img { grid-column: 1 / 6; border-radius: var(--r); overflow: hidden; min-height: 520px; position: relative; }
.tech__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 55%; }
.tech__body { grid-column: 7 / 13; display: grid; gap: 24px; align-content: start; }
.caps { display: grid; gap: 0; margin-top: 12px; }
.cap { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; }
.cap + .cap { box-shadow: 0 -1px 0 rgba(22,22,22,.12); } /* taste-skill-ignore — list separator */
.cap__n { font-size: 15px; font-weight: 700; color: var(--accent-ink); padding-top: 3px; font-variant-numeric: tabular-nums; }
.cap h3 { font-size: 20px; font-weight: 680; font-variation-settings: "wdth" 86; line-height: 1.2; margin-bottom: 6px; }
.cap p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* =========================================================
   Systems (tabs)
   ========================================================= */
.systems { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.systems__tabs { grid-column: 1 / 6; display: grid; gap: 6px; }
.tab {
  text-align: left; border: 0; background: transparent; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: clamp(19px, 1.6vw, 24px); font-weight: 650; font-variation-settings: "wdth" 86; line-height: 1.2;
  color: var(--ink-soft); padding: 18px 22px; border-radius: var(--r-sm);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.tab::after { content: "→"; font-weight: 500; opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.tab:hover { color: var(--ink); background: rgba(255,255,255,.45); }
.tab.is-on { color: var(--ink); background: var(--paper); }
.tab.is-on::after { opacity: 1; transform: none; color: var(--accent-ink); }
.systems__panels { grid-column: 6 / 13; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); background: var(--paper); border-radius: var(--r); padding: 14px; }
.panel[hidden] { display: none; }
.panel img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: var(--r-sm); }
.panel__text { padding: 20px 14px 20px 6px; display: grid; gap: 16px; align-content: start; }
.panel__text ul { display: grid; gap: 8px; font-size: 15px; }
.panel__text li { position: relative; padding-left: 18px; }
.panel__text li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.panel.is-on img { animation: panel-in .7s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* =========================================================
   Process along a road
   ========================================================= */
.process__road { position: relative; height: 72px; margin-bottom: 40px; }
.process__road svg { width: 100%; height: 100%; display: block; overflow: visible; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.step { display: grid; gap: 12px; align-content: start; }
.step__n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 760; font-size: 16px; }
.step h3 { font-size: 21px; }
.step p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* =========================================================
   Sectors
   ========================================================= */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sector { background: var(--paper); border-radius: var(--r-sm); padding: 28px 26px; display: grid; gap: 10px; align-content: start; transition: background-color .3s var(--ease); }
.sector:hover { background: #fff; }
.sector p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* =========================================================
   Certificates
   ========================================================= */
.certs { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.certs__text { grid-column: 1 / 5; display: grid; gap: 22px; align-content: start; }
.certs__grid { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cert { background: var(--dark-3); border-radius: var(--r-sm); padding: 18px 18px 20px; display: grid; gap: 10px; align-content: start; transition: background-color .3s var(--ease); }
.cert:hover { background: #393935; }
.cert img { width: 100%; max-width: 150px; aspect-ratio: 2 / 1; object-fit: contain; object-position: left center; }
.cert b { font-size: 17px; font-weight: 700; }
.cert span { font-size: 14px; color: var(--on-dark-soft); line-height: 1.4; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.faq__side { grid-column: 1 / 5; display: grid; gap: 22px; position: sticky; top: 120px; }
.faq__list { grid-column: 6 / 13; display: grid; gap: 10px; }
.q { background: var(--paper); border-radius: var(--r-sm); padding: 0 26px; transition: background-color .25s var(--ease); }
.q[open] { background: #fff; }
.q summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 620; line-height: 1.35; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; position: absolute; right: 4px; top: 28px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease), top .3s var(--ease); }
.q[open] summary::after { transform: rotate(225deg); top: 33px; }
.q p { padding-bottom: 24px; color: var(--ink-soft); max-width: 62ch; }

/* =========================================================
   Contact band + footer
   ========================================================= */
.cta { background: var(--accent); color: var(--ink); }
.cta__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.cta__main { grid-column: 1 / 8; display: grid; gap: 28px; }
.cta__mail { font-size: clamp(30px, 4.4vw, 68px); font-weight: 700; font-variation-settings: "wdth" 76; letter-spacing: -0.03em; line-height: 1; text-decoration: none; word-break: break-word; }
.cta__mail:hover { text-decoration: underline 4px; text-underline-offset: 8px; }
.cta__side { grid-column: 9 / 13; display: grid; gap: 24px; font-size: 16px; line-height: 1.55; }
.cta__side address { font-style: normal; }
.cta__side strong { display: block; font-size: 17px; margin-bottom: 4px; }
.cta__side a { text-underline-offset: 4px; }

.foot { background: var(--dark); color: var(--on-dark); padding-top: clamp(64px, 7vw, 104px); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.foot__brand { grid-column: 1 / 5; display: grid; gap: 20px; align-content: start; }
.foot__brand svg { width: 210px; height: auto; color: var(--on-dark); }
.foot__brand p { color: var(--on-dark-soft); font-size: 15px; max-width: 34ch; }
.foot__col { grid-column: span 2; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot__col:first-of-type { grid-column: 6 / 8; }
.foot__col h3 { font-size: 14px; font-weight: 600; color: var(--on-dark-soft); margin-bottom: 6px; }
.foot__col a { text-decoration: none; color: var(--on-dark); }
.foot__col a:hover { color: var(--accent); }
.foot__legal { margin-top: clamp(56px, 6vw, 88px); padding-block: 24px 28px; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--on-dark-soft); box-shadow: 0 -1px 0 rgba(255,255,255,.1); } /* taste-skill-ignore */
.foot__legal a { color: var(--on-dark-soft); }
.credits { max-width: 80ch; text-align: right; }

/* =========================================================
   Services page
   ========================================================= */
.page-head { position: relative; background: var(--dark); color: #fff; padding-top: 150px; padding-bottom: 64px; overflow: hidden; }
.page-head__media { position: absolute; inset: 0; opacity: .38; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head .wrap { position: relative; }
.page-head .lead { color: rgba(255,255,255,.86); margin-top: 24px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.jump a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font-size: 15px; font-weight: 560; transition: background-color .25s var(--ease); }
.jump a:hover { background: var(--accent); color: var(--ink); }

.svc { padding-block: clamp(72px, 8vw, 120px); }
.svc + .svc { padding-top: 0; }
.svc__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.svc__intro { grid-column: 1 / 7; display: grid; gap: 20px; }
.svc__no { font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.svc__img { grid-column: 8 / 13; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc:nth-of-type(even) .svc__intro { grid-column: 7 / 13; grid-row: 1; }
.svc:nth-of-type(even) .svc__img { grid-column: 1 / 6; grid-row: 1; }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.item { background: var(--paper); border-radius: var(--r-sm); padding: 28px 30px 30px; display: grid; gap: 10px; align-content: start; }
.item h3 { font-size: 19px; font-weight: 680; font-variation-settings: "wdth" 86; line-height: 1.25; }
.item p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

/* =========================================================
   Motion
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero__media img { transform: scale(1.08); transition: transform 2.2s var(--ease); }
.js .hero.in .hero__media img { transform: scale(1); }
.js .hero .hero__title, .js .hero .hero__row, .js .hero .facts { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero.in .hero__title { opacity: 1; transform: none; transition-delay: .1s; }
.js .hero.in .hero__row { opacity: 1; transform: none; transition-delay: .3s; }
.js .hero.in .facts { opacity: 1; transform: none; transition-delay: .5s; }
.road-line { stroke-dashoffset: var(--off, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .nav.is-open { background: var(--ground); color: var(--ink); }
  .nav.is-open .nav__links {
    display: grid; gap: 4px; align-content: start; position: absolute; left: 0; right: 0; top: 80px;
    min-height: calc(100svh - 80px); background: var(--ground); padding: 16px var(--m) 28px;
  }
  .nav.is-open .nav__links a { display: block; font-size: 24px; line-height: 1.2; padding: 12px 0; }
  .nav.is-open .nav__cta { display: inline-flex; position: absolute; z-index: 1; top: calc(80px + 16px + 6 * 57px + 16px); left: var(--m); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process__road { display: none; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .head > :first-child, .head > :nth-child(2) { grid-column: 1 / -1; }
  .head { gap: 20px; }
  .vision__text, .vision__img { grid-column: 1 / -1; }
  .brake__text, .brake__fig { grid-column: 1 / -1; }
  .brake__text { max-width: 640px; }
  .tech__img { grid-column: 1 / -1; min-height: 360px; }
  .tech__body { grid-column: 1 / -1; margin-top: 16px; }
  .systems__tabs, .systems__panels { grid-column: 1 / -1; }
  .certs__text, .certs__grid { grid-column: 1 / -1; }
  .faq__side { grid-column: 1 / -1; position: static; }
  .faq__list { grid-column: 1 / -1; }
  .cta__main, .cta__side { grid-column: 1 / -1; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__col, .foot__col:first-of-type { grid-column: span 4; }
  .svc__intro, .svc__img, .svc:nth-of-type(even) .svc__intro, .svc:nth-of-type(even) .svc__img { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 680px) {
  :root { --section: 80px; }
  .hero__media { inset: 68px 0 auto 0; height: 46svh; }
  .hero__media img { object-position: 76% 50%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(20,20,20,0) 55%, rgba(20,20,20,1) 100%); } /* taste-skill-ignore */
  .nav__in { height: 68px; }
  .nav__logo { width: 140px; }
  .nav.is-open .nav__links { top: 68px; min-height: calc(100svh - 68px); }
  .nav.is-open .nav__cta { top: calc(68px + 16px + 6 * 57px + 16px); }
  .hero__content { padding-top: 120px; padding-bottom: 28px; }
  .hero__lede, .hero__actions { grid-column: 1 / -1; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 24px; margin-top: 40px; }
  .areas { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .sectors { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel img { min-height: 220px; aspect-ratio: 4 / 3; }
  .panel__text { padding: 6px 8px 14px; }
  .tab { padding: 16px 16px; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .brake__scale span:last-child { display: none; }
  .brake__nums { grid-template-columns: 1fr 1fr; }
  .brake__nums div:last-child { grid-column: 1 / -1; }
  .tech__img { min-height: 280px; }
  .cap { grid-template-columns: 40px 1fr; }
  .foot__col, .foot__col:first-of-type { grid-column: 1 / -1; }
  .foot__legal { flex-direction: column; }
  .credits { text-align: left; }
  .q { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero .hero__title, .js .hero .hero__row, .js .hero .facts { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero__media img { transform: none; transition: none; }
  .brake__car, .brake__zone, .area__img img { transition: none; }
}

.cert__ph { display: flex; align-items: center; width: 100%; max-width: 150px; aspect-ratio: 2 / 1; font-size: 26px; font-weight: 760; font-variation-settings: "wdth" 76; color: var(--accent); letter-spacing: -0.02em; }

/* =========================================================
   Contact form
   ========================================================= */
.cta__grid { align-items: start; }
.cta__main { grid-column: 1 / 6; }
.cta__addr { font-style: normal; font-size: 16px; line-height: 1.6; }
.cta__addr strong { display: block; font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.cta__addr a { text-underline-offset: 4px; }
.form {
  grid-column: 7 / 13; background: var(--paper); border-radius: var(--r); padding: clamp(22px, 2.6vw, 36px);
  display: grid; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--ground); border: 2px solid transparent; border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red, #C8402A); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.check.is-bad span { color: #B3361F; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__status { font-size: 15px; font-weight: 560; margin: 0; }
.form__status.is-ok { color: #1F6B3A; }
.form__status.is-err { color: #B3361F; }
.form button[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 1100px) {
  .cta__main, .form { grid-column: 1 / -1; }
  .form { margin-top: 24px; }
}
@media (max-width: 680px) {
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

.cert__svg { width: 100%; max-width: 150px; aspect-ratio: 2 / 1; display: block; }

/* =========================================================
   Language switcher
   ========================================================= */
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: 15px;
  background: rgba(255,255,255,.1); transition: background-color .25s var(--ease);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.langs summary:hover { background: rgba(255,255,255,.2); }
.nav.is-solid .langs summary, .nav--solid .langs summary, .nav.is-open .langs summary { background: var(--ground-2); }
.langs__list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; z-index: 5;
  background: var(--paper); color: var(--ink); border-radius: var(--r-sm); padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.langs__list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.langs__list a b { width: 28px; font-size: 13px; color: var(--ink-soft); }
.langs__list a:hover { background: var(--ground-2); }
.langs__list a[aria-current] { background: var(--accent); }
.langs__list a[aria-current] b { color: var(--ink); }

/* =========================================================
   Scripts other than Latin
   ========================================================= */
html[lang="ru"] { --f: "Roboto Flex", "Helvetica Neue", Arial, sans-serif; }
html[lang="ar"] { --f: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
html[lang="ar"] .display, html[lang="ar"] .h2, html[lang="ar"] .h3, html[lang="ar"] .tab,
html[lang="ar"] .cta__mail, html[lang="ar"] .fact b { letter-spacing: 0; line-height: 1.25; }
html[lang="ar"] .display { line-height: 1.15; }
html[lang="ar"] body { line-height: 1.75; }

/* Right-to-left (Arabic): arrows turn, the hero copy stays over the quiet side of the drawing */
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr, [dir="rtl"] .link:hover .arr { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .hero__content { direction: ltr; }
[dir="rtl"] .hero__title, [dir="rtl"] .hero__lede { direction: rtl; text-align: right; }
[dir="rtl"] .hero__actions { direction: rtl; justify-content: flex-start; }
[dir="rtl"] .area__list li, [dir="rtl"] .panel__text li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .area__list li::before, [dir="rtl"] .panel__text li::before { left: auto; right: 0; }
[dir="rtl"] .tab::after { content: "←"; transform: translateX(6px); }
[dir="rtl"] .tab:hover { transform: none; }
[dir="rtl"] .q summary { padding: 22px 0 22px 44px; }
[dir="rtl"] .q summary::after { right: auto; left: 4px; }
[dir="rtl"] .credits { text-align: left; }
[dir="rtl"] .check { direction: rtl; }

@media (max-width: 1100px) {
  .nav__in .langs { margin-inline-start: auto; }
  .nav__logo { margin-right: 0; margin-inline-end: auto; }
}
@media (max-width: 680px) {
  .langs summary { padding: 0 10px; }
  [dir="rtl"] .hero__actions { justify-content: stretch; }
}

/* Longer headlines in Russian and Arabic */
html[lang="ru"] .hero__title, html[lang="ar"] .hero__title { max-width: 19ch; font-size: clamp(38px, 5.2vw, 86px); }
html[lang="ru"] .display { font-weight: 760; }
html[lang="ru"] .h2 { font-size: clamp(30px, 3.6vw, 56px); }
html[lang="ar"] .h2 { font-size: clamp(28px, 3.4vw, 52px); }
html[lang="ar"] .hero__title { max-width: none; width: min(40vw, 100%); }
@media (max-width: 680px) { html[lang="ar"] .hero__title { width: 100%; } }

/* =========================================================
   Service detail pages
   ========================================================= */
.dhead { background: var(--dark); color: #fff; padding-top: 130px; padding-bottom: clamp(56px, 7vw, 96px); }
.dhead__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.dhead__text { grid-column: 1 / 7; display: grid; gap: 22px; }
.dhead__title { font-size: clamp(34px, 4.4vw, 68px); }
.dhead .lead { color: rgba(255,255,255,.86); }
.dhead__actions { margin: 6px 0 0; }
.dhead__img { grid-column: 8 / 13; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; }
.dhead__img img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.why { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.why > h2 { grid-column: 1 / 5; }
.why__body { grid-column: 6 / 13; display: grid; gap: 18px; font-size: var(--t-lead); line-height: 1.6; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.lists__col { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; align-content: start; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.2em + 4px); width: 5px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.related a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ground-2); text-decoration: none; font-weight: 560; font-size: 15px; transition: background-color .25s var(--ease); }
.related a:hover { background: var(--accent); }
.item--link { padding: 0; }
.item--link a { display: grid; gap: 10px; padding: 28px 30px 26px; height: 100%; text-decoration: none; color: inherit; border-radius: var(--r-sm); transition: background-color .25s var(--ease); }
.item--link a:hover { background: #fff; }
.item--link .link { margin-top: 4px; font-size: 15px; }
.cap h3 a { text-decoration: underline 2px transparent; text-underline-offset: 5px; transition: text-decoration-color .25s var(--ease); }
.cap h3 a:hover { text-decoration-color: var(--accent); }
.panel__text .link { font-size: 15px; }
@media (max-width: 1100px) {
  .dhead__text, .dhead__img { grid-column: 1 / -1; }
  .why > h2, .why__body { grid-column: 1 / -1; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .dhead { padding-top: 104px; }
  .lists { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: 1fr; }
}

/* =========================================================
   Safe Road 360 (ana sayfa bölümü + ürün sayfası)
   ========================================================= */
.eyebrow { font-size: var(--t-small); font-weight: 640; letter-spacing: .02em; color: var(--accent-ink); margin-bottom: 14px; }
.on-dark .eyebrow, .page-head .eyebrow { color: var(--accent); }

.srb { display: grid; gap: 28px; }
.srb__mods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.srm {
  position: relative; display: grid; gap: 8px; align-content: start;
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); padding: 24px 22px 22px;
}
.srm::after { content: ""; position: absolute; inset-inline-start: 50%; bottom: -29px; width: 2px; height: 28px; background: rgba(232,166,36,.6); }
.srm__ic { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.srm__t { font-size: 21px; font-weight: 680; font-variation-settings: "wdth" 86; line-height: 1.15; letter-spacing: -0.012em; }
.srm__s { color: var(--accent); font-size: 15px; font-weight: 600; line-height: 1.35; }
.srm__d { color: var(--on-dark-soft); font-size: 15px; line-height: 1.55; margin-top: 4px; }
.srm__k { color: var(--on-dark-soft); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.srb--full .srm__k { padding-top: 12px; margin-top: 8px; box-shadow: 0 -1px 0 rgba(255,255,255,.1); } /* taste-skill-ignore — separator */

.srb__hub {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px;
  border: 2px solid var(--accent); border-radius: 999px; padding-block: 10px; padding-inline: 10px 28px;
}
.srb__decision { display: grid; gap: 2px; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 14px 28px; line-height: 1.2; }
.srb__decision b { font-weight: 760; font-size: 18px; }
.srb__decision span { font-size: 13px; font-weight: 600; }
.srb__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 620; font-size: 16px; }
.srb__flow li { display: inline-flex; align-items: center; gap: 12px; }
.srb__flow .arr { color: var(--accent); }

.sr-flowbar { margin-top: 28px; background: var(--paper); border-radius: 999px; padding: 18px 28px; }
.sr-flowbar .srb__flow .arr { color: var(--accent-ink); }

.sr-head { padding-bottom: clamp(56px, 7vw, 96px); }
.sr-head .crumbs { margin-bottom: 28px; }
.sr-slogan { margin-top: 18px; color: var(--accent); font-weight: 640; font-size: var(--t-lead); line-height: 1.4; max-width: 52ch; }
.sr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sr-sub { font-weight: 700; color: var(--ink); }

@media (max-width: 1100px) {
  .srb__mods { grid-template-columns: repeat(3, 1fr); }
  .srm::after { display: none; }
  .srb__hub { border-radius: var(--r); padding: 12px; }
  .srb__decision { border-radius: var(--r-sm); flex: 1 1 100%; }
  .srb__flow { padding: 4px 8px 6px; }
}
@media (max-width: 820px) {
  .srb__mods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .srb__mods { grid-template-columns: 1fr; }
  .srb__flow { font-size: 15px; }
  .sr-flowbar { border-radius: var(--r); padding: 16px 18px; }
  .sr-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 1101px) {
  .srb__flow { flex: 1 1 0; flex-wrap: nowrap; gap: 0; }
  .srb__flow li { gap: 0; }
  .srb__flow li + li { flex: 1 1 0; }
  .srb__flow .arr { flex: 1 1 0; text-align: center; padding-inline: 10px; }
}
