/* VK finanční služby – hlavní stylesheet */

/* ---------- Fonty ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Proměnné ---------- */
:root {
  --navy: #1c2b4a;
  --navy-dark: #14203a;
  --navy-soft: #2c3d63;
  --gold: #a8862f;
  --gold-mid: #c9a45c;
  --gold-light: #e6d3a3;
  --cream: #f7f3ec;
  --cream-dark: #efe8da;
  --white: #ffffff;
  --ink: #2b3245;
  --muted: #66708a;
  --line: #e3dccd;
  --ok: #2e7d4f;
  --err: #b3372f;
  --radius: 4px;
  --shadow: 0 10px 40px rgba(28, 43, 74, .10);
  --shadow-sm: 0 4px 16px rgba(28, 43, 74, .08);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* off-canvas menu */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 42px; height: 1px;
  background: var(--gold-mid);
  vertical-align: middle;
  margin-left: .8rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.center .lead { margin-inline: auto; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .22s ease;
  text-decoration: none !important;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-mid), var(--gold)); color: var(--white); box-shadow: 0 6px 18px rgba(168, 134, 47, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168, 134, 47, .45); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(28,43,74,.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .8rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none !important; }
.brand img { height: 50px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--gold);
  margin-top: .2rem;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold-mid); color: var(--gold); }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  right: -220px; top: -260px;
  width: 720px; height: 720px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -180px;
  width: 520px; height: 520px;
  border: 1.5px solid var(--gold-mid);
  border-radius: 50%;
  opacity: .35;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-inner { max-width: 42rem; position: relative; z-index: 1; }
/* foto v hero */
.hero-media { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold-mid);
  border-radius: var(--radius);
  z-index: 0;
  pointer-events: none;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 2.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-points li { list-style: none; display: flex; align-items: center; gap: .55rem; font-size: .93rem; color: var(--muted); font-weight: 500; }
.hero-points { padding-left: 0; }
.hero-points svg { flex: none; }

/* ---------- Karty / mřížky ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: .2rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3ead6, #ede1c4);
  color: var(--gold);
  margin-bottom: 1.1rem;
}

/* ---------- Animované ikony ---------- */
@keyframes ico-draw {
  0%   { stroke-dashoffset: 72; opacity: 0; }
  4%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes ico-wave {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0; transform: scale(.3); }
}
@keyframes ico-pin-bounce {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(-3px); }
  70%      { transform: translateY(-1px); }
}
.ico .ico-draw { stroke-dasharray: 72 72; stroke-dashoffset: 0; }
:is(.card, .switch-btn, .icon-row, .check-list li, .hero-points li, .team-card):hover .ico-draw,
.ico:hover .ico-draw {
  animation: ico-draw .8s ease-in-out both;
}
.ico .ico-wave { transform-box: fill-box; transform-origin: left bottom; }
:is(.card, .switch-btn, .icon-row):hover .ico-wave1,
.ico:hover .ico-wave1 { animation: ico-wave .8s ease-in-out; }
:is(.card, .switch-btn, .icon-row):hover .ico-wave2,
.ico:hover .ico-wave2 { animation: ico-wave .8s ease-in-out .15s; }
:is(.card, .switch-btn, .icon-row):hover .ico-pin,
.ico-pin:hover { animation: ico-pin-bounce .7s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .ico-draw, .ico-wave, .ico-pin { animation: none !important; }
}

/* ---------- Sekce s tmavým pozadím ---------- */
.band-dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #dfe3ee;
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .eyebrow { color: var(--gold-mid); }
.band-dark .lead, .band-dark p { color: #bfc7da; }
.band-dark .card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.band-dark .card p { color: #aab3c9; }

/* ---------- Statistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-mid);
  margin-bottom: .3rem;
}
.stat span { color: #bfc7da; font-size: .95rem; }

/* ---------- Citace / motto ---------- */
.quote {
  border-left: 3px solid var(--gold-mid);
  padding: .4rem 0 .4rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-style: italic;
  margin: 1.6rem 0;
}
.quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Seznam s odrážkami (check) ---------- */
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list svg { flex: none; margin-top: .25rem; }

/* ---------- Profil / tým ---------- */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--cream-dark), #e4d9c2);
  aspect-ratio: 3/4;
  display: grid;
  place-items: center;
}
.portrait svg { width: 45%; opacity: .5; }
.team-card { text-align: center; }
.team-card .avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: linear-gradient(160deg, var(--cream-dark), #e4d9c2);
  display: grid;
  place-items: center;
  border: 3px solid var(--gold-light);
}
.team-card .avatar svg { width: 46%; opacity: .5; }
.team-card .role { color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8rem; }
.team-card a { display: block; font-size: .95rem; margin-top: .25rem; }

/* ---------- Lightbox (náhled certifikátů) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1.5rem;
  background: rgba(20, 32, 58, .88);
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: var(--white);
}
.lightbox figcaption { color: #dfe3ee; font-size: .95rem; margin-top: .8rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ---------- Certifikáty carousel ---------- */
.carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem .2rem 1.2rem;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 4px; }
.cert {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-thumb {
  aspect-ratio: 3/4;
  background: var(--cream);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert-cap {
  padding: .7rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}

/* ---------- Oblasti spolupráce (tagy) ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.8rem; }
.area-tag {
  border: 1px solid var(--gold-light);
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: .42rem 1rem;
  font-size: .85rem;
  font-weight: 500;
}

/* ---------- Partneři (dle kategorií) ---------- */
.partner-group { margin-top: 2.8rem; }
.partner-cat {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: .8rem;
}
.partner {
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.25;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.partner:hover { color: var(--gold); }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.partner img { max-height: 46px; width: auto; object-fit: contain; }

/* ---------- Kanceláře – karty lokalit ---------- */
.office-hero {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 2rem;
}
.office-hero--flip .office-hero-media { order: 2; }
.office-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.office-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-top: .7rem;
}
.office-thumbs img { aspect-ratio: 16 / 10; }
.office-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  background: #f3ead6;
  border-radius: var(--radius);
  padding: .35rem .8rem;
  margin-bottom: .9rem;
}
.office-hero-body h3 {
  font-size: 1.7rem;
  margin-bottom: .4rem;
}
.office-addr {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .9rem;
}
.office-addr svg { flex: none; color: var(--gold); }
.office-hero-body p:not(.office-addr) { color: var(--muted); }
@media (max-width: 860px) {
  .office-hero { grid-template-columns: 1fr; }
  .office-hero--flip .office-hero-media { order: 0; }
}

/* ---------- Fotogalerie kanceláří ---------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.office-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.office-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.office-photo figcaption {
  padding: .65rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.office-ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
}
@media (max-width: 720px) {
  .office-grid { grid-template-columns: 1fr; }
}

/* ---------- Marquee s logy partnerů (homepage) ---------- */
.partners-band {
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  border-block: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;           /* fallback bez JS */
  justify-content: center;
  padding-block: .4rem;
}
.logo-track.is-animated {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: marquee linear infinite;
}
.logo-marquee:hover .logo-track.is-animated { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 168px;
  height: 78px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.logo-item img {
  max-height: 42px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
}
.logo-ph {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  opacity: .6;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track.is-animated { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Formuláře ---------- */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
  max-width: 860px;
  margin-inline: auto;
}
.form-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-bottom: 2rem;
}
.switch-btn {
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem .8rem;
  cursor: pointer;
  text-align: center;
  font: 600 .95rem var(--font-body);
  color: var(--navy);
  transition: all .2s ease;
  display: grid;
  gap: .45rem;
  justify-items: center;
}
.switch-btn svg { color: var(--gold); }
.switch-btn small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.switch-btn:hover { border-color: var(--gold-mid); }
.switch-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.switch-btn[aria-pressed="true"] svg { color: var(--gold-mid); }
.switch-btn[aria-pressed="true"] small { color: #b8c0d4; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  font: 400 .98rem var(--font-body);
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-mid);
  background: var(--white);
}
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--gold); }
.form-msg { border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; margin-top: 1.2rem; display: none; }
.form-msg.ok { display: block; background: #e8f4ec; color: var(--ok); border: 1px solid #bfe0cb; }
.form-msg.err { display: block; background: #fbeceb; color: var(--err); border: 1px solid #efc7c4; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Kontakty ---------- */
.contact-card { display: grid; gap: .3rem; }
.contact-card .icon-row { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .95rem; }
.contact-card .icon-row svg { color: var(--gold); flex: none; }
.map-placeholder {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream-dark);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.map-placeholder iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* ---------- CTA pás ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band .cta-row { justify-content: center; margin-top: 1.8rem; }

/* ---------- Patička ---------- */
.site-footer { background: var(--navy-dark); color: #aab3c9; font-size: .92rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #cfd6e5; }
.site-footer a:hover { color: var(--gold-mid); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand img { height: 72px; margin-bottom: 1rem; opacity: .92; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.3rem 0;
  font-size: .82rem;
  color: #7c86a0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
}

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  background: var(--navy-dark);
  color: #cfd6e5;
  padding: 1.1rem 0;
  box-shadow: 0 -6px 30px rgba(0,0,0,.25);
  display: none;
}
.cookie-bar.visible { display: block; }
.cookie-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.cookie-inner p { margin: 0; font-size: .87rem; flex: 1 1 340px; }
.cookie-inner a { color: var(--gold-mid); }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .6rem 1.3rem; font-size: .85rem; }

/* ---------- Přihlášení zaměstnanců ---------- */
.login-wrap { min-height: 60vh; display: grid; place-items: center; padding: 4rem 0; }
.login-card {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.login-card h1 { font-size: 1.6rem; text-align: center; }
.login-card .field { margin-bottom: 1.1rem; }
.login-error { background: #fbeceb; color: var(--err); border: 1px solid #efc7c4; border-radius: var(--radius); padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1.1rem; }

/* ---------- Interní stránky (hero-lite) ---------- */
.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 160%);
}
.page-hero h1 { margin-bottom: .4rem; }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivita ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { max-width: 100%; }
  .hero-media { max-width: 320px; margin-top: .5rem; }
}
@media (max-width: 400px) {
  .brand-text { display: none; }
}
@media (max-width: 940px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 69px;
    background: var(--cream);
    padding: 2rem 8%;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 1.2rem; }
  .main-nav a { font-size: 1.15rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-switcher { grid-template-columns: 1fr; }
  .switch-btn { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; }
  .stats { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}
