* {
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: monospace;
}

.big_text {
    font-size: 2.5vw;
}

.main_text {
    font-size: 1.5vw;
}

.normal_text {
    font-size: 1.0vw;
}

.small_text {
    font-size: 0.6vw;
}

.super_small_text {
    font-size: 0.5vw;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.main_photo {
    background-image: url("../photo/road.png");
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    padding-top: 10px;
}
.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 48px;
    align-items: center;
}
.nav__list-item {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.nav__list-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff4444;
    transition: width 0.3s ease;
}
.nav__list-item:hover {
    color: #ff4444;
}
.nav__list-item:hover::after {
    width: 100%;
}


.tel {
    color: rgb(255, 255, 255);
    margin-left: auto;
    padding: 80px;
}


.logo {
    color: rgb(255, 255, 255);
    margin-right: auto;
    height: 100%;
}


.small_info {
    width: 40%;
    font-weight: bold;
    color: white;
    margin: 5vw;
}


.types { 
    grid-template-columns: repeat(4, 23%); 
    height: 20%;
    grid-gap: 10px;
    display: grid;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.05);
}

.types__item { 
    color: white;
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.types__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}


.menu-toggle {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    cursor: pointer;
    z-index: 200;
    position: relative;
}

.burger__line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}


.container {
    display: flex;
    flex-direction: row;
}

.container__text {
    background-color: rgb(15, 13, 42);
    width: 70%;
    justify-items: center;
    padding-bottom: 20px;
}

.container__text h3{
    color: white;
    margin: 10px;
}

.container__text p{
    color: rgb(213, 200, 200);
    width: 50%;
}

.container__gradient {
    position: relative;
    width: 30%;
    overflow: hidden;
}

.container__gradient-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container__gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(15, 13, 42, 1) 0%,
        rgba(15, 13, 42, 0.6) 20%,
        rgba(15, 13, 42, 0) 100%
        );
}


.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    background-color: #fff;
    padding: 60px;
    margin: 0 auto;
}

.grid-container__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grid-container__item p {
    color: #555;
}


footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3b4345 100%);
}

.footer__content {
    width: 80%;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.footer__top {
    text-align: center;
    margin-bottom: 40px;
}

.footer__logo h3 {
    color: white;
    margin: 0 0 10px 0;
}

.footer__tagline {
    color: white;
    margin: 0;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contacts__cell {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacts__cell:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contacts__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.contacts__label {
    color: #3498db;
}

.contacts__text {
    color: white;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: #95a5a6;
}


@media (max-width: 768px) {
    .main_text {
        font-size: 2.5vw;
    }

    .big_text {
        font-size: 3.5vw;
    }

    .small_info {
        width: 60%;
    }

    .normal_text {
        font-size: 2.0vw;
    }

    .small_text {
        font-size: 1.6vw;
    }

    .super_small_text {
        font-size: 1.2vw;
    }

    .burger {
        display: flex;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 40%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 150;
    }

    .nav__list {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .tel {
        display: none;
    }

    .contacts {
        width: 100%;
    }

    .contacts__cell {
        padding: 10px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .menu-toggle:checked ~ .nav {
        right: 0;
    }

    .menu-toggle:checked ~ .burger .burger__line:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle:checked ~ .burger .burger__line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .burger .burger__line:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .types {
        grid-template-columns: repeat(2, 45%);
        grid-gap: 2vw;
    }

    .contacts {
        grid-template-columns: repeat(1, 1fr);
    }
}