.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 0;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-logo-frame {
  display: grid;
  width: 96px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.brand-text span:last-child {
  color: var(--color-metal);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-home-link {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  position: fixed;
  top: 15px;
  right: calc(var(--mobile-nav-edge, 16px) + 54px);
  z-index: 103;
  border: 1px solid rgb(34 48 74 / 0.14);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.nav-home-link svg {
  width: 1.38rem;
  height: 1.38rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-toggle {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  position: fixed;
  top: 15px;
  right: var(--mobile-nav-edge, 16px);
  z-index: 103;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 16px;
  left: 16px;
  z-index: 102;
  display: none;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: grid;
}

.nav-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link,
.language-link,
.language-trigger {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-weight: 800;
}

.language-list .language-link {
  min-width: 44px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  padding-inline: 0.7rem;
  font-size: 0.85rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.language-list .language-link.is-active,
.language-list .language-link:hover {
  background: rgb(249 115 22 / 0.11);
  color: var(--color-accent-strong);
}

.nav-link {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.65rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgb(249 115 22 / 0.08);
  color: var(--color-accent-strong);
}

.nav-actions {
  display: grid;
  gap: 0.75rem;
  border-top: 0;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.nav-contact-actions {
  display: grid;
  gap: 0.55rem;
}

.nav-contact-actions .btn,
.nav-contact-actions .call-choice summary {
  width: 100%;
  white-space: nowrap;
}

.language-menu {
  position: relative;
  width: fit-content;
}

.language-trigger {
  min-width: 116px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger::after {
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  content: "";
}

.language-menu[open] .language-trigger,
.language-trigger:hover {
  background: rgb(249 115 22 / 0.11);
  color: var(--color-accent-strong);
}

.language-options {
  position: absolute;
  z-index: 110;
  top: calc(100% + 0.45rem);
  left: 0;
  display: grid;
  min-width: 178px;
  gap: 0.2rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.45rem;
  box-shadow: var(--shadow-soft);
}

.language-link {
  justify-content: flex-start;
  gap: 0.45rem;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.language-link.is-active,
.language-link:hover {
  background: rgb(249 115 22 / 0.1);
  color: var(--color-accent-strong);
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 101;
  background: rgb(23 34 56 / 0.42);
  cursor: pointer;
}

.nav-backdrop[hidden] {
  display: none;
}

.site-main {
  min-height: 70vh;
  overflow-x: hidden;
  overflow-x: clip;
}

.site-footer {
  overflow-x: hidden;
  overflow-x: clip;
  border-top: 1px solid var(--color-line);
  background: var(--color-primary-strong);
  color: #fff;
}

.footer-merged {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background: var(--color-primary);
}

.footer-merged::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgb(249 115 22 / 0.22), transparent 46%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px 18px);
  content: "";
}

.footer-merged .footer-inner {
  position: relative;
}

.home-bottom-band .footer-merged {
  background: transparent;
}

.home-bottom-band .footer-merged::before {
  content: none;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-col {
  display: grid;
  gap: 0.65rem;
}

.footer-title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
}

.footer-text,
.footer-link,
.footer-small {
  color: rgb(255 255 255 / 0.76);
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-text span:last-child {
  color: rgb(255 255 255 / 0.72);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  padding-top: 1.25rem;
}

@media (min-width: 1200px) {
  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .site-nav {
    position: static;
    z-index: auto;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex: 0 1 auto;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.05rem;
    min-width: 0;
  }

  .nav-link {
    min-height: 44px;
    padding-inline: 0.62rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .nav-actions {
    grid-auto-flow: column;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .nav-contact-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .nav-contact-actions .btn,
  .nav-contact-actions .call-choice summary {
    width: auto;
  }

  .language-trigger {
    min-width: auto;
    padding-inline: 0.65rem;
  }

  .nav-actions .btn {
    border-radius: 999px;
    padding-inline: 0.75rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1199px) {
  .site-header .brand {
    padding-right: 112px;
  }

  .nav-home-link,
  .nav-toggle {
    display: inline-grid !important;
  }
}

@media (max-width: 520px) {
  .site-header {
    --mobile-nav-edge: max(16px, calc(100vw - 374px));
  }

  .site-header .brand {
    gap: clamp(0.35rem, 1.8vw, 0.55rem);
  }

  .site-header .brand-logo-frame {
    width: clamp(58px, 18vw, 74px);
    height: 38px;
  }

  .site-header .brand-text span:first-child {
    font-size: clamp(0.64rem, 3.15vw, 0.78rem);
    white-space: nowrap;
  }

  .site-header .brand-text span:last-child {
    font-size: clamp(0.55rem, 2.5vw, 0.66rem);
    letter-spacing: 0.06em;
  }
}
