/**
 *  All necessary media requires for media view style.
 *  Do not forget to initial that in _theme-files.php (theme directory/core/components/...).
 *  Do not repeat media require !
 */

/*------------- _ Desktop media styles _ -------------*/

/*Code begins to 991px*/

@media (max-width: 1366px) {
    #banner .container,
    #service .container,
    #advantages .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    #banner .text h2 {
        font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    }

    #banner .text h1 {
        font-size: clamp(2.4rem, 3.2vw, 3.95rem);
        margin-bottom: 70px;
    }

    #banner .thumbnail {
        max-width: 440px;
        width: 36vw;
    }

    #service .section-title {
        font-size: clamp(1.8rem, 2.2vw, 2.375rem);
    }

    #advantages .section-title h2 {
        text-wrap: balance;
        font-size: clamp(1.8rem, 2.2vw, 2.375rem);
    }
}

@media (max-width: 1200px) {
    #banner {
        margin-top: 70px;
    }

    #banner .container {
        gap: 24px;
        margin-bottom: 40px;
    }

    #banner .logo {
        width: 100px;
        top: -50px;
    }

    #service .inner {
        /*grid-template-columns: repeat(2, 1fr);*/
    }

    #service .inner .item:last-child {
        /*grid-column: 1 / -1;*/
        /*justify-self: center;*/
        /*max-width: 392px;*/
    }

    #advantages .inner {
        gap: 16px;
    }

    #advantages .inner .item {
        flex: 1 1 0;
        max-width: none;
        width: auto;
    }

    .button {
        width: clamp(220px, 24vw, 300px);
        height: 52px;
        font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    }
}

@media (max-width: 1080px) and (min-width: 769px) {
    #advantages .inner {
        margin-right: auto;
        margin-left: auto;
        max-width: 800px;
    }
    #advantages .inner .item .icon {
        min-width: 107px;
        width: 109px;
    }
    #banner .container {
        align-items: center;
    }

    #banner .text h1 {
        margin-bottom: 48px;
    }

    #service {
        margin-bottom: 42px;
    }

    #service .inner .item .text h3 {
        font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    }

    #service .inner .item .text p {
        font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    }

    #advantages .section-title p {
        font-size: clamp(1.05rem, 1.6vw, 1.56rem);
    }

    #advantages .inner .item h3 {
        font-size: clamp(1.3rem, 2vw, 1.45rem);
    }

    #advantages .inner .item p {
        font-size: clamp(1.1rem, 1.5vw, 1.15rem);
    }
}

/*----------- _ End desktop media styles _ -----------*/
/*----------------------------------------------------*/
/*------------- _ Mobile media styles _ --------------*/

/*Code begins form 991px to 0px*/

@media (max-width: 991px) {
    #banner {
        margin-top: 40px;
    }

    #banner .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    #banner .logo {
        position: static;
        margin-bottom: 8px;
    }

    #banner .thumbnail {
        order: 2;
        width: clamp(260px, 70vw, 420px);
    }

    #banner .text {
        order: 3;
    }

    #banner .text h2 {
        line-height: 1.1;
        margin-bottom: 10px;
    }

    #banner .text h1 {
        line-height: 1.05;
        margin-bottom: 24px;
    }

    .button {
        width: clamp(200px, 70vw, 280px);
        height: 47px;
        border-radius: 28px;
        font-size: clamp(1rem, 4vw, 1.35rem);
        margin: 0 auto;
    }

    .button-duplicate {
        display: flex;
        margin: 24px auto 0;
    }

    #service {
        margin-top: 30px;
        margin-bottom: 34px;
    }

    #service .section-title {
        font-size: clamp(1.5rem, 4.5vw, 1.9rem);
        line-height: 1.15;
    }

    #service .inner {
        /*grid-template-columns: repeat(2, 1fr);*/
        gap: 22px;
        margin-top: 20px;
    }

    #service .inner .item {
        padding-top: 60px;
    }

    #service .inner .item .text {
        padding: 73px 18px 22px;
    }

    #advantages {
        padding: 36px 0 18px;
    }

    #advantages .section-title h2 {
        font-size: clamp(1.6rem, 5vw, 2.1rem);
        line-height: 1.1;
    }

    #advantages .section-title p {
        font-size: clamp(1rem, 4vw, 1.25rem);
        line-height: 1.25;
    }

    #advantages .inner {
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        margin-top: 20px;
    }

    #advantages .inner .item {
        padding: 12px;
        gap: 10px;
    }

    #advantages .inner .item .icon {
        min-width: 90px;
        width: 90px;
    }

    #advantages .info {
        margin-top: 22px;
        font-size: 1rem;
    }

    footer {
        height: auto;
        padding: 12px 0;
    }

    footer .buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }
}

@media (max-width: 768px) {
    #service .inner {
        grid-template-columns: 1fr;
    }

    #service .inner .item:last-child {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
    }
}

@media (max-width: 768px) {
    #banner .text h2 {
        font-size: 30px;
        line-height: 31px;
    }

    #banner .text h1 {
        font-size: 42px;
        line-height: 38px;
    }

    #service .section-title {
        font-size: 30px;
        line-height: 31px;
    }

    #service .inner .item .text h3,
    #advantages .inner .item h3 {
        font-size: 31px;
        line-height: 25.5px;
    }

    #service .inner .item .text p,
    #advantages .inner .item p {
        font-size: 24px;
        line-height: 25.5px;
    }

    #advantages .section-title h2 {
        font-size: 30px;
        line-height: 31px
    }

    #advantages .section-title p {
        font-size: 21px;
        line-height: 1.3;
        text-wrap: balance;
    }

    #advantages .inner {
        flex-direction: column;
        align-items: center;
    }

    #advantages .inner .item {
        width: 100%;
        position: relative;
        margin-top: 64px;
        justify-content: center;
        align-items: center;
        max-width: 517px;
        padding-top: 75px;
        padding-bottom: 20px;
    }

    #advantages .inner .item .icon {
        min-width: 140px;
        width: 140px;
        bottom: calc(100% - 58px);
        position: absolute;
        right: 50%;
        transform: translateX(50%);
    }

    #advantages .inner .item h3,
    #advantages .inner .item p {
        text-align: center;
        text-wrap: balance;
    }

    #advantages .info {
        font-size: 18px;
        line-height: 24px;
    }

    #service .container {
        max-width: calc(505px + 60px);
    }
}


@media (max-width: 520px) {
	#service .container {
		padding: 0 17px;
	}
	#service .inner .item {
		padding-top: 45px;
	}
	#service .inner .item .text {
		padding: 50px 8px 22px;
	}
	#service .inner .item .icon {
		width: 83px;
		height: 83px;
	}
	#advantages .inner .item {
		padding-top: 35px;
		margin-top: 46px;
	}
	#advantages .inner .item .icon {
		min-width: 90px;
		width: 90px;
		bottom: calc(100% - 31px);
	}
		
	#advantages .inner .item p {
        text-wrap: pretty;
        max-width: 260px;
	}
	#advantages .info {
		font-size: 14px;
	}
}



@media (max-width: 420px) {
    #banner .container,
    #service .container,
    #advantages .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #banner .thumbnail {
        /*width: 100%;*/
    }

    #advantages .inner .item {
        flex-direction: column;
        text-align: center;
    }

    #advantages .inner .item .icon {
        /*width: 72px;*/
        /*min-width: 72px;*/
        margin: 0 auto;
    }

    footer .buttons a {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    #banner .text h2 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
        line-height: 1;
    }

    #banner .text h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        line-height: .8;
    }

    #advantages .inner .item h3,
    #service .inner .item .text h3 {
		font-size: 7vw;
/*         font-size: clamp(1.05rem, 6.4vw, 1.5rem); */
        margin-bottom: 4vw;
        line-height: .8;
    }

    #advantages .inner .item p,
    #service .inner .item .text p {
		font-size: 5.6vw;
		line-height: 1;
/*         font-size: clamp(0.9rem, 5.2vw, 1.2rem); */
/*         line-height: 1.2; */
    }
	
	#advantages .inner .item p {
        text-wrap: pretty;
        max-width: 56vw;
	}
}

/*----------- _ End mobile media styles _ ------------*/
/*----------------------------------------------------*/
