:root {
  --primary: #5f5366;
  --primary-soft: #6b5d73;
  --dark: #2f2a2d;
  --light: #f3eee6;
  --neutral: #cfc5b8;
  --line: rgba(243, 238, 230, 0.62);
  --glass: rgba(47, 42, 45, 0.93);
  --glass-border: rgba(243, 238, 230, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--dark);
  color: var(--light);
  font-family: "Avenir Next", Avenir, "Montserrat", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -2;
  background-image: url("assets/novara-background.jpg");
  background-position: center center;
  background-size: cover;
  filter: blur(7px);
  transform: scale(1.045);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(243, 238, 230, 0.20) 0%, rgba(47, 42, 45, 0.12) 43%, rgba(47, 42, 45, 0.62) 100%),
    linear-gradient(180deg, rgba(47, 42, 45, 0.18) 0%, rgba(47, 42, 45, 0.04) 43%, rgba(47, 42, 45, 0.38) 100%);
}

.brand {
  position: absolute;
  top: clamp(24px, 4.8vw, 68px);
  left: clamp(22px, 4.8vw, 74px);
  width: clamp(180px, 19vw, 290px);
  margin: 0;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(243, 238, 230, 0.42));
}

.announcement {
  position: absolute;
  top: clamp(28px, 5.6vw, 82px);
  right: clamp(24px, 5.2vw, 82px);
  max-width: 20ch;
  margin: 0;
  text-align: right;
  color: var(--light);
  font-size: clamp(1rem, 1.65vw, 1.75rem);
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.40);
}

.contact {
  position: absolute;
  top: clamp(128px, 19vw, 218px);
  right: clamp(24px, 5.2vw, 82px);
  z-index: 5;
  width: min(410px, calc(100vw - 48px));
}

.contact__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--light);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.contact__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.contact__icon::before,
.contact__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform 280ms var(--ease);
}

.contact__icon::before {
  transform: translate(-50%, -50%);
}

.contact__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.contact__trigger[aria-expanded="true"] .contact__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.contact__panel {
  max-height: min(74svh, 720px);
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: top right;
  scrollbar-width: thin;
  scrollbar-color: var(--neutral) transparent;
}

.contact__panel.is-opening {
  animation: panelIn 430ms var(--ease) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact__content {
  padding: 23px 24px 25px;
}

.contact__heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.contact__eyebrow {
  margin: 0 0 4px;
  color: var(--neutral);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.contact__heading-row h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.contact__close {
  margin-top: -7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--light);
  cursor: pointer;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}

.contact__details {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(243, 238, 230, 0.18);
}

.contact__details a {
  width: fit-content;
  color: var(--light);
  font-size: 0.72rem;
  line-height: 1.45;
  text-decoration: none;
}

.contact__details a:hover,
.contact__details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__details p {
  margin: 7px 0 0;
  color: rgba(243, 238, 230, 0.76);
  font-size: 0.65rem;
  line-height: 1.48;
}

.contact__details strong {
  color: var(--light);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact__form {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.contact__form > label:not(.contact__consent) {
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.contact__form label span {
  opacity: 0.62;
  font-size: 0.60rem;
  text-transform: none;
}

.contact__form input:not([type="checkbox"]),
.contact__form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(243, 238, 230, 0.35);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--light);
  font-size: 0.84rem;
}

.contact__form input:not([type="checkbox"]) {
  height: 34px;
}

.contact__form textarea {
  min-height: 78px;
  padding: 8px 0;
  resize: vertical;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-bottom-color: var(--light);
}

.contact__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.turnstile-wrap {
  min-height: 66px;
  margin-top: 8px;
  overflow: hidden;
}

.contact__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  margin: 8px 0 2px;
  cursor: pointer;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.contact__consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--light);
}

.contact__consent span {
  opacity: 0.78 !important;
  font-size: 0.65rem !important;
  line-height: 1.42;
}

.contact__submit {
  margin-top: 8px;
  padding: 13px 18px;
  border: 1px solid var(--light);
  background: var(--light);
  color: var(--dark);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.contact__submit:hover,
.contact__submit:focus-visible {
  background: transparent;
  color: var(--light);
}

.contact__submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact__status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.42;
}

.contact__status.is-error {
  color: #ffd5d5;
}

.contact__status.is-success {
  color: #e9f7e7;
}

.footer {
  position: absolute;
  right: clamp(24px, 5.2vw, 82px);
  bottom: clamp(20px, 3.7vw, 50px);
  left: clamp(22px, 4.8vw, 74px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  color: var(--light);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(39ch, 42vw);
}

.footer__block--right {
  text-align: right;
  align-items: flex-end;
}

.footer__label {
  margin-bottom: 3px;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer a {
  color: var(--light);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .hero::before {
    background-position: 52% center;
    filter: blur(6px);
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(243, 238, 230, 0.22) 0%, rgba(47, 42, 45, 0.08) 34%, rgba(47, 42, 45, 0.58) 100%),
      linear-gradient(90deg, rgba(47, 42, 45, 0.10), rgba(47, 42, 45, 0.30));
  }

  .brand {
    width: clamp(160px, 47vw, 215px);
  }

  .announcement {
    max-width: 13ch;
    font-size: 0.98rem;
  }

  .contact {
    top: 128px;
  }

  .contact__panel {
    max-height: calc(100svh - 205px);
  }

  .contact__content {
    padding: 20px;
  }

  .footer {
    font-size: 0.55rem;
    gap: 18px;
  }

  .footer__block {
    max-width: 42vw;
  }
}

@media (max-width: 430px) {
  .brand {
    width: 150px;
  }

  .announcement {
    top: 30px;
    font-size: 0.84rem;
  }

  .contact {
    top: 116px;
  }

  .contact__panel {
    max-height: calc(100svh - 178px);
  }

  .footer {
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.54rem;
  }

  .footer__block,
  .footer__block--right {
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-height: 760px) and (min-width: 701px) {
  .contact {
    top: 112px;
  }

  .contact__panel {
    max-height: calc(100svh - 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
