.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header.is-top:not(.is-menu-open) {
  background: transparent;
  border-bottom-color: transparent;
}

.header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  height: var(--header-height);
}

.brand {
  color: var(--forest);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: auto;
  height: 56px;
}

.site-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--forest);
}

.nav-contact-mobile {
  display: none;
}

.header-tools {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-cta {
  min-height: 42px;
  padding-inline: 1rem;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--forest);
  content: "";
}

.nav-toggle-icon {
  top: 21px;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

[hidden] {
  display: none !important;
}

.site-footer {
  background: #3a3a3a;
  color: #e7e1d6;
  padding: 52px 0 0;
}

.site-footer h2 {
  margin-bottom: 1.35rem;
  color: #f3f1ec;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

.site-footer p {
  max-width: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 36px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-titles {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 1rem;
  color: #cfc3aa;
}

.footer-titles label,
.footer-consent label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cfc3aa;
  font-size: 0.95rem;
}

.footer-newsletter input[type="radio"],
.footer-newsletter input[type="checkbox"] {
  width: 1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #c6b48a;
}

.footer-field {
  margin-bottom: 0.95rem;
}

.footer-field label {
  display: block;
  margin-bottom: 0.15rem;
  color: #cfc3aa;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-newsletter input[type="text"],
.footer-newsletter input[type="email"] {
  width: 100%;
  min-height: 0;
  padding: 0.28rem 0 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(207, 195, 170, 0.75);
  border-radius: 0;
  background: transparent;
  color: #f3f1ec;
}

.footer-newsletter input[aria-invalid="true"] {
  border-bottom-color: #f0c7c0;
  background: transparent;
}

.footer-consent {
  margin: 0.4rem 0 1rem;
}

.footer-consent a {
  color: #f3f1ec;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-error {
  margin-top: 0.3rem;
  color: #f0c7c0;
  font-size: 0.88rem;
}

.footer-error:empty,
.footer-status:empty {
  display: none;
}

.footer-status {
  margin: 0 0 0.8rem;
  color: #f3f1ec;
  font-weight: 600;
}

.footer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 0.7rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 2px;
  background: #c6b48a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.footer-button:hover {
  background: #b6a47b;
}

.footer-contact {
  text-align: center;
}

.footer-contact-lines {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.2rem;
  color: #cfc3aa;
}

.footer-contact-name {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-contact a:not(.footer-button) {
  color: #cfc3aa;
}

.footer-legalbar {
  background: #2f2f2f;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.35rem;
  padding: 16px 0;
}

.footer-legal a {
  color: #cfc3aa;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer :focus-visible {
  outline-color: #f3f1ec;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--forest);
  font-size: 0.94rem;
  font-weight: 600;
}

.field-note {
  margin-left: 0.35rem;
  color: var(--muted);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(23, 61, 53, 0.28);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
}

input,
select {
  min-height: 48px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 0.92rem;
}

.field-error:empty {
  display: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--error);
  background: #fbf6f4;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: var(--sage);
  color: var(--forest);
  font-weight: 600;
}

@media (max-width: 1280px) {
  .header-bar {
    grid-template-columns: 1fr auto;
  }

  .header-tools {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    white-space: normal;
  }

  .nav-contact-mobile {
    display: block;
    margin-top: 8px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
