/* ==========================================================================
   tpfoto.cz — Tomáš Pospíšil, produktová fotografie
   Styl: „nekonečné bílé pozadí" (chladná papírová bílá) + modrý akcent
   ========================================================================== */

/* ---------- Tokeny: světlé téma (výchozí) ---------- */
:root {
  --paper:      #f5f6f7;
  --surface:    #ffffff;
  --surface-2:  #edeff1;
  --ink:        #15181b;
  --ink-2:      #596169;
  --ink-3:      #858d95;
  --rule:       #dde1e4;
  --rule-strong:#c6ccd1;
  --accent:       #2f5fe0;
  --accent-bright:#4d7efa;
  --accent-ink:   #ffffff;
  --accent-soft:  #e7eefc;
  --shadow:     0 1px 2px rgba(21,24,27,.05), 0 8px 28px rgba(21,24,27,.07);
  --shadow-lift:0 2px 6px rgba(21,24,27,.07), 0 18px 48px rgba(21,24,27,.12);

  --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero:  clamp(2.35rem, 6.6vw, 4.4rem);
  --fs-h2:    clamp(1.65rem, 3.4vw, 2.45rem);
  --fs-h3:    clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body:  1.0625rem;
  --fs-small: .875rem;
  --fs-mono:  .76rem;

  --gutter:   clamp(1rem, 4vw, 2.5rem);
  --maxw:     1240px;
  --section:  clamp(3.75rem, 8vw, 7.5rem);
  --radius:   3px;
}

/* ---------- Tokeny: tmavé téma ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0e1113;
    --surface:    #16191c;
    --surface-2:  #1e2327;
    --ink:        #eceff1;
    --ink-2:      #a3acb3;
    --ink-3:      #737d85;
    --rule:       #272d32;
    --rule-strong:#3a4248;
    --accent:       #8aa8ff;
    --accent-bright:#4d7efa;
    --accent-ink:   #08172b;
    --accent-soft:  #16263f;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.45);
    --shadow-lift:0 2px 6px rgba(0,0,0,.45), 0 18px 48px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper:      #0e1113;
  --surface:    #16191c;
  --surface-2:  #1e2327;
  --ink:        #eceff1;
  --ink-2:      #a3acb3;
  --ink-3:      #737d85;
  --rule:       #272d32;
  --rule-strong:#3a4248;
  --accent:       #8aa8ff;
  --accent-bright:#4d7efa;
  --accent-ink:   #08172b;
  --accent-soft:  #16263f;
  --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.45);
  --shadow-lift:0 2px 6px rgba(0,0,0,.45), 0 18px 48px rgba(0,0,0,.6);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Pomocné ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.6;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 70ch;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: .5rem; top: .5rem;
  z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--ff-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Dvojitá třída (.btn.btn--…) schválně: zvyšuje specificitu nad `.prose a`,
   aby si tlačítko v článku drželo vlastní barvu textu a nezmodralo. */
.btn.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); color: var(--accent-ink); }

.btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.btn--ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.btn--block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--rule); }

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
}
.brand__mark path { stroke: var(--accent); }
.brand__mark rect { fill: var(--accent-bright); }
.brand__text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -.035em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.brand__text span { color: var(--accent); }
.brand small {
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-left: .05rem;
  align-self: center;
}

/* na úzkém displeji ustoupí jméno, značka zůstane */
@media (max-width: 560px) {
  .brand small { display: none; }
  .brand__mark { width: 26px; height: 26px; }
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: .5rem .7rem;
  border-radius: var(--radius);
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-cta {
  color: var(--accent-ink);
  background: var(--accent);
  margin-left: .5rem;
  padding-inline: 1.05rem;
}
.nav a.is-cta:hover { background: color-mix(in srgb, var(--accent) 86%, #000); color: var(--accent-ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  padding: .55rem .7rem;
  cursor: pointer;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-block: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.1rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .85rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-cta { margin: .75rem 0 0; text-align: center; padding: .9rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { aspect-ratio: 16 / 11; order: -1; }
}

/* ---------- Obrázky + záložní dlaždice ---------- */
.imgbox {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 50% 0%, var(--surface) 0%, var(--surface-2) 58%, color-mix(in srgb, var(--surface-2) 80%, var(--ink-3)) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.6,.2,1), opacity .3s ease;
}
/* Když fotka chybí, zobrazí se popisek místo prázdna */
.imgbox.is-missing img { display: none; }
.imgbox.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: .9rem 1rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.imgbox.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
}

/* ---------- Parametry pod herem ---------- */
.specs { border-block: 1px solid var(--rule); }
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.specs__grid > div {
  padding: 1.7rem 1.75rem;
  border-left: 1px solid var(--rule);
}
.specs__grid > div:first-child { border-left: 0; padding-left: 0; }
.specs__grid > div:last-child { padding-right: 0; }
.specs dt {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .5rem;
}
.specs dd {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.specs dd small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-top: .25rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs__grid > div { padding: 1.35rem 1.25rem; }
  .specs__grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .specs__grid > div:nth-child(-n+2) { padding-top: 1.7rem; }
  .specs__grid > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .specs__grid > div:last-child { padding-right: 1.25rem; }
}

/* ---------- Obory ---------- */
.genres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.genre {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-decoration: none;
  color: inherit;
}
.genre .imgbox { aspect-ratio: 3 / 4; }
.genre:hover .imgbox img { transform: scale(1.035); }
.genre h3 {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.genre p { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.genre__more {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  padding-top: .35rem;
}

@media (max-width: 820px) {
  .genres { grid-template-columns: 1fr; gap: 2.25rem; }
  .genre .imgbox { aspect-ratio: 16 / 10; }
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.75rem;
}
.filter {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: all .16s ease;
}
.filter:hover { color: var(--ink); border-color: var(--ink-3); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.grid-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: clamp(.5rem, 1.2vw, 1rem);
}
.shot {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  display: block;
}
.shot .imgbox { width: 100%; height: 100%; }
.shot:hover .imgbox img { transform: scale(1.04); }
.shot::after {
  content: attr(data-cat);
  position: absolute;
  left: .6rem; bottom: .6rem;
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10,12,14,.72);
  padding: .3rem .5rem;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8,10,12,.94);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  color: #e7eaec;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lightbox button {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: var(--radius);
  padding: .55rem .85rem;
  cursor: pointer;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
}
.lightbox button:hover { background: rgba(255,255,255,.16); }
.lightbox__nav {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 0 1rem clamp(1.25rem, 4vw, 2.25rem);
}

/* ---------- Postup ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 1.75rem 1.35rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.step__num {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  color: var(--accent);
}
.step h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: -.005em; }
.step p { font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.step a { color: var(--accent); text-underline-offset: 3px; }

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

/* ---------- Ceny ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
}
.price {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.price--mid { border-color: var(--accent); box-shadow: var(--shadow); }
.price .price__tag {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.price .price__amount {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price .price__amount span {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink-2);
  margin-top: .35rem;
}
.price h3 { font-size: 1rem; text-transform: uppercase; }
.price p { font-size: .92rem; color: var(--ink-2); }
.price ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: .45rem;
  font-size: .88rem; color: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding-top: .95rem;
  margin-top: auto;
}
.price li { display: flex; gap: .55rem; }
.price li::before { content: "—"; color: var(--accent); flex: none; }

.price-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-note > div { background: var(--surface); padding: 1.35rem 1.4rem; }
.price-note .price-note--vat { background: var(--accent-soft); }
.price-note .price-note--vat dt { color: var(--accent); }
.price-note .price-note--vat strong { color: var(--ink); font-weight: 600; }
.price-note dt {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .4rem;
}
.price-note dd { margin: 0; font-size: .95rem; }

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


/* ---------- 360° pruh ---------- */
.band {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.band__links { display: grid; gap: .6rem; }
.band__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.15rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .16s ease, color .16s ease;
}
.band__links a:hover { border-color: var(--accent); color: var(--accent); }

.band__facts { margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.band__facts > div { background: var(--paper); padding: 1.1rem 1.25rem; }
.band__facts dt {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.band__facts dd { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* ---------- Reference ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.65; }
.review figcaption {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
}
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Poptávka ---------- */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field { display: grid; gap: .4rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.field input:invalid:not(:placeholder-shown) { border-color: #b3261e; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.consent input { width: 1.05rem; height: 1.05rem; margin-top: .22rem; flex: none; accent-color: var(--accent); }
.consent a { color: var(--accent); }

.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form__status {
  grid-column: 1 / -1;
  font-size: .92rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}
.form__status[hidden] { display: none; }
.form__status.is-ok { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.form__status.is-err { border-color: #b3261e; color: #b3261e; background: var(--surface); }

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

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.contact-item dt {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .5rem;
}
.contact-item dd {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.contact-item dd a { text-decoration: none; }
.contact-item dd a:hover { color: var(--accent); }
.contact-item dd small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: .88rem;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-top: .3rem;
}

/* ---------- Patička ---------- */
.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: .85rem;
  color: var(--ink-2);
}
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-foot a { color: var(--ink-2); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--accent); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Přepínač tématu ---------- */
.theme-toggle {
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon,
:root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun,
:root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
}

/* ---------- Článek / podstránky ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.breadcrumb {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose { max-width: 68ch; display: grid; gap: 1.35rem; padding-bottom: var(--section); }
.prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  text-transform: uppercase;
  margin-top: 1.5rem;
}
.prose h3 { font-size: 1.1rem; margin-top: .75rem; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose blockquote {
  margin: 0;
  padding: .3rem 0 .3rem 1.4rem;
  border-left: 2px solid var(--accent);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
}
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.prose td { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ---------- Výpis blogu ---------- */
.posts { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.post {
  background: var(--paper);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.post .imgbox { aspect-ratio: 4 / 3; }
.post:hover .imgbox img { transform: scale(1.04); }
.post h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); text-transform: uppercase; margin-bottom: .55rem; }
.post:hover h2 { color: var(--accent); }
.post p { color: var(--ink-2); font-size: .95rem; }
.post time, .post .post-meta {
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .75rem;
}
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post .imgbox { aspect-ratio: 16 / 9; }
}

/* ---------- Prohlížeč 360° fotografií ---------- */
.spin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 900px) { .spin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .spin-grid { grid-template-columns: 1fr; } }

.spin { margin: 0; display: flex; flex-direction: column; gap: 1rem; }

.spin__plocha {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color .2s ease;
}
.spin__plocha:hover { border-color: var(--rule-strong); }
.spin.is-tahne .spin__plocha { cursor: grabbing; border-color: var(--accent); }
.spin__plocha:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.spin__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.spin.is-pripraven .spin__img { opacity: 1; }

/* vrstva při stahování snímků */
.spin__nacitani {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.spin.is-nacita .spin__nacitani { opacity: 1; visibility: visible; }
.spin__popisek {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spin__procenta {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.spin__kolejnice {
  width: 56%;
  max-width: 180px;
  height: 2px;
  background: var(--surface-2);
  overflow: hidden;
}
.spin__pruh { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }

/* pobídka k otočení */
.spin__napoveda {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .45rem .85rem .45rem .7rem;
  border-radius: 999px;
  background: rgba(12, 15, 18, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.spin.is-pripraven .spin__napoveda { opacity: 1; }
.spin.is-tahne .spin__napoveda { opacity: 0; }
.spin__napoveda svg { width: 15px; height: 15px; flex: none; }

.spin figcaption { display: flex; flex-direction: column; gap: .2rem; }
.spin figcaption strong {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -.012em;
  color: var(--ink);
}
.spin figcaption span { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .spin__img, .spin__napoveda, .spin__nacitani, .spin__pruh { transition: none; }
}
