/* Shared header / footer — used on the main site and product pages */
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  font-family: 'Noto Sans', 'NotoSans', sans-serif;
}

.nav-menu { display: flex; justify-content: center; }
.nav-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-item { margin: 10px 0; font-size: 1.2em; }
.top-section .nav-link {
  text-decoration: none;
  color: #658393;
  display: block;
  padding: 10px 20px;
}

.menu { position: relative; }
.menu > button {
  background-color: #fff;
  color: #658393;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
}

.menu-content {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 5000;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.menu-content.show { display: flex; }
.menu-left, .menu-right { flex: 1; display: flex; justify-content: center; align-items: center; }
.menu-right { flex: 2; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-item { display: flex; flex-direction: column; align-items: center; }
.menu-item img { max-width: 100%; height: auto; }
.menu-item a { text-decoration: none; color: #658393; text-align: center; }
.menu-close { position: absolute; top: 20px; left: 20px; font-size: 2em; cursor: pointer; color: #315263; }

.language-switcher { position: relative; right: 1.5rem; }
.language-switcher select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: #fff;
  color: #315263;
}

footer.main-footer {
  padding: 55px 20px 30px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
  background: #fff;
  font-family: 'Noto Sans', 'NotoSans', sans-serif;
}
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-links { display: flex; justify-content: space-around; margin-bottom: 40px; }
.footer-links-col { flex: 1; }
.footer-col-title { font-size: 20px; margin-bottom: 24px; color: #315263; }
.footer-products-col { display: flex; gap: 24px; }
.footer-link { display: block; color: #658393; text-decoration: none; margin-bottom: 12px; font-size: 16px; }
.footer-link:hover { color: #00ce52; }
.footer-bottom { padding: 20px 0; border-top: 1px solid #ddd; }
.footer-privacy { display: flex; gap: 24px; justify-content: center; font-size: 14px; }
.footer-copyright { max-width: 640px; margin: 0 auto 20px; text-align: center; font-size: 12px; color: #b8c5cf; line-height: 1.25; }
.footer-socials { display: flex; gap: 24px; justify-content: center; }
.footer-social-link { color: #658393; font-size: 18px; }


.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #315263 !important;
}

.logo img {
  max-height: 40px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  background: transparent;
}

.logo-company {
  font-family: 'Noto Sans', 'NotoSans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.language-switcher select {
  font-family: inherit;
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: #658393;
  font-size: 14px;
  margin: 12px 0 20px;
}

.footer-contact-line a {
  color: #315263;
  text-decoration: none;
}

.footer-contact-line a:hover {
  color: #00ce52;
}

.product-page:not(.product-stardevice) {
  padding-top: 72px;
}

.product-page .top-section {
  z-index: 4000;
  --chrome-content-max: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: max(20px, calc((100% - var(--chrome-content-max)) / 2));
  padding-right: max(20px, calc((100% - var(--chrome-content-max)) / 2));
}

.product-page .top-section .menu {
  justify-self: start;
}

.product-page .top-section .logo {
  justify-self: center;
}

.product-page .top-section .language-switcher {
  justify-self: end;
  right: 0;
}

.product-page footer.main-footer {
  display: block !important;
  background: #fff !important;
  color: #658393 !important;
  padding: 55px 20px 30px !important;
  margin: 0 !important;
  text-align: left !important;
  position: relative !important;
  z-index: 2;
}

.product-page footer.main-footer a {
  color: #658393;
}

.product-subnav {
  position: sticky;
  top: 72px;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  --chrome-content-max: 1200px;
  padding: 10px max(24px, calc((100% - var(--chrome-content-max)) / 2 + 24px));
  background: #fff;
  border-bottom: 1px solid #d5dee3;
  font-family: 'Noto Sans', 'NotoSans', sans-serif;
}

.product-subnav a,
.product-subnav button {
  background: none;
  border: none;
  color: #315263;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
  font-family: inherit;
}

.product-subnav a:hover,
.product-subnav button:hover {
  color: #00ce52;
}

body.product-page .top-section nav {
  position: static;
  display: flex;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.product-page .top-section .nav-link {
  color: #315263;
  font-family: 'Noto Sans', 'NotoSans', sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

@media (max-width: 720px) {
  .logo-company {
    display: none;
  }
}
