/* Inter — self-hosted (latin + latin-ext pro češtinu) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0A0A0A;
  --ink-soft: #595959;
  --rule: #E5E5E5;
  --bg: #FFFFFF;
  --bg-mute: #F5F5F4;
  --accent: #0A0A0A;
  --max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --col-gap: 2rem;
  --radius: 0px;
  --radius-sm: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sticky footer pattern */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* Vlastní barva označení textu */
::selection {
  background: #2D2D2D;
  color: var(--bg);
}

/* A11y: viditelný focus-ring pro klávesnicovou navigaci */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link pro screen reader / keyboard users */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  z-index: 100;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--col-gap);
  row-gap: 0;
  align-content: start;
}

/* Wrap obsahující grid služeb dostane vertikální mezeru mezi řádky */
.wrap:has(.svc-grid) {
  row-gap: 40px;
}

/* Default: každý direct child wrapu zabírá všechny 4 sloupce. */
.wrap > * {
  grid-column: 1 / -1;
  min-width: 0;
}

/* Vertical 4-column gridlines that run through the whole page */

.page {
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page > main {
  flex: 1;
}

.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  /*
    Pseudoelement má max-width 1320 (= wrap max-width včetně padding-gutter).
    Krajní linky jsou posunuté ven o col-gap/2 od okrajů contentu, takže mezi
    linkou a obsahem krajních sloupců je stejný rozestup jako mezi vnitřními
    linkami a sousedními sloupci (col-gap/2 z každé strany).
    3 vnitřní linky leží na středech gap mezer mezi 4 stejně-širokými sloupci.
  */
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    calc(var(--gutter) - var(--col-gap) / 2) 0,
    calc(25% + var(--gutter) / 2 - var(--col-gap) / 4) 0,
    50% 0,
    calc(75% - var(--gutter) / 2 + var(--col-gap) / 4) 0,
    calc(100% - var(--gutter) + var(--col-gap) / 2) 0;
  pointer-events: none;
  z-index: 0;
}

/*
  Vnější dekorativní linky pro široké viewporty.
  Krok 314px = col_w (282px) + col_gap (32px) — stejná vzdálenost jako mezi
  ostatními linkami v základním rozložení. Linky leží 3 kroky od středu.
*/
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    calc(50% - 942px) 0,
    calc(50% + 942px) 0;
}

.page > * { position: relative; z-index: 1; }

/* Na úzkých viewportech vnější linky nedávají smysl (jsou mimo zobrazení) */
@media (max-width: 1620px) {
  .page::after { display: none; }
}

@media (max-width: 900px) {
  .page::before { display: none; }
}

/* Header */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--col-gap);
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  /* bg jen mezi krajními vertikálními linkami (= o 1px dovnitř od linek) */
  background-image: linear-gradient(var(--bg), var(--bg));
  background-position: calc(var(--gutter) - var(--col-gap) / 2 + 1px) 0;
  background-size: calc(100% - 2 * (var(--gutter) - var(--col-gap) / 2 + 1px)) 100%;
  background-repeat: no-repeat;
}

.nav-inner::after {
  content: "";
  position: absolute;
  left: calc(var(--gutter) - var(--col-gap) / 2);
  right: calc(var(--gutter) - var(--col-gap) / 2);
  bottom: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}
.nav-inner > .brand    { grid-column: 1 / span 2; }
.nav-inner > .nav-meta { grid-column: 3 / span 1; }
.nav-inner > nav       { grid-column: 4 / span 1; }

/* Hamburger toggle - hidden na desktopu */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
}

.nav-toggle-label svg { width: 24px; height: 24px; pointer-events: none; }
.nav-toggle-label .icon-close { display: none; }
.nav-toggle:checked ~ .nav-toggle-label .icon-open  { display: none; }
.nav-toggle:checked ~ .nav-toggle-label .icon-close { display: block; }

.nav-meta {
  color: var(--ink-soft);
}

.nav-meta a { border-bottom: 1px solid transparent; }
.nav-meta a:hover { border-bottom-color: var(--ink); color: var(--ink); }

.nav-inner > nav { text-align: right; }
.nav-inner > nav .nav-links { justify-content: flex-end; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* Hero — full-bleed photo (with rounded corners, breathing room from edges) */

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  background-image: url("images/hero.jpg");
  border-radius: var(--radius);
  margin-top: clamp(2rem, 4vw, 4rem);
}

/* Scroll-driven decentní parallax na hero fotce */
@supports (animation-timeline: view()) {
  .hero-photo {
    animation: hero-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes hero-parallax {
    from { background-position: center 20%; }
    to   { background-position: center 80%; }
  }
}

/* Hero statement — 4-column grid, headline on left, contacts top-right */

.statement {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
}

.statement-grid {
  display: contents;
}

.statement-head {
  grid-column: 1 / span 3;
}

.statement-contacts {
  grid-column: 4 / span 1;
  align-self: end;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.statement-contacts .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}

.statement-contacts .person-mini {
  margin-bottom: 1.25rem;
}

.statement-contacts .person-mini strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.statement-contacts a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.statement-contacts a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.statement-contacts .person-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.display {
  font-size: clamp(2.2rem, 6vw, 4.95rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.display em {
  font-style: normal;
  color: var(--ink-soft);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 32rem;
}

/* Plain link with arrow */

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 1rem;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.arrow-link::after {
  content: "→";
}

.arrow-link:hover {
  gap: 0.85rem;
}

/* Sections */

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

section + section { padding-top: 0; }

.section-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 64px;
  gap: 2rem;
  padding-top: 40px;
}

/* Černá horizontální linka roztažená k vnitřním vertikálním krajním linkám
   (= o col-gap/2 za levým a pravým okrajem boxu). */
.section-head::before,
.svc-detail::before,
.company::before,
.people::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--col-gap) / -2);
  right: calc(var(--col-gap) / -2);
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-head .index {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Services grid (home) */

.svc-grid {
  display: contents;
}

.svc {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}

.svc-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-mute);
  border-radius: var(--radius-sm);
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

/* Scroll-driven zoom 100% → 104% na obrázky služeb */
@supports (animation-timeline: view()) {
  .svc-media img {
    animation: svc-zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes svc-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
  }
}

.svc-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.svc-label::after {
  content: "→";
  margin-left: auto;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-0.4rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc:hover .svc-label {
  color: var(--ink);
}

.svc:hover .svc-label::after {
  opacity: 1;
  transform: translateX(0);
}

.svc-media {
  transition: filter 0.3s ease;
}

.svc:hover .svc-media {
  filter: brightness(1.04);
}

/* Projekty (realizace) */

.projects-grid {
  display: contents;
}

.project {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.project-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-mute);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

@supports (animation-timeline: view()) {
  .project-media img {
    animation: svc-zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

.project-body {
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid var(--rule);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-height: 1.3em;
}

.project-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-meta span:last-child {
  color: var(--ink);
}

.projects-more {
  grid-column: 1 / -1;
  justify-self: end;
}

.projects-all > .wrap {
  row-gap: clamp(2rem, 4vw, 3rem);
}

/* About */

.about {
  background: var(--bg-mute);
  padding-top: 30px;
  padding-bottom: 60px;
  position: relative;
}

/* Bílé vertikální linky uvnitř about sekce, lícují s page-level liniemi */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  background-image:
    linear-gradient(to right, #DCDCDC 1px, transparent 1px),
    linear-gradient(to right, #DCDCDC 1px, transparent 1px),
    linear-gradient(to right, #DCDCDC 1px, transparent 1px),
    linear-gradient(to right, #DCDCDC 1px, transparent 1px),
    linear-gradient(to right, #DCDCDC 1px, transparent 1px);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    calc(var(--gutter) - var(--col-gap) / 2) 0,
    calc(25% + var(--gutter) / 2 - var(--col-gap) / 4) 0,
    50% 0,
    calc(75% - var(--gutter) / 2 + var(--col-gap) / 4) 0,
    calc(100% - var(--gutter) + var(--col-gap) / 2) 0;
  pointer-events: none;
  z-index: 0;
}

.about > .wrap {
  position: relative;
  z-index: 1;
}

.about-row {
  display: contents;
}
.about-eyebrow  { grid-column: 1 / span 1; grid-row: 1; padding-bottom: 2rem; }
.about-headline { grid-column: 1 / span 2; grid-row: 2; }
.about-text     { grid-column: 3 / span 1; grid-row: 2; }
.about-types    { grid-column: 4 / span 1; grid-row: 2; }

.about-row h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.about-row p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.about-types h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.about-types ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: types;
}

.about-types li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  counter-increment: types;
}

.about-types li::before {
  content: counter(types, decimal-leading-zero);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  min-width: 2rem;
}

.about-types li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Services page — sub-page hero */

.subhero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.subhero h1 {
  font-size: clamp(2.45rem, 7vw, 5.95rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.subhero .lede {
  margin-top: 2rem;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Service detail rows */

.svc-detail {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: var(--col-gap);
  padding: clamp(3rem, 6vw, 5rem) 0;
  align-items: start;
}

.svc-detail > .svc-detail-media { grid-column: 1 / span 1; }
.svc-detail > div:not(.svc-detail-media) { grid-column: 3 / -1; }

.svc-detail-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-mute);
  border-radius: var(--radius-sm);
}

.svc-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-detail-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.svc-detail h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.svc-detail .num {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.svc-detail p {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 38rem;
}

.svc-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-detail li {
  padding: 0.35rem 0;
  font-size: 1rem;
}

/* Contact */

.company {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: var(--col-gap);
  row-gap: 0;
}
.company > * { grid-column: 1 / -1; }

.company-name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.company-cols {
  display: grid;
  grid-template-columns: subgrid;
  column-gap: var(--col-gap);
  grid-column: 1 / -1;
  font-size: 1.0625rem;
}
.company-cols > div:first-child { grid-column: 1 / span 2; }
.company-cols > div:last-child  { grid-column: 3 / span 2; }

.company-cols address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.kvline {
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.kvline span,
.kvline a {
  display: inline;
}

.kvline a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.note {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

.people {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  column-gap: var(--col-gap);
  row-gap: 0;
}
.people > * { grid-column: 1 / -1; }

.people-grid {
  display: grid;
  grid-template-columns: subgrid;
  column-gap: var(--col-gap);
  grid-column: 1 / -1;
}
.people-grid > .person:first-child { grid-column: 1 / span 2; }
.people-grid > .person:last-child  { grid-column: 3 / span 2; }

.person h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.contact-li {
  margin: 0;
  padding: 0.25rem 0;
  font-size: 1.0625rem;
}

.contact-li a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.contact-li a:hover {
  border-bottom-color: var(--ink);
}

/* Footer */

.footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer > .wrap {
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  /* bg jen mezi krajními vertikálními linkami */
  background-image: linear-gradient(var(--bg), var(--bg));
  background-position: calc(var(--gutter) - var(--col-gap) / 2 + 1px) 0;
  background-size: calc(100% - 2 * (var(--gutter) - var(--col-gap) / 2 + 1px)) 100%;
  background-repeat: no-repeat;
}

.footer > .wrap::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) - var(--col-gap) / 2);
  right: calc(var(--gutter) - var(--col-gap) / 2);
  top: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.wrap > .footer-copy {
  grid-column: 1 / span 1;
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.wrap > .footer-brand {
  grid-column: 2 / span 1;
  color: var(--ink);
  font-weight: 500;
  align-self: center;
}

.wrap > .footer-credit {
  grid-column: 4 / span 1;
  align-self: center;
  justify-self: end;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-rajce {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.footer-rajce-icon {
  height: 1.25rem;
  width: auto;
  transition: transform 1000ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.footer-rajce:hover .footer-rajce-icon {
  transform: rotate(360deg);
}

/* 404 */

.error {
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) 0;
}

.error .code {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.error p {
  color: var(--ink-soft);
  margin: 1.5rem 0 2.5rem;
  font-size: 1.0625rem;
}

/* Responsive */

@media (max-width: 900px) {
  /* Na mobilu zachováme jen 2 krajní vertikální linky.
     Linky jsou 9px od kraje viewportu (uprostřed mezi okrajem a contentem). */
  body {
    background-image:
      linear-gradient(to right, var(--rule) 1px, transparent 1px),
      linear-gradient(to right, var(--rule) 1px, transparent 1px);
    background-size: 1px 100%, 1px 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: 9px 0, calc(100% - 10px) 0;
    background-attachment: fixed, fixed;
    background-color: var(--bg);
  }

  .page::before { display: none; }

  .about::before {
    background-image:
      linear-gradient(to right, #DCDCDC 1px, transparent 1px),
      linear-gradient(to right, #DCDCDC 1px, transparent 1px);
    background-size: 1px 100%, 1px 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: 9px 0, calc(100% - 10px) 0;
  }

  .wrap {
    padding-left: 18px;
    padding-right: 18px;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
  }

  /* Hlavička na mobile: bg na .nav (full viewport), content zůstává v padding wrap */
  .nav {
    background: var(--bg);
  }
  .nav-inner {
    background-image: none;
    grid-template-columns: 1fr auto;
    column-gap: 0;
  }
  .nav-inner > .brand    { grid-column: 1; justify-self: start; }
  .nav-inner > .nav-toggle-label { grid-column: 2; display: flex; justify-self: end; }

  /* Nav overlay: positioned absolute, vyklouzne pod headerem, neposouvá content */
  .nav-inner > nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    display: none;
    z-index: 30;
    padding: 0.5rem 18px 1rem;
  }
  .nav-toggle:checked ~ nav { display: block; }
  .nav-inner > nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0 0.5rem;
    font-size: 1.05rem;
  }

  /* Footer mobile: bg na .footer (full viewport), content zůstává v padding wrap */
  .footer {
    background: var(--bg);
  }
  .footer > .wrap {
    background-image: none;
  }

  .statement-head,
  .statement-contacts,
  .svc,
  .about-eyebrow,
  .about-headline,
  .about-text,
  .about-types,
  .company-cols > div,
  .people-grid > .person {
    grid-column: 1 / -1;
  }

  .svc-media {
    aspect-ratio: 16 / 9;
  }

  .project { grid-column: span 2; }

  /* Mobile: "Všechny realizace" tlačítko vycentrovat */
  .projects-more {
    justify-self: center;
  }

  /* Mobile HP kontakty: Šnajdr + Varha vedle sebe ve 2 sloupcích */
  .statement-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0.75rem;
  }
  .statement-contacts .label {
    grid-column: 1 / -1;
  }
  .statement-contacts .person-mini {
    margin-bottom: 0;
  }

  /* Hero foto na full bleed (= přes celou šířku viewportu) + širokoúhlý poměr */
  .hero-photo {
    margin-left: -18px;
    margin-right: -18px;
    width: calc(100% + 36px);
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  /* Vertikální linky překryjí i hero foto (poloprůhledné bílé pro čitelnost) */
  .hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to right, rgba(255,255,255,0.65) 1px, transparent 1px),
      linear-gradient(to right, rgba(255,255,255,0.65) 1px, transparent 1px);
    background-position: 9px 0, calc(100% - 10px) 0;
    background-size: 1px 100%, 1px 100%;
    background-repeat: no-repeat, no-repeat;
    pointer-events: none;
  }

  .about-eyebrow,
  .about-headline,
  .about-text,
  .about-types {
    grid-row: auto;
  }

  .about-eyebrow { padding-bottom: 0.5rem; }

  .svc-detail {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 40px;
  }
  .svc-detail > .svc-detail-media,
  .svc-detail > div:not(.svc-detail-media) {
    grid-column: 1 / -1;
  }

  /* Section-head na mobile: méně padding nahoře, žádný margin dole */
  .section-head {
    padding-top: 40px;
    margin-bottom: 0;
  }

  .company,
  .people,
  .company-cols,
  .people-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-meta { display: none; }

  /* Mobile footer: copy vlevo, brand uprostřed, credit vpravo - vše na jednom řádku */
  .footer > .wrap {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 1rem;
  }
  .wrap > .footer-copy {
    grid-column: 1;
    justify-self: start;
  }
  .wrap > .footer-brand {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }
  .wrap > .footer-credit {
    grid-column: 3;
    justify-self: end;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .nav-links { gap: 1.25rem; font-size: 0.9rem; }
}
