.services {
    border: 1px solid #192330;
    border-radius: 5px;
    margin-top: 20px;
    padding: 10px;
    background: #ffffff;
    text-align: center;
}


.service-block img {
    width: 40px;
}

.services-block {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.service-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;
}

.service-block-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 5px;
    max-width: 104px;
}

.service-block-text-span {
    font-size: 12px;
    color: #9c9c9c;
    line-height: normal;
}
.services-text {
    font-size: 20px;
    font-weight: 500;
}


@media screen and (max-width: 480px) {
.service-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-block img {
    width: 30px;
}

}

@media screen and (max-width: 375px) {
.services-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-block img {
    width: 50px;
}

.service-block-text {
    max-width: 100%;
}

}

  #sizeModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #cccccc;
    padding: 20px;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }

  th, td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 3px;
  }

  th {
    background-color: #f8f8f8;
  }

  .measure-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .measure-image {
    flex: 1 1 150px;
    max-width: 100%;
  }

  .measure-image img {
    display: block;
    width: 70%;
  }

  .measure-text {
    flex: 2 1 300px;
  }

  .measure-text b {
    display: block;
  }

  .measure-text span {
    display: block;
    margin-bottom: 5px;
  }

  @media (max-width: 600px) {
      
    .measure-image img {
        width: 100%;
    }
      
    .measure-section {
      flex-direction: column;
    }

    th, td {
      font-size: 12px;
      padding: 8px;
    }

    #sizeModal {
      padding: 15px;
    }
  }


    .tooltip {
      position: relative;
      cursor: help;
      user-select: none;
    }
    
    .tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: #ffffff;
        white-space: normal;
        word-break: break-word;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 1000;
        font-size: 14px;
        color: #2d2d2d;
        border: 1px solid #bdb199;
        padding: 0px 4px;
        border-radius: 5px;
        font-weight: 400;
        max-width: 250px; 
        width: max-content;
    }
    
    @media screen and (max-width: 425px) {
        .tooltip::after {
        left: 100%;
        transform: translateX(-100%);
        max-width: 200px;
    }
    }

    /* Показать подсказку при hover или при активном классе */
    .tooltip:hover::after,
    .tooltip:hover::before,
    .tooltip.active::after,
    .tooltip.active::before {
    opacity: 1;
    pointer-events: auto;
    }      

   .price {
       display: flex;
       flex-direction: column-reverse;
   }
   
   .price_old {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
   }
   
   .cart__price {
        display: flex;
        justify-content: space-between;
        align-items: center;
       
   }



@media screen and (max-width: 564px) {
    
    
    .cart__price {
            display: block;
    }
    
    .price_old {
        display: block;
        margin-left: 10px;
    
    }
    
    .price {
        flex-direction: row;
        
    }
    
    .cart__control{
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
        max-width: 100%;
    }
    
}


@media screen and (max-width: 350px) {
    .price {
        flex-direction: column-reverse;
    }
    
    .cart__control{
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
    }
}


.text_outher {
    z-index: 9;
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 9px;
    color: white;
    text-align: center;
    left: 0;
}









.advantages {
    margin-bottom: 50px;
}
.advantages___inner {
    width: 100%;
    max-width: 1740px;
    margin: 0 auto;
}
.advantages__list {
    display: flex;
    justify-content: center;
}
.advantages__item {
    display: block;
    margin: 20px;
    text-align: center;
    width: 270px;
}
.advantages__item img {
    display: block;
    margin: 0 auto;
    padding: 25px;
}
.advantages__item span {
    font-weight: bold;
}
@media screen and (max-width: 768px) {
    .advantages__list {
        display: block;
    }
    .advantages__item {
        margin: 0 auto;
    }
}

@media screen and (max-width: 1440px){
.advantages {
    margin-left: 15px;
}
}


.video-gallery
{
    position: relative;

    margin-top: 150px;
    margin-bottom: 120px;
}
@media screen and (max-width: 1440px)
{
    .video-gallery
    {
        overflow: hidden;
    }
}
@media screen and (max-width: 1150px)
{
    .video-gallery
    {
        overflow: initial;

        margin-bottom: 100px;
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery
    {
        margin-bottom: 73px;
    }
}
.video-gallery:after
{
    position: absolute;
    top: -50px;
    left: 0;

    width: 1152px;
    height: 546px;

    content: '';

    background-color: #faf8f5;
}
@media screen and (max-width: 1150px)
{
    .video-gallery:after
    {
        width: 632px;
        height: 376px;
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery:after
    {
        top: -30px;

        width: 100%;
    }
}
.video-gallery__inner
{
    position: relative;
    z-index: 5;

    display: flex;

    width: 100%;
    max-width: 1446px;
    margin: 0 auto;
    padding: 0 15px;

    justify-content: space-between;
    align-items: flex-end;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__inner
    {
        box-sizing: border-box;

        justify-content: flex-start;
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery__inner
    {
        position: relative;

        padding-top: 80px;

        flex-wrap: wrap-reverse;
    }
    .video-gallery__inner h2
    {
        position: absolute;
        top: 0;
        right: 0;
        left: 50px;
    }
}
.video-gallery__info
{
    width: 414px;
    margin-right: 24px;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__info
    {
        width: 340px;
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery__info
    {
        width: 50%;
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery__info
    {
        width: 100%;
        margin-right: 0;
    }
}
.video-gallery__desc
{
    margin-top: 80px;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__desc
    {
        margin-top: 30px;
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery__desc
    {
        margin-top: 10px;
    }
}
.video-gallery__date
{
    font-size: 14px;
    font-size: .875rem;
    font-weight: 700;

    margin-bottom: 20px;

    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #000;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__date
    {
        font-size: 10px;
        font-size: .625rem;

        margin-bottom: 10px;
    }
}
.video-gallery__title
{
    font-size: 24px;
    font-size: 1.5rem;
    font-weight: 700;

    letter-spacing: 2.4px;
    text-transform: uppercase;

    color: #000;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__title
    {
        font-size: 16px;
        font-size: 1rem;
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery__title
    {
        line-height: 20px;
    }
}
.video-gallery__text
{
    font-weight: 300;
    line-height: 24px;

    margin-top: 31px;

    color: #575757;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__text
    {
        font-size: 12px;
        font-size: .75rem;

        margin-top: 10px;
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery__text
    {
        display: block;
    }
}
.video-gallery__link
{
    line-height: 43px;

    max-width: 181px;
    height: 41px;
    margin-top: 50px;
}
@media screen and (max-width: 1150px)
{
    .video-gallery__link
    {
        margin-top: 10px;
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery__link
    {
        display: block;

        margin: 10px auto 0;
    }
}
.video-gallery__slider
{
    position: relative;

    width: 1005px;
}
.video-gallery__slider .arrow-btn
{
    position: absolute;
    z-index: 11;
    bottom: 0;
    left: -65px;
}
@media screen and (max-width: 768px)
{
    .video-gallery__slider .arrow-btn
    {
        right: 0;
        left: initial;

        opacity: .6;
    }
}
.video-gallery__slider .arrow-prev
{
    left: -115px;
}
@media screen and (max-width: 768px)
{
    .video-gallery__slider .arrow-prev
    {
        left: 0;
    }
}
@media screen and (max-width: 1150px)
{
    .video-gallery__slider
    {
        width: 655px;
        height: 367px;
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery__slider
    {
        width: 100%;
        max-width: initial;
        height: 400px;
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery__slider
    {
        height: 320px;
    }
}
@media screen and (max-width: 480px)
{
    .video-gallery__slider
    {
        height: 250px;
    }
}
@media screen and (max-width: 425px)
{
    .video-gallery__slider
    {
        height: 200px;
    }
}
@media screen and (max-width: 360px)
{
    .video-gallery__slider
    {
        height: 168px;
    }
}
@media screen and (max-width: 1150px)
{
    .video-gallery__slide
    {
        transform: scale(.65) translateX(-27%) translateY(-28%);
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery__slide
    {
        position: relative;

        height: 400px;

        transform: scale(1) translate(0);
    }
}
@media screen and (max-width: 768px)
{
    .video-gallery__slide
    {
        height: 320px;
    }
}
@media screen and (max-width: 480px)
{
    .video-gallery__slide
    {
        height: 250px;
    }
}
@media screen and (max-width: 425px)
{
    .video-gallery__slide
    {
        height: 200px;
    }
}
@media screen and (max-width: 360px)
{
    .video-gallery__slide
    {
        height: 168px;
    }
}
@media screen and (max-width: 830px)
{
    .video-gallery__slide img
    {
        position: absolute;

        width: 100%;
        height: 100%;
    }
}