/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

:root {
    --color-basic-bg: #181818;
    --color-accent-blue: #305CDE;
    --color-text-gray: #C0C0C0;
    --container-width: 87.5%;
}

html {
    scroll-padding-top: 13vh;
    /* равна высоте шапки */
    margin-top: 0 !important;
    background: var(--color-basic-bg);
    scroll-behavior: smooth;

}

.cky-consent-container {
    width: 40vw;
}

div#wpadminbar {
    position: static;
}

#booking {
    scroll-padding-top: 20vh !important;
    /* равна высоте шапки */
}

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--container-width);
    /* резиновая ширина */
    margin-inline: auto;
}

/* Hero секция */
.hero {
    min-height: calc(100dvh - 13vh);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("../img/hero_img.jpg") bottom center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-inline: 2vw;
}

/* Контейнер */
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    height: calc(100vh - 12vh);
    padding: 50px 0px;
}

/* Контакты */
.hero__contacts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2vw;
    margin-bottom: 10vh;
}

.hero__contact {
    display: flex;
    align-items: center;
    gap: clamp(1vw, 2%, 2.5vw);
}

.hero__contact-icon {
    width: clamp(1rem, 2.5vh, 4rem);
    height: auto;
}

.hero__contact a {
    font-size: clamp(1rem, 2.5vh, 1.75rem);
    font-weight: 200;
    color: #fff;
    text-decoration: none;
    transition: color .4s ease;
}

.hero__contact a:hover {
    color: var(--color-accent-blue);
}

/* Логотип */
.hero__logo {
    margin-inline: auto;
    margin-bottom: 5vh;
}



.hero__logo img {
    max-width: 35vw;
    width: 100%;
    height: auto;
}

/* Заголовки */
.hero__title {
    color: #fff;
    font-size: clamp(32px, 5vh, 60px);
    margin-bottom: clamp(18px, 2vh, 38px);
    text-transform: uppercase;
    font-weight: 100;
}

.hero__title strong {
    font-weight: 600;
}

.hero__subtitle {
    color: var(--color-text-gray);
    font-size: clamp(1rem, 2.5vh, 1.75rem);
    font-weight: 300;
    margin-bottom: clamp(40px, 4vh, 84px);
}

.hero__button {
    padding: 12px 45px;
    height: clamp(3rem, 6vh, 4rem);
    font-size: clamp(1.25rem, 2.5vh, 1.75rem);
    text-transform: uppercase;
    margin-inline: auto;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: transparent;
    border: 2px solid var(--color-accent-blue);
    border-radius: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero__button span {
    color: #fff;
}

.hero__button svg,
.hero__button img {
    /* если иконка картинка или svg */
    transition: transform 0.3s ease;
}

.hero__button:hover svg,
.hero__button:hover img {
    transform: translateX(6px);
}

.hero__button:hover {
    background: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
}

.hero__button svg {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--color-accent-blue);
    /* базовый цвет иконки */
}

.hero__button:hover svg {
    transform: translateX(6px);
    color: #fff;
    /* на ховере станет белой */
}

section#hero {
    width: 100%;
}

#about,
#services,
#testimonials,
#booking,
#gallery {
    background: var(--color-basic-bg);
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 160px;
}

.about__text {
    flex-basis: 40%;
    position: relative;
}

.about__features {
    flex-basis: 60%;
}

.about__text-box {
    max-width: 68%;
    height: 500px;
    border: 8px solid var(--color-accent-blue);
    border-radius: 10px;
    margin: auto;
}

p.about__paragraph {
    font-weight: 100;
    text-align: right;
    color: #fff;
    font-size: 20px;
    background: var(--color-basic-bg);
    padding-left: 50px;
    margin-left: -105px;
    margin-top: 10%;
    padding-right: 50px;
    padding-top: 53px;
    padding-bottom: 53px;
}

p.about__item-text {
    font-size: 28px;
    color: var(--color-text-gray);
    font-weight: 300;
}

ul.about__list {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

li.about__item {
    list-style: none;
    display: flex;
    gap: 50px;
}

img.about__decor-image {
    position: absolute;
    bottom: 0;
    left: -50px;
    right: 0;
    margin: auto;
}

.about__text-box::after {
    content: "";
    width: 100%;
    height: 107px;
    background: url(../img/engine-ellipse.svg);
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -20px;
    left: 0;
}

/* Анимация подпрыгивания */
@keyframes jumpEngine {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-20px);
    }

    /* поднимаем изображение */
    50% {
        transform: translateY(0);
    }

    /* опускаем обратно */
    70% {
        transform: translateY(-10px);
    }

    /* лёгкий отскок */
    100% {
        transform: translateY(0);
    }
}

/* Анимация ширины тени */
@keyframes shadowWidth {
    0% {
        transform: scaleX(1);
    }

    30% {
        transform: scaleX(0.8);
    }

    /* сжимаем по ширине при подъёме */
    50% {
        transform: scaleX(1);
    }

    /* возвращаемся */
    70% {
        transform: scaleX(0.85);
    }

    /* лёгкий отскок */
    100% {
        transform: scaleX(1);
    }
}

/* Применяем к картинке */
/* Картинка двигателя */
img.about__decor-image {
    position: absolute;
    bottom: 0;
    left: -50px;
    right: 0;
    margin: auto;
    animation: jumpEngine 10s ease-in-out infinite;
}

/* Тень */
.about__text-box::after {
    content: "";
    width: 100%;
    height: 107px;
    background: url(../img/engine-ellipse.svg);
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -20px;
    left: 0;
    transform-origin: center center;
    animation: shadowWidth 10s ease-in-out infinite;
}

section#about {
    height: fit-content;
    padding: 150px 0;
}

/* Сервисы */
#services {
    align-items: baseline;
    height: fit-content;
    /* padding-top: 100px; */
}

h2.section-title {
    font-size: 60px;
    color: #fff;
    text-transform: uppercase;
}

.centered {
    text-align: center;
}

.service-card {
    position: relative;
}

.service-card span {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: var(--color-accent-blue);
    color: #fff;
    padding: 14px 34px;
    border-radius: 10px;
}

article.service-card {
    flex-basis: calc(50% - 30px);
}

.services-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px 0;
}

.service-card img {
    border-radius: 10px;
    width: 100%;
    height: fit-content;
}

.service-card__item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-accent-blue);
    width: fit-content;
    padding: 14px 34px;
    border-radius: 10px;
    position: absolute;
    bottom: 3px;
    right: 0;
}

.service-card h3,
.service-card p {
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    font-weight: normal;
}

.services-contact__wrapper,
a.services__phone-item {
    display: flex;
    flex-wrap: wrap;
    color: #fff;
    font-size: 55px;
    text-decoration: none;
    font-weight: normal;
    gap: 20px;
    line-height: 1;
}

.services__phone-wrapper {
    display: flex;
}

.services__social-wrapper {
    display: flex;
}

img.services__phone-icon,
img.services__social-icon {
    max-width: 55px;
}

.arrow {
    flex-basis: 62px;
}

.services__phone-wrapper,
.services__social-wrapper {
    flex-basis: calc(100% - 65px);
    gap: 30px;
    align-items: center;
}

a.services__link {
    height: fit-content;
}

.services-contact__wrapper {
    padding-left: 100px;
    position: relative;
}

.services-contact__wrapper::before {
    content: "";
    width: 100px;
    height: 100%;
    background: url(../img/arrow2.svg);
    background-size: contain;
    position: absolute;
    left: 0px;
    background-repeat: no-repeat;
}

#booking {
    height: fit-content;
    padding-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Отзывы */
#testimonials {
    height: fit-content;
    padding-top: 80px;
    padding-bottom: 40px;
}

#testimonials h2 {
    margin-bottom: 40px;
}

.gallery-item img {
    border-radius: 10px !important;
    cursor: zoom-in;
}

article.swiper-slide.gallery-item img {
    /* max-width: 33vw; */
    object-fit: cover;
    width: 100%;
    /* height: 270px; */
    aspect-ratio: 16 / 9;
    object-position: center;
    opacity: 0.3;
    transition: opacity 1s ease, transform 1s ease;
}

article.swiper-slide.gallery-item.swiper-slide-next img {
    transition: opacity 1s ease, transform 1s ease;
    opacity: 1;
}

article.swiper-slide.gallery-item img:hover {
    opacity: 1;
    transform: scale(1.03);
}

section#testimonials,
section#gallery {
    background: #000;
}

/* Галерея */
.container-full {
    max-width: 100vw;
    width: calc(100vw - 56px);
    margin-left: auto;
    margin-right: auto;
}

#gallery {
    align-items: flex-start;
    height: fit-content;
    padding-bottom: 60px;
}

.gallery-swiper {
    padding: 50px 0 !important;
}

span.swiper-pagination-bullet {
    background: #626262;
    width: 10px;
    height: 10px;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--color-accent-blue);
}



#gallery .swiper-button-prev::after,
#gallery .swiper-button-next::after {
    content: "";
    background: url(../img/slider_arrow_right.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 18px;
    height: 35px;
    position: absolute;
}

#gallery .swiper-button-prev::after {
    transform: rotate(180deg);
}

#gallery .swiper-button-prev {
    left: calc(33vw - 45px);
    top: 0;
    bottom: 0px;
    margin: auto;
}

#gallery .swiper-button-next {
    right: calc(33vw - 45px);
    top: 0;
    bottom: 0px;
    margin: auto;
}

/* #contacts {
    background: url(../img/zapcasti-dla-avtomobilei-v-garaze-remont.jpg);
    background-size: cover;
    padding-top: 150px;
    padding-bottom: 60px;
}  */

.contacts__wrapper {
    display: flex;
    gap: 44px;
}

.contacts__info {
    flex-basis: 30%;
}

.contacts__map {
    flex-basis: calc(100% - 475px - 44px);
}

h2.title {
    font-size: 60px;
    color: #fff;
    text-transform: uppercase;
}

div#border-l-t-r {
    padding-top: 75px;
    padding-right: 55PX;
    display: flex;
    justify-content: flex-end;
}

div#border-r {
    display: flex;
    flex-direction: column;
    /* border-right: 10px solid var(--color-accent-blue); */
    padding: 0px 55px 0 0px;
    gap: 34px;
    margin-top: 60px;
}

div#border-l-r-b {
    height: 50px;
    /* border-left: 10px solid var(--color-accent-blue);
    border-bottom: 10px solid var(--color-accent-blue);
    border-right: 10px solid var(--color-accent-blue);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px; */
}

a.contact-item span {
    font-size: 28px;
    color: #fff;
    text-align: right;
    width: fit-content;
    text-transform: uppercase;
    font-weight: 600;
}

a.contact-item {
    text-decoration: none;
    text-align: right;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: right;
}

.contacts__info-wrapper {
    background: url(../img/contacts-stroke.svg);
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    width: 475px;
    height: 630px;
}

a.contact-item span {
    transition: color .4s ease;
}

a.contact-item:hover span {
    color: var(--color-accent-blue);
}

@media (max-width: 1540px) {

    .service-card h3,
    .service-card p {
        font-size: 16px;
    }

    .service-card h3,
    .service-card p {
        font-size: 18px;
    }

    .services-contact__wrapper,
    a.services__phone-item {
        font-size: 36px;
    }

    img.services__phone-icon,
    img.services__social-icon {
        max-width: 36px;
    }

    a.services__link {
        height: fit-content;
    }

    h2.section-title {
        font-size: 50px;
    }

    p.about__item-text {
        font-size: 24px;
    }

    img.about__decor-image {
        position: absolute;
        bottom: -45px;
    }

    .about__text-box::after {
        bottom: -85px;
    }

    h2.title {
        font-size: 50px;
    }

    a.contact-item span {
        font-size: 24px;
    }

    img.contact-icon {
        width: 24px;
    }

    img.about__decor-image {
        max-width: 85%;
    }

    ul.about__list {
        gap: 40px;
    }

    img.about__decor-image {
        bottom: -85px;
    }

    .about__text-box::after {
        bottom: -130px;
    }

    .about__text-box {
        max-width: 68%;
        height: fit-content;
        border: 8px solid var(--color-accent-blue);
        border-radius: 10px;
        margin: auto;
        aspect-ratio: 10 / 14;
    }

    .about__wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 5vw;
    }
}

@media (max-width: 1370px) {
    p.about__item-text {
        font-size: 20px;
    }
}

@media (max-width: 1250px) {
	.service-card__item-info {
		width: 100%;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		justify-content: space-between;
		padding: 14px 16px;
	}
	    .service-card h3, .service-card p {
        font-size: 14px;
    }
		
	section#booking {
    	padding-top: 50px;
	}
	
	.services__phone-wrapper h3, .services__phone-wrapper a, .services__social-wrapper h3 {
		font-size: 30px;
		display: flex;
		align-items: center;
	}
	
	img.services__phone-icon, img.services__social-icon {
        max-width: 25px;
    }
	.services__phone-wrapper, .services__social-wrapper {
    flex-basis: calc(100% - 65px);
    gap: 10px;
    align-items: center;
}
	.services__social-wrapper h3 {
    margin-right: 20px;
}
	a.services__phone-item {
    gap: 10px;
    margin-left: 20px;
}
}

@media (max-width: 1024px) {
	.services-swiper.swiper.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
    	padding: 50px 0px;
	}
	    .services__phone-wrapper h3, .services__phone-wrapper a, .services__social-wrapper h3 {
        font-size: 22px;
        display: flex;
        align-items: center;
    }
	#gallery .swiper-button-next,
	#gallery .swiper-button-prev {
		display: none;
	}
	
	.contacts__wrapper {
    	flex-direction: column;
	}
	
	.contacts__info-wrapper {
   		float: right;
		background: none;
		        aspect-ratio: auto;
	}
	div#border-l-t-r {
    border-top: 4px solid var(--color-accent-blue);
    border-left: 4px solid var(--color-accent-blue);
    border-right: 4px solid var(--color-accent-blue);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
	div#border-r {
    border-right: 4px solid var(--color-accent-blue);
    margin: 0;
    padding-top: 40px;
}
	div#border-l-r-b {
    border-right: 4px solid var(--color-accent-blue);
    border-bottom: 4px solid var(--color-accent-blue);
    border-left: 4px solid var(--color-accent-blue);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
}

/* Адаптив */
@media (max-width: 768px) {
    :root {
        --container-width: 90vw;
    }
	
	section#hero {
		    min-height: calc(800px - 90px);
	}
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100vh - 12vh);
    padding: 50px 0px;
}
	.about__text {
    min-height: 440px;
}
    .hero__contact a {
        font-size: 18px;
    }

    .hero__contact {
        align-items: center;
        justify-content: center;
        width: 90vw;
        text-align: left;
        gap: 20px;
    }

    .hero__contacts {
        flex-direction: column;
        align-items: center;
        gap: 2vh;
    }

    h1.hero__title {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .about__wrapper {
        flex-direction: column;
    }

    .about__text-box {
        max-width: 90vw;
        height: fit-content;
        border: 8px solid var(--color-accent-blue);
        border-radius: 10px;
        margin: auto;
        aspect-ratio: 80 / 100;
    }

    p.about__paragraph {
        font-weight: 100;
        text-align: right;
        color: #fff;
        font-size: 22px;
        background: var(--color-basic-bg);
        padding-left: 50px;
        margin-left: -66px;
        margin-top: 10%;
        padding-right: 25px;
        padding-top: 53px;
        padding-bottom: 53px;
        overflow: hidden;
    }

    img.about__decor-image {
        max-width: 90vw;
        margin: auto;
        left: 0;
        bottom: -80px;
    }

    .about__text-box::after {
        bottom: -140px;
    }

    p.about__item-text {
        font-size: 18px;
    }

    li.about__item {
        gap: 16px;
    }

    li.about__item {
        gap: 16px;
        align-items: flex-start;
    }

    img.services__phone-icon,
    img.services__social-icon {
        max-width: 30px;
    }

    .about__wrapper {
        gap: 160px;
    }

    .contacts__info-wrapper {
        aspect-ratio: 73 / 105;
        max-width: 80vw;
    }

    #gallery .swiper-button-next,
    #gallery .swiper-button-prev {
        display: none;
    }

    h2.section-title,
    h2.title {
        font-size: 32px;
    }

    section#hero,
    section#about {
        height: fit-content;
    }

    .services-contact__wrapper {
        margin: 0;
        padding: 0;
    }

    .services-contact__wrapper,
    a.services__phone-item {
        font-size: 20px;
    }

    a.services__phone-item {
        flex-wrap: nowrap;
        align-items: center;
		margin: 0;
    }

    .services__phone-wrapper,
    .services__social-wrapper {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        flex-basis: 100%;
    }

    .hero__logo img {
        max-width: 70vw;
    }

    .service-card h3,
    .service-card p {
        font-size: 16px;
    }

    article.service-card {
        flex-basis: 100%;
    }

    .service-card__item-info {
        padding: 8px 16px;
    }

    .services__social-wrapper {
        flex-direction: row;
        align-items: center;
    }

    a.services__link {
        height: fit-content;
    }

    #booking {
        height: fit-content;
        padding-top: 25px;
        /* padding-bottom: 170px; */
    }

    .services__social-wrapper {
        flex-direction: column;
        align-items: baseline;
    }

    .services-contact__wrapper {
        gap: 50px;
    }

    /* .services-contact__wrapper::before {
        display: none;
    } */

    a.services__link:nth-child(2)::after {
        content: "Telegram";
    }

    a.services__link:nth-child(3)::after {
        content: "Whatsapp";
    }

    a.services__link::after {
        font-size: 20px;
        color: #fff;
        position: absolute;
        font-weight: 600;
        margin-left: 20px;
        margin-top: 4px;
    }

    .services-contact__wrapper {
        gap: 50px;
        /* max-width: calc(90vw - 100px); */
        max-width: 90vw;
    }

    .services-contact__wrapper::before {
        left: unset;
        right: 0;
        max-width: 85px;
    }

    a.contact-item span {
        font-size: 18px;
    }

    div#border-l-t-r {
        padding-top: 65px;
        padding-right: 35px;
    }

    div#border-r {
        padding-right: 35px;
    }

    .contacts__wrapper {
        display: flex;
        gap: 0px;
        flex-direction: column;
    }

    .contacts__info-wrapper {
        aspect-ratio: auto;
        max-width: 90vw;
        height: fit-content;
        margin-bottom: 50px;
    }

    img.contact-icon {
        max-width: 20px;
    }

    section#hero {
        /* height: calc(100vh - 89px); */
        height: fit-content;
    }

    section#about {
        padding: 60px 0;
    }

    #services {
        padding-top: 20px;
    }

    iframe {
        aspect-ratio: 16 / 9 !important;
        max-height: 80vw;
    }

    .service-card__item-info {
        position: relative;
        width: 100%;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        min-height: 55px;
        justify-content: space-between;
        margin-top: -5px;
    }

    .service-card img {
        aspect-ratio: 16 / 8;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .services-swiper.swiper.swiper-initialized.swiper-horizontal.swiper-ios.swiper-backface-hidden {
        padding: 30px 0px 60px 0px;
    }

    .services-contact__wrapper::before {
        width: 55px;
    }

    .services-swiper.swiper.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
        min-height: 38vh;
    }

    #services h2 {
        margin-bottom: 35px;
    }

    #testimonials {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    div#border-r {
        gap: 16px;
    }

    .service-card p {
        width: 40%;
        display: flex;
        justify-content: flex-end;
    }

    article.swiper-slide.gallery-item.swiper-slide-next img {
        opacity: 0.3;
    }

    article.swiper-slide.gallery-item.swiper-slide-active img {
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .services-contact__wrapper::before {
        width: 32px;
    }
	section#contacts {
    padding-top: 40px !important;
	}
}

@media (max-width: 400px) {
	    .hero__contact {
        align-items: center;
        justify-content: flex-start;
        width: 90vw;
        text-align: left;
        gap: 20px;
    }
	
	    div#border-r {
        padding-right: 20px;
    }
	    div#border-l-t-r {
        padding-right: 20px;
    }
	
	    a.contact-item span {
        font-size: 16px;
    }
}

