* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #1f2a44;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* horní lišta */
.top-bar {
  background-color: #25273a;
  color: #ffffff;
  font-size: 14px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 20px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-left {
  white-space: nowrap;
}

.top-bar-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-bar-right a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.top-bar-right a:hover {
  opacity: 0.75;
}

.social-icon,
.social-icon-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon img,
.social-icon-mail img {
  width: 16px;
  height: 16px;
}

/* header */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dddddd;
  position: sticky;
  top: 0;
  z-index: 3000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 36px;
  position: relative;
}

.logo img {
  width: 110px;
  height: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a,
.submenu-toggle,
.lang-link {
  text-decoration: none;
  color: #4b4b4b;
  font-size: 16px;
  line-height: 1.2;
  transition: color 0.2s ease;
  border: none;
}

.nav-list a:hover,
.nav-list a.active,
.nav-list a.active:hover,
.dropdown a.active,
.dropdown a.active:hover,
.submenu-toggle.active {
  color: #ff3131;
}

/* důležité: jen vzhled, bez button-specific stylů */
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b4b4b;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.submenu-toggle a {
  color: inherit;
  text-decoration: none;
}

.submenu-toggle:hover,
.submenu-toggle:hover a {
  color: #ff3131;
}

.submenu-arrow {
  display: none;
  font-size: 18px;
  line-height: 1;
  color: #ff3131;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-link img {
  width: 20px;
  height: auto;
}

.dropdown,
.dropdown-language {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 340px;
  background-color: #969696;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease, visibility 1s ease;
}

.dropdown-language {
  min-width: 170px;
}

.dropdown li a,
.dropdown-language li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  color: #ffffff;
  text-decoration: none;
  background-color: #969696;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover,
.dropdown-language li a:hover {
  background-color: #ffffff;
  color: #ff3131;
}

.has-dropdown:hover .dropdown,
.has-dropdown:hover .dropdown-language {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle,
.menu-close {
  display: none;
}

/* hlavní obsah */
.contact-page {
  background-color: #ffffff;
  padding: 48px 0 70px;
}

.contact-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}

.contact-page-title {
  margin: 0 0 28px;
  color: #ff3131;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-billing p {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
  color: #1f2a44;
}

.contact-billing p strong {
  font-size: 20px;
}

.contact-main-icons {
  display: flex;
  justify-content: center;
  gap: 90px;
  padding-top: 56px;
}

.contact-main-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #1f2a44;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
}

.contact-main-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.branches-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
  margin-bottom: 72px;
}

.branch-card h2,
.hotline-section h2,
.team-title {
  margin: 0 0 24px;
  color: #ff3131;
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 600;
  text-transform: uppercase;
}

.branch-card p {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.6;
}

.branch-card a {
  color: #1f2a44;
  text-decoration: none;
}

.hotline-section {
  margin-bottom: 82px;
  text-align: center;
}

.hotline-items {
  display: flex;
  justify-content: center;
  gap: 120px;
  flex-wrap: wrap;
}

.hotline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #1f2a44;
  text-decoration: none;
  font-size: 18px;
  text-align: center;
}

.hotline-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.team-title {
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 38px;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  margin-bottom: 18px;
}

.team-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  color: #1f2a44;
}

.team-role {
  margin: 0 0 18px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.5;
}

.team-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.team-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.team-icons a:hover {
  transform: scale(1.12);
  opacity: 0.75;
}

.team-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin: 0;
}

.team-phone,
.team-mail {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.team-phone a {
  color: #1f2a44;
  text-decoration: none;
}

.team-mail a {
  color: #ff3131;
  text-decoration: none;
}

/* mapa a footer */
.contact-footer {
  background-color: #ffffff;
  padding: 32px 0 70px;
}

.contact-footer-content {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.contact-info {
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.65;
}

.contact-info p {
  margin: 0 0 8px;
}

.contact-info a {
  color: #1f1f1f;
  text-decoration: none;
}

.contact-info a:hover {
  color: #8f8f8f;
}

.contact-map {
  min-width: 0;
}

.contact-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  background-color: #ffffff;
}

.footer-links {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: #ff3131;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.team-mail a:hover,
.team-phone a:hover,
.branch-card a:hover,
.contact-main-icon:hover,
.hotline-item:hover {
  color: #9b9b9b;
}

/* mobilní menu */
@media (max-width: 1100px) {
  .submenu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    color: #ff3131;
    margin-left: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background-color: #ff3131;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f3f3f3;
    border-top: 1px solid #dddddd;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 18px 0 22px;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  .nav-list > li {
    width: 100%;
    max-width: 420px;
  }

  .nav-list > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    text-align: center;
  }

  .submenu-toggle,
  .lang-link {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 18px;
    color: #4b4b4b;
    text-align: center;
    border: none;
  }

  .submenu-toggle > a {
    grid-column: 2;
    justify-self: center;
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    line-height: 1.2;
  }

  .submenu-toggle .submenu-arrow {
    grid-column: 3;
    justify-self: end;
    align-self: center;
  }

  .lang-item .submenu-toggle {
    grid-template-columns: 1fr auto auto 1fr;
    column-gap: 8px;
  }

  .lang-item .submenu-toggle img {
    grid-column: 2;
    justify-self: end;
    width: 20px;
    height: auto;
  }

  .lang-item .submenu-toggle > span:not(.submenu-arrow) {
    grid-column: 3;
    justify-self: start;
  }

  .lang-item .submenu-toggle .submenu-arrow {
    grid-column: 4;
    justify-self: end;
  }

  .dropdown,
  .dropdown-language {
    position: static;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: transparent;
    padding: 0 0 8px;
    margin-top: 2px;
  }

  .has-dropdown.open > .dropdown,
  .has-dropdown.open > .dropdown-language {
    display: block;
  }

  .dropdown li a,
  .dropdown-language li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 11px 18px;
    font-size: 16px;
    color: #4b4b4b;
    background-color: transparent;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
  }

  .dropdown-language li a {
    gap: 8px;
  }

  .dropdown li a:hover,
  .dropdown-language li a:hover {
    background-color: transparent;
    color: #ff3131;
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:hover .dropdown-language {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 900px) {
  .top-bar-content {
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: center;
    text-align: center;
  }

  .contact-overview {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-main-icons {
    justify-content: flex-start;
    gap: 60px;
    padding-top: 0;
  }

  .branches-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hotline-items {
    flex-direction: column;
    gap: 32px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-map iframe {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header-content {
    min-height: 62px;
    gap: 18px;
  }

  .logo img {
    width: 48px;
  }

  .menu-toggle {
    width: 34px;
    height: 14px;
    gap: 5px;
  }

  .menu-toggle span {
    width: 22px;
    height: 3px;
  }
}

@media (max-width: 640px) {
  .contact-page {
    padding: 32px 0 50px;
  }

  .contact-page-title,
  .branch-card h2,
  .hotline-section h2,
  .team-title {
    font-size: 2rem;
    margin-bottom: 22px;
  }

  .contact-billing p,
  .branch-card p,
  .contact-main-icon,
  .hotline-item,
  .team-phone,
  .team-mail,
  .contact-info {
    font-size: 16px;
  }

  .contact-main-icons {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 260px;
  }

  .footer-links {
    margin-top: 50px;
    gap: 14px;
  }

  .footer-links a {
    font-size: 16px;
  }
}