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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald';
    background: #111;
    color: white;
}

header {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    height: 100px;
    background: rgb(0, 0, 0);
    box-sizing: border-box;
    z-index: 100;
}

a {
    text-decoration: none;
}

.logo {
    font-family: "Rubik Dirt", system-ui;
    font-size: 7vb;
    display: flex;
    align-items: center;
    color: white;
}

.logo span {
    font-family: "Rubik Doodle Shadow", system-ui;
    color: #ff4d00;
}

.headbutt {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.headbutt a {
    text-align: center;
    font-size: 4.4vh;
    width: 17%;
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-family: "Rubik Dirt", system-ui;
    font-weight: 400;
    font-style: normal;
}

.hero {
    padding: 100px 0 0 0;
    height: 100vh;
    position: relative;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 5vh;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Oswald';
}

.hero h1 {
    font-size: 10vh;
    font-family: "Rubik Dirt", system-ui;
}

.hero button {
    font-size: 2vh;
    font-family: 'Oswald';
    padding: 10px 25px;
    margin-top: 20px;
    background: #ff4d00;
    border: none;
    color: white;
    cursor: pointer;
}

.map {
    scroll-margin-top: 100px;
    height: 680px;
    text-align: center;
    overflow: hidden;
    position: relative;
    background-color: #222;
    z-index: 0;
}

.map video {
    position: absolute;
    width: 700px;
    bottom: 0;
    left: 0;
    z-index: -2;
}

.map::before {
    position: absolute;
    content: " ";
    height: 700px;
    width: 100px;
    background: linear-gradient(270deg,
            #222 50%,
            rgba(255, 0, 0, 0) 90%);
    left: 640px;
    z-index: -1;
}

#map-container {
    width: 100%;
    border: 2px solid #5c5c5c;
    height: 400px;
}

.deals {
    scroll-margin-top: 100px;
    font-size: 3vh;
    height: 650px;
    text-align: center;
    overflow: hidden;

    position: relative;
}

.deals h2,
.map h2,
.contact h2 {
    position: relative;
    z-index: 1;
    font-size: 5vh;
    font-family: "Rubik Doodle Shadow", system-ui;
}

.deals video {
    position: absolute;
    width: 500px;
    top: -200px;
    right: 0;
    z-index: -2;
}

.deals::before {
    position: absolute;
    content: " ";
    height: 700px;
    width: 100px;
    background: linear-gradient(90deg,
            #111 50%,
            rgba(255, 0, 0, 0) 90%);
    right: 440px;
    z-index: -1;
}

.overlay {
    padding: 25px 10px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.dark {
    background: #1a1a1a;
}

.cards {
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card {
    font-size: 1.5vh;
    border: 2px solid #5c5c5c;
    display: flex;
    flex-direction: column;
    background: #222;
    padding: 20px;
    width: 400px;
    position: relative;
    overflow: hidden;
}

.card h1 {
    z-index: 1;
}

.imgcard {
    border: 2px solid #505050;
    height: 400px;
    object-fit: cover;
    margin-bottom: 15px;
    z-index: 1;
}

.menu {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.item {
    background: #222;
    padding: 20px;
    width: 200px;
}

footer {
    text-align: center;
    padding: 20px;
    background: black;
}

.map-con {
    height: 540px;
    width: 900px;
    background-color: #222;
    margin: 20px auto;
    border: 2px solid #5c5c5c;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#map-container {
    width: 100%;
    height: 400px;
    border-bottom: 2px solid #5c5c5c;
}

.timeline {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #1a1a1a;
    padding: 5px 0px 30px 0px;
    -webkit-overflow-scrolling: touch;
}

.timeline-wrapper {
    position: relative;
    width: 1820px;
    height: 100px;
    padding: 10px 40px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #5c5c5c;
    z-index: 1;
    transform: translateY(-50%);
}

.stops-container {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    width: 100%;
    position: relative;
    z-index: 2;
}

.stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Oswald', sans-serif;
}

.stop-time {
    font-family: "Rubik Dirt", system-ui;
    font-size: 1.2rem;
    color: #ff4d00;
    margin-bottom: 8px;
}

.map-dot-container {
    border: none !important;
    background: none !important;
}

.inner-dot {
    width: 18px;
    height: 18px;
    background: #ff4d00;
    border: 2px solid #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(255, 77, 0, 0.6);
    pointer-events: none;
}

.stop-dot {
    width: 14px;
    height: 14px;
    background: #ff4d00;
    border: 2px solid #fff;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.stop:hover .stop-dot {
    transform: rotate(45deg) scale(1.3);
    background: #fff;
}

.stop-address {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
    max-width: 90px;
    line-height: 1.1;
    font-family: 'Oswald';
}

.timeline::-webkit-scrollbar {
    height: 6px;
}

.timeline::-webkit-scrollbar-track {
    background: #111;
}

.timeline::-webkit-scrollbar-thumb {
    background: #ff4d00;
    border-radius: 0;
}

.contact {
    scroll-margin-top: 100px;
    height: 470px;
    text-align: center;
    overflow: hidden;
    position: relative;
    background: #111;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-info {
    text-align: left;
    flex: 1;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    display: block;
    font-family: "Rubik Dirt", system-ui;
    color: #ff4d00;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    font-family: 'Oswald';
    color: #fff;
    text-decoration: none;
    border: 1px solid #5c5c5c;
    padding: 5px 15px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #ff4d00;
    border-color: #ff4d00;
}

.developer-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(26, 26, 26, 0.9);
    padding: 35px;
    border: 2px solid #5c5c5c;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dev-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff4d00;
    color: white;
    padding: 2px 10px;
    font-family: 'Oswald';
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.developer-card h3 {
    font-family: "Rubik Dirt", system-ui;
    color: #ff4d00;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.developer-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
}

.dev-details {
    border-top: 1px solid #333;
    padding-top: 15px;
}

.dev-line {
    margin-bottom: 10px;
    font-family: 'Oswald';
}

.dev-line span {
    color: #ff4d00;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.dev-line a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.dev-line a:hover {
    color: #ff4d00;
    text-decoration: underline;
}

.portfolio-status {
    margin-top: auto;
    font-size: 0.7rem;
    color: #5c5c5c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.headbut a {
    text-align: center;
    font-size: 3.5vh;
    width: 17%;
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-family: "Rubik Dirt", system-ui;
    font-weight: 400;
    font-style: normal;
}

.burger-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    font-size: 2.5rem;
}

.headbutt a.activehead,
.headbutt a.activehead {
    font-family: "Rubik Doodle Shadow", system-ui;
}

.headbut a.activehead,
.headbut a.activehead {
    font-family: "Rubik Doodle Shadow", system-ui;
}

.menusec {
    padding: 120px 0 50px 0;
    height: 100%;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-legend {
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu-legend h1 {
    background: url("image/menu/white-bar_bg.svg") center center no-repeat;
    color: rgb(0, 0, 0);
    font-family: "Rubik Doodle Shadow", system-ui;
    font-size: 2rem;
    display: block;
    position: relative;
    width: 100%;
    height: 55px;
    background-size: cover;
    padding-top: 14px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 4px;
    padding: 10px;
}

.menu-legend p {
    font-family: 'Oswald', sans-serif;
    color: #DDB78E;
    font-size: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.secmenu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    margin-top: 20px;
    column-gap: 50px;
    row-gap: 100px;
}

.secitem {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    margin-top: 0px;
    column-gap: 20px;
    row-gap: 0px;
}

.itemmn {
    width: 500px;
    height: 240px;
}

.itemm {
    width: 500px;
    height: 550px;
}

.itemm img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.itemm h2,
.itemmn h2 {
    font-family: "Rubik Dirt", system-ui;
    font-size: 2rem;
    margin: 15px 0;
    text-align: center;
}

.line {
    width: 70%;
    height: 2px;
    background-color: #5c5c5c;
    margin: 0 auto 15px auto;
}

.itemm p,
.itemmn p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #ccc;
    text-align: center;
    padding: 0 20px;
}




@media (max-width: 1022px) {
    .headbut a {
        font-size: 2.5vh;
        width: 20%;
    }

    .map-con {
        width: 90%;
        height: auto;
    }
}

.color {
    display: none;
}

@media (max-width: 768px) {
    .menu-legend h1 {
        width: 80%;
    }

    .secitem,
    .secmenu {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .itemmn {
        width: 90%;
        height: auto;
    }

    .itemm {
        width: 90%;
        height: auto;
    }

    .menusec {
        padding: 75px 0 50px 0;
    }

    .secitem {
        row-gap: 35px;
        margin-bottom: 20px;
    }

    .headbutt {
        display: none;
    }

    .burger-icon {
        display: flex;
    }

    .imgcard {
        height: 300px;
    }

    .card {
        height: 100%;
    }

    .headbut {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: -2;
        padding: 0 0 10px 0;
        flex-basis: 100%;
        overflow: hidden;
    }

    .color {
        position: absolute;
        display: inline;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0, 0, 0);
        z-index: -1;
    }

    .headbut.active {
        display: flex;
    }

    .headbut a {
        margin: 10px 0;
        width: 100%;
        font-size: 2rem;
        text-decoration: none;
        color: #000;
    }

    .deals {
        height: 560px;
    }

    .deals,
    .map,
    .contact {
        scroll-margin-top: 60px;
    }

    .contact {
        height: 750px;
    }

    .logo {
        font-size: 5.5vb;
    }

    header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        /* Вместо width: 100% */
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        background: #000;
        z-index: 100;
        box-sizing: border-box;
        /* Это критично */
        z-index: 1000;
        padding: 0px 10px;
        height: 70px;
        justify-content: space-between;
    }

    .hero {
        padding: 50px 0 0 0;
    }

    .hero h1 {
        font-size: 7vh;
    }

    .map {
        height: 700px;
    }

    .map-con {
        width: 100%;
        height: auto;
    }

    .contact-container {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    .developer-card {
        width: 100%;
        max-width: 400px;
    }

    .developer-card {
        padding: 20px;
    }

    .contact::before {
        display: none;
    }
}


@media (max-width: 498px) {

    .cards {
        flex-direction: column;
        align-items: center;

    }

    .card {
        width: 90%;
        height: 430px;
    }

    .deals video {
        height: 170%;
        bottom: 0;
    }

    .imgcard {
        height: 300px;
    }

    .card h1 {
        font-size: 3vh;
    }

    .deals {
        overflow: visible;
        height: auto;
    }

}