/* ══════════════════════════════════════════════════════════════
   Fortina Child Theme – main.css
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:       #020d18;
  --deep:       #041826;
  --ocean:      #063248;
  --mid:        #0a5278;
  --crystal:    #0e7aad;
  --bright:     #18a4d8;
  --light:      #4dcaf0;
  --foam:       #a8e6f8;
  --white:      #f0f8ff;
  --accent:     #00a0af;
  --text-main:  #cce8f5;
  --text-sub:   #6aabca;
  --r:          16px;
}

/* ── Global reset pro Astra ────────────────────────────────── */
body {
  background: var(--navy);
  color: var(--text-main);
  font-family: 'Geologica', sans-serif;
  overflow-x: hidden;
}

/* Skrýt Astra page title na front page */
.ast-archive-description,
.entry-title,
.page-title,
.ast-page-title-wrap {
  display: none !important;
}

/* Astra content padding reset */
.ast-container,
.ast-separate-container .ast-article-single,
.site-content .ast-container {
  padding: 0 !important;
  max-width: 100% !important;
}
#content.site-content {
  padding: 0 !important;
}
.entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── NAV ────────────────────────────────────────────────────── */
.wb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s, padding .3s, backdrop-filter .4s;
}
/* Na home stránce je nav průhledný — pozadí přidá hero */
body.home .wb-nav {
  background: transparent;
}
/* Na všech ostatních stránkách je nav vždy tmavý */
body:not(.home) .wb-nav {
  background: rgba(2,13,24,.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14,122,173,.22);
  padding: 14px 56px;
}
.wb-nav.scrolled {
  background: rgba(2,13,24,.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 56px;
  border-bottom: 1px solid rgba(14,122,173,.22);
}
.wb-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 0;
}
.wb-logo svg { height: 36px; width: auto; }

.wb-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.wb-links a {
  color: rgba(200,232,248,.7);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .2s;
}
.wb-links a:hover { color: var(--accent); }

/* ── MENU: Odkazy ▾ dropdown (externí aplikace www.fortina.cz) ──
   Desktop: :hover / :focus-within rozbalí podmenu
   Mobil: v .wb-dropdown se zobrazuje jako sekce (viz níže)
*/
.wb-links .has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}
.wb-links .wb-submenu-toggle {
  color: rgba(200,232,248,.7);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
  line-height: 1;
}
.wb-links .wb-submenu-toggle:hover,
.wb-links .has-submenu:hover .wb-submenu-toggle,
.wb-links .has-submenu:focus-within .wb-submenu-toggle {
  color: var(--accent);
}
.wb-links .wb-caret {
  font-size: .75em;
  transition: transform .2s;
}
.wb-links .has-submenu:hover .wb-caret,
.wb-links .has-submenu:focus-within .wb-caret {
  transform: translateY(2px);
}
.wb-links .wb-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(2,8,16,.97);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 10px 0;
  margin: 14px 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 54px -12px rgba(0,0,0,.6);
  z-index: 200;
}
.wb-links .has-submenu:hover .wb-submenu,
.wb-links .has-submenu:focus-within .wb-submenu,
.wb-links .has-submenu.is-open .wb-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s, transform .2s, visibility 0s;
}
.wb-links .has-submenu.is-open .wb-submenu-toggle,
.wb-links .has-submenu.is-open .wb-caret {
  color: var(--accent);
}
.wb-links .has-submenu.is-open .wb-caret {
  transform: translateY(2px);
}
.wb-links .wb-submenu li { margin: 0; padding: 0; }
.wb-links .wb-submenu a {
  display: block;
  padding: 10px 22px;
  font-size: .78rem;
  color: rgba(200,232,248,.85);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.wb-links .wb-submenu a:hover,
.wb-links .wb-submenu a:focus {
  color: var(--accent);
  background: rgba(255,255,255,.04);
}

.wb-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.wb-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}
.wb-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wb-burger.open span:nth-child(2) { opacity: 0; }
.wb-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wb-dropdown {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 199;
  background: rgba(2,8,16,.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.wb-dropdown.open { display: flex; }
.wb-dropdown a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 700;
  transition: color .2s;
}
.wb-dropdown a:hover { color: var(--accent); }

/* Mobilní „Odkazy ▾" — accordion v dropdown menu
   Klik na button rozbalí/sbalí seznam. Sladěno s velikostí ostatních
   položek menu, aby dropdown vypadal konzistentně.
*/
.wb-dropdown .wb-mobile-submenu {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wb-dropdown .wb-mobile-submenu-toggle {
  /* Vypadá jako položka menu */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--white);
  font-family: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .2s;
}
.wb-dropdown .wb-mobile-submenu-toggle:hover,
.wb-dropdown .wb-mobile-submenu-toggle:focus {
  color: var(--accent);
}
.wb-dropdown .wb-mobile-caret {
  font-size: .75em;
  transition: transform .25s;
  display: inline-block;
  line-height: 1;
}
.wb-dropdown .wb-mobile-submenu-toggle[aria-expanded="true"] .wb-mobile-caret {
  transform: rotate(180deg);
}
.wb-dropdown .wb-mobile-submenu-list {
  /* VÝCHOZÍ STAV: skryto (bez závislosti na HTML atributu hidden,
     který má nižší specifitu a mohl způsobovat flash při načítání) */
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 0 4px;
  width: min(300px, 70vw);
  border-top: 1px solid rgba(255,255,255,.08);
}
.wb-dropdown .wb-mobile-submenu.is-open .wb-mobile-submenu-list {
  display: flex;
}
.wb-dropdown a.wb-mobile-submenu-item {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.wb-dropdown a.wb-mobile-submenu-item:hover,
.wb-dropdown a.wb-mobile-submenu-item:focus {
  color: var(--accent);
}

/* Desktop dropdown — aria-expanded sync (bez hover) */
.wb-submenu-toggle[aria-expanded="true"] .wb-caret {
  transform: translateY(2px);
}

/* ── HERO ───────────────────────────────────────────────────── */
.wb-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wb-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #010c17 0%, #030f1e 60%, #041526 100%);
  z-index: 0;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.wb-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 840px;
}
.wb-hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
}
.wb-hero-h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 18px;
}
.wb-hero-h1 em {
  font-style: normal;
  color: var(--accent);
}
.wb-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--white);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ── SECTIONS obecně ────────────────────────────────────────── */
section { padding: 104px 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}
.section-label {
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.section-h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.12;
}
.section-sub {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.75;
  margin-top: 14px;
  font-weight: 300;
}
.section-header { margin-bottom: 56px; }

/* ── REVEAL animace ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── KONTAKT ────────────────────────────────────────────────── */
.contact-section {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  border-top: 1px solid rgba(14,122,173,.15);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: start;
}
.contact-info-tile,
.contact-form-tile {
  background: linear-gradient(145deg, rgba(6,45,70,.8) 0%, rgba(3,18,32,.92) 100%);
  border: 1px solid rgba(14,122,173,.2);
  border-radius: var(--r);
  padding: 40px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-item:last-child { margin-bottom: 0; }
.ci-icon {
  font-size: 1rem;
  color: var(--accent);
  font-family: monospace;
  min-width: 20px;
  margin-top: 2px;
}
.ci-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.ci-val {
  color: var(--white);
  font-size: .97rem;
  line-height: 1.55;
}
.ci-val a {
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}
.ci-val a:hover { color: var(--accent); }

/* Adresa kanceláře vedoucí na Mapy.cz (feedback klienta 2. 12. 2026) */
.ci-val .contact-address-link {
  display: inline-block;
  border-bottom: 1px dotted rgba(168, 230, 248, .35);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.ci-val .contact-address-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Doplňkové texty v kontaktní identifikaci (sídlo, OR, IBAN) — menší, decentnější */
.ci-val .ci-iban,
.ci-val .ci-sidlo,
.ci-val .ci-or {
  display: inline-block;
  font-size: .85rem;
  color: rgba(200,232,248,.6);
  margin-top: 2px;
}
.contact-item--autorizace {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.contact-item--autorizace .ci-val {
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}

/* GDPR text pod formulářem */
.form-gdpr {
  margin-top: 16px;
  font-size: .78rem;
  color: rgba(200,232,248,.55);
  line-height: 1.5;
}
.form-gdpr a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(78,167,229,.3);
  transition: border-color .2s;
}
.form-gdpr a:hover,
.form-gdpr a:focus {
  border-bottom-color: var(--accent);
}

/* Inline status po odeslání (span v .form-status) */
.form-status .status-ok {
  display: block;
  color: #4ecca3;
  background: rgba(78,204,163,.08);
  border: 1px solid rgba(78,204,163,.25);
  padding: 12px 16px;
  border-radius: 8px;
}
.form-status .status-err {
  display: block;
  color: #f87171;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.25);
  padding: 12px 16px;
  border-radius: 8px;
}

/* File input - lepší vzhled */
.form-group input[type="file"] {
  padding: 11px 16px;
  cursor: pointer;
  font-size: .85rem;
}
.form-group input[type="file"]::file-selector-button {
  background: rgba(0,160,175,.15);
  color: var(--accent);
  border: 1px solid rgba(0,160,175,.3);
  border-radius: 6px;
  padding: 6px 14px;
  margin-right: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  transition: background .2s;
}
.form-group input[type="file"]::file-selector-button:hover {
  background: rgba(0,160,175,.25);
}

/* Formulář */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group .optional {
  font-size: .7rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: .6;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(4,24,44,.7);
  border: 1px solid rgba(14,122,173,.3);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Geologica', sans-serif;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(108,171,202,.45);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,160,175,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-status {
  font-size: .9rem;
  margin-bottom: 12px;
  min-height: 20px;
  border-radius: 8px;
  padding: 0;
  transition: all .3s;
}
.form-status.success {
  color: #4ecca3;
  background: rgba(78,204,163,.08);
  border: 1px solid rgba(78,204,163,.25);
  padding: 12px 16px;
}
.form-status.error {
  color: #f87171;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.25);
  padding: 12px 16px;
}

.btn-submit {
  background: var(--accent);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 0 32px rgba(0,160,175,.35);
  font-family: 'Geologica', sans-serif;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0,160,175,.55);
}
.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.wb-footer {
  background: var(--navy);
  border-top: 1px solid rgba(14,122,173,.12);
  text-align: center;
  padding: 32px 24px;
  color: rgba(108,171,202,.5);
  font-size: .82rem;
}
.wb-footer a {
  color: rgba(108,171,202,.6);
  text-decoration: none;
}
.wb-footer a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wb-nav { padding: 14px 20px; }
  .wb-nav.scrolled { padding: 10px 20px; }
  .wb-links { display: none; }
  .wb-burger { display: flex; }
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .contact-info-tile,
  .contact-form-tile { padding: 28px 20px; }
}

/* ══════════════════════════════════════════════════════════════
   PROJEKTY — ARCHIVE (grid)
   ══════════════════════════════════════════════════════════════ */

/* Hero nadpis stránky projektů */
.projekty-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  padding: 140px 0 72px;
  border-bottom: 1px solid rgba(14,122,173,.12);
}
.projekty-h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
.projekty-sub {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
}

/* Filter bary */
.projekty-filter {
  background: var(--deep);
  border-bottom: 1px solid rgba(14,122,173,.12);
  padding: 20px 0;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.projekty-filter .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(14,122,173,.3);
  color: var(--text-sub);
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

/* Archive sekce */
.projekty-archive {
  background: var(--navy);
  padding: 72px 0 96px;
}

/* Grid 3 sloupce */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* Karta projektu */
.ref-tile {
  background: linear-gradient(145deg, rgba(6,40,64,.85) 0%, rgba(3,15,28,.95) 100%);
  border: 1px solid rgba(14,122,173,.18);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.ref-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(14,122,173,.5);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
.ref-tile:hover .ref-photo {
  transform: scale(1.05);
}

/* Foto */
.ref-photo-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.ref-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.ref-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ocean), var(--deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.15);
  font-family: 'Geologica', sans-serif;
}
.ref-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,13,24,.15) 0%, rgba(2,13,24,.6) 100%);
}
.ref-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,160,175,.9);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.ref-tile-link {
  display: block;
  text-decoration: none;
}

/* Tělo karty */
.ref-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ref-num {
  font-size: .67rem;
  color: var(--accent);
  letter-spacing: .16em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.ref-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.ref-title a {
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}
.ref-title a:hover { color: var(--accent); }

.ref-location {
  font-size: .8rem;
  color: var(--crystal);
  margin-bottom: 10px;
}
.ref-perex {
  font-size: .85rem;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  /* Ořez na 3 řádky */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Delší text karty — pro ZŠ Rohan, PPO Terezín a Kolovraty
   (feedback klienta 27. 11. 2026) */
.ref-perex--long {
  -webkit-line-clamp: 7;
}
.ref-more {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  margin-top: auto;
  transition: opacity .2s;
}
.ref-more:hover { opacity: .75; }

/* Paginace */
.projekty-pagination { margin-top: 24px; }
.projekty-pagination .page-numbers {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0;
}
.projekty-pagination .page-numbers li a,
.projekty-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(14,122,173,.3);
  color: var(--text-sub);
  text-decoration: none;
  font-size: .85rem;
  transition: all .2s;
}
.projekty-pagination .page-numbers li a:hover,
.projekty-pagination .page-numbers li span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}
.projekty-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-sub);
}

/* ══════════════════════════════════════════════════════════════
   PROJEKT — SINGLE (detail)
   ══════════════════════════════════════════════════════════════ */

/* Hero */
.projekt-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
  overflow: hidden;
}
.projekt-hero.no-photo {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  min-height: 320px;
}
.projekt-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.projekt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,13,24,.45) 0%, rgba(2,13,24,.85) 70%, var(--navy) 100%);
}
.projekt-hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 56px;
}

/* Breadcrumb */
.projekt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.projekt-breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color .2s;
}
.projekt-breadcrumb a:hover { color: var(--accent); }
.projekt-breadcrumb span { color: rgba(108,171,202,.4); }

.projekt-cat-badge {
  display: inline-block;
  background: rgba(0,160,175,.85);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.projekt-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.projekt-meta-hero {
  color: var(--text-sub);
  font-size: .9rem;
}

/* Obsah */
.projekt-content {
  background: var(--navy);
  padding: 72px 0 96px;
}
.projekt-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-bottom: 72px;
  align-items: start;
}
.projekt-perex {
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}
.projekt-popis {
  color: var(--text-sub);
  line-height: 1.8;
  font-size: .97rem;
}
.projekt-popis p { margin-bottom: 16px; }
.projekt-popis h2, .projekt-popis h3 {
  color: var(--white);
  margin: 28px 0 12px;
}
.projekt-popis ul, .projekt-popis ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.projekt-popis li { margin-bottom: 6px; }
.projekt-popis-empty { color: var(--text-sub); font-style: italic; }

/* Sidebar info box */
.projekt-info-box {
  background: linear-gradient(145deg, rgba(6,45,70,.8) 0%, rgba(3,18,32,.92) 100%);
  border: 1px solid rgba(14,122,173,.2);
  border-radius: var(--r);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.info-box-title {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}
.info-list { margin-bottom: 28px; }
.info-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(14,122,173,.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.info-item:last-child { border-bottom: none; }
.info-item dt {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-sub);
  font-weight: 600;
}
.info-item dd {
  color: var(--white);
  font-size: .93rem;
  margin: 0;
}
.btn-projekt-cta {
  display: block;
  background: var(--accent);
  color: var(--navy);
  text-align: center;
  padding: 13px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 28px rgba(0,160,175,.3);
}
.btn-projekt-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(0,160,175,.5);
}

/* Galerie */
.projekt-galerie { margin-top: 16px; }
.galerie-title {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.galerie-grid.galerie-count-1 { grid-template-columns: 1fr; max-width: 680px; }
.galerie-grid.galerie-count-2 { grid-template-columns: repeat(2, 1fr); }

.galerie-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
  text-decoration: none;
}
.galerie-item.galerie-featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.galerie-item:hover img { transform: scale(1.05); }
.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,13,24,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.galerie-item:hover .galerie-overlay { opacity: 1; }
.galerie-zoom {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}

/* Navigace prev/next */
.projekt-nav {
  background: var(--deep);
  border-top: 1px solid rgba(14,122,173,.12);
  padding: 40px 0;
}
.projekt-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.projekt-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: var(--r);
  border: 1px solid rgba(14,122,173,.15);
  transition: border-color .2s, background .2s;
}
.projekt-nav-link:hover {
  border-color: rgba(14,122,173,.4);
  background: rgba(14,122,173,.05);
}
.projekt-nav-link.next { text-align: right; }
.nav-direction {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.nav-title {
  font-size: .9rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}
.projekt-nav-all {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid rgba(14,122,173,.2);
  border-radius: 50px;
  transition: all .2s;
  white-space: nowrap;
}
.projekt-nav-all:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — projekty
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .projekt-layout { grid-template-columns: 1fr; }
  .projekt-info-box { position: static; }
  .galerie-item.galerie-featured { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .ref-grid { grid-template-columns: 1fr; }
  .projekty-hero { padding: 120px 0 48px; }
  .projekt-hero { min-height: 360px; }
  .projekt-hero-content { padding: 120px 0 40px; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .projekt-nav-inner { grid-template-columns: 1fr; text-align: center; }
  .projekt-nav-all { display: inline-block; }
}

/* ══════════════════════════════════════════════════════════════
   ASTRA FULL-WIDTH OVERRIDE
   ══════════════════════════════════════════════════════════════ */
.ast-separate-container .ast-article-single,
.ast-container,
#content .ast-container,
.entry-content,
.post-content,
#primary,
.content-area,
.site-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.ast-separate-container #primary {
  float: none !important;
  width: 100% !important;
}
/* Skrýt Astra admin bar gap na front page */
body.home .ast-above-header,
body.home .ast-below-header {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   HERO CTA TLAČÍTKA
   ══════════════════════════════════════════════════════════════ */
.wb-hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 32px rgba(0,160,175,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(0,160,175,.6);
  color: var(--navy);
}
.btn-ghost {
  border: 1.5px solid rgba(0,160,175,.38);
  color: var(--foam);
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  letter-spacing: .04em;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.wb-hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wb-hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ══════════════════════════════════════════════════════════════
   O SPOLEČNOSTI
   ══════════════════════════════════════════════════════════════ */
.about-section {
  background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.about-main-tile {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(145deg, rgba(6,45,70,.8) 0%, rgba(3,18,32,.92) 100%);
  border: 1px solid rgba(14,122,173,.2);
  border-radius: var(--r);
  padding: 40px;
}
.about-main-tile h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Geologica', sans-serif;
}
.about-main-tile p {
  color: var(--text-sub);
  line-height: 1.75;
  font-size: .93rem;
  margin-bottom: 32px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(14,122,173,.15);
  padding-top: 28px;
}
.about-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 900;
  color: var(--accent);
  font-family: 'Geologica', sans-serif;
  line-height: 1.05;
  white-space: nowrap;           /* „3 000+" ani „celá ČR" se nezlomí */
  text-align: center;
}
.stat-label {
  font-size: clamp(.58rem, .9vw, .68rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.35;             /* víc dýchá, když se label přelomí */
}
.about-sub-tile {
  background: linear-gradient(145deg, rgba(6,45,70,.6) 0%, rgba(3,18,32,.85) 100%);
  border: 1px solid rgba(14,122,173,.15);
  border-radius: var(--r);
  padding: 28px;
}
.about-sub-tile h3 {
  font-size: .93rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Geologica', sans-serif;
}
.about-sub-tile p {
  font-size: .82rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   KDE PRACUJEME
   ══════════════════════════════════════════════════════════════ */
.where-section {
  background: linear-gradient(180deg, #031525 0%, #020d18 100%);
}
.where-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.where-featured {
  /* Feedback klienta 2. 12. 2026: ilustrace Soutoku jako pozadí karty
     (stejný styl jako na časové ose „Od pramene k řece" na O nás).
     URL se dodává přes CSS proměnnou --where-featured-bg v inline style. */
  background:
    linear-gradient(180deg,
      rgba(4, 21, 38, .96) 0%,
      rgba(4, 21, 38, .92) 28%,
      rgba(4, 21, 38, .55) 58%,
      rgba(4, 21, 38, .10) 92%
    ),
    var(--where-featured-bg, none) bottom center / cover no-repeat,
    linear-gradient(145deg, rgba(10,82,120,.38) 0%, rgba(4,24,42,.85) 100%);
  border: 1px solid rgba(14,122,173,.25);
  border-radius: var(--r);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  grid-row: 1 / 3; /* Featured zabere oba řádky (4 dlaždice vpravo v 2×2 — Krok 3.6) */
  overflow: hidden;
  position: relative;
  min-height: 420px;
}
.where-featured__text { flex-shrink: 0; position: relative; z-index: 1; }
@media (max-width: 960px) {
  .where-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .where-featured {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .where-grid { grid-template-columns: 1fr; }
}
.where-map {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  font-family: 'Geologica', sans-serif;
  opacity: .6;
}
.where-featured h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Geologica', sans-serif;
}
.where-featured p {
  color: var(--text-sub);
  line-height: 1.7;
  font-size: .9rem;
}
.where-tile {
  background: linear-gradient(145deg, rgba(6,45,70,.6) 0%, rgba(3,18,32,.85) 100%);
  border: 1px solid rgba(14,122,173,.15);
  border-radius: var(--r);
  padding: 28px;
}
.where-tile h3 {
  font-size: .93rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Geologica', sans-serif;
}
.where-tile p {
  font-size: .82rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   SLUŽBY
   ══════════════════════════════════════════════════════════════ */
.services-section {
  background: linear-gradient(180deg, #f0f8ff 0%, #e4f3fb 100%);
}
.services-section .section-label { color: var(--crystal); }
.services-section .section-h2 { color: #041826; }
.services-section .section-sub { color: #2a5a78; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* Grid default stretch — všechny karty v řadě stejně vysoké.
     Ilustrace díky margin-top: auto zůstane dole, text nahoře. */
}
.service-tile {
  background: #fff;
  border: 1px solid rgba(14,122,173,.18);
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(14,122,173,.06);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(14,122,173,.14);
  border-color: rgba(14,122,173,.4);
}
.service-num {
  display: block;
  font-size: .68rem;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.service-tile h3 {
  font-size: .97rem;
  color: #041826;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Geologica', sans-serif;
  line-height: 1.3;
}
.service-tile p {
  font-size: .82rem;
  color: #2a5a78;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   REFERENCE (home grid)
   ══════════════════════════════════════════════════════════════ */
.ref-section {
  background: linear-gradient(180deg, #f0f8ff 0%, #e8f4fb 100%);
}
.ref-section .section-label { color: var(--crystal); }
.ref-section .section-h2 { color: #041826; }
.ref-grid-home {
  grid-template-columns: repeat(3, 1fr);
}
/* Karty na světlém pozadí */
.ref-section .ref-tile {
  background: #fff;
  border-color: rgba(14,122,173,.18);
  box-shadow: 0 4px 20px rgba(14,122,173,.08);
}
.ref-section .ref-title a { color: #041826; }
.ref-section .ref-location { color: var(--crystal); }
.ref-section .ref-perex { color: #2a5a78; }
.ref-section .no-projekty {
  color: #2a5a78;
  text-align: center;
  padding: 48px 0;
  grid-column: 1 / -1;
}
.ref-all-wrap {
  text-align: center;
  margin-top: 48px;
}
.btn-all-projekty {
  display: inline-block;
  border: 1.5px solid rgba(14,122,173,.4);
  color: var(--crystal);
  padding: 13px 36px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: all .2s;
}
.btn-all-projekty:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   TÝM
   ══════════════════════════════════════════════════════════════ */
.team-section {
  background: linear-gradient(180deg, #031525 0%, #020d18 100%);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-tile {
  background: linear-gradient(145deg, rgba(6,40,64,.68) 0%, rgba(3,15,28,.9) 100%);
  border: 1px solid rgba(14,122,173,.18);
  border-radius: var(--r);
  padding: 32px 24px;
  text-align: center;
  transition: transform .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.team-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(24,164,216,.4);
}
.team-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--crystal));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--white); font-weight: 700;
  font-family: 'Geologica', sans-serif;
  margin: 0 auto 16px;
  border: 3px solid rgba(14,122,173,.4);
  box-shadow: 0 0 24px rgba(14,122,173,.25);
  overflow: hidden;
  flex-shrink: 0;
}
.team-avatar--photo img {
  width: 85%; height: 85%;
  object-fit: contain;
  object-position: center bottom;
  align-self: flex-end;
  display: block;
  border-radius: 50%;
}
.team-tile h3 {
  font-size: .95rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
  font-family: 'Geologica', sans-serif;
  margin: 4px 0 0;
}
.team-role {
  font-size: .78rem;
  color: var(--text-sub);
  line-height: 1.4;
  margin: 0;
}
.team-contact {
  display: block;
  font-size: .78rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
  margin: 2px 0 0;
}
.team-contact:hover { opacity: .75; }

/* ══════════════════════════════════════════════════════════════
   JAK PRACUJEME
   ══════════════════════════════════════════════════════════════ */
.process-section {
  background: linear-gradient(180deg, #f0f8ff 0%, #e4f3fb 100%);
}
.process-section .section-label { color: var(--crystal); }
.process-section .section-h2 { color: #041826; }
.process-section .section-sub { color: #2a5a78; }
.process-grid {
  display: grid;                    /* grid zpět — všechny karty stejně vysoké (stretch) */
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 35px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,122,173,.35), transparent);
  z-index: 0;
}
.process-tile {
  background: #fff;
  border: 1px solid rgba(14,122,173,.2);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  position: relative; z-index: 1;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  box-shadow: 0 4px 20px rgba(14,122,173,.08);
}
.process-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(14,122,173,.5);
  box-shadow: 0 14px 36px rgba(14,122,173,.16);
}
.process-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crystal), var(--ocean));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--white); font-weight: 900;
  font-family: 'Geologica', sans-serif;
  margin: 0 auto 18px;
  box-shadow: 0 0 22px rgba(14,122,173,.45);
}
.process-tile h3 {
  font-size: .88rem;
  color: #041826;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: 'Geologica', sans-serif;
}
.process-tile p {
  font-size: .78rem;
  color: #2a5a78;
  line-height: 1.6;
}

/* ── Ilustrace v kartách postupu (5 kroků) ──
   Text normálně v horní části karty, ilustrace plynule v původním poměru
   za textem. Ilustrace není stretched ani cropped. */
.process-tile--has-img {
  padding: 28px 20px 0;              /* dole 0 — ilustrace sahá k dolnímu okraji */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 720px !important;      /* vynucená stejná minimální výška */
  height: 100% !important;
}
/* Vynucené pořadí — číslo nahoře, pak nadpis, popis, ilustrace dole */
.process-tile--has-img .process-circle      { order: 1; }
.process-tile--has-img h3                   { order: 2; }
.process-tile--has-img p                    { order: 3; }
.process-tile--has-img .process-illustration { order: 4; margin-top: auto; }

.process-illustration {
  margin: 16px -20px 0;              /* vyruší padding L+R, mezera za textem */
  overflow: hidden;
  border-radius: 0 0 var(--r) var(--r);
}
.process-illustration img {
  width: 100%;
  height: auto;                      /* přirozený poměr — žádné stretch ani crop */
  display: block;
}

/* ── Ilustrace v kartách služeb (12 karet) ── */
.service-tile--has-img {
  padding: 32px 28px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 620px !important;    /* vynucená stejná minimální výška */
  height: 100% !important;         /* všechny karty v řadě stejně vysoké */
}
/* Vynucené pořadí — text nahoře, ilustrace dole (nezávisle na HTML pořadí) */
.service-tile--has-img .service-num     { order: 1; }
.service-tile--has-img h3               { order: 2; }
.service-tile--has-img p                { order: 3; }
.service-tile--has-img .service-illustration { order: 4; margin-top: auto; }

.service-illustration {
  margin: 16px -28px 0;              /* vyruší padding L+R */
  overflow: hidden;
  border-radius: 0 0 var(--r) var(--r);
}
.service-illustration img {
  width: 100%;
  height: auto;                      /* přirozený poměr */
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE doplněk
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-main-tile { grid-column: 1 / -1; grid-row: auto; }
  .where-grid { grid-template-columns: 1fr 1fr; }
  .where-featured { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid::before { display: none; }
  .ref-grid-home { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .about-grid,
  .where-grid,
  .services-grid,
  .team-grid,
  .process-grid,
  .ref-grid-home { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .where-featured { flex-direction: column; }
  .process-grid::before { display: none; }
}

/* ── PAGE HERO SIMPLE (podstránky) ──────────────────────────── */
.page-hero-simple {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  padding: 40px 0 40px;
  border-bottom: 1px solid rgba(14,122,173,.12);
}

/* ── NAV OFFSET FIX — spolehlivý fix přes JS výšku navu ────── */
.fortina-nav-offset {
  display: block;
  height: var(--nav-h, 70px);
  width: 100%;
  background: var(--navy);
}
.team-avatar--photo {
  overflow: hidden;
  padding: 0;
}
.team-avatar--photo img {
  width: 85%; height: 85%;
  object-fit: contain;
  object-position: center bottom;
  align-self: flex-end;
  display: block;
  border-radius: 50%;
}

/* ── NAV OFFSET FIX — spolehlivý fix přes JS výšku navu ────── */
.fortina-nav-offset {
  display: block;
  height: var(--nav-h, 70px);
  width: 100%;
  background: var(--navy);
}

.page-hero-h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-top: 10px;
}

/* ── TEAM AVATAR S FOTKOU ───────────────────────────────────── */
.team-avatar--photo {
  overflow: hidden;
  padding: 0;
}
.team-avatar--photo img {
  width: 85%; height: 85%;
  object-fit: contain;
  object-position: center bottom;
  align-self: flex-end;
  display: block;
  border-radius: 50%;
}
}

/* ══════════════════════════════════════════════════════════════
   TEAM AVATAR — canvas pro animované vlny v kruhu členů týmu
   (zachováno z dřívějších úprav, nutné pro zobrazení vln)
   ══════════════════════════════════════════════════════════════ */
/* Rodič musí být pozicován, jinak se canvas vykreslí mimo kruh */
.team-avatar {
  position: relative;
}
.team-avatar-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
/* Fotka musí být nad canvasem */
.team-avatar--photo img {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   SOUDNÍ ZNALEC — sekce (přidáno 11/2026)
   ══════════════════════════════════════════════════════════════ */
.znalec-section {
  background: var(--navy);
  color: var(--text-main);
}
.znalec-top {
  padding: 100px 24px 40px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
}
.znalec-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.znalec-section .section-header {
  text-align: center;
  margin-bottom: 72px;
}
/* GRID: [texty | O] */
.znalec-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
}
.znalec-text { padding: 0; }
.znalec-eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 20px;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid rgba(77, 202, 240, .3);
  border-radius: 50px;
  background: rgba(77, 202, 240, .05);
}
.znalec-h2 {
  font-family: 'Geologica', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.znalec-h2 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--bright), var(--light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.znalec-perex {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 28px;
  line-height: 1.6;
}
.znalec-perex strong {
  color: var(--white);
  font-weight: 700;
}
.znalec-points {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: grid;
  gap: 10px;
}
.znalec-points li {
  position: relative;
  padding-left: 32px;
  color: var(--text-main);
  font-size: .98rem;
  list-style: none;
}
.znalec-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--bright), var(--light));
}
.znalec-points li strong {
  color: var(--white);
  font-weight: 700;
}
.znalec-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.znalec-cta .btn-primary,
.znalec-cta .btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.znalec-cta .btn-primary {
  background: linear-gradient(135deg, var(--bright), var(--crystal));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(24, 164, 216, .35);
}
.znalec-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(24, 164, 216, .5);
}
.znalec-cta .btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(168, 230, 248, .35);
}
.znalec-cta .btn-ghost:hover {
  background: rgba(168, 230, 248, .08);
  border-color: var(--light);
}

/* ══════════════════════════════════════════════════════════════
   CTA blok: tlačítko „Objednat se na konzultaci" + přímý e-mail
   (feedback klienta 2. 12. 2026 — žádná animace, klidná sekce)
   ══════════════════════════════════════════════════════════════ */
.znalec-cta-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.znalec-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--bright), var(--crystal));
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(24, 164, 216, .32);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.znalec-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(24, 164, 216, .5);
}
.znalec-cta-email {
  font-size: .9rem;
  color: rgba(200, 232, 248, .72);
  margin: 0;
}
.znalec-cta-email a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 160, 175, .35);
  transition: border-color .2s;
}
.znalec-cta-email a:hover {
  border-bottom-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   Pravý sloupec: klidný statický portrét znalce 3:4
   (feedback klienta 2. 12. 2026 — nahrazuje animované O i spodní banner)
   ══════════════════════════════════════════════════════════════ */
.znalec-portrait-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.znalec-portrait-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(76, 148, 216, .28);
  background: #041526;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
.znalec-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.znalec-portrait-caption {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 360px;
}
.znalec-portrait-caption .role {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.znalec-portrait-caption .name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.znalec-portrait-caption .meta {
  font-size: .82rem;
  color: rgba(200, 232, 248, .62);
  line-height: 1.5;
}

/* Starý banner dole + všechny animované O prvky — definitivně skrýt */
.znalec-section ~ .znalec-photo-section,
section.znalec-photo-section,
.znalec-o-wrap,
.znalec-o-ring,
.znalec-o-circle,
.znalec-o-fade {
  display: none !important;
}

/* ═══ Údaje o znalci + Oprávnění (dva informační panely) ═══ */
.znalec-info-section {
  padding: 80px 20px 120px;
}
.znalec-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.znalec-info-card {
  background: rgba(10, 32, 54, .6);
  border: 1px solid rgba(78, 167, 229, .18);
  border-radius: 16px;
  padding: 36px 32px 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.znalec-info-card .section-label {
  margin-bottom: 8px;
}
.znalec-info-h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.znalec-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.znalec-info-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 16px;
  font-size: .92rem;
  line-height: 1.55;
}
.znalec-info-list li:last-child { border-bottom: none; }
.znalec-info-list .info-label {
  color: rgba(200, 232, 248, .55);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.znalec-info-list .info-value {
  color: rgba(255, 255, 255, .92);
}
.znalec-info-list .info-value a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.znalec-info-list .info-value a:hover,
.znalec-info-list .info-value a:focus {
  border-bottom-color: var(--accent);
}
.znalec-info-list--opravneni li {
  display: block;
  color: rgba(255, 255, 255, .88);
}
.znalec-info-link {
  margin: 0;
  padding-top: 8px;
}
.znalec-info-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 1px solid rgba(78, 167, 229, .4);
  transition: border-color .2s;
}
.znalec-info-link a:hover,
.znalec-info-link a:focus {
  border-bottom-color: var(--accent);
}

/* Responzivita */
@media (max-width: 900px) {
  .znalec-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Feedback klienta 2. 12. 2026: na mobilu DOLŮ — nejdřív texty + CTA,
     pak teprve portrét znalce. */
  .znalec-portrait-column { order: 2; }
  .znalec-text { order: 1; }
  .znalec-portrait-frame { max-width: 280px; }
  .znalec-top { padding: 80px 20px 32px; }
  .znalec-info-grid { grid-template-columns: 1fr; gap: 24px; }
  .znalec-info-card { padding: 28px 24px 24px; }
  .znalec-info-section { padding: 48px 16px 80px; }
  .znalec-info-list li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .znalec-info-list .info-label { padding-top: 0; }
}
@media (max-width: 480px) {
  .znalec-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .znalec-cta-block { align-items: stretch; }
  .znalec-cta-email { text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   3D INTERAKTIVNÍ MODEL — badge na dlaždici + CTA v detailu
   Přidáno 11/2026
   ══════════════════════════════════════════════════════════════ */

/* Badge na dlaždici projektu */
.ref-badge-3d {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 7px 14px 7px 12px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--bright), var(--crystal));
  color: #fff;
  font-size: .72rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(24, 164, 216, .35);
  animation: fortinaPulseBadge 3s ease-in-out infinite;
  z-index: 2;
}
.ref-badge-3d svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
@keyframes fortinaPulseBadge {
  0%, 100% { box-shadow: 0 4px 16px rgba(24, 164, 216, .35); }
  50% { box-shadow: 0 4px 24px rgba(24, 164, 216, .65); }
}

/* CTA karta v detailu projektu */
.model-3d-cta {
  margin: 36px 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(24, 164, 216, .08), rgba(14, 122, 173, .15));
  border: 1px solid rgba(24, 164, 216, .3);
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.model-3d-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(24, 164, 216, .15), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.model-3d-cta > * { position: relative; z-index: 1; }

.model-3d-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bright), var(--crystal));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(24, 164, 216, .4);
  flex-shrink: 0;
}
.model-3d-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.model-3d-text { min-width: 0; }
.model-3d-eyebrow {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--bright);
  font-weight: 600;
  margin-bottom: 4px;
}
.model-3d-title {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.model-3d-sub {
  color: var(--text-sub);
  font-size: .88rem;
  line-height: 1.5;
}

.model-3d-btn {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--bright), var(--crystal));
  color: #fff;
  border: 0;
  border-radius: 50px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(24, 164, 216, .35);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.model-3d-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(24, 164, 216, .5);
  color: #fff;
}

@media (max-width: 700px) {
  .model-3d-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
  .model-3d-icon { margin: 0 auto; }
  .model-3d-btn { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   REF STATS — statistiky z 3D modelu na dlaždici projektu
   Přidáno 11/2026
   ══════════════════════════════════════════════════════════════ */
.ref-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px 14px;
  margin: 14px 0 16px;
  padding: 14px;
  background: rgba(14, 122, 173, .07);
  border: 1px solid rgba(14, 122, 173, .15);
  border-radius: 10px;
}
.ref-stat {
  min-width: 0;
  line-height: 1.25;
}
.ref-stat b {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
  letter-spacing: -.01em;
}
.ref-stat span {
  display: block;
  font-size: .72rem;
  color: var(--text-sub);
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   PATIČKA (footer.php) — Krok 2.6 feedbacku klienta
   Pozn.: Tlačítko „Nahoru" zatím modré, tyrkysové #00a0af bude v Etapě 4
   ══════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(78,167,229,.12);
  padding: 72px 0 32px;
  position: relative;
  color: var(--white);
}
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand .footer-logo {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
}
.footer-brand .footer-logo svg {
  height: 40px;
  width: auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-col-head {
  margin: 0 0 16px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-row {
  margin: 0 0 6px;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}
.footer-row--small {
  font-size: .82rem;
  color: rgba(200,232,248,.65);
}
.footer-row a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-row a:hover,
.footer-row a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin: 0 0 8px; }
.footer-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  margin: 0;
  font-size: .82rem;
  color: rgba(200,232,248,.55);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(200,232,248,.6);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s;
}
.footer-legal a:hover,
.footer-legal a:focus { color: var(--accent); }
.footer-sep {
  color: rgba(255,255,255,.2);
  font-size: .82rem;
}

/* ── Skrýt Astra scroll-to-top (překrývá naše vlastní tlačítko) ── */
#ast-scroll-top,
.ast-scroll-to-top-button,
button.ast-scroll-to-top-button,
a.ast-scroll-to-top-button,
.ast-scroll-top-icon,
[class*="ast-scroll-to-top"] {
  display: none !important;
}

/* ── Tlačítko „Nahoru" (vlastní) ──────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #00a0af;
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .2s, background .2s, box-shadow .2s;
  z-index: 9999; /* nad Astra prvky, nad Cookie bannery */
}
.back-to-top:hover,
.back-to-top:focus {
  background: #008896;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12);
  outline: none;
}
.back-to-top span {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px); /* vizuální centrování šipky */
}

/* Responzivita patičky */
@media (max-width: 900px) {
  .site-footer { padding: 56px 0 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-footer .container { padding: 0 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { font-size: .78rem; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* ══════════════════════════════════════════════════════════════
   STRÁNKA OCHRANA OSOBNÍCH ÚDAJŮ (Krok 3.1)
   Čtivá typografie, přehledná struktura, konzistentní s designem webu
   ══════════════════════════════════════════════════════════════ */

.legal-section {
  padding: 120px 20px 100px;
  background: var(--navy);
  color: var(--white);
}
.legal-section .container {
  max-width: 820px;
  margin: 0 auto;
}
.legal-header {
  margin-bottom: 64px;
}
.legal-header .section-label {
  margin-bottom: 16px;
}
.legal-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--white);
}
.legal-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(200,232,248,.75);
  max-width: 600px;
  margin: 0;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-block h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.legal-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
  margin: 0 0 14px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block p strong {
  color: var(--white);
  font-weight: 600;
}
.legal-block p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(78,167,229,.35);
  transition: border-color .2s;
}
.legal-block p a:hover,
.legal-block p a:focus {
  border-bottom-color: var(--accent);
}

.legal-block--small {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 16px;
}
.legal-effective {
  font-size: .9rem !important;
  color: rgba(200,232,248,.55) !important;
  font-style: normal;
}
.legal-effective em {
  color: rgba(200,232,248,.4);
}

@media (max-width: 720px) {
  .legal-section { padding: 80px 16px 72px; }
  .legal-header { margin-bottom: 48px; }
  .legal-content { gap: 36px; }
  .legal-block p { font-size: .95rem; line-height: 1.7; }
}

/* ══════════════════════════════════════════════════════════════
   TÝM — rozšíření pro maskota Akima (Krok 3.2)
   Maskot = speciální karta se vtipným stylem, telefony/emaily
   nejsou klikatelné (jen text "Haf · haf · haf" a "Odpovídá na pamlsky")
   ══════════════════════════════════════════════════════════════ */

.team-tile--mascot {
  background: linear-gradient(135deg, rgba(0,160,175,.08), rgba(14,122,173,.04));
  border: 1px dashed rgba(78,167,229,.25);
  border-radius: 20px;
  padding: 24px 20px 20px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.team-tile--mascot::before {
  content: "🐕";
  position: absolute;
  top: -14px;
  right: 20px;
  font-size: 1.6rem;
  background: var(--navy);
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
}
.team-tile--mascot:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}
.team-tile--mascot h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.team-tile--mascot h3::after {
  content: "🐾";
  font-size: .9em;
}
.team-tile--mascot .team-role {
  font-style: italic;
  opacity: .85;
}

/* Avatar maskota — bez fotky, s pattern pozadím */
.team-avatar--mascot {
  background: radial-gradient(circle at 30% 30%, rgba(0,160,175,.3), rgba(14,122,173,.12)) !important;
  font-size: 2.6rem !important;
  color: var(--white) !important;
  font-weight: 400 !important;
  border: 2px solid rgba(255,255,255,.08);
}

/* Nekklikatelný kontakt (text "Haf · haf · haf" a "pamlsky") */
.team-contact--muted {
  color: rgba(200,232,248,.6) !important;
  text-decoration: none !important;
  cursor: default !important;
  font-style: italic;
  font-size: .9rem;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   HODNOTY — 3 karty (Krok 3.3)
   Grid 3 sloupce s podkladovým obrázkem nebo gradient placeholder
   ══════════════════════════════════════════════════════════════ */

.hodnoty-section {
  padding: 120px 20px;
  background: var(--navy);
  position: relative;
}
.hodnoty-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.hodnoty-section .section-header {
  margin-bottom: 64px;
  text-align: center;
}
.hodnoty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hodnota-card {
  position: relative;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg,
      rgba(14,122,173,.25),
      rgba(0,160,175,.15) 55%,
      rgba(10,32,54,.6));
  border: 1px solid rgba(78,167,229,.12);
  transition: transform .35s, box-shadow .35s;
}
.hodnota-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.6);
}
.hodnota-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
  transition: opacity .35s, transform .5s;
  z-index: 0;
}
.hodnota-card:hover .hodnota-bg {
  opacity: .65;
  transform: scale(1.03);
}
.hodnota-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2,13,24,.85));
  z-index: 1;
  pointer-events: none;
}
.hodnota-inner {
  position: relative;
  z-index: 2;
  padding: 32px 32px 36px;
  color: var(--white);
}
.hodnota-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: var(--white);
}
.hodnota-text {
  font-size: .98rem;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   HISTORIE „Od pramene k řece" — 6 karet (Krok 3.3)
   Grid 3×2 (desktop) → 2×3 (tablet) → 1×6 (mobil)
   ══════════════════════════════════════════════════════════════ */

.historie-section {
  padding: 120px 20px;
  background: var(--navy);
  position: relative;
}
.historie-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.historie-section .section-header {
  margin-bottom: 56px;
  text-align: center;
}
.historie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.historie-card {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg,
      rgba(0,160,175,.2),
      rgba(10,32,54,.5) 60%,
      rgba(2,13,24,.8));
  border: 1px solid rgba(78,167,229,.12);
  transition: transform .35s, box-shadow .35s;
}
.historie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.55);
}
.historie-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
  transition: opacity .35s, transform .5s;
  z-index: 0;
}
.historie-card:hover .historie-bg {
  opacity: .6;
  transform: scale(1.03);
}
.historie-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2,13,24,.9));
  z-index: 1;
  pointer-events: none;
}
.historie-inner {
  position: relative;
  z-index: 2;
  padding: 28px 28px 30px;
  color: var(--white);
}
.historie-stitek {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-right: 12px;
}
.historie-rok {
  display: inline-block;
  font-size: .78rem;
  color: rgba(200,232,248,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-bottom: 14px;
}
.historie-text {
  display: block;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  margin: 10px 0 0;
}

/* Responzivita */
@media (max-width: 960px) {
  .hodnoty-grid { grid-template-columns: 1fr; gap: 20px; }
  .hodnota-card { min-height: 360px; }
  .historie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hodnoty-section,
  .historie-section { padding: 72px 16px; }
  .historie-grid { grid-template-columns: 1fr; }
  .hodnoty-section .section-header,
  .historie-section .section-header { margin-bottom: 40px; }
}

/* ══════════════════════════════════════════════════════════════
   STATISTIKA PROJEKTŮ — koláčový graf (Krok 3.4)
   Levý panel: ovládání (roky, typy, rozložení), pravý panel: graf
   ══════════════════════════════════════════════════════════════ */

.stat-section {
  padding: 120px 20px;
  background: var(--navy);
}
.stat-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.stat-section .section-header {
  margin-bottom: 56px;
  text-align: center;
}
.stat-total-count {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1em;
}

.stat-widget {
  background: rgba(10,32,54,.5);
  border: 1px solid rgba(78,167,229,.12);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Widget obsah dle makety klienta 23. 11. 2026 ── */
.ms-statistika {
  color: var(--white);
}
.ms-rozlozeni {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.ms-filtry {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ms-filtr {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-filtr-nazev {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ms-napoveda {
  font-size: .75rem;
  color: rgba(200,232,248,.5);
  line-height: 1.5;
}

/* Přepínač „podle typu / podle roku" */
.ms-prepinac {
  display: inline-flex;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(78,167,229,.15);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  align-self: flex-start;
}
.ms-prepinac button {
  background: none;
  border: none;
  color: rgba(200,232,248,.6);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.ms-prepinac button.on {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
}
.ms-prepinac button:hover:not(.on) {
  color: var(--accent);
}

/* ── Multi-select dropdown ── */
.ms-multi {
  position: relative;
  width: 100%;
}
.ms-multi-zobraz {
  width: 100%;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(78,167,229,.25);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .95rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.ms-multi-zobraz:hover,
.ms-multi-zobraz:focus {
  border-color: var(--accent);
  background: rgba(0,0,0,.45);
  outline: none;
}
.ms-multi-zobraz > span:first-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-multi-sip {
  font-size: .8rem;
  color: var(--accent);
  transition: transform .2s;
}
.ms-multi.open .ms-multi-sip {
  transform: rotate(180deg);
}
.ms-multi-seznam {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(7,26,42,.98);
  border: 1px solid rgba(78,167,229,.25);
  border-radius: 10px;
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s;
  z-index: 10;
  box-shadow: 0 16px 36px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ms-multi.open .ms-multi-seznam {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s, transform .18s, visibility 0s;
}
.ms-multi-polozka {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  transition: background .12s, color .12s;
}
.ms-multi-polozka:hover {
  background: rgba(78,167,229,.08);
  color: var(--accent);
}
.ms-multi-polozka input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.ms-multi-polozka span {
  flex: 1;
  line-height: 1.3;
}

/* Scrollbar pro dropdown seznam */
.ms-multi-seznam::-webkit-scrollbar {
  width: 6px;
}
.ms-multi-seznam::-webkit-scrollbar-track {
  background: transparent;
}
.ms-multi-seznam::-webkit-scrollbar-thumb {
  background: rgba(78,167,229,.3);
  border-radius: 3px;
}
.ms-multi-seznam::-webkit-scrollbar-thumb:hover {
  background: rgba(78,167,229,.5);
}

/* ── Karta s grafem ── */
.ms-karta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ms-karta-nadpis {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.ms-platno {
  position: relative;
  min-height: 420px;
  flex: 1;
}
.ms-platno canvas {
  max-height: 440px !important;
  width: 100% !important;
  height: 100% !important;
}
.ms-zdroj {
  margin: 0;
  font-size: .72rem;
  color: rgba(200,232,248,.45);
  line-height: 1.5;
}
.ms-celkem {
  margin: 8px 0 0;
  font-size: .95rem;
  color: rgba(200,232,248,.8);
}
.ms-celkem b {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
}

/* Responzivita */
@media (max-width: 960px) {
  .ms-rozlozeni { grid-template-columns: 1fr; gap: 32px; }
  .ms-filtry { order: 2; }
  .ms-karta { order: 1; }
  .stat-widget { padding: 28px; }
  .ms-platno { min-height: 340px; }
  .ms-platno canvas { max-height: 360px !important; }
}
@media (max-width: 640px) {
  .stat-section { padding: 80px 16px; }
  .stat-widget { padding: 20px; }
  .ms-platno { min-height: 320px; }
  .ms-platno canvas { max-height: 340px !important; }
  .ms-karta-nadpis { font-size: 1rem; }
}

/* Fotka znalce pod animovaným O — jen Fortina varianta
   Ve Současné variantě je skryta (fotka zůstává dole jako dřív) */
.znalec-photo-wrap--inline { display: none; }


/* ══════════════════════════════════════════════════════════════
   KDO JSME (feedback klienta 27. 11. 2026)
   Nová sekce na stránce O nás mezi "O společnosti" a "Kde pracujeme".
   Velký, čitelný text — 4 odstavce.
   ══════════════════════════════════════════════════════════════ */
.kdo-jsme-section {
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  padding: 120px 20px;
}
.kdo-jsme-section .container {
  max-width: 1040px;
  margin: 0 auto;
}
.kdo-jsme-section .section-header {
  margin-bottom: 44px;
}
.kdo-jsme-body {
  color: rgba(230, 243, 252, .92);
  font-size: 1.08rem;
  line-height: 1.75;
}
.kdo-jsme-body p {
  margin: 0 0 22px;
}
.kdo-jsme-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .kdo-jsme-section { padding: 80px 16px; }
  .kdo-jsme-body { font-size: 1rem; line-height: 1.7; }
}

/* ══════════════════════════════════════════════════════════════
   KONTAKTNÍ MAPA — inline uvnitř info tile (pod adresou)
   ══════════════════════════════════════════════════════════════ */
.contact-map--inline {
  margin: 12px 0 24px;
  border-radius: 12px;
  overflow: hidden;
}
.contact-map--inline .contact-map-link {
  display: block;
  position: relative;
  line-height: 0;
}
.contact-map--inline .contact-map-link img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-map--inline .contact-map-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(2, 13, 24, .85);
  color: #fff;
  font-size: .82rem;
  border-radius: 999px;
  line-height: 1;
}
.contact-map--inline .contact-map-attribution {
  margin: 6px 0 0;
  font-size: .72rem;
  color: rgba(200, 232, 248, .55);
  line-height: 1.4;
}
.contact-map--inline .contact-map-attribution a {
  color: inherit;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   TEAM — KAPIČKA AVATARY a AKIM
   ══════════════════════════════════════════════════════════════ */
.team-avatar--kapicka {
  /* Kapička avatary — zachovat světle modrý gradient (jako běžný team-avatar),
     SVG se umístí do středu kruhu, pod ním běží animované vlny přes canvas */
  overflow: hidden;
  position: relative;
}
.team-avatar--kapicka img {
  position: relative !important;   /* nad canvasem s vlnami */
  z-index: 1 !important;
  width: 90% !important;
  height: 90% !important;
  object-fit: contain !important;
  object-position: center !important;
  align-self: center !important;   /* přebije flex-end z .team-avatar--photo img */
  display: block !important;
  margin: auto !important;
  border-radius: 0 !important;     /* kapička má vlastní tvar, nechat SVG jak je */
}
/* Akim — fotku zmenšit a usadit dolů, aby vlny byly vidět nad ní (feedback 28. 11. 2026)
   Pozadí přebíjí defaultní světlý gradient tmavou vodou (jako u canvas vlny),
   pro případ, že by se JS animace u této karty nenaběhla. */
.team-avatar--mascot-photo {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(90,200,230,.25) 0%, transparent 55%),
    linear-gradient(180deg, rgba(2,13,24,.9) 0%, rgba(6,35,60,.8) 50%, rgba(10,60,95,.65) 100%) !important;
}
.team-avatar--mascot-photo img {
  width: 78% !important;
  height: 78% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  align-self: flex-end !important;
  background: transparent !important;
  border-radius: 0 !important;
}
