html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

:root{
    --error: #fb6565;
    --button_radius: 1rem;
    --window_radius: 20px;

    --border: 1px solid rgba(255, 255, 255, 0.53);
}

@font-face{
    font-family: 'PTSans';
    src: local('PTSans'),
    url('/fonts/pt_sans-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face{
    font-family: 'PTSans';
    src: local('PTSans'),
    url('/fonts/pt_sans-bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
html,
body {
    margin: 0px;
    height: 100%;
}
/* a blue color as a generic focus style */
button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}
a {
    text-decoration: underline;
    color: black !important;
}

/* Additional global styles */
body {
    font-family: "PTSans", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e1e1e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/****************************/

/* Header styles */
.container {
    margin: 0 auto;
    width: 1110px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header_left, .header_right{
    width: 300px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.header_right{
    justify-content: flex-end;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.phone-link,
.address {
    display: flex;
    align-items: center;
    font-family: "PTSans", sans-serif;
    font-size: 14px;
    color: #1e1e1e;
}

.phone-icon,
.marker-icon {
    margin-right: 8px;
}

.logo {
    height: 28px;
}

/* Hero section styles */
.title {
    margin-top: 62px;
    background-image: url('/media/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    aspect-ratio: 1920 / 875;
}

.title-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 180px 0 80px 0;
    height: 100%;
}

.title h1 {
    font-family: "PTSans", sans-serif;
    font-size: 23px;
}

.title .subtitle {
    font-family: "PTSans", sans-serif;
    font-size: 20px;
    margin-bottom: 60%;
}

.cta-button {
    background-color: #ffffff;
    color: #000000;
    font-family: "PTSans", sans-serif;
    font-size: 14px;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.block_wrapper{
    padding: 24px;
    background-color: #EEEEEE;
    border-radius: 20px;
}

/* cars section styles */
.cars {
    padding: 40px 0;
    text-align: center;
}

.cars h2{
    font-family: "PTSans", sans-serif;
    font-size: 34px;
}

.car-models{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 52px;
}

.model{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    padding: 24px;
    background-color: #EEEEEE;
    border-radius: 20px;
}

.model_left{
    /*background-position: 50%;*/
    /*background-repeat: no-repeat;*/
    /*background-size: cover;*/
    /*background-image: url("/img/001.jpg");*/
    aspect-ratio: 0.889;
    width: 45%;
    border-radius: 20px;
}

.model_right{
    flex: 1;
    background-color: transparent;;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 556px;
}

.model_right_up{
    position: relative;
    background-color: white;
    height: calc((100% - 24px) / 2);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.25rem;
}

.model_title{
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid black;
}

.model_string{
    font-size: 14px;
}

.details-button {
    background-color: #000000;
    color: #ffffff;
    font-family: "PTSans", sans-serif;
    font-size: 14px;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.right_in_flex {
    align-self: flex-end;
}

.swiper, .swiper_photos{
    position: relative;
    border-radius: 20px;
    height: calc((100% - 24px) / 2);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.swiper_photos{
    height: 100%;
}

.slide_with_bg {
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
}

.slide{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
}

.slide_img{
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 36%;
}

.slide_right{
    position: relative;
    width: 64%;
    padding: 20px;
    text-align: left;
}

.slide_header{
    font-size: 18px;
    font-weight: 600;
    line-height: 23px;
}

.slide_text{
    font-size: 14px;
    line-height: 20px;
    margin-top: 0.5rem;
}

/* Services section styles */
.services {
    padding: 40px 0;
    text-align: center;
}

.services h2 {
    font-family: "PTSans", sans-serif;
    font-size: 34px;
}

.services > p {
    font-family: "PTSans", sans-serif;
    font-size: 20px;
    color: #4d4d4d;
    margin-bottom: 20px;
}

.service-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.service-cards >div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    width: 519px;
    min-height: 263px;
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
}

.service-card-button {
    position: absolute;
    bottom: 24px;
    padding: 20px;
    width: 465px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid #fff;
    text-align: left;
    cursor: pointer;
}

.credit {
    background-image: url('/img/adv_01.jpg');
}

.insurance {
    background-image: url('/img/adv_02.jpg');
}

.trade-in {
    background-image: url('/img/adv_03.jpg');
}

.service-card-button h3 {
    font-family: "PTSans", sans-serif;
    font-size: 34px;
    line-height: 40px;
    position: relative;
    margin-bottom: 10px;
}

.service-card-button p {
    font-family: "PTSans", sans-serif;
    font-size: 20px;
    line-height: 23px;
    position: relative;
}

.more-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Gallery section styles */
.video {
    padding: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;

video {
    width: 100%;
    border-radius: 20px;
}
}

.video-controls {
    position: absolute;
    bottom: 80px;
    right: 40px;
}

.play-pause-btn {
    padding: 10px;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.play-pause-btn img {
    width: 24px;
    height: 24px;
}

.play-pause-btn .play-icon {
    display: none;
}

.play-pause-btn .pause-icon {
    display: block;
}

.play-pause-btn.paused .play-icon {
    display: block;
}

.play-pause-btn.paused .pause-icon {
    display: none;
}

/* Map section */
.map {
    padding: 40px 0 0;

iframe {
    border-radius: 20px;
}
}

/* Contact section styles */
.contact {
    margin: 20px auto 60px;
    display: flex;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.contact-image {
    width: 50%;
    object-fit: cover;
    background-color: #ededed;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    width: 50%;
    background-color: #ededed;
}

.contact_info_wrap{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
}

.contact-info h2 {
    margin-bottom: 15px;
    font-family: "PTSans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}

.contact-info address {
    font-family: "PTSans", sans-serif;
    font-size: 16px;
    line-height: 19px;

p {
    margin-bottom: 10px;
}
}

.working-hours h3 {
    margin-top: 0.5rem;
    margin-bottom: 10px;
    font-family: "PTSans", sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.working-by-days {
    display: flex;
    gap: 50px;

>div {
    width: 50%;
}
}

.working-hours p {
    font-family: "PTSans", sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

/* Footer styles */
footer {
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px 40px;
    flex-direction: column;
    gap: 0.5rem;
}

.footer_inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.politics_link{
    text-decoration: underline;
    color: #cecece !important;
    font-size: 14px;
}

.footer-logo {
    height: 28px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.form-wrapper {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px) brightness(20%);
}

.visible {
    display: block;
    opacity: 1;
}

.form-content {
    position: absolute;
    top: 35dvh;
    left: calc(50% - 178px);
    background-color: #ededed;
    border-radius: 20px;
    padding: 32px;
    width: 356px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    position: relative;
}

#form-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 19px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-family: "PTSans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4d4d4d;
}

.submit-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 12px;
    font-family: "PTSans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
}

.close-form {
    position: absolute;
    top: 120px;
    right: 40px;
    cursor: pointer;
    background: none;
    border: none;
}

.success-message {
    display: none;
    text-align: center;

h3 {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 41px;
    font-weight: 500;
}

p {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 24px;
}
}

/* modal */

.hidden_div{
    margin: 0;
    padding: 0;
    outline: none;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden;
}

.overlay_div{
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(164, 164, 164, 0.7);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    /*cursor: pointer;*/
    z-index: 9999;
}

.modal_div{
    position: relative;
    max-width: 420px;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.4rem 1.8rem;
    margin: 0.5rem;
    color: var(--white);
    background-color: white;
    border: var(--border);
    border-radius: var(--window_radius);
    transform: translateY(100%);
    transform-origin: left top;
    -webkit-transform: translateY(100%);
    -webkit-transform-origin: left top;
    opacity: 0;
    will-change: transform, opacity;
    cursor: initial;
}

.modal_active{
    transform-origin: left top;
    -webkit-transform-origin: left top;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    opacity: 1;
    animation: 0.3s ease show_popup;
}

.modal_hide{
    animation: 0.3s ease hide_popup;
}

.spinner_div{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(151, 151, 151, 0.7);
}

.spinner_img{
    width: 120px;
}

.modal_title, .thanks_title{
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal_title{
    font-size: 1.8rem;
}

.thanks_title{
    text-align: center;
    margin: 2rem 0;
}

.thanks_text{
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.modal_form{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.close_btn{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 18px;
    height: 18px;
}

.close_button{
    display: block;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.error_div{
    color: #fff;
    background-color: var(--error);
    padding: 1rem;
}

.error{
    background-color: #fda6a6 !important;
}

.label_error{
    color: #f04646 !important;
}

.yandex_map{
    width: 100%;
    min-height: 434px;
    border-radius: 20px;
    overflow: hidden;
}

.arr_left, .arr_right, .arr_pic{
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #ffffff8a;
}
.arr_container{
    position: absolute;
    display: flex;
    gap: 0.5rem;
    right: 0;
    bottom: 0;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

@keyframes show_popup {
    from {
        transform: translateY(100%);
        -webkit-transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        opacity: 1;
    }
}

@keyframes hide_popup {
    from {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        -webkit-transform: translateY(100%);
        opacity: 0;
    }
}

/* end modal */

/* Responsive styles */
@media (max-width: 1120px) {
    .block_wrapper{
        padding: 0;
        border-radius: 0;
        background-color: transparent;
    }
    .container {
        padding: 20px 20px;
        width: 100%;
    }

    .car-models {
        flex-direction: column;
    }

    .car-card {
        width: 100%;
        text-align: right;
    }

    .service-cards {
        flex-direction: column;
    }

    .service-card {
        height: 350px;
        width: 100%;
    }

    .credit {
        height: 700px;
    }

    .service-card-button {
        right: 40px;
    }

    .contact {
        flex-direction: column;
        overflow: hidden;
    }

    .contact-image {
        border-radius: 0 0 20px 20px;
        width: 100%;
        background-color: gray;
    }

    .contact-info {
        border-radius: 20px 20px 0 0;
        width: 100%;
    }

    .model{
        flex-direction: column;
    }
    .model_left{
        width: 100%;
    }
    .model_right{
        width: 100%;
        max-width: 100%;
    }
    .slide{
        min-height: 260px;
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
    }
    .slide_img{
        height: 183px;
        width: 100%;
    }
    .slide_right{
        min-height: 320px;
        width: 100%;
    }
    .model_right_up, .swiper{
        height: initial;
    }
}

@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .title {
        margin-top: 124px;
        background-image: url("/media/banner_mobile.jpg");
        aspect-ratio: 600 / 532;
    }

    .header_left{
        order: 1;
        justify-content: center;
        width: initial;
    }

    .header_right{
        order: 2;
        justify-content: center;
        width: initial;
    }

    .contact_info_wrap{
        padding: 0;
        border-radius: 0;
        background-color: transparent;
    }

    .service-card-button {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
    }

    > p {
        width: 90%;
    }
    .title-content {
        padding: 16% 0 10% 0;
    }
}

.working-by-days {
    flex-direction: column;
    gap: 10px;

> div {
    width: 100%;
}
}

.form-content {
    top: 300px;
    left: calc(50% - 150px);
    width: 300px;
}

.close-form {
    top: 145px;
    right: 20px;
}
}
