.rating__container {
  padding-bottom: 90px; 
}

.rating__upper {
  padding-top: 40px;
  padding-bottom: 40px;
}

.rating__title {
  font-size: 28px;
}

.rating__controls-wrapper {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}

.rating__form--search {
  position: relative;
}

.rating__form-input {
  width: 250px;
  padding: 6px 20px 6px 40px;
  border: 1px solid var(--color-primary);
  border-radius: 26px;
  background-color: transparent;
}

.rating__form-search {
  position: absolute;
  left: 14px;
  top: 9px;
  width: 16px;
  height: 16px;
  background-image: url("../img/magnifier-icon.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.rating__table {
  width: 100%;
}

.table__header {
  display: grid;
  grid-template-columns: 60px 180px 270px auto;
  margin-bottom: 20px;
}

.table__row {
  display: grid;
  grid-template-columns: 60px 180px 270px auto;
}

.table__row--average {
  display: grid;
  grid-template-columns: 464px auto;
  background-color: #d9e8f1;
  border-radius: 26px;
}

.table__cell-wrapper {
  display: grid;
  grid-template-columns: repeat(7, 120px);
}

.table__cell-container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.table__cell-container--average {
  position: relative;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  padding-left: 50px;
  border: 1px solid #315269;
  border-radius: 26px;
  background-color: #d9e8f1;
}

.table__cell-wrapper--data {
  height: 100%;
  background-color: #f5f5f5;
}

.table__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
 /* word-break: break-all;*/
}

.table__cell--header {
  word-break: normal;
}

.table__cell--explain {
  position: absolute;
  left: 14px;
  top: 50%;
  font-size: 12px;
  transform: translateY(-50%);
}

.table__cell--special {
  font-weight: 500;
}

.table__cell--lawyers-grade {
  padding-right: 40px;
}

.table__cell--success {
  background-color: #5aa49c;
}

.table__cell--warning {
  background-color: #ec1d1d;
}

.table__cell--medium {
  background-color: #e8cf6c;
}

.table__cell-change {
  margin-right: 6px;
}

.table__cell-left {
  padding: 12px 36px 12px 24px;
  background-color: #f5f5f5;
}

.table__cell-item {
  display: flex;
}

.table__cell-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table__cell-point {
  display: flex;
  justify-content: flex-start;
  width: 80px;
}
.table__cell-value {
  display: block;
  width: 30px;
}

.table__cell-value--success {
  color: #5aa49c;
}

.table__cell-value--warning {
  color: #ec1d1d;
}

.table__cell-value--medium {
  color: #b69a2d;
}

.table__cell-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 10px;
  margin-left: -14px;
  font-size: 22px;
  font-weight: 500;
  background-color: #d9d9d9;
}

.table__cell-button {
  display: flex;
  flex-shrink: 0;
  width: 10px;
  height: 14px;
  background-image: url("../img/double-arrow-grey-decor.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.table__cell-inner {
  display: block;
}

.table__cell-inner--average {
  padding-right: 20px;
  padding-left: 10px;
  font-size: 14px;
  text-underline-offset: initial;
}

.table__cell-inner--capacity-grade {
  font-size: 22px;
  font-weight: 500;
  color: #fffdfa;
}

.table__cell-inner--success {
  border-bottom: 1px solid #5aa49c;
}

.table__cell-inner--warning {
  border-bottom: 1px solid #ec1d1d;
}

.table__cell-inner--medium {
  border-bottom: 1px solid #b69a2d;
}

.table__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rating__lower {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.rating__pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 30px;
}

.rating__pagination-pages {
  display: flex;
  gap: 6px;
  font-size: 18px;
}

.rating__pages-list {
  display: flex;
  gap: 12px;
}

.rating__pagination-dots {
  font-size: 18px;
}

.rating__pages-button {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rating__pagination-button {
  padding: 6px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 26px;
  transition: 0.2s all ease;
}

@media (any-hover: hover) {
  .rating__pagination-button:hover {
    background-color: var(--color-primary);
    color: #fff;
    transition: 0.2s all ease;
  }
}

.about {
  color: #fffdfa;
  background-color: var(--color-primary);
}

.about__container {
  display: flex;
  padding-top: 150px;
  padding-bottom: 150px;
}

.about__left {
  width: 40%;
  border-right: 1px solid #fff;
}

.about__left-text {
  position: relative;
  font-size: 50px;
  font-weight: 500;
}

.about__left-text--1::after {
  position: absolute;
  right: 0;
  top: 24px;
  width: 120px;
  height: 22px;
  content: "";
  border: 1px solid #fffdfa;
  border-right: none;
}

.about__left-text--2::after {
  position: absolute;
  right: 0;
  top: 22px;
  width: 204px;
  height: 24px;
  content: "";
  border: 1px solid #fffdfa;
  border-right: none;
}

.about__left-text--3::after {
  position: absolute;
  right: 0;
  top: 22px;
  width: 386px;
  height: 24px;
  content: "";
  border: 1px solid #fffdfa;
  border-right: none;
}

.about__right {
  display: flex;
  align-items: center;
  width: 60%;
  padding-left: 76px;
  padding-right: 60px;
}

.about__right-text {
  font-size: 18px;
  line-height: 130%;
}

.explain__container {
  padding-top: 100px;
  padding-bottom: 150px;
}

.explain__upper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
}

.explain__title {
  font-size: 50px;
  font-weight: 300;
}

.explain__lower {
  display: flex;
  justify-content: center;
}

.explain__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  list-style-type: none;
  counter-reset: explain-list;
}

.explain__list::before {
  position: absolute;
  left: 171px;
  top: 0;
  height: 88%;
  width: 0;
  content: "";
  border: 1px dashed #000;
}

.explain__list-item {
  position: relative;
  padding-left: 250px;
}

.explain__list-item::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 50px;
  counter-increment: explain-list;
  content: counter(explain-list);
}

.explain__list-item::after {
  position: absolute;
  left: 120px;
  top: 10px;
  content: "";
  width: 24px;
  height: 24px;
}

.explain__list-item--1::after {
  background-color: #315269;
}

.explain__list-item--2::after {
  background-color: #175487;
}

.explain__list-item--3::after {
  background-color: #5790b8;
}

.explain__list-item--4::after {
  background-color: #a3c7dc;
}

.explain__text {
  width: 380px;
  font-size: 18px;
  line-height: 140%;
}

.explain__text-span {
  font-weight: 500;
}

.explain__courts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-left: 14px;
}

.exlain__courts-item {
  position: relative;
  padding-left: 10px;
}

.exlain__courts-item::before {
  position: absolute;
  left: 0;
  top: 8px;
  content: "";
  width: 2px;
  height: 2px;
  background-color: #000;
}

.experts__container {
  padding-bottom: 150px;
}

.experts__upper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.experts__title {
  font-size: 50px;
  font-weight: 300;
  padding-bottom: 80px;
}

.experts__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 50px;
}

.experts__item-upper {
  display: flex;
  justify-content: center;
}

.experts__item-img {
  width: 230px;
  height: 230px;
  margin-bottom: -60px;
  object-fit: contain;
  border-radius: 50%;
}

.experts__item-lower {
  padding: 80px 56px 44px;
  background-color: #f5f5f5;
}

.experts__item-lower--special {
  background-color: #99bbd6;
}

.experts__item-text {
  line-height: 130%;
  font-size: 18px;
}

.experts__item-name {
  font-weight: 500;
}
