

.companies {
    text-align: center;
}

.companies-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

.company {
    width: 250px;
    height: 250px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.company img {
    max-width: 250px;
    width: 80%;
}

.company img {
    max-width: 250px;
    width: 80%;
    transition: transform 0.3s ease;
}

.company:hover img,
.company:active img{
    transform: scale(1.1);
}

/*Prev slider*/
/*.slider-block {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    width: 100%;*/
/*}*/

/*.slider-content {*/
/*    position: relative;*/
/*}*/

/*.slider-img {*/
/*    max-width: 1200px;*/
/*    max-height: 600px;*/
/*    overflow: hidden;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/

/*.slider-img img {*/
/*    width: 100%;*/
/*}*/

/*.slider-description {*/
/*    max-width: 1200px;*/
/*    max-height: 600px;*/
/*    overflow: hidden;*/
/*    width: 100%;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    background-color: rgba(0, 0, 0, 0.5);*/
/*}*/

/*New slider*/
.slider-block {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 500px;
}

.slide img {
    width: 100%;
    display: block;
    height: 100%;
}

.slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
    font-size: 18px;
    box-sizing: border-box;
}

/* Кнопки навигации */
.slider-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-buttons button {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    /*border-radius: 50%;*/
    transition: background 0.3s;
    pointer-events: all;
}

.slider-buttons button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-block {
    position: relative;
    overflow: hidden;
    box-shadow: 55px 0 63px rgba(0, 0, 0, 0.2),
                 -55px 0 63px rgba(0, 0, 0, 0.2)
}

.slider-s {
    background-color: #f7f7f7;
    width: 100%;
    padding: 60px 0;
}

.news {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.news > .item {
    max-width: 350px;
    border-radius: 12px;
    border: 1px solid #b9b9b9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news > .item > .img > img {
    max-width: 350px;
    height: 240px;
    width: 100%;
}

.news > .item > .img {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--gray);
}

.news > .item > .content {
    padding: 0 10px;
}

.news > .item > .content > p {
    font-size: 16px;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.news > .item > .content > h3 {
    color: var(--red);
}

.news > .item > .footer {
    display: flex;
    padding: 0 0 10px;
    justify-content: center;
    align-items: center;
}

.news > .item > .footer > a {
    margin: 0 10px 0 10px;
}