:is(.medsci-page, .medical-devices-page) .container {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding-inline: 30px;
}

.medsci-page .bg-shape-s-3-r {
    top: -46%;
    margin-top: 0;
}

.medsci-page .bg-shape-s-3-l {
    top: 13%;
    margin-top: 0;
}

.medsci-page .text-content-wrapper {
    display: flex;
    gap: 35px;
}


:is(.medsci-page, .medical-devices-page) .text-content {
    padding-top: 90px;
    padding-bottom: 70px;
    position: relative;
    font-family: Commissioner;
    font-size: 16px;
    font-weight: 400;
    line-height: 24.96px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}


.medical-devices-page .text-content-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
}


.hero--medsci {
    height: 616px;
    padding: 0;
    background-image: url('../images/bg_med_sci.jpg');
}

.hero--medical-devices {
    height: 616px;
    padding: 0;
    background-image: url('../images/bg_med_device.jpg');
}


.light-block-content {
    position: relative;
    display: flex;
    justify-content: center;
    padding-block: 100px;
    background-color: #E9EEF2;
}


.medical-devices-page .light-block-content .bg-shape-s-l {
    position: absolute;
    left: -250px;
}

.medical-devices-page .light-block-content .bg-shape-s-r {
    position: absolute;
    right: 0;
    transform: scale(1, -1);
}

.light-block-content--bottom .bg-shape-s-r {
    bottom: 0;
}

.light-block-content--bottom .bg-shape-s-l {
    bottom: 100px;
}

.consulting {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.consulting-wrapper h2 {
  margin: 0;
  margin-bottom: 20px;
}

.consulting-item {
  display: flex;
  flex: 1;
  padding-block: 30px;
  padding-inline: 40px;
  border: 2px solid var(--black);
  background-color: var(--white-2);
  color: var(--black);
  background-image: none;
  background-repeat: repeat;
  background-size: auto;
  border-radius: 8px;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  transition: all .5s;
}

.consulting-item--description {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
}

.warranty {
    display: grid;
    grid-template-columns: minmax(300px, 2fr) minmax(150px, 1fr);
    gap: 106px;
    align-items: center;
}

.warranty-block {
  padding-block: 24px;
  padding-inline: 40px;
  border-radius: 8px;
  border: 1px solid #101357;
}

.warranty-content h2 {
  color: var(--black)
}

.warranty-block {
  color: var(--black);
  font-family: Nunito Sans;
  font-size: 20px;
  font-weight: 700;
  line-height: 27.28px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;

}

.warranty-text {
  font-family: Nunito Sans;
  font-size: 16px;
  font-weight: 400;
  line-height: 24.96px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.why-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-block: 100px;
}

.medical-devices-page .why-container {
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
}


.why-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex-wrap: wrap;
    width: 100%;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.why-block .consulting-item {
    flex: none;
    width: 100%;
    font-family: Nunito Sans;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.accordions {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.accordion__title {
  position: relative;
  z-index: 2;
  display: flex;
  padding: 21px 70px 21px 70px;
  border-radius: 8px;
  background-color: var(--black);
  font-family: Commissioner;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: #fff;
  cursor: pointer;
}

.accordion__title:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 70px;
    width: 10px;
    height: 14px;
    transform: translateY(-50%) rotate(180deg);
    background-image: url('../images/arrow_accordion.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: transform 0.3s;
}

.active.accordion__title:after {
  transform: translateY(-50%) rotate(0deg);
}

.accordion__content {
    position: relative;
    z-index: 1;
    display: none;
    justify-content: space-between;
    gap: 24px;
    margin-top: -20px;
    padding-top: 55px;
    padding-right: 40px;
    padding-bottom: 45px;
    padding-left: 70px;
    background-color: var(--white-2);
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border: 2px solid var(--black);
}

.accordion__content p {
  max-width: 914px;
  width: 100%;
  margin: 0;
  font-family: Commissioner;
  font-size: 16px;
  font-weight: 400;
  line-height: 24.96px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.accordion__content img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.dark-block-wrapper {
    position: relative;
}

.dark-block-wrapper .nav-block-outline {
    max-width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin-top: 20px;
    margin-left: 20px;
}

.medical-devices-page .dark-block-wrapper .nav-block-outline {
    margin-top: 40px;
}

.dark-block-wrapper .dark-block {
    margin-right: 20px;
    margin-bottom: 20px;
}

.medical-devices-page .dark-block-wrapper .dark-block {
    height: auto;
}

.medsci-inner {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.medsci-page .content {
    margin-left: 0;
}

.dark-block-wrapper--list p {
    max-width: 768px;
    width: 100%;
}

.brand.footer.qr {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
}

.dark-block-list-items h4 {
    
}

.video-section {
  padding-bottom: 80px;
  background: #f8f9fa;
}

.video-section .section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.2;
}

.video-wrapper {
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 15px;
    overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: block;
  background: #000;
}

.reviews {
    height: 572px;
    padding-top: 0;
    background: linear-gradient(102.22deg, #101357 32.88%, #00A0A0 85.17%);
}

.reviews .slide {
    padding: 0;
}

.reviews .mask {
    height: 300px;
}

.reviews .w-slider-arrow-left {
    left: 30px;
    right: auto;
}

.reviews .w-slider-arrow-right {
    right: 30px;
    left: auto;
}

.reviews-wrapper {
    width: 100%;
    min-height: 300px;
    background: #ffffff;
    border: 2px solid #101357;
    border-radius: 8px;
    margin: 0 auto;
}

.review-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px;
    padding: 48px 110px;
}

.review-text {
    margin-bottom: 32px;
}

.review-text p {
    font-family: Commissioner;
    font-weight: 400;
    font-size: 22px;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--black);
    margin: 0;
}

.review-author h4 {
    margin: 0 0 4px 0;
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: var(--black);
}

.review-author p {
    margin: 0;
    font-family: Nunito Sans;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: var(--black);
}



@media (max-width: 800px) {
    .text-content-wrapper {
        flex-direction: column;
    }
    
    .content {
        order: 2;
    }
    
    .text-content-wrapper img {
        order: 1;
    }
}

.dark-block-list-items {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 45px;
    grid-column-gap: 75px;
    margin-top: 60px;
    padding: 0;
    list-style: none;
}


@media (max-width: 768px) {
     .video-section {
        padding-bottom: 40px;
      }
      
      .video-section .section-title {
        font-size: 32px;
        margin-bottom: 30px;
      }
      
      .video-wrapper {
        border-radius: 15px;
      }
      
      .video-wrapper video {
        border-radius: 4px;
  }
    
    .reviews .mask {
        height: 280px;
    }
    
    .reviews-wrapper {
        height: 280px;
    }
    
    .reviews .right-arrow {
        display: flex !important;
        top: -65px;
        bottom: auto;
        height: 40px;
        right: -10px;
    }
    
    .reviews .left-arrow {
        display: flex !important;
        top: -65px;
        bottom: auto;
        height: 40px;
        right: 60px;
        left: auto;
    }
    
    .reviews .icon {
        border: 2px solid #fff;
        color: #fff;
    }
    
    .review-item {
        padding: 32px 24px;
        min-height: auto;
    }
    
    .review-text p {
        font-size: 12px;
    }
    
}


@media (max-width: 640px) {
    .warranty, 
    .why-block,
    .consulting {
        grid-template-columns: 1fr;
    }
  
    .warranty-content {
        order: 2;
    }
      
    .warranty {
        gap: 24px;
    }
      
    .warranty img {
        order: 1;
        margin: auto;
    }
    
    .accordion__content img {
        display: none;
    }
    
    .dark-block-list-items {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .reviews .left-arrow {
        right: 45px;
    }
}
