/*
Theme Name: Кастомная тема от "Алегар" 
Author: Суглобов Павел 
*/

.customize-support .header {
    top: 28px;
}

.child-terms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.child-terms-grid .child-term {

}

.child-terms-grid .child-term a {
    display: block;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 500;
}

body.home section.hero.lazy {
    padding-top: 117px;
    padding-bottom: 0;
}

body.home section.hero.lazy .wrapper {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    min-height: 80vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #142a47ab;
}

body.home section.hero.lazy .wrapper .hero-container {
    max-width: 700px;
    margin-left: calc(max(1.5rem, (100% - var(--container-width)) / 2) + 20px);
    margin-right: calc(max(1.5rem, (100% - var(--container-width)) / 2) + 20px);
}

body.home section.hero.lazy .wrapper #metaslider-id-1769 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -1;
	padding-bottom: 0;
}

#metaslider_container_1769 {
	height: 100%;
}

#metaslider_1769 {
	height: 100%;
}

#metaslider_1769 .flex-viewport,
#metaslider_1769 .slides,
#metaslider_1769 li {
	height: 100% !important;
}

body.home section.hero.lazy .metaslider .flexslider .slides img {
	height: 100%;
	object-fit: cover;
}

.auto-item__car-name {
    text-transform: uppercase;
}

@media(max-width: 993px) {
    body.home section.hero.lazy {
        padding-top: 72px;
        padding-bottom: 0;
    }

    body.home section.hero.lazy .wrapper {
        min-height: unset;
    }

    body.home section.hero.lazy .wrapper .hero-container {
        max-width: 700px;
        margin-left: 0;
        margin-right: 0;
    }

    body.home section.hero.lazy .wrapper .hero-container p {
        font-size: 1rem;
        line-height: 1.2;
    }


    body.home section.hero.lazy .metaslider .flexslider .slides li {
        height: 100%;
        width: auto;
    }

    body.home section.hero.lazy .metaslider .flexslider ul.slides {
        height: 100%;
    }

    body.home section.hero.lazy .metaslider .flexslider .slides img {
        height: 100%;
        object-fit: cover;
    }
	
}
