@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/CormorantGaramond-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Manrope;
  src: url("assets/Manrope-Latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
  background: #15232d;
  color: #fff;
  --page-gutter: 6.041667vw;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

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

.hero__background, .hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__image {
  position: absolute;
  top: 2px;
  left: -13.888889%;
  width: 129.444444%;
  min-height: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  max-width: none;
}

.hero__shade { background: url("assets/desktop-shade.svg") center / 100% 100% no-repeat; }

.hero__content {
  height: 100%;
  padding: 14.222222svh var(--page-gutter) 10svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 96px;
  font-weight: 700;
  line-height: 74px;
  letter-spacing: 0;
}

.hero__caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 400px;
  min-height: 88px;
  margin: 34px 0 0;
  padding: 20px;
  background: url("assets/caption.svg") center / 100% 100% no-repeat;
  color: #fbf9f6;
  font-size: 18px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

.catalog-form {
  position: relative;
  width: min(939px, 100%);
  min-height: 183px;
  padding: 36px 25px 59px;
  border-radius: 24px;
  background: url("assets/form-panel.svg") center / 100% 100% no-repeat;
}

.catalog-form__fields {
  display: grid;
  grid-template-columns: minmax(0, 266fr) minmax(0, 291fr) minmax(0, 307fr);
  align-items: end;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  line-height: 17px;
  color: rgb(255 255 255 / 83%);
}

.field input {
  width: 100%;
  height: 60px;
  min-width: 0;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  background: url("assets/name-field.svg") center / 100% 100% no-repeat;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
}

.field--phone input { background-image: url("assets/phone-field.svg"); }
.field input::placeholder { color: rgb(255 255 255 / 94%); opacity: 1; }
.field input:user-invalid { outline: 2px solid #ffd4bd; outline-offset: 2px; }

.catalog-form button {
  height: 60px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: url("assets/submit-button.svg") center / 100% 100% no-repeat;
  color: #0b1927;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
}

.catalog-form button:hover { filter: brightness(.94); }
.catalog-form button:active { transform: translateY(1px); }
.catalog-form button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.catalog-form__status {
  position: absolute;
  right: 25px;
  bottom: 12px;
  left: 25px;
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  color: #fff;
}

@media (min-width: 1700px) {
  h1 { font-size: 112px; line-height: 88px; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 5vw; }
  .hero { min-height: 720px; }
  .hero__content { padding-top: 10svh; padding-bottom: 7svh; }
  h1 { font-size: 84px; line-height: 66px; }
  .hero__caption { width: 360px; font-size: 16px; }
  .catalog-form { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 600px) {
  :root { --page-gutter: 24px; }
  .hero { min-height: 740px; }
  .hero__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 59% center;
  }
  .hero__shade {
    background-image: linear-gradient(180deg, rgb(11 25 39 / 32%), rgb(11 25 39 / 6%) 40%, rgb(11 25 39 / 45%));
  }
  .hero__content { padding-top: max(64px, 10svh); padding-bottom: max(32px, 5svh); gap: 40px; }
  .hero__intro { width: 100%; }
  h1 { font-size: 74px; line-height: 58px; }
  .hero__caption {
    width: min(100%, 400px);
    min-height: 76px;
    margin-top: 24px;
    padding: 16px 10px;
    font-size: 14px;
    line-height: 20px;
  }
  .catalog-form {
    width: 100%;
    padding: 25px 20px 30px;
    background-size: 100% 100%;
  }
  .catalog-form__fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .field { gap: 9px; }
  .field input, .catalog-form button { height: 56px; }
  .catalog-form__status { position: static; margin: 20px 0 0; font-size: 12px; }
}

@media (max-height: 650px) and (min-width: 601px) {
  .hero { height: auto; min-height: 650px; }
  .hero__content { min-height: 650px; padding-top: 70px; padding-bottom: 50px; }
}
