/* ============================================================
   AVISCOMT — Branislav Masár, projekčná a inžinierska činnosť
   Design systém „výkres": popisové pole, kóty, rastrová mriežka,
   štítky profesií. Jeden font (Archivo, variabilná šírka).
   ============================================================ */

:root {
  --ink: #1C2456;
  --ink-2: #2F3B8F;
  --ink-3: #4A56B5;
  --blush: #EBD9D3;
  --blush-2: #C99E92;
  --blush-3: #F6EEEB;
  --paper: #FFFFFF;
  --paper-2: #F5F5F9;
  --line: #D6D9E6;
  --line-2: #B9BED3;
  --text: #23262F;
  --muted: #5B6072;
  --ok: #2E6B4A;
  --err: #A33A2E;

  /* štítky profesií (pozadie / text) */
  --eli-bg: #F3E3B6; --eli-fg: #5C4300;
  --zti-bg: #C9E6E8; --zti-fg: #0E4D55;
  --uk-bg:  #F0CFC2; --uk-fg:  #6B2A16;
  --vzt-bg: #D6E0F0; --vzt-fg: #243E6B;
  --ehb-bg: #D4E8D0; --ehb-fg: #22502A;
  --dop-bg: #D9DCF2; --dop-fg: #1C2456;
  --is-bg:  #E3D6EC; --is-fg:  #4A2A62;

  --font: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --radius: 3px;
  --grid: linear-gradient(to right, rgba(28, 36, 86, 0.07) 1px, transparent 1px),
          linear-gradient(to bottom, rgba(28, 36, 86, 0.07) 1px, transparent 1px);
  --grid-dark: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
               linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink-3); outline-offset: 2px; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.1rem; font-stretch: 100%; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
small { font-size: 0.875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.15em; cursor: help; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: #fff; background: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand-mark {
  font-weight: 800; font-stretch: 80%; font-size: 1.55rem; letter-spacing: 0.06em;
}
.brand-sub { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.01em; margin-top: 2px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1rem;
}
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.main-nav a {
  display: block; padding: 0.7rem 0.25rem; text-decoration: none;
  color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line);
}
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.main-nav .nav-cta { margin-top: 0.75rem; }
.main-nav .nav-cta a { border: 0; }
.main-nav .nav-cta .btn { width: 100%; justify-content: center; color: #fff; border: 1.5px solid var(--ink); }
.main-nav .nav-cta .btn:hover { color: #fff; border-color: var(--ink-2); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block; position: static; background: none; border: 0; padding: 0;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: 0.1rem; }
  .main-nav a {
    padding: 0.5rem 0.65rem; border-bottom: 0; font-size: 0.97rem;
    border-bottom: 2px solid transparent; white-space: nowrap;
  }
  .brand-sub { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .main-nav a { font-size: 0.88rem; padding: 0.5rem 0.4rem; }
  .brand-sub { display: none; }
  .main-nav .nav-cta .btn { font-size: 0.88rem; padding: 0.5rem 0.75rem; }
}
@media (min-width: 900px) {
  .main-nav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .main-nav .nav-cta { margin: 0 0 0 0.6rem; }
  .main-nav .nav-cta .btn { width: auto; padding: 0.55rem 1rem; }
}

/* ---------- Sekcie ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-tint { background: var(--paper-2); }
.section-blush { background: var(--blush-3); }
.section-ink { background: var(--ink); color: #e9ebf5; background-image: var(--grid-dark); background-size: 32px 32px; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: #fff; }
.section-ink .btn-light, .section-ink .btn-light:hover { color: var(--ink); }
.section-head { max-width: 70ch; margin-bottom: 2rem; }
.section-head .lead { margin-bottom: 0; }

/* Kóta — nadpis sekcie na kótovacej čiare */
.dim {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.95rem; font-weight: 600; font-stretch: 92%;
  color: var(--ink-2); letter-spacing: 0.02em;
  margin: 0 0 1.1rem;
}
.dim::before, .dim::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--blush-2);
  position: relative;
}
.dim::before { flex: 0 0 2.5rem; }
.dim.dim-full::before { flex: 0 0 2.5rem; }
.dim span { position: relative; padding: 0 0.1rem; }
.dim-tick::before, .dim-tick::after { background: var(--blush-2); }
.section-ink .dim { color: var(--blush); }
.section-ink .dim::before, .section-ink .dim::after { background: var(--blush-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  background-image: var(--grid);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.hero .container {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}
.hero h1 { margin-bottom: 1rem; max-width: 18ch; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.6rem); }
.hero .lead { margin-bottom: 1.6rem; }
.hero-sub {
  display: inline-block; font-size: 0.95rem; color: var(--ink-2); font-weight: 600;
  margin-bottom: 1rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--blush-2);
}
.hero-compact { padding: clamp(2.2rem, 1.5rem + 2.5vw, 4rem) 0; }
.hero-compact .container { display: block; }
.hero-compact h1 { max-width: 20ch; }

/* Popisové pole výkresu */
.title-block {
  --tb-line: var(--ink);
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1.5px solid var(--tb-line);
  font-size: 0.95rem;
  box-shadow: 8px 8px 0 var(--blush);
}
.title-block th, .title-block td {
  border: 1px solid var(--tb-line);
  padding: 0.6rem 0.8rem;
  text-align: left; vertical-align: top;
}
.title-block th {
  width: 34%;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--paper-2);
  white-space: nowrap;
}
.title-block td { color: var(--ink); font-weight: 500; }
.title-block td.big { font-size: 1.5rem; font-weight: 700; font-stretch: 85%; line-height: 1.1; }
.title-block caption {
  caption-side: top; text-align: left; padding: 0 0 0.5rem;
  font-size: 0.8rem; color: var(--muted);
}
.title-block .tags { margin: 0; }
@keyframes draw-in {
  from { clip-path: inset(-20px 100% -20px -20px); }
  to   { clip-path: inset(-20px -20px -20px -20px); }
}
.title-block-wrap { animation: draw-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- Štítky profesií ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.tag {
  display: inline-block; padding: 0.12rem 0.45rem;
  font-size: 0.78rem; font-weight: 700; font-stretch: 90%; letter-spacing: 0.03em;
  line-height: 1.4; border-radius: 2px;
  background: var(--paper-2); color: var(--ink); white-space: nowrap;
}
.tag-eli { background: var(--eli-bg); color: var(--eli-fg); }
.tag-zti { background: var(--zti-bg); color: var(--zti-fg); }
.tag-uk  { background: var(--uk-bg);  color: var(--uk-fg); }
.tag-vzt { background: var(--vzt-bg); color: var(--vzt-fg); }
.tag-ehb { background: var(--ehb-bg); color: var(--ehb-fg); }
.tag-dop { background: var(--dop-bg); color: var(--dop-fg); }
.tag-is  { background: var(--is-bg);  color: var(--is-fg); }
.tag-pd  { background: var(--blush);  color: var(--uk-fg); }

/* ---------- Oblasti služieb (mriežka s hairline) ---------- */
.areas {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas.areas-4 { grid-template-columns: repeat(4, 1fr); } }
.area {
  background: #fff; padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.area .icon { width: 44px; height: 44px; color: var(--ink-2); margin-bottom: 0.3rem; }
.area h3 { margin: 0; }
.area p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.area .tags { margin-top: 0.2rem; }
.area .more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; text-decoration: none; }
.area .more:hover { text-decoration: underline; }

/* ---------- Čísla ---------- */
.stats {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 1.4rem 1.5rem; }
.stat-value {
  display: block; font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  font-weight: 800; font-stretch: 80%; line-height: 1; color: var(--ink);
  margin-bottom: 0.4rem;
}
.stat-label { display: block; color: var(--muted); font-size: 0.95rem; max-width: 24ch; }
.section-ink .stat { background: rgba(255,255,255,0.04); }
.section-ink .stats { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.18); }
.section-ink .stat-value { color: #fff; }
.section-ink .stat-label { color: #c9cdea; }

/* ---------- Referencie: zoznam riadkov ---------- */
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.ref-table th, .ref-table td { padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.ref-table thead th {
  font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--ink);
}
.ref-table .num { color: var(--muted); width: 3rem; font-weight: 600; font-stretch: 90%; }
.ref-table th:nth-child(3) { width: 26%; }
.ref-table th:nth-child(4) { width: 34%; }
.ref-table .name { font-weight: 600; color: var(--ink); }
.ref-table .place { color: var(--muted); }
.ref-table .scope { white-space: normal; }
.ref-table tr[hidden] { display: none; }
.ref-year { margin-top: 2.5rem; }
.ref-year h2 {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: 1.6rem; margin-bottom: 0.6rem;
}
.ref-year h2 .count { font-size: 0.9rem; color: var(--muted); font-weight: 500; font-stretch: 100%; }
.ref-year[hidden] { display: none; }
@media (max-width: 639px) {
  .ref-table thead { display: none; }
  .ref-table tr { display: grid; grid-template-columns: 2.6rem 1fr; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .ref-table td { border: 0; padding: 0.1rem 0.3rem; }
  .ref-table .num { grid-row: 1 / span 3; }
  .ref-table .place, .ref-table .scope { grid-column: 2; }
}

/* Filter referencií */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0.5rem; }
.filter-btn {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-result { color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }

/* ---------- Kroky / proces (skutočná postupnosť) ---------- */
.steps { list-style: none; counter-reset: krok; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: krok; background: #fff; padding: 1.4rem 1.5rem 1.5rem; margin: 0; }
.steps li::before {
  content: counter(krok, decimal-leading-zero);
  display: block; font-size: 0.85rem; font-weight: 700; color: var(--blush-2);
  margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Stupne projektovej dokumentácie — zvislá časová os */
.timeline { list-style: none; counter-reset: stupen; margin: 0; padding: 0; }
.timeline li {
  counter-increment: stupen;
  position: relative; padding: 0 0 2rem 3.6rem; margin: 0;
}
.timeline li::before {
  content: counter(stupen);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem;
}
.timeline li::after {
  content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.4rem; bottom: 0;
  width: 2px; background: var(--line-2);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 0.3rem; font-size: 1.25rem; }
.timeline .meta { color: var(--ink-2); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; display: block; }
.timeline p { max-width: 62ch; }
.timeline p:last-child { margin-bottom: 0; }

/* ---------- Dvojstĺpec / definície ---------- */
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.two-col-wide { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col-wide { grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: start; } }
.aside-box {
  background: var(--blush-3); border-left: 3px solid var(--blush-2);
  padding: 1.3rem 1.4rem; font-size: 0.98rem;
}
.aside-box h3 { font-size: 1.1rem; }
.aside-box ul { margin-bottom: 0; }
.aside-box p:last-child { margin-bottom: 0; }

.service-block { padding: 2.2rem 0; border-top: 1px solid var(--line); display: grid; gap: 1.2rem 2.5rem; }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 300px 1fr; } }
.service-block .icon { width: 48px; height: 48px; color: var(--ink-2); margin-bottom: 0.6rem; }
.service-block h3 { font-size: 1.5rem; }
.service-block .service-tag { margin-top: 0.3rem; }
.service-block ul { columns: 1; }
@media (min-width: 640px) { .service-block ul.cols { columns: 2; column-gap: 2rem; } }
.service-block li { break-inside: avoid; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.92rem; }
.kv dd { margin: 0; }

/* ---------- Checklist pre koho ---------- */
.audience { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience.audience-4 { grid-template-columns: repeat(4, 1fr); } }
.audience > div { background: #fff; padding: 1.3rem 1.4rem; }
.audience h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.audience p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA pruh ---------- */
.cta-band { background: var(--ink); color: #fff; background-image: var(--grid-dark); background-size: 32px 32px; }
.cta-band .container {
  display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; align-items: center;
}
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #c9cdea; margin: 0; max-width: 55ch; }
.cta-band .phone { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }

/* ---------- Kontaktný pruh ---------- */
.contact-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .contact-strip { grid-template-columns: repeat(3, 1fr); } }
.contact-strip > div { background: #fff; padding: 1.3rem 1.4rem; }
.contact-strip .label { font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.contact-strip a, .contact-strip .value { font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; }

/* ---------- Formulár ---------- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.form-field .hint { font-size: 0.85rem; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 0.7rem 0.85rem; background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  width: 100%;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--ink-2); outline: 3px solid rgba(74, 86, 181, 0.25); outline-offset: 0; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: var(--err); }
.form-field .error-msg { display: none; color: var(--err); font-size: 0.88rem; }
.form-field.invalid .error-msg { display: block; }
.form-check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.95rem; }
.form-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--ink); }
.form-check.invalid { color: var(--err); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 1rem 1.1rem; border-radius: var(--radius); font-weight: 500; }
.form-status.success { display: block; background: #E3F0E6; color: var(--ok); border: 1px solid #B6D6BE; }
.form-status.error { display: block; background: #F8E3DF; color: var(--err); border: 1px solid #E5B6AE; }

/* ---------- Mapa dosahu (schematická) ---------- */
.reach-map { width: 100%; max-width: 520px; margin: 0 auto; }
.reach-map .ring { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.reach-map .ring-label { font-size: 11px; fill: var(--muted); }
.reach-map .city { fill: var(--ink-2); }
.reach-map .city-label { font-size: 12px; fill: var(--text); font-weight: 500; }
.reach-map .home { fill: var(--blush-2); stroke: var(--ink); stroke-width: 2; }
.reach-map .home-label { font-size: 13px; fill: var(--ink); font-weight: 700; }
.reach-map .axis { stroke: var(--line); stroke-width: 1; }

/* ---------- Pätička ---------- */
.site-footer {
  background: var(--ink); color: #c9cdea;
  background-image: var(--grid-dark); background-size: 32px 32px;
  padding: 3rem 0 1.5rem; font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.site-footer .footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .site-footer .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 0.8rem; }
.site-footer .brand-sub { color: #c9cdea; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  font-size: 0.88rem; color: #aab0d4;
}

/* ---------- Breadcrumb / drobné ---------- */
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.note { font-size: 0.9rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.icon-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; }
.icon-list svg { width: 1.3rem; height: 1.3rem; color: var(--ink-2); margin-top: 0.2rem; }
.highlights { display: grid; gap: 1rem; }
@media (min-width: 640px) { .highlights { grid-template-columns: repeat(3, 1fr); } }
.highlight { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.highlight h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.highlight p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.sketch { background: var(--paper-2); background-image: var(--grid); background-size: 24px 24px; border: 1px solid var(--line); padding: 1.5rem; }
.sketch svg { width: 100%; height: auto; }
