:root {
  --bg: #f6f5f1;
  --bg-alt: #ecebe5;
  --card: #ffffff;
  --ink: #16191b;
  --muted: #5b6266;
  --line: #dcdad2;
  --accent: #1e6470;      /* petrolejová z loga */
  --accent-ink: #ffffff;
  --accent-soft: #d9ebec;
  --hot: #e2531d;         /* oranžová jako filament */
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111416; --bg-alt: #171b1e; --card: #1c2125; --ink: #eef1f2; --muted: #a3acb1;
    --line: #2b3237; --accent: #4fb0bd; --accent-ink: #0b1517; --accent-soft: #1b3236; --hot: #ff7a45;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer;
  font: inherit; font-weight: 600; transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sm { padding: .5em 1.05em; font-size: .92rem; }

/* hlavička */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top .btn-sm { margin-left: auto; } }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr 1fr; } .hero { padding: 80px 0 96px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: 1em; }
.accent { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--hot); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.facts strong { color: var(--ink); font-weight: 600; }

.hero-pics { position: relative; aspect-ratio: 1 / .92; }
.hero-pics img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid var(--card); }
.hero-pics .p1 { width: 72%; aspect-ratio: 4/3; left: 0; top: 4%; }
.hero-pics .p2 { width: 44%; aspect-ratio: 3/4; right: 0; top: 0; }
.hero-pics .p3 { width: 46%; aspect-ratio: 1; left: 30%; bottom: 0; }

/* sekce */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--muted); max-width: 40em; margin-bottom: 32px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; margin-bottom: 14px; }
.tip { border-left: 4px solid var(--hot); padding: 4px 0 4px 20px; }
.tip ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }

/* galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-size: .92rem; font-weight: 500; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--card); cursor: zoom-in; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 12px 10px; font-size: .88rem; font-weight: 500; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.gallery figure.hide { display: none; }

/* lightbox */
dialog#lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog#lb::backdrop { background: rgb(0 0 0 / .88); }
#lb figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
#lb img { max-height: calc(100vh - 120px); max-width: min(100%, 1100px); object-fit: contain; border-radius: 8px; }
#lb figcaption { color: #fff; margin-top: 12px; text-align: center; }
#lb button { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
#lb button:hover { background: rgb(255 255 255 / .25); }
.lb-x { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }

/* poptávka */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.4fr 1fr; } }
form { display: grid; gap: 14px; }
.row { display: grid; gap: 14px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: .7em .85em; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
form .btn { justify-self: start; }
.err { color: var(--hot); margin: 0; font-weight: 500; }
.files { display: grid; gap: 10px; }
.files-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-weight: 500; cursor: pointer; }
.files-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files-pick:focus-within .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.files-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.files-list:empty { display: none; }
.files-list li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.files-list img { width: 100%; height: 100%; object-fit: cover; }
.files-list button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(0 0 0 / .65); color: #fff; font-size: 18px; line-height: 28px; padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 65px; }
.captcha:empty::before { content: 'Načítám ověření, že nejste robot…'; display: block; padding-top: 20px; color: var(--muted); font-size: .9rem; }
.dekujeme { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dekujeme p { margin: 0; color: var(--muted); }
button[disabled] { opacity: .6; cursor: progress; transform: none; }
.small { font-size: .9rem; color: var(--muted); margin: 0; }
.contact-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; align-self: start; }
.contact-info dl { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.contact-info dt { color: var(--muted); font-size: .9rem; }
.contact-info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-info dl { grid-template-columns: 1fr; gap: 2px; } .contact-info dd { margin-bottom: 10px; } }
.contact-pic { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* patička */
.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.foot p { margin: 0; }
.foot .brand { font-size: 1rem; }
