/* Nabídka - document layout, tokens per _spec/DESIGN.md */
:root {
  --teal: #467E8A;
  --teal-ink: #2F5F69;
  --teal-wash: #E8F0F2;
  --ink: #242424;
  --ink-2: #5B6266;
  --line: #C5C5C5;
  --line-2: #E2E4E5;
  --paper: #FFFFFF;
  --desk: #F6F6F6;
  --font: "Afacad", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; font-variant-numeric: tabular-nums; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line-2); }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.topbar img { width: 30px; height: 30px; }
.topbar a { font-size: 15px; font-weight: 600; text-decoration: none; }

.doc { max-width: 920px; margin: 0 auto; padding: 56px 24px 80px; }
.measure { max-width: 68ch; }
.kicker { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -.015em; max-width: 22ch; text-wrap: balance; }
.lead { font-size: 21px; line-height: 1.5; margin-top: 18px; max-width: 60ch; }
.demo-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 4px; font-size: 18px; }
.demo-link a { font-weight: 600; }

/* title block (razítko) */
.razitko { display: grid; gap: 1px; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--line); border: 1.5px solid var(--ink); margin-top: 34px; }
.razitko > div { background: var(--paper); padding: 9px 12px 10px; min-width: 0; }
.rz-l { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.rz-v { display: block; font-size: 17px; }
.razitko .w2 { grid-column: span 2; } .razitko .w3 { grid-column: span 3; } .razitko .w4 { grid-column: span 4; }
.razitko .proj .rz-v { font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.2; }
.razitko .price .rz-v { font-size: 26px; font-weight: 600; color: var(--teal-ink); }

section { margin-top: 64px; }
h2 { font-size: 30px; letter-spacing: -.01em; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 6px; }

.scope { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.scope > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 10px 32px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.scope h3 { font-size: 19px; margin: 2px 0 0; }
.scope p:last-child { margin-bottom: 0; }

figure.plan { margin: 0; border: 1.5px solid var(--ink); }
figure.plan svg { display: block; width: 100%; height: auto; }
figure.plan .plan-v { display: none; }
figure.plan figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); font-size: 14px; }
figure.plan figcaption span { padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
figure.plan figcaption span + span { border-left: 1px solid var(--line); }
.lg { width: 34px; height: 14px; flex: none; border: 1.5px solid var(--ink); }
.lg.new { border: 2.5px solid var(--teal); background: var(--teal-wash); }
.lg.future { border: 1.5px dashed var(--ink-2); }
.plan text { font-family: var(--font); fill: var(--ink); }

ul.plain { margin: 0 0 14px; padding-left: 1.1em; }
ul.plain li { margin: 4px 0; }

.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.refs h3 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 0; }
.refs dl { margin: 0; }
.refs dt { padding-top: 14px; font-weight: 600; }
.refs dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.refs dt a { text-decoration: none; }
.refs dt a:hover { text-decoration: underline; }
.refs .who { font-weight: 400; color: var(--ink-2); }

table.price { width: 100%; border-collapse: collapse; font-size: 17px; }
table.price th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding: 0 12px 8px 0; border-bottom: 1.5px solid var(--ink); }
table.price td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price td:first-child { font-weight: 600; white-space: nowrap; }
table.price .num { text-align: right; white-space: nowrap; padding-right: 0; }
table.price tfoot td { border-bottom: 0; border-top: 1.5px solid var(--ink); font-weight: 600; font-size: 20px; }
table.price.steps td:first-child { width: 2.5rem; color: var(--teal-ink); }
.terms { margin-top: 18px; }

.contact { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1.5px solid var(--ink); }
.contact > div { background: var(--paper); padding: 10px 14px 12px; }
.contact .rz-v { font-size: 18px; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.foot { margin-top: 40px; font-size: 14px; color: var(--ink-2); }

@media screen and (max-width: 760px) {
  body { font-size: 17px; }
  .doc { padding: 34px 16px 64px; }
  .topbar { padding: 12px 16px; }
  .lead { font-size: 19px; }
  .razitko { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .razitko .w2, .razitko .w3, .razitko .w4 { grid-column: span 2; }
  .razitko .half { grid-column: span 1; }
  section { margin-top: 48px; }
  h2 { font-size: 26px; }
  .scope > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .refs { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  figure.plan .plan-h { display: none; }
  figure.plan .plan-v { display: block; }
  figure.plan figcaption { grid-template-columns: minmax(0, 1fr); }
  figure.plan figcaption span + span { border-left: 0; border-top: 1px solid var(--line); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  table.price td:first-child { white-space: normal; }
  table.price.steps .num { white-space: normal; text-align: left; }
  table.price.steps thead th.num { text-align: left; }
  table.price.steps tr { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); }
  table.price.steps td:last-child { grid-column: 2; padding-top: 0; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  table.price.steps td:nth-child(2) { border-bottom: 0; padding-bottom: 4px; }
  table.price.steps td:first-child { border-bottom: 0; }
  table.price.steps thead { display: none; }
  table.price .hide-sm { display: none; }
}
@media print {
  .topbar { display: none; }
  .doc { padding: 0; max-width: none; }
  section { break-inside: avoid-page; }
}
