:root {
  --blue-50: #eef6fd;
  --blue-100: #dcebf8;
  --blue-300: #9fc5e8;
  --blue-500: #6da2dc;
  --blue-700: #2f6fa8;
  --ink: #22313f;
  --muted: #607080;
  --line: #d8e7f5;
  --paper: #ffffff;
  --soft: #f7fbff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fbfdff;
  color: var(--ink);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 15.5px;
  line-height: 1.68;
}

p {
  color: var(--ink);
  line-height: 1.68;
  margin: 0 0 14px;
}

a {
  color: var(--blue-700);
}

a:hover,
a:focus {
  color: #1f5686;
  text-decoration: none;
}

#header_wrapper {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(47, 111, 168, 0.08);
  padding: 15px 0;
  position: relative;
  z-index: 10;
}

.logo img {
  display: block;
  max-height: 50px;
}

.navStyle ul li a,
.navbar-inverse .navbar-nav > li > a {
  color: var(--ink);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 10px 8px;
}

.navStyle ul li a:hover,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  color: var(--blue-700);
  background: transparent;
}

.top_cont_outer {
  background: linear-gradient(135deg, rgba(76, 132, 190, 0.86), rgba(138, 190, 231, 0.88)), url('../pics/testovaci_prostredi.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.hero_wrapper {
  padding: 92px 0 112px;
}

.hero_section {
  padding-top: 0;
}

.hero-panel {
  max-width: 1040px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.hero-title {
  color: #fff;
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-subtitle {
  color: #f5fbff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 26px;
}

.hero-meta {
  color: #fff;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 38px;
  padding-bottom: 12px;
}

a.read_more2 {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  color: var(--blue-700);
  display: inline-flex;
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  height: auto;
  justify-content: center;
  line-height: 1.2;
  min-width: 190px;
  padding: 14px 24px;
  text-align: center;
  text-transform: uppercase;
  width: auto;
}

a.read_more2:hover,
a.read_more2:focus {
  background: #fff;
  color: #1f5686;
  transform: translateY(-1px);
}

.section-pad {
  padding: 74px 0;
}

.section-alt {
  background: var(--soft);
}

.section-title {
  color: var(--ink);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  text-align: center;
  text-transform: none;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 auto 40px;
  max-width: 900px;
  text-align: center;
}

.content-card,
.download-card {
  background: var(--paper);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 14px 42px rgba(47, 111, 168, 0.10);
  padding: 30px;
}

.content-card h3,
.content-card h4,
.ps-container h3,
.download-card h3 {
  color: var(--ink);
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
}

.text-justify-clean {
  text-align: justify;
}

.objective-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.objective-list li {
  background: var(--blue-50);
  border-left: 5px solid var(--blue-500);
  border-radius: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  padding: 14px 16px;
}

.method-row {
  margin-bottom: 46px;
}

.method-row:last-child {
  margin-bottom: 0;
}

.ps-container {
  background: var(--paper);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(47, 111, 168, 0.10);
  margin-bottom: 34px;
  padding: 32px;
  text-align: left;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.meta-item {
  background: var(--blue-50);
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  padding: 11px 13px;
}

.meta-item strong {
  color: var(--blue-700);
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

img,
.img-responsive-custom,
.site-image,
.figure-img,
.side-image {
  border: 0 !important;
  box-shadow: none !important;
  height: auto;
}

.img-responsive-custom,
.site-image {
  display: block;
  margin: 24px auto 0;
  max-width: 100%;
}

.figure-img {
  display: block;
  margin: 22px auto 0;
  max-height: 420px;
  object-fit: contain;
  width: min(100%, 720px);
}

.side-image {
  display: block;
  margin: 0 auto;
  max-height: 355px;
  object-fit: contain;
  width: min(100%, 490px);
}

.wide-figure {
  max-height: none;
  width: min(100%, 900px);
}

.case-media {
  margin-top: 20px;
  text-align: center;
}

.case-media .figure-img {
  width: min(100%, 680px);
}

.figure-caption {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.45;
  margin: 8px auto 0;
  max-width: 760px;
  text-align: center;
}

.figure-link {
  display: inline-block;
}

.figure-link:hover img,
.figure-link:focus img {
  opacity: 0.93;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.result-pill {
  background: var(--blue-50);
  border-radius: 16px;
  color: var(--ink);
  line-height: 1.5;
  padding: 16px;
}

.result-pill strong {
  color: var(--blue-700);
  display: block;
  margin-bottom: 4px;
}

.download-actions {
  margin: 28px 0 34px;
}

.download-actions .btn {
  background: var(--blue-500);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(47, 111, 168, 0.18);
  margin: 8px 8px;
  padding: 13px 24px;
}

.download-actions .btn:hover,
.download-actions .btn:focus {
  background: var(--blue-700);
}

.footer-up {
  background: #1f2a34;
  color: #fff;
  padding: 34px 0;
  text-align: center;
}

.footer-up p {
  color: #eef6fd;
  margin-bottom: 8px;
}

.footer-up a {
  color: #b9d8f2;
}

.footer-up img {
  max-height: 80px;
  margin-bottom: 18px;
}

@media (max-width: 991px) {
  .case-meta,
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-image {
    margin-top: 26px;
  }
}

@media (max-width: 767px) {
  .hero_wrapper {
    padding: 70px 0 92px;
  }

  .section-pad {
    padding: 56px 0;
  }

  .content-card,
  .download-card,
  .ps-container {
    padding: 23px;
  }

  .case-meta,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .navbar-toggle {
    border-color: var(--blue-300);
  }

  .navbar-inverse .navbar-toggle .icon-bar {
    background-color: var(--blue-700);
  }

  .navStyle {
    float: none;
  }
}

/* Jemnější vizuální oddělení hlavních sekcí. */
.section-pad {
  border-top: 1px solid var(--line);
}

#anotace.section-pad {
  border-top: 0;
}

.full-width-card {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.figure-below {
  margin-top: 30px;
}

.large-diagram {
  width: min(100%, 980px);
  max-height: none;
}

.case-media {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 28px;
}

.case-media .figure-img {
  margin: 0 auto;
  max-height: none;
  max-width: 760px;
  width: min(100%, 760px);
}

.case-media .case-schema-img {
  max-width: 532px;
  width: min(100%, 532px);
}

.zoomable-image,
.figure-link img {
  cursor: zoom-in;
  transition: transform 180ms ease, opacity 180ms ease;
}

.zoomable-image:hover,
.zoomable-image:focus,
.figure-link:hover img,
.figure-link:focus img {
  opacity: 0.96;
  transform: scale(1.025);
}

.image-lightbox {
  align-items: center;
  background: rgba(10, 20, 30, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 3vw;
  position: fixed;
  z-index: 99999;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  background: #fff;
  border: 0 !important;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45) !important;
  max-height: 92vh;
  max-width: 94vw;
  object-fit: contain;
  padding: 10px;
}

.image-lightbox__close {
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 34px;
  height: 48px;
  line-height: 44px;
  position: fixed;
  right: 24px;
  text-align: center;
  top: 20px;
  width: 48px;
}

body.lightbox-open {
  overflow: hidden;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo-link:hover img,
.footer-logo-link:focus img {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Jazykový přepínač a anglická verze webu. */
.language-switch {
  margin-left: 8px;
}

.language-toggle {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  padding: 4px 0 0 6px;
}

.language-toggle__btn {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: Cambria, Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-width: 36px;
  padding: 7px 10px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.language-toggle__btn:hover,
.language-toggle__btn:focus,
.language-toggle__btn.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
  outline: none;
}

body.lang-en .lang-secondary-title,
body.lang-en .annotation-cs-col {
  display: none !important;
}

body.lang-en .annotation-en-col {
  float: none;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body.lang-en .annotation-en-col .content-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

@media (max-width: 991px) {
  .language-switch {
    margin-left: 0;
  }

  .language-toggle {
    padding: 9px 8px 4px;
  }
}
