/* ==========================================================================
   R TECHNICS CHIPTUNING — Design system
   Dark motorsport theme · brand red + metallic silver on black
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #07080a;
  --bg-2:      #0a0c0f;
  --surface:   #101319;
  --surface-2: #161a21;
  --surface-3: #1c2129;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);

  /* Brand */
  --red:        #e30613;
  --red-bright: #ff2b30;
  --red-deep:   #a30309;
  --grad-red:   linear-gradient(135deg, #ff3b3f 0%, #e30613 48%, #a30309 100%);
  --grad-red-soft: linear-gradient(135deg, rgba(255,59,63,.18), rgba(163,3,9,.06));

  --steel:      #c9ced4;
  --grad-steel: linear-gradient(180deg, #ffffff 0%, #d7dbe0 36%, #9aa0a7 62%, #cfd3d8 80%, #7c828a 100%);

  /* Text */
  --text:   #eceef1;
  --muted:  #9aa1a9;
  --faint:  #6a7178;

  /* Effects */
  --glow-red: 0 0 0 1px rgba(227,6,19,.5), 0 12px 40px -8px rgba(227,6,19,.45);
  --shadow:   0 20px 50px -20px rgba(0,0,0,.8);
  --shadow-sm:0 8px 24px -12px rgba(0,0,0,.7);

  /* Geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --clip: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --container: 1200px;

  /* Type */
  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --f-head: "Saira", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:where([id]) { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

/* ---------- Ambient background ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(227,6,19,.16), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(60,70,90,.10), transparent 55%),
    linear-gradient(180deg, #06070a 0%, #090b0f 50%, #06070a 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(64px, 8vw, 120px); position: relative; }
.section--alt { background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0) 30%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }

/* Diagonal red speed accent used as section topper */
.slash { position: relative; }
.slash::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red-bright) 50%, var(--red) 82%, transparent);
  opacity: .5;
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head);
  font-weight: 700; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--grad-red);
  box-shadow: 0 0 12px rgba(227,6,19,.7);
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; }
.h1, h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
.h2, h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h3, h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.metal {
  background: var(--grad-steel);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent {
  background: linear-gradient(180deg, #ff5a5e 0%, var(--red) 55%, var(--red-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }
.mono {
  font-family: var(--f-head); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; color: var(--faint);
}

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-title { margin-top: 16px; }
.section-sub { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 26px; color: var(--text);
  background: var(--b); border: 1px solid var(--line-2);
  clip-path: var(--clip);
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad-red); border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px -10px rgba(227,6,19,.7);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(227,6,19,.85); }
.btn--ghost { background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  font-size: .9rem; color: #fff;
}
.textlink svg { width: 16px; height: 16px; transition: transform .2s ease; }
.textlink:hover { color: var(--red-bright); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(7,8,10,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.9);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__name { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links > li { position: relative; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-head); font-weight: 600; font-size: .94rem; letter-spacing: .02em;
  padding: 10px 14px; color: var(--text); border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav__links a[aria-current="page"] { color: #fff; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-red); border-radius: 2px;
}
.caret { width: 12px; height: 12px; opacity: .6; transition: transform .2s ease; }

/* Dropdown */
.has-sub > .subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px;
  background: rgba(13,15,19,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover .caret { transform: rotate(180deg); }
.subnav a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; }
.subnav a span { font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--faint); letter-spacing: 0; }
.subnav a:hover span { color: var(--muted); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.phone-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head); font-weight: 700; letter-spacing: .03em;
  padding: 11px 18px; color: #fff; background: var(--grad-red);
  clip-path: var(--clip); box-shadow: 0 10px 26px -12px rgba(227,6,19,.8);
  transition: transform .18s ease, box-shadow .25s ease;
}
.phone-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(227,6,19,.9); }
.phone-btn svg { width: 17px; height: 17px; }

/* Burger */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); padding-bottom: clamp(50px, 7vw, 100px); overflow: hidden; }
.hero__speedlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(227,6,19,.05) 38px 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
          mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__glow {
  position: absolute; right: -10%; top: 8%; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(227,6,19,.30), transparent 62%);
  filter: blur(10px);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 .line { display: block; }
.hero__sub { margin-top: 24px; max-width: 560px; }
.hero .btn-row { margin-top: 34px; }
.hero__trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 26px; }
.hero__trust li { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); }
.hero__trust svg { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; }

/* Hero visual card with the car-silhouette + HUD */
.hero__visual { position: relative; }
.hero__panel {
  position: relative; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%), var(--surface);
  padding: 26px; box-shadow: var(--shadow); clip-path: var(--clip);
  overflow: hidden;
}
.hero__panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 80% 0%, rgba(227,6,19,.18), transparent 70%);
}
.hero__panel img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.hero__readout { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.readout { flex: 1; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.25); }
.readout b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1; }
.readout span { font-family: var(--f-head); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.readout b .accent { display: inline; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.stat {
  position: relative; padding: 30px 24px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-red); opacity: .85; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: #fff; }
.stat__num .unit { color: var(--red-bright); }
.stat__label { margin-top: 10px; font-family: var(--f-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; color: var(--muted); }

/* ---------- Generic grid ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%), var(--surface);
  transition: transform .22s ease, border-color .25s ease, box-shadow .3s ease, background .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--grad-red); transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%), var(--surface-2); }
.card:hover::before { transform: scaleY(1); }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad-red-soft); border: 1px solid rgba(227,6,19,.3); color: var(--red-bright);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: .98rem; }
.card__link { margin-top: 18px; }
a.card { display: block; }

/* Number / step cards */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step__num { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(227,6,19,.55); }
.step__title { margin: 12px 0 8px; }
.step__text { color: var(--muted); font-size: .95rem; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__body .eyebrow { margin-bottom: 16px; }
.split__media { position: relative; }
.split__media img { width: 100%; height: auto; border-radius: var(--radius); }
.media-glow { position: relative; }
.media-glow::before {
  content: ""; position: absolute; inset: -6% -4%; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(227,6,19,.22), transparent 65%);
  filter: blur(8px);
}
.media-glow img, .media-glow > * { position: relative; z-index: 1; }

/* Checklist */
.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.checklist svg { width: 22px; height: 22px; color: var(--red-bright); flex-shrink: 0; margin-top: 2px; }
.checklist b { font-family: var(--f-head); font-weight: 600; }
.checklist p { color: var(--muted); font-size: .94rem; margin-top: 2px; }

/* ---------- Brands / references marquee ---------- */
.brands { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands__track { display: flex; gap: 56px; width: max-content; animation: marquee 34s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__track span { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.32); white-space: nowrap; transition: color .2s ease; }
.brands__track span:hover { color: rgba(255,255,255,.7); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .25s ease; }
.faq__item[open] { border-color: var(--line-2); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .ico { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .25s, border-color .25s; }
.faq__q .ico::before, .faq__q .ico::after { content: ""; position: absolute; background: var(--red-bright); border-radius: 2px; }
.faq__q .ico::before { width: 12px; height: 2px; }
.faq__q .ico::after { width: 2px; height: 12px; transition: transform .25s ease; }
.faq__item[open] .faq__q .ico { background: var(--grad-red); border-color: transparent; }
.faq__item[open] .faq__q .ico::before, .faq__item[open] .faq__q .ico::after { background: #fff; }
.faq__item[open] .faq__q .ico::after { transform: rotate(90deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-block: 1px solid rgba(227,6,19,.3); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(700px 320px at 20% 20%, rgba(227,6,19,.30), transparent 60%),
    radial-gradient(700px 320px at 90% 90%, rgba(227,6,19,.18), transparent 60%),
    var(--bg-2); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.025) 40px 42px); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { max-width: 18ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.info-list { display: grid; gap: 16px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s ease, background .2s ease; }
.info-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.info-row__ico { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--grad-red-soft); border: 1px solid rgba(227,6,19,.3); color: var(--red-bright); }
.info-row__ico svg { width: 22px; height: 22px; }
.info-row__label { font-family: var(--f-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--faint); }
.info-row__val { font-size: 1.05rem; color: #fff; }
.info-row a.info-row__val:hover { color: var(--red-bright); }

/* Forms */
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--f-head); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; color: var(--text); font: inherit;
  background: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }
.form__note { font-size: .82rem; color: var(--faint); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 70px)); padding-bottom: clamp(36px, 5vw, 58px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -8%; top: -30%; width: 50vw; height: 50vw; max-width: 620px; max-height: 620px; z-index: -1; background: radial-gradient(circle, rgba(227,6,19,.22), transparent 62%); }
.page-hero h1 { margin-top: 16px; max-width: 18ch; }
.page-hero p { margin-top: 18px; max-width: 64ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-head); font-size: .84rem; color: var(--faint); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--muted); }
.breadcrumb svg { width: 13px; height: 13px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--red-bright); }

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.prose p, .prose li { color: var(--muted); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--grad-red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Pill / tag */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(227,6,19,.35); border-radius: 999px; background: var(--grad-red-soft); font-family: var(--f-head); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #ff7a7d; }

/* Price cards */
.price-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s, border-color .25s, box-shadow .3s; }
.price-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.price-card.is-featured { border-color: rgba(227,6,19,.5); box-shadow: var(--glow-red); }
.price-card__name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; }
.price-card__price { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; margin: 6px 0 4px; }
.price-card__price small { font-size: .9rem; color: var(--muted); font-family: var(--f-head); font-weight: 600; }
.price-card ul { display: grid; gap: 10px; margin: 16px 0 22px; }
.price-card ul li { display: flex; gap: 10px; color: var(--muted); font-size: .95rem; }
.price-card ul li svg { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), #050608); padding-top: clamp(50px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 50px; }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: .94rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--f-head); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: .96rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .96rem; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); transition: all .2s ease; }
.footer-social a:hover { color: #fff; border-color: transparent; background: var(--grad-red); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--faint); }
.footer-bottom a:hover { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Mobile menu scrim ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body.nav-open .scrim { opacity: 1; visibility: visible; }

/* ---------- Hero DYNO HUD panel ---------- */
.dyno__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dyno__live { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dyno__live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #34e06a; box-shadow: 0 0 12px #34e06a; animation: pulse 1.7s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.dyno__tag { font-family: var(--f-head); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.dyno__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 8vw, 4.6rem); line-height: .95; color: #fff; }
.dyno__big .accent { display: inline; }
.dyno__cap { font-family: var(--f-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.bar { margin-top: 18px; }
.bar__top { display: flex; justify-content: space-between; font-family: var(--f-head); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bar__top b { color: #fff; }
.bar__track { height: 10px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; border-radius: 6px; background: var(--grad-red); width: 0; box-shadow: 0 0 16px rgba(227,6,19,.6); transition: width 1.7s cubic-bezier(.22,.61,.36,1) .15s; }
.is-in .bar__fill { width: var(--w, 80%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.25); }
.chips span b { color: var(--red-bright); font-weight: 700; }

/* ---------- Hero promo (akcia) ---------- */
.hero__promo { margin-bottom: 20px; display: inline-flex; }
.pill.pill--link { transition: border-color .2s ease, color .2s ease; }
.pill.pill--link:hover { color: #fff; border-color: rgba(227,6,19,.7); }
.pill .pill__tag { color: #fff; background: var(--grad-red); padding: 2px 8px; border-radius: 999px; font-size: .7rem; }

/* ---------- Footer legal / cookie-settings link ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-legal a:hover { color: var(--muted); }
.linklike { font: inherit; color: var(--faint); cursor: pointer; padding: 0; border: 0; background: none; }
.linklike:hover { color: var(--muted); }

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 540px; margin-inline: auto;
  background: rgba(12,14,18,.98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
  transform: translateY(160%); transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.cookie-bar.is-open { transform: none; }
.cookie-bar h4 { font-family: var(--f-head); font-weight: 700; font-size: 1.06rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.cookie-bar p { color: var(--muted); font-size: .9rem; }
.cookie-bar a { color: var(--red-bright); text-decoration: underline; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-bar__actions .btn { flex: 1 1 140px; padding: 12px 16px; font-size: .82rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 8px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 480px; }
table.tbl th, table.tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.tbl th { font-family: var(--f-head); font-weight: 700; color: #fff; background: rgba(255,255,255,.03); text-transform: uppercase; letter-spacing: .04em; font-size: .76rem; }
table.tbl td { color: var(--muted); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }

/* ---------- Maintenance / coming-soon page ---------- */
.maint { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 48px 22px; position: relative; overflow: hidden; }
.maint__inner { position: relative; z-index: 2; max-width: 640px; }
.maint__logo { height: clamp(54px, 9vw, 88px); width: auto; margin: 0 auto 30px; }
.maint__glow { position: absolute; left: 50%; top: 40%; width: 90vw; max-width: 900px; height: 90vw; max-height: 900px; transform: translate(-50%,-50%); z-index: 1; pointer-events: none; background: radial-gradient(circle, rgba(227,6,19,.20), transparent 60%); }
.maint .pill { margin-bottom: 22px; }
.maint h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.maint p { margin: 20px auto 0; max-width: 48ch; }
.maint__contact { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0;
    background: linear-gradient(180deg, #0c0e12, #08090c); border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 20px) 22px 30px; overflow-y: auto;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); box-shadow: -30px 0 60px -30px rgba(0,0,0,.9); }
  body.nav-open .nav { transform: translateX(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links a[aria-current="page"] { background: rgba(227,6,19,.12); color: #fff; }
  .has-sub > .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    margin: 2px 0 6px 14px; padding: 2px 0 2px 10px; min-width: 0; }
  .has-sub > a .caret { display: none; }
  .nav__cta { margin-top: 18px; flex-direction: column; align-items: stretch; }
  .phone-btn { justify-content: center; padding: 15px; }
  .burger { display: block; }
  .brand img { height: 36px; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__readout { flex-wrap: wrap; }
  .readout { min-width: calc(50% - 6px); }
  .btn-row .btn { width: 100%; }
}
