/* FVSOL – společný vzhled webu, formuláře zakázky a administrace.
   Identita: černá, bílý „papír“ výkresů, červená tečka loga. Motiv: rohové razítko výkresu. */

@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Condensed"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Condensed"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Condensed"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Condensed"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #000000;
  --paper: #ffffff;
  --text: #1d2125;
  --muted: #5d6670;
  --line: #d7dbdf;
  --rule: #1d2125;
  --wash: #f4f5f6;
  --red: #d63447;
  --red-dark: #b42a3b;
  --ok: #1f7a4d;
  --warn: #8a5a00;
  --on-ink: #ffffff;
  --on-ink-muted: #a9b0b7;
  --on-ink-line: #3a3f44;
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Plex Condensed", "Plex", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 2px;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@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(--text); font: 400 17px/1.6 var(--font); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px;
  border: 1px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: rgba(127,127,127,.12); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2e33; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- hlavička */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--on-ink-line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font-weight: 600; font-size: 22px; letter-spacing: .02em; text-decoration: none; color: var(--on-ink); }
.logo span { color: var(--red); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--on-ink); font-size: 15px; }
.nav a:not(.btn):hover { color: var(--on-ink-muted); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--on-ink-line); color: var(--on-ink); min-height: 40px; padding: 0 14px; font: 500 15px var(--font); border-radius: var(--radius); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--on-ink-line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--on-ink-line); font-size: 17px; }
  .nav a.btn { margin-top: 14px; border-bottom: 0; }
}

/* ---------------------------------------------------------------- razítko (motiv) */
.stamp { display: grid; border: 1px solid currentColor; }
.stamp > div { padding: 10px 14px 12px; border-right: 1px solid currentColor; min-width: 0; }
.stamp > div:last-child { border-right: 0; }
.stamp dt, .stamp .k { font: 500 13px/1.3 var(--font-cond); color: var(--muted); margin: 0 0 4px; }
.stamp dd, .stamp .v { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.on-ink .stamp { border-color: var(--on-ink-line); }
.on-ink .stamp > div { border-color: var(--on-ink-line); }
.on-ink .stamp dt, .on-ink .stamp .k { color: var(--on-ink-muted); }

/* ---------------------------------------------------------------- sekce */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 36px); }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .muted { color: var(--on-ink-muted); }
.muted { color: var(--muted); }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* ---------------------------------------------------------------- formulářové prvky */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 500; font-size: 16px; }
.field .help { font-size: 14px; color: var(--muted); margin-top: -2px; }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c0c6; border-radius: var(--radius);
  background: var(--paper); color: var(--text); font: 400 16px/1.4 var(--font);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }
.error { color: var(--red-dark); font-size: 14px; }
.unit-row { display: flex; align-items: center; gap: 10px; }
.unit-row .input { max-width: 200px; }

/* volby jako dlaždice – skutečné radio/checkbox, jen jinak vykreslené */
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; min-height: 52px; padding: 12px 14px 12px 42px; border: 1px solid #b9c0c6; border-radius: var(--radius); background: var(--paper); line-height: 1.35; }
.choice span small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.choice span::before { content: ""; position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; border: 1.5px solid #7d868f; border-radius: 50%; background: var(--paper); }
.choice input[type="checkbox"] + span::before { border-radius: 2px; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span::before { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 45%, var(--paper) 50%); }
.choice input[type="checkbox"]:checked + span::before { background: var(--red); box-shadow: inset 0 0 0 3px var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.choice.unknown span { border-style: dashed; color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }

/* stavové štítky */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--radius); font: 500 13px/1.6 var(--font-cond); white-space: nowrap; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.red { color: var(--red-dark); } .badge.muted { color: var(--muted); }

.notice { border-left: 3px solid var(--red); background: var(--wash); padding: 12px 16px; margin: 0 0 18px; }
.notice.ok { border-color: var(--ok); }
.notice p:last-child { margin: 0; }

/* ---------------------------------------------------------------- patička */
.site-foot { background: var(--ink); color: var(--on-ink-muted); padding: 32px 0 40px; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-foot a { color: var(--on-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .copy { margin-left: auto; }
@media (max-width: 640px) { .site-foot .copy { margin-left: 0; width: 100%; } }
