:root {
    --primary: #EF4043;
    --dark: #3D0102;
    --light: #F4F4F4;
    --lightblue: #D0EBEB;
    --gray: #646464;
    --shadow: 0px 0px 20px 4px #C8C9C932;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-width: none;
}

body {
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s;
    overflow-x: hidden;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
}

svg {
    overflow: visible;
    pointer-events: none;
}

.body-wrapper {
    overflow-x: hidden;
    width: 100vw;
    max-width: 2560px;
    margin: 0 auto;
}

.content-wrapper {
    view-transition-name: content;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.container {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

strong {
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
    color: var(--primary);
    max-width: 47rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.125rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

h5 {
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

h6 {
    font-weight: 500;
}

p,
li {
    margin-bottom: 0.75em;
}

p:last-child {
    margin-bottom: 0;
}

li {
    margin-left: 1rem;
    margin-bottom: 0.25rem;
}

ul,
ol {
    margin-bottom: 1.25rem;
}

ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

.article {

    .small-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    h2 {
        font-size: 2.25rem;
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
        padding-left: 0;
        text-align: left;
    }

    h3 {
        font-size: 1.75rem;
        margin-top: 1.25rem;
        margin-bottom: 0.875rem;
    }

    h4 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 0.875rem;
    }

    h5 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.875rem;
    }

    h6 {
        font-size: 1rem;
        margin: 1.25rem 0 0.875rem;
    }

    img:not(.bgshape) {
        width: 100%;
        max-height: 600px;
        object-fit: cover;
        margin: 1.25rem 0;
        border-radius: 16px;
    }

    *:last-child {
        margin-bottom: 0;
    }

    p {
        line-height: 1.5;
    }

}

section {
    padding: 100px clamp(20px, 4vw, 80px) 0;
    position: relative;
    max-width: 2560px;
}

.primary-link {
    padding: 0.875em 1.75em;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    border-radius: 8px;
    display: block;
    width: fit-content;
    text-transform: uppercase;
    outline: none;
    white-space: nowrap;
    position: relative;
    background-color: var(--primary);
    height: 2.75em;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    transition: background-color 0.7s cubic-bezier(0, 0.2, 0, 1);

    &::after {
        content: attr(data-title);
    }

    span,
    &::after {
        color: white;
        display: block;
        margin-bottom: 1.25em;
        transition: transform 0.7s cubic-bezier(0, 0.2, 0, 1);
        position: relative;
        z-index: 1;
    }

    svg {
        width: auto;
        height: 0.75em;
        margin-top: -0.1875em;
        transition: transform 0.3s;

        path {
            transition: fill 0.3s;
        }
    }

    &.center {
        margin: 60px auto 0;
    }

    &:hover {
        background-color: var(--dark);

        span,
        &::after {
            transform: translateY(-2.25em);
        }
    }

    &.dark {
        background-color: var(--dark);

        &:hover {
            background-color: var(--primary);
        }
    }

    &.blue {
        background-color: var(--lightblue);

        span,
        &::after {
            color: var(--gray);
            transition: transform 0.7s cubic-bezier(0, 0.2, 0, 1), color 0.4s;
        }

        &:hover {
            background-color: var(--dark);

            span,
            &::after {
                color: white;
            }
        }
    }
}

::selection {
    background: #4c0204;
    color: white;
}

::-moz-selection {
    background: #4c0204;
    color: white;
}

.rccookie-container {
    background-color: #FFFFFFBB;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s;
}

.rccookie-container.active {
    opacity: 1;
}

.rccookie-container .primary-link,
.rccookie-modal .primary-link {
    background-color: var(--primary);
    color: white;
}

.rccookie-container .secondary-link {
    color: var(--dark);
}

.rccookie-modal .modal-content {
    border-radius: 15px;
}

.custom-control-input:checked~.custom-control-label::before {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.custom-control-input:not(:disabled):active~.custom-control-label::before,
.custom-control-input:not(:disabled):focus~.custom-control-label::before {
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.custom-control-label::before {
    border: 1px solid var(--dark);
}

.slider {
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.slider:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
    color: white;
}

.sliderMask {
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}

.sliderContainer_success .slider {
    top: -1px;
    border: 1px solid var(--primary);
    background-color: var(--primary) !important;
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    display: none;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s;
    z-index: 996;
}

.overlay.active {
    opacity: 1;
}

a {
    transition: color 0.3s;
    text-decoration: none;
    cursor: pointer;
    color: var(--dark);
}

a:hover,
a:focus-visible {
    text-decoration: none;
    color: var(--dark);
}

button {
    transition: background-color 0.3s, color 0.3s;
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}

button:focus {
    outline: none !important;
}

.vbox-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vbox-close {
    padding: 20px !important;
    top: 10px !important;
    right: 20px !important;
}

.vbox-next {
    right: 40px !important;
}

.vbox-prev {
    left: 40px !important;
}

.vbox-title {
    display: none !important;
}

/* SIDEBAR OPEN */

.open-sidebar {
    width: 28px;
    height: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    right: 20px;

    .hb {
        border-bottom: 2px solid var(--dark);
        border-radius: 99px;
        transition: all 0.45s;
    }

    .hb1,
    .hb2 {
        width: 26px;
    }

    .hb3 {
        width: 13px;
        margin-left: 12px;
    }

    &.closed .hb1 {
        transform: rotate(-45deg) translate(-6.5px, 6.5px);
        width: 30px;
    }

    &.closed .hb2 {
        margin-right: -100%;
        opacity: 0;
    }

    &.closed .hb3 {
        transform: rotate(45deg) translate(-6.5px, -6.5px);
        width: 30px;
        margin-left: 0;
    }

}

.navbar.scrolled .open-sidebar .hb {
    border-color: var(--dark);
}


/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px !important;
}

@media (min-width: 1281px) {
    .sidebar {
        display: none;
    }
}

.sidebar,
.navbar-dropdown {
    width: 100%;
    position: fixed;
    right: -100vw;
    top: 90px;
    height: calc(100dvh - 90px);
    z-index: 998;
    transition: right 0.45s ease-out;
    overflow: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    padding: 0 20px;
}

.sidebar {
    background: #FFFFFFDD;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sidebar.active,
.navbar-dropdown.active {
    right: 0;
}

.sidebar .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-top: -10px;
    height: 100%;
}

.sidebar .links {
    width: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar .links .nav-item {
    width: 100vw;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 500;
    font-size: 1.125rem;
    text-transform: uppercase;
    color: var(--dark);
}

.sidebar .links a svg {
    position: absolute;
    right: 25px;
    top: 47%;
    transform: translateY(-50%) rotate(-90deg);
    width: 1.375rem;
}

.sidebar .links a svg path {
    stroke: var(--primary);
    stroke-width: 1;
}

.sidebar .primary-link {
    margin: 0 auto 20px;
}

/* CUSTOM MODAL */

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
    overflow-y: auto;
    padding: 20px;

    &.active {
        opacity: 1;
    }

    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .modal-content {
        width: 100%;
        max-width: 750px;
        background-color: #DCE7EA;
        border-radius: 30px;
        overflow: hidden;
        padding: 40px;
        text-align: center;

        .cancel {
            position: absolute;
            top: 25px;
            right: 25px;
            cursor: pointer;
            width: 22px;
        }

        h3 {
            font-size: 2rem;
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 2rem;
            line-height: 1.25;
        }
    }
}

/* DESKTOP NAVBAR */

.lang {
    a {
        font-weight: 500;
    }
}

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s, top 0.6s;
    will-change: background-color, box-shadow, backdrop-filter, top;
    padding: 0;

    &.active {
        top: -10.75rem;
    }

    .first {
        background-color: var(--dark);
        width: 100%;
        padding: 0.5rem clamp(20px, 4vw, 80px);

        .container {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .contact-links {

            display: flex;
            align-items: center;

            a,
            span {
                font-size: 0.875rem;
                font-weight: 500;
                padding: 0 1rem;
                color: white;
                letter-spacing: 0.05em;
                border-right: 1px solid white;
                white-space: nowrap;

                &:last-child {
                    border-right: none;
                }
            }
        }

        .lang {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;

            a {
                color: white;

                &:not(:last-child)::after {
                    content: '|';
                    margin: 0 0.375rem;
                    color: white;
                }

                &.active {
                    color: var(--primary);
                    font-weight: 700;
                }
            }
        }

    }

    .second {
        width: 100%;
        padding: 0 20px;

        .layer {
            background-color: var(--light);
            height: calc(100% + 2px);
        }

        .container {
            flex-wrap: nowrap;
            flex-direction: column;
            position: static;

            .line {
                display: flex;
                align-items: center;
                width: 100%;
                justify-content: space-between;
                padding: 1.25rem 0 0.75rem;

                .logo {
                    height: 2.75rem;
                    margin-top: -0.25em;
                    transform: translateY(36vh) scale(2.5);
                    transform-origin: 50% 50%;
                    z-index: 2;

                    svg {
                        width: auto;
                        height: 100%;
                    }

                    path {
                        will-change: stroke-dashoffset;
                        stroke: var(--primary);
                        stroke-width: 0;
                        fill-opacity: 0;
                    }

                    .shadow {
                        opacity: 0;
                    }
                }

                .primary-link {
                    width: 212px;
                    text-align: center;
                }
            }
        }
    }

    .links {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 0.875rem 0 1.25rem;

        .nav-item {
            font-size: 0.9735rem;
            letter-spacing: 0.08em;
            font-weight: 500;
            display: flex;
            align-items: center;
            position: relative;
            white-space: nowrap;
            color: var(--dark);
            text-transform: uppercase;
            transition: all 0.3s;

            &.active {
                color: var(--primary);
            }

            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 1px;
                background-color: var(--dark);
                transition: transform 0.4s cubic-bezier(0.01, 0.69, 0.4, 1), background-color 0.3s;
                transform-origin: right;
                transform: scaleX(0);
            }

            &:hover::after {
                transform: scaleX(1);
                transform-origin: left;
            }

            &.active::after {
                background-color: var(--primary);
            }

            svg {
                width: 0.875vw;
                margin-left: 0.5vw;
                transition: transform 0.3s;
            }

            &.active svg {
                transform: rotate(180deg);
            }

            svg path {
                transition: stroke 0.3s;
                stroke: var(--dark);
            }
        }

    }

    // &.scrolled .links .nav-item {
    //     color: white;

    //     &:hover {
    //         color: white;
    //     }

    //     &::after {
    //         background-color: white;
    //     }

    //     svg path {
    //         stroke: white;
    //     }
    // }

    .buttons {
        display: none;
    }
}


/* NAVBAR DROPDOWN */

.navbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0;
    width: 100%;
    height: fit-content;
    overflow: hidden;
    z-index: 998;
    max-height: 0;
    transition: max-height 0.6s cubic-bezier(0.01, 0.69, 0.4, 1);
    background-color: var(--lightblue);
}

.navbar-dropdown.active {
    z-index: 999;
}

.navbar-dropdown .arrow {
    display: none;
}

.navbar-dropdown .sub-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 0;
    gap: 3.25rem;
}

.navbar-dropdown .sub-links a {
    display: block;
    font-size: 0.9735rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;

    &:hover {
        color: var(--primary);
    }
}

.navbar-dropdown .cancel {
    position: absolute;
    top: 7px;
    right: 5px;
    padding: 10px;
    cursor: pointer;
    width: 38px;
}

/* KIS LENYÍLÓK */

.desktop-modal {
    position: absolute;
    top: 100%;
    right: -20px;
    width: calc(100vw - 40px);
    max-width: 340px;
    background-color: #FFFFFFE8;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    display: none;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    padding: 20px;

    &.active {
        transform: translateY(40px);
        opacity: 1;
    }

    &::before {
        content: '';
        position: absolute;
        top: -17.75px;
        width: 40px;
        height: 21px;
        background-image: url('../images/triangle.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.9;
    }

    .cancel {
        position: absolute;
        top: 7px;
        right: 5px;
        padding: 10px;
        cursor: pointer;
        width: 38px;
    }

    h3 {
        margin: 0 0 20px;
        text-transform: none;
        font-size: 1.125rem;
        text-align: center;
    }

    form {
        padding: 0;
        width: 100%;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    form input {
        width: 100%;
        border-bottom: 1px solid var(--dark);
        margin-bottom: 10px;
        line-height: 1;
    }

    input+.primary-link {
        margin-top: 10px;
    }

    .buttons {
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .primary-link {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    &.basket-modal {
        &::before {
            right: 65px;
        }

        .item {
            display: flex;
            gap: 10px;
            padding-bottom: 10px;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--primary);


            img {
                min-width: 80px;
                min-height: 80px;
                max-width: 80px;
                max-height: 80px;
                object-fit: contain;
            }

            .content {
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }

            h4 {
                font-size: 0.875rem;
                text-transform: uppercase;
                margin-bottom: 0;
                font-style: normal;
            }

            .size {
                font-size: 0.75rem;
                margin-bottom: 0;
            }

            .quantity {
                font-size: 0.75rem;
                font-weight: 700;
                color: var(--primary);
            }
        }

        .price {
            text-align: right;
            font-size: 0.875rem;
            font-weight: 700;
        }

        .summary {
            display: flex;
            justify-content: space-between;
        }

        .summary .price {
            font-size: 1rem;
        }
    }

    &.login-modal {

        &::before {
            right: 12px;
        }

        .lostpassword {
            text-align: center;
            margin-top: 0.5rem;
            font-size: 0.8125rem;
        }

        &.login-modal .logged-in a {
            display: block;
            text-align: center;
            margin-bottom: 0.625rem;
        }

        &.login-modal hr {
            width: 100%;
            margin: 1rem 0;
            border-top: 1px solid var(--dark);
        }

    }
}

.flex-content {
    display: flex;
    gap: 80px;
}

.flex-content.center {
    align-items: center;
}

.flex-content.reverse {
    flex-direction: row-reverse;
}

.flex-content .side {
    width: 50%;
}

.flex-content .side>img,
.flex-content .side .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    display: block;
    border: none;
    border-radius: 16px;
}

.flex-content .primary-link {
    margin-top: 2rem;
}

.items {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;

    .item {
        display: flex;
        flex-direction: column;
        position: relative;
    }
}

.relative {
    position: relative;
}

.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.swiper {
    width: 100%;
    position: relative;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    z-index: 99;
    cursor: pointer;
    transition: opacity 0.3s;
}

.swiper-button-disabled {
    opacity: 0;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 30px;
    font-weight: 700;
    color: var(--gray);
}

.swiper-button-prev::after {
    margin-right: 3px;
}

.swiper-button-next::after {
    margin-left: 1px;
}

.swiper-button-prev {
    left: -54px;
}

.swiper-button-next {
    right: -54px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-wrapper {
    align-items: center;
}

/* LOADER */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 99;
    transition: opacity 0.5s;
}

.loader.end {
    opacity: 0;
}

.loader .wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader svg {
    width: 100%;
    height: 100%;
    max-width: 700px;
    max-height: 700px;
    will-change: transform;
}

.rounding {
    border-radius: 8px;
}

/* HERO */

.hero {
    position: relative;
    z-index: 1;
    margin: 10.5rem 0 0;
    padding: 120px clamp(20px, 4vw, 80px) calc(120px + 7rem);
    overflow: hidden;

    .layer {
        background: linear-gradient(90deg, #FFFFFF 45%, #FFFFFF00 100%);
    }

    .image {
        width: 55%;
        left: auto;
        right: 0;
    }

    .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 2;

        h1 {
            color: var(--primary);
            margin-bottom: 2rem;
        }

        p {
            font-size: 1.25rem;
            max-width: 45rem;
            font-weight: 500;
            color: var(--gray);
        }
    }
}

.vehicles {
    background-color: var(--light);
    padding-top: 0;

    .container {
        margin-top: -7rem;
        z-index: 2;
    }

    .items {
        gap: 20px;

        .item {
            flex: 1 1 auto;
            background-color: white;
            align-items: center;
            padding: 25px 20px 30px;

            .image {
                width: 7rem;
                height: 7rem;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: var(--light);
                margin-bottom: 1rem;

                img {
                    width: 4.5rem;
                    height: 4.5rem;
                    object-fit: contain;
                }
            }

            h3 {
                margin-bottom: 0.25rem;
                text-transform: uppercase;
            }

            h3, 
            h3 a {
                color: var(--primary);
                letter-spacing: 0.08em;
                font-size: 1.125rem;
                font-weight: 700;
            }
            p, 
            p a {
                color: var(--primary);
                font-weight: 450;
                margin-bottom: 0;
            }

            .layer {
                background-color: var(--primary);
                position: absolute;
                inset: 0;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                color: white;
                font-weight: 600;
                letter-spacing: 0.03em;
                text-align: center;
                padding: 20px;
                font-size: 1.25rem;
                gap: 30px;
                text-transform: uppercase;
                opacity: 0;
                transition: opacity 0.4s;

                .arrow {
                    background-color: var(--dark);
                    width: 50px;
                    height: 50px;
                    min-width: 50px;
                    min-height: 50px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                    transform: scale(0) rotate(45deg);
                    transition: transform 0.6s cubic-bezier(0.01, 0.69, 0.4, 1);
                }
            }

            &:hover .layer {
                opacity: 1;

                .arrow {
                    transform: scale(1) rotate(0deg);
                }
            }
        }
    }
}

section:not(.article) h2 {
    letter-spacing: 0.08em;
}

.swiper-fade .swiper-slide .swiper-slide {
    pointer-events: all;
}

.categories {
    overflow: visible;
    padding-bottom: 60px;

    .layer {
        background: var(--light);
        height: calc(100% - 2px);
    }

    .categories-nav {
        display: flex;
        justify-content: center;
        background-color: var(--dark);
        margin-bottom: 45px;

        button {
            padding: 0.75rem;
            color: white;
            font-size: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            width: 15%;
            transition: background-color 0.3s;
            position: relative;

            &::after {
                content: '';
                position: absolute;
                top: calc(100% - 0.75rem);
                left: 50%;
                transform: translateX(-50%);
                width: 1.25rem;
                height: 0.75rem;
                background-color: var(--primary);
                clip-path: polygon(0 0, 100% 0, 50% 100%);
                opacity: 0;
                transition: top 0.3s cubic-bezier(0, 0.69, 0.4, 1);
            }

            &.active::after {
                top: calc(100% - 1px);
                opacity: 1;
            }

            &:hover,
            &.active {
                background-color: var(--primary);
            }
        }
    }

    .categories-swiper,
    .categories-swiper > .swiper-wrapper {
        overflow: visible;
    }

    .categories-swiper .swiper-slide {
        height: auto;
    }

    .swiper-slide:not(.rounding) {
        position: relative;
        overflow: visible;

        &:not(.swiper-slide-active),
        &:not(.swiper-slide-active) .swiper-slide {
            pointer-events: none;
        }

        .arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;

            &.swiper-button-lock {
                pointer-events: none;
                opacity: 0;
            }

            &.prev {
                left: -60px;
            }

            &.next {
                right: -60px;
            }

            img {
                width: 20px;
                height: auto;
            }
        }
    }

    .swiper-wrapper {
        align-items: stretch;
    }

    .swiper-slide.rounding {
        background-color: white;
        overflow: hidden;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;

        .header {
            display: flex;

            .code {
                background-color: var(--primary);
                color: white;
                font-weight: 700;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 1rem;
                height: 5rem;
                min-width: 5.5rem;
                font-size: 2rem;
            }

            .name {
                padding: 0 15px;
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                font-weight: 700;
                text-transform: uppercase;
                color: var(--primary);
                font-size: 1.05rem;
            }
        }

        .content {
            padding: 20px;
            padding-bottom: 10rem;

            h3,
            h4 {
                text-transform: uppercase;
            }

            h3 {
                color: var(--primary);
                font-size: 1.5rem;
            }

            h4 {
                font-size: 1.25rem;
            }

            .upper>*:not(ul) {
                text-align: center;
            }

            p,
            li {
                font-size: 0.9375rem;
            }

            .link {
                width: calc(100% + 40px);
                border-top: 1px solid var(--dark);
                border-bottom: 1px solid var(--dark);
                padding: 15px;
                text-align: center;
                display: block;
                margin-left: -20px;
                font-weight: 500;
                letter-spacing: 0.05em;
            }

            .primary-link {
                margin: 20px auto 0;
            }

            .lower {
                position: absolute;
                padding: 20px;
                bottom: 0;
                left: 0;
                width: 100%;
            }
        }
    }

    &.subpage {
        padding-top: 0;

        .layer {
            top: calc(11rem + 10px);
            height: calc(100% - 11rem + 100px + 5.5rem + 7.25rem);
        }

        .swiper-wrapper {
            padding: 10px 0;
            align-items: normal;
        }

        .swiper-slide {
            border-radius: 16px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
            height: auto;
            display: flex;
            flex-direction: column;

            .header .name {
                font-size: 1.05rem;
                letter-spacing: 0.05em;
            }
        }

        .swiper-slide .content {

            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
            padding-bottom: 5rem;

            h4 {
                font-size: 1.5rem;
            }

            h3 {
                font-size: 1.75rem;
            }
        
            li {
                list-style: none;
                padding: 0.75rem 0;
                color: var(--gray);
                text-transform: uppercase;
                font-weight: 500;
                text-align: center;
                margin: 0;

                &:not(:last-child) {
                    border-bottom: 1px solid var(--gray);
                }
            }
        }

        .primary-link {
            width: 13.125rem;
            text-align: center;
        }
    }
}

.progress-1 {
    .steps {
        display: flex;
        gap: 20px;

        .item {
            background-color: var(--dark);
            border-radius: 16px;
            width: 165px;
            min-width: 165px;
            position: relative;
            color: white;
            margin-top: 60px;
            cursor: pointer;
            transition: width 0.6s cubic-bezier(0.01, 0.69, 0.4, 1);

            &.active {
                width: 100%;
            }

            .arrow {
                position: absolute;
                top: 20px;
                right: 30px;
                width: 36px;
                height: auto;
                padding: 10px 0;
            }

            .prev {
                right: 86px;
            }

            &:first-of-type .prev {
                display: none;
            }

            &:last-of-type .next {
                display: none;
            }

            &:last-of-type .prev {
                right: 30px;
            }

            span {
                position: absolute;
                top: 0;
                left: 30px;
                width: 105px;
                height: 105px;
                background-color: var(--primary);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 2rem;
                font-family: 'Orbitron', sans-serif;
                color: white;
                font-weight: 700;
                transform: translateY(-50%);
            }

            .content {
                overflow: hidden;
                width: 100%;
                padding: 30px;
                padding-top: 80px;

                h3 {
                    color: var(--primary);
                    font-size: 2rem;
                }

            }

            *:not(span) {
                width: 620px;
                opacity: 0;
                transition: opacity 0.6s;
            }

            &.active *:not(span) {
                opacity: 1;
            }

        }
    }
}

.banner {
    margin-top: 100px;
    padding: 100px clamp(20px, 4vw, 80px);

    .layer {
        background: linear-gradient(0deg, #FFFFFF 0%, #FFFFFF00 100%);
    }

    .container {
        background-color: white;
        padding: 3%;
        border-radius: 16px;

        &>* {
            text-align: center;
            max-width: 520px;
            margin-left: auto;
            margin-right: auto;
            font-size: 1.375rem;
        }

        h3 {
            font-size: 2.75rem;
            margin-bottom: 1.5rem;
        }

        .primary-link {
            margin-top: 2rem;
            font-size: 1rem;
        }
    }
}

.swiper-section {

    h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding-right: 16rem;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        text-align: center;
        overflow: hidden;
        border: none;
        display: flex;
        flex-direction: column;
    }

    tr {
        display: flex;
        width: 100%;
        background-color: var(--lightblue);
        color: var(--gray);
    }

    td {
        text-align: center;
        flex: 1;
        padding: 0.75rem;
    }

    tr:first-child {
        background-color: var(--primary);
        color: white;
        font-weight: bold;
        font-size: 1.25rem;

        td {
            padding: 1.125rem;
        }
    }

    tr:nth-child(2) {
        background-color: var(--light);
        color: #f44336;
        font-weight: bold;
        display: flex;
        width: 100%;

        td {
            padding: 1.125rem;
        }

        td:first-child:not(:last-child) {
            border-right: 1px solid var(--gray);
        }
    }

    tr:nth-child(3),
    tr:nth-child(5) {
        font-weight: 700;
        letter-spacing: 0.05em;
        border-top: 1px solid var(--gray);
        border-bottom: 1px solid var(--gray);
    }

    tr:nth-child(4),
    tr:nth-child(6) {
        font-weight: 500;

        td:not(:last-child) {
            border-right: 1px solid var(--gray);
        }
    }

    .reviews-swiper {
        .swiper-wrapper {
            align-items: normal;
        }

        .swiper-slide {
            display: flex;
            background-color: var(--light);
            border-radius: 16px;
            overflow: hidden;
            height: auto;

            .left {
                width: 75%;
                padding: clamp(20px, 5%, 80px);
                display: flex;
                flex-direction: column;
                justify-content: center;

                p {
                    font-size: 1.25rem;
                    font-weight: 500;
                    margin-bottom: 0;
                }

                h4 {
                    margin-top: 1.25rem;
                    padding-top: 1.25rem;
                    border-top: 1px solid var(--primary);
                }
            }

            .right {
                width: 25%;
                background-color: var(--primary);
                padding: clamp(20px, 5%, 80px);

                .quote {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    object-position: top center;
                }
            }
        }
    }
}

.relative {
    .arrow {
        position: absolute;
        top: 0;
        right: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: var(--light);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        &.prev {
            right: 56px;
        }
    }

    .swiper-pagination {
        top: 17px;
        left: auto;
        right: 120px;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        pointer-events: none;
        transition: none;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background: var(--dark);
        color: var(--dark);
        opacity: 1;
        transition: all 0.3s;
        margin: 0 !important;
    }

    .swiper-pagination-bullet-active {
        background: var(--primary);
        width: 40px;
    }
}

.blog {

    h2 {
        padding-right: 18rem;
    }

    .link {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: fit-content;
        color: var(--gray);
        letter-spacing: 0.05em;
        font-size: 1.25rem;
        font-weight: 500;
        transition: color 0.3s;
        position: absolute;
        top: 0.75rem;
        right: 0;
        margin: 0;

        &:hover {
            color: var(--primary);
        }
    }

    .items {
        gap: 24px;
    }

    .item {
        width: calc(50% - 12px);
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        overflow: hidden;
        border-radius: 16px;
        padding: 35px;
        min-height: 380px;

        .bg {
            z-index: 0;
        }

        .bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .layer {
            background: linear-gradient(180deg, #00000022 0%, #000000EE 100%);
        }

        .hover-layer {
            background: var(--primary);
            opacity: 0;
            transition: opacity 0.4s;
        }

        &:hover .hover-layer {
            opacity: 0.75;
        }

        .content {
            position: relative;
            z-index: 1;
            max-width: 550px;
            pointer-events: none;

            * {
                color: white;
            }

            h3 {
                margin-bottom: 0.75rem;
                
                a {
                    font-size: 2rem;
                }
            }

            p {
                font-size: 1.125rem;
            }
        }

        .arrow {
            background-color: var(--primary);
            width: 50px;
            min-width: 50px;
            height: 50px;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            position: relative;
            z-index: 1;

            img {
                width: 16px;
                height: 16px;
            }
        }
    }
}

@media (min-width: 768px) {
    .blog .items .item:first-of-type:not(.subpage .item) {
        width: 100%;
    }
}

.collapse-item {
    width: 100%;
    &:last-child {
        border-bottom: 1px solid var(--dark);
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 1.25rem 0;
        border-top: 1px solid var(--dark);

        h3 {
            margin-bottom: 0;
            font-size: 1.75rem;
            font-weight: 600;
            max-width: calc(100% - 3rem);
        }

        .toggle {
            background: url('../images/angle-left-gray.svg') no-repeat center / contain;
            background-size: 60% 60%;
            transform: rotate(-90deg);
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 99px;
            border: 1px solid #202020;
            transition: transform 0.4s ease;
        }

    }

    &.active .header .toggle {
        transform: rotate(90deg);
    }

    .content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;

        p:last-child {
            padding-bottom: 1.25rem;
        }
    }
}

.faq {
    .collapse-item .header {
        padding: 15px 0;

        h3 {
            font-size: 1.25rem;
        }

        .toggle {
            width: 2rem;
            height: 2rem;
        }
    }
}

.c2a-card {
    z-index: 1;

    .container {
        background-color: var(--primary);
        color: white;
        text-align: center;
        padding: 60px 50px;
        border-radius: 30px;
        margin-bottom: -150px;
        position: relative;
        z-index: 1;

        h3 {
            font-size: 2.5rem;
            max-width: 35rem;
            margin: 0 auto 1.75rem;
        }

        p {
            font-size: 1.5rem;
            max-width: 35rem;
            margin: 0 auto;
        }

        .primary-link {
            margin: 2.5rem auto 0;
            background-color: var(--dark) !important;
        }
    }
}

.contact {
    position: static;
    padding-bottom: 100px;
    background-color: var(--light);
    padding-top: 230px;

    .container {
        position: static;
        align-items: flex-start;

        h3 {
            font-size: 2.25rem;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
        }
        
        .left {
            width: calc(100% - 300px);
            
            h3 {
                color: var(--primary);
                margin-bottom: 0.25rem;
            }

            p {
                font-size: 1.75rem;
                margin-bottom: 1.75rem;
                font-weight: 350;
            }
        }

        .right {
            width: 400px;
            padding: 30px;
            background-color: var(--primary);
            border-radius: 16px;
            
            * {
                color: white;
            }

            h3 {
                margin-bottom: 3rem;
            }

            p {
                margin-bottom: 0.25rem;
            }

            .socials {
                margin-top: 3.125rem;
            }
        }


        .footerlogo {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 220px;
            height: auto;
        }
    }
}

form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

input,
textarea,
select {
    padding: 1rem 1.25rem;
    background-color: white;
    font-size: 1rem;
    width: 100%;
    resize: none;
    outline: none;
    border: none;
    transition: all 0.4s;
    font-weight: 500;

    &.half {
        width: calc(50% - 0.625rem);
    }

    &::placeholder {
        opacity: 0.7;
        font-weight: 600;
        letter-spacing: 0.03em;
    }
}

select {
    appearance: none;
    background-image: url("../images/angle-down-gray.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-check {
    margin-left: 32px;
    padding-left: 0 !important;
    width: 100%;
}

.form-check:not(.form-group .form-check):first-of-type {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 0;
    width: 100%;
}

.form-group:first-of-type {
    margin-top: 1rem;
}

.form-check-input {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

.form-check-input+label {
    position: relative;
    line-height: 1.5;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.form-check-input+label::before {
    content: " ";
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    margin-left: -32px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid white;
    transition: 0.3s ease;
}

.form-check-input:checked+label::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input+label::after {
    content: " ";
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMTczLjg5OCA0MzkuNDA0bC0xNjYuNC0xNjYuNGMtOS45OTctOS45OTctOS45OTctMjYuMjA2IDAtMzYuMjA0bDM2LjIwMy0zNi4yMDRjOS45OTctOS45OTggMjYuMjA3LTkuOTk4IDM2LjIwNCAwTDE5MiAzMTIuNjkgNDMyLjA5NSA3Mi41OTZjOS45OTctOS45OTcgMjYuMjA3LTkuOTk3IDM2LjIwNCAwbDM2LjIwMyAzNi4yMDRjOS45OTcgOS45OTcgOS45OTcgMjYuMjA2IDAgMzYuMjA0bC0yOTQuNCAyOTQuNDAxYy05Ljk5OCA5Ljk5Ny0yNi4yMDcgOS45OTctMzYuMjA0LS4wMDF6Ii8+PC9zdmc+");
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: center center;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -32px;
    left: 0;
    top: -10px;
    text-align: center;
    background-color: transparent;
    font-size: 10px;
    height: 20px;
    width: 20px;
    transition: 0.3s ease;
    opacity: 0;
}

.form-check-input:checked+label::after {
    opacity: 1;
    top: 2px;
}

.contact .primary-link {
    margin-top: 0.75rem;
}

/* FOOTER */

footer {
    background-color: var(--dark);
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    padding: 80px clamp(20px, 4vw, 80px);
    
    .container {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 30px;

        .item {
            min-width: 17%;
            max-width: 20%;
        }

        a {
            display: block;
            color: white;
            white-space: nowrap;
            line-height: 1;
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
        }

    }

    .footerlogo {
        display: block;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 40px auto 0;
    }

}

.copyright {
    padding: 30px clamp(20px, 4vw, 80px);
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    gap: 30px;
    color: white;
    text-transform: uppercase;
    font-weight: 500;

    span:not(:last-child) {
        padding-right: 30px;
        border-right: 1px solid white;
    }

    a {
        color: white;
    }
}

/* ALOLDALAK */

.course-hero {
    padding: 120px clamp(20px, 4vw, 80px) 120px;

    .container {
        p {
            max-width: 100%;
        }
    }
}

.progress-2 {

    .collapse-item {
        width: 100%;

        margin-bottom: 20px;

        &:last-child {
            border-bottom: none;
        }

        .header {
            min-height: 7.25rem;
            background-color: var(--dark);
            color: #ff5255;
            position: relative;
            margin-left: 3.625rem;
            border-radius: 0 12px 12px 0;
            padding: 0 2rem 0 5.5rem;

            span {
                position: absolute;
                top: -1px;
                left: -3.625rem;
                width: 7.3125rem;
                height: 7.3125rem;
                background-color: var(--primary);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 2rem;
                font-family: 'Orbitron', sans-serif;
                font-weight: 700;
                color: white;
            }

            .toggle {
                background-image: url('../images/arrow-down-white.svg');
                background-color: var(--primary);
                transform: rotate(0deg);
                background-size: 50% 50%;
                border: none;
                width: 2.75rem;
                height: 2.75rem;
            }
        }

        &.active .header .toggle {
            transform: rotate(180deg);
        }

        .content .inner {
            padding: 40px 9rem 0;
        }
    }
}

.teachers-hero {
    padding-bottom: 500px;
}

.teachers {
    padding-top: 0;
    padding-bottom: 90px;
    
    .layer {
        background: var(--light);
    }
    
    .container {
        margin-top: -347px;
        z-index: 2;
    }

    .items {
        gap: 20px;

        .item {
            width: calc(33.3333% - 13.333px);
            background-color: white;
            overflow: hidden;
            border: 1px solid #E0E0E0;

            img {
                width: 100%;
                height: 450px;
                min-height: 250px;
                object-fit: cover;
            }

            .content {
                padding: 20px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                gap: 20px;
                height: 100%;

                * {
                    color: var(--gray);
                }
                
                
                h3 {
                    color: #121212;
                    font-size: 1.5rem;
                    margin-bottom: 0.25rem;
                }

                h4 {
                    font-size: 1rem;
                    font-weight: 500;
                }

                h5 {
                    border-top: 1px solid var(--gray);
                    border-bottom: 1px solid var(--gray);
                    margin: 1rem 0;
                    padding: 0.5rem 0;
                    font-size: 1rem;
                }

                p {
                    margin-bottom: 0.25rem;
                }
            }

            .categories {
                display: flex;
                gap: 16px;
                flex-wrap: wrap;

                span {
                    background-color: var(--primary);
                    color: white;
                    font-weight: 700;
                    font-size: 1.625rem;
                    border-radius: 0.375rem;
                    width: calc(25% - 12px);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0.625rem 0;
                }
            }

            .primary-link {
                width: 100%;
                margin-top: 16px;
                text-align: center;
                font-family: 'Montserrat', sans-serif;
                font-size: 1.25rem;
                height: 3rem;
                background-color: #202020;

                span {
                    color: white;
                }

                &:hover span,
                &:hover::after {
                    transform: translateY(-2.4375rem);
                }
            }
        }
    }
}

.teachers + .banner {
    margin-top: 0;
}

.signup-hero {
    padding-bottom: 300px;

    & + .vehicles {
        background-color: transparent;

        .container {
            margin-top: -13rem;
        }

        .item {
            pointer-events: none;
        }
    }
}

.vehicles + .progress-2 {
    padding-bottom: 90px;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100% + 300px);
        background-color: var(--light);
        z-index: -1;
    }

    & + .banner {
        margin-top: 0;
    }
}

.prices-hero + .categories {
    padding: 80px clamp(20px, 4vw, 80px) 0;
    overflow: visible;

    .swiper-wrapper {
        align-items: flex-start;
    }

    & + .progress-1 {
        background-color: var(--light);
        margin-top: -2px;
        padding-bottom: 90px;

        & + .banner {
            margin-top: 0;
        }
    }

    .categories-nav {
        position: sticky;
        top: 0;
        z-index: 99;
    }
}

.subcategory {
    display: flex;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;

    &:first-child {
        margin-top: 15px;
    }

    .code {
        width: 170px;
        min-width: 170px;
        background-color: var(--primary);
        color: white;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
    }

    .content {
        width: 100%;
    }

    .line {
        display: flex;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid var(--gray);

        &:last-child {
            border-bottom: none;
        }

        span {
            padding: 1.125rem 20px;
            text-transform: uppercase;
            color: var(--gray);
            font-weight: 500;
            letter-spacing: 0.05em;

            &:first-child {
                padding: 1.125rem 2.5rem;
            }
    
            &:nth-of-type(2) {
                margin-left: auto;
            }

            &:not(:first-child) {
                width: 12rem;
                text-align: center;
            }
        }

        &:first-child span,
        &:last-child span {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.25rem;
        }
    }
}

.blog:nth-child(2),
.article-header {
    padding-top: calc(11rem + 100px);
}

.article-header {
    .nav {
        margin-bottom: 40px;

        a {
            text-transform: uppercase;
            padding-right: 0.5em;
            letter-spacing: 0.05em;
            font-weight: 500;
            color: var(--gray);

            &::after {
                content: '/';
                display: inline;
                margin-left: 0.5em;
            }

            &:last-child {
                text-transform: none;
                font-weight: 500;

                &::after {
                    display: none;
                }
            }
        }
    }

    h1 {
        margin-bottom: 30px;
        max-width: 800px;
    }

    .desc {
        font-weight: 600;
        font-size: 1.25rem;
        max-width: 800px;
    }

    img {
        width: 100%;
        max-height: 600px;
        object-fit: cover;
        border-radius: 16px;
        margin-top: 30px;
    }
}

.article {
    padding-top: 60px;

    & + .vehicles {
        margin-top: 80px;
        padding: 80px clamp(20px, 4vw, 80px);
        .container {
            margin-top: 0;
        }
    }
}

.socials {
    display: flex;
    gap: 1.25rem;
    margin: 2rem 0 0;

    svg {
        height: 1.75rem;
        width: auto;
    }
}

.contact-subpage {
    padding-top: calc(10rem + 100px);
    padding-bottom: 80px;
    position: static;

    .container {
        position: static;
    }

    .left {
        width: 380px;
        min-width: 380px;

        .kard {
            background-color: var(--primary);
            border-radius: 16px;
            padding: 40px 30px;
            color: white;
            display: flex;
            gap: 20px;
            align-items: center;
            margin-bottom: 20px;

            &:last-child {
                margin-bottom: 0;
                display: block;

                .socials {
                    margin-top: 1rem;
                }
            }

            .icon svg {
                width: 32px;
                height: auto;
            }

            h4 {
                text-transform: uppercase;
                font-weight: 700;
                font-size: 1.25rem;
                margin-bottom: 0.25rem;
            }

            a, p {
                color: white;
                font-weight: 500;
            }
        }
    }

    .right {
        width: calc(100% - 380px);

        h1 {
            max-width: 620px;
            margin-bottom: 30px;
        }

        p {
            font-weight: 500;
            color: var(--gray);
        }

        form {
            margin-top: 40px;

            input,
            textarea,
            select,
            .form-check-input + label::before {
                background-color: var(--light);
            }

            .form-check-input:checked + label::before {
                background-color: var(--primary);
            }

            .primary-link {
                margin-top: 1.25rem;
            }
        }
    }
}

@media (max-width: 1279px) {

    .navbar {
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

        &.active {
            top: -95px;
        }

        .first {

            .contact-links {

                a {
                    font-size: 0.75rem;
                    padding: 0 0.5rem;

                    &:first-child {
                        padding-left: 0;
                    }

                    &:last-of-type {
                        padding-right: 0;
                        border-right: 0;
                    }
                }

                span {
                    display: none;
                }
            }

            .lang {
                display: none;
            }
        }

        .second {
            position: relative;

            .primary-link {
                display: none;
            }

            .container {

                .line {
                    justify-content: center;
                    padding: 16px 0;
                    
                    .logo {
                        height: 28px;
                        margin-top: -2px;
                        transform: translateY(36vh) scale(1.8);
                    }

                    .buttons {
                        display: block;
                        position: absolute;
                        top: 50%;
                        right: 0;
                        transform: translateY(-50%);
                    }
                }
    
                .links {
                    display: none;
                }
            }

        }
    }

    .sidebar .lang {
        display: flex;
        justify-content: center;

        a {
            font-size: 20px;
            font-weight: 500;

            &:not(:last-child):after {
                content: '|';
                display: inline-block;
                margin: 0 10px;
                color: var(--dark);
            }

            &.active {
                color: var(--primary);
            }
        }
    }

    .sidebar .navbar-dropdown {
        top: 0;
        background-color: #FFFFFFEF;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: none;
        height: calc(100vh - 60px);
        position: fixed;
        left: auto;
        transition: right 0.45s ease-out;
        padding: 0 20px;
    }

    .sidebar .navbar-dropdown .arrow {
        width: 14px;
        height: 24px;
        object-fit: contain;
        cursor: pointer;
        margin: 20px 0 0;
        display: block;
    }

    .sidebar .navbar-dropdown .sub-links {
        flex-direction: column;
        gap: 0;
        padding-top: 0;

        a {
            padding: 14px 0;
            font-size: 1.125rem;
        }
    }

}

@media (max-width: 767px) {

    p,
    li,
    a {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 1.625rem;
    }

    h2 {
        font-size: 1.625rem;
        margin-bottom: 2.25rem;
    }

    h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5,
    h6 {
        font-size: 1rem;
    }

    section {
        padding: 50px 20px 0;
    }

    ul,
    ol {
        margin-bottom: 1rem;
    }

    .article h1 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 1.75rem;
    }

    .article h2 {
        font-size: 1.75rem;
    }

    .article h3 {
        font-size: 1.5rem;
    }

    .article h4 {
        font-size: 1.25rem;
    }

    .article h5 {
        font-size: 1rem;
    }

    .article h6 {
        font-size: 0.875rem;
    }

    .article img:not(.bgshape) {
        max-height: 450px;
        border-radius: 10px;
    }

    .primary-link {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem 0.6875rem;
    }

    .primary-link.center {
        margin: 2rem auto 0;
    }

    .vbox-close {
        padding: 20px !important;
        top: 5px !important;
        right: 5px !important;
    }

    .vbox-next {
        right: 25px !important;
    }

    .vbox-prev {
        left: 25px !important;
    }

    .flex-content,
    .flex-content.reverse {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .flex-content .side {
        width: 100%;
    }

    .flex-content .primary-link {
        margin-top: 1.25rem;
    }

    .items {
        gap: 20px;
    }

    .items.two .item,
    .items.three .item,
    .items.four .item {
        width: 100%;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 20px;
    }

    .swiper-button-prev {
        left: -44px;
    }

    .swiper-button-next {
        right: -44px;
    }

    .items {
        .item {
            width: 100%;
        }
    }

    .items .item p {
        font-size: 0.875rem;
    }

    .items .item .link {
        height: 4.25rem;
        font-size: 1rem;
    }

    .primary-link.center {
        margin-top: 40px;
    }

    /*************************************/

    .hero {
        padding: 0;

        .bg.image {
            position: static;
            width: 100%;
            height: 50vw;
        }

        .layer {
            display: none;
        }

        .container {
            padding: 30px 20px 40px;

            h1 {
                margin-bottom: 1rem;
                font-size: 1.75rem;
            }

            p {
                font-size: 1rem;
            }
        }
    }

    .vehicles {
        padding: 40px 20px 0;

        .container {
            margin-top: 0;

            .items {
                gap: 16px;

                .item {
                    width: calc(50% - 8px);
                    flex: none;
                    padding: 20px;

                    .image {
                        width: 5.5rem;
                        height: 5.5rem;

                        img {
                            width: 3.5rem;
                            height: 3.5rem;
                        }
                    }

                    .layer {
                        font-size: 1.125rem;
                    }
                }
            }
        }
    }

    .categories {
        .categories-nav {
            margin-bottom: 40px;

            button {
                width: 100%;
                padding: 0.625rem;
                font-size: 1.875rem;

                &:first-child {
                    border-top-left-radius: 8px;
                    border-bottom-left-radius: 8px;
                }

                &:last-child {
                    border-top-right-radius: 8px;
                    border-bottom-right-radius: 8px;
                }
            }
        }

        .container > .swiper {
            padding: 0 30px;
        }

        .swiper-slide:not(.rounding) {
            .arrow {
                width: 28px;
                height: 28px;

                &.prev {
                    left: -40px;
                }

                &.next {
                    right: -40px;
                }

                img {
                    width: 16px;
                }
            }
        }

        .swiper-slide.rounding {
            
            .header {

                .code {
                    padding: 0.75rem;
                    height: 4rem;
                    min-width: 4rem;
                    font-size: 1.75rem;
                }

                .name {
                    font-size: 1.0625rem;
                }
            }

            .content {
                padding: 20px 15px;
                padding-bottom: 9rem;

                h3 {
                    font-size: 1.375rem;
                }

                h4 {
                    font-size: 1.125rem;
                }

                p, li {
                    font-size: 0.875rem;
                }

                .link {
                    padding: 12px;
                }
            }
        }

        &.subpage {
            padding: 40px 20px;

            .layer {
                top: 0;
                height: calc(100%);
            }

            .arrow {
                background-color: white;
            }
        }
    }

    .progress-1 {

        .steps {
            flex-direction: column;

            .item {
                width: 100%;
                margin-top: 45px;
                cursor: auto;

                .arrow {
                    display: none;
                }

                span {
                    left: 20px;
                    width: 80px;
                    height: 80px;
                    font-size: 1.75rem;
                }

                .content {
                    padding: 20px;
                    padding-top: 56px;

                    h3 {
                        font-size: 1.375rem;
                    }
                }

                *:not(span) {
                    width: 100%;
                    opacity: 1;
                }
            }
        }
    }

    .banner {
        margin-top: 50px;
        padding: 60px 20px;
        
        .container {
            padding: 30px 20px;

            &>* {
                font-size: 1.125rem;
            }

            h3 {
                font-size: 1.75rem;
            }
        }

        & + section {
            padding-top: 20px;
        }
    }

    .swiper-section {

        h2 {
            font-size: 1.625rem;
            margin-bottom: 2rem;
            padding-right: 0;
        }

        .reviews-swiper {

            .swiper-slide {

                .left {
                    width: calc(100% - 80px);

                    p {
                        font-size: 0.875rem;
                    }

                    h4 {
                        margin-top: 1rem;
                        padding-top: 1rem;
                        font-size: 1rem;
                    }
                }

                .right {
                    width: 80px;
                    padding: 20px;
                }
            }
        }
    }

    .relative {

        margin-bottom: 85px;

        .arrow {
            top: auto;
            bottom: -87px;

            &.prev {
                right: calc(50% + 10px);
            }

            &.next {
                right: calc(50% - 10px);
                transform: translateX(100%);
            }
        }

        .swiper-pagination {
            top: auto;
            justify-content: center;
            right: 0;
            bottom: -30px;
        }
    }

    .blog {

        h2 {
            padding-right: 0;
        }

        .link {
            position: static;
            width: 100%;
            justify-content: center;
            margin-top: 30px;
            letter-spacing: 0.03em;
            font-size: 1rem;

            img {
                height: 0.625rem;
            }
        }

        .items {
            gap: 20px;
        }

        .item {
            width: 100%;
            padding: 20px;
            min-height: 280px;

            .content {
                h3 a {
                    font-size: 1.25rem;
                }

                p {
                    font-size: 0.875rem;
                }
            }

            .arrow {
                width: 40px;
                min-width: 40px;
                height: 40px;
                min-height: 40px;

                img {
                    width: 13px;
                    height: 13px;
                }
            }
        }
    }

    .collapse-item {
        .header {
            padding: 1rem 0;

            h3 {
                font-size: 1.125rem;
            }
        }
    }

    .faq {

        .items {
            gap: 0;
        }

        .collapse-item .header {

            h3 {
                font-size: 1.125rem;
            }

            .toggle {
                width: 1.75rem;
                height: 1.75rem;
            }
        }
    }

    .c2a-card {
        .container {
            padding: 30px 20px;
            border-radius: 16px;
            margin-bottom: -100px;

            h3 {
                font-size: 1.75rem;
                max-width: 100%;
                margin-bottom: 1rem;
            }

            p {
                font-size: 1rem;
                max-width: 100%;
            }

            .primary-link {
                margin-top: 1.75rem;
            }
        }
    }

    .contact {
        padding-top: 140px;
        padding-bottom: 60px;

        .container {
            flex-direction: column;

            .left,
            .right {
                width: 100%;
            }
    
            .left {
                margin-bottom: 40px;
    
                h3 {
                    font-size: 1.75rem;
                }
    
                p {
                    font-size: 1rem;
                }
            }
    
            .right {
                padding: 20px;
    
                h3 {
                    font-size: 1.5rem;
                    margin-bottom: 1.5rem;
                }

                .socials {
                    margin-top: 1.5rem;
                }
            }
        }
    }

    .socials {
        gap: 1rem;
        margin: 1.5em 0 0;
    }

    form {
        gap: 0.625rem;
    }

    input,
    textarea,
    select,
    option {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    input.half {
        width: 100%;
    }

    form select {
        background-size: 14px;
    }

    .form-check-input+label {
        font-size: 0.75rem;
    }

    .form-check-input:checked+label::after {
        top: 0.5px;
    }

    .form-check:not(.form-group .form-check):first-of-type {
        margin-top: 0.75rem;
    }

    .contact form .primary-link {
        margin: 1rem auto 0;
    }

    footer {
        padding: 40px 20px;

        .container {
            flex-direction: column;
            align-items: center;
            gap: 20px;
            text-align: center;

            .item {
                min-width: 100%;
                max-width: 100%;
            }

            a {
                font-size: 0.875rem;
            }

            .links {
                flex-direction: column;
                gap: 0;

                a {
                    padding: 0.375rem 0;
                    font-size: 0.875rem;
                    text-align: center;
                }

                a::after {
                    display: none;
                }
            }

        }

        .footerlogo {
            max-width: 280px;
        }
    }

    .copyright {
        flex-direction: column;
        gap: 30px;
        text-align: center;

        span:not(:last-child) {
            padding-right: 0;
            border-right: 0;
            font-size: 0.875rem;
        }

        a {
            font-size: 1rem;
        }
    }

    .progress-2 {

        .collapse-item {
            margin-bottom: 0;

            .header {
                min-height: 5rem;
                margin-left: 2rem;
                padding: 1rem 1rem 1rem 3rem;
                border-radius: 8px;
                gap: 1rem;

                span {
                    width: 4rem;
                    height: 4rem;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    font-size: 1.5rem;
                    left: 0;
                }

                h3 {
                    font-size: 1rem;
                }

                .toggle {
                    width: 1.75rem;
                    height: 1.75rem;
                }
            }

            .content .inner {
                padding: 20px 0 20px 2rem;
            }
        }
    }

    .teachers-hero {
        padding-bottom: 0;
    }

    .teachers {
        padding: 40px 20px;

        .container {
            margin-top: 0;
        }

        .items {

            .item {
                width: 100%;
            }
        }
    }

    .signup-hero {
        padding-bottom: 0;

        & + .vehicles {
            background-color: var(--light);

            .container {
                margin-top: 0;
            }
        }
    }

    .vehicles + .progress-2 {
        padding-bottom: 50px;
    }

    .prices-hero + .categories {
        padding: 40px clamp(20px, 4vw, 80px) 0;

        & + .progress-1 {
            padding-bottom: 50px;
            padding-top: 60px;
        }

        .swiper {
            padding: 0;
        }
    }

    .subcategory {
        margin-top: 20px;
        flex-direction: column;

        &:first-child {
            margin-top: 10px;
        }

        .code {
            width: 100%;
            min-width: 100%;
            font-size: 1.75rem;
            padding: 0.5rem 0;
        }

        .line {

            span {
                padding: 10px;
                font-size: 0.75rem;

                &:first-child {
                    padding: 10px;
                    width: calc(100% - 12rem);
                }

                &:not(:first-child) {
                    width: 6rem;
                }

                &:nth-child(2) {
                    padding-right: 0;
                }
            }

            &:first-child span,
            &:last-child span {
                font-size: 0.8125rem;
            }
        }
    }

    .blog:nth-child(2),
    .article-header {
        padding-top: 140px;
    }

    .article {
        padding-top: 40px;

        & + .vehicles {
            margin-top: 50px;
            padding: 50px clamp(20px, 4vw, 80px);
        }
    }

    .contact-subpage {
        padding-top: 140px;

        .left {
            width: 100%;
            min-width: 100%;

            .kard {
                padding: 25px;
            }
        }

        .right {
            margin-bottom: 30px;
        }
    }

}

@media (max-width: 1023px) {

    .hero {
        margin-top: 90px;
    }

    footer {
        padding: 40px 20px;

        .container {
            flex-direction: column;
            align-items: center;
            gap: 30px;
            text-align: center;

            .footerlogo {
                display: block;
                width: 220px;
            }

            p {
                line-height: 1.3;
            }

            a {
                font-size: 0.875rem;
                line-height: 1.3;
            }

            .links {
                flex-direction: column;
                gap: 0;

                a {
                    padding: 0.375rem 0;
                    font-size: 0.875rem;
                    text-align: center;
                }

                a::after {
                    display: none;
                }
            }
        }
    }
}


@media (min-width: 767px) and (max-width: 1023px) {

    section {
        padding: 80px clamp(20px, 4vw, 80px) 0;
    }

    h2 {
        font-size: 2.75rem;
        margin-bottom: 3.5rem;
    }

    .flex-content {
        gap: 40px;
    }

    .items {
        gap: 40px;
    }

    
    form input.half {
        width: 100%;
    }

}

@media (min-width: 1024px) and (max-width: 1200px) {
    .hero {
        margin-top: 80px;
        padding-bottom: 9vw;
    }
}

@media (min-width: 1200px) and (max-width: 1440px) {}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1023px) {
    .container {
        max-width: 1023px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@keyframes move-out {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-30%);
    }
}

@keyframes move-in {
    from {
        /* opacity: 0; */
        transform: translateY(99%);
    }

    to {
        /* opacity: 1; */
        transform: translateY(0);
    }
}

::view-transition-old(content) {
    animation: 1.5s cubic-bezier(0.87, 0, 0.13, 1) both move-out;
}

::view-transition-new(content) {
    animation: 1.5s cubic-bezier(0.87, 0, 0.13, 1) both move-in;
}