/* Albicom – varianta C „Stavba“: technický výkres, beton, grafit a signální oranžová */
:root {
  --paper: #f2f1ec;
  --concrete: #e4e2db;
  --ink: #141414;
  --ink-2: #3d3d3a;
  --muted: #5c5b56;
  --line: rgba(20, 20, 20, 0.18);
  --line-strong: #141414;
  --graphite: #1c1e21;
  --graphite-2: #26292d;
  --on-dark: #efeee9;
  --on-dark-muted: #b4b3ad;
  --orange: #ff6a00;
  --orange-ink: #a84300; /* oranžový text na papíru, AA */
  --focus: #ff6a00;
  --display: 'Roboto Flex', 'Arial Narrow', system-ui, sans-serif; /* šířková osa wdth + čeština i azbuka */
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  font-variation-settings: 'wdth' 100;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font: 600 14px var(--mono);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* technická mřížka na pozadí */
.grid-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

.label, .meta, .sec-head__note {
  font: 600 12px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { color: var(--orange-ink); margin-bottom: 18px; }
.label::before { content: ''; display: inline-block; width: 22px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; }

.h2 {
  font-weight: 850;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--orange); color: var(--ink);
  border: 2px solid var(--ink);
  font: 700 14px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: var(--paper); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }

/* hlavička */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.top__in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
@media (min-width: 760px) { .top__in { gap: 24px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-variation-settings: 'wdth' 80; font-size: 24px; letter-spacing: -0.01em; text-transform: uppercase; }
.logo__mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav { display: none; gap: 28px; margin-left: auto; font: 600 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--orange); }
.top .btn--small { margin-left: auto; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .top .btn--small { margin-left: 0; }
}

/* hero */
.hero { border-bottom: 2px solid var(--ink); }
.hero__in { display: grid; gap: 40px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: 40px; align-items: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); margin-bottom: 22px; }
.meta span:first-child { color: var(--orange-ink); }
.hero__title {
  font-weight: 800;
  font-variation-settings: 'wdth' 40, 'opsz' 72;
  font-size: clamp(3rem, 10.5vw, 7.8rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hl { background: var(--orange); padding: 0.04em 0.08em 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { max-width: 54ch; margin-top: 26px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.drawing { margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: 18px 18px 0; position: relative; }
.drawing::before, .drawing::after {
  content: '+'; position: absolute; font: 400 20px/1 var(--mono); color: var(--ink);
}
.drawing::before { top: -12px; left: -8px; }
.drawing::after { bottom: -12px; right: -8px; }
.drawing__svg { width: 100%; height: auto; }
.d-line path, .d-line rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.d-layers path { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; }
.d-orange { fill: none; stroke: var(--orange); stroke-width: 6; }
.d-dim path { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.d-scaf path { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.d-txt { font: 600 11px var(--mono); fill: var(--ink-2); letter-spacing: 0.05em; }
.d-tag circle { fill: var(--orange); stroke: var(--ink); stroke-width: 1.5; }
.d-tag text { font: 700 12px var(--mono); fill: var(--ink); }
.d-tag path { stroke: var(--ink); stroke-width: 1; }
.d-cross { stroke: var(--ink); stroke-width: 1.5; }
.drawing__cap {
  display: flex; justify-content: space-between;
  margin: 14px -18px 0; padding: 10px 18px; border-top: 2px solid var(--ink);
  font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}

.facts {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: 8px; margin-bottom: 48px; padding: 0;
  border: 2px solid var(--ink); background: var(--paper);
}
.facts > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); }
.facts dd { margin: 6px 0 0; font-weight: 650; font-size: 16px; line-height: 1.35; }
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div { border-right: 1px solid var(--line); }
  .facts > div:nth-child(2n) { border-right: 0; }
  .facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(n + 3) { border-bottom: 0; }
}
@media (min-width: 1000px) {
  .hero__in { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .facts > div:last-child { border-right: 0 !important; }
}

/* o nás */
.about { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 2px solid var(--ink); }
.about__in { display: grid; gap: 28px; }
.about__text { display: grid; gap: 16px; max-width: 62ch; color: var(--ink-2); font-size: 18px; }
@media (min-width: 900px) {
  .about__in { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .about__in .label { grid-column: 1 / -1; }
  .about__text { align-self: end; }
}

/* sekce – hlavičky */
.sec-head { display: grid; gap: 0; margin-bottom: 44px; }
.sec-head__note { color: var(--muted); margin-top: 18px; }

/* služby */
.services { padding: clamp(64px, 9vw, 120px) 0; background: var(--concrete); border-bottom: 2px solid var(--ink); }
.svc {
  list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 2px;
  background: var(--ink); border: 2px solid var(--ink);
}
.svc__item {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); padding: 26px 22px 22px;
  transition: background 0.15s ease;
}
.svc__item:hover { background: #fffdf7; }
.svc__no { font: 700 13px var(--mono); color: var(--orange-ink); letter-spacing: 0.06em; }
.svc__title {
  font-weight: 850; font-variation-settings: 'wdth' 78;
  font-size: 23px; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.005em;
}
.svc__item > p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ticks { list-style: none; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; background: var(--orange); border: 1.5px solid var(--ink); }
.svc__link {
  margin-top: auto; padding-top: 14px; align-self: flex-start;
  font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--orange);
}
.svc__link:hover { background: var(--orange); }
@media (min-width: 640px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .svc { grid-template-columns: repeat(3, 1fr); }
  .svc__item:last-child { grid-column: span 3; display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: start; column-gap: 32px; }
  .svc__item:last-child .svc__link { margin-top: 0; padding-top: 0; align-self: center; }
}

/* postup – grafitový pás */
.process { background: var(--graphite); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0; border-bottom: 2px solid var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.sec-head--dark .label { color: var(--orange); }
.process__intro { margin-top: 24px; max-width: 70ch; color: var(--on-dark-muted); font-size: 18px; }
.pipe { list-style: none; display: grid; gap: 0; counter-reset: s; }
.pipe__step {
  position: relative; padding: 22px 20px 22px 76px;
  border: 1.5px solid rgba(255, 255, 255, 0.22); margin-top: -1.5px;
  background: var(--graphite-2);
}
.pipe__no {
  position: absolute; left: 18px; top: 20px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 2px solid var(--orange); color: var(--orange);
  font: 700 14px var(--mono);
}
.pipe__step h3 { font-weight: 800; font-variation-settings: 'wdth' 80; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.pipe__step p { margin-top: 8px; color: var(--on-dark-muted); font-size: 15px; line-height: 1.5; }
.pipe__step--key { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.pipe__step--key .pipe__no { border-color: var(--ink); color: var(--ink); }
.pipe__step--key p { color: var(--ink); }
/* šipka předání mezi kroky */
.pipe__step:not(:last-child)::after {
  content: '↓'; position: absolute; left: 31px; bottom: -14px; z-index: 2;
  width: 16px; text-align: center; font: 700 14px/1 var(--mono); color: var(--orange);
  background: var(--graphite); padding: 3px 0;
}
.pipe__step--key::after { color: var(--orange) !important; }
@media (min-width: 900px) {
  .pipe { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pipe__step h3 { overflow-wrap: anywhere; hyphens: auto; }
  .pipe__step { padding: 78px 16px 22px; margin-top: 0; margin-left: -1.5px; }
  .pipe__no { left: 16px; top: 18px; }
  .pipe__step h3 { font-size: 17px; }
  .pipe__step p { font-size: 14px; }
  .pipe__step:not(:last-child)::after { content: '→'; left: auto; right: -11px; bottom: auto; top: 30px; width: 20px; padding: 2px 0; }
}

/* příklady návaznosti */
.flows { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 2px solid var(--ink); }
.flow { border-top: 2px solid var(--ink); padding: 22px 0 26px; }
.flow:last-of-type { border-bottom: 2px solid var(--ink); }
.flow__title { display: flex; align-items: center; gap: 12px; font-weight: 850; font-variation-settings: 'wdth' 80; font-size: 21px; text-transform: uppercase; margin-bottom: 16px; }
.flow__id { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 14px var(--mono); }
.flow__chain { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.flow__chain li {
  display: inline-flex; align-items: center;
  font: 600 13px/1.2 var(--mono); letter-spacing: 0.03em; text-transform: uppercase;
}
.flow__chain li { padding: 9px 12px; border: 1.5px solid var(--ink); background: var(--paper); }
.flow__chain li { position: relative; }
/* šipka k další etapě: na mobilu dolů, na širší obrazovce doprava */
.flow__chain li:not(:last-child)::after {
  content: ''; position: absolute; left: 18px; bottom: -20px; width: 2px; height: 14px; background: var(--orange);
}
.flow__chain li:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; bottom: -22px;
  border-top: 7px solid var(--orange); border-left: 6px solid transparent; border-right: 6px solid transparent;
}
@media (min-width: 760px) {
  .flow__chain { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 0; }
  .flow__chain li:not(:last-child) { margin-right: 30px; }
  .flow__chain li:not(:last-child)::after { left: auto; bottom: auto; right: -27px; top: 50%; width: 22px; height: 2px; }
  .flow__chain li:not(:last-child)::before {
    left: auto; bottom: auto; right: -28px; top: calc(50% - 5px);
    border-left: 7px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 0;
  }
}
.flow__chain .is-end { background: var(--orange); }
.flows__note { margin-top: 26px; max-width: 70ch; color: var(--ink-2); }

/* poptávka */
.request { padding: clamp(64px, 9vw, 120px) 0; background: var(--concrete); }
.request__in { display: grid; gap: 40px; align-items: start; }
.request__head > p { margin-top: 22px; color: var(--ink-2); font-size: 18px; max-width: 54ch; }
.request__head .h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.request__points { list-style: none; margin-top: 24px; display: grid; gap: 8px; font: 600 13px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.request__points li::before { content: '[✓] '; color: var(--orange-ink); }
@media (min-width: 1040px) {
  .request__in { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .request__head { position: sticky; top: 100px; }
}

/* ====== DOTAZNÍK (sdílený poptavka.js) ====== */
.request__form { scroll-margin-top: 90px; }
.q {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(18px, 3vw, 34px);
  scroll-margin-top: 90px;
}
.q-progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 26px; counter-reset: none; }
.q-progress__item { display: grid; gap: 8px; font: 600 10px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.q-progress__item::before { content: ''; height: 6px; background: var(--concrete); border: 1px solid var(--line); }
.q-progress__item.is-done::before { background: var(--ink); border-color: var(--ink); }
.q-progress__item.is-current::before { background: var(--orange); border-color: var(--ink); }
.q-progress__item.is-current { color: var(--ink); }
.q-progress__num { display: none; }
.q-progress__text { display: none; }
.q-progress__item.is-current .q-progress__text { display: block; }
@media (min-width: 560px) { .q-progress__text { display: block; } }

.q-status { font: 600 13px/1.4 var(--mono); color: #b3261e; min-height: 0; margin: 0; }
.q-status:not(:empty) { padding: 10px 12px; margin-bottom: 18px; border: 2px solid #b3261e; background: #fdecea; }

.q-title {
  font-weight: 850; font-variation-settings: 'wdth' 78;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em;
}
.q-title:focus { outline: none; }
.q-sub { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.q .q-step > * + * { margin-top: 24px; }
.q .q-step > .q-sub { margin-top: 8px; }

/* karty služeb */
.q-cards { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .q-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .q-cards { grid-template-columns: repeat(3, 1fr); } }
.q-card {
  position: relative; display: grid; gap: 4px; align-content: start;
  padding: 14px 44px 14px 14px; min-height: 78px;
  border: 2px solid var(--ink); background: var(--paper); cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.q-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-card::after {
  content: ''; position: absolute; right: 12px; top: 13px; width: 20px; height: 20px;
  border: 2px solid var(--ink); background: var(--paper);
}
.q-card:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.q-card__title { font-weight: 800; font-variation-settings: 'wdth' 85; font-size: 16px; line-height: 1.15; text-transform: uppercase; }
.q-card__hint { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.q-card:has(input:checked) { background: var(--orange); }
.q-card:has(input:checked) .q-card__hint { color: var(--ink); }
.q-card:has(input:checked)::after { background: var(--ink); content: '✓'; color: var(--orange); font: 700 14px/16px var(--mono); text-align: center; }
.q-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

/* pole */
.q-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-label { display: block; margin-bottom: 8px; padding: 0; font: 600 12px/1.35 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.q-label small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.q-input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 17px/1.4 var(--display); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 0;
  appearance: none;
}
.q-input::placeholder { color: #85847e; }
.q-input:focus { outline: none; box-shadow: 0 0 0 3px var(--orange); }
.q-textarea { min-height: 120px; resize: vertical; }
.q-unit { display: flex; max-width: 260px; }
.q-unit .q-input { border-right: 0; -moz-appearance: textfield; }
.q-unit span { display: grid; place-items: center; padding: 0 14px; background: var(--ink); color: var(--paper); font: 600 14px var(--mono); }
.q-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .q-grid { grid-template-columns: 1fr 1fr; } .q-grid > :first-child { grid-column: 1 / -1; } }

/* volby (pilulky) */
.q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.q-option { position: relative; display: inline-flex; cursor: pointer; }
.q-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-option span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--ink); background: #fff; font-size: 15px; line-height: 1.25;
  transition: background 0.12s ease;
}
.q-options--check .q-option span::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--ink); flex: none; }
.q-options--radio .q-option span::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; flex: none; }
.q-option:hover input:not(:checked) + span { background: var(--concrete); }
.q-option input:checked + span { background: var(--ink); color: var(--paper); }
.q-option input:checked + span::before { background: var(--orange); border-color: var(--orange); }
.q-option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

/* podrobnosti ke službám */
.q-detail { border: 2px solid var(--ink); padding: 18px; display: grid; gap: 18px; background: #fff; }
.q-detail__title { font: 700 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--paper); margin: -18px -18px 0; padding: 10px 18px; }
.q-detail__title::before { content: '// '; color: var(--orange); }

/* fotky */
.q-drop {
  position: relative; display: grid; place-items: center; min-height: 120px; padding: 20px;
  border: 2px dashed var(--ink); background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 106, 0, 0.08) 12px 24px), #fff;
  text-align: center; font-size: 15px; cursor: pointer;
}
.q-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.q-drop u { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.q-drop.is-over, .q-drop:hover { background-color: #fff4ea; border-style: solid; }
.q-drop:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.q-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.q-thumbs:empty { display: none; }
.q-thumbs li { position: relative; width: 76px; height: 76px; border: 2px solid var(--ink); }
.q-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.q-thumbs button {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px;
  border: 2px solid var(--ink); background: var(--orange); color: var(--ink);
  font: 700 15px/1 var(--mono); cursor: pointer; padding: 0;
}

/* souhlas */
.q-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.q-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.q-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* chyby */
.is-invalid .q-input, .is-invalid .q-option span { border-color: #b3261e; }
.is-invalid > .q-label, .is-invalid > legend { color: #b3261e; }
.q-consent.is-invalid { color: #b3261e; }
.q-consent.is-invalid input { outline: 2px solid #b3261e; outline-offset: 2px; }

/* navigace */
.q-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--ink); }
.q-btn {
  min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
  font: 700 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.q-btn--back { background: var(--paper); color: var(--ink); }
.q-btn--back::before { content: '← '; }
.q-btn--next, .q-btn--submit { background: var(--orange); color: var(--ink); margin-left: auto; box-shadow: 4px 4px 0 var(--ink); }
.q-btn--next::after { content: ' →'; }
.q-btn--next:hover, .q-btn--submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.q-btn--back:hover { background: var(--concrete); }
.q-btn:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 420px) { .q-btn--submit { width: 100%; } }

/* hotovo */
.q-done { display: grid; gap: 14px; }
.q-done .q-title::before { content: '✓'; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; background: var(--orange); border: 2px solid var(--ink); font: 700 20px var(--mono); vertical-align: middle; }
.q-summary {
  margin: 6px 0 0; padding: 16px; background: var(--graphite); color: var(--on-dark);
  font: 400 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
  border-left: 6px solid var(--orange);
}

/* patička */
.foot { background: var(--ink); color: var(--on-dark); padding: 48px 0 32px; border-top: 6px solid var(--orange); }
.foot__in { display: grid; gap: 28px; }
.foot__logo { font-weight: 900; font-variation-settings: 'wdth' 75; font-size: 34px; text-transform: uppercase; line-height: 1; }
.foot__muted { margin-top: 10px; color: var(--on-dark-muted); font-size: 15px; }
.foot__contacts { display: grid; gap: 14px; margin: 0; }
.foot__contacts dt { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.foot__contacts dd { margin: 2px 0 0; font-size: 17px; }
.foot__contacts a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.foot__contacts a:hover { border-color: var(--orange); }
.foot__meta { font: 600 11px var(--mono); letter-spacing: 0.08em; color: var(--on-dark-muted); }
@media (min-width: 760px) {
  .foot__in { grid-template-columns: 1fr 2fr; align-items: start; }
  .foot__contacts { grid-template-columns: repeat(3, 1fr); }
  .foot__meta { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; }
}

/* přepínač jazyka */
.lang { display: flex; border: 2px solid var(--ink); font: 600 12px/1 var(--mono); letter-spacing: 0.06em; }
.lang a { display: grid; place-items: center; min-width: 38px; min-height: 38px; text-decoration: none; }
.lang a + a { border-left: 2px solid var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current]):hover { background: var(--orange); }
.top .lang { margin-left: auto; }
.top .lang + .btn--small { margin-left: 0; }
@media (min-width: 760px) { .top .lang { margin-left: 0; } }

/* realizace */
.works { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 2px solid var(--ink); background: var(--concrete); }
.works__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.works__filter button {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
  font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.works__filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.works__filter button[aria-pressed="false"]:hover { background: var(--orange); }
.works__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .works__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.work { display: grid; gap: 8px; align-content: start; }
.work__btn {
  display: block; width: 100%; padding: 0; border: 2px solid var(--ink); background: var(--ink); cursor: zoom-in;
  aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.work__btn img { width: 100%; height: 100%; object-fit: cover; }
.work__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.work__cap { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.work__ref { font: 600 11px/1.3 var(--mono); letter-spacing: 0.08em; color: var(--orange-ink); }

/* prohlížeč fotek */
.lb { width: min(100vw - 32px, 1200px); max-height: calc(100vh - 32px); padding: 0; border: 2px solid var(--orange); background: var(--graphite); color: var(--on-dark); overflow: hidden; }
.lb::backdrop { background: rgba(10, 10, 10, 0.86); }
.lb__fig { margin: 0; display: grid; }
.lb__img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #0d0e10; }
.lb__cap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 14px 16px; border-top: 2px solid var(--orange); font-size: 15px; }
.lb__ref, .lb__count { font: 600 12px/1.3 var(--mono); letter-spacing: 0.08em; color: var(--orange); }
.lb__count { margin-left: auto; color: var(--on-dark-muted); }
.lb__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 2px solid var(--ink); background: var(--orange); color: var(--ink); cursor: pointer;
  font: 700 22px/1 var(--mono); box-shadow: 3px 3px 0 var(--ink);
}
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 40%; }
.lb__next { right: 12px; top: 40%; }
.lb__btn:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 2px; }

/* nejužší telefony: logo, jazyk a poptávka se musí vejít do jednoho řádku */
@media (max-width: 399px) {
  .top .btn--small { padding: 0 12px; }
  .logo { font-size: 21px; gap: 8px; }
  .lang a { min-width: 34px; }
}

/* Nižší obrazovky (notebooky, okno s lištami): první obrazovka musí ukázat nadpis i tlačítko poptávky */
@media (min-width: 960px) {
  .hero__in { padding-top: clamp(28px, 6vh, 88px); }
  .hero__title { font-size: min(clamp(3rem, 10.5vw, 7.8rem), 11vh); }
}
@media (min-width: 960px) and (max-height: 820px) {
  .meta { margin-bottom: 14px; }
  .hero__title { font-size: min(clamp(3rem, 10.5vw, 7.8rem), 9.6vh); }
  .hero__lead { margin-top: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__cta { margin-top: 22px; }
  .drawing { max-height: calc(100vh - 150px); overflow: hidden; }
  .drawing svg { max-height: calc(100vh - 210px); width: auto; margin: 0 auto; display: block; }
}
