/* ============================================================
   kompozituRA — 2026
   ============================================================ */

/* PÍSMO -----------------------------------------------------
   Celý web stojí na jedné bezpatkové rodině (přání klienta:
   „sjednotit veškerý text na jednotný styl, technické bezpatkové
   písmo"). Saira má hranaté tvary blízké logu a zvládne jak
   nadpisy, tak dlouhý text.

   Písmo je self-hostované — odpadá tím spojení se dvěma cizími
   doménami ještě před vykreslením stránky. Řez s diakritikou je
   zvlášť, prohlížeč si ho stáhne až podle `unicode-range`.
   Kurzíva je skutečný řez, ne nakloněná verze základního: falešný
   sklon v hranatém písmu vypadá rozbitě.
   ----------------------------------------------------------- */
@font-face {
  font-family: 'Saira'; font-style: normal; font-weight: 300 600;
  font-display: swap; src: url('../fonts/saira-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: 'Saira'; font-style: normal; font-weight: 300 600;
  font-display: swap; src: url('../fonts/saira-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-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira'; font-style: italic; font-weight: 300 600;
  font-display: swap; src: url('../fonts/saira-italic-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: 'Saira'; font-style: italic; font-weight: 300 600;
  font-display: swap; src: url('../fonts/saira-italic-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-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:        #F4F0E8;
  --bg-alt:    #ECE7DC;
  --bg-deep:   #1A1815;
  --text:      #1A1A1A;
  --text-muted:#6B6B6B;
  --primary:   #8B6F47;
  --primary-deep: #6E5634;
  --line:      rgba(26, 24, 21, 0.14);
  --line-light:rgba(26, 24, 21, 0.08);

  /* Jedna rodina pro celý web. Tři názvy zůstávají schválně — drží
     rozdíl v ROLI (nadpis / text / štítek), ne v písmu, takže se dá
     kterákoli role jednou přenastavit bez hledání po celém stylopisu. */
  --font:         'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: var(--font);
  --font-body:    var(--font);
  --font-mono:    var(--font);   /* drobné prostrkané štítky a čísla */

  --maxw: 1360px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-py: clamp(5rem, 11vw, 9.5rem);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.5s var(--ease);
}

/* RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* Zavřená mobilní zásuvka stojí kus za pravým okrajem. `clip` ji uřízne,
     ale na rozdíl od `hidden` neudělá ze stránky posuvnou schránku —
     `position: sticky` uvnitř tak dál funguje. `hidden` zůstává jako
     záloha pro Safari starší než 16. */
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, picture, video, iframe { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }

/* TYPOGRAPHY ----------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 300; line-height: 1.06; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 8.4vw, 6.6rem); }
h2 { font-size: clamp(2rem, 5.2vw, 4.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.15; }
h4 { font-size: 0.78rem; }

/* Kurzíva mění jen řez písma. Barvu, tučnost i podtržení si klient
   v administraci volí zvlášť — kurzíva do nich nesmí sahat. */
em, i { font-style: italic; }

p { color: var(--text); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; font-weight: 300; color: var(--text); }

/* Section label = mono number + word */
.section-label {
  display: inline-flex; align-items: baseline; gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.section-label em {
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--primary);
  letter-spacing: 0;
  position: relative; padding-right: 0.65rem;
}
.section-label em::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 1px; height: 70%; transform: translateY(-50%);
  background: var(--line);
}

.section-title {
  font-size: clamp(2.2rem, 5.6vw, 4.5rem);
  margin-top: 1.5rem;
  max-width: 18ch;
}

.section { padding: var(--section-py) 0; position: relative; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--center { text-align: center; }
.section-head--center .section-title { margin-left: auto; margin-right: auto; }

.section-title-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
  margin-top: 1.5rem;
}
.section-intro {
  font-size: 0.98rem; line-height: 1.7;
  color: var(--text-muted);
  max-width: 32ch; justify-self: end;
}

/* NAVBAR --------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  z-index: 1000;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(244, 240, 232, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line-light);
}
.nav-container {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
/* Logo je jeden bílý obrázek s průhledným pozadím. Nad fotkou v hero
   svítí bíle, po odrolování se lišta zesvětlí a logo se převrátí do
   černé — `invert(1)` z čisté bílé udělá čistou černou, takže na to
   stačí jeden soubor a nic neposkakuje při přepnutí. */
.nav-logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 22px; width: auto;
  transition: filter 0.5s var(--ease);
}
.navbar.scrolled .logo-img { filter: invert(1); }
@media (max-width: 400px) { .logo-img { height: 18px; } }

.nav-menu {
  display: flex; gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}
.nav-link {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  font-size: 0.85rem; font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--t), opacity var(--t);
  position: relative;
  padding: 0.6rem 0;
}
.navbar.scrolled .nav-link { color: var(--text); }
.nav-num {
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0.1em;
  position: relative; top: -1px;
}
.nav-link::after {
  content: "";
  position: absolute; bottom: 0.4rem; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.8em); }
.nav-link.active { color: var(--primary) !important; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  padding: 8px; color: #fff;
  transition: color var(--t);
}
.navbar.scrolled .hamburger { color: var(--text); }
.hamburger span {
  display: block; width: 26px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
/* Otevřené menu má světlé pozadí — bílý křížek by na něm zmizel. */
.hamburger.active { color: var(--text); }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: min(85%, 380px); height: 100dvh;
    background: var(--bg);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 6rem 2.5rem;
    gap: 2rem;
    transition: right 0.5s var(--ease);
    box-shadow: -8px 0 40px rgba(0,0,0,0.1);
  }
  .nav-menu.active { right: 0; }
  .nav-menu .nav-link { color: var(--text); font-family: var(--font-heading); font-size: 2rem; font-weight: 300; }
  .nav-menu .nav-link .nav-num { font-size: 0.7rem; }
}

/* HERO ----------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100dvh;
  min-height: 640px;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background: var(--bg-deep);
}
/* Obrázky se střídají prolnutím. Všechny leží přes sebe, viditelný je
   ten s `.is-active` — přepínání řeší `js/main.js`. Bez JavaScriptu
   zůstane vidět první, což je přesně ten, který se načte přednostně. */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 60% 55%;
}
.hero-slide.is-active .hero-img {
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.14) 26%, rgba(0,0,0,0.26) 54%, rgba(0,0,0,0.74) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.08) 58%, rgba(0,0,0,0) 100%);
}

.hero-content {
  position: relative;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 5.5rem);
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.5rem, 8.4vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  color: var(--hero-color, #fff);
}
/* Měřítko nadpisu z administrace platí až od tabletu výš. Na telefonu je
   nadpis podle klienta akorát, takže ho volba nesmí zvětšit ani zmenšit. */
/* Strop 12,8 % šířky obsahu: nadpis se zalamuje na víc než dva řádky až
   nad 13,4 % (změřeno pro 768–1920 px), návrh při 100 % má 8,5–9 %.
   Běžné hodnoty tedy strop nezmění; velké (zhruba nad 140 % na tabletu,
   nad 150 % na počítači) se zastaví těsně pod zalomením, místo aby se
   nadpis rozpadl na čtyři řádky. Rozsah 50–160 v administraci zůstává. */
@media (min-width: 761px) {
  .hero-title {
    font-size: min(
      calc(clamp(2.5rem, 8.4vw, 6.8rem) * var(--hero-scale, 1)),
      calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) * 0.128)
    );
  }
}

.hero-line {
  display: block; overflow: hidden;
  /* Ořez schovává řádek před nájezdem zdola. Musí ale nechat místo
     dolním dotahům, jinak se z „jako prostor" ukousne půl „j" a „p". */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-line > span {
  display: inline-block;
  transform: translateY(120%);
  animation: revealUp 1.1s var(--ease-out) both;
}
.hero-line:nth-of-type(1) > span { animation-delay: 0.35s; }
.hero-line:nth-of-type(2) > span { animation-delay: 0.5s; }

@keyframes revealUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  animation: revealUp 1s 0.85s var(--ease-out) both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 1.15rem 2rem;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 100px;
  font-size: 0.85rem; letter-spacing: 0.05em;
  transition: all 0.4s var(--ease);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.hero-cta:hover {
  background: #fff; color: var(--text);
  border-color: #fff;
  transform: translateY(-2px);
}
.hero-cta svg { transition: transform var(--t); }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-corner {
  position: absolute; z-index: 1;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.75;
  animation: revealUp 1s 1.05s var(--ease-out) both;
}
.hero-corner--br { bottom: 1.5rem; right: var(--gutter); }
@media (max-width: 760px) { .hero-corner { display: none; } }

/* Ruční posun fotek: šipky kolem čítače. Tenká čára jako v prohlížeči
   fotek, žádný rámeček — v rohu mají být tiché. Plocha pro klik 44 px. */
.hero-ovladani {
  display: flex; align-items: center; gap: 0.25rem;
  bottom: calc(1.5rem - 12px); right: calc(var(--gutter) - 12px);
  opacity: 1;
}
.hero-ovladani .corner-label { opacity: 0.75; min-width: 5.2em; text-align: center; }
.hero-sipka {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: #fff;
  opacity: 0.75; cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hero-sipka[hidden] { display: none; }
.hero-sipka:hover { opacity: 1; }
#heroPred:hover { transform: translateX(-2px); }
#heroDalsi:hover { transform: translateX(2px); }
.hero-sipka:active { opacity: 0.55; }
/* Na telefonu zůstávají jen šipky (a posun prstem) — čítač by vedle
   tlačítka pod nadpisem zabral místo, které tam není. */
@media (max-width: 760px) {
  .hero-ovladani { display: flex; bottom: calc(clamp(3rem, 7vw, 5.5rem) - 2px); right: calc(var(--gutter) - 12px); }
  .hero-ovladani .corner-label { display: none; }
}

/* STUDIO --------------------------------------------------- */
.section--studio { background: var(--bg); }

.studio-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
@media (max-width: 980px) {
  .studio-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.studio-title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  max-width: 13ch;
  margin-bottom: 2.5rem;
}
.studio-body p {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.studio-body .lead {
  color: var(--text);
  margin-bottom: 1.8rem;
}
.studio-body p:last-child { color: var(--text-muted); }

.studio-sign {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.sign-line {
  width: 64px; height: 1px; background: var(--primary);
}
.sign-name {
  font-size: 1.05rem; font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text); margin: 0;
}
.sign-role {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 0.2rem;
}

.studio-aside { position: relative; }
.studio-figure {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
}
.studio-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.studio-figure:hover img { transform: scale(1.04); }
.studio-figure figcaption {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--primary);
}

.studio-stats {
  margin-top: 3rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.studio-stats > div { padding: 0; }
.studio-stats dt {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
.studio-stats dd {
  font-family: var(--font-heading); font-size: 1.2rem;
  font-weight: 300; color: var(--text);
}
.studio-stats dd .counter { color: var(--primary-deep); font-variation-settings: "opsz" 144; }

/* PŘÍSTUP -------------------------------------------------- */
.section--pristup { background: var(--bg-alt); }

.process-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 4rem;
}
/* Přání klienta: kroky měly mezi texty příliš velkou mezeru. Odsazení
   zůstává z jedné škály (24 / 40 px), jen o stupeň menší než v návrhu. */
.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  /* Jen mezi sloupci. `gap` platila i mezi řádky, a protože `.process-line`
     je třetí dítě mřížky, přidávala pod každým krokem prázdný řádek
     o 48 px — to byla ta „velká mezera mezi texty", kterou klient hlásil. */
  column-gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 2.4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.process-item:hover { background: rgba(139, 111, 71, 0.04); }
.process-num {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.05em;
  padding-top: 0.5rem;
}
.process-content h3 {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 300; margin-bottom: 0.7rem;
  line-height: 1.1;
}
.process-content p {
  font-size: 1.02rem; line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}
.process-figure {
  margin-top: 1.8rem; max-width: 480px;
  position: relative;
}
.process-figure img {
  width: 100%; height: auto;
  aspect-ratio: 16/10; object-fit: cover;
}
.process-figure figcaption {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 0.7rem;
}

@media (max-width: 640px) {
  .process-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .process-num { padding-top: 0; font-size: 0.85rem; }
}

.services-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
}
.service-tag {
  display: inline-flex; align-items: center;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.08em;
  background: var(--bg);
  color: var(--text);
  transition: all var(--t);
}
.service-tag:hover {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* PROJEKTY ------------------------------------------------- */
.section--projekty { background: var(--bg); }

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 2rem 0 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  padding: 0.65rem 1.2rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  transition: all var(--t);
  position: relative;
}
.filter-btn sup {
  font-size: 0.6rem; padding-left: 0.25rem; opacity: 0.55;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.active {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}
.filter-btn.active sup { opacity: 1; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.4rem);
}
.gallery-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery-card.is-hidden {
  opacity: 0; pointer-events: none;
  transform: scale(0.98);
  display: none;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-card .gc-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease);
}
.gallery-card:hover .gc-img { transform: scale(1.06); filter: brightness(0.9); }
.gc-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, transparent 35%, rgba(20,18,15,0.78) 100%);
  color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery-card:hover .gc-overlay { opacity: 1; transform: translateY(0); }
.gc-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 0.7rem;
}
.gc-name {
  font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 300; line-height: 1.05;
  margin-bottom: 0.3rem;
}
.gc-count {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0.75;
}
.gc-corner-num {
  position: absolute; top: 1rem; left: 1.1rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: #fff; letter-spacing: 0.15em;
  opacity: 0; transition: opacity 0.4s var(--ease);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gallery-card:hover .gc-corner-num { opacity: 0.85; }

/* KONTAKT -------------------------------------------------- */
.section--kontakt {
  background: var(--bg-deep);
  color: #E8E3D8;
}
.section--kontakt .section-label { color: rgba(232, 227, 216, 0.6); }
.section--kontakt .section-label em { color: #d4b78c; }
.section--kontakt .section-label em::after { background: rgba(232, 227, 216, 0.2); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

.kontakt-title {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  margin-bottom: 1.5rem;
}

/* Velikost nadpisů sekcí z administrace (procenta, 100 = návrh). Stejně
   jako u úvodní obrazovky platí až od tabletu výš: na telefonu zůstává
   velikost z návrhu, takže ji ani krajní hodnota nerozbije. */
@media (min-width: 761px) {
  .studio-title  { font-size: calc(clamp(2.2rem, 5.2vw, 4rem) * var(--nadpis-velikost, 100) / 100); }
  .section-title { font-size: calc(clamp(2.2rem, 5.6vw, 4.5rem) * var(--nadpis-velikost, 100) / 100); }
  .kontakt-title { font-size: calc(clamp(2rem, 4.6vw, 3.8rem) * var(--nadpis-velikost, 100) / 100); }
}
.kontakt-lead {
  font-size: 1.05rem; line-height: 1.65;
  color: rgba(232,227,216,0.7);
  max-width: 50ch;
  margin-bottom: 3rem;
}

.kontakt-info {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.7rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(232,227,216,0.15);
  border-bottom: 1px solid rgba(232,227,216,0.15);
  margin-bottom: 3rem;
}
.kontakt-info-label {
  display: block;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(232,227,216,0.5);
  margin-bottom: 0.4rem;
}
.kontakt-info-value {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 300; font-style: normal;
  color: #fff;
  line-height: 1.35;
  transition: color var(--t);
}
a.kontakt-info-value { position: relative; }
a.kontakt-info-value::after {
  content: ""; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: #d4b78c;
  transition: width 0.5s var(--ease);
}
a.kontakt-info-value:hover { color: #d4b78c; }
a.kontakt-info-value:hover::after { width: 100%; }

@media (max-width: 540px) {
  .kontakt-info { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* Form */
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.form-group label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(232,227,216,0.55);
}
.form-group input,
.form-group textarea {
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232,227,216,0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--t);
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(232,227,216,0.35);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #d4b78c;
}
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.form-note {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(232,227,216,0.45);
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 2rem;
  background: transparent;
  border: 1px solid rgba(232,227,216,0.35);
  border-radius: 100px;
  color: #fff;
  font-size: 0.85rem; letter-spacing: 0.05em;
  transition: all 0.4s var(--ease);
  justify-self: start;
  margin-top: 0.5rem;
}
.btn-primary:hover {
  background: #fff; color: var(--bg-deep);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-primary svg { transition: transform var(--t); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-primary.is-success { background: #d4b78c; color: var(--bg-deep); border-color: #d4b78c; }

/* MAP */
.kontakt-right { position: sticky; top: calc(var(--nav-h) + 2rem); }
.map-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  background: rgba(232,227,216,0.06);
  overflow: hidden;
  position: relative;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.5s var(--ease);
}
.map-wrap:hover iframe { filter: grayscale(0) contrast(1); }
.map-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #d4b78c;
  transition: gap var(--t);
}
.map-link:hover { gap: 0.85rem; }

/* FOOTER --------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  color: rgba(232,227,216,0.7);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(232,227,216,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-logo {
  display: block; height: 26px; width: auto;
  margin-bottom: 1.4rem;
}
.footer-claim {
  font-size: 1.15rem; font-weight: 300; line-height: 1.45;
  color: rgba(232,227,216,0.85);
  max-width: 32ch;
}

.footer h2 {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(232,227,216,0.4);
  margin-bottom: 1.2rem;
}
.footer ul li { margin-bottom: 0.7rem; line-height: 1.6; }
.footer ul li a {
  transition: color var(--t);
  position: relative;
}
.footer ul li a:hover { color: #d4b78c; }

.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid rgba(232,227,216,0.08);
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(232,227,216,0.4);
  flex-wrap: wrap; gap: 1rem;
}
/* Obecné `p { color: var(--text) }` by tu dalo tmavé písmo na tmavé pozadí. */
.footer-bottom p { color: rgba(232,227,216,0.6); }
.footer-wz { color: rgba(232,227,216,0.6); transition: color var(--t); }
.footer-wz:hover { color: #d4b78c; }
/* Spodní řádek musí na konci stránky ležet nad tlačítkem „Zpět nahoru"
   (pevné v rohu, 28 + 46 px), jinak by zakrylo odkaz vpravo. */
.footer { padding-bottom: 6rem; }

/* COOKIE BANNER ------------------------------------------ */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  z-index: 999;
  background: var(--bg-deep); color: #E8E3D8;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.25);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease);
  max-width: 540px;
  margin-left: auto;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-content { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.cookie-content p { font-size: 0.84rem; line-height: 1.5; flex: 1 1 240px; color: rgba(232,227,216,0.75); }
.btn-cookie-accept {
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(232,227,216,0.35); border-radius: 100px;
  color: #fff; font-size: 0.78rem; letter-spacing: 0.05em;
  transition: all var(--t);
}
.btn-cookie-accept:hover { background: #fff; color: var(--bg-deep); border-color: #fff; }

/* SCROLL-TO-TOP ----------------------------------------- */
.scroll-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  z-index: 950;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px) scale(0.9);
  /* Skryté tlačítko nesmí chytat kliky — leží v rohu okna přesně přes
     pravou šipku slideshow a bez tohohle ji na začátku stránky zakrývalo. */
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.scroll-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top:hover { background: var(--primary-deep); transform: translateY(-3px) scale(1.05); }

/* LIGHTBOX --------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(15, 13, 10, 0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }

.lb-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  /* Vpravo je zavírací tlačítko — bez místa pro něj se přes něj
     přetiskne počítadlo („1 / 10"). */
  padding: 1.5rem 5.5rem 1.5rem 2rem;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.lb-project-info {
  font-size: 1.05rem; font-weight: 400;
}
.lb-project-info span {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #d4b78c;
  display: block; margin-bottom: 0.3rem;
}
.lb-counter {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
}
.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
  z-index: 3;
}
.lb-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.lb-stage {
  width: 100%; max-width: 92vw;
  height: 78vh; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.lb-img.loaded { opacity: 1; }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
  z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
@media (max-width: 700px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

.lb-thumbs {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
  padding: 0.5rem;
  max-width: 90vw; overflow-x: auto;
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex: 0 0 auto;
  width: 60px; height: 42px;
  border: 1px solid transparent;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity var(--t), border-color var(--t);
  cursor: pointer;
  background-size: cover; background-position: center;
}
.lb-thumb:hover { opacity: 0.85; }
.lb-thumb.active { opacity: 1; border-color: #d4b78c; }
@media (max-width: 700px) { .lb-thumbs { display: none; } }

/* PŘÍSTUPNOST ------------------------------------------ */
/* Odkaz pro klávesnici a čtečky: přeskočí navigaci rovnou na obsah.
   Vidět je až po zaostření tabulátorem. */
.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 2000;
  padding: 0.8rem 1.4rem;
  background: var(--text); color: var(--bg);
  font-size: 0.85rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Zaostření tabulátorem musí být vidět všude — na tmavém i světlém
   pozadí. Myš žádný rámeček nedostane (`:focus-visible`). */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.section--kontakt :focus-visible,
.footer :focus-visible,
.hero :focus-visible,
.lightbox :focus-visible { outline-color: #E4CFA8; }
.gallery-card:focus-visible { outline-offset: -3px; }

/* Otevřené mobilní menu a prohlížeč fotek nesmí nechat rolovat stránku
   pod sebou. Třídou, ne přes `style` — inline hodnota by při souběhu
   dvou vrstev zůstala viset. */
body.no-scroll { overflow: hidden; }

/* Čísla ve štítcích jsou tabulková — jinak „01 / 04" poskakuje. */
.nav-num, .process-num, .gc-corner-num, .lb-counter,
.hero-corner, .filter-btn sup, .studio-stats dd {
  font-variant-numeric: tabular-nums;
}

/* FORMULÁŘ — stavy ------------------------------------- */
/* Honeypot: pole, které člověk nevidí a robot vyplní. Schválně ne
   `display:none` — část robotů skrytá pole přeskakuje. */
.hp-pole {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form-stav {
  display: none;
  align-items: center; gap: 0.6rem;
  font-size: 0.88rem; line-height: 1.5;
  padding: 0.9rem 1.1rem;
  border-radius: 3px;
  margin-top: 0.25rem;
}
.form-stav.is-visible { display: flex; }
.form-stav svg { flex: 0 0 auto; }
.form-stav--ok  { background: rgba(212,183,140,0.14); color: #E4CFA8; }
.form-stav--err { background: rgba(214,120,100,0.14); color: #F0B3A6; }

.btn-primary.is-loading { opacity: 0.65; cursor: progress; }
.btn-primary.is-loading svg { animation: pulsuj 1s ease-in-out infinite; }
@keyframes pulsuj { 50% { opacity: 0.25; } }

/* Mapa se načítá až u sekce Kontakt — než dorazí, drží místo rámeček,
   aby stránka nepodskočila. */
.map-frame { display: block; width: 100%; height: 100%; border: 0; }

/* ANIMATIONS ------------------------------------------- */
.animate-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.animate-from-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.animate-from-left.visible { opacity: 1; transform: translateX(0); }

.animate-from-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.animate-from-right.visible { opacity: 1; transform: translateX(0); }

.stagger > * { transition-delay: 0s; }
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-img { animation: none !important; }
  .hero-slide { transition: none !important; }
}

/* CHYBOVÁ STRÁNKA (404) --------------------------------- */
.section--chyba {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  background: var(--bg);
}
.chyba-titul {
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin: 1.5rem 0 1.5rem;
}
.chyba-text {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch; margin-bottom: 2.5rem;
}
.chyba-btny { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* Tlačítko z hero, ale na světlém podkladu — tam by bílý rámeček zmizel. */
.hero-cta--tmavy {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}
.hero-cta--tmavy:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.chyba-odkaz {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary-deep);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
