/* Písma jsou uložená na webu (ne Google Fonts): DM Serif Display na nadpisy, Be Vietnam Pro na text. */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-serif-display-latin-ext-400-normal.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: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-serif-display-latin-400-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-ext-300-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-300-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-ext-400-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-400-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-ext-500-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-500-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-ext-600-normal.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: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-600-normal.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; }

/* HOPA stavby – web (vychází z návrhu verze 4 (ve stylu tempus-realestate.cz)
   Barvy: bílá, teplá plocha, noční modrá (z modré v logu HOPA), zlatá (z loga Výhledů Říp).
   Písmo: DM Serif Display na nadpisy, Be Vietnam Pro v lehkém řezu na text. */

:root {
  --bila: #fff;
  --panel: #F6F1EC;
  --linka: #E6DED4;
  --noc: #0F2A3F;
  --noc-tmava: #0A1E2E;
  --zlata: #A4824A;          /* linky, velké nadpisy */
  --zlata-tmava: #8A6A35;    /* malý text a tlačítka – kontrast 5 : 1 */
  --zlata-svetla: #D8C3A0;   /* na tmavé ploše */
  --text: #5F6A72;
  --chyba: #B3261E;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --okraj: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bila); color: var(--text);
  font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--noc); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--zlata-tmava); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--zlata-tmava); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ik { width: 20px; height: 20px; flex: none; }
.obal { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--okraj); }
.stred { text-align: center; margin: 56px 0 0; }

.preskocit { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--noc); color: #fff; padding: 10px 16px; }
.preskocit:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- písmo */
.nadpis { font-family: var(--serif); font-size: clamp(2rem, 1.55rem + 1.5vw, 2.75rem); line-height: 1.2; color: var(--noc); text-wrap: balance; }
.nadpis--maly { font-size: clamp(1.625rem, 1.4rem + .8vw, 2rem); }
.stitek { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1.6; color: var(--zlata-tmava); }
.stitek--svetly { color: #fff; }
.stitek--svetly a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 2px; }
.stitek--svetly a:hover { color: #fff; border-bottom-color: #fff; }
.hlava { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.hlava p { margin: 20px 0 0; }
.hlava--stred { margin-inline: auto; text-align: center; }
.uvodni { font-size: 1.125rem; line-height: 1.75; color: var(--noc); }
.podnadpis { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--noc); margin: 36px 0 12px; }

/* ---------------------------------------------------------------- tlačítka a odkazy */
.tl {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 16px 34px; border: 0; border-radius: 0;
  background: var(--zlata-tmava); color: #fff;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease;
}
.tl:hover { background: var(--noc); color: #fff; }
.vice {
  display: inline-block; margin-top: 20px; padding-bottom: 8px;
  border-bottom: 1px solid var(--zlata);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
  color: var(--zlata-tmava); text-decoration: none;
}
.vice:hover { color: var(--noc); border-bottom-color: var(--noc); }
.vice--svetle { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.hlava .vice { margin: 0 0 0 12px; }
.kruh { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; }
.kruh .ik { width: 20px; height: 20px; stroke-width: 1.5; }
.kruh--obrys { border: 1px solid rgba(255,255,255,.55); }
.kruh--velky { width: 96px; height: 96px; background: var(--noc); color: #fff; }
.kruh--velky .ik { width: 40px; height: 40px; stroke-width: 1.3; }

/* ---------------------------------------------------------------- hlavička */
.hl { position: absolute; inset: 0 0 auto 0; z-index: 30; padding-top: 24px; }
.hl__radek { display: flex; align-items: center; gap: 40px; }
/* logo jen v bílých čarách (jako ve verzi 3), hlavička leží vždy přes tmavou fotku */
.hl__logo { position: relative; z-index: 2; display: block; flex: none; }
.hl__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.hl__menu { margin-left: auto; }
.hl__menu ul { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.hl__menu a { display: block; padding: 6px 0; border-bottom: 1px solid transparent; color: #fff; font-size: 15px; font-weight: 400; text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hl__menu a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.hl__menu a[aria-current="page"] { border-bottom-color: var(--zlata-svetla); }
.hl__menu-kontakt { display: none; }
.hl__prepinac { display: none; }

@media (max-width: 900px) {
  .hl { padding-top: 16px; }
  .hl__logo img { height: 36px; }
  .hl__prepinac {
    position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; margin-left: auto; padding: 0 13px;
    background: rgba(10,30,46,.35); border: 1px solid rgba(255,255,255,.6); cursor: pointer;
  }
  .hl__prepinac span { display: block; height: 1.5px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .hl__prepinac[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hl__prepinac[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hl__prepinac[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hl__menu {
    position: fixed; inset: 0; z-index: 1; display: none; flex-direction: column; overflow: auto;
    margin: 0; padding: 104px var(--okraj) 40px; background: var(--noc);
  }
  .hl__menu.otevrene { display: flex; }
  .hl__menu ul { flex-direction: column; gap: 0; }
  .hl__menu li a { font-family: var(--serif); font-size: 2rem; line-height: 1.3; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-shadow: none; }
  .hl__menu a[aria-current="page"] { color: var(--zlata-svetla); border-bottom-color: rgba(255,255,255,.14); }
  .hl__menu-kontakt { display: grid; gap: 8px; margin: 32px 0 0; }
  .hl__menu-kontakt a { color: #fff; font-size: 1.125rem; text-decoration: none; }
  body.menu-otevrene { overflow: hidden; }
}

/* ---------------------------------------------------------------- úvod */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* menší než celá obrazovka, ať je pod ním vidět začátek další sekce */
  min-height: clamp(600px, 76svh, 780px); display: flex; flex-direction: column; justify-content: center;
  background: var(--noc); color: #fff;
}
.hero__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero__foto.je-videt { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,30,46,.80) 0%, rgba(10,30,46,.52) 42%, rgba(10,30,46,.10) 78%),
    linear-gradient(180deg, rgba(10,30,46,.50) 0%, rgba(10,30,46,0) 24%);
}
.hero__obsah { padding-top: 124px; padding-bottom: 132px; }
.hero__nadpis { max-width: 11ch; margin: 18px 0 40px; font-family: var(--serif); font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.6rem); line-height: 1.06; color: #fff; text-wrap: balance; }
.hero__pata { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
/* úvodní banner: popisek snímku (projekt) vpravo dole, pod ním přepínání snímků */
.hero__projekty { width: min(380px, 100%); margin-left: auto; padding: 22px 24px 16px; background: rgba(10,30,46,.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 2px solid var(--zlata); }
.hero__projekt-stitek { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; color: var(--zlata-svetla); }
.hero__projekt-nazev { margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; color: #fff; }
.hero__projekt-text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.86); }
.hero__projekt .vice { margin-top: 14px; }
.hero__ovladani { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.hero__tecka { position: relative; width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__tecka::before { content: ""; position: absolute; left: 2px; right: 2px; top: 11px; height: 2px; background: rgba(255,255,255,.38); }
.hero__tecka[aria-current="true"]::before { background: var(--zlata-svetla); }
.hero__tecka:hover::before { background: #fff; }
.hero__pauza { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.hero__pauza:hover { border-color: #fff; }
.hero__pauza .ik { width: 12px; height: 12px; }
.hero__pauza .ik-prehrat, .hero__pauza[aria-pressed="true"] .ik-pauza { display: none; }
.hero__pauza[aria-pressed="true"] .ik-prehrat { display: block; }
.hero :focus-visible { outline-color: #fff; }
.hero__tel { display: inline-flex; align-items: center; gap: 16px; color: #fff; font-size: 1.25rem; font-weight: 300; text-decoration: none; }
.hero__tel:hover { color: #fff; }
.hero__tel small, .poptavka__tel small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5; }
.hero__tel small { opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .hero__foto:first-of-type { animation: priblizeni 2.6s cubic-bezier(.2, .6, .2, 1) both; }
  .hero__obsah > * { animation: vynoreni .9s ease-out both; }
  .hero__obsah > :nth-child(2) { animation-delay: .15s; }
  .hero__obsah > :nth-child(3) { animation-delay: .3s; }
}
@keyframes priblizeni { from { transform: scale(1.07); } to { transform: none; } }
@keyframes vynoreni { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sekce */
.sekce { padding-block: clamp(64px, 9vw, 128px); }
.sekce--panel { background: var(--panel); }
.sekce--bez-horni { padding-top: 0; }
.sekce--bez-dolni { padding-bottom: 0; }

/* tři služby na teplém pásu přes celou šířku */
.trio-pas { background: var(--panel); padding-block: clamp(56px, 6.5vw, 96px); }
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; text-align: center; }
.trio li { display: flex; flex-direction: column; align-items: center; }
.trio .vice { margin-top: auto; }
.trio p { margin-bottom: 20px !important; }
.trio h3 { margin: 28px 0 12px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--noc); }
.trio p { max-width: 30ch; margin: 0 auto; font-size: 15px; }

/* karty staveb */
.karty { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.karta[hidden] { display: none; }
.karta a { display: block; color: inherit; text-decoration: none; }
.karta__foto, .dil__foto { display: block; overflow: hidden; background: var(--linka); }
.karta__foto img, .dil__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karta__linka { display: block; width: 56px; height: 1px; margin: 26px 0 16px; background: var(--zlata); }
.karta__nazev { display: block; font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; color: var(--noc); }
.karta__udaj { display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; }
.karta a:hover .karta__nazev { color: var(--zlata-tmava); }
.dil__nazev { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--noc); margin-bottom: 10px; }
.karty--dily p { font-size: 15px; }

/* řádky fotka + text na teplé ploše */
.radek-sekce { margin-block: clamp(40px, 6vw, 88px); padding-block: clamp(28px, 3.5vw, 44px); background: var(--panel); }
.radek { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.radek--obracene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.radek--obracene .radek__foto { order: 2; }
.radek__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.radek__text { max-width: 460px; }
.radek__nadpis { margin: 10px 0 20px; font-family: var(--serif); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1.2; color: var(--zlata); }
.radek__text p { font-size: 15px; }
.odrazky { list-style: none; margin: 12px 0 0; padding: 0; }
.odrazky li { position: relative; margin: 4px 0; padding-left: 20px; }
.odrazky li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; height: 1px; background: var(--zlata); }

/* pilíře */
.pilire { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.pilir__ikona { width: 52px; height: 52px; margin: 0 auto 22px; color: var(--noc); stroke-width: 1.15; }
.pilire h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; color: var(--noc); }
.pilire p { max-width: 32ch; margin: 0 auto; font-size: 15px; }

/* partneři v rámečcích */
.partneri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.partneri a, .partneri span { display: grid; place-items: center; height: 132px; padding: 24px; background: #fff; border: 1px solid var(--linka); border-radius: 3px; }
.partneri a:hover { border-color: var(--zlata); }
.partneri img { max-width: 100%; max-height: 46px; width: auto; }
.sekce .obal + .obal .partneri { margin-top: 56px; }

/* poptávka */
.poptavka { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.poptavka__text p { max-width: 36ch; margin: 20px 0 32px; }
.poptavka__tel { display: inline-flex; align-items: center; gap: 16px; color: var(--noc); font-size: 1.25rem; text-decoration: none; }
.poptavka__tel small { color: var(--zlata-tmava); }
.poptavka__tel .kruh { border: 1px solid var(--zlata); color: var(--noc); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.pole { display: flex; flex-direction: column; gap: 4px; }
.pole--cela { grid-column: 1 / -1; }
.form label { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--noc); }
.nepovinne { margin-left: 4px; font-weight: 300; color: var(--text); }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #C2B39E; border-radius: 0;
  background: transparent; color: var(--noc); font: inherit; font-size: 16px; font-weight: 300;
}
.form select {
  appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A35' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 18px;
}
.form textarea { min-height: 96px; resize: vertical; }
/* „Co chystáte“: volby jako klikací pole (radio). Vybraná je tmavá jako patička, kolečko zlaté. */
.volby { min-width: 0; margin: 0; padding: 0; border: 0; }
.volby legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--noc); }
.volby__seznam { display: flex; flex-wrap: wrap; gap: 10px; }
.form .volba { position: relative; display: block; cursor: pointer; letter-spacing: normal; }
.volba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.volba span {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 14px;
  border: 1px solid #C2B39E; border-radius: 2px; background: rgba(255,255,255,.55);
  font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--noc);
  transition: background-color .15s, border-color .15s, color .15s;
}
.volba span::before {
  content: ""; flex: none; width: 15px; height: 15px; border: 1px solid var(--zlata); border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent; transition: background-color .15s, box-shadow .15s, border-color .15s;
}
.volba:hover span { border-color: var(--zlata-tmava); background: #fff; }
.volba input:checked + span { background: var(--noc); border-color: var(--noc); color: #fff; }
.volba input:checked + span::before { border-color: var(--zlata-svetla); background: var(--zlata-svetla); box-shadow: inset 0 0 0 3px var(--noc); }
.volba input:focus-visible + span { outline: 2px solid var(--zlata-tmava); outline-offset: 3px; }
@media (max-width: 560px) { .volby__seznam { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .volba span, .volba span::before { transition: none; } }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--noc); box-shadow: 0 1px 0 var(--noc); }
.form [aria-invalid="true"] { border-bottom-color: var(--chyba); }
.chyba { margin: 4px 0 0; font-size: 13px; color: var(--chyba); }
.form__pata { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.form__souhlas { margin: 0; font-size: 13px; }
.form__stav { margin: 0; color: var(--noc); }
.form__stav:empty { display: none; }

/* ---------------------------------------------------------------- podstránky */
.zahlavi {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(380px, 46vw, 520px); display: flex; align-items: center; justify-content: center;
  background: var(--noc); color: #fff; text-align: center;
}
.zahlavi__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.zahlavi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,30,46,.62) 0%, rgba(10,30,46,.38) 45%, rgba(10,30,46,.58) 100%); }
.zahlavi__text { padding-top: 110px; padding-bottom: 64px; }
.zahlavi__nadpis { margin: 12px auto 0; max-width: 18ch; font-family: var(--serif); font-size: clamp(2.4rem, 1.5rem + 2.8vw, 4rem); line-height: 1.1; color: #fff; text-wrap: balance; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.detail__text .nadpis { margin-bottom: 24px; }
.box { background: var(--panel); padding: clamp(28px, 3.5vw, 44px); }
.box__nadpis { margin: 0 0 18px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; color: var(--zlata); }
.box > * + .box__nadpis { margin-top: 32px; }
.fakta { margin: 0; display: grid; gap: 10px; }
.fakta div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--linka); }
.fakta dt { font-size: 14px; }
.fakta dd { margin: 0; color: var(--noc); font-weight: 400; text-align: right; }
.box .fakta { margin-top: 8px; }
.kroky { list-style: none; counter-reset: krok; margin: 0; padding: 0; display: grid; gap: 16px; }
.kroky li { counter-increment: krok; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.kroky li::before { content: counter(krok); grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--zlata); }
.kroky b { color: var(--noc); }
.kroky span { font-size: 14px; line-height: 1.6; }

/* řada fotek s šipkami */
.pas { position: relative; }
.pas__rada {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.pas__rada::-webkit-scrollbar { display: none; }
.pas__rada li { scroll-snap-align: start; }
.pas__rada img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.pas__sipka {
  position: absolute; top: 50%; z-index: 1; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--zlata-tmava); cursor: pointer;
}
.pas__sipka .ik { width: 28px; height: 28px; stroke-width: 1.4; }
.pas__sipka--vlevo { left: -56px; }
.pas__sipka--vpravo { right: -56px; }
.pas__sipka:disabled { opacity: .25; cursor: default; }
.pas__sipka[hidden] { display: none; }

.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.galerie a { display: block; overflow: hidden; background: var(--linka); cursor: zoom-in; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.listovani { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--linka); }
.listovani a { display: flex; align-items: center; gap: 12px; max-width: 48%; color: var(--noc); text-decoration: none; }
.listovani a[rel="next"] { margin-left: auto; text-align: right; }
.listovani a > span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.listovani small { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--zlata-tmava); }
.listovani .ik { width: 22px; height: 22px; color: var(--zlata); stroke-width: 1.5; }
.listovani a:hover > span { color: var(--zlata-tmava); }

/* filtr referencí */
.filtr { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-bottom: 56px; }
.filtr button {
  padding: 8px 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer;
  color: var(--text); font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.filtr button sup { margin-left: 2px; font-size: 10px; letter-spacing: 0; color: var(--zlata-tmava); }
.filtr button:hover { color: var(--noc); }
.filtr button[aria-pressed="true"] { color: var(--noc); border-bottom-color: var(--zlata); }
.filtr__obec { margin: -32px 0 40px; text-align: center; }
.filtr__obec button { padding: 0; border: 0; background: none; color: var(--zlata-tmava); font: inherit; text-decoration: underline; cursor: pointer; }

/* kde stavíme */
/* program e4 dům (úvod a Reference) */
.e4__obal { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1080px; }
.e4__logo { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 40px; background: #fff; border: 1px solid var(--linka); }
.e4__logo img { width: 100%; max-width: 230px; height: auto; }
.e4__text p { max-width: 58ch; margin: 18px 0 0; }
@media (max-width: 760px) {
  .e4__obal { grid-template-columns: 1fr; }
  .e4__logo { aspect-ratio: auto; padding: 32px; }
  .e4__logo img { max-width: 180px; }
}

/* tým */
.lide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.os { display: flex; flex-direction: column; }
.os__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: #ECE4D9; }
.os__foto--inicialy { display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--zlata); }
.os__jmeno { margin-top: 20px; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.25; color: var(--noc); }
.os__role { margin-top: 2px; font-size: 14px; }
.os__kontakt { display: flex; flex-direction: column; margin-top: 12px; font-size: 14px; line-height: 1.7; }
.os__kontakt a { width: fit-content; text-decoration: none; }
.os__kontakt a:hover { text-decoration: underline; }

/* kontakty */
.spojeni__velky { display: block; margin: 8px 0 0; font-family: var(--serif); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.3; color: var(--noc); text-decoration: none; overflow-wrap: anywhere; }
.spojeni__velky + p { margin-top: 28px; }

/* prohlížeč fotek */
.lb { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.lb::backdrop { background: rgba(10, 30, 46, .96); }
.lb[open] { display: grid; place-items: center; }
.lb img { width: auto; height: auto; max-width: calc(100vw - 150px); max-height: calc(100vh - 100px); object-fit: contain; }
.lb button { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.lb button:hover { border-color: #fff; }
.lb button[hidden] { display: none; }
.lb__zavrit { top: 18px; right: 18px; }
.lb__sipka--vlevo { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__sipka--vpravo { right: 18px; top: 50%; transform: translateY(-50%); }
.lb__pocet { position: fixed; top: 30px; left: 24px; margin: 0; font-size: 13px; letter-spacing: .1em; color: var(--zlata-svetla); }

/* ---------------------------------------------------------------- patička */
.pa { padding-top: clamp(64px, 8vw, 104px); background: var(--noc); color: #B7C4CE; font-size: 15px; }
.pa a { color: #fff; text-decoration: none; }
.pa a:hover { color: var(--zlata-svetla); }
.pa p { margin: 0 0 .5em; }
.pa__kontakty { display: grid; grid-template-columns: repeat(2, max-content); gap: 40px clamp(48px, 10vw, 160px); padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255,255,255,.14); }
.pa__popis { margin: 0 0 12px !important; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.pa__velky { display: block; margin-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 300; line-height: 1.3; }
.pa__spodni { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
.pa__firma p:not(.pa__popis) { max-width: 32ch; }
.pa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.pa ul a { display: inline-flex; align-items: center; gap: 8px; color: #D3DCE3; }
.pa ul .ik { width: 14px; height: 14px; color: var(--zlata); }
.pa__copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: 0 !important; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #8FA1AE; }

/* spodní lišta na mobilu */
.lista { display: none; }

/* ---------------------------------------------------------------- menší obrazovky */
@media (max-width: 1320px) {
  .pas__sipka { background: rgba(255,255,255,.94); border-radius: 50%; box-shadow: 0 1px 4px rgba(10,30,46,.2); }
  .pas__sipka .ik { width: 22px; height: 22px; }
  .pas__sipka--vlevo { left: 10px; }
  .pas__sipka--vpravo { right: 10px; }
}
@media (max-width: 1000px) {
  .karty { grid-template-columns: repeat(2, 1fr); }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .pa__spodni { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .trio, .pilire { grid-template-columns: 1fr; }
  .radek, .radek--obracene, .detail, .poptavka { grid-template-columns: 1fr; }
  .radek--obracene .radek__foto { order: 0; }
  .radek__text { max-width: none; }
  .partneri { grid-template-columns: repeat(3, 1fr); }
  .lide { grid-template-columns: repeat(2, 1fr); }
  .pas__rada { grid-auto-columns: calc((100% - 24px) / 2.3); }
}
@media (max-width: 760px) {
  .lista {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--linka);
  }
  .lista a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
  .lista .ik { width: 18px; height: 18px; }
  .lista a:first-child { background: var(--zlata-tmava); color: #fff; }
  .lista a:last-child { border: 1px solid var(--noc); color: var(--noc); }
  body { padding-bottom: 72px; }
  /* telefon v úvodu by zakryla spodní lišta, která má vlastní tlačítko Zavolat */
  .hero__tel { display: none; }
  /* spodní lišta (Zavolat, Poptávka) zabírá 72 px, banner končí nad ní */
  .hero { min-height: 600px; }
  .hero__pata { bottom: 16px; }
  .hero__projekty { width: 100%; padding: 16px 18px 10px; }
  .hero__projekt-nazev { font-size: 1.375rem; }
  .hero__projekt-text { display: none; }
  .hero__projekt .vice { margin-top: 10px; }
  .hero__ovladani { margin-top: 8px; }
  /* na úzké obrazovce posunout výřez fotky doleva */
  .str-uvod .hero__foto { object-position: 12% 50%; }
  .hero__obsah { padding-bottom: 110px; }
  .hero:has(.hero__projekty) .hero__obsah { padding-bottom: 220px; }
  .pa__kontakty { grid-template-columns: 1fr; }
  .pas__rada { grid-auto-columns: 72%; gap: 16px; }
  .listovani a > span { font-size: 1.0625rem; }
}
@media (max-width: 600px) {
  .karty, .form { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .partneri { grid-template-columns: repeat(2, 1fr); }
  .partneri a, .partneri span { height: 104px; }
  .pa__spodni { grid-template-columns: 1fr; }
  .lb img { max-width: 100vw; max-height: calc(100vh - 160px); }
  .lb__sipka--vlevo, .lb__sipka--vpravo { top: auto; bottom: 24px; transform: none; }
}
@media (max-width: 420px) {
  .lide { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .os__jmeno { font-size: 1.125rem; }
  .os__kontakt { font-size: 13px; overflow-wrap: anywhere; }
}

/* ---------------------------------------------------------------- web (doplňky k návrhu) */
/* Skryté pole pro roboty u poptávky. */
.pole-web { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__stav--chyba { color: var(--chyba); }
.cf-turnstile { min-height: 65px; }
.tl:disabled { opacity: .6; cursor: progress; }
.stred--tesne { margin-top: 28px; }
.odrazky--stred { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: 28px; }
.partneri b { font-weight: 500; color: var(--noc); text-align: center; }

/* příspěvky z Instagramu nad patičkou (každá stránka) */
.ig { padding-block: clamp(48px, 6vw, 80px); background: #fff; }
.ig__hlava { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.ig__ucet { display: inline-flex; align-items: center; gap: 8px; color: var(--zlata-tmava); font-size: 15px; text-decoration: none; }
.ig__ucet:hover { color: var(--noc); }
.ig__ucet .ik { width: 18px; height: 18px; }
.ig__mrizka { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig__mrizka a { display: block; overflow: hidden; background: var(--panel); }
.ig__mrizka img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.ig__mrizka a:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .ig__mrizka { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .ig__mrizka { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .hero__foto, .ig__mrizka img { transition: none; } }

/* Střed fotky pro ořez (Administrace → Upravit výřez, photos.focus): třídy po 5 % → object-position.
   Dvojitá třída přebije výchozí ořezy (úvodní banner na mobilu, fotky týmu). */
img.fokus.fokus { object-position: var(--fx, 50%) var(--fy, 50%); }
.fx-0{--fx:0%}.fx-5{--fx:5%}.fx-10{--fx:10%}.fx-15{--fx:15%}.fx-20{--fx:20%}.fx-25{--fx:25%}.fx-30{--fx:30%}.fx-35{--fx:35%}.fx-40{--fx:40%}.fx-45{--fx:45%}.fx-50{--fx:50%}.fx-55{--fx:55%}.fx-60{--fx:60%}.fx-65{--fx:65%}.fx-70{--fx:70%}.fx-75{--fx:75%}.fx-80{--fx:80%}.fx-85{--fx:85%}.fx-90{--fx:90%}.fx-95{--fx:95%}.fx-100{--fx:100%}
.fy-0{--fy:0%}.fy-5{--fy:5%}.fy-10{--fy:10%}.fy-15{--fy:15%}.fy-20{--fy:20%}.fy-25{--fy:25%}.fy-30{--fy:30%}.fy-35{--fy:35%}.fy-40{--fy:40%}.fy-45{--fy:45%}.fy-50{--fy:50%}.fy-55{--fy:55%}.fy-60{--fy:60%}.fy-65{--fy:65%}.fy-70{--fy:70%}.fy-75{--fy:75%}.fy-80{--fy:80%}.fy-85{--fy:85%}.fy-90{--fy:90%}.fy-95{--fy:95%}.fy-100{--fy:100%}
