/* Shared header / footer — light-green theme (matches css/styles.css) */
:root {
  --c-bg-dark:  #eef5ea;
  --c-bg-card:  #ffffff;
  --c-bg-elev:  #f0f7ec;
  --c-accent:   #4c8c2b;
  --c-accent-2: #5fa83c;
  --c-ink:      #12301f;
  --c-muted:    #5d6e63;
  --c-border:   rgba(76, 140, 43, .22);
  --c-font: 'Play', 'Noto Sans', 'NotoSans', system-ui, sans-serif;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  /* NB: no backdrop-filter here — it would make .top-section the containing
     block for the fixed full-screen .menu-content and collapse its height. */
  border-bottom: 1px solid var(--c-accent);
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  font-family: var(--c-font);
}

.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: 8px 0; font-size: 1.15em; }
.top-section .nav-link {
  text-decoration: none;
  color: var(--c-ink);
  display: block;
  padding: 10px 20px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.top-section .nav-link:hover { color: var(--c-accent); background: rgba(76, 140, 43, .12); }

.menu { position: relative; display: flex; align-items: center; }
.menu > button {
  background: transparent;
  color: var(--c-ink);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  line-height: 1;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.menu > button:hover { color: var(--c-accent); background: rgba(76, 140, 43, .12); }

.menu-content {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: var(--c-bg-dark);
  z-index: 5000;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(60px, 9vh, 90px) clamp(18px, 5vw, 60px) 40px;
  gap: 30px;
}
.menu-content.show { display: flex; }
.menu-left { display: flex; justify-content: center; }
.menu-right { display: flex; justify-content: center; align-items: center; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: 100%; max-width: 560px; }
.menu-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.menu-item a {
  text-decoration: none;
  color: var(--c-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-bg-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.menu-item a:hover { transform: translateY(-3px); border-color: var(--c-accent); box-shadow: 0 12px 28px rgba(20,40,25,.16); }
.menu-item img { max-width: 100%; max-height: 72px; width: auto; height: auto !important; object-fit: contain; }
.menu-item p { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .5px; color: var(--c-ink); }
.menu-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 1.8em; cursor: pointer; color: var(--c-ink);
  transition: color .2s ease, transform .2s ease; z-index: 2;
}
.menu-close:hover { color: var(--c-accent); transform: rotate(90deg); }

.language-switcher { position: relative; }
.language-switcher select {
  padding: 8px 12px;
  border: 1px solid var(--c-accent);
  border-radius: 40px;
  cursor: pointer;
  background: var(--c-bg-elev);
  color: var(--c-ink);
  font-family: var(--c-font);
  font-weight: 500;
}
.language-switcher select option { color: #0a2a1a; }

.logo { display: flex; justify-content: center; }
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-ink) !important;
}
.logo img { max-height: 40px; width: auto; max-width: 110px; object-fit: contain; background: transparent; }
.logo-company {
  font-family: var(--c-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  background: linear-gradient(135deg, #12301f, #4c8c2b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Global safety: long words (e.g. Ukrainian/German compounds) never widen the page ---------- */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
p, li, td, dd, blockquote { overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Footer ---------- */
footer.main-footer {
  padding: 55px 20px 30px;
  border-top: 1px solid var(--c-accent);
  background: var(--c-bg-dark);
  color: var(--c-muted);
  font-family: var(--c-font);
  position: relative;
  z-index: 1000; /* sit above the fixed section-dots so they never overlap footer text */
}
.footer-container { max-width: 1400px; margin: 0 auto; }
.footer-links { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; }
.footer-links-col { min-width: 0; }
.footer-col-title { font-size: 18px; margin: 0 0 18px; color: var(--c-ink); }
.footer-products-col { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-products-col > div { flex: 1; min-width: 110px; }
.footer-link { display: block; color: var(--c-muted); text-decoration: none; margin-bottom: 12px; font-size: 15px; transition: color .2s ease; }
.footer-link:hover { color: var(--c-accent); }
.footer-bottom { display: flex; flex-direction: column; gap: 22px; align-items: center; padding: 24px 0 0; border-top: 1px solid var(--c-border); }
.footer-privacy { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; font-size: 14px; }
.footer-copyright { max-width: 640px; margin: 0; text-align: center; font-size: 12px; color: #5d6e63; line-height: 1.4; }
.footer-copyright span { display: block; margin-bottom: 6px; }
.footer-contact-line {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: 14px; margin: 0;
}
.footer-contact-line a { color: var(--c-ink); text-decoration: none; }
.footer-contact-line a:hover { color: var(--c-accent); }
.footer-socials { display: flex; gap: 22px; justify-content: center; }
.footer-social-link { color: var(--c-muted); font-size: 18px; transition: color .2s ease, transform .2s ease; }
.footer-social-link:hover { color: var(--c-accent); transform: translateY(-2px); }

/* ---------- Product-page chrome (subnav, layout) ---------- */
.product-page:not(.product-stardevice) { padding-top: 70px; }
.product-page .top-section {
  z-index: 4000;
  --chrome-content-max: 1280px;
  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-subnav {
  position: sticky;
  top: 70px;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  --chrome-content-max: 1280px;
  padding: 10px max(24px, calc((100% - var(--chrome-content-max)) / 2 + 24px));
  background: rgba(247, 250, 245, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  font-family: var(--c-font);
}
.product-subnav a, .product-subnav button {
  background: none; border: none; color: var(--c-ink); text-decoration: none;
  font-size: 14px; padding: 6px 0; cursor: pointer; font-family: inherit;
}
.product-subnav a:hover, .product-subnav button:hover { color: var(--c-accent); }

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: var(--c-ink); font-family: var(--c-font); text-transform: none; letter-spacing: normal; }

/* ---------- Responsive ----------
   SMALL ≤599 · MEDIUM 600–1023 · LARGE 1024–1439 · XL ≥1440
   Matches css/styles.css breakpoint scale. */

/* SMALL: phones */
@media (max-width: 599px) {
  .top-section { padding: 8px 12px; }
  .logo img { max-height: 34px; max-width: 90px; }
  .logo-company { display: none; }

  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }

  .product-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 18px;
    padding: 8px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .product-subnav::-webkit-scrollbar { display: none; }
  .product-subnav a, .product-subnav button { flex: 0 0 auto; padding: 8px 0; }

  .footer-links { grid-template-columns: 1fr; gap: 22px; }
  .footer-col-title--spacer { display: none; }
  .footer-links-col:last-child { margin-top: -30px; }
  .footer-contact-line { text-align: center; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 18px; }
  .footer-copyright { text-align: center; }
}

/* MEDIUM: tablets */
@media (min-width: 600px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-col-title--spacer { display: block; visibility: hidden; }
  .footer-contact-line { text-align: left; justify-content: flex-start; }
}

/* LARGE: desktops */
@media (min-width: 768px) {
  .menu-content { flex-direction: row; align-items: flex-start; justify-content: center; gap: 48px; }
  .menu-left { flex: 0 1 340px; }
  .menu-right { flex: 0 1 560px; }
  .nav-list { align-items: flex-start; text-align: left; }
  .footer-bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .footer-copyright { text-align: left; }
}
@media (min-width: 1024px) {
  .footer-links { grid-template-columns: repeat(4, 1fr); }
  .footer-container { max-width: 1400px; }
  .top-section { padding: 10px max(24px, calc((100% - 1280px) / 2 + 24px)); }
}

/* XL: very large displays */
@media (min-width: 1440px) {
  .top-section { padding: 12px max(32px, calc((100% - 1400px) / 2 + 32px)); }
  .footer-container { max-width: 1480px; }
  .menu-content { padding-left: max(60px, calc((100% - 1400px) / 2)); padding-right: max(60px, calc((100% - 1400px) / 2)); }
}
