.text1 {
    text-decoration: none;
}
.text1_medium {
    margin-top: 10px;
}
.product-container{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.product-block {
    display: flex;
    width: 100%; max-height: 590px;
    gap: 20px;
}
.product-block .main-photo {
    width: 100%;
    max-height: 590px;
}
.product-block .main-photo img {
    width: 100%; height: 100%;
    max-height: 590px;
    max-width: 590px;
    object-fit: cover;
    cursor: pointer;
}
.product-block .about-product {
    display: flex;
    flex-direction: column;
    width: 100%; height: 590px;
}
.product-block .about-product .product-description {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}
.product-block .about-product .product-description .price-product {
    margin-top: 30px;
    font-size: 18px;
    line-height: 20px;
}
.product-block .about-product .product-description .annotation-product {
    margin-top: 30px;
}
.product-block .about-product .manage-panel {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-top: auto;
}
.product-block .about-product .manage-panel .btn-black {
    width: 100%;
    max-width: 312px;
}

.thumbnails {
    width: 50%;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.thumbnail:nth-child(n+6) {
    display: none;
}
.thumbnails img {
    cursor: pointer;
    width: 100%; max-width: 107px;
    height: 107px;
    transition: border-color 0.3s;
    object-fit: cover;
}

.thumbnails img:hover {
    border-color: #000;
}


.recently-block {
    display: flex;
    flex-direction: column;
    margin-top: 90px;
    gap: 20px;
}
.recently-block .recently-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Создаем 4 колонки одинаковой ширины */
    gap: 20px; /* Добавляем отступы между колонками и строками */
}
.recently-block  .product-card {
    display: flex;
    flex-direction: column;
}
.recently-block  a{
    text-decoration: none;
}
.recently-block  img {
    width: 285px; height: 285px;
    object-fit: cover;
}

.modal-content .enquire_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 70px auto;
    max-width: 410px;
}

@media screen and (max-width: 1200px) {
    .product-block {
        height: 469px;
    }
    .recently-block .recently-panel {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-block .about-product {
        height: 100%;
    }
    .thumbnails img {
        height: 100px;
    }
    .recently-block  img {
        width: 220px; height: 220px;
    }
}

@media screen and (max-width: 950px) {
    .product-block {
        height: 50%;
    }
    .recently-block .recently-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-block .about-product {
        height: unset;
    }
    .thumbnail:last-child{
        display:none
    }
    .thumbnails img {
        height: 65px;
    }
    .recently-block  img {
        width: 180px; height: 180px;
    }
    .product-block .about-product .manage-panel {
        gap: 40px;
    }
    .heading2 {
        font-size: 26px;
        line-height: 31px;
    }
    .heading5 {
        font-size: 22px;
        line-height: 26px;
    }
    .text1 {
      font-size: 14px;
      line-height: 22px;
    }
}

@media screen and (max-width: 660px) {
    .product-block {
        height: 100%;
        max-height: unset;
        flex-direction: column;
    }
    .recently-block  img {
        width: 140px; height: 140px;
    }
    .product-block .main-photo {
      display: flex;
      flex-direction: column;
    }
    .thumbnails {

    }
}