:root {
  --yellow: #ffc900;
  --grey: #5f6060;
  --text: #282828;
  --soft: #faf8ef;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

main,
.funding-area {
  width: 100%;
  max-width: 1168px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  padding: 34px 0 52px;
}

.brand {
  display: block;
  width: 412px;
  max-width: 100%;
  height: auto;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 711 / 527;
  object-fit: cover;
  border-radius: 4px;
}

.message {
  max-width: 900px;
  padding: 70px 0 88px;
}

.accent {
  width: 96px;
  height: 8px;
  margin-bottom: 24px;
  background: var(--yellow);
}

h1 {
  margin: 0;
  color: var(--grey);
  font-size: clamp(2.8rem, 7.2vw, 6.4rem);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.message p {
  max-width: 780px;
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

footer {
  border-top: 7px solid var(--yellow);
  background: var(--soft);
}

.funding-area {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 28px 54px;
  padding-block: 40px;
}

.qualysoft,
.eu-brand {
  display: flex;
  align-items: center;
}

.qualysoft {
  line-height: 0;
}

.qualysoft img {
  width: 112px;
  height: auto;
}

.eu-brand {
  gap: 12px;
  color: #17365d;
  font-size: .9rem;
  line-height: 1.25;
}

.eu-flag {
  width: 48px;
  height: 32px;
  object-fit: cover;
}

.funding-text {
  justify-self: end;
  margin: 0;
  color: var(--grey);
  font-size: .95rem;
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 700px) {
  main,
  .funding-area {
    padding-inline: 15px;
  }

  .site-header {
    padding: 24px 0 34px;
  }

  .hero-image {
    min-height: 390px;
    object-position: 57% center;
  }

  .message {
    padding: 48px 0 58px;
  }

  .accent {
    width: 68px;
    height: 6px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.25rem);
  }

  .message p {
    margin-top: 24px;
  }

  .funding-area {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 34px;
  }

  .funding-text {
    justify-self: start;
    max-width: 340px;
    padding-top: 24px;
    border-top: 1px solid #ded9c5;
    text-align: left;
  }
}
