/* =========================================================
   3D tisk Praha – styly webu (česká i anglická verze)
   Písmo: Archivo (SIL OFL 1.1), přibalené lokálně ve fonts/
   ========================================================= */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations");
  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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  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;
}

/* ---------- Paleta: ocel a kobalt ---------- */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #18233a;
  --muted: #55607a;
  --line: #d0d7e2;
  --accent: #2b57d6;
  --on-accent: #ffffff;
  --accent-on-dark: #9db6ff;
  --layer-a: #dde3ee;
  --layer-b: #eaeef5;
  --focus: #2b57d6;
}

/* ---------- Rozměry a typografie ---------- */
:root {
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* typová stupnice ~1,25 */
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-display: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 6px;

  /* formulář: chyby a rámečky polí (kontrast rámečku vůči ploše min. 3 : 1) */
  --danger: #b42318;
  --field-border: color-mix(in srgb, var(--ink) 55%, var(--surface));
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* Plynulé posouvání až po načtení stránky (třída smooth-scroll z js/web.js), aby skok na kotvu
   po přepnutí jazyka nebo z odkazu z jiné stránky proběhl hned a stránka se celá „neprojela“. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

[id] { scroll-margin-top: 5rem; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Expanded písmo je hlavní výrazový prvek */
.display,
.section-head h2,
.footer-title {
  font-stretch: 125%;
  letter-spacing: -0.025em;
}

.display {
  font-size: var(--fs-display);
  font-weight: 750;
  line-height: 1.02;
  max-width: 15ch;
}
.display > span { display: block; }
.display > span + span { margin-top: 0.12em; }
.nowrap { white-space: nowrap; }

h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
}

.muted { color: var(--muted); }

.note {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- Tlačítka ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }

.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.25rem; gap: 1.5rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem;
  text-decoration: none; font-weight: 750; font-stretch: 125%;
  letter-spacing: -0.02em; font-size: 1.0625rem;
}
/* značka: tři vrstvy, dočasně místo loga */
.brand-mark {
  width: 1.4rem; height: 1.4rem; border-radius: 3px;
  background:
    linear-gradient(var(--ink) 0 0) 0 0 / 100% 28% no-repeat,
    linear-gradient(var(--accent) 0 0) 0 50% / 100% 28% no-repeat,
    linear-gradient(var(--ink) 0 0) 0 100% / 100% 28% no-repeat;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav ul a {
  display: inline-flex; align-items: center; min-height: 2.75rem; /* dotyková plocha 44 px */
  text-decoration: none; font-weight: 500; font-size: 0.9375rem;
}
.main-nav ul a:hover {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }
/* Přepínač jazyka CZ / EN: aktivní jazyk tmavý s linkou, druhý odkaz tlumený. Dotyková plocha 44 px. */
.lang-switch { display: flex; align-items: center; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.35rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; color: var(--muted);
  transition: color 0.15s ease;
}
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; margin-inline: auto;
  background: currentColor; position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block; padding-block: 0.9rem; font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-actions { justify-content: space-between; padding-top: 1.25rem; }
  .nav-actions .btn-small { min-height: 2.75rem; }
}

/* ---------- Úvod ---------- */
.hero { padding-top: clamp(3rem, 2rem + 6vw, 7rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 12fr) minmax(0, 11fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: end;
}
.hero-copy .lead { margin-top: 1.75rem; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* placeholder vizuálu: vodorovné vrstvy jako u FDM tisku (zatím jen v ukázkových projektech) */
.visual-placeholder {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.layers {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--layer-a) 0 3px,
    var(--layer-b) 3px 6px
  );
  -webkit-mask-image: linear-gradient(to top, #000 0 55%, transparent 55%);
          mask-image: linear-gradient(to top, #000 0 55%, transparent 55%);
}

.hero-note {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.hero-visual { justify-self: end; width: 100%; max-width: 36.8rem; }

/* fotografie */
.photo {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  background: var(--layer-a);
}
.hero-visual .photo { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 52rem) {
  .hero-visual { justify-self: start; max-width: 30rem; margin-top: 0.5rem; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 2px solid var(--ink);
}
.facts li {
  padding: 1.25rem 1.5rem 0 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { font-size: 1.0625rem; font-weight: 700; font-stretch: 112%; }
.facts span { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }

@media (max-width: 64rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { padding-top: 1.5rem; }
}
@media (max-width: 32rem) {
  .facts { grid-template-columns: 1fr; }
  .facts li,
  .facts li + li { padding: 1rem 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}

/* ---------- Sekce ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .lead { margin-top: 1.25rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.split .section-head { margin-bottom: 0; }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Služby ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) clamp(2rem, 1rem + 4vw, 5rem);
}
.service-photo { aspect-ratio: 3 / 2; object-fit: cover; }
.service picture { margin-bottom: 1.75rem; } /* odstup je na <picture>, které ořízne přiblížení fotky */
.service h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-stretch: 112%;
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.service-problem {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 32em;
}
.service p:not(.service-problem) { margin-top: 0.5rem; color: var(--muted); max-width: 32em; }
@media (max-width: 40rem) {
  .services { grid-template-columns: 1fr; }
  .service picture { margin-bottom: 1.25rem; }
}

/* ---------- Materiály ---------- */
.section .table-status { margin-bottom: 1.25rem; }
.materials {
  width: 100%;
  border-collapse: collapse; font-size: 1rem;
}
.materials th,
.materials td {
  text-align: left; vertical-align: top;
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.materials td { color: var(--muted); }
.materials thead th {
  font-size: var(--fs-small); font-weight: 600; color: var(--muted);
  border-bottom: 2px solid var(--ink); padding-top: 0;
}
.materials thead th:first-child { width: 11rem; }
.materials tbody th { font-weight: 700; font-stretch: 112%; color: var(--ink); }
.mat-sub {
  display: block; margin-top: 0.15rem;
  font-size: var(--fs-small); font-weight: 400; font-stretch: 100%; color: var(--muted);
}
.mat-flag {
  display: block; margin-top: 0.4rem;
  font-size: var(--fs-small); color: var(--ink);
  padding-left: 0.7rem; border-left: 2px solid var(--accent);
}

.materials-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.materials-cta p { font-size: var(--fs-lead); line-height: 1.45; max-width: 34em; }
.materials-cta strong { font-weight: 700; }

/* Na užší obrazovce karty místo tabulky: každý materiál jeden blok s popisky */
@media (max-width: 52rem) {
  .materials,
  .materials tbody,
  .materials tr,
  .materials th,
  .materials td { display: block; width: auto; }
  .materials thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .materials tbody {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2rem;
  }
  .materials tr { border-top: 2px solid var(--ink); padding-top: 1rem; }
  .materials th,
  .materials td { padding: 0; border: 0; }
  .materials tbody th { font-size: 1.25rem; margin-bottom: 0.25rem; }
  .materials td { margin-top: 0.75rem; }
  .materials td::before {
    content: attr(data-label);
    display: block; margin-bottom: 0.1rem;
    font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  }
}
@media (max-width: 36rem) {
  .materials tbody { grid-template-columns: 1fr; }
  .materials-cta .btn { width: 100%; }
}

/* ---------- Postup ---------- */
/* Pořadí ukazují přibývající vrstvy nad podložkou: krok 1 = jedna vrstva, krok 4 = čtyři.
   Nejvyšší vrstva má akcent, podložka (linka) běží přes celou řadu. */
.steps {
  --layer: 0.5rem;        /* rozteč vrstev */
  --layer-h: 0.3125rem;   /* tloušťka vrstvy */
  --step-gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 3rem;
}
.steps li { --n: 1; padding-right: var(--step-gap); }
.steps li:nth-child(2) { --n: 2; }
.steps li:nth-child(3) { --n: 3; }
.steps li:nth-child(4) { --n: 4; }
.steps li::before {
  content: "";
  display: block;
  height: calc(4 * var(--layer) + 0.25rem + 2px);
  margin: 0 calc(-1 * var(--step-gap)) 1.5rem 0;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(var(--accent) 0 0)
      0 calc(100% - (var(--n) - 1) * var(--layer) - 0.25rem) /
      calc(100% - var(--step-gap)) var(--layer-h) no-repeat,
    repeating-linear-gradient(to top,
      color-mix(in srgb, var(--ink) 28%, transparent) 0 var(--layer-h),
      transparent var(--layer-h) var(--layer))
      0 calc(100% - 0.25rem) /
      calc(100% - var(--step-gap)) calc(var(--n) * var(--layer)) no-repeat;
}
.steps li:last-child { padding-right: 0; }
.steps li:last-child::before { margin-right: 0; background-size: 100% var(--layer-h), 100% calc(var(--n) * var(--layer)); }
.steps p { margin-top: 0.5rem; color: var(--muted); max-width: 22em; }
@media (max-width: 52rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { padding-right: 0; }
  .steps li:nth-child(2)::before { margin-right: 0; background-size: 100% var(--layer-h), 100% calc(var(--n) * var(--layer)); }
}
@media (max-width: 32rem) {
  .steps { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .steps li { padding-right: 0; }
  .steps li::before {
    margin-right: 0;
    background-size: 6rem var(--layer-h), 6rem calc(var(--n) * var(--layer));
  }
}

/* ---------- Cena ---------- */
.price-parts > div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.price-parts > div:first-child { border-top: 2px solid var(--ink); }
.price-parts dt { font-weight: 700; }
.price-parts dd { color: var(--muted); }
@media (max-width: 32rem) {
  .price-parts > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

.block-title { font-size: 1.125rem; font-stretch: 112%; margin-bottom: 1rem; }

/* Co potřebujeme k nacenění: pruh jako v úvodu, na užší obrazovce řádky */
.quote-needs { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.needs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.needs li { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 0 0; }
.needs li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.needs strong { font-weight: 700; }
.needs span { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 64rem) {
  .needs { grid-template-columns: 1fr; }
  .needs li,
  .needs li + li {
    display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
    padding: 1.1rem 0; border-left: 0; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 32rem) {
  .needs li,
  .needs li + li { grid-template-columns: 1fr; gap: 0.25rem; }
}
.price-cta { border-top: 0; padding-top: 0; }

/* ---------- Reference ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 1.5rem + 2vw, 3rem);
}
/* řádky karet (foto, štítek, nadpis, údaje) zarovnané napříč kartami, i když se nadpis zalomí */
.project { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.project .tag { justify-self: start; align-self: start; }
.project h3 { align-self: start; }
.project-photo { aspect-ratio: 4 / 3; object-fit: cover; }
.project picture { margin-bottom: 1.25rem; }
.project-visual { aspect-ratio: 4 / 3; margin-bottom: 1.25rem; } /* záloha: placeholder s vrstvami */
/* štítek „Ilustrační projekt“ a „Tabulka v přípravě“ u materiálů */
.project .tag,
.table-status {
  display: inline-block; margin-bottom: 0.75rem;
  font-size: 0.8125rem; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 3px;
  border: 1px solid var(--line); color: var(--muted);
}
.project h3 { font-stretch: 112%; }
.project-facts { margin-top: 1rem; border-top: 2px solid var(--ink); }
.project-facts > div { padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.project-facts dt { font-size: var(--fs-small); font-weight: 600; }
.project-facts dd { margin-top: 0.15rem; color: var(--muted); }
@media (max-width: 52rem) {
  .projects { grid-template-columns: 1fr; max-width: 34rem; }
  .project { display: block; }
}

/* ---------- Poptávka (tmavá sekce) ---------- */
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .lead { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.section-dark :focus-visible { outline-color: var(--accent-on-dark); }

/* Úvod sekce s volbou „čím začínáte“: na širší obrazovce zůstává při posouvání formuláře na místě */
.inquiry-intro { position: sticky; top: 6.5rem; }
@media (max-width: 52rem) {
  .inquiry-intro { position: static; }
}

/* Dvě cesty do poptávky */
.path-choice { margin: 2.5rem 0 0; padding: 0; border: 0; min-width: 0; }
.path-choice legend { padding: 0; font-weight: 700; font-size: 1.0625rem; }
.path-hint {
  margin-top: 0.35rem; font-size: var(--fs-small);
  color: color-mix(in srgb, var(--bg) 72%, var(--ink));
}
.path-options { display: grid; gap: 0.75rem; margin-top: 1rem; }
.path-option { position: relative; display: block; }

/* skryté přepínače leží přes celou kartu: klik i zaměření fungují, vzhled řeší sousední span */
.path-option input,
.chip input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.path-card {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.9rem; row-gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--bg) 45%, var(--ink));
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.path-card::before {
  content: ""; grid-row: 1 / span 2;
  width: 1.25rem; height: 1.25rem; margin-top: 0.1rem;
  border: 2px solid color-mix(in srgb, var(--bg) 72%, var(--ink));
  border-radius: 50%;
}
.path-card strong { font-weight: 650; line-height: 1.35; }
.path-desc {
  grid-column: 2;
  font-size: var(--fs-small); line-height: 1.45;
  color: color-mix(in srgb, var(--bg) 72%, var(--ink));
}
.path-option:hover .path-card { border-color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.path-option input:checked + .path-card {
  border-color: var(--accent-on-dark);
  background: color-mix(in srgb, var(--accent-on-dark) 10%, var(--ink));
}
.path-option input:checked + .path-card::before {
  border-color: var(--accent-on-dark);
  background: radial-gradient(circle, var(--accent-on-dark) 0 38%, transparent 42%);
}
.path-option input:focus-visible + .path-card { outline: 3px solid var(--accent-on-dark); outline-offset: 3px; }

/* Formulář na světlém panelu uvnitř tmavé sekce (kontrast polí) */
.quote-form {
  min-width: 0;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.75rem);
}
.quote-form :focus-visible { outline-color: var(--focus); }
.quote-form input,
.quote-form textarea { scroll-margin-top: 7rem; }
.form-note { font-size: var(--fs-small); color: var(--muted); }

.form-group { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.form-note + .form-group { margin-top: 1.25rem; }
.form-group > h3 { font-size: 1.125rem; font-stretch: 112%; }

.field { margin: 1.25rem 0 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
@media (max-width: 36rem) {
  .field-row { grid-template-columns: 1fr; }
}
/* dvojice polí s nápovědou: popisek, nápověda, pole a chyba v jedné řadě i při zalomení popisku */
.field-row-aligned > .field {
  display: grid; grid-row: span 4;
  grid-template-rows: subgrid; row-gap: 0; align-content: start;
}

.field > label,
.field > legend,
.field-label {
  display: block; padding: 0;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.4;
}
.optional { font-weight: 400; color: var(--muted); }
.hint { margin-top: 0.2rem; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.hint a { color: var(--ink); }

.input {
  display: block; width: 100%; min-width: 0; min-height: 3rem;
  margin-top: 0.5rem; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.input:hover { border-color: var(--ink); }
.input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
textarea.input { min-height: 8.5rem; resize: vertical; }
/* iOS: datum jinak nedrží šířku pole */
@supports (-webkit-touch-callout: none) {
  input[type="date"].input { -webkit-appearance: none; appearance: none; }
}

/* Volby jako dlaždice (dotyková plocha min. 44 px) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chip { position: relative; display: block; max-width: 100%; }
.chip span {
  display: flex; align-items: center; min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--field-border); border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.25;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Chyby u polí */
.field-error {
  margin-top: 0.45rem; padding-left: 0.6rem;
  border-left: 3px solid var(--danger);
  font-size: var(--fs-small); font-weight: 600; line-height: 1.4;
  color: var(--danger);
}
.field-error:empty { display: none; }
.is-invalid .input { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.is-invalid .chip span { border-color: var(--danger); }
.is-invalid .dropzone { border-color: var(--danger); }
.is-invalid .check input { outline: 2px solid var(--danger); outline-offset: 1px; }

/* Přílohy */
.dropzone {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  margin-top: 0.5rem; padding: 1.25rem;
  border: 2px dashed var(--field-border); border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone.is-over {
  border-style: solid; border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.dropzone-text { color: var(--muted); }
.dropzone input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }

.file-list { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.file-list:empty { display: none; }
.file-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.25rem 0.25rem 0.25rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.9375rem; font-weight: 500; }
.file-size { flex: none; font-size: var(--fs-small); color: var(--muted); }
.file-remove {
  flex: none; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.75rem;
  border: 0; border-radius: var(--radius); background: transparent;
  font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.file-remove:hover { background: var(--bg); }

/* Souhlas */
.field > .check {
  display: flex; align-items: flex-start; gap: 0.75rem;
  min-height: 2.75rem; cursor: pointer;
  font-size: 0.9375rem; line-height: 1.45;
}
.check input {
  flex: none; width: 1.5rem; height: 1.5rem; margin: 0;
  accent-color: var(--accent); cursor: pointer;
}
.check a { color: var(--ink); }

/* Odeslání */
.form-submit { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 36rem) {
  .form-submit .btn { width: 100%; }
}
.form-status {
  margin-top: 1rem; padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  font-size: 0.9375rem; font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-error {
  border-left-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}

/* ---------- Patička / kontakt ---------- */
.site-footer { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
}
.footer-title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 0.75rem; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.contact > div { border-top: 2px solid var(--ink); padding-top: 0.75rem; }
.contact dt { font-size: var(--fs-small); color: var(--muted); }
.contact dd { font-weight: 600; margin-top: 0.25rem; }
.placeholder-text { color: var(--muted); font-style: italic; font-weight: 400 !important; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--fs-small); }
@media (max-width: 52rem) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Animace ----------
   Jen při „bez omezení pohybu“. Třídu .js-reveal přidá skript, bez JavaScriptu je vše vidět hned. */
.service picture,
.project picture { display: block; overflow: hidden; border-radius: var(--radius); }

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal .reveal.is-visible { opacity: 1; transform: none; }

  /* tlačítka: lehké nadzvednutí */
  .btn { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary:hover { box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
  .btn:active { transform: none; box-shadow: none; }

  /* karty služeb a projektů: fotka se nepatrně přiblíží, horní linka (vrstva) dostane akcent */
  .service-photo,
  .project-photo { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .service h3,
  .project-facts { transition: border-color 0.2s ease; }
  @media (hover: hover) {
    .service:hover .service-photo,
    .project:hover .project-photo { transform: scale(1.03); }
    .service:hover h3,
    .project:hover .project-facts { border-top-color: var(--accent); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
