/* Plain CSS for the native navigation, gallery dialog and form controls. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 20px 0;
  border-bottom: 1px solid #ffffff1a;
  transition:
    background 0.4s,
    padding 0.4s;
  color: var(--on-dark);
}
.site-header.solid {
  padding: 12px 0;
  background: #fffffff5;
  color: var(--anthracite);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}
.header-inner,
.header-actions,
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  width: 224px;
  height: auto;
}
.desktop-nav {
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.desktop-nav a:hover,
.header-phone:hover {
  color: var(--bronze);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.header-phone svg {
  color: var(--bronze);
}
.header-cta {
  background: var(--bronze);
  color: var(--bronze-foreground);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  border: 1px solid currentColor;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}
.site-header button svg {
  width: 22px;
  height: 22px;
}
dialog {
  border: 0;
  padding: 0;
}
dialog::backdrop {
  background: #171c21ed;
  backdrop-filter: blur(5px);
}
#mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 384px);
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: var(--anthracite-deep);
  color: var(--on-dark);
  padding: 28px;
}
#mobile-menu nav {
  display: flex;
  flex-direction: column;
  margin: 35px 0;
}
#mobile-menu nav a {
  padding: 18px 0;
  border-bottom: 1px solid #ffffff1a;
  font-size: 24px;
  font-weight: 700;
}
.menu-close {
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  padding: 8px;
}
body.dialog-open {
  overflow: hidden;
}
#project-lightbox {
  position: fixed;
  inset: 0;
  background: transparent;
  color: var(--on-dark);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
#project-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 70px;
}
#project-lightbox figure {
  text-align: center;
  min-width: 0;
}
#project-lightbox figure img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  margin: auto;
  object-fit: contain;
}
#project-lightbox figcaption {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
}
#project-lightbox [data-counter] {
  color: var(--bronze-light);
  margin-top: 6px;
}
#project-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: #252b3099;
  cursor: pointer;
}
#project-lightbox button:hover {
  background: var(--bronze);
}
#project-lightbox [data-close] {
  top: 24px;
  right: 24px;
}
#project-lightbox [data-prev] {
  left: 16px;
  top: 50%;
}
#project-lightbox [data-next] {
  right: 16px;
  top: 50%;
}
[hidden] {
  display: none !important;
}
.native-select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--input);
  background: var(--stone);
  border-radius: 2px;
  padding: 0 16px;
  color: var(--foreground);
  font: inherit;
}
form input:not([type="checkbox"]),
form textarea {
  width: 100%;
  border: 1px solid var(--input);
}
form input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--bronze);
}
form [aria-invalid="true"] {
  border-color: var(--destructive) !important;
}
.field-error {
  font-size: 13px;
  color: var(--destructive);
  margin-top: 6px;
}
#form-status:empty {
  display: none;
}
#form-status {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: white;
  color: var(--anthracite);
  padding: 16px 24px;
  max-width: min(440px, calc(100vw - 100px));
  box-shadow: var(--shadow-lift);
}
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}
@media (max-width: 1279px) {
  .header-phone {
    display: none;
  }
}
@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .brand-logo {
    width: 200px;
  }
}
@media (max-width: 639px) {
  .header-cta {
    display: none;
  }
  .brand-logo {
    width: 160px;
  }
  .header-inner {
    gap: 16px;
  }
  #project-lightbox[open] {
    padding: 65px 12px 90px;
  }
  #project-lightbox [data-prev],
  #project-lightbox [data-next] {
    top: auto;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
