:root {
  --brand-blue: #0b7bc5;
  --brand-blue-dark: #086aa9;
  --text-dark: #4c4c4c;
  --text-soft: #9d9d9d;
  --page-bg: #ececec;
  --button-bg: #c8c8c8;
  --button-text: #f6f6f6;
  --header-height: 92px;
  --header-height-scrolled: 62px;
  --text: #575756;
  --border-dark: #575756;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Poppins", "Segoe UI", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: 0 0 0 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.03);
  transition: all .35s ease;
}

.header-container {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: min-height .35s ease;
}

.brand-logo {
  width: 320px;
  max-width: min(52vw, 320px);
  height: auto;
  transition: width .55s ease;
}
/* stav po scrollu */
.site-header.scrolled .header-container {
  min-height: var(--header-height-scrolled);
}
.site-header.scrolled .header-container .brand-logo,
  .section-contact .contact-wrap .brand-logo{
  width: 180px;
}

.site-nav {
  gap: .9rem;
}

.site-nav .nav-link,
.mobile-nav .nav-link {
  font-size: .82rem;
  font-weight: 600;
  color: #8d8d8d;
  padding: .4rem .25rem;
  position: relative;
}
.mobile-nav .nav-link {
  text-align: right;
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover,
.mobile-nav .nav-link.active,
.mobile-nav .nav-link:hover {
  color: var(--brand-blue);
}

.site-nav .nav-link.active::after,
.site-nav .nav-link:hover::after {
  content: "";
  position: absolute;
  left: .2rem;
  right: .2rem;
  bottom: .05rem;
  height: 1px;
  background: var(--brand-blue);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--brand-blue);
}

.mobile-nav {
  display: none;
  background: rgba(255,255,255,.98);
  border-top: 1px solid rgba(0,0,0,.05);
  padding: .5rem 1rem 1rem;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.hero {
  position: relative;
}

.hero img {
  width: 100%;
  height: clamp(300px, 36vw, 430px);
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.02);
}

.hero-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy p {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.7rem, 3.25vw, 3.25rem);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.page-section {
  padding: 56px 0 24px;
}

.narrow-copy {
  max-width: 1080px;
}

.section-title {
  color: var(--brand-blue);
  font-size: clamp(2.1rem, 2.4vw, 2.85rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.03em;
  margin: 0 0 34px;
}

.section-text {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.32;
  max-width: 1040px;
  margin: 0 auto;
}

.section-text + .section-text {
  margin-top: 1rem;
}

section[id] {
  scroll-margin-top: 85px;
}

.more-specialization {
  margin-top: 1rem;
}

.more-specialization.collapsing {
  transition: height .35s ease;
}

.more-specialization .section-text {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}

.more-specialization.show .section-text {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.btn-special {
  margin-top: 38px;
  background: var(--button-bg);
  border: 0;
  color: var(--button-text);
  font-size: .95rem;
  font-weight: 500;
  padding: .72rem 1.55rem;
  min-width: 165px;
}

.btn-special:hover,
.btn-special:focus {
  background: #b9b9b9;
  color: #fff;
}

.team-grid {
  margin-top: 6px;
}
.team-card {
  cursor: pointer;
}

.team-image-wrap {
  position: relative;
  overflow: hidden;
}

.team-image {
  width: 100%;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}

.team-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  z-index: 2;
  pointer-events: none;
  transition: background .35s ease;
}

.team-card:hover .team-image-wrap::after,
.team-card:focus-within .team-image-wrap::after {
  background: rgba(255,255,255,0.55);
}

.team-card:hover .team-image,
.team-card:focus-within .team-image {
  transform: scale(1.03);
  filter: brightness(1.05) contrast(0.9);
}

.team-card:hover .team-photo-img,
.team-card:focus-within .team-photo-img {
  transform: scale(1.03);
  filter: brightness(1.05) contrast(0.9);
}
.team-card h3 {
  margin: 10px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-dark);
}

.team-card h3 span {
  color: #9f9f9f;
  font-weight: 400;
}

.section-news .row {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.news-item {
  padding-inline: 4px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
}

.news-item.hidden-news {
  display: none;
}

.news-item.show-news {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: newsFadeIn .45s ease forwards;
}

@keyframes newsFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  min-height: 100%;
}

.news-title {
  font-size: 1.33rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.news-perex {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.contact-wrap {
  max-width: 760px;
}
.contact-wrap p {
  text-align: center;
}
.contact-wrap p img
{
  margin: 14vh auto 8vh auto;
  padding: 14vh 0 10vh 0;
  border:0px;
  border-top: 1px solid var(--border-dark);
}

.contact-card-main {
  max-width: 520px;
  margin: 0 auto;
}

.contact-brandline {
  font-weight: 700;
  font-size: clamp(2.1rem, 2.4vw, 2.85rem);
  color: var(--brand-blue);
  margin-top: 170px;
  margin-bottom: 200px;
}

.contact-brandline span {
  color: var(--brand-blue);
  font-weight: 400;
}

.contact-grid {
  display: grid;
  gap: .45rem;
}

.contact-row {
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  justify-content: center;
  color: var(--text);;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
}

.contact-row span {
  color: var(--text);
  text-align: right;
}

.contact-row strong {
  color: var(--text);
  font-weight: 700;
}

.contact-row a:hover {
  color: var(--brand-blue);
}

.privacy-note {
  margin: 34px 0 0;
  color: var(--text);
  font-size: 1rem;
}

.team-modal .modal-content,
.team-modal {
  border-radius: 0;
  border: 0;
}

.team-modal .modal-header {
  border: 0;
  padding: 1rem 1.2rem 0;
}

.team-modal .modal-title {
  color: var(--brand-blue);
  font-weight: 700;
}
.team-role-title {
  font-weight: 400;
  color: var(--brand-blue);
}

.team-modal .modal-body {
  padding: 1.2rem;
}

.team-modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.team-modal-grid img {
  width: 100%;
  aspect-ratio: 465 / 574;
  object-fit: cover;
}

.team-modal-text h3 {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: .45rem;
}

.team-modal-text p {
  color: #767676;
  line-height: 1.5;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .hero img {
    height: clamp(250px, 38vw, 360px);
  }

  .page-section {
    padding-top: 46px;
  }

  .team-modal-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap p img
  {
    margin: 5vh auto 5vh auto;
    padding: 5vh 0 0 0;
  }
}

@media (max-width: 767.98px) {
  .header-container {
    min-height: 66px;
  }

  .brand-logo {
    max-width: 235px;
  }

  .hero img {
    height: 250px;
  }

  .hero-copy h1 {
    font-size: 1.45rem;
    line-height: 1.22;
    padding: 0 12px;
  }

  .page-section {
    padding: 42px 0 18px;
  }

  .section-title {
    margin-bottom: 24px;
    font-size: 1.9rem;
  }

  .section-text,
  .news-perex,
  .contact-row,
  .privacy-note {
    font-size: .95rem;
  }

  .news-title {
    font-size: 1.15rem;
  }

  .contact-row {
    gap: .35rem;
  }

  .contact-brandline {
    font-size: 1.55rem;
    margin-bottom: 18px;
  }
}
