/* Čistý domov – Radim Čmakal | cmakal.cz
   Vizuální svět: zakázkový list / předávací protokol.
   Papír, inkoust, tyrkysové razítko. */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Tenor+Sans&display=swap");

:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --sheet: #fffdf8;
  --ink: #1d2729;
  --ink-2: #4a5759;
  --rule: #d9d2c4;
  --tyrkys: #81c3c9;          /* barva značky – plochy, razítka */
  --tyrkys-ink: #2a6c72;      /* tyrkys pro text a odkazy */
  --tyrkys-deep: #1f5257;
  --display: Optima, "Optima Nova", "Tenor Sans", Candara, "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-feature-settings: "tnum" 0;
  padding-bottom: 76px; /* místo pro mobilní lištu */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

::selection { background: var(--tyrkys); color: var(--ink); }
:focus-visible { outline: 3px solid var(--tyrkys-ink); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--tyrkys-ink) var(--paper-2); }
input, textarea { caret-color: var(--tyrkys-ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tyrkys-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--tyrkys-deep); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: .5em; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .01em; }
.brand span { font-size: .78rem; color: var(--ink-2); letter-spacing: .04em; }
.nav { display: none; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--tyrkys); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 1.02rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .2s, box-shadow .25s;
  border: 0;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(29,39,41,.55); }
.btn-call:hover { background: var(--tyrkys-deep); color: #fff; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--sheet); color: var(--ink); }
.top .btn { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.top .btn .num { display: none; }
@media (min-width: 560px) { .top .btn .num { display: inline; } }

/* ---------- Úvod ---------- */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 88px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.hero .facts li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.tick { width: 18px; height: 18px; flex: none; color: var(--tyrkys-ink); transform: translateY(3px); }

/* Fotka s razítkem */
.proof { position: relative; margin: 0; }
.proof img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: 0 18px 40px -22px rgba(29,39,41,.6); }
.proof figcaption { font-size: .92rem; color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.stamp {
  position: absolute; right: -6px; top: 18px;
  font: 600 .8rem/1.15 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--tyrkys-deep); text-align: center;
  border: 2.5px solid var(--tyrkys-deep); border-radius: 8px; padding: 8px 12px;
  background: color-mix(in srgb, var(--tyrkys) 78%, white);
  transform: rotate(-6deg);
  box-shadow: 0 4px 12px -6px rgba(29,39,41,.5);
}
.stamp small { display: block; font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .78rem; }
.proof .half { position: absolute; bottom: 52px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.proof .half span { background: rgba(29,39,41,.82); color: #fff; font: 600 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; }

/* ---------- Sekce ---------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.intro { max-width: 60ch; margin-bottom: 36px; color: var(--ink-2); }

/* ---------- Zakázkový list ---------- */
.jobs { display: grid; gap: 28px; }
.job {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: 0 1px 0 var(--rule), 0 14px 30px -24px rgba(29,39,41,.45);
  overflow: hidden;
}
.job-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  padding: 16px 20px; border-bottom: 1px dashed var(--rule);
  font-size: .9rem; color: var(--ink-2);
}
.job-head strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
.job-body { display: grid; gap: 0; }
@media (min-width: 820px) { .job-body { grid-template-columns: 1.5fr 1fr; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule); }
.pair figure { margin: 0; position: relative; background: var(--ink); }
.pair img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pair figcaption {
  position: absolute; left: 10px; top: 10px;
  background: var(--sheet); color: var(--ink);
  font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 3px;
}
.pair figure.po figcaption { background: var(--tyrkys); }
.single img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.job-notes { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.job-notes h3 { font-size: 1.35rem; }
.check { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.check li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.job-notes p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* ---------- Služby (řádky, ne karty) ---------- */
.services { border-top: 1.5px solid var(--ink); }
.svc { display: grid; gap: 14px 40px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .svc { grid-template-columns: 1fr 1.4fr auto; align-items: start; } }
.svc h3 { font-size: 1.6rem; }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.svc ul li { margin-bottom: 4px; }
.svc .more { white-space: nowrap; font-weight: 600; align-self: center; }

/* ---------- Postup ---------- */
.steps { display: grid; gap: 22px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Ceník ---------- */
.prices { display: grid; gap: 28px; }
@media (min-width: 820px) { .prices { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable caption { text-align: left; font-family: var(--display); font-size: 1.35rem; padding-bottom: 10px; }
.ptable th, .ptable td { padding: 11px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.ptable td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 16px; }
.ptable tr:first-child th, .ptable tr:first-child td { border-top: 1.5px solid var(--ink); }
.todo { background: #fff3c4; color: #5b4500; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.note { font-size: .95rem; color: var(--ink-2); margin-top: 18px; }

/* ---------- O mně ---------- */
.about .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.about img { border-radius: var(--r); aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: #eef3f3; }
.contact h2 { color: #fff; }
.contact a { color: var(--tyrkys); }
.contact .wrap { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.contact .big { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; text-decoration: none; display: inline-block; margin: 8px 0 18px; }
.contact .big:hover { color: var(--tyrkys); }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.contact dt { color: #a9bcbe; }
.contact dd { margin: 0; }
.contact p { color: #cfdcdd; }
.contact .btn-call { background: var(--tyrkys); color: var(--ink); }
.contact .btn-call:hover { background: #fff; color: var(--ink); }

footer { background: var(--ink); color: #a9bcbe; font-size: .88rem; padding: 0 0 28px; }
footer .wrap { border-top: 1px solid #36474a; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: #cfdcdd; }

/* ---------- Mobilní lišta ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--sheet); border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 20px -14px rgba(29,39,41,.5);
}
.callbar .btn { min-height: 52px; width: 100%; }
.callbar .btn-line { padding: 0 18px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* Jemný nástup jen u razítka */
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp .7s cubic-bezier(.16,1,.3,1) .35s both; }
  @keyframes stamp { from { transform: rotate(-14deg) scale(1.25); opacity: .0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
}

/* Páry fotek vyplní celou výšku listu na širokém displeji */
.pair figure { min-height: 100%; }
@media (min-width: 820px) {
  .job-body > .pair img, .job-body > .single img { height: 100%; aspect-ratio: auto; min-height: 420px; }
}

/* Hlavní cena – hloubkový interiér */
.price-hero {
  display: grid; gap: 18px 40px; align-items: center;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 24px; margin-bottom: 40px;
  box-shadow: 0 14px 30px -24px rgba(29,39,41,.45);
}
@media (min-width: 820px) { .price-hero { grid-template-columns: 1.3fr auto 1fr; padding: 28px 32px; } }
.price-hero h3 { font-size: 1.6rem; margin-bottom: 8px; }
.price-hero p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.price-big { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tiers { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.tiers li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
