.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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background-image: url(../../img/N/pages/affiliateProgramPagePartners/partners-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 250px;
  width: 100%;
}

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

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

.main-preview__back-arrow {
  width: 29px;
  min-width: 29px;
  height: 15px;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
  background-image: url(../../img/N/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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  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;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  background-image: url(../../img/N/pages/portfolioPartnerPage/arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.additionally {
  overflow: hidden;
  max-height: 0px;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  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 {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  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;
  margin: 0;
}

@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 {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .wrapper-content {
    width: 100%;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }
  .wrapper-aside {
    width: 100%;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
    margin-bottom: 30px;
  }
  .aside {
    min-height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    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 {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    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/N/pages/affiliateProgramPage/affiliate-mob.jpg);
  }
  .toggle-btn__text {
    font-size: 12px;
  }
  .toggle-btn__arrow {
    width: 10px;
  }
}

