@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap");

:root {
  --navy: #001f47;
  --navy-dark: #00162f;
  --yellow: #f1e900;
  --white: #fff;
  --grey: #687482;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--navy);
  background: var(--navy);
  font-family: "Barlow", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  display: grid;
  grid-template-rows: minmax(620px, 1fr) auto auto;
  min-height: 100vh;
}

.header {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 104px;
  padding: 0 clamp(28px, 5vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.brand {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 116px;
  height: 128px;
  overflow: hidden;
  background: #293f67;
  transform: translateX(-50%);
  box-shadow: 0 8px 25px rgba(0, 17, 39, 0.2);
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__country {
  display: flex;
  align-items: center;
  height: 104px;
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  padding: 135px clamp(28px, 7vw, 112px) 75px;
  color: var(--white);
  background: var(--navy-dark);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 54%;
}

.hero__shade {
  background:
    linear-gradient(
      90deg,
      rgba(0, 18, 42, 0.96) 0%,
      rgba(0, 23, 53, 0.84) 29%,
      rgba(0, 23, 53, 0.36) 54%,
      rgba(0, 23, 53, 0.03) 78%
    ),
    linear-gradient(0deg, rgba(0, 20, 45, 0.38), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(620px, 52vw);
}

.status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status__dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(241, 233, 0, 0.15);
}

h1 {
  max-width: 650px;
  margin: 0 0 26px;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(70px, 7vw, 112px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 3px 24px rgba(0, 18, 42, 0.2);
}

.hero__lead,
.hero__apology {
  max-width: 520px;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero__apology {
  margin-top: 7px;
  font-weight: 700;
}

.contacts {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.15fr;
  gap: clamp(30px, 5vw, 80px);
  padding: 38px clamp(28px, 7vw, 112px) 42px;
  background: var(--white);
  box-shadow: 0 -8px 30px rgba(0, 17, 39, 0.1);
}

.contacts h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.contacts__address {
  margin: 0;
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.contacts__address span {
  display: block;
  margin-top: 5px;
  color: var(--grey);
}

.contacts__grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(25px, 3.5vw, 58px);
}

.contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.contact-group__label {
  margin-bottom: 4px;
  color: var(--grey);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-group a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-group a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.contact-group a:hover::after,
.contact-group a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer {
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(28px, 7vw, 112px);
  color: #7b8794;
  background: #f0f2f4;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .hero__content {
    width: min(650px, 67vw);
  }

  .hero__image {
    object-position: 56% 54%;
  }

  .hero__shade {
    background: linear-gradient(
      90deg,
      rgba(0, 18, 42, 0.95) 0%,
      rgba(0, 23, 53, 0.78) 46%,
      rgba(0, 23, 53, 0.14) 80%
    );
  }

  .contacts {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .contacts__grid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .page {
    grid-template-rows: minmax(640px, 82vh) auto auto;
  }

  .header {
    height: 82px;
    padding-right: 20px;
  }

  .brand {
    left: 20px;
    width: 86px;
    height: 96px;
    transform: none;
  }

  .header__country {
    width: 205px;
    height: 82px;
    justify-content: flex-end;
    text-align: right;
    font-size: 10px;
    line-height: 1.35;
  }

  .hero {
    min-height: 640px;
    align-items: flex-end;
    padding: 130px 24px 58px;
  }

  .hero__image {
    object-position: 43% center;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(0, 20, 47, 0.98) 0%, rgba(0, 20, 47, 0.7) 50%, rgba(0, 20, 47, 0.18) 100%),
      linear-gradient(90deg, rgba(0, 20, 47, 0.5), transparent);
  }

  .hero__content {
    width: 100%;
  }

  .status {
    margin-bottom: 21px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: clamp(57px, 17vw, 76px);
  }

  .hero__lead,
  .hero__apology {
    font-size: 16px;
  }

  .contacts {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 24px 36px;
  }

  .contacts__grid {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts h2 {
    font-size: 29px;
  }

  .contacts__address,
  .contact-group a {
    font-size: 15px;
  }

  .footer {
    flex-direction: column;
    gap: 5px;
    padding: 14px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
