/* chcitevystehovat.cz — tokeny a komponenty design systému Industry + styly stránky */
:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);
  --color-neutral-700: #5d5d60;
  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;
  --color-error: #a63f3f;
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
input[type=range] { accent-color: var(--color-accent); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* — blueprint rámeček s registračními značkami — */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px; pointer-events: none;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* — duotone fotky — */
.duotone { position: relative; }
.duotone > .photo { position: absolute; inset: 0; overflow: hidden; }
.duotone > .photo > img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.duotone > .photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--color-accent); mix-blend-mode: color; }
.duotone > .photo.placeholder {
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700);
  background:
    linear-gradient(to right, var(--color-divider) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px) 0 0 / 24px 24px;
}
.duotone > .photo.placeholder::after { display: none; }

/* — tlačítka — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider); border-radius: 0;
  min-height: 44px; padding: 8px 20px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* — formuláře — */
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 16px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
.field.invalid .input { border-color: var(--color-error); }
.field .error { display: none; font-size: 12px; color: var(--color-error); margin-top: 4px; }
.field.invalid .error { display: block; }
.seg { display: flex; border: 1px solid var(--color-divider); border-radius: 0; }
.seg-opt {
  position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 7px 12px; font-size: 15px; cursor: pointer;
}
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — karty, štítky, tabulky — */
.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: transparent; border: 1px solid var(--color-divider); border-radius: 0; }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 0; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table td { padding: 7px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.table .th { color: var(--color-accent-700); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; width: 45%; }
.table .num { text-align: right; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; white-space: nowrap; }

/* — typografické role — */
.kicker { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); }
.rule { height: 1px; background: var(--color-divider); margin: 12px 0 36px; }
.num-big { font-family: var(--font-heading); font-weight: var(--font-heading-weight); line-height: 1; }
.muted { color: var(--color-neutral-700); }

/* — navigace — */
.nav {
  position: sticky; top: 0; z-index: 10; background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 8px;
  padding: 10px var(--pad-x);
}
.nav-brand { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; letter-spacing: 0.01em; display: flex; align-items: baseline; margin-right: auto; text-decoration: none; color: inherit; text-transform: uppercase; }
.nav-brand .te { color: var(--color-accent-700); }
.nav-brand .tld { font-size: 15px; color: var(--color-neutral-700); text-transform: none; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links a { color: inherit; text-decoration: none; font-size: 14px; padding: 10px 2px; }
.nav-links a:hover { color: var(--color-accent); }
.nav .btn { min-height: 40px; padding-inline: 16px; }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* — layout — */
main { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: 48px 0 72px; scroll-margin-top: 72px; }
.grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.grid-420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.grid-220 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 72px; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero .stack { gap: 28px; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--color-accent); }
.hero .lead { font-size: 18px; line-height: 1.5; max-width: 52ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.facts > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--color-divider); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts .num-big { font-size: 28px; }
.facts small { font-size: 13px; color: var(--color-accent-700); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hero figure { aspect-ratio: 4 / 5; max-height: 640px; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-divider); } .facts > div:first-child { border-top: 0; } }

/* služby */
.service h2 { font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.service p { font-size: 15px; line-height: 1.5; }
.service .letter { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--color-accent-700); }

/* vozidla */
.vehicle figure { aspect-ratio: 3 / 2; }
.vehicle .title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vehicle h3 { font-size: 32px; line-height: 1; text-transform: uppercase; }

/* ceník + kalkulačka */
.h2-big { font-size: clamp(32px, 4vw, 44px); line-height: 1.05; text-transform: uppercase; }
.calc { padding: 28px; gap: 24px; }
.calc .field > label { display: flex; justify-content: space-between; }
.calc .field > label strong { color: var(--color-text); font-weight: 600; }
.calc input[type=range] { width: 100%; min-height: 44px; margin: 0; }
.calc .total { border-top: 1px solid var(--color-divider); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.calc .total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc .total-row .num-big { font-size: 48px; }
.calc .total-row .lbl { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* postup */
.steps { border-left: 1px solid var(--color-divider); }
.steps > div { padding: 8px 24px; border-right: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 12px; }
.steps .num-big { font-size: 44px; color: var(--color-accent); }
.steps h3 { font-size: 22px; text-transform: uppercase; }
.steps p { font-size: 15px; line-height: 1.5; }
@media (max-width: 520px) { .steps > div { padding-block: 20px; border-bottom: 1px solid var(--color-divider); } }

/* o nás */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.people figure { aspect-ratio: 1 / 1; }
.people .name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; text-transform: uppercase; display: block; margin-top: 12px; }
.about p { font-size: 16px; line-height: 1.6; max-width: 54ch; }

/* kontakt */
.contact-rows { display: flex; flex-direction: column; border-top: 1px solid var(--color-divider); }
.contact-rows > * { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); text-decoration: none; color: var(--color-text); }
.contact-rows .val { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; overflow-wrap: anywhere; text-align: right; }
.form-card { padding: 28px; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form-status { font-size: 14px; }
.form-status.err { color: var(--color-error); }
.success h3 { font-size: 28px; text-transform: uppercase; }
.success p { font-size: 16px; line-height: 1.5; }

footer { border-top: 1px solid var(--color-divider); }
footer .inner { max-width: 1200px; margin: 0 auto; padding: 28px var(--pad-x); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--color-neutral-700); }
footer .claim { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 18px; color: var(--color-text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
