@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
  margin: 0;
}

.top-item__info-header a,
.subtitle-left a {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  background: #5667ff;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

section {
  width: 100%;
  max-width: 1344px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: 100%;
  /* margin: 0 auto;
  padding: 0 15px; */
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0 48px 66px;
}

.header {
  background: #fafafa;
  padding: 24px 48px 60px;
  width: auto;
  margin: 0 -48px;
  border-radius: 0px 0px 32px 32px;
}

.header__menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  height: 80px;
  padding: 16px 48px;
  border-radius: 333px;
  background: #ffffff;
  box-shadow: 0px 2px 16.9px 0px #00000014;
}
.header__menu-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__menu-right > span {
  color: #ff3131;
  font-weight: 700;
}
.header__link {
  color: #383838;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.header__link:hover {
  color: #5e5e5e;
  cursor: pointer;
  transition: color 0.2s ease;
}
.subtitle {
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 62px;
}
.subtitle-left {
  width: 70%;
}
.subtitle-left__button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 13px 16px;
  border-radius: 8px;
  background: #5667ff;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}
h1 {
  max-width: 847px;
}
h1,
h3 {
  font-size: 32px;
  font-weight: 600;
  color: #2b2a29;
  line-height: 1.5;
}
h3 {
  margin-bottom: 40px;
}
h2 {
  font-size: 24px;
  font-weight: 400;
  color: #606266;
  line-height: 1.5;
  padding: 12px 0 28px;
  max-width: 902px;
}
.subtitle-left__button {
  width: 225px;
  height: 56px;
}
.content {
  margin: 126px auto 0;
  margin-top: 126px;
}
.top-item {
  background: #fafafa;
  height: 276px;
  display: flex;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
}
.top-item__position {
  margin: 24px 0 32px;
  border-right: 1px solid #e5e5e5;
  min-width: 146px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.top-item__position > span {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.5;
}
.top-item__star {
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-item__star > span {
  font-size: 20px;
  color: #ffa800;
}
.top-item__info {
  padding: 24px 32px;
}
.top-item__info-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.top-item__info-button {
  width: 228px;
  height: 50px;
}
.top-item__info-link {
  font-size: 20px;
  font-weight: 600;
  color: #36a6f2;
  text-decoration: none;
}
.top-item__info-name {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #2b2a29;
}
.top-item__info-description {
  font-size: 16px;
  line-height: 1.5;
  color: #2b2a29;
}

.top-item__advantages {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  height: 32px;
  list-style: none;
  margin-top: 16px;
}

.top-item__advantage {
  height: 100%;
  width: 32px;
  border-radius: 50%;
  background-size: contain;
}

.top-item__advantage_web {
  background-image: url(./icons/web.svg);
}

.top-item__advantage_android {
  background-image: url(./icons/playmarket.svg);
}

.top-item__advantage_ios {
  background-image: url(./icons/appstore.svg);
}

.top-item__advantage_sale {
  width: auto !important;
  padding: 0 8px;
  display: flex;
  gap: 4px;
  align-items: center;
  border-radius: 17px;
}

.top-item__advantage_green {
  background: #ceffdb;
  color: #199e3c;
}

.top-item__advantage_orange {
  background: #ffe5ce;
  color: #9e4119;
}

.top-item__advantage_red {
  background: #ffd4ce;
  color: #9e1919;
}

.top-item__advantage > svg {
  fill: currentColor;
}

.seo-info {
  max-width: 1344px;
  height: 432px;
  width: 100%;
  margin: 64px auto 0;
  display: flex;
  border-radius: 16px;
  background: #f5f9ff;
  padding: 0 32px;
}

.seo-info__text-box {
  padding: 48px 0;
}

.seo-info__title {
  margin: 0 0 12px;
  max-width: 484px;
  color: #2b2a29;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.seo-info__text {
  margin: 0;
  color: #425266;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.seo-info__text:first-of-type {
  margin-bottom: 20px;
}
.seo-info__text > span {
  font-weight: 700;
}

.seo-info__img {
  width: 573px;
  height: 432px;
}

@media (max-width: 1440px) {
  .seo-info {
    height: 30vw;
  }
  .seo-info__title {
    font-size: 2.22vw;
  }
  .seo-info__text {
    font-size: 1.11vw;
  }
  .seo-info__img {
    width: 39.79vw;
    height: 30vw;
    align-self: flex-end;
  }
}

@media (max-width: 1280px) {
  .top-item__info-button {
    width: 180px;
    height: 45px;
  }
  .top-item__info-header a {
    font-size: 16px;
  }
  .top-item__info-name {
    font-size: 20px;
  }
  .top-item {
    height: 250px;
  }
  .top-item__info > img {
    height: 250px;
  }
  .top-item__info-name {
    font-size: 20px;
  }
  .top-item__info-description {
    font-size: 12px;
  }
  .top-item__info-header > img {
    height: 45px;
  }

  .top-item__advantages {
    height: 25px;
    margin-top: 8px;
  }
  .top-item__advantage {
    width: 25px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 12px 30px;
  }
  h1 {
    font-size: 20px;
  }
  h2{
    font-size:16px;
  }
  h3{
    font-size:20px;
    text-align: center;
  }
  .header {
    margin: 0 -12px;
    padding: 15px 12px;
  }
  .header__menu {
    height: auto;
    border-radius: 20px;
    justify-content: center;
    margin: auto;
  }
  .header__menu-left {
    flex-direction: column;
  }
  .header__menu-right {
    display: none;
  }
  .subtitle {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  h1,
  h2 {
    text-align: center;
  }
  .subtitle-left__button {
    width: 100%;
  }
  .top-item {
    height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .top-item > img {
    width: 100%;
  }
  .top-item__position {
    align-self: flex-start;
    flex-direction: row;
    justify-content: space-around;
    border: none;
    width: 100%;
  }
  .top-item__position > span {
    font-size: 24px;
  }
  .top-item__star > span {
    font-size: 14px;
  }
  .top-item__info {
    padding: 18px 22px;
  }
  .top-item__info-button {
    width: 120px;
    height: 40px;
  }
  .top-item__info-header a {
    font-size: 12px;
  }

  .top-item__info-header > img {
    height: 30px;
  }

  .seo-info {
    height: auto;
    flex-direction: column;
  }
  .seo-info__title {
    font-size: 24px;
  }
  .seo-info__text {
    font-size: 14px;
  }
  .seo-info__img {
    width: 100%;
    height: auto;
    align-self: center;
  }
}
