@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --bg: #1B1B39;
    --bg2: #26254E;
    --bg3: #363466;
    --bg4: #3E3B9E;
    --primary: #EB3532;
    --primary2: #AD0B3C;
    --font: #7F7FAB;
    --font2: #FFFFFF;
}

html {
    font-size: 24px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--font);
    letter-spacing: 0.02em;
    text-align: justify;
}

p {
    display: block;
}

.container {
    max-width: 786px;
}

.gap-1 {
    gap: 1rem;
}

.button {
    padding: 10px 21px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary);
    color: var(--font2);
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.button:hover {
    text-decoration: none;
    color: var(--font2);
    background-color: var(--primary2);
}

.flt_svg {
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
}

.gradient-title {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    line-height: 42px;
    letter-spacing: 0.02em;
    color: var(--font2);
}

.gradient-title span {
    margin-top: -35px;
    padding: 9px 50px 22px;
    background: linear-gradient(0deg, var(--bg4) -66.32%, var(--primary2) 97.29%);
    clip-path: polygon( 0% 16.216%,0% 16.216%,0.067% 13.586%,0.259% 11.091%,0.568% 8.764%,0.981% 6.639%,1.489% 4.75%,2.082% 3.129%,2.748% 1.81%,3.478% 0.827%,4.26% 0.212%,5.085% 0%,94.915% 0%,94.915% 0%,95.74% 0.212%,96.522% 0.827%,97.252% 1.81%,97.918% 3.129%,98.511% 4.75%,99.019% 6.639%,99.432% 8.764%,99.741% 11.091%,99.933% 13.586%,100% 16.216%,100% 62.044%,100% 62.044%,99.946% 64.41%,99.789% 66.678%,99.535% 68.82%,99.193% 70.811%,98.769% 72.623%,98.27% 74.23%,97.704% 75.606%,97.077% 76.723%,96.398% 77.557%,95.672% 78.079%,50.757% 99.637%,50.757% 99.637%,50.606% 99.702%,50.455% 99.752%,50.303% 99.788%,50.152% 99.81%,50% 99.817%,49.848% 99.81%,49.697% 99.788%,49.545% 99.752%,49.394% 99.702%,49.243% 99.637%,4.328% 78.079%,4.328% 78.079%,3.602% 77.557%,2.923% 76.723%,2.296% 75.606%,1.73% 74.23%,1.231% 72.623%,0.807% 70.811%,0.465% 68.82%,0.211% 66.678%,0.054% 64.41%,0% 62.044%,0% 16.216% );
}

.header .company-logo {
    margin-bottom: -30px;
    max-width: 127px;
    height: auto;
}

.header .company-logo img {
    width: 100%;
    height: auto;
}

.header .menu ul {
    margin-bottom: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 16px;
    list-style: none;
}

.header .menu ul a {
    color: var(--font);
    text-decoration: none;
    transition: color 0.3s;
}

.header .menu ul a:hover {
    color: var(--font2);
}

section#about {
    padding: 100px 0;
    height: 100vh;
    min-height: 500px;
    color: var(--font2);
    font-size: 20px;
    font-weight: 500;
    line-height: 36px;
    background-image: url('../pictures/truck-bg.jpg');
    background-size: cover;
    background-position: center;
}

section#about h2 {
    font-size: 34px;
    font-weight: 700;
}

section#about p {
    margin-top: 26px;
}

section#about .app-links {
    margin-top: 50px;
}

section#about .app-links .button {
    height: 50px;
    width: 156px;
    display: flex;
    align-items: center;
    justify-content: center;
}

section#services {
    padding-bottom: 88px;
    background-color: var(--bg2);
    background-image: url("../pictures/tool.svg");
    background-repeat: no-repeat;
    background-size: 50vh 50vh;
    background-position: calc(100% + 4vh) 50%;
}

.service-list {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.service-item {
    height: 108px;
    display: flex;
    align-items: center;
    background-color: var(--bg);
    border-radius: 8px;
    overflow: hidden;
}

.service-title {
    margin-bottom: 0;
    padding: 40px 65px 40px 35px;
    width: 233px;
    height: 100%;
    background-color: var(--bg3);
    clip-path: polygon( 0% 7.407%,0% 7.407%,0.045% 6.206%,0.175% 5.066%,0.383% 4.003%,0.662% 3.033%,1.006% 2.17%,1.406% 1.429%,1.856% 0.827%,2.348% 0.378%,2.877% 0.097%,3.433% 0%,88.178% 0%,88.178% 0%,88.591% 0.054%,88.992% 0.211%,89.378% 0.467%,89.745% 0.816%,90.09% 1.254%,90.408% 1.776%,90.698% 2.375%,90.954% 3.048%,91.174% 3.789%,91.354% 4.593%,99.464% 47.185%,99.464% 47.185%,99.557% 47.732%,99.629% 48.29%,99.68% 48.856%,99.711% 49.427%,99.721% 50%,99.711% 50.573%,99.68% 51.144%,99.629% 51.71%,99.557% 52.268%,99.464% 52.815%,91.354% 95.407%,91.354% 95.407%,91.174% 96.211%,90.954% 96.952%,90.698% 97.625%,90.408% 98.224%,90.09% 98.746%,89.745% 99.184%,89.378% 99.533%,88.992% 99.789%,88.591% 99.946%,88.178% 100%,3.433% 100%,3.433% 100%,2.877% 99.903%,2.348% 99.622%,1.856% 99.173%,1.406% 98.571%,1.006% 97.83%,0.662% 96.967%,0.383% 95.997%,0.175% 94.934%,0.045% 93.794%,0% 92.593%,0% 7.407% );
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    color: var(--font2);
}

.service-description {
    margin-bottom: 0;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    text-align: start;
}

section#application {
    background-image: url("../pictures/road.svg");
    background-repeat: no-repeat;
    background-size: 50vh 50vh;
    background-position: calc(0% - 4vh) 50%;
}

section#user-guides {
    padding-bottom: 88px;
    background-color: var(--bg2);
    background-image: url("../pictures/arrow-down.svg");
    background-repeat: no-repeat;
    background-size: 50vh 50vh;
    background-position: calc(100% + 4vh) 50%;
}

.guide-list {
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    list-style: none;
}

.guide-item a {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: var(--font2);
    border-radius: 6px;
    cursor: pointer;
}

section#contacts {
    padding-bottom: 113px;
    background-image: url("../pictures/info.svg");
    background-repeat: no-repeat;
    background-size: 50vh 50vh;
    background-position: calc(0% - 4vh) 50%;
}

.contacts-list {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.contacts-item a {
    height: 98px;
    width: 496px;
    display: flex;
    align-items: center;
    background-color: var(--bg2);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.contacts-icon {
    width: 106px;
    height: 100%;
    background-color: var(--bg3);
    clip-path: polygon( 0% 8.163%,0% 8.163%,0.099% 6.839%,0.385% 5.583%,0.842% 4.412%,1.456% 3.342%,2.211% 2.391%,3.09% 1.575%,4.079% 0.911%,5.162% 0.416%,6.323% 0.107%,7.547% 0%,76.29% 0%,76.29% 0%,77.203% 0.06%,78.09% 0.235%,78.943% 0.521%,79.754% 0.91%,80.514% 1.398%,81.217% 1.979%,81.854% 2.647%,82.417% 3.396%,82.899% 4.22%,83.291% 5.114%,98.865% 46.951%,98.865% 46.951%,99.062% 47.544%,99.215% 48.149%,99.324% 48.761%,99.389% 49.379%,99.411% 50%,99.389% 50.621%,99.324% 51.239%,99.215% 51.851%,99.062% 52.456%,98.865% 53.049%,83.291% 94.886%,83.291% 94.886%,82.899% 95.78%,82.417% 96.604%,81.854% 97.353%,81.217% 98.021%,80.514% 98.602%,79.754% 99.09%,78.943% 99.479%,78.09% 99.765%,77.203% 99.94%,76.29% 100%,7.547% 100%,7.547% 100%,6.323% 99.893%,5.162% 99.584%,4.079% 99.089%,3.09% 98.425%,2.211% 97.609%,1.456% 96.658%,0.842% 95.588%,0.385% 94.417%,0.099% 93.161%,0% 91.837%,0% 8.163% );
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    color: var(--font);

}

.contact-link-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
    color: var(--font2);
}

.contacts-item a:hover .contact-link-text {
    text-decoration: underline;
}

.footer {
    padding: 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    background-color: var(--bg2);
}

.footer a {
    color: var(--font);
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
        font-weight: 500;
        line-height: 29px;

    }

    .header {
       height: 80px;
    }

    .header .company-logo {
        margin-bottom: -60px;
        max-width: 100px;
    }

    section#about {
        height: auto;
        padding-top: 60px;
        padding-bottom: 312px;
        background-position: 64% center;
        font-size: 18px;
        font-weight: 500;
        line-height: 29px;
    }

    section#about .app-links .button {
        padding-left: 10px;
        padding-right: 10px;
        width: 130px;
    }

    section#about .app-links .button img {
        max-width: 100%;
        height: auto;
    }

    .service-list {
        margin-top: 60px !important;
        gap: 52px;
    }

    .service-item {
        height: auto;
        flex-direction: column;
        align-items: start;
        overflow: visible;
    }

    .service-title {
        margin-top: -30px;
        padding: 15px 24px;
        width: 300px;
        clip-path: polygon( 0% 14.545%,0% 14.545%,0.034% 12.186%,0.132% 9.948%,0.289% 7.861%,0.5% 5.955%,0.758% 4.26%,1.06% 2.806%,1.399% 1.624%,1.771% 0.742%,2.169% 0.19%,2.589% 0%,93.021% 0%,93.021% 0%,93.279% 0.072%,93.532% 0.286%,93.778% 0.636%,94.016% 1.118%,94.244% 1.726%,94.46% 2.456%,94.663% 3.303%,94.852% 4.261%,95.023% 5.327%,95.177% 6.494%,99.371% 41.949%,99.371% 41.949%,99.527% 43.453%,99.648% 45.028%,99.735% 46.656%,99.787% 48.319%,99.804% 50%,99.787% 51.681%,99.735% 53.344%,99.648% 54.972%,99.527% 56.547%,99.371% 58.051%,95.177% 93.506%,95.177% 93.506%,95.023% 94.673%,94.852% 95.739%,94.663% 96.697%,94.46% 97.544%,94.244% 98.274%,94.016% 98.882%,93.778% 99.364%,93.532% 99.714%,93.279% 99.928%,93.021% 100%,2.589% 100%,2.589% 100%,2.169% 99.81%,1.771% 99.258%,1.399% 98.376%,1.06% 97.194%,0.758% 95.74%,0.5% 94.045%,0.289% 92.139%,0.132% 90.052%,0.034% 87.814%,0% 85.455%,0% 14.545% );
    }

    section#application {
        padding-bottom: 40px;
    }

    section#application img {
        max-width: 100%;
    }

    .guide-list {
        grid-template-columns: 1fr;
    }

    .guide-list > *:nth-child(even) {
        order: 1;
    }

    .contacts-item {
        width: 100%;
    }

    .contacts-icon {
        width: 80px;
    }

    .contacts-item a {
        width: 100%;
    }

    .contact-title {
        font-size: 18px;
    }

    .contact-link-text {
        font-size: 16px;
    }
}

.burger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    width: 40px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    background-color: var(--bg);
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--font2);
}

.mobile-menu.mobile-menu--active {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100%;
    padding: 30px 16px;
    background-color: var(--bg);
    z-index: 1010;
    transform: translateX(100%);
    opacity: 0;
    overflow-y: auto;
    transition: opacity 0.3s, transform 0.3s;
}

.mobile-menu-close-btn {
    color: var(--font);
    background-color: transparent;
    outline: none;
    border: none;
    box-shadow: none;
}

.mobile-menu-close-btn:hover {
    color: var(--font2);
}

.mobile-menu nav {
    margin-top: 24px;
}

.mobile-menu nav ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.mobile-menu nav a {
    padding: 8px 14px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--font);
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-menu nav a:hover {
    background-color: var(--bg2);
    color: var(--font2);
}

.mobile-menu hr {
    margin-top: 35px;
    background-color: var(--bg2);
}
