.topbar,
.topbar * {
  box-sizing: border-box;
}

.topbar {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 3.5vw, 58px);
  border-bottom: 1px solid rgba(9, 17, 13, 0.1);
  color: #09110d;
  background: rgba(238, 242, 239, 0.78);
  backdrop-filter: blur(18px);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.topbar .brand {
  display: flex;
  align-items: center;
  height: auto;
  text-decoration: none;
}

.topbar .brand-logo {
  display: block;
  width: 200px;
  height: auto;
  max-height: none;
}

.topbar .nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}

.topbar .nav-link {
  padding: 10px 0;
  color: #09110d;
  white-space: nowrap;
  text-decoration: none;
}

.topbar .nav-link:hover {
  color: #087f72;
}

.topbar .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(9, 17, 13, 0.5);
  border-radius: 999px;
  color: #09110d;
  background: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topbar .nav-cta:hover {
  color: #ffffff;
  background: #09110d;
  transform: translateY(-1px);
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(120px, auto));
  gap: 48px;
  margin: 76px 0 0;
  padding: 58px max(40px, calc((100vw - 1280px) / 2));
  border-top: 1px solid rgba(9, 17, 13, 0.12);
  color: #46534d;
  background: #edf1ee;
  font: 14px/1.5 "Segoe UI", Arial, Helvetica, sans-serif;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-logo {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #09110d;
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.footer-logo-mark {
  display: block;
  width: 25px;
  height: 28px;
  object-fit: contain;
}

.footer-logo-word {
  display: inline-flex;
}

.footer-logo-word > span {
  color: #087f72;
}

.footer-logo-image {
  display: block;
  width: 170px;
  height: auto;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #5d6862;
  line-height: 1.65;
}

.footer-group {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-group strong {
  color: #09110d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-group nav {
  display: grid;
  gap: 10px;
}

.footer-group a,
.footer-meta a {
  width: max-content;
  color: #46534d;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-group a:hover,
.footer-meta a:hover {
  color: #087f72;
}

.footer-group a:hover {
  transform: translateX(2px);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(9, 17, 13, 0.11);
  color: #5d6862;
  font-size: 13px;
  font-weight: 650;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer--compact {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-footer--compact nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer--compact nav a,
.site-footer--compact > span {
  color: #5d6862;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.cookie-banner,
.cookie-banner * {
  box-sizing: border-box;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: grid;
  width: min(calc(100% - 48px), 620px);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(90, 240, 216, 0.26);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(11, 21, 17, 0.98);
  box-shadow: 0 22px 60px rgba(7, 17, 12, 0.3);
  backdrop-filter: blur(18px);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.cookie-banner__copy strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.2;
}

.cookie-banner__copy p {
  max-width: 560px;
  margin: 0;
  color: #becbc5;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-banner__copy a {
  color: #5af0d8;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner__actions button {
  min-width: 132px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: 750 14px/1 "Segoe UI", Arial, Helvetica, sans-serif;
  transition: border-color 160ms ease, background 160ms ease;
}

.cookie-banner__actions button:hover {
  border-color: #5af0d8;
  background: rgba(90, 240, 216, 0.1);
}

.cookie-settings {
  width: max-content;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #46534d;
  background: transparent;
  cursor: pointer;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: inherit;
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
}

.cookie-settings:hover {
  color: #087f72;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer :where(a, button):focus-visible,
.cookie-banner :where(a, button):focus-visible {
  outline: 3px solid #5af0d8;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #edf1ee;
}

.cookie-banner :where(a, button):focus-visible {
  box-shadow: 0 0 0 5px #0b1511;
}

@media (max-width: 1180px) {
  .site-footer {
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(130px, 0.7fr));
    gap: 42px 36px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 900px) {
  .topbar .nav-link {
    display: none;
  }

  .site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .footer-brand,
  .footer-meta {
    grid-column: 1 / -1;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer.site-footer--compact {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .site-footer--compact .footer-logo {
    justify-self: center;
  }

  .site-footer--compact nav {
    order: 3;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar .brand-logo {
    width: 156px;
  }

  .topbar .nav-cta {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__actions button {
    width: 100%;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 20px;
  }

  .footer-brand,
  .footer-meta {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .topbar {
    height: 78px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar .brand-logo {
    width: 142px;
  }

  .topbar .nav-cta {
    min-height: 40px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr;
  }
}
