.seo-first-screen {
  display: grid;
  grid-template-columns: minmax(15px, 1fr) minmax(auto, 1515px) minmax(15px,
      1fr);
  font-family: sans-serif;
  background: white;
}

.seo-first-screen-container {
  grid-column: 2 / 3;
  padding: 103px 0 74px;
  background: url('https://gusarov-group.by/dev/wp-content/uploads/2025/08/gusarov_a.png') no-repeat right bottom;
  background-size: contain;
}

.seo-first-screen h1 {
  font-size: 50px;
  text-transform: uppercase;
}

.seo-first-screen h2 {
  font-family: 'TTFirs';
  font-weight: 700;
  color: #393333;

  font-size: 24px;
  margin: 10px 0 25px;
}

.seo-first-screen p {
  line-height: 140%;
}

.seo-first-screen p span {
  background-color: #ffc24b;
  padding: 2px;
}

.seo-first-screen-text {
  max-width: 535px;
  font-family: 'Century Gothic';
  font-size: clamp(14px, 2.5vw, 18px);
  color: #393333;
  margin: 25px 0 50px;
}

.seo-first-screen-grades {
  display: flex;
  justify-content: space-between;
}

.seo-first-screen-grade p {
  margin: 0;
}

.grades-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  align-content: end;
  gap: 10px;
}

.seo-first-screen-grade {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5);
}

.seo-first-screen-grade>div {
  margin-right: 20px;
}

.seo-first-screen-gusarov {
  display: flex;
  align-items: center;
  box-shadow: 0px 2px 20px 0px #0000000d;
  background-color: white;
  flex-direction: column;
  border: 1px solid #ffc24b;
  padding: 5px;
  max-width: 350px;
}

.seo-first-screen .seo-first-screen-gusarov p {
  font-family: 'TTFirs';
  font-weight: 900;
}

@media screen and (max-width: 1265px) {
  .seo-first-screen {
    background: url('https://gusarov-group.by/seo/wp-content/uploads/2025/07/gusarov-mob.jpg') no-repeat right bottom;
    background-size: contain;
    font-size: 18px;
  }

  .seo-first-screen-container {
    background: none;
  }
}

@media screen and (max-width: 1024px) {
  .seo-first-screen {
    background-size: auto 65%;
  }

  .seo-first-screen h1 {
    font-size: 30px;
  }

  .seo-first-screen h2 {
    font-size: 14px;
  }

  .seo-first-screen p {
    font-size: 13px;
  }

  .seo-first-screen-grades {
    flex-direction: column;
  }

  .grades-container {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .seo-first-screen-grade {
    background: none;
  }

  .gusarov-badge {
    margin-top: 110px;
  }
}

@media screen and (max-width: 500px) {
  .seo-first-screen-container {
    padding: 30px 0 40px;
  }

  .seo-first-screen-text {
    margin-bottom: 40px;
  }

  .seo-first-screen-grade {
    font-size: 10px;
  }

  .seo-first-screen-grade div {
    margin: 0 2px 10px 0;
  }

  .seo-first-screen-grade p {
    font-size: 10px;
    margin: 0;
  }

  .seo-first-screen-grade img {
    width: 18px;
    height: 18px;
  }

  .seo-first-screen h2 {
    margin: 16px 0 16px;
  }

  .grades-container {
    margin: 66px 0 110px;
    height: auto;
  }

  .gusarov-badge {
    margin-top: 0;
  }

  .seo-first-screen-gusarov {
    font-size: 12px;
  }

  .seo-first-screen .seo-page-button {
    max-width: 154px;
  }
}