/* ==============================
   Fonts
   ============================== */
@font-face {
  font-family: 'GT Walsheim Pro';
  src: url('fonts/GTWalsheim-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Walsheim Pro';
  src: url('fonts/GTWalsheim-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Walsheim Pro';
  src: url('fonts/GTWalsheim-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==============================
   Custom Properties
   ============================== */
:root {
  color-scheme: dark;

  --navy: #001a43;
  --blue: #4169a8;
  --light-blue: #9dbcee;
  --cream: #faf9f5;
  --orange: #f37024;
  --dark-blue: #314d79;

  --font: 'GT Walsheim Pro', system-ui, -apple-system, sans-serif;
}

/* ==============================
   Reset & Base
   ============================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scrollbar-color: var(--dark-blue) var(--navy);
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--cream);
  background-color: var(--navy);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

address {
  font-style: normal;
}

/* ==============================
   Header
   ============================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 40px clamp(48px, 5vw, 120px);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 55px;
  width: auto;
}

/* ==============================
   Hero
   ============================== */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 51fr 49fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__content {
  position: relative;
  z-index: 1;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 120px 80px 32px clamp(48px, 5vw, 120px);
  width: 100%;
}

.hero__body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
  width: 100%;
}

.hero__title {
  font-size: clamp(64px, 8vw, 140px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: left;
}

.hero__subtitle {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.hero__illustration {
  position: relative;
  background-color: var(--blue);
}

.hero__illustration-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 91%;
  width: auto;
  max-width: none;
}

/* ==============================
   Button
   ============================== */
.btn {
  display: inline-flex;
  height: clamp(43px, 4vw, 56px);
  padding: 0 clamp(24px, 2.5vw, 36px);
  border-radius: 4px;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0.1em;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--orange);
  color: var(--cream);
}

.btn--full {
  align-self: center;
  margin-top: 20px;
}

.btn__inner {
  display: block;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn__text {
  display: block;
  height: clamp(43px, 4vw, 56px);
  line-height: clamp(43px, 4vw, 56px);
  white-space: nowrap;
}

.btn:hover .btn__inner {
  transform: translateY(-100%);
}

/* ==============================
   Footer
   ============================== */
.footer {
  display: flex;
  gap: 32px;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.36px;
  opacity: 1;
  color: #faf9f5;
}

.footer__col {
  flex: 1 0 0;
}

.footer__col:first-child {
  display: flex;
  flex-direction: column;
}

.footer__col:last-child {
  white-space: nowrap;
  margin-left: auto;
}

.footer__reg {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__reg:hover {
  opacity: 0.8;
}

/* ==============================
   Modal (Dialog)
   ============================== */
.modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal:not([open]) {
  display: none;
}

.modal::backdrop {
  background-color: rgba(65, 105, 168, 0.95);
}

.modal__card {
  background-color: var(--light-blue);
  border-radius: 4px;
  padding: 51px 26px 26px;
  width: 422px;
  max-width: calc(100vw - 32px);
  position: relative;
  color: var(--cream);
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 24px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border-radius: 4px;
  transition: opacity 0.2s;
}

.modal__close:hover {
  opacity: 0.6;
}

.modal__title {
  font-size: 48px;
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 16px;
  color: var(--cream);
  text-align: center;
}

.modal__desc {
  font-size: 16px;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 24px;
}

.modal__message {
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 32px;
  color: var(--cream);
}

.modal__success-state {
  text-align: center;
}

/* ==============================
   Form
   ============================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form__input {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  padding: 16px 24px;
  border: none;
  border-radius: 4px;
  background-color: var(--cream);
  color: var(--navy);
  outline: none;
  transition: box-shadow 0.2s;
}

.form__input::placeholder {
  color: var(--light-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
}

.form__input:focus {
  box-shadow: 0 0 0 2px var(--blue);
}

.form__input--textarea {
  resize: vertical;
  min-height: 100px;
}

.form__error {
  font-size: 14px;
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
}

.header__logo:focus-visible,
.btn:focus-visible,
.modal__close:focus-visible,
.form__input:focus-visible,
.footer__reg:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ==============================
   Body scroll lock
   ============================== */
body.modal-open {
  overflow: hidden;
}

/* ==============================
   Responsive — Mobile
   ============================== */
@media (max-width: 768px) {
  .header {
    padding: 24px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh auto;
  }

  .hero__illustration {
    order: -1;
  }

  .hero__illustration-img {
    height: 110%;
    top: 60%;
  }

  .hero__content {
    padding: 32px 20px 60px 32px;
    justify-content: flex-start;
  }

  .hero__body {
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero__subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }

  .footer {
    position: static;
    margin-top: 64px;
    flex-direction: column;
    gap: 0;
    padding: 56px 0 0;
    border-radius: 4px 4px 0 0;
  }

  .footer__col:last-child {
    order: -1;
    white-space: normal;
    margin-left: 0;
    max-width: 265px;
    margin-bottom: 32px;
  }

  .footer__col:first-child {
    gap: 32px;
    max-width: 265px;
  }

  .modal__card {
    width: 329px;
    padding: 51px 26px 26px;
  }

  .modal__title {
    font-size: 56px;
  }
}

@media (min-width: 769px) and (max-height: 520px) {
  .hero {
    min-height: max(100dvh, 440px);
  }

  .header {
    padding: 16px clamp(20px, 4vw, 56px);
  }

  .header__logo-img {
    height: 36px;
  }

  .hero__content {
    padding: 68px 56px 20px clamp(24px, 4vw, 56px);
  }

  .hero__body {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 16px;
  }

  .hero__title {
    font-size: clamp(40px, 5vw, 44px);
    line-height: 0.85;
  }

  .hero__subtitle {
    font-size: 14px;
    line-height: 1.25;
  }

  .btn {
    height: 40px;
    padding: 0 24px;
    font-size: 15px;
  }

  .btn__text {
    height: 40px;
    line-height: 40px;
  }

  .footer {
    margin-top: auto;
    gap: 20px;
    font-size: 11px;
  }
}

/* Force dark on light-preference systems */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: dark;
  }
}
