/* ============================================================
   TRUHLÁŘSTVÍ ŠTURC — Design systém
   Řemeslo · teplo · poctivost · masiv
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Barvy */
  --bg:            #FAF7F0;   /* krémová off-white, teplá */
  --bg-alt:        #F0EBE0;   /* lehce tmavší krémová */
  --ink:           #2C2620;   /* tmavě hnědo-černá */
  --ink-soft:      #6B5D4F;   /* středně hnědá-šedá */
  --walnut:        #5A3825;   /* ořech, hluboká hnědá */
  --oak:           #8B5E3C;   /* dub, světlejší teplá hnědá */
  --forest:        #2D4A3E;   /* tmavě zelená — CTA */
  --forest-deep:   #243d33;
  --border:        #D4C9B5;   /* světle béžová */
  --border-soft:   #E3DACA;

  /* Typografie */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Rytmus */
  --container: 1200px;
  --section-y: clamp(60px, 9vw, 120px);
  --radius:    10px;
  --radius-sm: 8px;

  /* Pohyb */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Stíny */
  --sh-sm: 0 2px 8px rgba(44,38,32,.06);
  --sh-md: 0 4px 16px rgba(44,38,32,.08), 0 1px 4px rgba(44,38,32,.04);
  --sh-lg: 0 12px 40px rgba(44,38,32,.10), 0 4px 12px rgba(44,38,32,.06);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-leaving { opacity: 0; transition: opacity .2s ease; }
/* jemná paper textura přes celou stránku */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 3. Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.6vw, 72px); }
h2 { font-size: clamp(28px, 4.4vw, 48px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.18; }
p  { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak);
  font-weight: 500;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--forest { background: var(--forest); color: #FAF7F0; }
.stack > * + * { margin-top: 1.25rem; }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 + p { margin-top: 18px; }

.hairline { height: 1px; background: var(--border); border: 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 52px;
}
.btn--cta {
  background: var(--forest);
  color: #FAF7F0;
  box-shadow: 0 6px 18px -10px rgba(45,74,62,.7);
}
.btn--cta:hover { background: var(--forest-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(45,74,62,.75); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--outline:hover { border-color: var(--walnut); color: var(--walnut); transform: translateY(-2px); }
.btn--light { background: #FAF7F0; color: var(--forest); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

.arrow-link {
  font-weight: 600;
  color: var(--walnut);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.arrow-link:hover { gap: 0.7em; color: var(--oak); }

/* ---------- 6. Fotoplaceholdery ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-alt);
  background-image:
    repeating-linear-gradient(115deg,
      rgba(90,56,37,.045) 0px,
      rgba(90,56,37,.045) 2px,
      transparent 2px,
      transparent 9px),
    repeating-linear-gradient(115deg,
      rgba(139,94,60,.05) 0px,
      rgba(139,94,60,.05) 1px,
      transparent 1px,
      transparent 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--oak);
  min-height: 220px;
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  padding: 9px 14px;
  margin: 16px;
  background: rgba(250,247,240,.78);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--walnut);
  max-width: 84%;
  backdrop-filter: blur(2px);
}
.ph--hero  { min-height: 100%; border-radius: var(--radius); }
.ph--wide  { aspect-ratio: 16 / 10; }
.ph--card  { aspect-ratio: 4 / 3; min-height: 0; }
.ph--square{ aspect-ratio: 1 / 1; min-height: 0; }
.ph--tall  { aspect-ratio: 4 / 5; min-height: 0; }

/* jemné zvětšení fotky v rámci ořezu */
.media-zoom { overflow: hidden; border-radius: var(--radius); box-shadow: var(--sh-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.media-zoom .ph { border-radius: 0; border: 0; transition: transform .5s var(--ease); height: 100%; }
.media-zoom { position: relative; }
.media-zoom:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.media-zoom:hover .ph, .media-zoom:hover .photo { transform: scale(1.03); }

/* clip-path odhalení obrázku při scrollu */
.reveal-img { opacity: 1; transform: none; clip-path: inset(0 101% 0 0); transition: clip-path .85s var(--ease); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); }

/* ============================================================
   NAVIGACE
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,240,.85);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250,247,240,.92);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -16px rgba(44,38,32,.5);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  color: var(--walnut);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav__logo span { color: var(--ink); }
.nav__menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.nav__links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--walnut);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--walnut); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--walnut); }

.nav__toggle { display: none; }

/* Mobilní menu */
@media (max-width: 880px) {
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    z-index: 120;
  }
  .nav__toggle span {
    display: block;
    width: 22px; height: 2px;
    margin-inline: auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
  }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 104px 32px 40px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -30px 0 60px -30px rgba(44,38,32,.4);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  body.menu-open .nav__menu { transform: translateX(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a {
    font-size: 19px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav__links a::after { display: none; }
  .nav__menu .btn { margin-top: 28px; }

  .nav__scrim {
    position: fixed; inset: 0;
    background: rgba(44,38,32,.4);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
    z-index: 90;
  }
  body.menu-open .nav__scrim { opacity: 1; visibility: visible; }
}

/* ============================================================
   HERO (Domů)
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(90vh - 76px);
  padding-block: clamp(48px, 7vw, 88px);
}
.hero__copy { display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.hero__copy h1 { margin-top: 22px; }
.hero__copy .lead { margin-top: 24px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--oak); display: inline-block; }
.hero__media { min-height: 420px; }

/* ---------- Karty „Co vyrábíme" ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.card-cat { grid-column: span 2; }
/* první řádek 3 karty (span 2 = 3 sloupce), druhý řádek 2 karty vycentrované */
.card-cat:nth-child(4) { grid-column: 2 / span 2; }
.card-cat:nth-child(5) { grid-column: 4 / span 2; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.section--alt .card { background: #FBF9F3; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--oak); }
.card__media .ph { border: 0; border-radius: 0; }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 23px; }
.card__body p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.card__body .arrow-link { margin-top: 18px; }

/* ---------- Proč my / Hodnoty (premium) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.value__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(64px, 8vw, 96px);
  line-height: .9;
  color: var(--walnut);
}
.value__line { display: block; width: 40px; height: 1px; background: var(--walnut); opacity: .6; margin: 16px 0 14px; }
.value__label { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.value h3 { display: block; margin-top: 10px; }
.value p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Galerie preview ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.gallery__item { position: relative; cursor: pointer; }
.gallery__item .ph { border-radius: var(--radius); }
.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(44,38,32,.72), rgba(44,38,32,0) 55%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  border-radius: var(--radius);
  pointer-events: none;
}
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #FAF7F0;
  letter-spacing: 0.02em;
}

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-banner h2 { color: #FAF7F0; max-width: 720px; margin-inline: auto; }
.cta-banner p { color: rgba(250,247,240,.82); margin-top: 18px; font-size: clamp(17px,1.5vw,20px); }
.cta-banner .btn { margin-top: 34px; }

/* ============================================================
   PODSTRÁNKY — společné
   ============================================================ */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-hero--lg { min-height: 60vh; }
.page-hero--md { min-height: 44vh; }
.page-hero--sm { min-height: 40vh; }
.page-hero .container { padding-block: clamp(48px, 8vw, 96px); }
.page-hero h1 { margin-top: 18px; }
.page-hero .lead { margin-top: 20px; max-width: 620px; }

/* Alternující řádky (Co vyrábíme) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(64px, 9vw, 110px); }
.feature-row__media { min-height: 360px; }
.feature-row__copy h2 { font-size: clamp(26px, 3.4vw, 40px); }
.feature-row__copy .eyebrow { display: block; margin-bottom: 14px; }
.feature-row__copy p { margin-top: 16px; color: var(--ink-soft); }
.feature-row__copy .arrow-link { margin-top: 26px; display: inline-flex; }
.feature-row.is-reversed .feature-row__media { order: 2; }

/* ---------- Realizace galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 48px); }
.chip {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--oak); color: var(--walnut); }
.chip.is-active { background: var(--walnut); border-color: var(--walnut); color: #FAF7F0; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.work-card { cursor: pointer; transition: transform .25s var(--ease); }
.work-card.is-hidden { display: none; }
.work-card .media-zoom { border: 1px solid var(--border); }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 12px; }
.work-card__meta strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.work-card__meta .work-card__tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--oak); white-space: nowrap; }
.work-card__place { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(28,24,20,.86);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox__inner {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  box-shadow: var(--sh-lg);
}
.lightbox__media { min-height: 380px; }
.lightbox__media .ph { height: 100%; border: 0; border-radius: 0; }
.lightbox__info { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.lightbox__info .eyebrow { display: block; margin-bottom: 14px; }
.lightbox__info h3 { font-size: 28px; }
.lightbox__info p { margin-top: 14px; color: var(--ink-soft); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(250,247,240,.92);
  color: var(--ink);
  border: 0;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease);
}
.lightbox__close:hover { transform: rotate(90deg); }

/* ---------- O dílně ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.story__media { min-height: 440px; }
.story__copy h2 { margin-bottom: 22px; }
.story__copy p + p { margin-top: 18px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--forest); }
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,74,62,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--file input { padding: 11px 14px; cursor: pointer; }
.form__note { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.form__success {
  display: none;
  padding: 18px 20px;
  background: rgba(45,74,62,.08);
  border: 1px solid rgba(45,74,62,.3);
  border-radius: var(--radius-sm);
  color: var(--forest);
  font-weight: 500;
}
.form__success.is-visible { display: block; }

.contact-info { display: grid; gap: 6px; }
.contact-info .info-block { padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-info .info-block:first-child { padding-top: 0; }
.info-block .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--oak); }
.info-block .value { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; margin-top: 6px; display: inline-block; }
.info-block a.value { color: var(--walnut); transition: color .2s var(--ease); }
.info-block a.value:hover { color: var(--oak); }
.info-block .value--mono { font-family: var(--font-mono); font-size: 17px; font-weight: 500; }
.map-embed { margin-top: 26px; }
.map-embed .ph { aspect-ratio: 16 / 9; min-height: 0; }
.map-embed iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--radius); display: block; box-shadow: var(--sh-md); }

/* ============================================================
   PATIČKA
   ============================================================ */
.footer { background: var(--ink); color: rgba(250,247,240,.72); padding-block: clamp(56px, 7vw, 80px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(36px, 5vw, 64px); }
.footer__brand .logo { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #FAF7F0; }
.footer__brand .logo span { color: var(--oak); }
.footer__brand p { margin-top: 16px; max-width: 320px; font-size: 15px; line-height: 1.65; }
.footer__brand .ico { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: rgba(250,247,240,.5); }
.footer h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(250,247,240,.5); font-weight: 600; margin-bottom: 18px; }
.footer__links a { display: block; padding: 7px 0; color: rgba(250,247,240,.78); font-size: 15px; transition: color .2s var(--ease); }
.footer__links a:hover { color: #FAF7F0; }
.footer__contact .row { padding: 7px 0; font-size: 15px; }
.footer__contact a { color: rgba(250,247,240,.78); transition: color .2s var(--ease); }
.footer__contact a:hover { color: #FAF7F0; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(250,247,240,.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: rgba(250,247,240,.8);
  transition: all .2s var(--ease);
}
.footer__social a:hover { background: rgba(250,247,240,.1); border-color: rgba(250,247,240,.4); color: #FAF7F0; }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 64px);
  border-top: 1px solid rgba(250,247,240,.12);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: rgba(250,247,240,.5);
}
.footer__bottom a { color: rgba(250,247,240,.7); border-bottom: 1px solid rgba(250,247,240,.25); padding-bottom: 1px; transition: color .2s var(--ease); }
.footer__bottom a:hover { color: #FAF7F0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card-cat { grid-column: span 2; }
  .card-cat:nth-child(4) { grid-column: span 2; }
  .card-cat:nth-child(5) { grid-column: span 2; }
  .card-cat:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { order: -1; min-height: 300px; aspect-ratio: 16/10; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reversed .feature-row__media { order: 0; }
  .feature-row__media { min-height: 280px; aspect-ratio: 16/10; }
  .story { grid-template-columns: 1fr; }
  .story__media { min-height: 300px; aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 36px; }
  .lightbox__inner { grid-template-columns: 1fr; max-width: 480px; }
  .lightbox__media { min-height: 260px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card-cat,
  .card-cat:nth-child(4),
  .card-cat:nth-child(5) { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none !important; }
}

/* ============================================================
   PHASE 2 — PREMIUM KOMPONENTY
   ============================================================ */

/* ---------- Dekorativn\u00ed odd\u011blova\u010d ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 0;
  background: var(--walnut);
  opacity: .55;
  transition: width .85s var(--ease);
}
.divider.is-visible::before, .divider.is-visible::after { width: 60px; }
.divider .mark { font-size: 11px; color: var(--oak); transform: translateY(-1px); }
.divider--start { margin-bottom: 28px; }

/* ---------- Drop cap ---------- */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 4.6em;
  line-height: .72;
  float: left;
  color: var(--walnut);
  margin: 10px 14px 0 0;
}

/* ---------- Pull quote ---------- */
.pullquote {
  position: relative;
  max-width: 820px;
  margin: clamp(56px, 9vw, 100px) auto;
  text-align: center;
  padding: 40px 24px 24px;
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: clamp(-30px, -3vw, -10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(140px, 22vw, 220px);
  line-height: 1;
  color: var(--walnut);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.pullquote p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(25px, 3.6vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Feature list (od\u0159\u00e1\u017eky) ---------- */
.feat-list { display: grid; gap: 12px; margin-top: 26px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink); line-height: 1.5; }
.feat-list li::before { content: "\25C6"; color: var(--oak); font-size: 9px; line-height: 1; margin-top: 7px; flex: none; }

/* ---------- Animovan\u00fd underline (linky v textu) ---------- */
.ulink {
  color: var(--walnut);
  font-weight: 600;
  background-image: linear-gradient(var(--walnut), var(--walnut));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .25s var(--ease);
}
.ulink:hover { background-size: 100% 1.5px; }

/* ---------- Proces stepper ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 8px; }
.step { position: relative; text-align: center; }
.step__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--walnut);
  color: #FAF7F0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  box-shadow: var(--sh-md);
}
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 1px;
  background: var(--walnut);
  opacity: .35;
}
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 6px 20px; text-align: left; padding-bottom: 34px; }
  .step__num { margin: 0; }
  .step h3, .step p { grid-column: 2; }
  .step:not(:last-child)::after { top: 60px; left: 30px; width: 1px; height: calc(100% - 60px); }
}

/* ---------- Kontakt: form card + dropzone + checkbox ---------- */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--sh-md);
}
.form-card__head { margin-bottom: 28px; }
.form-card__head h2 { font-size: clamp(26px, 3vw, 32px); }
.form-card__head p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 26px 20px;
  text-align: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--oak); background: rgba(139,94,60,.05); }
.dropzone input[type="file"] { display: none; }
.dropzone__icon { font-size: 22px; color: var(--oak); }
.dropzone__text { font-size: 15px; margin-top: 6px; }
.dropzone__hint { font-size: 12.5px; opacity: .8; margin-top: 4px; }
.dropzone__previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dropzone__previews:empty { display: none; }
.thumb {
  width: 66px; height: 66px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__name { font-family: var(--font-mono); font-size: 8.5px; color: var(--oak); padding: 4px; text-align: center; line-height: 1.2; word-break: break-all; }
.thumb__remove {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  border: 0; border-radius: 50%;
  background: rgba(44,38,32,.78); color: #fff;
  font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.checkbox input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--forest); flex: none; cursor: pointer; }
.checkbox a { color: var(--walnut); text-decoration: underline; text-underline-offset: 2px; }

/* Tla\u010d\u00edtko \u2014 loading stav */
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--cta.is-loading { pointer-events: none; opacity: .9; }

/* Kontaktn\u00ed karta (prav\u00fd sloupec) */
.contact-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: clamp(24px, 3vw, 32px); }
.contact-card .info-block { padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-card .info-block:first-child { padding-top: 0; }
.contact-card .info-block:last-of-type { border-bottom: 0; }
.info-block .sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Magnetick\u00e9 CTA ---------- */
.btn--cta, .btn--light { transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }

/* Hero jemn\u00e9 zmen\u0161en\u00ed p\u0159i scrollu */
.hero { transform-origin: top center; will-change: transform; }

@media (max-width: 760px) {
  .form-card { padding: 24px; }
}

/* ---------- Lightbox navigace + hover hint ---------- */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(250,247,240,.94);
  color: var(--ink);
  border: 0;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
  transition: transform .2s var(--ease);
  z-index: 2;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: clamp(8px, 3vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 3vw, 28px); }
@media (max-width: 880px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 20px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
.work-card { position: relative; }
.work-card .media-zoom::after {
  content: "+";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(250,247,240,.92);
  color: var(--walnut);
  font-size: 26px; font-weight: 400; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.work-card:hover .media-zoom::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ============================================================
   PHASE 3 — FOTOGRAFIE (stock treatment systém)
   ============================================================ */
.photo {
  display: block;
  width: 100%;
  object-fit: cover;
  background: var(--bg-alt);
  /* jednotný warm color grade nap-říč webem */
  filter: saturate(.85) contrast(1.05) brightness(.98) sepia(.05);
  transition: filter .35s var(--ease), transform .5s var(--ease);
}
.photo.ph--hero  { height: 100%; min-height: 320px; }
.hero__main .photo { min-height: 420px; }
.feature-row__media .photo { min-height: 380px; }

/* Jednotný poměr 4:3 pro fotky služeb na „Co vyrábíme" — nezávisle na délce textu */
.feature-row__media .media-zoom { height: auto !important; aspect-ratio: 4 / 3; }
.feature-row__media .media-zoom .photo,
.feature-row__media .photo.ph--hero {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.story__media .photo { min-height: 440px; }
@media (max-width: 880px) {
  .hero__main .photo, .feature-row__media .photo, .story__media .photo { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
}
.photo.ph--card  { aspect-ratio: 4 / 3; height: auto; }
.photo.ph--square{ aspect-ratio: 1 / 1; height: auto; }
.photo.ph--wide  { aspect-ratio: 16 / 10; height: auto; }
.photo.ph--tall  { aspect-ratio: 4 / 5; height: auto; }

.gallery__item .photo { border-radius: var(--radius); }
.card__media { overflow: hidden; }
.card__media .photo { aspect-ratio: 4 / 3; }

/* hover: vrátí jas, jemně prosvětlí */
.media-zoom:hover .photo,
.gallery__item:hover .photo,
.work-card:hover .photo {
  filter: saturate(.9) contrast(1.03) brightness(1) sepia(.03);
}
.gallery__item:hover .photo { transform: scale(1.03); }

/* cinematický přechod přes velké fotografie (hero / feature / příběh) */
.hero__media .media-zoom::after,
.feature-row__media .media-zoom::after,
.story__media .media-zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(44,38,32,0) 58%, rgba(44,38,32,.4) 100%);
  mix-blend-mode: multiply;
}

/* Lightbox — reálný obrázek */
.lightbox__media .photo { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* ---------- Hero full-bleed (Phase 4) ---------- */
.hero-full {
  position: relative;
  min-height: min(90vh, 840px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-full__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform-origin: center;
  will-change: transform;
}
.hero-full__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, rgba(28,23,18,.88) 0%, rgba(28,23,18,.66) 38%, rgba(28,23,18,.22) 70%, rgba(28,23,18,.04) 100%),
    linear-gradient(0deg, rgba(28,23,18,.55) 0%, rgba(28,23,18,0) 40%);
}
.hero-full__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(64px, 12vh, 130px); }
.hero-full__copy { max-width: 660px; }
.hero-full__copy .eyebrow { color: #d8b48c; }
.hero-full__copy h1 { color: #FAF7F0; margin-top: 22px; text-shadow: 0 2px 36px rgba(0,0,0,.28); }
.hero-full__copy .lead { color: rgba(250,247,240,.88); margin-top: 24px; max-width: 540px; }
.hero-full .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-full .btn--outline { color: #FAF7F0; border-color: rgba(250,247,240,.45); background: rgba(250,247,240,.04); }
.hero-full .btn--outline:hover { border-color: #FAF7F0; color: #FAF7F0; background: rgba(250,247,240,.12); }
.hero-full .hero__trust { color: rgba(250,247,240,.82); margin-top: 30px; }
.hero-full .hero__trust .dot { background: #d8b48c; }
.hero-full__badge {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 40px);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--walnut);
  background: rgba(250,247,240,.92);
  border: 1px solid rgba(250,247,240,.5);
  border-radius: 100px;
  padding: 9px 16px;
  box-shadow: var(--sh-md);
  backdrop-filter: blur(4px);
}
.hero-full__badge strong { color: var(--ink); font-weight: 700; }
@media (max-width: 600px) {
  .hero-full { min-height: 86vh; }
  .hero-full__badge { display: none; }
}

/* ---------- O dílně: majitel ---------- */
.owner-fig { margin: 0; display: flex; flex-direction: column; }
.owner-fig .media-zoom { aspect-ratio: 4 / 5; max-height: 560px; }
.owner-cap { margin-top: 16px; font-size: 15px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: .01em; }
.owner-cap strong { color: var(--walnut); font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0; }
@media (max-width: 880px) {
  .owner-fig .media-zoom { aspect-ratio: 4 / 3; max-height: none; }
}

/* ---------- Co vyrábíme: další služby ---------- */
.extra-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.extra-service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.extra-service:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--oak); }
.extra-service__num { display: block; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 42px; line-height: 1; color: var(--oak); }
.extra-service h3 { font-size: 21px; margin-top: 14px; }
.extra-service p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 880px) { .extra-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .extra-services { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILNÍ DOLAĎENÍ (≤600px / ≤400px / landscape)
   ============================================================ */
@media (max-width: 600px) {
  h1 { font-size: clamp(32px, 9vw, 40px); }
  h2 { font-size: clamp(25px, 7vw, 34px); }
  .lead { font-size: 17px; }

  /* Hero tlačítka přes celou šířku, pod sebou */
  .hero__actions, .hero-full .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn, .hero-full .hero__actions .btn { width: 100%; }

  /* Hero full — čitelná výška i na nízkém displeji, silnější overlay */
  .hero-full { min-height: 78vh; }
  .hero-full__overlay {
    background:
      linear-gradient(180deg, rgba(28,23,18,.55) 0%, rgba(28,23,18,.35) 45%, rgba(28,23,18,.78) 100%);
  }
  .hero-full__inner { padding-block: clamp(48px, 14vh, 96px); }

  /* CTA tlačítka v sekcích na plnou šířku */
  .cta-banner .btn, .form-card .btn--block { width: 100%; }

  /* Footer social → větší tap target */
  .footer__social a { width: 44px; height: 44px; }

  /* Lightbox přes celou šířku, info pod fotkou */
  .lightbox { padding: 12px; }
  .lightbox__inner { max-width: 100%; }

  /* Pull quote / drop cap zmírnit */
  .pullquote { padding: 28px 8px 16px; }
}

@media (max-width: 400px) {
  .nav__logo { font-size: 20px; }
  .container { padding-inline: 18px; }
  .work-card__meta { flex-direction: column; gap: 2px; }
  .work-card__meta .work-card__tag { white-space: normal; }
}

/* Landscape na nízkém telefonu — ať hero nezabírá celou výšku */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-full { min-height: 460px; }
  .page-hero--lg, .page-hero--md, .page-hero--sm { min-height: 0; }
}

/* Direct-edit overrides */