.header {
  position: relative;
  display: grid;
  row-gap: 16px;
  padding: 16px;
  background-color: #F0D3C4;
}

.header__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: var(--white-background);

  nav {
    display: none;
  }
}

.header__logo {
  img {
    width: 60px;
    height: 25px;
  }
}

.header__right {
  display: flex;
  column-gap: 28px;
  align-items: center;
}

.header__phone {
  display: none;
}

.header__contact-btn {
  min-height: 32px;
  padding: 5px 23px;
  font-size: 12px;
  line-height: normal;
  letter-spacing: -0.12px;
}

.header__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 176px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.14px;
    text-transform: uppercase;
    color: var(--black-label);
    background-color: rgba(255, 255, 255, 0.32);
  }

  a::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 24px;
    background-image: url("../../assets/icons/decor-arrow-small.svg");
  }
}

.header__title {
  display: grid;
  row-gap: 16px;
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  color: var(--black-label);

  p {
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.18px;
  }

  h1 {
    font-weight: 800;
    font-size: 54px;
    line-height: 90%;
  }
}

/*mobile portrait*/
@media (min-width: 478px) {
  .header {
    row-gap: 24px;
  }

  .header__top {
    padding: 24px 16px;
  }

  .header__logo {
    img {
      width: 80px;
      height: 35px;
    }
  }

  .header__contact-btn {
    min-height: 40px;
    padding: 5px 31px;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.14px;
  }

  .header__cards {
    a {
      min-height: 220px;
      font-size: 18px;
      line-height: normal;
      letter-spacing: -0.18px;
    }
  }

  .header__title {
    row-gap: 20px;

    h1 {
      font-size: 64px;
      line-height: 92%;
    }
  }
}

/*mobile landscape*/
@media (min-width: 767px) {
  .header {
    row-gap: 20px;
    padding: 20px;
  }

  .header__top {
    padding: 24px 20px;
  }

  .header__phone {
    display: flex;
    column-gap: 6px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: -0.14px;
    text-transform: uppercase;
    color: var(--black-label);
  }

  .header__phone::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("../../assets/icons/call.svg");
  }

  .header__cards {
    gap: 20px;

    a {
      font-size: 20px;
      letter-spacing: -0.2px;
    }
  }

  .header__title {
    row-gap: 16px;

    h1 {
      order: 1;
      font-size: 60px;
    }

    p {
      order: 2;
      line-height: 120%;
    }
  }
}

/*tablet*/
@media (min-width: 991px) {
  .header__title {
    h1 {
      font-size: 64px;
    }

    p {
      font-size: 26px;
    }
  }
}

/*desktop*/
@media (min-width: 1400px) {
  .header {
    row-gap: 48px;
  }

  .header__top {
    nav {
      display: block;

      ul {
        display: flex;
        column-gap: 40px;
        font-family: "Roboto Condensed", sans-serif;
        font-weight: 700;
        font-size: 14px;
        line-height: 140%;
        letter-spacing: -0.14px;
        text-transform: uppercase;
        color: var(--black-label);
      }
    }
  }

  .header__cards {
    grid-template-columns: repeat(4, 1fr);

    a {
      min-height: 279px;
    }
  }

  .header__title {
    h1 {
      font-size: 80px;
      line-height: 90%;
    }
  }
}

