:root {
  --paper: #FAF7EE;   /* stejné jako pozadí loga */
  --ink: #1F1B17;
  --olive: #55623F;
  --walnut: #6E4B34;
  --sand: #E9E0CF;
  --muted: #5E554B;
  --display: "Gloock", "Georgia", serif;
  --text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1180px, 100% - 2 * clamp(16px, 4vw, 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; line-height: 1.2; }

/* ---------- hlavička ---------- */
.top {
  width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand img { width: 92px; height: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; }
.top nav a { text-decoration: none; font-weight: 500; font-size: .98rem; }
.top nav a:hover { color: var(--olive); }
.nav-cta { border: 1px solid var(--ink); border-radius: 999px; padding: .45rem 1.1rem; }
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ---------- úvod ---------- */
.hero {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: end;
  padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 120px);
}
.h1-small {
  display: block; font-family: var(--text); font-weight: 500;
  font-size: 1.05rem; color: var(--olive); margin-bottom: 1.2rem; letter-spacing: .01em;
}
.h1-big { display: block; font-size: clamp(3.6rem, 9vw, 8.2rem); line-height: .92; letter-spacing: -.025em; }
.lead { max-width: 34em; font-size: 1.15rem; color: var(--muted); margin: 2rem 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 500;
}
.btn:hover { background: var(--olive); }
.link { font-weight: 500; text-underline-offset: 4px; }

/* oblouk – podpisový prvek: rám jako klenba z vizualizací a tvar písmene A v logu */
.arch { margin: 0; }
.arch img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 6px 6px;
  background: var(--sand);
}
.arch figcaption { font-size: .9rem; color: var(--muted); margin-top: .8rem; }
.hero-img img { aspect-ratio: 4 / 5.2; }

/* ---------- služby ---------- */
.services {
  background: var(--sand);
  padding: clamp(64px, 9vw, 120px) max(16px, (100% - 1180px) / 2);
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px);
}
.services h2 { position: sticky; top: 32px; align-self: start; }
.services dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3rem; }
.services dt { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; margin-bottom: .5rem; }
.services dd { margin: 0; color: var(--muted); max-width: 32em; }

/* ---------- projekty ---------- */
.work { width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.work-head p { max-width: 30em; color: var(--muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid figure:nth-child(3n+2) { margin-top: clamp(0px, 6vw, 80px); }
.work-more { margin-top: 3rem; }
.work-more a { color: var(--olive); font-weight: 500; text-underline-offset: 4px; }

/* ---------- spolupráce ---------- */
.process { width: var(--wrap); margin: 0 auto; padding: 0 0 clamp(64px, 9vw, 120px); }
.process ol { list-style: none; counter-reset: krok; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.process li { counter-increment: krok; border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.process li::before { content: counter(krok); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--walnut); display: block; margin-bottom: .9rem; }
.process p { color: var(--muted); margin: .6rem 0 0; font-size: 1rem; }
.note { max-width: 46em; margin-top: 3rem; font-size: 1.1rem; }

/* ---------- kontakt ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 120px) max(16px, (100% - 1180px) / 2); }
.contact h2 { max-width: 14em; }
.contact ul { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.contact a { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); text-decoration: none; border-bottom: 1px solid rgba(250,247,238,.35); }
.contact a:hover { border-bottom-color: var(--paper); }
.contact :focus-visible { outline-color: var(--paper); }

.foot { width: var(--wrap); margin: 0 auto; padding: 28px 0 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .92rem; }
.foot p { margin: 0; }

/* ---------- o mně ---------- */
.about { width: var(--wrap); margin: 0 auto; padding: 0 0 clamp(64px, 9vw, 120px); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.years { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 12em; }
.years span { display: block; font-family: var(--display); font-size: clamp(5rem, 11vw, 9rem); line-height: .9; color: var(--walnut); }
.about h2 { margin-bottom: 1.4rem; }
.about p { max-width: 36em; font-size: 1.15rem; }

/* ---------- videa ---------- */
.reels-h { margin: clamp(64px, 8vw, 100px) 0 1.6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.reels figure { margin: 0; scroll-snap-align: start; }
.reels video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--sand); display: block; }
.reels figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* ---------- služby: hlavní + další ---------- */
.services-body h3 { margin: 3.4rem 0 1.2rem; }
.also { list-style: none; margin: 0; padding: 0; }
.also li { padding: .9rem 0; border-top: 1px solid rgba(31,27,23,.18); color: var(--muted); }
.also strong { color: var(--ink); font-weight: 500; }

/* ---------- ceník ---------- */
.pricing { width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.pricing table { width: 100%; border-collapse: collapse; margin-top: 2.6rem; font-size: 1.08rem; }
.pricing th, .pricing td { text-align: left; padding: 1.05rem .6rem 1.05rem 0; border-bottom: 1px solid rgba(31,27,23,.18); vertical-align: baseline; }
.pricing thead th { font-weight: 500; color: var(--muted); font-size: .95rem; border-bottom-color: var(--ink); }
.pricing tbody th { font-weight: 400; }
.pricing td:last-child { text-align: right; font-family: var(--display); font-size: 1.35rem; white-space: nowrap; }
.pricing thead th:last-child { text-align: right; }
.pricing td:nth-child(2) { color: var(--muted); }
.terms { margin: 2rem 0 0; padding-left: 1.1rem; color: var(--muted); max-width: 52em; }
.terms li { margin: .35rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- příručky ---------- */
.guides { background: var(--sand); padding: clamp(64px, 9vw, 120px) max(16px, (100% - 1180px) / 2); }
.guides-intro { max-width: 40em; color: var(--muted); font-size: 1.1rem; margin: 1.2rem 0 0; }
.guide-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 3rem; }
.guide-list article { border-top: 1px solid var(--ink); padding-top: 1.2rem; display: flex; flex-direction: column; }
.guide-list p { color: var(--muted); margin: .7rem 0 0; }
.guide-list .meta { color: var(--olive); font-weight: 500; font-size: .95rem; margin-top: auto; padding-top: 1rem; }
.guide-list a { margin-top: .6rem; font-weight: 500; text-underline-offset: 4px; }

/* ---------- formulář ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-note { grid-column: 1 / -1; margin: 0 0 .4rem; color: rgba(250,247,238,.75); }
.form label { display: grid; gap: .35rem; font-size: .95rem; color: rgba(250,247,238,.85); }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; color: var(--paper); background: transparent; border: 1px solid rgba(250,247,238,.4); border-radius: 10px; padding: .7rem .8rem; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--paper); outline-offset: 1px; }
.form .btn { grid-column: 1 / -1; justify-self: start; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.form .btn:hover { background: var(--sand); }
.form-error { grid-column: 1 / -1; margin: 0; color: #F2C9A8; }
.foot img { width: 48px; height: auto; }
.foot { align-items: center; }

/* ---------- inspirace ---------- */
.inspo { width: var(--wrap); margin: 0 auto; padding: 0 0 clamp(64px, 9vw, 120px); }
.inspo-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 22%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.inspo-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; border-radius: 6px; }

/* ---------- checklist ---------- */
.checklist { background: var(--olive); color: var(--paper); padding: clamp(64px, 9vw, 120px) max(16px, (100% - 1180px) / 2); display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.check-intro { position: sticky; top: 32px; }
.check-intro p { color: rgba(250,247,238,.85); max-width: 30em; }
.check-count { font-family: var(--display); font-size: 2rem; color: var(--paper) !important; margin: 1.6rem 0; }
.check-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.checklist .btn { background: var(--paper); color: var(--ink); border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.checklist .btn:hover { background: var(--sand); }
.checklist .link { color: var(--paper); }
.checklist :focus-visible { outline-color: var(--paper); }
.check-groups { display: grid; gap: 2.4rem; }
.check-groups fieldset { border: 0; margin: 0; padding: 0; }
.check-groups legend { font-family: var(--display); font-size: 1.7rem; margin-bottom: .8rem; padding: 0; }
.check-groups label { display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem; align-items: start; padding: .75rem 0; border-top: 1px solid rgba(250,247,238,.25); cursor: pointer; }
.check-groups input { width: 1.2rem; height: 1.2rem; margin: .25rem 0 0; accent-color: var(--paper); }
.check-groups input:checked + * , .check-groups label:has(input:checked) { color: rgba(250,247,238,.6); }

@media print {
  body > *:not(main), main > *:not(.checklist) { display: none !important; }
  .checklist { background: #fff; color: #000; display: block; padding: 0; }
  .check-intro { position: static; }
  .check-intro p, .check-count { color: #000 !important; }
  .check-actions, .check-count { display: none; }
  .check-groups label { border-top-color: #bbb; color: #000 !important; }
}

/* ---------- projekce ---------- */
.projekce { width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.phases article { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.phases p { color: var(--muted); margin: .7rem 0 0; }
.sub-h { margin: 3.4rem 0 1.2rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.note-small { color: var(--muted); font-size: .95rem; margin-top: 1.4rem; max-width: 50em; }
.drawings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.drawings a { display: block; text-decoration: none; background: #fff; border: 1px solid rgba(31,27,23,.15); border-radius: 6px; overflow: hidden; }
.drawings img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 10px; }
.drawings span { display: block; padding: .7rem .9rem; font-size: .92rem; border-top: 1px solid rgba(31,27,23,.1); background: var(--paper); }
.drawings a:hover span { color: var(--olive); }

/* ---------- reference ---------- */
.refs { width: var(--wrap); margin: 0 auto; padding: 0 0 clamp(64px, 9vw, 120px); }
.ref { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; padding: 2.4rem 0; border-top: 1px solid rgba(31,27,23,.18); }
.ref-imgs { display: grid; gap: 12px; }
.ref-imgs.two { grid-template-columns: 1.4fr 1fr; }
.ref-imgs img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--sand); }
.ref-imgs:not(.two) img { max-width: 58%; }
.ref-imgs img.drw { object-fit: contain; background: #fff; }
.ref-text h3 { font-size: 1.5rem; }
.ref-text .where { color: var(--olive); font-weight: 500; margin: .5rem 0 .8rem; }
.ref-text p { color: var(--muted); margin: 0; }
.edu { color: var(--muted); font-size: 1rem !important; }

.types-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.types-list li { border: 1px solid rgba(31,27,23,.35); border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; }

/* ---------- důvěra ---------- */
.trust { border-top: 1px solid rgba(31,27,23,.18); border-bottom: 1px solid rgba(31,27,23,.18); }
.trust ul { width: var(--wrap); margin: 0 auto; padding: 1.6rem 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.trust li { color: var(--muted); font-size: .98rem; }
.trust strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin-bottom: .2rem; }

/* ---------- složky služeb ---------- */
.folders { width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0; }
.folder-tabs { display: flex; gap: 6px; align-items: flex-end; }
.folder-tabs button {
  font: inherit; font-weight: 500; cursor: pointer; border: 0; color: var(--muted);
  background: var(--sand); padding: .9rem 1.4rem .8rem; border-radius: 14px 14px 0 0;
  display: flex; gap: .7rem; align-items: baseline; position: relative; top: 1px;
}
.folder-tabs button[aria-selected="true"] { background: var(--walnut); color: var(--paper); padding-top: 1.15rem; }
.folder-tabs button:hover { color: var(--ink); }
.folder-tabs button[aria-selected="true"]:hover { color: var(--paper); }
.tab-n { font-family: var(--display); font-size: 1.3rem; }
.folder-body { background: var(--walnut); color: var(--paper); border-radius: 0 14px 14px 14px; padding: clamp(24px, 4vw, 56px); }
.folder-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.folder-panel[hidden] { display: none; }
.folder-panel:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
.fp-text h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.fp-lead { font-size: 1.15rem; margin: 1rem 0; color: rgba(250,247,238,.92); }
.fp-for { color: rgba(250,247,238,.8); margin: 0 0 1.6rem; }
.fp-text h4 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0 0 .6rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.ticks li { padding: .5rem 0 .5rem 1.8rem; position: relative; border-top: 1px solid rgba(250,247,238,.2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .95rem; width: .8rem; height: .45rem; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg); }
.fp-price { font-family: var(--display); font-size: 1.25rem; margin: 0 0 1.4rem; }
.folder-body .btn { background: var(--paper); color: var(--ink); }
.folder-body .btn:hover { background: var(--sand); }
.folder-body a:focus-visible { outline-color: var(--paper); }
.fp-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 8px 8px; }
.drawings.small { grid-template-columns: 1fr 1fr; gap: 10px; }
.drawings.small span { color: var(--ink); font-size: .85rem; padding: .5rem .6rem; }
.drawings.small img { padding: 6px; }
.extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.extra article { border-top: 1px solid var(--ink); padding-top: 1.2rem; display: flex; flex-direction: column; }
.extra h4 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin: 0; line-height: 1.2; }
.extra p { color: var(--muted); margin: .7rem 0 1rem; }
.extra a { margin-top: auto; font-weight: 500; color: var(--olive); text-underline-offset: 4px; }

/* ---------- typy prostor ---------- */
.types { background: var(--sand); padding: clamp(64px, 9vw, 120px) max(16px, (100% - 1180px) / 2); }
.types ul { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2rem; }
.types li { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.types p { color: var(--muted); margin: .5rem 0 0; }

/* ---------- výzva ---------- */
.cta-band { width: var(--wrap); margin: 0 auto clamp(64px, 9vw, 120px); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--ink); border-radius: 999px; display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); max-width: 30em; line-height: 1.3; }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .top nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .services h2 { position: static; }
  .services dl { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid figure:nth-child(3n+2) { margin-top: 0; }
  .grid figure:nth-child(2n) { margin-top: 48px; }
  .process ol { grid-template-columns: 1fr; }
  .about, .contact, .checklist { grid-template-columns: 1fr; }
  .check-intro { position: static; }
  .guide-list, .drawings { grid-template-columns: 1fr 1fr; }
  .phases, .ref, .folder-panel { grid-template-columns: 1fr; }
  .trust ul, .extra, .types ul { grid-template-columns: 1fr 1fr; }
  .folder-tabs { overflow-x: auto; }
  .folder-tabs button { white-space: nowrap; padding: .8rem 1rem; }
  .cta-band { border-radius: 24px; flex-direction: column; align-items: flex-start; }
  .fp-media img { aspect-ratio: 4 / 3; border-radius: 120px 120px 8px 8px; }
  .ref-imgs:not(.two) img { max-width: 100%; }
  .pricing td:nth-child(2), .pricing thead th:nth-child(2) { display: none; }
}
@media (max-width: 520px) {
  .guide-list, .form, .drawings, .ref-imgs.two, .trust ul, .extra, .types ul { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .grid figure:nth-child(2n) { margin-top: 0; }
}
