:root {
    --accent-orange: #C59A4B;
    --text-black: #151515;
    --text-gray: #777777;
    --background-gray: #F5F5F5;
    --alt-gray: #B7B7B7;
    --border-gray: #CACACA;
    --text-white: #ffffff;
    --footer-gray: #BFBFBF;
    --dark-orange: #896d3a;
}

.black-filter {
	width: 100%;
	height: 100%;
	position: absolute;
	background: #00000066;
}

.sect-hero {
	margin-top: 0 !important;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    position: relative;
}

.sect-hero .container {
	height: fit-content;
	position: relative;
}

.hero-title {
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #f7f7f7;
    max-width: 50%;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-weight: 400;
    font-size: 1.4375rem;
    line-height: 1.47;
    color: #E8ECF0;
    max-width: 50%;
    margin-bottom: 42px;
}

.hero-button {
	display: block;
	width: fit-content;
    padding: 17px 80px;
    color: var(--text-white);
    background: var(--accent-orange);
    border: none;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
    transition: all .2s ease-in;
}

.hero-button:hover {
    background: var(--dark-orange);
}

.hero-button:active {
    background: var(--text-gray);
}

.sect-reasons .container {
    text-align: center;
}

.reasons-title {
    max-width: 40%;
    margin: 0 auto 25px auto;
}

.reasons-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.reasons-descr {
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.35;
    color: var(--text-gray);
    max-width: 60%;
    margin: 0 auto 45px auto;
}

.reasons-cards {
    padding: 46px 0;
    background: var(--background-gray);
    display: flex;
    justify-content: space-between;
}

.reasons-cards-card {
    padding: 0 2.5%;
    width: 30%;
    text-align: left;
}

.reasons-cards-card:nth-child(even) {
    border-left: 1px solid #DCDCDC;
    border-right: 1px solid #DCDCDC;
}

.reasons-cards-card-icon {
    margin-bottom: 32px;
}

.reasons-cards-card-title {
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.1;
    color: var(--text-black);
    margin-bottom: 22px;
}

.reasons-cards-card-text {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--text-gray);
}

.catalog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    gap: 10px;
}

.catalog-cards-card {
    padding: 56px 9% 0 9%;
    border: 1px solid #e4e4e4;
    overflow: hidden;
    position: relative;
    height: 450px;
}

.catalog-cards-card:hover .catalog-cards-card-onhover {
    transform: translateY(0);
    visibility: visible;
}

.catalog-cards-card:hover .catalog-cards-card-title {
    text-decoration-color: var(--accent-orange);
    color: var(--accent-orange);
}

.catalog-cards-card-onhover {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 28px;
    margin-left: 40px;
    transform: translateY(200%);
    transition: all .2s ease-in;
    visibility: hidden;
}

.catalog-cards-card-link {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.catalog-cards-card-title {
    font-weight: 600;
    font-size: 1.5625rem;
    line-height: 1.2;
    color: var(--text-black);
    padding-bottom:13px;
    position: relative;
    text-decoration: underline 2px solid transparent;
    transition: all .2s ease-in;
}

.catalog-cards-card-title::after {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--text-black);
    position: absolute;
    bottom: 0;
    left: 0;
}

.sect-consultation {
    padding: 4em 0;
    background: url('../images/cons.jpg') no-repeat center;
    background-size: cover;
}

.consult-wrapper {
    max-width: 50%;
}

.consult-title {
    color: var(--text-white);
}

.consult-descr {
    font-weight: 400;
    font-size: 1.1875rem;
    line-height: 1.4;
    color: var(--alt-gray);
    margin-bottom: 32px;
}

.modal-form {
    display: flex;
    flex-wrap: wrap;
}

.modal-form-input {
    padding: 12px 0 12px 25px;
    border: 1px solid #cacaca;
    background: #E9E9E933;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
    color: #ababab;
    width: 49%;
    margin-bottom: 10px;
    transition: all .2s ease-in;
}

.modal-form-input:hover, .modal-form-textarea:hover {
    background: #E9E9E966;
}

.modal-form-input:focus, .modal-form-textarea:focus {
    background: #E9E9E966;
    outline: none;
}

#name {
    margin-right: auto;
}

.modal-form-input::placeholder {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
    color: #ababab;
}

.modal-form-select {
    width: 100%;
}

.modal-form-textarea {
    width: 100%;
    padding: 12px 0 12px 25px;
    border: 1px solid #cacaca;
    background: #e9e9e933;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
    color: #ababab;
    margin-bottom: 32px;
    transition: all .2s ease-in;
}

.modal-form-button {
    padding: 18px 56px;
    background: var(--accent-orange);
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    border: none;
    width: fit-content;
    margin-right: 30px;
    transition: all .2s ease-in;
}

.modal-form-button:hover {
    background: var(--dark-orange);
}

.modal-form-button:active {
    background: var(--text-gray);
}

.modal-form-textarea::placeholder {
    font-weight: 400;
    font-style: 1rem;
    line-height: 1.3;
    color: #ababab;
}

.phone-number {
    width: 45%;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.3;
    color: #ababab;
}

.phone-number a {
    margin-top: 10px;
    display: block;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-white);
    transition: all .2s ease-in;
}

.phone-number a:hover {
    color: var(--accent-orange);
}

.phone-number a:active {
    color: var(--dark-orange);
}

.swiper-news {
    width: 100%;
    padding-bottom: 70px;
}

.swiper-pagination-news {
    top: none;
    bottom: 0;
}

.swiper-pagination-news .swiper-pagination-bullet {
    border-radius: 0;
}

.swiper-pagination-news .swiper-pagination-bullet-active {
    background: var(--accent-orange);
}

.swiper-news .swiper-slide {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 0 10px 0;
    max-height: 100%;
}

.swiper-news .swiper-wrapper {
    max-height: 100%;
    display: flex;
}

.news-image {
    margin-right: 3%;
    width: 33%;
    display: inline-block;
}

.news-slide-title {
    font-weight: 500;
    font-size: 1.1875rem;
    line-height: 1.3;
    color: var(--text-black);
    margin-bottom: 22px;
    width: 85%;
}

.news-slide-descr {
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #666;
    width: 85%;
}

.news-slide-ellipsis {
    font-size: 2rem;
    font-weight: 500;
    color: #474747;
    display: inline-block;
    margin-bottom: 20px;
}

.news-slide-date {
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #8d8d8d;
}

.sect-certificates {
    padding: 50px 0;
    background: #f1f1f1;
}

.sect-certificates .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.certificates-content {
    width: 25%;
}

.swiper-certificates {
    width: 65%;
    height: auto;
    position: static;
}

.swiper-certificates .swiper-slide {
    display: flex;
    height: auto;
    border: 10px solid #000;
}

.swiper-certificates .swiper-slide img {
    display: inline-block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.swiper-navigation {
    display: flex;
    height: fit-content;
    position: absolute;
    left: 0;
    bottom: 0;
}

.swiper-certifications-button-prev,
.swiper-certifications-button-next {
    position: static;
}

.swiper-certifications-button-next::after,
.swiper-certifications-button-prev::after {
    font-size: 1.125rem;
    padding: 8px 10px;
    background-color: var(--accent-orange);
    color: var(--text-white);
}

.swiper-certifications-button-prev {
    margin-right: 10px;
}

.sect-about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-image {
    width: 40%;
    object-fit: contain;
}

.about-content {
    width: 55%;
}

.about-text {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-gray);
}

.swiper-partners {
    width: 100%;
    height: auto;
    padding-bottom: 70px;
}

.swiper-partners .swiper-slide {
    padding: 15px 0;
    border: 1px solid #dcdcdc;
    display: flex;
    height: auto;
}

.partners-logo {
    display: inline-block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 10vh;
}

.swiper-partners-pagination {
    top: none;
    bottom: 0;
}

.swiper-partners-pagination .swiper-pagination-bullet {
    border-radius: 0;
}

.swiper-partners-pagination .swiper-pagination-bullet-active {
    background: var(--accent-orange);
}

@media (max-width: 1215px) {
    .certificates-content {
        width: 35%;
    }

    .swiper-certificates {
        width: 55%;
    }

    .swiper-navigation {
        margin-left: 50px;
    }
}

@media (max-width: 1024px) {
    .hero-title, .hero-subtitle {
        max-width: 80%;
    }

    .reasons-title {
        max-width: 100%;
    }

    .reasons-cards {
        flex-wrap: wrap;
    }

    .reasons-cards-card {
        width: 100%;
        padding: 20px 0;
        margin: 0 20px;
    }

    .reasons-cards-card:nth-child(even) {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-gray);
        border-bottom: 1px solid var(--border-gray);
    }

    .consult-wrapper {
        max-width: 80%;
    }

    .certificates-content {
        width: 40%;
    }

    .swiper-certificates {
        width: 50%;
    }

    .sect-about .container {
        flex-direction: column-reverse;
    }

    .about-image, .about-content {
        width: 100%
    }

    .about-image {
        max-height: 75vh;
    }

    .about-content {
        margin-bottom: 25px;
    }

    .catalog-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .catalog-cards-card {
        padding: 30px 6% 0 6%;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-title, .hero-subtitle {
        max-width: 100%;
    }

    .reasons-descr {
        max-width: 100%;
    }

    .consult-wrapper {
        max-width: 100%;
    }
    
    .sect-certificates .container {
    	flex-direction: column;
    }
    
    .certificates-content {
    	width: 100%;
    	margin-bottom: 25px;
    }
    
    .swiper-certificates {
    	width: 100%;
    	padding-bottom: 4em;
    }
    
    .swiper-navigation {
    	margin: 0 auto;
    	left: 50%;
    	transform: translateX(-50%);
    }
}

@media (max-width: 650px) {
    .sect-hero {
        height: 75vh;
    }

    .catalog-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 460px) {
	.modal-form-button {
		margin-bottom: 10px;
	}
}