:root {
  --ink: #1c1f24;
  --ink-2: #2a2e35;
  --muted: #5d636d;
  --line: #e3e1dc;
  --bg: #f7f5f1;
  --card: #ffffff;
  --accent: #ff6500;
  --accent-hi: #ff7a26; /* accent for small text on dark backgrounds */
  --accent-dk: #c94f00; /* deeper accent for small text on light backgrounds */
  --accent-ink: #1c1f24; /* text on accent fills */
  --radius: 10px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h1 span { color: var(--accent-hi); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font: 600 .8rem/1 var(--body);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-dk);
  margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.4rem; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border: 2px solid var(--accent);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(28, 31, 36, .96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.topbar__in { display: flex; align-items: center; gap: 2rem; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--accent); color: var(--accent-ink);
  font: 800 1.15rem/1 var(--head); border-radius: 4px;
}
.logo__text { font: 700 1.45rem/1 var(--head); letter-spacing: .06em; white-space: nowrap; }
.logo__text b { color: var(--accent-hi); font-weight: 800; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent-hi); }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.tags { color: var(--accent-hi); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.lead { color: #c9ccd2; font-size: 1.08rem; max-width: 34em; }
.hero__contact { display: grid; gap: 14px; margin-top: 2rem; }
.contact-row {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; padding: 14px 18px;
  background: var(--ink-2); border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: background .15s;
}
.contact-row:hover { background: #343943; }
.contact-row svg { width: 28px; height: 28px; fill: var(--accent-hi); flex: none; }
.contact-row b { display: block; font-size: 1.2rem; word-break: break-all; }
.contact-row small { color: #a7acb5; font-size: .88rem; }

.hero__visual { position: relative; }

/* Service badges stacked on the right edge of the hero photo */
.badges {
  position: absolute; right: -44px; bottom: 28px; z-index: 3;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  pointer-events: none; /* labels only – the slider stays draggable underneath */
}
.badge {
  background: var(--accent); color: var(--accent-ink);
  padding: 9px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.badge b { font: 800 1.3rem/1 var(--head); text-transform: uppercase; min-width: 4.3em; }
.badge span { font-size: .7rem; font-weight: 600; line-height: 1.3; }

/* Before / after slider */
.ba {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: #3a3f48;
  user-select: none; -webkit-user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; pointer-events: none; z-index: 1;
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.05em;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.ba__label {
  position: absolute; top: 16px; z-index: 1; pointer-events: none;
  background: rgba(28,31,36,.78); color: #fff;
  font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em;
  padding: 7px 11px; border-radius: 4px;
}
.ba__label--before { left: 16px; }
.ba__note {
  position: absolute; left: 12px; bottom: 10px; z-index: 1; pointer-events: none;
  font-size: .68rem; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.ba__label--after { right: 16px; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 2; touch-action: pan-y;
}
.ba__range:focus-visible ~ .ba__handle span, .ba:has(.ba__range:focus-visible) .ba__handle span { outline: 3px solid var(--accent); }

/* Photo placeholders */
.photo {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background-color: #3a3f48;
  background-size: cover; background-position: center;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
}
.photo--hero { aspect-ratio: 4 / 5; }
.photo__ph {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  color: #9aa0aa; font-size: .9rem; padding: 1rem;
}
.photo__ph small { opacity: .7; font-family: ui-monospace, monospace; }
.photo.has-img .photo__ph { display: none; }

/* Sections */
.section { padding: 96px 0; }
.section__lead { color: var(--muted); max-width: 40em; margin-bottom: 2.5rem; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .section__lead { color: #a7acb5; }
.section--accent { background: var(--accent); color: var(--accent-ink); }
.section--accent .eyebrow { color: var(--accent-ink); }
.hero .eyebrow, .section--dark .eyebrow { color: var(--accent-hi); }
.section--accent .btn--ghost { border-color: var(--accent-ink); color: var(--accent-ink); }
.section--accent .section__lead { color: var(--ink-2); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 2rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 26px;
  position: relative;
}
.card--feature { border-top: 4px solid var(--accent); }
.card__num { font: 800 1rem/1 var(--head); color: var(--accent-dk); letter-spacing: .1em; }
.card h3 { margin-top: .5rem; }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.card li { padding-left: 1.4rem; position: relative; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; background: var(--accent); border-radius: 2px;
}

/* Projects */
.projects { display: grid; gap: 28px; }
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 32px;
  background: var(--ink-2); border-radius: var(--radius); padding: 28px;
}
.project__num { font: 800 1rem/1 var(--head); color: var(--accent-hi); letter-spacing: .1em; }
.project h3 { font-size: 1.7rem; margin: .5rem 0 .7rem; }
.project__info p { color: #b9bec6; font-size: .95rem; }
.project__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project__tags li {
  font-size: .78rem; padding: 4px 10px; border-radius: 99px;
  border: 1px solid #4a505b; color: #d6d9de;
}
.project__photos {
  display: grid; gap: 8px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 400px;
}
.project__photos a { display: block; overflow: hidden; border-radius: 6px; background: #3a3f48; min-width: 0; }
.project__photos a:first-child { grid-row: span 2; }
.project__photos a:nth-child(4) { grid-column: 2 / span 2; }
.project__photos img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.project__photos a:hover img { transform: scale(1.04); }
.project__photos a[hidden] { display: none; } /* extra photos: only in the lightbox */
.project__photos a[data-more] { position: relative; }
.project__photos a[data-more]::after {
  content: attr(data-more);
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20, 22, 26, .55); color: #fff;
  font: 800 2rem/1 var(--head); letter-spacing: .02em;
  transition: background .2s;
}
.project__photos a[data-more]:hover::after { background: rgba(20, 22, 26, .35); }
.project__info p.project__note {
  display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0;
  font-size: .75rem; font-weight: 600; color: #8a909a;
}
.project__note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.project__info p.project__note--real { color: var(--accent-hi); }


/* Language toggle */
.lang { display: flex; border: 1px solid #4a505b; border-radius: 6px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: #c9ccd2; cursor: pointer;
  font: 600 .8rem/1 var(--body); padding: 8px 10px; letter-spacing: .05em;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* "Zobrazit vše" button in the bottom-right corner of each category's photos */
.project__photos { position: relative; }
.gallery-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  background: rgba(20, 22, 26, .82); color: #fff; border: 1px solid rgba(255,255,255,.18);
  font: 600 .85rem/1 var(--body);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: background .15s, color .15s;
}
.gallery-btn svg { width: 16px; height: 16px; fill: currentColor; }
.gallery-btn:hover, .gallery-btn:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gallery-btn__count {
  font-size: .72rem; padding: 3px 7px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
}
.gallery-btn:hover .gallery-btn__count { background: var(--accent-ink); color: var(--accent); }

/* Gallery dialog */
.gallery {
  border: 0; padding: 0; margin: auto;
  width: min(1140px, 100vw - 48px); height: min(860px, 100vh - 48px);
  max-width: none; max-height: none;
  background: #15171b; color: #fff; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.gallery[open] { display: flex; flex-direction: column; }
.gallery::backdrop { background: rgba(10, 11, 13, .8); backdrop-filter: blur(3px); }
.gallery__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; border-bottom: 1px solid #2a2e35; flex: none;
}
.gallery__bar h2 { margin: 0; font-size: 1.8rem; }
.gallery .gallery__close { position: static; transform: none; flex: none; }
.gallery__body { overflow-y: auto; padding: 20px 24px 32px; flex: 1; }
.gallery__note { margin: 4px 0 0; font-size: .78rem; font-weight: 600; color: #8a909a; }
.gallery__note.is-real { color: var(--accent-hi); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gallery__grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: #2a2e35; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery__grid a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 11, 13, .92); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox__btn {
  position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lightbox__btn:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: s;
}
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font: 800 2.6rem/1 var(--head); color: var(--accent); display: block; margin-bottom: .4rem;
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: .95rem; }

.pluses {
  list-style: none; padding: 26px 30px; margin: 3rem 0 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px;
}
.pluses li { padding-left: 1.8rem; position: relative; font-weight: 500; }
.pluses li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__info {
  margin: 0; background: var(--ink); color: #fff;
  padding: 28px 30px; border-radius: var(--radius);
  display: grid; gap: 16px;
}
.contact__info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-hi); }
.contact__info dd { margin: 2px 0 0; }

.footer { background: #15171b; color: #8a909a; font-size: .85rem; padding: 26px 0; }
.footer__in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 720px) {
  .gallery-btn { right: 6px; bottom: 6px; padding: 6px 8px; gap: 6px; }
  .gallery-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* screen readers only */
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .gallery__bar h2 { font-size: 1.5rem; }
  .gallery { width: calc(100vw - 20px); height: calc(100vh - 20px); }
  .gallery__bar { padding: 10px 14px; }
  .gallery__body { padding: 14px 14px 24px; }
  .nav { display: none; }
  .topbar__in { justify-content: space-between; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 64px 0; }
  .cards, .pluses, .steps { grid-template-columns: minmax(0, 1fr); }
  .topbar__in { gap: 10px; }
  .topbar .lang { margin-left: auto; }
  .project { padding: 20px; }
  .project__photos { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 200px 90px; height: auto; }
  .project__photos a:first-child { grid-row: auto; grid-column: 1 / -1; }
  .project__photos a:nth-child(4) { grid-column: auto; }
  .contact-row b { font-size: 1.05rem; word-break: normal; overflow-wrap: anywhere; }
  .badges { position: static; margin-top: 10px; flex-direction: row; gap: 6px; }
  .badge { flex: 1; justify-content: center; padding: 8px 6px; }
  .badge b { font-size: 1.05rem; min-width: 0; }
  .badge span { display: none; }
  .card { padding: 24px 22px 20px; }
}
