/* СТИЛИ ДЛЯ БЛОКА PRODUCT-INFO */

#teh_har,
#stand_mod{
    scroll-margin-top: 8rem;
}

.product-info {
    display: flex;
    column-gap: 70px;
}

.product-info__gallery {
    display: flex;
    column-gap: 25px;
}

.product-info__modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.product-info__modal--open {
    display: flex;
}

.product-info__modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
}

.product-info__modal-image {
    width: 700px;
    height: 650px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 3px;
    background: #fff;
}

.product-info__modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    color: #5ea8a7;
    cursor: pointer;
}

.product-info__modal-close:hover {
    transform: scale(1.15);
}

.product-info__modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    padding: 0 20px;
}

.product-info__modal-content:hover .product-info__modal-nav {
    opacity: 1;
    pointer-events: auto;
}

.product-info__modal-nav-btn {
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.product-info__modal-nav-btn:hover {
    color: #f07c00;
}

.product-info__main-image {
    padding: 0;
    margin: 0;
    list-style: none;
}

.product-info__main-image-item {
    display: none;
}
    
.product-info__main-image-item:first-child {
    display: block;
}

.product-info__main-image-img {
    width: 500px;
    height: 430px;
    object-fit: contain;
    border: 1px solid #F5F5F5;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
}

.product-info__main-image-img:hover {
    border: 1px solid #f07c00;
    opacity: 0.75;
}

.product-info__thumbnails {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.product-info__thumbnails-arrow {
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.product-info__thumbnails-arrow:disabled {
    opacity: 0.5;
    cursor: default;
}

.product-info__thumbnails-viewport {
    width: 100%;
    max-height: 500px; 
    overflow: hidden;
    box-sizing: border-box;
}

.product-info__thumbnails-list {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .3s ease;
    will-change: transform;
}

.product-info__thumbnails-item { 
    box-sizing: border-box; 
}

.product-info__thumbnails-img {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #DCDCDC;
    transition: 0.15s;
    background: #fff;
}

.product-info__thumbnails-img:hover { 
    border-color: #f07c00; 
    opacity: 0.85; 
}

.product-info__thumbnails-item--active .product-info__thumbnails-img { 
    border: 2px solid #000; 
}

.product-info__document-btn {
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.product-info__document-btn:not(:first-child){
    margin-top: 10px;
}

.product-info__document-btn a {
    display: flex;
    gap: 10px;
}

.product-info__document-btn-icon {
    position: relative;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8, %3csvg width='30' height='30' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M15.8333 13.3333V15.8333M15.8333 15.8333V18.3333M15.8333 15.8333H18.3333M15.8333 15.8333H13.3333' stroke='%23257985' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' /%3e%3cpath d='M16.6667 7.5V7.35703C16.6667 6.91499 16.4911 6.49107 16.1785 6.17851L12.9882 2.98816C12.6756 2.67559 12.2517 2.5 11.8097 2.5H11.6667M16.6667 7.5H13.3333C12.4128 7.5 11.6667 6.75381 11.6667 5.83333V2.5M16.6667 7.5V10M11.6667 2.5H5.00001C4.07954 2.5 3.33334 3.24619 3.33334 4.16667V15.8333C3.33334 16.7538 4.07954 17.5 5.00001 17.5H10' stroke='%23257985' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' /%3e%3c/svg%3e");
}

.product-info__document-btn-text {
    padding-top: 6px;
    margin: 0;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #257985;
    font-family: sans-serif;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease-out;
}

.product-info__document-btn-text:hover {
    color: #5ea8a7;
}

.product-info__container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
}

.product-info__navigation {
    display: flex;
    column-gap: 20px;
    margin-top: 30px;
}

.product-info__navigation-item {
    flex: 1;
    display: flex;
}

.product-info__navigation-link {
    display: flex;
    padding: 5px 10px;
    border: 2px solid #257985;
    border-radius: 5px;
    background: #fff;
    font-family: sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #257985;
    text-align: center;
    position: relative;
    outline: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-out;
    text-decoration: none;
    width: 100%;
}

.product-info__navigation-link:hover {
    background: #257985;
    color: #fff;
    cursor: pointer;
}

.product-info__bottom {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-info__price {
    position: relative;
    display: flex;
    height: 50px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='250' height='49' viewBox='0 0 250 49' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0 0H250V49H43.239L0 0Z' fill='%235ea8a7' /%3e%3c/svg%3e");
    background-repeat: no-repeat;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    z-index: 2;
    align-items: center;
    text-align: center;
    outline: none;
    justify-content: center;
    flex: 1;
}

.product-info__order-btn {
    border-radius: 5px;
    border: 2px solid transparent;
    padding: 12px 0;
    background: #257985;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    text-align: center;
    position: relative;
    transition: all .3s ease-out;
    flex: 1;
    min-width: 0;
}

.product-info__order-btn:hover {
    border: 2px solid #257985;
    background: #fff;
    color: #257985;
    cursor: pointer;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА PRODUCT-INFO */

@media (max-width: 1150px) {
    
    .product-info,
    .product-info__navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-info__navigation {
        margin-top: 10px;
    }
    
    .product-info__navigation-link {
        max-width: 350px;
    }
    
    .product-info__price {
        width: 200px;
        flex: 0 0 auto;
    }

    .product-info__navigation-item{
        flex: 0 0 auto;
    }
    
    .product-info__order-btn{
        padding: 10px 20px;
        width: 100%;
        max-width: 350px;
        box-sizing: border-box;
    }
    
    .product-info__bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        width: 100%;
    }
    
    .product-info__navigation-link{
        padding: 10px 20px;
    }
}

@media (max-width: 770px) {
    
    .product-info__gallery {
        flex-direction: column;
        gap: 20px;
    }

    .product-info__thumbnails {
        width: 100%;
        flex-direction: row;
        position: relative;
        order: 2;
    }

    .product-info__main-image-wrapper {
        order: 1;
    }

    .product-info__thumbnails-viewport {
        max-height: none;
        width: calc(100% - 60px);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .product-info__thumbnails-viewport::-webkit-scrollbar {
        display: none;
    }

    .product-info__thumbnails-list {
        flex-direction: row;
        gap: 10px;
        padding: 10px 0;
        transition: transform 0.3s ease;
    }

    .product-info__thumbnails-item {
        flex-shrink: 0;
    }

    .product-info__thumbnails-arrow {
        margin-top: 70px;
        z-index: 2;
        width: 20px;
        height: 70px;
        padding: 0;
    }

    .product-info__thumbnails-arrow--up {
        left: 0;
        transform: translateY(-50%) rotate(360deg);
    }

    .product-info__thumbnails-arrow--down {
        right: 0;
        transform: translateY(-50%) rotate(360deg);
    }

    .product-info__main-image-img {
        width: 100%;
    }

    .product-info__thumbnails-img {
        width: 80px;
        height: 80px;
    }

    .product-info__modal-content {
        padding: 20px;
        width: 95vw;
    }

    .product-info__modal-image {
        width: 100%;
        height: auto;
        max-height: 70vh;
    }
    
    .product-info__document-btn-text {
        font-size: 13px;
        padding-top: 8px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА PRODUCT-DESCRIPTION */

.product-description {
    font-size: 20px;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    margin-top: 20px;
}
 
.product-description table, 
.product-description th, 
.product-description td {
    border: 1px solid #ddd;
}

.product-description th, 
.product-description td {
    padding: 10px 13px;
    text-align: center;
    vertical-align: middle;
}
  
.product-description th {
    background-color: #257985;
    font-weight: bold;
    color: #fff;
}

.product-description img,
.product-description p,
.product-description ul {
    margin-top: 10px;
}
  
.product-description ul {
    list-style: none;
    padding-left: 0;
}

.product-description li {
    position: relative;
    padding-left: 15px;
    margin-top: 5px;
}

.product-description li:first-child {
    margin-top: 0;
}

.product-description li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #257985;
}

.product-description tr:nth-child(even) {
    background-color: #f4f4f4;
}

.product-description h3 {
    margin-top: 20px;
    color: #257985;
}

.product-description h4 {
    margin-top: 20px;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА PRODUCT-DESCRIPTION */

@media (max-width: 1150px) {
    
    .product-description table {
        font-size: 16px;
        width: auto;
    }
    
    .product-description th,
    .product-description td {
        padding: 8px 10px;
    }
}

@media (max-width: 920px) {
    
     .product-description table {
        display: inline-block;
        max-width: 100%;
        overflow-x: auto;
        vertical-align: top;
        white-space: nowrap;
    }

    .product-description {
        overflow-x: hidden;
    }
}

@media (max-width: 770px) {
    
    .product-description table {
        font-size: 14px;
        white-space: normal;
    }
    
    .product-description th,
    .product-description td {
        padding: 6px 8px;
    }
    
    .product-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    
    .product-description table {
        font-size: 12px;
    }
    
    .product-description th,
    .product-description td {
        padding: 4px 6px;
    }
    
    .product-description {
        font-size: 16px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА TEH_HAR И STAND_MOD */

.product-title {
    margin-top: 20px;
    color: #257985;
}

.product-word {
    color: #FF4447;
}

.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-specs-table, .tech-specs-table th, .tech-specs-table td {
    border: 1px solid #257985;
}

.tech-specs-table th, .tech-specs-table td {
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
}

.tech-specs-table th {
    background-color: #257985;
    color: #fff;
    font-weight: bold;
}

.tech-specs-table th:not(:last-child) {
    border-right: 1px solid #fff;
}

.tech-specs-table tr:nth-child(even) {
    background-color: #f4f4f4;
}

.tech-specs-table td:first-child {
    text-align: left;
    font-weight: bold;
}

/* ОБЕРТКА ДЛЯ ТАБЛИЦЫ С ПРОКРУТКОЙ */
.tech-specs-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.tech-specs-table--desktop {
    display: table;
    min-width: 600px;
    width: 100%;
}

.tech-specs-table--mobile {
    display: none;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА STAND_MOD */

@media (max-width: 1300px) {
    .tech-specs-table-container {
        display: none;
    }
    
    .tech-specs-table--desktop {
        display: none;
    }

    .tech-specs-table--mobile {
        display: block;
    }

    .tech-specs-card {
        border: 1px solid #257985;
        margin: 12px 0;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .tech-specs-card__title {
        background: #257985;
        color: #fff;
        padding: 10px 12px;
        font-weight: bold;
    }

    .tech-specs-card table {
        width: 100%;
        border-collapse: collapse;
    }

    .tech-specs-card td {
        padding: 8px 12px;
        border-top: 1px solid #e0e0e0;
        text-align: center;
        border-right: 1px solid #257985;
    }

    .tech-specs-card__feature {
        font-weight: bold;
        width: 50%;
    }

    .tech-specs-card tr:nth-child(even) {
        background-color: #f9f9f9;
    }
}