/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 2;

  display: flex;
  flex-direction: row;

  --vertical-padding: 12px;

  max-height: calc(80px - 2 * var(--vertical-padding));
  box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
  background-color: white;

  padding: var(--vertical-padding) 128px;

  /* Tablet */
  @media only screen and (min-width: 704px) and (max-width: 1183px) {
    padding: var(--vertical-padding) 32px;
  }

  /* Mobile */
  @media only screen and (max-width: 703px) {
    --vertical-padding-mobile: 4px;

    max-height: calc(58px - 2 * var(--vertical-padding-mobile));
    padding: var(--vertical-padding-mobile) 32px;
  }
}

.header__link {
  text-decoration: none;

  width: -webkit-fill-available;
  width: -moz-available;
}

.header__img {
  object-fit: cover;
  height: 100%;
  width: auto;
}

/* MAIN */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 120px;

  /* Mobile */
  @media only screen and (max-width: 703px) {
    gap: 32px;
  }
}

/* MESSAGE */
.message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;

  max-width: 60vw;
  min-height: 80dvh;

  /* Mobile */
  @media only screen and (max-width: 703px) {
    max-width: 80vw;
  }
}

.message__icon {
  border: 3px solid var(--color-state-success);
  border-radius: 50%;
  padding: 8px;

  i {
    width: var(--icon-large);
    height: var(--icon-large);
    font-size: var(--icon-large);  
    color: var(--color-state-success);
  }
}

.message__title {
  font-family: var(--font-family);
  font-size: var(--titles5-font-size);
  line-height: var(--titles5-line-height);
  color: var(--color-secondary);

  text-align: center;

  /* Mobile */
  @media only screen and (max-width: 703px) {
    font-size: var(--titles7-font-size);
    line-height: var(--titles7-line-height);
  }
}

.message__subtitle {
  font-family: var(--font-family-medium);
  font-size: var(--titles8-font-size);
  line-height: var(--titles8-line-height);
  color: var(--color-secondary6);

  text-align: center;

  /* Mobile */
  @media only screen and (max-width: 703px) {
    font-size: var(--titles9-font-size);
    line-height: var(--titles9-line-height);
  }
}

/* FOOTER */
footer {
  position: relative;

  padding: 80px 120px;

  /* Tablet and mobile */
  @media only screen and (max-width: 1183px) {
    padding: 64px 40px;
  }
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 16px;

  border-top: 1px solid var(--color-grey3);

  padding: 64px 0;
}

.footer__icons {
  align-self: flex-end;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;

  /* Tablet and mobile */
  @media only screen and (max-width: 1183px) {
    align-self: center;
  }
}

.footer__icon-link {
  text-decoration: none;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;

  color: white;
  background-color: var(--color-secondary3);
  border-radius: 6px;

  transition: all 0.4s ease-in-out;

  i {
    width: var(--icon-small);
    height: var(--icon-small);
    font-size: var(--icon-small);
  }
}

.footer__icon-link:hover {
  opacity: 0.7;
}

.footer__links {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  /* Tablet and mobile */
  @media only screen and (max-width: 1183px) {
    justify-content: center;
  }
}

.footer__text,
.footer__link {
  font-family: var(--font-family);
  font-size: var(--text-captionM-font-size);
  line-height: var(--text-captionM-line-height);
  color: var(--color-secondary);
  
  text-align: center;
}

.footer__link {
  text-decoration: none;

  transition: all 0.4s ease-in-out;
}

.footer__link:hover {
  opacity: 0.7;
}

.footer__red-corner {
  position: absolute;
  right: 0;
  bottom: 0;

  display: block;
  width: 0;
  height: 0;
  border-bottom: 160px solid var(--color-primary);
  border-left: 126px solid transparent;
  visibility: visible;

  content: '';
  z-index: 2;

  /* Tablet and mobile */
  @media only screen and (max-width: 1183px) {
    border-bottom: 80px solid var(--color-primary);
    border-left: 70px solid transparent;
  }
}

.hidden__icon-label {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    color: black;
}

.hidden__icon-label:focus {
    clip: auto;
    height: auto;
    overflow: auto;
    position: absolute;
    width: auto;
}