/* KS Trucks — site styles. One file for all pages; no framework. */

:root {
  --ink: #0d0e10;
  --ink-2: #17191c;
  --ink-3: #23262b;
  --paper: #ffffff;
  --soft: #f4f4f1;
  --line: #e6e6e2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #121315;
  --muted: #5b5f66;
  --muted-dark: #a4a8af;
  --red: #d2151c;
  --red-hover: #b31017;
  --red-bright: #ff3b42;

  --display: 'Exo 2', 'Arial Narrow', Arial, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 700 900; font-display: swap; src: url(/fonts/exo2-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Exo 2'; font-style: italic; font-weight: 700 900; font-display: swap; src: url(/fonts/exo2-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  color: var(--red); font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--red-bright); }
.display, .h2 {
  font-family: var(--display); font-style: italic; text-transform: uppercase;
  letter-spacing: -0.005em; overflow-wrap: anywhere; hyphens: manual;
}
.display { font-weight: 900; font-size: clamp(44px, 8.2vw, 112px); line-height: 0.9; }
.display .accent { color: var(--red-bright); display: block; }
.h2 { font-weight: 800; font-size: clamp(34px, 4.8vw, 62px); line-height: 0.95; }
.h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.section--dark .lead, .on-dark .lead { color: var(--muted-dark); }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 20px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.15fr 1fr; align-items: end; } }
.section-head .lead { max-width: 520px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-sm); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { --bg: var(--red-hover); --bd: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: #cfcfca; }
.btn--line:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--dark:hover { --bg: var(--ink-3); --bd: var(--ink-3); }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--red); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.arrow { width: 18px; height: 18px; flex: none; }

.tag { display: inline-flex; align-items: center; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 4px; line-height: 1.2; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--text); background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), border-color .35s, color .35s, transform .35s var(--ease);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.brand .logo-light { display: none; }
.site-header.is-overlay:not(.is-solid) { background: transparent; border-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-overlay:not(.is-solid) .logo-dark { display: none; }
.site-header.is-overlay:not(.is-solid) .logo-light { display: block; }
.site-header.is-overlay:not(.is-solid)::before {
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8, 9, 11, 0.55), rgba(8, 9, 11, 0));
}
.nav { display: none; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; position: relative; display: inline-flex; align-items: center; gap: 8px; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.header-phone { display: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu-toggle { display: none !important; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }
@media (max-width: 560px) { .header-actions .btn { display: none; } .brand img { height: 32px; } :root { --header-h: 66px; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 32px; overflow: hidden auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--ink); color: #fff; border-color: var(--line-dark); }
.menu-open .site-header .logo-dark { display: none; }
.menu-open .site-header .logo-light { display: block; }
.menu-open .site-header::before { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--line-dark); text-decoration: none;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(22px, 7.2vw, 30px); text-transform: uppercase; line-height: 1.1;
}
.menu nav a .tag { font-family: var(--sans); font-style: normal; }
.menu .menu-contact { display: grid; gap: 6px; color: var(--muted-dark); font-size: 15px; }
.menu .menu-contact a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; }
.menu .btn { align-self: stretch; }
@media (min-width: 1100px) { .menu { display: none; } }

main { display: block; }
.page-top { padding-top: var(--header-h); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--ink);
  min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
}
.hero--sub { min-height: min(86svh, 820px); }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-media picture { position: absolute; inset: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.35) 0%, rgba(8, 9, 11, 0) 26%, rgba(8, 9, 11, 0) 45%, rgba(8, 9, 11, 0.85) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.78) 0%, rgba(8, 9, 11, 0.42) 50%, rgba(8, 9, 11, 0.05) 100%);
}
.hero-body { padding-bottom: clamp(40px, 7vw, 88px); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red-bright); }
.hero .display { max-width: 12ch; }
.hero-lead { margin-top: 26px; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.hero .btns { margin-top: 34px; }
.hero-pill {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .25s;
}
.hero-pill:hover { background: rgba(255, 255, 255, 0.18); }
.hero-pill .tag { border-radius: 999px; padding: 4px 9px; }
.hero-pill .arrow { width: 16px; height: 16px; }

.hero-stats { border-top: 1px solid rgba(255, 255, 255, 0.16); background: rgba(8, 9, 11, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 22px 0; }
.stat + .stat { }
.stat-value { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.stat-value small { font-size: 0.55em; margin-left: 2px; }
.stat-label { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.72); line-height: 1.4; }
@media (max-width: 759px) {
  .stats .stat:nth-child(odd) { padding-right: 16px; }
  .stats .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .stats .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 30px 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- film ---------- */
.film { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.film video, .film picture, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  border: 0; background: linear-gradient(rgba(8, 9, 11, 0.1), rgba(8, 9, 11, 0.55)); color: #fff; cursor: pointer; width: 100%;
}
.film-play .ring {
  width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(210, 21, 28, 0.55); animation: pulse 2.4s infinite; transition: transform .3s var(--ease);
}
.film-play:hover .ring { transform: scale(1.06); }
.film-play .ring svg { width: 34%; height: 34%; margin-left: 6%; }
.film-play .label { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.film.is-playing .film-play, .film.is-playing picture { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(210, 21, 28, 0.5); } 70% { box-shadow: 0 0 0 22px rgba(210, 21, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 21, 28, 0); } }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 759px) {
  .cards--rail { grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; }
  .cards--rail::-webkit-scrollbar { display: none; }
  .cards--rail > * { scroll-snap-align: start; }
  /* fade only: a translate would make the rail scroll vertically */
  .js .cards--rail > [data-reveal] { transform: none; transition-delay: 0s; }
}
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.section--soft .card { border-color: transparent; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-num { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--red); font-size: 18px; }
.card p.muted { font-size: 16px; }

.icon-card { padding: 30px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.icon-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.35); }
.icon-card .icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(210, 21, 28, 0.08); display: grid; place-items: center; color: var(--red); margin-bottom: 6px; }
.icon-card .icon svg { width: 26px; height: 26px; }
.icon-card p { color: var(--muted); font-size: 16px; }
.section--dark .icon-card { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .icon-card p { color: var(--muted-dark); }
.section--dark .icon-card .icon { background: rgba(255, 59, 66, 0.12); color: var(--red-bright); }

/* ---------- split ---------- */
.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 1.15fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split .lead { margin-top: 22px; }
.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x5 { aspect-ratio: 4 / 5; }

.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 500; }
.checks li::before {
  content: ''; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--red)
    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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.mosaic > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic > :not(:first-child) { aspect-ratio: 4 / 3; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; line-height: 1; color: var(--red); }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 16px; }

/* ---------- ISO band ---------- */
.band { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: var(--radius); padding: clamp(36px, 5vw, 64px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: auto 1fr; gap: 56px; } }
.band-mark { font-family: var(--display); font-style: italic; font-weight: 900; line-height: 0.85; font-size: clamp(64px, 9vw, 120px); }
.band-mark span { display: block; font-size: 0.5em; opacity: 0.85; }
.band p { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin-top: 14px; }
.band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, 0.07); pointer-events: none; }

/* ---------- dark split w/ photo ---------- */
.career { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1000px) { .career { grid-template-columns: 1fr 1fr; align-items: start; } }
.career .ru { margin-top: 14px; font-size: 18px; color: var(--red-bright); font-weight: 600; }
.career-photo { margin-top: 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.career-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.section--dark .checks li { color: #fff; }

/* ---------- forms ---------- */
.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: clamp(26px, 3.6vw, 44px); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.45); display: grid; gap: 18px; }
.section--soft .form-card { box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.25); }
.form-card h3 { font-size: 24px; letter-spacing: -0.01em; }
.form-card .sub { color: var(--muted); font-size: 15px; margin-top: -10px; }
.row { display: grid; gap: 18px; }
@media (min-width: 560px) { .row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #d9d9d4; border-radius: var(--radius-sm); background: #fbfbfa;
  font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121315' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(13, 14, 16, 0.06); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid #c9c9c3; border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ''; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-note a { color: inherit; }
.form-status { font-size: 15px; font-weight: 500; color: #1d7a3a; min-height: 0; }
.form-status:empty { display: none; }

/* ---------- contact ---------- */
.contact { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1000px) { .contact { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.contact-list { display: grid; gap: 4px; margin-top: 34px; font-style: normal; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--red); border: 1px solid var(--line); }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted); font-size: 13px; }
.contact-item strong { font-weight: 600; font-size: 17px; }
a.contact-item:hover strong { color: var(--red); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 32px 28px; border-radius: var(--radius); background: var(--paper); position: relative; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; margin-bottom: 22px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- feature list (numbered) ---------- */
.points { display: grid; gap: 0; }
.point { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.point:last-child { border-bottom: 1px solid var(--line); }
.point .n { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; color: var(--red); line-height: 1.2; }
.point h3 { font-size: 19px; margin-bottom: 4px; }
.point p { color: var(--muted); font-size: 16px; }

.gen-cards { display: grid; gap: 16px; }
.gen-card { border-radius: var(--radius); padding: 30px; background: var(--ink-2); border: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.gen-card .tag { background: transparent; border: 1px solid var(--red-bright); color: var(--red-bright); }
.gen-card h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; text-transform: uppercase; margin: 16px 0 8px; }
.gen-card p { color: var(--muted-dark); }
.gen-card::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 59, 66, 0.22), transparent 70%); }

.roles { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 560px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { padding: 20px 22px; border-radius: 12px; background: var(--paper); }
.role h3 { font-size: 17px; margin-bottom: 4px; }
.role p { font-size: 15px; color: var(--muted); }

.facts { display: grid; gap: 0; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 28px 0; border-top: 1px solid var(--line-dark); }
@media (min-width: 860px) { .fact { padding: 8px 36px; border-top: 0; border-left: 1px solid var(--line-dark); } .fact:first-child { padding-left: 0; border-left: 0; } }
.fact h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; text-transform: uppercase; margin-bottom: 8px; }
.fact p { color: var(--muted-dark); }

.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); padding: clamp(40px, 6vw, 80px); color: #fff; background: var(--ink); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.cta picture, .cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0.55)); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, 0.8); font-size: 18px; }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; }
.legal h1 { margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #2b2e33; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal address { font-style: normal; }
.legal .note { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted-dark); font-size: 15px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--muted-dark); margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--red-bright); }
.footer-col address { font-style: normal; font-size: 15px; line-height: 1.7; color: #e8e8e8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 14px; color: var(--muted-dark); }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { min-height: 48px; padding: 0 14px; font-size: 15px; }
.action-bar svg { width: 18px; height: 18px; }
@media (min-width: 760px) { .action-bar { display: none; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal='2'] { transition-delay: .08s; }
.js [data-reveal='3'] { transition-delay: .16s; }
.js .hero [data-rise] { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.js .hero [data-rise='2'] { animation-delay: .12s; }
.js .hero [data-rise='3'] { animation-delay: .24s; }
.js .hero [data-rise='4'] { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js [data-reveal], .js .hero [data-rise] { opacity: 1; transform: none; } }

.contact-list--dark .contact-item { border-color: var(--line-dark); }
.contact-list--dark .ic { background: var(--ink-2); border-color: var(--line-dark); color: var(--red-bright); }
.contact-list--dark small { color: var(--muted-dark); }
a.contact-item:hover .ic { border-color: currentColor; }

/* ---------- review fixes 28.11 ---------- */
.nav a, .header-phone { white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1279px) { .nav { gap: 22px; } }
@media (min-width: 1280px) { .header-phone { display: none; } }
@media (min-width: 1480px) { .header-phone { display: inline-flex; } }
.hero .display { max-width: none; }
.h2 + .lead { margin-top: 22px; }
@media (max-width: 559px) {
  .hero .btns .btn { flex: 1 1 0; padding: 0 14px; }
  .hero-body { padding-bottom: 32px; }
}
.gen-card h3 sub { font-size: 0.6em; vertical-align: baseline; position: relative; top: 0.2em; }

/* ---------- certificate card (TÜV SÜD ISO 9001) ---------- */
.cert { position: relative; z-index: 1; width: min(100%, 300px); margin: 0 auto; background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px -24px rgba(40, 0, 0, 0.55), 0 8px 18px -10px rgba(40, 0, 0, 0.35);
  transform: rotate(-2.5deg); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease; }
.cert:hover { transform: rotate(0deg) translateY(-4px); }
@media (max-width: 899px) { .cert { transform: none; } }
@media (min-width: 900px) { .cert { width: 330px; } }
/* light sweep across the card on hover */
.cert::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.9s ease; mix-blend-mode: soft-light; }
.cert:hover::after { transform: translateX(120%); }
.cert-head { display: flex; justify-content: space-between; padding: 16px 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #6b6f76; border-bottom: 1px solid #eceef1; }
.cert-head span:first-child { color: var(--red); }
.cert-seal { position: relative; display: grid; place-items: center; padding: 30px 0 18px; }
.cert-seal::before { content: ''; position: absolute; inset: 0 0 -30px; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 46%, transparent 0 11px, rgba(13, 14, 16, 0.05) 11px 12px), radial-gradient(circle at 50% 46%, #eef1f5 0, rgba(255, 255, 255, 0) 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 72%); mask-image: radial-gradient(circle at 50% 46%, #000 30%, transparent 72%); }
.cert-seal .seal { position: relative; }
.cert-seal .seal { width: 132px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 40, 90, 0.22)); }
.cert-norm { text-align: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: 0.01em; margin-top: 4px; }
.band .cert p { color: inherit; max-width: none; }
.band .cert .cert-sub { text-align: center; font-size: 14px; color: #6b6f76; margin: 8px 24px 0; }
/* ticket-style perforation with notches in the band colour */
.cert-foot { position: relative; margin-top: 22px; padding: 16px 22px 18px; border-top: 2px dashed #e3e5e9; text-align: center; }
.cert-foot::before, .cert-foot::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.cert-foot::before { left: -9px; } .cert-foot::after { right: -9px; }
.cert-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cert-foot a svg { width: 16px; height: 16px; color: var(--red); transition: transform 0.2s ease; }
.cert-foot a:hover { color: var(--red); } .cert-foot a:hover svg { transform: translateX(3px); }

/* footer seal */
.footer-cert { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 10px 18px 10px 10px; border: 1px solid var(--line-dark); border-radius: 14px; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.footer-cert:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.footer-cert img { width: 46px; height: 46px; }
.footer-cert strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.footer-cert small { display: block; font-size: 13px; color: var(--muted-dark); margin-top: 2px; }

/* small phones */
@media (max-width: 389px) { .display { font-size: 11.2vw; } .menu nav a { font-size: 6.6vw; } }
@media (max-width: 345px) { .site-header .logo-dark, .site-header .logo-light { max-width: 200px; height: auto; } }
