/* ==========================================================================
   Vít Jirků – fotograf

   Web je postavený jako fotografická kniha: stránka je papír (baryta),
   text je inkoust (grafit), závěrečná kapitola je vázaná v plátně.
   Jediný výrazný pohyb je „vyvolání“ úvodní fotografie po načtení.
   ========================================================================== */

/* ---------- Písma (uložená na webu, nenačítají se z Googlu) ---------- */
@font-face {
  font-family: 'Imbue';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/imbue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Imbue';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/imbue-latin.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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.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;
}

/* ---------- Tokeny ---------- */
:root {
  /* barvy */
  --baryta: #edede9;          /* fotografický papír – podklad stránky */
  --graphite: #1a1c1b;        /* inkoust – text */
  --selenium: #5d605c;        /* tónovaná šeď – vedlejší text */
  --fixer: #d9d9d3;           /* jemné linky, místo pro nenačtené fotky */
  --rule: rgba(26, 28, 27, 0.16);
  --cloth: #1b2423;           /* plátěná vazba – kontakt a patička */
  --cloth-ink: #e4e7e3;
  --cloth-muted: #9aa49f;
  --cloth-rule: rgba(228, 231, 227, 0.2);

  /* písmo */
  --font-display: 'Imbue', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --fs-caption: 0.8125rem;                              /* 13 px */
  --fs-ui: 0.9375rem;                                   /* 15 px */
  --fs-body: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);    /* 16–18 px */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem); /* 19–23 px */

  /* rozvržení */
  --max: 1680px;
  --margin: clamp(16px, 3.4vw, 56px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --header-h: 72px;
  --section: clamp(120px, 14vw, 232px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--baryta);
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-stretch: 106%;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--graphite); color: var(--baryta); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--graphite);
  color: var(--baryta);
  font-size: var(--fs-ui);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s;
}
.skip-link:focus { transform: none; }

/* ---------- Mřížka ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Odkazy a tlačítka ---------- */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-underline-offset 0.3s var(--ease-out);
}
.link:hover { text-underline-offset: 0.45em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9em 1.75em;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--baryta);
  font-size: var(--fs-ui);
  font-stretch: 112%;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.button:hover { background: transparent; color: var(--graphite); }

.button--light {
  border-color: var(--cloth-ink);
  background: var(--cloth-ink);
  color: var(--cloth);
}
.button--light:hover { background: transparent; color: var(--cloth-ink); }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--margin);
  transition: background-color 0.4s, box-shadow 0.4s;
}

.site-header.is-scrolled {
  background: rgba(237, 237, 233, 0.9);
  box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  backdrop-filter: saturate(1.1) blur(14px);
}

.site-header.menu-open {
  background: var(--baryta);
  box-shadow: none;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}

.site-header.show-mark .wordmark,
.site-header.menu-open .wordmark,
.wordmark:focus-visible { opacity: 1; transform: none; }

.nav { display: flex; gap: clamp(22px, 2.8vw, 44px); }

.nav a {
  position: relative;
  padding-block: 6px;
  font-size: var(--fs-ui);
  font-stretch: 112%;
  text-decoration: none;
}

.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.nav a:hover::after,
.nav a[aria-current]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 0 0 16px;
  border: 0;
  background: none;
  font-size: var(--fs-ui);
  font-stretch: 112%;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 6vh) var(--margin) calc(var(--margin) + env(safe-area-inset-bottom));
  background: var(--baryta);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s 0.4s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s;
}

.menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  text-decoration: none;
}

.menu__foot { font-size: var(--fs-ui); font-stretch: 112%; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
}

@media (min-width: 901px) {
  .menu { display: none; }
}

/* ---------- Úvod ---------- */
/*
  Jméno leží přes spodní hranu fotografie. Horní část písmen je vytištěná
  „do fotky“ barvou papíru, spodní část inkoustem na papíře. Obě vrstvy
  mají stejný box, liší se jen ořezem; --split určuje, kde přesně v boxu
  jména leží hrana fotografie.
*/
.hero {
  --name-size: min(22.5vw, 36svh, 520px);
  --name-lh: 0.8;
  --split: 0.5;
  --pad-b: clamp(18px, 3.2svh, 40px);
  --name-box: calc(var(--name-size) * var(--name-lh));
  --below: calc(var(--name-box) * (1 - var(--split)) + var(--pad-b));
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1300px;
}

.hero__stage {
  position: absolute;
  inset: var(--header-h) var(--margin) 0;
}

.hero__print {
  position: absolute;
  inset: 0 0 var(--below);
  overflow: hidden;
  background: var(--baryta);
}

.hero__print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
}

/* na širokých obrazovkách fotku přiblížíme, aby pár stál vpravo od jména */
@media (min-width: 901px) and (min-aspect-ratio: 5/4) {
  .hero__print img { width: 135%; max-width: none; }
}

/* lehké „přepálení“ spodního okraje, aby jméno vynikalo – jako v temné komoře */
.hero__print::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(18, 20, 19, 0.42), rgba(18, 20, 19, 0));
  pointer-events: none;
}

.hero__name {
  position: absolute;
  left: 0;
  bottom: var(--pad-b);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--name-size);
  font-weight: 300;
  line-height: var(--name-lh);
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.hero__name-ink,
.hero__name-paper { display: block; }

.hero__name-ink {
  color: var(--graphite);
  clip-path: inset(calc(var(--split) * 100%) -0.2em -0.5em -0.2em);
}

.hero__name-paper {
  position: absolute;
  inset: 0;
  color: var(--baryta);
  clip-path: inset(-0.5em -0.2em calc((1 - var(--split)) * 100%) -0.2em);
}

.hero__meta {
  position: absolute;
  right: var(--margin);
  bottom: var(--pad-b);
  display: grid;
  gap: 6px;
  max-width: 30ch;
  font-size: var(--fs-body);
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 900px) {
  .hero {
    --name-size: min(40.5vw, 21svh);
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: var(--header-h);
  }

  /* na úzkém displeji jméno přesahuje přes horní hranu fotky, aby nezakrylo pár */
  .hero__stage {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    margin-inline: var(--margin);
  }

  .hero__name {
    position: relative;
    z-index: 1;
    order: -1;
    bottom: auto;
    margin-bottom: calc(var(--name-box) * -0.34);
  }

  .hero__name-ink { clip-path: none; }
  .hero__name-paper { display: none; }

  .hero__print {
    position: relative;
    inset: auto;
    height: clamp(380px, calc(100svh - var(--header-h) - var(--name-box) - 96px), 760px);
  }

  .hero__print::after { display: none; }
  .hero__print img { object-position: 52% 50%; }

  .hero__meta {
    position: static;
    padding: 18px var(--margin) 0;
    text-align: left;
  }
}

/* „Vyvolání“ – fotografie vystoupí z bílého papíru, pak se objeví jméno */
.js .hero__print img,
.js .hero__print::after,
.js .hero__name,
.js .hero__meta,
.js.home .site-header { opacity: 0; }

.is-developing .hero__print img { animation: develop 3.4s cubic-bezier(0.33, 0.1, 0.2, 1) forwards; }
.is-developing .hero__print::after { animation: fade-in 1.6s 1.4s ease forwards; }
.is-developing .hero__name { animation: fade-in 1.6s 1.7s ease forwards; }
.is-developing .hero__meta,
.is-developing .site-header { animation: fade-in 1.2s 2.3s ease forwards; }

@keyframes develop {
  0%   { opacity: 0;    filter: grayscale(1) sepia(0.1) contrast(0.35) brightness(1.75); }
  16%  { opacity: 0.55; filter: grayscale(1) sepia(0.12) contrast(0.45) brightness(1.6); }
  55%  { opacity: 1;    filter: grayscale(0.75) sepia(0.08) contrast(0.8) brightness(1.18); }
  100% { opacity: 1;    filter: grayscale(0) sepia(0) contrast(1) brightness(1); }
}

@keyframes fade-in { to { opacity: 1; } }

/* ---------- Předmluva a obsah ---------- */
.foreword {
  padding-top: var(--section);
  row-gap: 64px;
}

.foreword__text { grid-column: 1 / 7; }

.statement {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.75rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.foreword__body {
  max-width: 46ch;
  margin-top: clamp(28px, 3vw, 48px);
  margin-left: auto;
  margin-right: 8%;
}

.contents {
  grid-column: 8 / 13;
  align-self: end;
}

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

.contents a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px;
  text-decoration: none;
}

.contents__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.8rem + 3vw, 5rem);
  font-weight: 300;
  line-height: 0.95;
  transition: transform 0.6s var(--ease-out);
}

.contents__note {
  max-width: 18ch;
  color: var(--selenium);
  font-size: var(--fs-caption);
  font-stretch: 112%;
  line-height: 1.45;
  text-align: right;
  transition: color 0.3s;
}

.contents a:hover .contents__title { transform: translateX(10px); }
.contents a:hover .contents__note { color: var(--graphite); }

@media (max-width: 900px) {
  .foreword__text,
  .contents { grid-column: 1 / -1; }
  .foreword__body { margin: 28px 0 0; }
}

/* ---------- Kapitoly portfolia ---------- */
.chapter { padding-top: var(--section); }

.chapter__head {
  align-items: end;
  row-gap: 24px;
  margin-bottom: clamp(48px, 7vw, 120px);
}

.chapter__title {
  grid-column: 1 / 8;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 2rem + 9vw, 11rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.012em;
}

.chapter__lead {
  grid-column: 8 / 13;
  max-width: 44ch;
  padding-bottom: 0.4em;
}

.plates {
  row-gap: clamp(56px, 8vw, 144px);
  align-items: start;
}

.plate {
  grid-column: var(--col, 1 / -1);
  align-self: var(--align, start);
  margin-top: var(--shift, 0);
}

.plate__link {
  display: block;
  background: var(--ph, var(--fixer));
  cursor: zoom-in;
}

.plate img { width: 100%; }

.plate figcaption,
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.9em;
  font-size: var(--fs-caption);
  font-stretch: 112%;
  line-height: 1.45;
}

.plate figcaption { margin-top: 12px; }
.plate__note { color: var(--selenium); }

.plate__link:hover + figcaption .plate__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* fotky se po načtení jemně objeví z barvy, která je zastupovala */
.js .plate img,
.js .about__print img,
.js .contact__print img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.js .plate img.is-loaded,
.js .about__print img.is-loaded,
.js .contact__print img.is-loaded { opacity: 1; }

.offer {
  row-gap: 40px;
  margin-top: clamp(80px, 10vw, 168px);
}

.offer__list { grid-column: 1 / 7; }

.offer__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
}

.offer__list li {
  padding: 13px 0 12px;
  border-top: 1px solid var(--rule);
}
.offer__list li:last-child { border-bottom: 1px solid var(--rule); }

.offer__cta {
  grid-column: 8 / 13;
  align-self: end;
  display: grid;
  justify-items: start;
  gap: 28px;
}

.offer__cta p { max-width: 40ch; color: var(--selenium); }

@media (max-width: 900px) {
  .chapter__title,
  .chapter__lead,
  .offer__list,
  .offer__cta { grid-column: 1 / -1; }

  .plates { row-gap: 48px; }

  .plate {
    grid-column: var(--col-m, 1 / -1);
    align-self: start;
    margin-top: 0;
  }
}

/* ---------- O mně ---------- */
.about {
  padding-top: var(--section);
  row-gap: 48px;
  align-items: start;
}

.about__print {
  grid-column: 1 / 7;
  background: var(--ph, var(--fixer));
}

.about__text {
  grid-column: 8 / 13;
  display: grid;
  gap: 1.1em;
  max-width: 50ch;
}

.about__title {
  margin: 0 0 0.35em;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.7rem + 2.6vw, 4.25rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .about__print,
  .about__text { grid-column: 1 / -1; }
}

/* ---------- Společné nadpisy sekcí ---------- */
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.8rem + 4vw, 6.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

/* ---------- Spolupráce ---------- */
.process { padding-top: var(--section); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px var(--gutter);
  margin-top: clamp(48px, 6vw, 96px);
  counter-reset: none;
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--graphite);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.8rem + 2vw, 5.5rem);
  font-weight: 200;
  line-height: 1;
}

.step__title {
  margin: 20px 0 10px;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
}

.step p { max-width: 34ch; color: var(--selenium); }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Reference (vypnuté, viz index.html) ---------- */
.quotes { padding-top: var(--section); }
.quotes__list { display: grid; gap: 64px; margin-top: 48px; }
.quote blockquote {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
}
.quote figcaption { margin-top: 20px; color: var(--selenium); font-size: var(--fs-ui); }

/* ---------- Otázky ---------- */
.faq {
  padding-block: var(--section);
  row-gap: 40px;
}

.faq__title { grid-column: 1 / 5; }
.faq__list { grid-column: 6 / 13; border-bottom: 1px solid var(--rule); }

.faq details { border-top: 1px solid var(--rule); }

.faq summary {
  position: relative;
  display: block;
  padding: 22px 56px 22px 0;
  font-size: var(--fs-lead);
  font-weight: 450;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

/* plus, který se při otevření změní na minus */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }

.faq__answer {
  max-width: 60ch;
  padding: 0 56px 26px 0;
  color: var(--selenium);
}

@media (max-width: 900px) {
  .faq__title,
  .faq__list { grid-column: 1 / -1; }
}

/* ---------- Kontakt (plátno) ---------- */
.contact {
  padding-block: var(--section) clamp(80px, 9vw, 140px);
  background: var(--cloth);
  color: var(--cloth-ink);
}

.contact ::selection { background: var(--cloth-ink); color: var(--cloth); }

.contact .grid { row-gap: 48px; align-items: start; }

.contact__print {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  background: var(--ph, #333);
}

.contact__body { grid-column: 6 / 13; }

.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 7vw, 9.5rem);
  font-weight: 300;
  line-height: 0.84;
  letter-spacing: -0.012em;
}

.contact__lead {
  max-width: 46ch;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.contact__direct {
  margin-top: 16px;
  color: var(--cloth-muted);
}
.contact__direct a { color: var(--cloth-ink); }

@media (max-width: 900px) {
  .contact__print { display: none; }
  .contact__body { grid-column: 1 / -1; }
}

/* ---------- Formulář ---------- */
.form { margin-top: clamp(48px, 5vw, 72px); }

/* formulář potřebuje JavaScript; bez něj zůstane jen přímý e-mail */
html:not(.js) .form { display: none; }

.form__types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  border: 0;
}

.form__types legend,
.field label {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  color: var(--cloth-muted);
  font-size: var(--fs-caption);
  font-stretch: 112%;
  letter-spacing: 0.01em;
}

.chip { position: relative; cursor: pointer; }

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cloth-rule);
  font-size: var(--fs-ui);
  font-stretch: 110%;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.chip:hover span { border-color: var(--cloth-muted); }

.chip input:checked + span {
  border-color: var(--cloth-ink);
  background: var(--cloth-ink);
  color: var(--cloth);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--cloth-ink);
  outline-offset: 3px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--gutter);
}

.field--full { grid-column: 1 / -1; }

.field__opt { margin-left: 6px; opacity: 0.75; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 6px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--cloth-rule);
  border-radius: 0;
  background: transparent;
  color: var(--cloth-ink);
  font-size: var(--fs-lead);
  line-height: 1.4;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--cloth-muted); opacity: 0.7; }

.field input:hover,
.field textarea:hover { border-bottom-color: var(--cloth-muted); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--cloth-ink);
  box-shadow: 0 1px 0 var(--cloth-ink);
}

.field input[type='date'] { color-scheme: dark; min-height: 46px; }

.field [aria-invalid='true'] { border-bottom-color: #e8a598; }

.field__error {
  min-height: 0;
  margin-top: 8px;
  color: #f0b4a7;
  font-size: var(--fs-caption);
  font-stretch: 112%;
}
.field__error:empty { display: none; }

.form__note {
  max-width: 60ch;
  margin-top: 32px;
  color: var(--cloth-muted);
  font-size: var(--fs-caption);
  font-stretch: 112%;
}
.form__note a { color: var(--cloth-ink); }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.form__status {
  max-width: 48ch;
  font-size: var(--fs-ui);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__actions .button { width: 100%; }
}

/* ---------- Patička ---------- */
.site-footer {
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  background: var(--cloth);
  color: var(--cloth-ink);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 48px;
  border-top: 1px solid var(--cloth-rule);
}

.footer__mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  font-weight: 300;
  line-height: 0.85;
}

.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }

.footer__nav a,
.footer__bottom a { text-decoration: none; }
.footer__nav a:hover,
.footer__bottom a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.footer__nav a { font-size: var(--fs-ui); font-stretch: 112%; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 56px;
  color: var(--cloth-muted);
  font-size: var(--fs-caption);
  font-stretch: 112%;
}

.footer__bottom p:first-child { margin-right: auto; }

/* na podstránkách patička nenavazuje na kontakt, začíná tedy bez linky */
.page + .site-footer .footer__top {
  padding-top: clamp(64px, 8vw, 120px);
  border-top: 0;
}

/* ---------- Prohlížení fotografií ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--baryta);
  color: var(--graphite);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: fade-in 0.35s ease;
}

.lightbox::backdrop { background: var(--baryta); }

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: calc(var(--header-h) + 8px) var(--margin) 16px;
  touch-action: pan-y;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-ready { opacity: 1; }
.lightbox__stage.to-prev { cursor: w-resize; }
.lightbox__stage.to-next { cursor: e-resize; }

.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 0 var(--margin) calc(24px + env(safe-area-inset-bottom));
}

.lightbox__controls {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--fs-ui);
  font-stretch: 112%;
}

.lightbox__count { min-width: 4.5ch; text-align: center; font-variant-numeric: tabular-nums; }

.lightbox__btn,
.lightbox__close {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-ui);
  font-stretch: 112%;
  cursor: pointer;
}

.lightbox__btn:hover,
.lightbox__close:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.lightbox__btn:focus-visible,
.lightbox__close:focus-visible { outline-offset: 6px; }

.lightbox__close {
  position: absolute;
  top: 0;
  right: var(--margin);
  height: var(--header-h);
}

.lightbox-open { overflow: hidden; }

/* ---------- Podstránky (ochrana osobních údajů) ---------- */
.page {
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 160px));
  padding-bottom: var(--section);
}

.page__title {
  grid-column: 1 / -1;
  margin: 0 0 clamp(40px, 6vw, 96px);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2rem + 6vw, 8.5rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.page__body {
  grid-column: 4 / 11;
  max-width: 64ch;
}

.page__body h2 {
  margin: 2.2em 0 0.6em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem);
  font-weight: 400;
  line-height: 1.05;
}

.page__body p,
.page__body ul { margin: 0 0 1em; }
.page__body ul { padding-left: 1.2em; list-style: disc; }
.page__body li { margin-bottom: 0.4em; }
.page__meta { margin-top: 3em; color: var(--selenium); font-size: var(--fs-ui); }

@media (max-width: 900px) {
  .page__body { grid-column: 1 / -1; }
}

/* ---------- Omezení pohybu ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .hero__print img,
  .js .hero__print::after,
  .js .hero__name,
  .js .hero__meta,
  .js.home .site-header { opacity: 1; animation: none; }
}
