:root {
  font-family: 'Inter', sans-serif;
  --clr-primary: #ff7a00;
  --bg-light: #fafafa;
  --bg-dark: #f4f4f4;
  --bg-final: #fafafa;
}

/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }

/* Obrázky jako blok pro eliminaci baseline mezery a stabilnější layout */
img { display: block; }

a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
a:hover,
a:focus {
  outline: none;
  box-shadow: none;
}
a:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
a:hover,
a:focus-visible {
  color: var(--clr-primary);
  text-decoration: underline;
}

@media (hover: none) and (pointer: coarse) {
  a:focus-visible,
  .btn-menu:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: none;
  }
}

/* Container */
.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1300px) {
  .container { width: 95%; }
}
@media (max-width: 800px) {
  .container { width: 100%; max-width: 100%; }
}

main p {
  margin-bottom: 1.2em;
  line-height: 1.65;
}

/* Scroll offset */
html {
  scroll-behavior: smooth;
  font-family: inherit;
  scroll-padding-top: 90px; /* korekce pro hlavičku */
}
html:focus-within {
  scroll-behavior: auto; /* iOS Safari fix: zachovat stabilní focus při vyvolání klávesnice */
}
body { font-family: inherit; color:#333; }
body.no-scroll { overflow: hidden; }

/* Header */
header {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem 0.5rem 0; /* vlevo bez odsazení – logo na hranu */
  z-index: 100;
}
.logo img { height:80px; }

/* Menší logo v headeru pro mobily (≈50% z 80px) */
@media (max-width: 900px) {
  .logo { cursor: pointer; }
  .logo img { height: 40px !important; }
  html { scroll-padding-top: 50px; }
}
.hamburger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  align-self: center; /* zarovnat svisle doprostřed řádku headeru */
  position: relative; /* pro překrytí close ikony */
  -webkit-appearance: none;
  appearance: none;
}
.hamburger .bar {
  display: block;
  height: 3px;
  background: #333;
  width: 100%;
  border-radius: 2px;
}
/* Ikona křížku přímo v tlačítku hamburgeru (zobrazí se pouze při otevřeném menu) */
.hamburger .hamburger-close {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--clr-primary);
}
.hamburger.is-active .hamburger-close { display: inline-flex; }
.hamburger.is-active .bar { opacity: 0; }
.hamburger .hamburger-menu-i { display: none; }
.hamburger.is-active .hamburger-menu-i { display: none; }

/* Inline SVG close icon sizing/color */
/* (using Material Symbols for close icon; no SVG-specific styles needed) */

.nav {
  margin-left: auto;
}

/* Křížek pro zavření je skrytý na desktopu */
.nav-close { display: none; }
.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}
.nav a {
  color: #333;
  text-decoration: none;
  padding: 0.5rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent; /* iOS: bez modrého/šedého zvýraznění */
}
.nav a.active {
  border-bottom: 2px solid var(--clr-primary);
}

/* Odstranit modrý fokus rámeček na odkazech v menu (mobilní Safari/Edge) */
.nav a:focus { outline: none; box-shadow: none; }
.nav a:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav a.btn-menu {
  background: var(--clr-primary);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* Social link in nav */
.nav .social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
}
.nav .social-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* Hamburger only on smaller widths */
@media (max-width: 1400px) {
  .hamburger {
    display: flex;
    z-index: 1002;
  }
  /* Křížek výrazně větší, proužky ponechat původní velikost */
  .hamburger .hamburger-close { font-size: 55px; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    transition: right 0.3s ease, opacity 0.25s ease;
    padding-top: 3rem;
    z-index: 1001; /* nad overlayem */
    opacity: 0; /* jemný fade-in efekt */
  }
  /* Tlačítko zavřít v mobilním panelu */
  .nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--clr-primary);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1; /* nad obsahem uvnitř panelu */
  }
  .nav-close:hover { background: transparent; }
  .nav-close:focus-visible {
    outline: 3px solid var(--clr-primary);
    outline-offset: 2px;
  }
  .nav-close-i { font-size: 28px; line-height: 1; color: var(--clr-primary); }
  .nav.is-open { right: 0; opacity: 1; }
  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1rem;
  }
  .nav a.btn-menu { display: inline-block; }
}

/* Focus styl pro klávesnici */
.hamburger:focus { outline: none; box-shadow: none; }
.hamburger:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Overlay za mobilním panelem menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000; /* pod panelem, nad obsahem */
}
.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Sections */
main section {
  padding: 2rem 1rem;
}
h1 { margin-bottom: 1.5rem; }
h2 { margin-bottom: 1.5rem; }

/* Hero logo (původně inline style) */
.hero-logo {
  display: block;
  margin: 0 auto 1em auto;
  /* Responsivní a středové: nepřetékat na mobilu, zachovat poměr a max výšku */
  max-width: 100%;
  height: auto;
  max-height: 150px;
}
#logopedie { background: var(--bg-light); }
#sluzby { background: var(--bg-dark); }
#onas { background: var(--bg-light); }
#spolupracujeme { background: var(--bg-dark); }
#kurzy { background: var(--bg-light); }
#hodiny { background: var(--bg-dark); }
#cenik { background: var(--bg-light); }
#objednat { background: var(--bg-dark); }
#kontakt { background: var(--bg-final); }
.insurers-image {
  margin-top: 2rem;
  text-align: center;
}
.insurers-image img {
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.insurers-image--spaced {
  margin-top: 2.5rem;
}

/* Fade-in (bez posunu, kvůli přesnému kotvení) */
.fadein {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.fadein.visible { opacity: 1; }

/* Respektování uživatelského nastavení omezeného pohybu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Vypnout animace a přechody, zobrazit obsah bez efektu */
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fadein { opacity: 1 !important; transform: none !important; }
}

/* Buttons */
.btn-menu {
  display: inline-block;
  text-decoration: none;
}
.btn-menu, button {
  padding: 0.8rem 1.6rem;
  border: none;
  background: var(--clr-primary);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  align-self: flex-start;
  border-radius: 4px;
}
/* Přetluče obecné a:hover pro primární CTA tlačítka */
.btn-menu:hover,
.btn-menu:focus,
button:hover,
button:focus {
  color: #fff;
  text-decoration: none;
}

.btn-menu:focus,
button:focus {
  outline: none;
  box-shadow: none;
}
.btn-menu:focus-visible,
button:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 4px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.order-column { width: 100%; }
.order-subheading {
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}
.order-link-accent {
  color: var(--clr-primary);
  text-decoration-color: currentColor;
}
.order-link-accent:hover,
.order-link-accent:focus {
  color: var(--clr-primary);
}
.order-column--info p { margin-bottom: 0.9em; }
.order-column--info p:last-of-type { margin-bottom: 0; }
.order-column--info button {
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .order-column--info p { margin-bottom: 1.2em; }
  .order-column--info p:last-of-type { margin-bottom: 0; }
  .order-column--info button { margin-top: 0; }
}

.order-modal[hidden] {
  display: none;
}
.order-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.order-modal__dialog {
  position: relative;
  background: #fff;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 14px;
  width: min(520px, 92vw);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  z-index: 1;
}
.order-modal__dialog h3 {
  margin-bottom: 1rem;
}
.order-modal__body p {
  margin-bottom: 0.8rem;
}
.order-modal__list {
  margin: 0.6rem 0 0.4rem;
  padding-left: 1.8rem;
}
.order-modal__list li {
  margin-bottom: 0.45rem;
}
.order-modal__list li:last-child {
  margin-bottom: 0;
}
.order-modal__thanks {
  margin-top: 1rem;
}
.order-modal__body p:last-child {
  margin-bottom: 0;
}
.order-modal__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.order-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: transparent;
  color: #666;
  border: none;
  padding: 0.2rem;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.order-modal__close:hover,
.order-modal__close:focus {
  color: #111;
}
.order-modal__close:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
}

/* Honeypot – mimo viewport pro lepší antispam a a11y */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  padding: 0.7rem 0.9rem;  /* sjednocený padding */
  border: none;
  border-radius: 4px;
  background: #fff;         /* bílé pozadí */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  color: #222;              /* černý text */
  line-height: 1.2;         /* konzistentní výška řádku */
  display: block;           /* sjednotit box model na mobilech (iOS) */
}

/* Reset a vzhled pro checkbox, jinak by dědil „velké“ vstupní styly */
input[type="checkbox"] {
  width: auto;
  max-width: none;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  accent-color: var(--clr-primary);
}

/* (Revert) Placeholdery bez speciálního stylu kvůli konzistenci napříč typy */

/* Vizuálně skrytý prvek, ale čitelný pro čtečky */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0; padding: 0; margin: -1px;
}

/* Specificky pro input typu date (pro jistotu) */
/* (date input removed; using year text input) */

/* Vždy zobrazit popisek pro datum narození (iOS neukazuje placeholder u date) */
/* (date label visibility override removed) */

/* Sjednocení výšky vstupů a selectů */
input,
select {
  min-height: 44px;         /* pohodlný tap target */
}

/* Vzhled selectu – vlastní šipka, sjednocení mezi prohlížeči */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px 16px;
  padding-right: 2.2rem;    /* místo pro šipku */
}

/* Vyšší pole pro popis problému */
textarea#popis {
  min-height: 130px;
  resize: vertical;
}

#thankYouMessage {
  line-height: 1.45;
}
#thankYouMessage ul.errors {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}
#thankYouMessage ul.errors li {
  margin-bottom: 0.3rem;
}

@media (min-width: 900px) {
  #objednat .order-column--form form {
    width: 90%;
    max-width: none;
    min-width: 0;
  }
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--clr-primary);
}

@media (hover: none) and (pointer: coarse) {
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
  }
}

/* Zrušit oranžový obdélník pro checkbox při fokusu */
input[type="checkbox"]:focus { outline: none; box-shadow: none; }
input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 0;
  border-radius: 3px;
}

/* Ordinační hodiny */
.form-consent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9em; /* o stupeň menší text */
  color: #444;
  width: 100%;
  margin-top: 0.25rem;
  position: relative;
}
.form-consent a { color: inherit; text-decoration: none; }
.form-consent a:hover,
.form-consent a:focus { color: var(--clr-primary); text-decoration: underline; }
.form-consent input[type="checkbox"] { margin-top: 0; flex: 0 0 auto; }
.form-consent label { flex: 1 1 auto; }

/* Oranžová bublina s šipkou (GDPR i obecné chyby polí) */
.consent-error,
.field-error {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--clr-primary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 5;
}
.consent-error::before,
.field-error::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--clr-primary);
  transform: rotate(45deg);
  z-index: -1;
}

/* Umístění .field-error vložené za prvkem ve sloupci formuláře */
.field-error {
  position: relative;
  display: inline-block;
  margin-top: 6px;
}
.field-error::before { left: 16px; right: auto; }



.hours-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}
.hours-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(50, 50, 93, 0.05), 0 1.5px 5px 0 rgba(0,0,0,.04);
  width: 140px;
  min-width: 110px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
  margin-bottom: 1rem;
}
.hours-card:hover {
  box-shadow: 0 8px 28px 0 rgba(50, 50, 93, 0.12), 0 3px 10px 0 rgba(0,0,0,.06);
}
.hours-icon {
  font-size: 0.7em;
  color: var(--clr-primary);
  margin-bottom: 0.6em;
}
.hours-day {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4em;
}
.hours-time {
  font-size: 1.05em;
  color: #666;
  letter-spacing: 0.02em;
}

/* Responsivní rozpad pod sebe */
@media (max-width: 800px) {
  .hours-cards {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hours-card {
    width: 100%;
    min-width: 0;
    max-width: 340px;
    margin: 0 auto 1rem auto;
  }
}

.price-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}
.price-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(50, 50, 93, 0.05), 0 1.5px 5px 0 rgba(0,0,0,.04);
  width: 200px;
  min-width: 140px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.2em 0.6em 1em 0.6em;
  transition: box-shadow 0.2s;
  margin-bottom: 1rem;
}
.price-card:hover {
  box-shadow: 0 8px 28px 0 rgba(50, 50, 93, 0.12), 0 3px 10px 0 rgba(0,0,0,.06);
}
.price-icon {
  font-size: 0.7em;
  margin-bottom: 0.5em;
}
.price-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.2em;
  text-align: center;
}
.price-value {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.1em;
}
.price-desc {
  font-size: 0.98em;
  color: #666;
  text-align: center;
  margin-bottom: 0.2em;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .price-cards {
    gap: 1rem;
  }
  .price-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1rem auto;
  }
}

#logopedie p {
  margin-bottom: 1.2em;
  line-height: 1.65;
}

.service-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(50, 50, 93, 0.05), 0 1.5px 5px 0 rgba(0,0,0,.04);
  flex: 1 1 370px;
  max-width: 600px;
  min-width: 250px;
  padding: 2.2em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 28px 0 rgba(50, 50, 93, 0.12), 0 3px 10px 0 rgba(0,0,0,.06);
}
.service-card h3 {
  color: var(--clr-primary);
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 1em;
  text-align: left;
}
.service-card p {
  font-size: 1.07em;
  color: #444;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .service-cards {
    flex-direction: column;
    gap: 1.3rem;
  }
  .service-card {
    max-width: 100%;
    padding: 1.2em 1em 1em 1em;
  }
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2em;
  height: 56px; /* Rezerva pro větší ikony na mobilu i desktopu */
}
.service-card h3 {
  color: #111;
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 1em;
  text-align: left;
}

.glossary {
  background: #fff7ee;
  border: 1.5px solid #ffd4a6;
  border-radius: 16px;
  padding: 2em 1.5em 1.5em 1.5em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 1.06em;
  box-shadow: 0 2px 10px 0 rgba(255, 170, 64, 0.06);
  line-height: 1.65;
}
.glossary h4 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.15em;
  color: var(--clr-primary);
  font-weight: 700;
}
.glossary ul {
  margin-left: 1em;
  margin-bottom: 1em;
  padding-left: 1.2em;
}
.glossary li {
  margin-bottom: 0.4em;
  line-height: 1.5;
}
.glossary p {
  margin-bottom: 0.7em;
}

.service-info {
  background: #f7f7fa;
  border: 1.2px solid #e8e8ef;
  border-radius: 14px;
  padding: 1.4em 1.3em 1.1em 1.3em;
  margin: 2em 0;
  font-size: 1.06em;
  line-height: 1.65;
}
.service-info h4 {
  margin-top: 0;
  margin-bottom: 0.7em;
  color: var(--clr-primary);
  font-size: 1.1em;
  font-weight: 700;
}

.course-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}

.course-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(50, 50, 93, 0.05), 0 1.5px 5px 0 rgba(0,0,0,.04);
  flex: 1 1 370px;
  max-width: 600px;
  min-width: 250px;
  padding: 2.2em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.course-card:hover {
  box-shadow: 0 8px 28px 0 rgba(50, 50, 93, 0.12), 0 3px 10px 0 rgba(0,0,0,.06);
}
.course-card h3 {
  color: #111;
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: 1em;
  text-align: left;
}
.course-card p {
  font-size: 1.06em;
  color: #444;
  line-height: 1.65;
}

.course-icon {
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2em;
  height: 56px;
}
/* asi nepouzito */
.course-icon svg {
  display: block;
  height: 35px;
  width: 35px;
}
@media (max-width: 900px) {
  .course-cards {
    flex-direction: column;
    gap: 1.3rem;
  }
  .course-card {
    max-width: 100%;
    padding: 1.2em 1em 1em 1em;
  }
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 2.4em;
}

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 1.6em;
  padding-bottom: 2em;
  border-bottom: 1.2px solid #efefef;
}
.team-member:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.team-icon {
  font-size: 3.5em;
  color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 0.15em;
}
.member-position {
  font-size: 1.01em;
  color: #a66718;
  margin-bottom: 0.6em;
  font-weight: 500;
  font-style: italic;
  margin-top: -0.25em;
}
.team-member h3 {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: #111;
}
.team-member p {
  margin-bottom: 0.5em;
  line-height: 1.65;
}
@media (max-width: 800px) {
  .team-member { flex-direction: column; gap: 0.6em; }
  .team-icon { margin-top: 0; }
}

.partner-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* mezery dělá hr */
}

/* Každý partner = box */
.partner-member {
  display: flex;
  align-items: flex-start;
  gap: 2.1em;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Pro střídání pozic */
.partner-member--right {
  flex-direction: row-reverse;
}

/* Ikona partnera */
.partner-icon {
  font-size: 3.5em;
  color: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* Popisný box */
.partner-member > div {
  max-width: 1025px;
  width: 100%;
}

/* Hlavička partnera (název + jméno) */
.partner-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.7em;
}

.partner-header h3 {
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: 0.18em;
  color: #222;
  text-align: center;
}

.partner-name {
  font-size: 1.02em;
  color: #111;
  font-weight: 500;
  margin-bottom: 0.2em;
  text-align: center;
}

/* Popisný text doleva */
.partner-desc {
  text-align: left;
  font-size: 1.07em;
  color: #444;
  line-height: 1.65;
}

/* Oddělovací čára mezi partnery (stejné jako v .team-list) */
.partner-divider {
  border: none;
  border-top: 1.2px solid #efefef;
  margin: 2.2em 0 2.3em 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobilní úpravy */
@media (max-width: 800px) {
  .partner-member,
  .partner-member--right {
    flex-direction: column !important;
    gap: 0.8em;
    align-items: stretch;
  }
  .partner-member > div {
    max-width: 100%;
  }
  .partner-header {
    align-items: flex-start;
    text-align: left;
  }
  .partner-name, .partner-header h3 {
    text-align: left;
  }
  .partner-divider {
    max-width: 100%;
    margin: 2em 0 2em 0;
  }
}

.contact-flex {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  gap: 0;
  position: relative;
}

.contact-map, .contact-info-img-wrap {
  flex: 0 0 50%;
  min-width: 0;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.contact-map {
  padding-right: 2.2em;
}

.contact-info-img-wrap {
  padding-left: 2.2em;
  align-items: flex-start;
}

.contact-info {
  font-size: 1.1em;
  line-height: 1.38;
  width: 100%;
  margin-bottom: 1.2em;
}
.contact-info p {
  margin-bottom: 0.28em;
}
.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 1.5px;
  background: #efefef;
  z-index: 1;
  pointer-events: none;
}

.contact-map,
.contact-info-img-wrap {
  position: relative;
  z-index: 2;
  background: transparent;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 12px;
  border: 1.5px solid #eee;
  box-shadow: 0 2px 10px 0 rgba(60, 60, 80, 0.08);
  display: block;
}

.contact-img-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.contact-img {
  width: 100%;
  max-width: 420px;
  max-height: 420px;
  border-radius: 18px;
  box-shadow: 0 4px 28px 0 rgba(90, 70, 50, 0.08);
  object-fit: cover;
  display: block;
}
.contact-info a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-info a:hover,
.contact-info a:focus {
  color: var(--clr-primary);
  text-decoration: underline;
}

/* Responsivní rozpad pod sebe */
@media (max-width: 1100px) {
  .contact-flex {
    flex-direction: column;
    gap: 2.2em;
    position: static;
  }
  .contact-map, .contact-info-img-wrap {
    padding: 0;
    max-width: 100%;
    flex: 1 1 100%;
    position: static;
  }
  .contact-divider {
    display: none;
  }
  .contact-map iframe {
    height: 220px;
    min-height: 180px;
  }
  .contact-img-wrap {
    justify-content: center;
    margin-top: 1em;
  }
  .contact-img {
    max-width: 100%;
    max-height: 400px;
  }
}
