/* =====================================================
   HERO / НОВЫЙ СЛАЙД
   ===================================================== */

.hero2-content {
    width: 100%;
    max-width: 760px;
    box-sizing: border-box;
}


/* =====================================================
   ЗАГОЛОВОК
   ===================================================== */

.hero2-title {
    margin: 0;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.12;

    color: #292929;
}


/* =====================================================
   ПОДЗАГОЛОВОК
   ===================================================== */

.hero2-subtitle {
    margin-top: 24px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.45;

    color: #333333;
	
	display: inline-block;
    padding: 4px 55px 4px 0;

    background: linear-gradient(
        90deg,
        rgba(229, 226, 225, .92) 0%,
        rgba(229, 226, 225, .92) 78%,
        rgba(229, 226, 225, .70) 86%,
        rgba(229, 226, 225, .35) 94%,
        rgba(229, 226, 225, 0) 100%
    );
}



/* =====================================================
   ОБЩИЕ СТИЛИ ПРЕИМУЩЕСТВ
   ===================================================== */

.hero2-features {
    display: grid;
    grid-template-columns: repeat(2, 240px);

    width: fit-content;

    box-sizing: border-box;
}

.hero2-feature {
    min-width: 0;

    display: flex;
    align-items: center;
	column-gap: 10px;

    box-sizing: border-box;
}

.hero2-feature + .hero2-feature {
    border-left: 1px solid #dddddd;
}

.hero2-feature__text {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;

    color: #333333;
}


.hero2-feature__icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: 42px 42px;
}


/* КРУЖКИ ТОЛЬКО У ВЕРХНЕГО РЯДА */

.hero2-features--top .hero2-feature__icon {
    border-radius: 50%;
    background-color: rgba(255, 90, 0, 0.10);
	overflow: hidden;
}


/* НИЖНИЙ РЯД — БЕЗ КРУЖКОВ */

.hero2-features--bottom .hero2-feature__icon {
    border-radius: 0;
    background-color: transparent;
}


/* =====================================================
   ВЕРХНИЕ ПРЕИМУЩЕСТВА
   ===================================================== */

.hero2-features--top {
    margin-top: 38px;
}


/* =====================================================
   КНОПКИ
   ===================================================== */

.hero2-actions {
    display: flex;
    align-items: stretch;
    gap: 18px;

    margin-top: 34px;
}

.hero2-button {
    min-height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 28px;

    border-radius: 7px;

    box-sizing: border-box;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    white-space: nowrap;
}

.hero2-button--primary {
    background: #ff5a00;
    border: 1px solid #ff5a00;

    color: #ffffff;
}

.hero2-button--secondary {
    flex: 0 0 220px;

    background: #ffffff70;
    border: 1px solid #ff5a00;

    color: #292929;
}

.hero2-button__arrow {
    margin-left: auto;
    padding-left: 20px;

    font-size: 24px;
    font-weight: 400;
}


/* =====================================================
   НИЖНИЕ ПРЕИМУЩЕСТВА
   ===================================================== */

.hero2-features--bottom {
    margin-top: 32px;
}

.hero2-features--bottom .hero2-feature__text {
    font-weight: 400;
}

.hero2-features--bottom .hero2-feature__title {
    font-weight: 700;
}


@media (min-width: 1200px) and (max-width: 1300px) {

    .hero2-content {
        max-width: 875px;
    }

}


@media (min-width: 992px) and (max-width: 1300px) {
	.main-slider .slider .item {
		height: 675px;
        padding: 0;
    }
	
	.main-slider .slider .item > .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
	
    .hero2-content {

        padding: 45px 40px 40px;

        background: rgba(229, 226, 225, 0.94);
		border-radius: 20px;
    }
	
	.main-slider {
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }
	
	.hero2-subtitle {
		background: none;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-slider {
        height: 600px;
    }

    .main-slider .slider .item {
        height: 600px;
        padding: 0;
    }

    .hero2-content {
        width: 858px;
        max-width: 100vw;
    }
}


@media (max-width: 991px) {
    .main-slider {
        height: 600px;
        background-size: cover;
        background-position: center top;
    }

    .main-slider .slider .item {
        height: 600px;
        padding: 0;
    }

    .main-slider .slider .item > .container {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .main-slider .slider .item > .container > .row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .main-slider .slider .item .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .hero2-content {
        width: calc(100% - 40px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;

        padding: 35px 40px;

        background: rgba(229, 226, 225, 0.94);
        border-radius: 20px;
    }

    .hero2-button--secondary {
        display: none;
    }

    .hero2-button--primary {
        width: 100%;
    }

    .hero2-button__arrow {
        margin: 0;
    }

    .hero2-subtitle {
        background: none;
    }
}


@media (max-width: 708px) {
	.hero2-subtitle br {
        display: none;
    }
}

@media (max-width: 634px) {
	.hero2-content {
		padding: 25px 30px;
	}
	
	.hero2-button {
		font-size: 18px;
	}
	
	.hero2-button__arrow {
		padding-left: 10px;
	}	
}

@media (max-width: 602px) {
	.hero2-content {
		padding: 25px 30px;
	}
	
	.hero2-features {
		 grid-template-columns: repeat(2, 220px);
	}
	
	.hero2-button {
		font-size: 18px;
	}
	
	.hero2-button__arrow {
		padding-left: 10px;
	}	
}


@media (max-width: 578px) {
	.main-slider {
        background-image: none;
        background-color: white;
    }

	.main-slider .slider .item {
        padding: 0;
    }

    .main-slider .container .hero2-button--primary {
        display: flex;
        margin-left: 0;
    }	
	
	.main-slider .container {
		padding: 0;
	}
}

    
@media (max-width: 520px) {
	.main-slider {
		margin-bottom: 0;
    }
	

	.hero2-content {
		margin: 0 auto;
	}
	
	.main-slider .slider .item .text h1 {
		font-size: 25px;
		line-height: 24px;
	}
	
	.hero2-button {
        font-size: 16px;
    }
}

@media (min-width: 360px) and (max-width: 519px) {

    /* ===== СЛАЙДЕР ===== */

    .main-slider {
        height: auto;
        min-height: 0;
        margin-bottom: 30px;
    }

    .main-slider .slider .item {
        height: auto;
        padding: 0;
    }

    .main-slider .slider .item > .container {
        width: 100%;
        max-width: none;
        height: auto;
        padding: 0 15px;
    }

    .main-slider .slider .item > .container > .row {
        width: 100%;
        margin: 0;
    }

    .main-slider .slider .item > .container > .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
        margin: 0;
    }


    /* ===== СЕРАЯ ОБЛАСТЬ ===== */

    .hero2-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 30px 24px;

        background: #e5e2e1;
        border-radius: 0;
    }


    /* ===== ЗАГОЛОВОК ===== */

    .hero2-title {
        font-size: 30px;
        line-height: 1.15;
    }

    .hero2-subtitle {
        font-size: 20px;
        line-height: 1.4;
        background: none;
    }


    /* ===== ВЕРХНИЕ ПРЕИМУЩЕСТВА ===== */

    .hero2-features--top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero2-features--top .hero2-feature {
        width: 100%;
    }


    /* ===== КНОПКИ ===== */

    .hero2-button--secondary {
        display: none;
    }

    .hero2-actions {
        width: 100%;
    }

    .main-slider .container .hero2-button--primary {
        width: 100%;
        min-height: 60px;
        padding: 0 18px;
        margin-left: 0;

        display: flex;

        font-size: 17px;
        white-space: normal;
        text-align: center;
    }

    .hero2-button__arrow {
        flex: 0 0 auto;
        margin-left: 12px;
    }


    /* ===== НИЖНИЕ ПРЕИМУЩЕСТВА ===== */

    .hero2-features--bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero2-features--bottom .hero2-feature {
        width: 100%;
    }
}
