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: 'Gilroy';
    src: local('Gilroy'),
    url('/fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face{
    font-family: 'Gilroy';
    src: local('Gilroy'),
    url('/fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face{
    font-family: 'Gilroy';
    src: local('Gilroy'),
    url('/fonts/Gilroy-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: "Gilroy", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e1e1e;
}

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;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.phone-link,
.address {
    display: flex;
    align-items: center;
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 14px;
    color: #1e1e1e;
}

.phone-icon,
.marker-icon {
    margin-right: 8px;
}

.logo {
    height: 20px;
}

/* 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: 1440 / 810;
}

.title-content {
    padding: 20px 0;
    max-width: 600px;
}

.title h1 {
    font-family: "Gilroy-SemiBold", Helvetica;
    font-size: 34px;
}

.title .subtitle {
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 20px;
    margin-bottom: 60%;
}

.cta-button {
    background-color: #ffffff;
    color: #000000;
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 14px;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Benefits section styles */
.benefits {
    padding: 40px 0;
    text-align: center;
}

.benefits h2 {
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 34px;
}

.benefits p {
    font-family: "Gilroy-Regular", Helvetica;
    font-size: 20px;
    color: #4d4d4d;
    margin-bottom: 20px;
}

.car-models {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.car-card {
    background-color: #ededed;
    border-radius: 20px;
    padding: 20px;
    width: 357px;
    text-align: left;
}

.car-image {
    width: 100%;
    border-radius: 20px 20px 0 0;
}

.car-card h3 {
    font-family: "Gilroy-SemiBold", Helvetica;
    font-weight: 700;
    font-size: 24px;
    margin: 20px 0 0;
    text-align: left;
}

.car-card hr {
    width: 58px;
    border: none;
    border-top: 1px solid #000000;
    margin: 0 0 10px;
}

.car-card dl {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.car-card dt {
    flex: 0 0 75%;
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 14px;
    text-align: left;
}

.car-card dd {
    flex: 0 0 20%;
    font-family: "Gilroy-Regular", Helvetica;
    font-size: 14px;
    color: #4d4d4d;
    text-align: right;
}

.details-button {
    background-color: #000000;
    color: #ffffff;
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 14px;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Services section styles */
.services {
    padding: 40px 0;
    text-align: center;
}

.services h2 {
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 34px;
}

.services > p {
    font-family: "Gilroy-Regular", Helvetica;
    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: 545px;
    min-height: 263px;
    border-radius: 20px;
    padding: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
}

.service-card-button {
    position: absolute;
    bottom: 40px;
    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('/media/credit.jpg');
}

.insurance {
    background-image: url('/media/insurance.jpg');
}

.trade-in {
    background-image: url('/media/trade-in.jpg');
}

.service-card-button h3 {
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 34px;
    line-height: 40px;
    position: relative;
    margin-bottom: 10px;
}

.service-card-button p {
    font-family: "Gilroy-Regular", Helvetica;
    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: 60px 40px;
    width: 50%;
    background-color: #ededed;
}

.contact-info h2 {
    margin-bottom: 15px;
    font-family: "Gilroy-Bold", Helvetica;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
}

.contact-info address {
    font-family: "Gilroy-Medium", Helvetica;
    font-size: 16px;
    line-height: 19px;

p {
    margin-bottom: 10px;
}
}

.working-hours h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-family: "Gilroy-Bold", Helvetica;
    font-size: 24px;
    font-weight: 700;
}

.working-by-days {
    display: flex;
    gap: 50px;

>div {
    width: 50%;
}
}

.working-hours p {
    font-family: "Gilroy-Medium", Helvetica;
    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: 14px;
}

.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: "Gilroy-Medium", Helvetica;
    font-weight: 500;
    font-size: 14px;
    color: #4d4d4d;
}

.submit-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 12px;
    font-family: "Gilroy-Medium", Helvetica;
    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;
}

@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) {
    .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: 20px 20px 0 0;
        width: 100%;
        background-color: gray;
    }

    .contact-info {
        border-radius: 0 0 20px 20px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .title {
        margin-top: 124px;
    }

    .phone-link {
        order: 3;
    }

    .service-card-button {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;

    > p {
        width: 90%;
    }
}

.working-by-days {
    flex-direction: column;
    gap: 20px;

> div {
    width: 100%;
}
}

.form-content {
    top: 300px;
    left: calc(50% - 150px);
    width: 300px;
}

.close-form {
    top: 145px;
    right: 20px;
}
}
