* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    background-color: rgb(var(--bg-gray));
}

img {
    user-select: none;
}

dialog {
    border: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0);
}

dialog img {
    height: 90%;
}

#modal {
    cursor: zoom-out;
}

.modal-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.modal-form-content {
    background-color: #fff;
    width: 30rem;
    padding: 2rem;
    margin-top: 0.5rem;
    border-radius: 0.18rem;
}

dialog[open] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

table {
    border-top: 3px solid rgb(239,239, 239);
    border-bottom: 3px solid rgb(239,239, 239);
    margin-right: 2.35rem;
    font-size: 1.166rem;
    width: 70%;
}

td {
    padding: 0.25rem 0;
    padding-right: 3rem;
    border-right: 3px solid rgb(239,239, 239);
}

td:last-child {
    padding-left: 1.25rem;
    border-right: none;
}

tbody tr:nth-child(even) {
    background-color: rgb(244, 245, 248);
}

form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.25rem;
}

form input {
    border: 1px solid rgb(209, 209, 209);
    height: 2.35rem;
    font-size: 1rem;
    padding: 0 1.25rem;
}

form input::placeholder {
    color: rgb(190, 190, 190);
}

form input:focus {
    outline: none;
    border: 1px solid rgb(242, 155, 27);
}

button[type=submit] {
    height: 3.15rem;
    width: 100%;
}

button[type=submit]:disabled {
    background-color: #dddddd;
    cursor: not-allowed;
}

.btn-form-wrapper {
    position: relative;
    margin: 0 auto;
    min-width: 25rem;
    width: max-content;
    height: 3.15rem;
}

.content-video-modal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.415rem; width: 100%;
}

.content-video-modal video {
    width: 80%;
}

.btn-close-modal {
    height: 2.5rem;
    cursor: pointer;
}

.btn-close-modal img {
    height: 100%;
    object-fit: cover
}

.content {
    margin: 0 auto;
    width: var(--content-width);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.3);
}

.fixed-wrapp {
    z-index: 10;
    position: fixed;
    top: 0;
    width: var(--content-width);
    display: none;
    justify-content: end;
}

.fixed-contact {
    margin: 0.375rem 0.375rem;
    padding: 0.375rem 1rem;
    position: relative;
    width: 17rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: var(--bold-weight);
    color: rgb(var(--color-white));
    gap: 0.375rem;
    background-color: rgb(var(--accent-color));  
}

.fixed-contact a {
    cursor: pointer;
    height: 2rem;
}

.fixed-contact img {
    height: 100%;
    object-fit: cover;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--content-padding);
    height: var(--header-height);
    width: var(--content-width);
    background-color: rgb(var(--accent-color));
}

.header-logo {
    height: 4rem;
}

.header-logo img {
    height: 100%;
    object-fit: cover;
}

.header-bar {
    display: flex;
}

.header-bar-item {
    margin: 0 1rem;
    width: 9rem;
    display: flex;   
}

.header-bar-icon {
    width: 3.75rem;
    height: 3.75rem;
    flex-shrink: 0;
}

.header-bar-text {
    padding-left: 0.415rem;
    color: white;
    font-size: 1.15rem;
    margin: auto 0;
}

.header-end {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: var(--bold-weight);
    color: rgb(var(--color-white));
    gap: 0.375rem;
}

.header-end a {
    cursor: pointer;
    height: 2rem;
}

.main {
    width: 100%;
    display: flex;
    flex-direction: column;   
}

.section {
    padding: 0 var(--content-padding);      
}

.section h2 {
    text-transform: uppercase;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    margin-top: 1.65rem;
    margin-bottom: 0.85rem;
}

#sec-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: max-content;
    background-image: var(--url-bg-sec-1);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
}

#sec-1-img {
    width: 50%;
    height: 27rem;
}

#sec-1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sec-1-text {
    width: 50%;
}

#sec-1-text p {
    font-size: 1.5rem;
    margin: 1.25rem 0;    
}

.btn {
    background-color: rgb(242, 155, 27);
    color: white;
    text-transform: uppercase;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}

.btn p {
    margin: 0;
}

#sec-1-btn {
    height: 3.15rem;
    width: 20.85rem;
}

#sec-2 {
    background-color: rgb(247, 248, 249);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.sec-2-item {
    display: flex;
    flex-direction: row;
    height: 3.15rem;
    margin: 0.85rem 0;
    font-size: 1rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-right: 1px solid rgb(150, 150, 150);
}

.sec-2-item:last-child {
    border-right: none;   
}

.sec-2-item img {
    object-fit: cover;
    height: 100%;
}

.sec-2-item p {
    margin: 0;
    padding-left: 0.85rem;
}

#sec-3 {
    background-color: rgb(247, 248, 249);
    padding: 0;
}

.gallery {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 var(--content-padding);
    gap: 0.85rem;
}

.gallery-item {
    width: 100%;
    height: 12.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.gallery-item img {
    width: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

#g-item-3 img {
    transform: translateY(-4.15rem);
}

#sec-3-btn {
    margin: 0.85rem auto;
    width: 20.85rem;
    height: 3.15rem;
}

#sec-3-btn div {
    margin-left: 0.625rem;
    width: 2.15rem;
    display: flex;
}

#sec-3-btn div > img {
    width: 100%;
    object-fit: cover;
}

#sec-4 {
    background-color: white;
    padding-bottom: 0.625rem;
}

#sec-4 > div {
    display: flex;
    flex-direction: row;
}

#sec-4 p {
    font-size: 1rem;
}

.bar-vert {
    padding: 0 1rem;
    border-left: 3px solid rgb(239, 239, 239);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.625rem;
}

.bar-vert-grid {
    padding: 0 1rem;
    border-left: 3px solid rgb(239, 239, 239);
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: repeat(4, 3rem);
    gap: 0.625rem;
    align-content: space-between;
}

.bar-vert-grid > img {
    height: 100%;
    align-self: center;
    justify-self: center;
}

.bar-vert-grid > p {
    align-self: center;   
}

.bar-vert-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.bar-vert-item > div {
    height: 3.75rem;
    width: 4.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bar-vert-item p {
    margin: auto 0;
}

.bar-vert-item img {
    height: 100%;
}

#sec-5 {
    padding: 0;
    background-color: rgb(247, 248,249);
}

#btn-test-drive {
    height: 3.15rem;
    width: 20.85rem;
    margin: 0 auto;
    margin-top: 0.375rem;
}

#sec-6 {
    padding-bottom: 0.85rem;
    background-color: white;
}

#sec-6 p {
    font-size: 1.2rem;
}

.bar-horiz {
    display: flex;
    justify-content: space-between;
}

.bar-horiz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-horiz-item > div {
    width: 3.75rem;
}

.bar-horiz-item > div > img {
    width: 100%;
    object-fit: cover;
}

#sec-7 {
    background-color: rgb(247, 248,249);
    padding-top: 2rem;
    padding-bottom: 1.65rem;
    display: flex;
    gap: 0.85rem;
}

#sec-7 h2 {
    margin-top: 0;
    margin-bottom: 0.375rem;
}

#sec-7 > div {
    padding: 0 4.15rem;
}

#sec-7 p {
    font-size: 1.15rem;
}

.input-error {
    color: #d41c1c;
    font-size: 0.875rem;
}

.feedback-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #17b62c;
    padding: 0.375rem 1rem;
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    z-index: 10;
}

.footer {
    height: var(--footer-height);
    width: 100%;
    background-color: rgb(30, 36, 70);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--content-padding);
}

.footer-logo {
    height: 4.75rem;
}

.footer-logo img {
    height: 100%;
    object-fit: cover;
}

.footer-end {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: var(--bold-weight);
    color: rgb(var(--color-white));
    gap: 0.375rem;
}

.footer-end a {
    cursor: pointer;
    height: 2rem;
}

@media (max-width: 420px) {
    :root {
        --base-font-size: 12px;
        --content-width: 100%;
    }
    body {
        width: var(--content-width);
    }

    .content-video-modal {
        /* flex-direction: column; */
    }

    .header-bar {
      display: none;
    }

    .gallery {
        flex-direction: column;
    }

    #sec-1 {
      flex-direction: column-reverse;
    }

    #sec-1-text {
        width: 100%;
    }

    #sec-1-img {
      width: 100%;
    }

    #sec-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.415rem;
    }

    .bar-horiz {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
        padding: 0;   
    }

    .bar-horiz-item {
        text-align: center;
    }

    .sec-2-item {
        border: none;
        padding: 0;
    }

    #sec-4 > div {
        flex-direction: column;
    }

    table {
        width: 100%;
    }

    .bar-vert {
        margin-top: 0.75rem;
        border: none;
    }
    .bar-vert-grid {
        margin-top: 0.75rem;
        border: none;
    }

    #sec-7 {
        flex-direction: column;
    }
    .footer-logo {
        height: 4rem;
    }
}