.content-section {
  width: 100%;
}

.content-section img {
  width: 100%;
  display: block;
}

.content-section .content-img-cover {
  object-fit: cover;
  width: 100%;
  height: 520px;
  margin-bottom: 40px;
}

.content-section h1 {
  font-family: "Inter";
  font-weight: 600;
  font-size: 36px;
  line-height: 120.4%;
  margin-bottom: 40px;
}

.content-section h2 {
  font-family: 'Inter';
  font-weight: 500;
  font-size: 28px;
  line-height: 48px;
  margin: 40px 0 20px;
}

.content-section h3 {
  margin: 40px 0 20px;
  font-family: 'Inter';
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
}

.content-section h4 {
  margin: 40px 0 20px;
  font-family: "Inter";
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
}

.content-section a {
  display: inline;
  color: black;
}

.content-section a:hover {
  color: #697B87;
}

.content-section a:active {
  color: #697B87;
}

.content-section p {
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
}

.content-section p:not(:last-child) {
  margin-bottom: 20px;
}

.content-section ul {
  margin-top: 10px;
  font-weight: 300;
  font-size: 16px;
  line-height: 40px;
  margin-bottom: 20px;
}

.content-section ul > li {
  position: relative;
  padding-left: 24px;
  line-height: 28px;
}

.content-section ul > li:not(:last-child) {
  margin-bottom: 10px;
}

.content-section ul > li::before {
  content: '';
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: black;
  margin-right: 16px;
  left: 0;
  top: 10px;
}

.content-section ol {
  margin-top: 10px;
  font-weight: 300;
  font-size: 16px;
  line-height: 40px;
  counter-reset: liCounter;
  margin-bottom: 20px;
}

.content-section ol ul {
  margin-top: 10px;
}

.content-section ol > li {
  position: relative;
  padding-left: 39px;
  line-height: 28px;
}

.content-section ol > li:not(:last-child) {
  margin-bottom: 10px;
}

.content-section ol > li::before {
  counter-increment: liCounter;
  content: counter(liCounter) ".";
  display: block;
  position: absolute;
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  min-width: 23px;
  text-align: end;
  margin-right: 16px;
  color: black;
  left: 0;
}

.content-section ol > li a {
  display: inline;
  color: black;
}

.content-section ol > li a:hover {
  color: #697B87;
}

.content-section ol > li a:active {
  color: #697B87;
}

.content-section > span {
  margin: 4px 0 40px;
  font-weight: 600;
  font-size: 10px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #697B87;
}

@media screen and (max-width: 1100px) {
  .content-section h1 {
    font-weight: 500;
    font-size: 28px;
    line-height: 48px;
  }
  .content-section .content-img-cover {
    object-fit: cover;
    width: 100%;
    height: 300px;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 499px) {
  .content-section h1 {
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }
  .content-section .content-img-cover {
    object-fit: cover;
    width: 100%;
    height: 200px;
    margin-bottom: 40px;
  }
  .content-section h2 {
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
  }
  .content-section h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    margin: 20px 0 10px;
  }
  .content-section h4 {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    margin: 20px 0 10px;
  }
  .content-section p,
  .content-section ul,
  .content-section ol {
    font-size: 14px;
    line-height: 24px;
  }
  .content-section ul {
    margin-top: 10px;
  }
  .content-section ul > li::before {
    top: 10px;
  }
  .content-section ol > li:not(:last-child) {
    margin-bottom: 20px;
  }
  .content-section ol > li::before {
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
  }
}

@media screen and (max-width: 320px) {
  .content-section ul {
    max-width: 229px;
  }
}

.main-preview {
  display: flex;
  background-image: url(../../img/pages/affiliateProgramPagePartners/partners-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 250px;
  width: 100%;
}

.content-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.main-preview__back {
  display: flex;
  align-items: center;
  margin-top: auto;
  margin-bottom: 60px;
}

.main-preview__back-arrow {
  width: 29px;
  min-width: 29px;
  height: 15px;
  transform: rotate(180deg);
  background-image: url(../../img/common/arrow-decorate.svg);
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 20px;
}

.main-preview__back-name {
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #fff;
}

.content-block h1 {
  margin-top: 60px;
  font-family: "Inter";
  font-weight: 600;
  font-size: 36px;
  line-height: 120.4%;
  margin-bottom: 40px;
}

.container-content {
  width: 85%;
  max-width: 1241px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.wrapper-content {
  width: 65%;
}

.toggle-btn {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  height: 32px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 40px;
}

.toggle-btn__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  margin-right: 8px;
  margin-bottom: 2px;
}

.toggle-btn__arrow {
  width: 14px;
  height: 10px;
  transition: 0.3s;
  background-image: url(../../img/pages/portfolioPartnerPage/arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.additionally {
  overflow: hidden;
  max-height: 0px;
  transition: 0.4s;
  position: relative;
}

.additionally-toggle {
  position: relative;
}

.additionally-toggle img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.additionally-toggle--open .additionally {
  max-height: 1000px;
}

.additionally-toggle--open .toggle-btn__arrow {
  transform: rotate(180deg);
}

.wrapper-aside {
  width: 30%;
}

.aside {
  position: relative;
  padding: 30px;
  border: 1px solid #CDDDE3;
  min-height: 100%;
}

.aside__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 30px;
}

.aside__text a {
  display: inline;
}

.aside__text a:hover {
  color: #697B87;
}

.aside__text a:active {
  color: #697B87;
}

.aside__logo {
  width: 100px;
  min-width: 100px;
  height: 100px;
  border: 1px solid #CDDDE3;
}

.aside__logo img {
  width: 100%;
  height: 100%;
}

.partners-block h3 {
  font-family: 'Inter';
  font-weight: 500;
  font-size: 28px;
  line-height: 48px;
  margin-bottom: 20px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.partners-item {
  display: block;
  width: 31%;
  margin-bottom: 50px;
}

.partners-item:not(:nth-child(3n)) {
  margin-right: 3.5%;
}

.partners-item__img {
  width: 100%;
  margin-bottom: 10px;
}

.partners-item__title {
  font-family: 'Inter';
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
}

@media screen and (max-width: 1350px) {
  .aside__logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
  .aside__text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 24px;
  }
}

@media screen and (max-width: 1050px) {
  .content-block h1 {
    font-weight: 500;
    font-size: 28px;
    line-height: 48px;
  }
  .content-box {
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .wrapper-content {
    width: 100%;
    order: 1;
  }
  .wrapper-aside {
    width: 100%;
    order: 0;
    margin-bottom: 30px;
  }
  .aside {
    min-height: auto;
    display: flex;
  }
  .aside__text {
    margin-right: 30px;
    margin-bottom: 0;
  }
  .aside__logo {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }
}

@media screen and (max-width: 800px) {
  .partners {
    justify-content: space-between;
    margin-bottom: 60px;
  }
  .partners-item {
    width: 48%;
  }
  .partners-item:not(:nth-child(3n)) {
    margin-right: 0;
  }
  .main-preview__back {
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 650px) {
  .partners-item__title {
    font-size: 16px;
    line-height: 24px;
    margin-right: 0;
  }
  .main-preview__back {
    margin-bottom: 20px;
  }
  .main-preview__back-name {
    font-size: 16px;
    line-height: 22px;
  }
  .content-box {
    margin-bottom: 30px;
  }
  .aside {
    padding: 20px;
    padding-top: 45px;
  }
  .aside__logo {
    position: absolute;
    width: 60px;
    height: 60px;
    min-width: 60px;
    left: 20px;
    top: -30px;
  }
  .content-block h1 {
    font-size: 18px;
    line-height: 26px;
    margin-top: 40px;
  }
  .content-section img {
    position: relative;
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .container-content {
    width: 100%;
  }
  .container-content h2,
  .container-content h1,
  .container-content p,
  .container-content .swiper-pagination,
  .container-content .wrapper-description {
    padding: 0 30px;
  }
  .container-content .aside,
  .container-content .partners-block {
    margin: 0 30px;
  }
  .container-content .toggle-btn {
    margin: 30px 20px 40px;
  }
  .partners {
    margin-bottom: 40px;
  }
  .partners-block h3 {
    font-size: 18px;
    line-height: 26px;
  }
  .partners-item {
    width: 100%;
    margin-bottom: 30px;
  }
  .partners-item__title {
    font-size: 14px;
  }
  .main-preview {
    background-image: url(../../img/pages/affiliateProgramPage/affiliate-mob.jpg);
  }
  .toggle-btn__text {
    font-size: 12px;
  }
  .toggle-btn__arrow {
    width: 10px;
  }
}

.content-block {
  margin-bottom: 120px;
}

.portfolio-project__images {
  width: 100%;
  padding-bottom: 70%;
  position: relative;
  overflow: hidden;
}

.portfolio-project__images-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  height: 100%;
}

.portfolio-images-list__item {
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.next-image,
.prev-image {
  background-image: url(../../img/common/main-arrow-btn-white.svg);
  width: 36px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  top: calc(50% - 8px);
  z-index: 2;
  cursor: pointer;
}

.prev-image {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
  left: 40px;
}

.next-image {
  right: 40px;
}

.pagination-images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.pagination-image {
  width: calc(100% / 6 - 16px * 5 / 6);
  margin-top: 16px;
  cursor: pointer;
}

.pagination-image:not(:nth-child(6n)) {
  margin-right: 16px;
}

.pagination-image__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
}

.pagination-image__item {
  width: 100%;
  position: absolute;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.swiper-pagination__dots-wrapper {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.swiper-pagination__dots {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: auto;
  margin-bottom: 50px;
}

.swiper-pagination__dots-item {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.5;
  margin: 0 4px;
  cursor: pointer;
}

.dot__active {
  opacity: 1;
  pointer-events: none;
}

.container-content {
  width: 85%;
  max-width: 1241px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.container-content > h2 {
  font-family: 'Inter';
  font-weight: 600;
  font-size: 36px;
  line-height: 43px;
  margin-bottom: 30px;
}

.content-box__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.content-box__row .wrapper-content {
  -webkit-box-ordinal-group: 1;
  -ms-flex-order: 0;
  order: 0;
}

.content-box__row .aside {
  min-height: auto;
  height: 100%;
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
}

.content-box__row .wrapper-description {
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
}

.description-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  padding: 18px 0 8px;
  border-bottom: 1px solid #CDDDE3;
}

.description-row a:hover {
  color: #697B87;
}

.description-title {
  font-family: 'Inter';
  font-weight: bold;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  width: 120px;
  margin-bottom: 10px;
}

.description-value {
  font-weight: 300;
  font-size: 16px;
  line-height: 16px;
  margin-bottom: 10px;
}

.description-value:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  padding-right: 10px;
  margin-right: 10px;
}

.reviews__title {
  font-family: 'Inter';
  font-weight: 600;
  font-size: 36px;
  line-height: 43px;
  margin-bottom: 40px;
}

.reviews-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 40px;
}

.reviews-item__box-logo {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.reviews-item__logo {
  width: 100%;
  height: 100%;
}

.reviews-item__name {
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
}

.reviews-item__position {
  font-weight: 300;
  font-size: 14px;
  line-height: 28px;
  margin-bottom: 10px;
}

.reviews-item__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 28px;
}

@media screen and (max-width: 1050px) {
  .content-box__row .content-section {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 800px) {
  .container-content > h2 {
    font-weight: 600;
    font-size: 22px;
    line-height: 48px;
  }
}

@media screen and (max-width: 650px) {
  .content-box__row .aside {
    padding: 20px;
  }
}

@media screen and (max-width: 500px) {
  .container-content {
    width: 100%;
    margin-bottom: 60px;
  }
  .container-content h2,
  .container-content h1,
  .container-content p,
  .container-content .swiper-pagination,
  .container-content .wrapper-description {
    padding: 0 30px;
  }
  .container-content .aside {
    margin: 0 30px;
  }
  .container-content .description-title {
    width: 100%;
    font-size: 12px;
  }
  .container-content .description-value {
    font-size: 13px;
  }
  .container-content > h2 {
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }
  .aside__text {
    font-size: 14px;
    line-height: 24px;
  }
  .pagination-image {
    width: calc(100% / 6 - 8px * 5 / 6);
  }
  .pagination-image:not(:nth-child(6n)) {
    margin-right: 8px;
  }
  .content-block {
    margin-bottom: 60px;
  }
  .reviews__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }
  .reviews-item {
    margin-bottom: 30px;
  }
  .reviews-item__box-logo {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-right: 16px;
  }
  .reviews-item__name {
    font-size: 16px;
    line-height: 24px;
  }
  .reviews-item__position {
    font-size: 12px;
    line-height: 24px;
    margin-bottom: 8px;
  }
  .reviews-item__text {
    font-size: 12px;
    line-height: 19px;
  }
}

