/* 
 - Стили для главной страницы
*/


.main-content {
    flex: 1;
    min-width: 0;
    color: var(--color-text);
}

section {
    margin-top: 110px;
}

.block {
    padding-top: 30px;
    padding-bottom: 60px;
}

.cover {
    margin-top: 60px;
    padding: 30px;
    height: 30vw;
    background-size: 100%;
    /*aspect-ratio: 2 / 1;*/
}

.cover__header {
    margin-bottom: 115px;
}

.title {
    font-family: var(--title-family);
    text-transform: uppercase;
    font-size: clamp(20px, 3vw, 50px);
    line-height: clamp(22px, 3vw, 52px);
    font-weight: 400;
}

.cover__text {
    font-size: clamp(14px, 1.2vw, 20px);
    line-height: clamp(16px, 1.4vw, 22px);
    font-weight: 400;
}

.btn {
    padding: 20px 30px;
    font-size: 24px;
    line-height: 26px;
    font-weight: 500;
}

.btn:hover {
    transform: scale(1.05);
}

.about {
    margin-top: 60px;
}

.about__cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.about__card {
    width: 209px;
    height: auto;
    padding: 15px;
    background-color: #222222;
    color: #9A9A9A;
}

.about__card-title {
    font-size: 32px;
    line-height: 34px;
    font-family: var(--title-family);
}

.about__card-text {
    font-size: 14px;
    line-height: 16px;
}

.about__list {
    margin-bottom: 60px;
    color: #9A9A9A;
    font-size: 24px;
    line-height: 22px;
}

.about__list li:first-of-type {
    list-style-type: none;
}

.text {
    font-size: 20px;
    line-height: 22px;
}

.about .text {
    margin-bottom: 86px;
}

.about .btn {
    font-size: 24px;
    line-height: 26px;
}

.catalog__list {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.catalog__item {
    padding: 20px;
    background-color: #222222;
}

.catalog__item-img {
    width: 100%;
    height: 310px;
    padding: 29px 21px;
    background-color: #353535;
}

.catalog__item-title {
    font-size: 24px;
    line-height: 22px;
    min-height: 44px; /* lh*2 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog__item .btn {
    font-size: 20px;
    line-height: 26px;
}

.catalog__item .bi-arrow-right-short::before {
    font-size: 30px;
}

.production > div {
    grid-template-columns: 1.5fr 1fr;
}

.production__block-img {
    width: 743px;
    height: 500px;
}

.production__block-img .overlay {
    padding: 50px 40px;
    width: 406px;
    height: 294px;
    left: -55px;
    bottom: -124px;
    background-color: #323232;
}

.partners .title {
    margin-bottom: 80px;
}

@media (max-width: 1800px) {
    .cover__header {
        max-width: 100% !important;
    }
}

@media (max-width: 1600px) {
    .cover__header {
        flex-direction: column;
        gap: 0 !important;
    }

    .cover__header .title,
    .cover__header .cover__text {
        width: 100% !important;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about__cards {
        width: 100% !important;
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
        align-self: flex-start !important;
        margin-top: 40px;
    }

    .about__block {
        width: 100% !important;
    }

    .production > div {
        display: flex !important;
        flex-direction: column;
    }

    .form img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 1300px) {
    section {
        margin-top: 60px;
    }
}

@media (max-width: 1199px) {
    .catalog__item:nth-child(3) {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .main-content {
        padding: 0 20px;
        margin-left: 0;
    }

    .cover {
        margin-top: 40px;
        padding: 20px;
        background-size: cover;
    }

    .about,
    .catalog,
    .production,
    .partners,
    .form {
        padding: 0;
    }

    .about__list {
        margin-bottom: 40px;
        font-size: 16px;
        line-height: 18px;
    }

    .about__text {
        margin-bottom: 40px;
    }

    .text {
        font-size: 18px;
        line-height: 20px;
    }

    .catalog__list {
        display: flex !important;
        flex-direction: column;
    }

    .catalog__item:nth-child(3) {
        display: flex !important;
    }

    .production .title {
        max-width: 100% !important;
    }

    .production__block-img {
        width: 100%;
        max-width: 743px;
        height: auto;
    }

    .production__block-img .main-img {
        height: auto !important;
    }

    .production__block-img .overlay {
        left: -7%;
        bottom: -25%;
    }

    .partners .title {
        margin-bottom: 48px;
    }
    
    .form {
        flex-direction: column;
    }

    .form img {
        width: 100%;
        height: 200px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .cover__header .title,
    .cover__text {
        width: 100% !important;
    }

    .cover__buttons {
        flex-direction: column;
        gap: 20px;
    }

    .cover__buttons .btn {
        margin: 0 !important;
    }

    .btn {
        justify-content: space-between !important;
        padding: 10px 30px;
        font-size: 14px !important;
        line-height: 16px !important;
    }

    .about .text {
        margin-bottom: 40px;
    }

    .catalog__item-img {
        height: 300px;
    }

    .production__block-img .overlay {
        width: 50%;   /* уменьшаем пропорционально */
        height: auto;
        left: -10%;
        bottom: -15%;
        padding: 30px;
    }

    .partners .title {
        margin-bottom: 40px;
    }

    .partners li {
        width: 30%;
        height: auto !important;
    }

    .partners li > img {
        width: 100%;
    }

    .form .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cover .title {
        width: 100% !important;
    }
    
    .about__card {
        width: 100%;
    }
}