/* =========================================================
   NA PEVNO
   Písmo: Poppins (Google Fonts)
   Ikony: Material Symbols Rounded (Google Fonts)
   ========================================================= */

:root {
  /* barvy */
  --white:      #ffffff;
  --cream:      #f3efe8;   /* krémová – teplá, ale ne dožluta */
  --cream-deep: #ebe5db;
  --ink:        #15171b;   /* text na krémové */
  --ink-soft:   #5b6169;
  --dark-1:     #16181c;   /* měkká čerň – ne úplně černá */
  --dark-2:     #212429;
  --dark-3:     #1a1d21;
  --accent:     #b9946f;   /* teplý akcent z fotky */
  --accent-lt:  #d4b393;

  --line-dark:  rgba(255, 255, 255, .14);
  --line-light: rgba(21, 23, 27, .12);

  /* rozměry */
  --pad:     clamp(18px, 3.2vw, 56px);
  --wrap:    1280px;
  --nav-h:   clamp(66px, 6vw, 92px);
  --radius:  clamp(16px, 1.6vw, 24px);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--dark-1);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
}

/* postupné odkrývání při scrollu */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1),
              transform .7s cubic-bezier(.22, .8, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ===================== NAVIGACE ===================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0 var(--pad);
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}

.nav.is-stuck {
  background: rgba(18, 20, 24, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: clamp(15px, 1.18vw, 17px);
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .6vw, 10px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.nav-link {
  display: inline-block;
  font-size: clamp(12.5px, .92vw, 14px);
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, opacity .25s ease;
}

.nav-link:hover { opacity: .68; }

.nav-link.is-active {
  background: var(--white);
  color: var(--dark-1);
  opacity: 1;
  padding: 10px 26px;
}

.nav-phone {
  justify-self: end;
  font-size: clamp(12.5px, .95vw, 14px);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav-phone-mobile { display: none; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-dark);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-toggle .material-symbols-rounded { font-size: 24px; }


/* ===================== HERO ===================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(20px, 4vw, 56px)) var(--pad) clamp(28px, 4vw, 54px);
}

.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-sofa {
  position: absolute;
  inset: 0;
  z-index: 3;                     /* nad velkým nápisem (z-index 2) */
  pointer-events: none;
}

.hero-sofa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;        /* shodné s podkladem → sedí na pixel */
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, .62) 0%,
      rgba(0, 0, 0, .3)  30%,
      rgba(0, 0, 0, .26) 58%,
      rgba(0, 0, 0, .55) 100%),
    rgba(0, 0, 0, .2);
}

.hero-top {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(16px, 3vw, 48px);
}

.hero-title {
  grid-column: 1;
  justify-self: start;
  font-size: clamp(20px, 2.25vw, 35px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -.005em;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

/* řádky schválně nelícují: 1. doprostřed, 2. víc doleva, 3. víc doprava */
.hero-title .ln { display: block; }
.hero-title .ln-1 { transform: translateX(clamp(12px, 2.4vw, 46px)); }
.hero-title .ln-2 { transform: translateX(0); }
.hero-title .ln-3 { transform: translateX(clamp(26px, 5vw, 96px)); }

.hero-meta {
  grid-column: 3;
  justify-self: end;
  max-width: 27ch;
  padding-top: 5.2em;
  font-size: clamp(11.5px, .82vw, 13.5px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .5);
}

.hero-display {
  position: relative;
  z-index: 2;
  margin: clamp(14px, 2.4vw, 40px) 0 clamp(18px, 3vw, 44px);
  text-align: center;
  container-type: inline-size;
}

.wordmark {
  display: block;
  font-size: 15.5vw;                 /* záloha pro starší prohlížeče */
  font-size: min(14.2cqw, 21svh);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .78);
  transform: translateY(38%);      /* zasune nápis za opěradlo, vrch zůstane čitelný */
}

.hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  margin-top: clamp(16px, 3vw, 42px);
}

.stats {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: clamp(20px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat {
  width: clamp(196px, 18vw, 276px);
  padding: clamp(16px, 1.5vw, 26px);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(18, 18, 18, .34), rgba(18, 18, 18, .12));
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat--b {
  margin-top: clamp(10px, 1vw, 16px);
  transform: translateX(clamp(0px, 2vw, 34px));
}

.stat-num {
  display: block;
  font-size: clamp(25px, 2.35vw, 35px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .45em;
}

.plus { font-size: .62em; vertical-align: .14em; }

.stat-label {
  display: block;
  font-size: clamp(11px, .82vw, 13px);
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .86);
}


/* ===================== TLAČÍTKA ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  background: var(--white);
  color: var(--dark-1);
  border-radius: 999px;
  padding: 7px 7px 7px clamp(22px, 2vw, 34px);
  font-size: clamp(11px, .95vw, 13.5px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: transform .3s ease, box-shadow .3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}

.btn-icon {
  display: grid;
  place-items: center;
  width: clamp(38px, 3.2vw, 50px);
  height: clamp(38px, 3.2vw, 50px);
  border-radius: 50%;
  background: var(--dark-1);
  color: var(--white);
  font-size: clamp(18px, 1.6vw, 24px);
  transition: transform .3s ease;
}

.btn:hover .btn-icon { transform: translateX(4px); }


/* ===================== SPOLEČNÉ PRO SEKCE ===================== */

.section {
  padding: clamp(64px, 8vw, 132px) var(--pad);
  scroll-margin-top: var(--nav-h);
}

.section--cream {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  color: var(--ink);
}

.section--dark {
  background: linear-gradient(165deg, var(--dark-2) 0%, var(--dark-1) 48%, var(--dark-3) 100%);
  color: var(--white);
}

/* --- hlavička sekce: štítek vlevo, tvrzení vpravo --- */
.sec {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2.15fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(42px, 6vw, 92px);
}

.sec-label {
  font-size: clamp(14px, 1.32vw, 17px);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink-soft);
  opacity: .75;
}

.section--dark .sec-label { color: rgba(255, 255, 255, .45); }

.sec-claim {
  font-size: clamp(17px, 2.05vw, 29px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  text-transform: uppercase;
}

.sec-claim em {
  font-style: normal;
  color: var(--accent);
}

.section--dark .sec-claim em { color: var(--accent-lt); }

/* --- drobné odstavce rozsazené po ploše --- */
.sec-notes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px 24px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.note {
  font-size: clamp(12px, .88vw, 13.5px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section--dark .note { color: rgba(255, 255, 255, .6); }

.note--a { grid-column: 2 / span 3; }
.note--b { grid-column: 6 / span 3; margin-top: clamp(14px, 2vw, 30px); }
.note--c { grid-column: 10 / span 3; margin-top: clamp(30px, 4vw, 62px); }

.note--wide {
  grid-column: auto;
  max-width: 46ch;
  margin-top: clamp(40px, 5vw, 72px);
  margin-left: auto;
  font-size: clamp(13px, .95vw, 15px);
  text-align: right;
}

/* --- řada čísel oddělená linkami (žádné karty) --- */
.tally {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tally-item {
  padding: 6px clamp(12px, 2vw, 30px);
  border-left: 1px solid var(--line-light);
}

.section--dark .tally-item { border-left-color: var(--line-dark); }

.tally-item:first-child { border-left: 0; padding-left: 0; }

.tally-item strong {
  display: block;
  font-size: clamp(28px, 3.9vw, 54px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.tally-item span {
  display: block;
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-soft);
}


/* ---- výzva na Instagram ---- */
.ig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 92px);
  padding-top: clamp(28px, 3vw, 42px);
  border-top: 1px solid var(--line-dark);
}

.ig p {
  max-width: 44ch;
  font-size: clamp(13px, .98vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, .72);
}


/* ===================== PŘEDĚLY MEZI SEKCEMI ===================== */

.divider {
  position: relative;
  height: clamp(210px, 34vh, 360px);
  overflow: hidden;
  background: var(--dark-1);
}

.divider img {
  position: absolute;
  left: 0;
  top: -14%;
  width: 100%;
  height: 128%;
  object-fit: cover;
  will-change: transform;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  pointer-events: none;
  z-index: 1;
}

.divider::before { top: 0;    background: linear-gradient(to bottom, var(--edge-top), transparent); }
.divider::after  { bottom: 0; background: linear-gradient(to top,    var(--edge-bottom), transparent); }

.divider--cream-dark { --edge-top: var(--cream-deep); --edge-bottom: var(--dark-2); }
.divider--dark-cream { --edge-top: var(--dark-3);     --edge-bottom: var(--cream); }

.divider-word {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  font-size: clamp(10px, .85vw, 12px);
  font-weight: 600;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .75), 0 0 40px rgba(0, 0, 0, .5);
  white-space: nowrap;
}


/* ===================== ZKUŠENOSTI ===================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 30px);
}

.step {
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(26px, 2.45vw, 35px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
}

.step h3 {
  font-size: clamp(16px, 1.12vw, 16px);
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: clamp(12.5px, .92vw, 14px);
  font-weight: 300;
  color: var(--ink-soft);
}


/* ===================== KONTAKT ===================== */

.contact-lines { border-top: 1px solid var(--line-dark); }

.cline {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 10px 24px;
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left .4s cubic-bezier(.22, .8, .3, 1), color .3s ease;
}

a.cline:hover { padding-left: clamp(8px, 1.2vw, 18px); }

.cline-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .45);
}

.cline-value {
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -.01em;
}

.cline-note {
  justify-self: end;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, .5);
}

.note--light { color: rgba(255, 255, 255, .6); }

.contact-action { margin-top: clamp(34px, 4vw, 56px); }


/* ===================== PATIČKA ===================== */

.footer {
  padding: clamp(28px, 3vw, 44px) var(--pad);
  background: var(--dark-3);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo--footer { font-size: 16px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 30px); }

.footer-nav a {
  position: relative;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, .68);
  transition: color .25s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}

.footer-nav a:hover { color: var(--white); }
.footer-nav a:hover::after { transform: scaleX(1); }

.footer-copy { font-size: 12.5px; font-weight: 300; color: rgba(255, 255, 255, .45); }


/* ===================== ZRNO PŘES TMAVÉ PLOCHY ===================== */

.section--dark,
.footer { position: relative; }

.section--dark > .wrap,
.section--dark > .zoom,
.footer-inner { position: relative; z-index: 1; }

.section--dark::after,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}


/* ===================== DROBNÉ INTERAKCE ===================== */


.sec-notes .note--b,
.steps .step:nth-child(2),
.contact-lines .cline:nth-child(2) { transition-delay: .09s; }

.sec-notes .note--c,
.steps .step:nth-child(3),
.contact-lines .cline:nth-child(3) { transition-delay: .18s; }

.steps .step:nth-child(4) { transition-delay: .27s; }

:focus-visible {
  outline: 2px solid var(--accent-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--cream :focus-visible { outline-color: var(--accent); }


/* ===================== 404 ===================== */

.notfound {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 40px) var(--pad) 60px;
  background: linear-gradient(165deg, var(--dark-2) 0%, var(--dark-1) 48%, var(--dark-3) 100%);
}

.notfound-inner { max-width: 40rem; text-align: center; }

.notfound-code {
  font-size: clamp(84px, 16vw, 185px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, .18));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound .sec-label { display: block; margin-bottom: 10px; }

.notfound h1 {
  font-size: clamp(22px, 2.65vw, 35px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.notfound p {
  font-size: clamp(12.5px, .92vw, 14px);
  font-weight: 300;
  color: rgba(255, 255, 255, .7);
}

.notfound-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}


/* ===================== PODSOUVÁNÍ SEKCÍ =====================
   Sekce se zastaví, jakmile její spodek dojede ke spodku okna,
   a následující pak vyjede zespoda přes ni. Svislý posun `top`
   dopočítává skript podle skutečné výšky sekce. */

.stick { position: sticky; }

.hero        { z-index: 1; }
#o-nas       { z-index: 2; }
#projekty    { position: relative; z-index: 3; }
#zkusenosti  { z-index: 4; }
#kontakt     { z-index: 5; }
.footer      { position: relative; z-index: 6; }

/* stín na horní hraně, aby bylo poznat, že sekce najíždí přes předchozí */
#o-nas,
#projekty,
#zkusenosti,
#kontakt,
.footer { box-shadow: 0 -30px 60px rgba(0, 0, 0, .45); }


/* ===================== ZOOM DO PROJEKTU =====================
   Rozsypané fotky se scrollem zvětšují. Prostřední (vstupní hala)
   skončí přes celou obrazovku, ostatní odletí mimo záběr.
   Každá má vlastní cíl měřítka, takže se rozjíždějí různě rychle. */

.zoom {
  position: relative;
  height: 300svh;
  /* záporný okraj ruší vnitřní okraj sekce → scéna jde přes celou šířku */
  margin: 0 calc(var(--pad) * -1) clamp(56px, 8vw, 120px);
}

.zoom-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--dark-1);
}

.zoom-item {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.zoom-media {
  position: relative;
  overflow: hidden;
  /* rozměry i posuny jsou f× větší, aby se obrázek vykreslil v plné
     velikosti a měřítko ho pak jen zmenšovalo — proto zůstane ostrý */
  height: calc(var(--h, 25) * 1vh * var(--f, 1));
  width:  calc(var(--w, 25) * 1vw * var(--f, 1));
  top:    calc(var(--y, 0)  * 1vh * var(--f, 1));
  left:   calc(var(--x, 0)  * 1vw * var(--f, 1));
}

.zoom-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* popisek naskočí, až prostřední fotka vyplní obrazovku */
.zoom-cap {
  position: absolute;
  inset: auto 0 clamp(28px, 6vh, 74px) 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .75);
}

.zoom-cap-label {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.zoom-cap-meta {
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}


/* ===================== PROJEKT: STAVEBNICE BLOKŮ =====================
   .duo   fotka a text vedle sebe, střídavě po stranách
   .pair  velká fotka + text + detail                                  */

/* --- text uvnitř bloků --- */
.blk-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

.blk-title {
  font-size: clamp(21px, 2.1vw, 31px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.blk-p {
  max-width: 40ch;
  font-size: clamp(13px, .95vw, 15px);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(255, 255, 255, .72);
}

.blk-p + .blk-p { margin-top: 1em; }

/* --- C --- */
.pair {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(22px, 3.4vw, 58px);
  align-items: start;
}

.pair-side {
  display: grid;
  gap: clamp(22px, 3vw, 44px);
  padding-top: clamp(0px, 6vw, 96px);   /* posun dolů, ať bloky nelícují */
}

.pair-big,
.pair-small,
.duo-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.pair-big,
.duo-media  { aspect-ratio: 16 / 10; }
.pair-small { aspect-ratio: 4 / 3; }

.pair-big img,
.pair-small img,
.duo-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- B --- */
.duo {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(26px, 4vw, 76px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 124px);
}

.duo--flip .duo-media { order: 2; }
.duo--flip .duo-text  { order: 1; }

/* aby bloky nebyly jeden jako druhý */
.duo--wide   { grid-template-columns: 1.45fr .55fr; }
.duo--narrow { grid-template-columns: .78fr 1.22fr; }
.duo--flip.duo--wide   { grid-template-columns: .55fr 1.45fr; }
.duo--flip.duo--narrow { grid-template-columns: 1.22fr .78fr; }

.duo--low  { margin-top: clamp(70px, 11vw, 176px); }
.duo--high { margin-top: clamp(34px, 5vw, 76px); }


/* ===================== RESPONZIVITA ===================== */

@media (max-width: 1180px) {
  .hero-top { grid-template-columns: 1fr; justify-items: start; }
  .hero-title .ln-1 { transform: translateX(clamp(10px, 2.2vw, 26px)); }
  .hero-title .ln-3 { transform: translateX(clamp(20px, 4.4vw, 52px)); }

  .hero-meta {
    grid-column: 1;
    justify-self: start;
    max-width: 44ch;
    padding-top: 18px;
    text-align: left;
  }

  .sec { grid-template-columns: 1fr; gap: 16px; }

  .sec-notes { grid-template-columns: repeat(6, 1fr); }
  .note--a { grid-column: 1 / span 3; }
  .note--b { grid-column: 4 / span 3; }
  .note--c { grid-column: 2 / span 4; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}

@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-center {
    position: absolute;
    top: calc(100% - 6px);
    left: var(--pad);
    right: var(--pad);
    padding: 14px;
    border-radius: 22px;
    background: rgba(14, 16, 19, .94);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }

  body.menu-open .nav-center {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-bottom: 12px;
  }
  .nav-list li { text-align: center; }
  .nav-link { font-size: 16px; padding: 13px 24px; }
  .nav-link.is-active { padding: 13px 30px; }

  .nav-phone-mobile {
    display: block;
    padding-top: 12px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, .6);
  }

  /* přehlídka: obrázek nahoře, text pod ním */

  .ig { flex-direction: column; align-items: flex-start; }

  /* zoom: na úzkém displeji míň dlaždic a kratší dráha */
  .zoom { height: 230svh; }

  .zoom-item:nth-child(1) { --w: 48; --h: 26; }
  .zoom-item:nth-child(2) { --w: 52; --h: 22; --x: 6;   --y: -26; }
  .zoom-item:nth-child(3) { --w: 30; --h: 30; --x: -32; --y: -4; }
  .zoom-item:nth-child(4) { --w: 34; --h: 24; --x: 34;  --y: 2; }
  .zoom-item:nth-child(5) { --w: 40; --h: 22; --x: -8;  --y: 26; }
  .zoom-item:nth-child(6),
  .zoom-item:nth-child(7) { display: none; }

  .duo--wide,
  .duo--narrow,
  .duo--flip.duo--wide,
  .duo--flip.duo--narrow { grid-template-columns: 1fr; }
  .duo--low, .duo--high { margin-top: clamp(40px, 9vw, 70px); }

  /* projekt: bloky pod sebe */
  .pair,
  .duo { grid-template-columns: 1fr; gap: 20px; }
  .pair-side { padding-top: 0; }
  .duo { margin-top: clamp(40px, 9vw, 70px); }
  .duo--flip .duo-media,
  .duo--flip .duo-text { order: 0; }

  .cline { grid-template-columns: 1fr; gap: 4px; }
  .cline-note { justify-self: start; }
}

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-title { font-size: clamp(21px, 6vw, 30px); }
  .hero-title .ln-1 { transform: translateX(8px); }
  .hero-title .ln-3 { transform: translateX(18px); }
  .hero-meta { font-size: 13px; padding-top: 14px; }

  /* podklad i sedačka se přiblíží úplně stejně, takže na sebe pořád sedí */
  .hero-layer,
  .hero-sofa { top: auto; bottom: 0; height: 143%; }

  .wordmark { font-size: 17cqw; transform: translateY(6%); }

  .stats {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: clamp(24px, 5vw, 40px);
  }
  .stat { width: 100%; }
  .stat--b { margin-top: 0; transform: none; }

  .divider { height: clamp(150px, 22vh, 220px); }
  .divider::before,
  .divider::after { height: 26%; }

  .sec-notes { grid-template-columns: 1fr; }
  .note--a, .note--b, .note--c { grid-column: 1; margin-top: 0; }
  .note--wide { text-align: left; margin-left: 0; }

  .tally { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .tally-item:nth-child(odd) { border-left: 0; padding-left: 0; }

  .steps { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .btn { font-size: 11px; letter-spacing: .05em; padding-left: 18px; }
  .tally { grid-template-columns: 1fr; }
  .tally-item { border-left: 0; padding-left: 0; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }

  /* bez pohybu zůstane jen prostřední fotka přes celou plochu */
  .zoom { height: auto; }
  .zoom-stage { position: static; height: 70svh; }
  .zoom-item:not(:first-child) { display: none; }
  .zoom-item:first-child .zoom-media { position: absolute; inset: 0; height: 100%; width: 100%; }
  .zoom-cap { opacity: 1 !important; }
  .ptext { opacity: 1; transform: none; }
  .ptext.is-past { opacity: 0; }
}
