:root {
  --nh-ink: #101820;
  --nh-ink-soft: #1a2433;
  --nh-text: #243041;
  --nh-muted: #3f4a5c;
  --nh-paper: #f7f4ef;
  --nh-accent: #8a6410;
  --nh-accent-hover: #6f5008;
  --nh-white: #ffffff;
  --nh-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100vh;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--nh-ink);
  line-height: 1.65;
  overflow: hidden;
}

.page {
  position: relative;
  height: 100dvh;
  background:
    url("images/hero.png") center center / cover no-repeat fixed;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.72) 0%,
    rgba(26, 35, 50, 0.45) 50%,
    rgba(26, 35, 50, 0.65) 100%
  );
  pointer-events: none;
}

.page__content {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.45rem 0.9rem 0.38rem;
}

.page__top {
  position: relative;
  flex-shrink: 0;
  min-height: 200px;
  margin-bottom: 0;
  overflow: visible;
}

.brand-header {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0 4.5rem 0;
  color: var(--nh-white);
}

.brand {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 0;
}

.brand__logo {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 26%;
  height: 300px;
  max-width: calc(100% - 1rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.42));
}

.lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  z-index: 2;
}

.lang-switch__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  color: var(--nh-white);
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-switch__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lang-switch__btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nh-ink);
  border-color: rgba(255, 255, 255, 0.92);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
}

.main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.64rem;
  align-items: stretch;
  width: 100%;
}

.panel {
  background: rgba(247, 244, 239, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  box-shadow: var(--nh-shadow);
  border: 1px solid rgba(255, 255, 255, 0.46);
  padding: 0.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--nh-text);
}

.content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: var(--nh-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.content p {
  margin: 0 0 0.5rem;
  color: var(--nh-text);
  font-size: 1.02rem;
}

.content p.lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--nh-ink-soft);
}

.signature {
  margin-top: auto;
  padding-top: 0.42rem;
  border-top: 1px solid rgba(16, 24, 32, 0.18);
}

.signature strong {
  display: block;
  color: var(--nh-ink);
  font-weight: 700;
}

.signature p {
  color: var(--nh-muted);
}

.contact-link {
  color: var(--nh-accent);
  text-decoration: none;
  font-weight: 700;
}

.contact-link:hover {
  color: var(--nh-accent-hover);
  text-decoration: underline;
}

.form-card {
  height: 100%;
}

.form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.form-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
  color: var(--nh-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.form-card__intro {
  margin: 0.18rem 0 0.32rem;
  color: var(--nh-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.optional {
  font-weight: 500;
  color: var(--nh-muted);
}

.form-card .form-group {
  margin-bottom: 0.26rem;
}

.form-card .form-group label {
  margin-bottom: 0.16rem;
  font-size: 0.82rem;
  color: var(--nh-ink-soft);
  font-weight: 700;
}

.form-card .form-group input,
.form-card .form-group textarea {
  padding: 0.38rem 0.58rem;
  font-size: 0.86rem;
}

.form-card .form-group textarea {
  flex: 1;
  min-height: 42px;
  max-height: 72px;
}

.form-card .btn {
  margin-top: 0.28rem;
  padding: 0.4rem 0.68rem;
  font-size: 0.86rem;
}

.form-card .alert {
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.38rem;
  font-size: 0.86rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nh-ink-soft);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(16, 24, 32, 0.22);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--nh-ink);
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #667080;
  opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--nh-accent);
  box-shadow: 0 0 0 3px rgba(138, 100, 16, 0.2);
  background: var(--nh-white);
}

.form-group textarea {
  min-height: 56px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 8px;
  background: var(--nh-ink);
  color: var(--nh-white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: #2a3648;
}

.btn:active {
  transform: translateY(1px);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.52rem;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.alert--success {
  background: rgba(237, 247, 239, 0.95);
  color: #174a24;
  border: 1px solid #a8d5b2;
}

.alert--error {
  background: rgba(253, 240, 239, 0.95);
  color: #7a2420;
  border: 1px solid #e3aaa6;
}

.footer {
  text-align: center;
  padding: 0.45rem 0 0.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

@media (max-width: 1024px) {
  .page__content {
    padding: 0.4rem 0.75rem 0.35rem;
  }

  .page__top {
    min-height: 170px;
  }

  .brand {
    height: 170px;
  }

  .brand-header {
    padding-inline: 3.75rem;
  }

  .brand__logo {
    top: -48px;
    width: 34%;
    height: 250px;
  }

  .content h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  }

  .content p {
    font-size: 0.9rem;
  }

  .panel {
    padding: 0.82rem;
  }
}

@media (max-width: 860px) {
  body {
    height: auto;
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100dvh;
    background-attachment: scroll;
  }

  .page__content {
    height: auto;
    min-height: 100dvh;
    padding: 0.75rem 1rem 1rem;
  }

  .page__top {
    min-height: 150px;
    margin-bottom: 0.5rem;
  }

  .brand {
    height: 150px;
  }

  .brand-header {
    padding-inline: 0;
    margin-bottom: 0;
  }

  .brand__logo {
    top: -40px;
    width: min(72vw, 320px);
    height: 210px;
  }

  .main {
    align-items: stretch;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .panel {
    height: auto;
    padding: 1.1rem;
  }

  .content {
    height: auto;
  }

  .signature {
    margin-top: 0.75rem;
  }

  .form-card form {
    flex: none;
  }

  .form-card .form-group textarea {
    flex: none;
    min-height: 88px;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .page__top {
    min-height: 130px;
  }

  .brand {
    height: 130px;
  }

  .brand__logo {
    top: -32px;
    width: min(78vw, 280px);
    height: 180px;
  }

  .lang-switch {
    margin-bottom: 0.5rem;
  }

  .panel {
    padding: 1rem;
    border-radius: 12px;
  }

  .form-card h2,
  .content h2 {
    font-size: 1.45rem;
  }

  .footer {
    font-size: 0.78rem;
    line-height: 1.4;
    padding-top: 0.75rem;
  }
}
