:root {
  --ink: #141510;
  --pine: #071610;
  --champagne: #c9a86a;
  --white: #fffdf7;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--white);
  background: var(--pine);
  font-family: "Marcellus", Georgia, "Times New Roman", serif;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--pine);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 15, 11, 0.9), rgba(7, 22, 16, 0.45) 48%, rgba(7, 22, 16, 0.06)),
    linear-gradient(0deg, rgba(5, 15, 11, 0.64), rgba(5, 15, 11, 0.05) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(760px, calc(100% - 80px));
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 72px 0 72px 40px;
}

.hero-mark {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  object-fit: cover;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Marcellus", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 720px;
  font-size: 78px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--champagne);
  border-radius: 8px;
  background: var(--champagne);
  color: #17120a;
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
}

.button:hover,
.button:focus-visible {
  background: #ddc084;
  border-color: #ddc084;
  outline: none;
}

.request-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: 8px;
  background: rgba(7, 22, 16, 0.96);
  color: var(--white);
}

.request-dialog::backdrop {
  background: rgba(5, 15, 11, 0.72);
  backdrop-filter: blur(10px);
}

.signup-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px;
}

.signup-form h2 {
  padding-right: 52px;
  font-size: 34px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.03);
  color: rgba(255, 253, 247, 0.78);
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--white);
  border-color: var(--champagne);
  outline: none;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 253, 247, 0.74);
  font-size: 13px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.95);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.22);
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 22px;
  color: rgba(255, 253, 247, 0.74);
  font-size: 14px;
}

@media (max-width: 700px) {
  .hero-media {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 15, 11, 0.84), rgba(7, 22, 16, 0.42)),
      linear-gradient(0deg, rgba(5, 15, 11, 0.86), rgba(5, 15, 11, 0.08) 55%);
  }

  .hero-content {
    width: calc(100% - 44px);
    justify-content: flex-end;
    gap: 26px;
    padding: 120px 0 72px 22px;
  }

  .hero-mark {
    top: 22px;
    left: 22px;
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  h1 {
    font-size: 48px;
  }

  .button {
    width: 100%;
  }
}
