/* Portfolio realizací RealBucks
   Barvy podle brandbooku: Dark Green #0F2E27, Mint #E7F1ED, Pink #FF4D8D (jen akcent). */

:root {
  --green: #0F2E27;
  --green-mid: #3F6F5D;
  --green-soft: #9DBDB1;
  --green-line: #25473F;
  --mint: #E7F1ED;
  --paper: #F7FAF8;
  --white: #FFFFFF;
  --pink: #FF4D8D;
  --ink: #0F2E27;
  --muted: #536B65;
  --line: #D5E3DD;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.zamek { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.skryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: 16px; top: -60px; background: var(--pink); color: var(--green); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; z-index: 50; }
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pink); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn--pink { background: var(--pink); color: var(--green); }
.btn--pink:hover { transform: translateY(-1px); }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: rgba(255,255,255,.08); }

/* ---------- Hlavička + hero ---------- */
.top { background: var(--green); color: var(--white); position: relative; overflow: hidden; }
.top::after { /* jemný obrys kruhu z loga, žádný gradient */
  content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px;
  border: 2px solid var(--green-line); border-radius: 50%; pointer-events: none;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand b span { color: var(--pink); }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-family: var(--display); font-weight: 500; font-size: 16px; }
.nav ul a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--pink); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; }
@media (max-width: 720px) { .nav li.jen-desktop { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.02em; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero .claim { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }
.hero .lead { color: #C9DCD5; font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; }
.hero .akce { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-foto figcaption { margin-top: 12px; font-size: 14px; color: #C9DCD5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-foto figcaption a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.hero-foto figcaption a:hover { color: var(--pink); }

.souhrn { border-top: 1px solid var(--green-line); position: relative; z-index: 1; }
.souhrn dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.souhrn div { padding: clamp(20px, 2.6vw, 34px) clamp(12px, 1.8vw, 24px); border-left: 1px solid var(--green-line); }
.souhrn div:first-child { border-left: 0; padding-left: 0; }
.souhrn dt { order: 2; font-size: 14px; color: #C9DCD5; line-height: 1.35; margin-top: 6px; }
.souhrn dd { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.3vw, 46px); line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.souhrn dd small { font-size: .5em; font-weight: 600; letter-spacing: 0; margin-left: .2em; }
.souhrn div { display: flex; flex-direction: column; }
.souhrn .pozn { padding: 0 0 26px; font-size: 14px; color: #A9C4BB; max-width: 60em; }
.souhrn .pozn a { color: var(--white); text-underline-offset: 4px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .souhrn dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .souhrn div { border-left: 0; padding-left: 0; border-top: 1px solid var(--green-line); }
  .souhrn div:nth-child(-n+2) { border-top: 0; }
  .souhrn div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--green-line); }
  .souhrn div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Sekce ---------- */
.sekce { padding: clamp(56px, 8vw, 112px) 0; }
.sekce--mint { background: var(--mint); }
.sekce-hlava { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 44px); }
.sekce-hlava h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.015em; margin-top: 14px; }
.sekce-hlava p { color: var(--muted); max-width: 36em; margin-top: 12px; }

/* ---------- Filtry ---------- */
.filtry { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.filtry [role=group] { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: 15px; background: var(--white);
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed=true] { background: var(--green); border-color: var(--green); color: var(--white); }
.chip i { font-style: normal; font-size: 13px; opacity: .65; font-variant-numeric: tabular-nums; }

/* ---------- Mřížka projektů ---------- */
.mrizka { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.karta { grid-column: span 3; display: flex; }
.karta--foto { grid-column: span 6; }
.karta a { display: flex; flex-direction: column; width: 100%; text-decoration: none; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: border-color .2s ease, transform .2s ease; }
.karta a:hover { border-color: var(--green); transform: translateY(-3px); }
.karta a:focus-visible { border-radius: var(--r-l); }
.prazdno { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r-l); }

.stitek { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 13px; line-height: 1.3; background: var(--white); color: var(--green); border: 1px solid var(--line); white-space: nowrap; }
.stitek::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); }
.stitek--bezi { background: var(--green); color: var(--white); border-color: var(--green-line); }
.stitek--bezi::before { background: var(--pink); }

/* karta s fotkou */
.karta-foto { position: relative; aspect-ratio: 16 / 10; background: var(--mint); overflow: hidden; }
.karta-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.karta a:hover .karta-foto img { transform: scale(1.03); }
.karta-foto .stitek { position: absolute; left: 16px; top: 16px; }
.karta-foto .pocet { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 13px; font-weight: 600; }
.karta-foto .pocet svg { width: 16px; height: 16px; }
.karta-telo { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.karta h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.01em; }
.karta .meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.cisla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.karta--foto .cisla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cisla dt { font-size: 13px; color: var(--muted); }
.cisla dd { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* karta bez fotky: typografie + obrys domu */
.karta--plain a { background: var(--mint); border-color: transparent; }
.karta--plain .karta-telo { gap: 14px; }
.plain-hlava { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: clamp(18px, 3vw, 40px); }
.plain-hlava svg { width: 56px; height: 56px; }
.karta--plain .cisla { border-top-color: #C6D9D1; }
.karta--plain .cisla { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.karta--plain .cisla dd { font-size: 18px; }
.karta--bezi a { background: var(--green); color: var(--white); }
.karta--bezi a:hover { border-color: var(--pink); }
.karta--bezi .meta, .karta--bezi .cisla dt { color: #B5CDC5; }
.karta--bezi .cisla { border-top-color: var(--green-line); }
.karta--bezi.karta--foto .karta-telo { background: var(--green); }

.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico * { vector-effect: non-scaling-stroke; }
.ico .a { stroke: var(--pink); }

@media (max-width: 1080px) { .karta { grid-column: span 4; } .karta--foto { grid-column: span 6; } }
@media (max-width: 820px)  { .karta { grid-column: span 6; } .karta--foto { grid-column: span 12; } }
@media (max-width: 520px)  { .karta, .karta--foto { grid-column: span 12; } .plain-hlava { margin-bottom: 12px; } .plain-hlava svg { width: 44px; height: 44px; } }

/* ---------- Posuvník před / po ---------- */
.cmp { --pos: 50%; position: relative; width: 100%; overflow: hidden; border-radius: var(--r-l); background: var(--green-line); user-select: none; -webkit-user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-pred { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 13px; background: var(--green); color: var(--white); pointer-events: none; }
.cmp-tag--l { left: 14px; }
.cmp-tag--r { right: 14px; background: var(--white); color: var(--green); }
.cmp-cara { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.cmp-cara span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--white); color: var(--green); display: grid; place-items: center; border: 2px solid var(--green); }
.cmp-cara svg { width: 22px; height: 22px; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.cmp input:focus-visible ~ .cmp-cara span { outline: 3px solid var(--pink); outline-offset: 3px; }

/* ---------- Jak to děláme ---------- */
.kroky { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); counter-reset: krok; }
.krok { background: var(--white); border-radius: var(--r-l); padding: clamp(20px, 2.2vw, 30px); position: relative; counter-increment: krok; }
.krok::before { content: "0" counter(krok); position: absolute; right: 22px; top: 20px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--green-soft); letter-spacing: .06em; }
.krok svg { width: 48px; height: 48px; margin-bottom: 22px; }
.krok h3 { font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 8px; }
.krok p { color: var(--muted); font-size: 16px; }
@media (max-width: 980px) { .kroky { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kroky { grid-template-columns: 1fr; } }

.modely { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(14px, 1.8vw, 24px); }
.model { border: 2px solid var(--green); border-radius: var(--r-l); padding: clamp(20px, 2.2vw, 30px); display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; }
.model b { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4vw, 56px); line-height: 1; grid-row: span 2; align-self: center; font-variant-numeric: tabular-nums; }
.model h3 { font-family: var(--display); font-weight: 700; font-size: 22px; }
.model p { color: var(--muted); font-size: 16px; }
@media (max-width: 720px) { .modely { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--green); color: var(--white); position: relative; overflow: hidden; }
.kontakt::after { content: ""; position: absolute; left: -160px; bottom: -260px; width: 520px; height: 520px; border: 2px solid var(--green-line); border-radius: 50%; pointer-events: none; }
.kontakt .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.kontakt h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.015em; margin: 16px 0 18px; }
.kontakt p { color: #C9DCD5; max-width: 32em; }
.kontakt-box { border: 1px solid var(--green-line); border-radius: var(--r-l); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 18px; }
.kontakt-radek { display: flex; align-items: center; gap: 16px; }
.kontakt-radek svg { width: 32px; height: 32px; flex: none; }
.kontakt-radek span { display: block; font-size: 13px; color: #B5CDC5; }
.kontakt-radek strong, .kontakt-radek a { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); text-decoration: none; overflow-wrap: anywhere; }
.kontakt-radek a:hover { color: var(--pink); }
.kontakt-box .btn { margin-top: 6px; }
@media (max-width: 860px) { .kontakt .wrap { grid-template-columns: 1fr; } }

.pata { background: var(--mint); padding: 36px 0; font-size: 14px; color: var(--muted); }
.pata .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.pata img { width: 120px; height: auto; }
.pata p { max-width: 46em; }
.pata a { color: var(--green); font-weight: 600; }

/* ---------- Detail projektu (dialog) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(15, 46, 39, .88); }
.detail { width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; border-radius: var(--r-l); background: var(--paper); overflow: auto; overscroll-behavior: contain; }
.detail-lista { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 3vw, 36px); background: var(--paper); border-bottom: 1px solid var(--line); }
.detail-lista .kde { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kulate { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; background: var(--white); color: var(--green); transition: background .15s, color .15s; }
.kulate:hover { background: var(--green); color: var(--white); }
.kulate svg { width: 20px; height: 20px; }
.detail-telo { padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 36px) clamp(28px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 48px); }
.detail-hlava { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.detail-hlava h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -.02em; margin-top: 14px; }
.detail-hlava .meta { color: var(--muted); margin-top: 10px; }
.fakta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--white); }
.fakta div { padding: 16px clamp(12px, 1.6vw, 22px); border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.fakta div:first-child { border-left: 0; }
.fakta dt { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fakta dd { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fakta .hl dd { color: var(--green); box-shadow: inset 0 -3px 0 var(--pink); align-self: flex-start; }
@media (max-width: 700px) {
  .fakta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakta div:nth-child(odd) { border-left: 0; }
  .fakta div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.detail h3.nadpis { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail h3.nadpis small { font-family: var(--text); font-weight: 500; font-size: 14px; color: var(--muted); }
.plan-znak { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--green); color: var(--white); font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }

.cmp-obal { display: grid; justify-items: center; }
.cmp-obal .cmp { max-height: min(72vh, 680px); }
.cmp-obal p { font-size: 14px; color: var(--muted); margin-top: 10px; justify-self: start; }

.dva { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
@media (max-width: 860px) { .dva { grid-template-columns: 1fr; } }

.pruh { display: flex; height: 44px; border-radius: var(--r-s); overflow: hidden; gap: 2px; margin-bottom: 18px; }
.pruh span { min-width: 4px; }
.b-nakup { background: var(--green); }
.b-rek { background: var(--green-mid); }
.b-ost { background: var(--green-soft); }
.b-vys { background: var(--pink); }
.ucet { display: grid; }
.ucet div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ucet dt { display: flex; align-items: center; gap: 10px; }
.ucet dt i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.ucet dd { font-family: var(--display); font-weight: 600; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ucet .soucet dt, .ucet .soucet dd { color: var(--muted); font-weight: 500; }
.ucet .vysledek { border-bottom: 0; border-top: 2px solid var(--green); margin-top: -1px; padding-top: 14px; }
.ucet .vysledek dt { font-family: var(--display); font-weight: 700; font-size: 20px; }
.ucet .vysledek dd { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); }
.ucet-pozn { font-size: 14px; color: var(--muted); margin-top: 12px; }

.popis { display: grid; gap: 14px; }
.popis li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--mint); border-radius: var(--r-m); padding: 16px 18px; }
.popis svg { width: 36px; height: 36px; }
.popis span { display: block; font-size: 13px; color: var(--muted); }
.popis strong { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.3; }

.galerie-skupina + .galerie-skupina { margin-top: 22px; }
.galerie-skupina h4 { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.galerie-skupina h4::before { content: ""; width: 20px; height: 2px; background: var(--pink); }
.nahledy { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nahledy button { aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--mint); }
.nahledy img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.nahledy button:hover img { transform: scale(1.05); }
@media (max-width: 520px) { .nahledy { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }

.bez-fotek { display: flex; align-items: center; gap: 18px; background: var(--mint); border-radius: var(--r-m); padding: 20px 22px; color: var(--muted); }
.bez-fotek svg { width: 44px; height: 44px; flex: none; color: var(--green); }

.detail-pata { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-pata .btn { border-color: var(--green); min-height: 46px; }
.detail-pata .btn:hover { background: var(--green); color: var(--white); }

@media (max-width: 700px) {
  .detail { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
}

/* ---------- Lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: var(--green); color: var(--white); overflow: hidden; }
.lb::backdrop { background: var(--green); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-lista { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lb-lista p { font-family: var(--display); font-weight: 600; font-size: 15px; }
.lb-lista p span { color: var(--pink); margin-right: 8px; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.lb .kulate { border-color: var(--white); background: transparent; color: var(--white); }
.lb .kulate:hover { background: var(--white); color: var(--green); }
.lb-scena { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 84px); touch-action: pan-y; }
.lb-scena img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-s); min-height: 0; }
.lb-sipka { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; }
.lb-sipka--l { left: 16px; }
.lb-sipka--r { right: 16px; }
.lb-pata { padding: 12px 16px 18px; text-align: center; font-size: 14px; color: #C9DCD5; min-height: 48px; }
@media (max-width: 700px) {
  .lb-scena { padding: 0 8px; }
  .lb-sipka { top: auto; bottom: 10px; margin: 0; background: var(--green) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .nav ul, .filtry, .skip { display: none; }
}
