:root {
  --bg: #ffffff;
  --paper: #f4f3ee;
  --ink: #15181a;
  --muted: #61676b;
  --line: #deddd6;
  --green: #1f4d3a;
  --green-2: #2d6a50;
  --gold: #c9a24b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --max: 1160px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
section { padding: 96px 0; }
.eyebrow { display: block; font: 600 .78rem/1 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--green-2); margin-bottom: 1.4em; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: block; letter-spacing: -.01em; }
.brand small { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
nav { margin-left: auto; }
nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
nav a:hover { border-bottom-color: var(--green); }
.tel { color: var(--green); font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap; padding-left: 28px; border-left: 1px solid var(--line); }
.tel:hover { text-decoration: underline; }
.tel svg { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border-radius: var(--r); background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .01em; border: 1px solid var(--green); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--green); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }

/* hero */
.hero { padding: 72px 0 0; }
.hero-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: end; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.hero h1 em { color: var(--green); }
.hero-side .lead { font-size: 1.1rem; margin-bottom: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pano { margin-top: 64px; position: relative; }
.pano img { width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 55%; border-radius: var(--r); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.facts > div { padding: 30px 32px 30px 0; }
.facts > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--green); }
.facts span { color: var(--muted); font-size: .92rem; }

.brandsline { padding: 26px 0; border-bottom: 1px solid var(--line); }
.brandsline .wrap { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline; }
.brandsline small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brandsline span { font-family: var(--serif); font-size: 1.25rem; color: #4a5256; }

/* nabídka: katalog */
.head2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: end; margin-bottom: 56px; }
.head2 h2 { margin: 0; }
.head2 .lead { margin: 0; }
.index { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 70px 1.1fr 1.4fr 200px; gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s; }
.row:hover { background: var(--paper); padding-inline: 18px; }
.row .no { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.row h3 { margin: 0; font-size: 1.7rem; }
.row p { margin: 0; color: var(--muted); font-size: .98rem; }
.row img { width: 200px; height: 126px; object-fit: cover; border-radius: var(--r); }
.row .ph { width: 200px; height: 126px; border-radius: var(--r); background: var(--paper); display: grid; place-items: center; }
.row .ph svg { width: 48px; height: 48px; stroke: var(--green); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.small-note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* kroky */
.band-paper { background: var(--paper); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--ink); counter-reset: s; }
.steps3 > div { counter-increment: s; padding: 30px 36px 0 0; }
.steps3 > div + div { padding-left: 36px; border-left: 1px solid var(--line); }
.steps3 > div::before { content: "0" counter(s); font-family: var(--serif); font-size: 1rem; color: var(--gold); display: block; margin-bottom: 14px; }
.steps3 h3 { margin-bottom: .45em; }
.steps3 p { color: var(--muted); margin: 0; }

/* repase */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.quote { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.25; letter-spacing: -.01em; margin: 0; padding-left: 28px; border-left: 3px solid var(--gold); }
.defs { margin: 0; display: grid; gap: 0; }
.defs div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.defs div:first-child { border-top: 1px solid var(--ink); }
.defs dt { font-weight: 700; }
.defs dd { margin: 0; color: var(--muted); }

/* cena */
.price { background: var(--green); color: #fff; padding: 80px 0; }
.price .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.price h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0; }
.price p { color: #cfe0d7; margin: 0 0 24px; }

/* galerie */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.05); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10, 12, 12, .94); }
dialog.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: var(--r); }
.lb-btn { position: fixed; background: rgba(255, 255, 255, .92); color: var(--ink); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
.lb-count { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; font-size: .9rem; background: rgba(0, 0, 0, .5); padding: 3px 14px; border-radius: 999px; }

/* výkup */
.box { border-top: 1px solid var(--ink); padding-top: 26px; }
.box h3 { margin-top: 0; }
.box ul { padding-left: 1.2em; color: var(--muted); }
.box li { margin-bottom: .3em; }
.box li::marker { color: var(--gold); }
.note { color: var(--muted); font-size: .92rem; }

/* kontakt */
.contact dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 0; }
.contact dt, .contact dd { padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact dt { color: var(--muted); font-size: .9rem; }
.contact dd { font-weight: 600; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--r); margin-top: 64px; filter: grayscale(.25); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
input, textarea { font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 77, 58, .15); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 6px; accent-color: var(--green); }
.split { display: grid; gap: 72px; grid-template-columns: 1fr 1fr; align-items: start; }

footer { border-top: 1px solid var(--line); background: var(--paper); padding: 44px 0; font-size: .9rem; color: var(--muted); }
footer a { color: var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer .brand small { color: var(--muted); }

.legal h1 { margin-top: 0; }
.legal ol, .legal ul { color: var(--muted); }
.legal p[align=center], .legal p:has(> strong:only-child) { margin-top: 1.6em; }

/* články */
.article { max-width: 720px; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: .2em; }
.article h2 { margin-top: 1.9em; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.article h3, .article h4 { margin-top: 1.5em; }
.article > p, .article li { font-size: 1.08rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .35em; }
.article li::marker { color: var(--gold); font-weight: 700; }
.article img { height: auto; border-radius: var(--r); margin: 1.4em 0; }
.article table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--paper); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article .cta { margin-top: 3.5em; background: var(--green); color: #cfe0d7; border-radius: var(--r); padding: 36px; }
.article .cta h3 { color: #fff; margin-top: 0; }
.article .cta .btn { background: #fff; color: var(--green); border-color: #fff; }
.back { display: inline-flex; gap: 6px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.articles { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--line); transition: background .2s; }
.articles li:hover { background: var(--paper); }
.articles a { display: block; padding: 22px 8px; text-decoration: none; color: var(--ink); }
.articles b { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; font-weight: 600; margin-bottom: 4px; }
.articles span { color: var(--muted); font-size: .94rem; line-height: 1.5; display: block; max-width: 70ch; }
.home-articles { columns: 2; column-gap: 56px; }
.home-articles li { break-inside: avoid; }
.listing h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hlinks { display: flex; gap: 26px; margin-left: auto; }
.hlinks a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.hlinks a:hover { text-decoration: underline; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .hero-top, .head2, .twocol, .split, .price .wrap { grid-template-columns: 1fr; gap: 32px; }
  .pano { margin-top: 40px; }
  .pano img { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px 0; }
  .row:hover { padding-inline: 0; background: none; }
  .row img, .row .ph { grid-column: 2; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 8px; }
  .row p { grid-column: 2; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 > div, .steps3 > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .defs div { grid-template-columns: 1fr; gap: 4px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .home-articles { columns: 1; }
  .nav-toggle { display: block; }
  .tel { display: none; }
  nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; margin: 0; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price { padding: 56px 0; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101412; --paper: #171d1a; --ink: #eef1ef; --muted: #9aa5a0; --line: #2a332f; --green: #5fb08c; --green-2: #7bc7a4; }
  .site-header { background: rgba(16, 20, 18, .94); }
  .btn { color: #07140e; }
  .btn.alt { color: var(--ink); }
  .btn.alt:hover { color: #101412; }
  .price, .article .cta { background: #1f4d3a; color: #fff; }
  .price p, .article .cta { color: #cfe0d7; }
  input, textarea { background: var(--paper); }
  .brandsline span { color: #b6c0bb; }
}
