h3 {
  font-family: Blogger Sans, sans-serif;
  color: #1f1f1f;
}

.flex {
  display: flex;
}

.section-header {
  font-weight: 600;
  font-size: 52px;
  text-align: center;
  margin-bottom: 48px;
  text-transform: uppercase;
}

.section-wrapper {
  padding: 0 56px;
}

.section-content {
  background-color: #fff;
  border-radius: 32px;
  padding: 0;
}

.header-count {
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-bottom: 1px solid #d2d2d2;
}

.section-header-small {
  font-size: 30px;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.section-header-small > span {
  display: block;
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .section-header {
    font-size: 38px;
  }

  .section-wrapper {
    padding: 0 16px;
  }

  .section-content {
    border-radius: 24px;
  }

  .header-count {
    padding: 24px;
    gap: 18px;
  }

  .section-header-small {
    font-size: 22px;
  }

  .section-header-small > span {
    font-size: 0.875rem;
  }
}

.header-count-value {
  position: relative;
  flex-shrink: 0;
  font-size: 30px;
  color: #7a16ff;
  font-weight: 600;
  font-family: Blogger Sans, sans-serif;
}

.header-count-value-2 {
  position: relative;
  font-size: 30px;
  color: #7a16ff;
  font-weight: 600;
  font-family: Blogger Sans, sans-serif;
}

.header-count-value::before {
  content: "";
  position: absolute;
  width: 32px;
  border-bottom: 1px solid #d2d2d2;
  top: 45%;
  left: -48px;
}

@media screen and (max-width: 768px) {
  .header-count {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-count-value {
    font-size: 24px;
  }

  .header-count-value-2 {
    font-size: 24px;
  }

  .header-count-value::before {
    display: none;
  }
}

.competitors-statistics-graph-wrapper {
  justify-content: space-between;
  gap: 8px;
  padding: 32px;
}

.competitors-statistics-graph-block {
  width: 100%;
  flex-direction: column;
}

.competitors-statistics-ratio {
  border-radius: 16px;
  position: relative;
  height: 220px;
  margin-bottom: 16px;
}

.competitors-statistics-fill {
  border-radius: 16px;
  background-color: #7a16ff;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
}

.competitors-statistics-value {
  font-size: 22px;
  font-weight: 600;
  font-family: Blogger Sans, sans-serif;
  text-align: center;
  color: #1f1f1f;
  width: 100%;
  position: absolute;
  left: 0;
  top: 12px;
  z-index: 999;
}

.competitors-statistics-title {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .competitors-statistics-graph-wrapper {
    gap: 6px;
    padding: 24px;
  }

  .competitors-statistics-ratio {
    border-radius: 14px;
    height: 180px;
    margin-bottom: 10px;
  }

  .competitors-statistics-fill {
    border-radius: 14px;
  }

  .competitors-statistics-title {
    font-size: 0.875rem;
  }
}

.teams-header {
  margin-bottom: 48px;
}

.teams-buttons {
  margin-bottom: 16px;
  justify-content: center;
  gap: 8px;
}

.teams-button {
  height: 64px;
  border-radius: 32px;
  background-color: #fff;
  text-align: center;
  line-height: 64px;
  font-weight: 600;
  font-family: Blogger Sans, sans-serif;
  color: #1f1f1f;
  cursor: pointer;
  text-transform: uppercase;
  padding: 0 32px;
  font-size: 18px;
}

.teams-button-active {
  background-color: #7a16ff;
  color: #fff;
}

.graph-content {
  text-align: center;
  padding-bottom: 64px;
  position: relative;
}

.graph-description {
  position: absolute;
  max-width: 200px;
  top: 32px;
  left: 32px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #1f1f1f;
  text-align: left;
}

.teams-statistics-paragraph-block {
  padding: 0 10rem;
}

.teams-statistics-paragraph {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #1f1f1f;
}

.top-regions-header {
  padding: 32px;
  border-bottom: 1px solid #d2d2d2;
  justify-content: space-between;
}

.top-regions-title {
  margin: 0;
  color: #1f1f1f;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-align: left;
}

.top-regions-competitors-count {
  font-family: Blogger Sans, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 18px;
  color: #a5a5a5;
}

.top-regions-content {
  padding-bottom: 32px;
}

@media screen and (max-width: 768px) {
  .top-regions-header {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .top-regions-content {
    padding-bottom: 24px;
  }
}

.region-tags {
  width: 50%;
  gap: 8px;
}

.region-tag {
  cursor: pointer;
  border-radius: 16px;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  background-color: #f4f4f4;
  color: #1f1f1f;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 9px;
}

.region-tags-info {
  gap: 8px;
  justify-content: space-between;
}

.top-regions-rating {
  padding: 32px;
  gap: 8px;
  flex-direction: column;
}

.top-region-rating {
  justify-content: space-between;
  cursor: pointer;
}

.top-region-code,
.region-code {
  height: 40px;
  width: 40px;
  min-width: 40px;
  border-radius: 16px;
  background-color: #f4f4f4;
  line-height: 40px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
}

.top-region-name,
.region-name-name {
  color: #1f1f1f;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin-top: 8px;
}

.top-region-rating-value,
.region-rating-value {
  position: relative;
  width: 504px;
  border-radius: 16px;
  height: 40px;
  line-height: 40px;
  padding-right: 16px;
  text-align: right;
  font-family: Blogger Sans, sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #1f1f1f;
}

.top-region-rating-fill {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 16px;
  background-color: #7a16ff;
}

.top-region-block {
  gap: 16px;
  width: 30%;
}

.courses-rating-wrapper {
  padding: 32px;
}

.courses-rating-header {
  font-family: Blogger Sans, sans-serif;
  font-weight: 600;
  font-size: 52px;
  max-width: 400px;
  text-transform: uppercase;
}

.courses-rating-wrapper {
  position: relative;
}

.open-map {
  position: absolute;
  height: 48px;
  left: 32px;
  bottom: 32px;
  padding: 12px 40px 12px 12px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 28px;
  border-radius: 16px;
  background-color: #f4f4f4;
  color: #1f1f1f;
  text-transform: uppercase;
}

.open-map::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 35%;
  right: 16px;
  background-image: url("../img/arrow-right.svg");
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.open-map:active,
.open-map:hover {
  color: inherit;
  text-decoration: none;
}

.top-city-rating-value {
  flex-grow: 1;
  width: 100%;
}

.top-cities-rating {
  padding: 32px;
}

.regions {
  flex-direction: column;
  gap: 8px;
  padding: 32px;
}

.region-name {
  width: 20%;
  gap: 16px;
}

.region-rating-value {
  width: 30%;
}

.region {
  gap: 8px;
}

.graph {
  width: 50%;
}

.top-region-rating-fill-number {
  position: absolute;
  top: 3px;
  right: 8px;
  z-index: 999;
}

@media screen and (max-width: 768px) {
  .regions {
    padding: 24px;
    gap: 24px;
  }

  .region {
    flex-direction: column;
  }

  .region-name {
    align-items: center;
    gap: 0.5rem;
    width: auto;
    padding-right: 45px;
  }

  .region-code {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .region-rating-value {
    width: 100%;
    height: 0.5rem;
    border-radius: 16px;
  }

  .region-name-name {
    margin: 0;
  }

  .top-region-rating-fill-number {
    position: absolute;
    top: -56px;
    right: 0;
    width: 100%;
  }

  .region-tags {
    width: 100%;
    flex-wrap: wrap;
  }

  .region-tag {
    height: auto;
    padding: 12px 16px;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .top-cities-rating .top-region-name {
    margin: 0;
  }

  .top-cities-rating .top-region-rating {
    flex-direction: column;
    gap: 8px;
  }

  .top-cities-rating {
    gap: 16px;
    padding: 24px;
  }

  .top-cities-rating .top-region-rating-fill-number {
    top: -36px;
  }
}
