@font-face{
    font-family: 'RoadRadio';
    src: url('assets/fonts/RoadRadio-Bold.ttf') format('truetype');
    font-weight: bold;
}
@font-face{
    font-family: 'RoadRadio';
    src: url('assets/fonts/RoadRadio.ttf') format('truetype');
    font-weight: normal;
}


:root{
    --red: #E10A14;
    --dark-red: #780F19;
    --grey-4: #F1F1F4;
    --grey-3: #ABABBA;
    --grey-2: #5C5C70;
    --grey-1: #14141F;
    --black: #0A0A0F;
    --white: #FFFFFF;
}

body{
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    background: var(--black);
    line-height: 150%;
    font-size: 16px;
}

html{
    overflow-x: hidden;
}

a, button{
    all: unset;
    cursor: pointer;
    transition: all ease .2s;
    width: fit-content;
    font-family: 'RoadRadio';
    font-weight: bold;
}

.btn{
    font-size: 20px;
}

input{
    all: unset;
}

.wrapper{
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

h1,h2,h3,h4,h5,h6{
    padding: 0;
    margin: 0;
    font-family: 'RoadRadio', sans-serif;
    line-height: 100%;
    font-weight: bold;
}

h1{
    font-size: 96px; 
    max-width: 1060px;
}

.row{
    display: flex;
    flex-direction: row;
}

.col{
    display: flex;
    flex-direction: column;
}

.center{
    align-items: center;
}

p{
    font-size: 16px;
    font-family: 'Inter';
    font-weight: normal;
    line-height: 150%;
}

h3{
    font-size: 20px;
    line-height: 120%;
}

section{
    background: var(--black);
    color: var(--white);
    padding: 160px 0;
}

section.white{
    background: var(--white);
    color: var(--black);
}

section.page .card{
    background-color: var(--black);
    padding: 48px 36px;
}

.card__vertical{
    padding: 0 !important;
}

section.page .card:hover{
    background-color: var(--red);
}

section.grey, section.page{
    background: var(--grey-1);
    color: var(--grey-3);
}



section.page h2{
    color: var(--white);
}

mark{
    all: unset;
}

mark.red{
    padding: 0 10px;
    background: var(--red);
}

.btn__outline{
    border: 2px solid var(--red);
    padding: 16px 24px;
}

.btn__arrow{
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn__arrow::after {
    content: '';
    display: inline-block;
    width: 19px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='16' viewBox='0 0 19 16'%3E%3Cpath d='M0 7H14.5861L9.29306 1.707L10.7071 0.293L18.4141 8L10.7071 15.707L9.29306 14.293L14.5861 9H0V7Z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all ease .2s;
}

.btn__outline:hover{
    background: var(--red);
    color: var(--white);
}

.burger{
    display: none;
}

.bread {
    text-wrap: nowrap;
    overflow-x: scroll;
    color: var(--grey-2);
    margin-top: 20px;
    margin-bottom: 45px;
    gap: 10px;
    padding-bottom: 10px;
}

.bread span{
    font-family: "RoadRadio";
    transition: all ease .15s;
    color: var(--grey-3);
    font-size: 14px;
    width: fit-content;
}

.bread span:hover{
    color: white;
}

.white .btn__arrow::after{
    filter: brightness(0);
}

.white .btn__arrow:hover::after {
    filter: brightness(1);
}

.road{
    font-family: 'RoadRadio';
}

.inter{
    font-family: 'Inter';
    font-weight: normal;
}

.inter:hover{
    color: var(--white);
}

.subheading{
    font-size: 36px;
    line-height: 120%;
}

.mainscreen .subheading{
    max-width: 768px;
    margin-top: 64px;
    margin-bottom: 160px;
}

.subheading__small{
    font-size: 20px;
    line-height: 120%;
    font-family: 'RoadRadio';
}

.grey-1{
    color: var(--grey-1);
}
.grey-2{
    color: var(--grey-2);
}
.grey-3{
    color: var(--grey-3);
}
.grey-4{
    color: var(--grey-4);
}

.main__more{
    gap: 48px;
}

.header{
    z-index: 999;
    padding: 24px 0;
    position: fixed;
    width: 100%;
    font-family: 'RoadRadio';
    background: #0A0A0F80;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.mainscreen{
    padding-top: 200px;
    background: url(assets/img/bg__main.png) no-repeat center center;
    background-size: cover;
}

.header__content{
    justify-content: space-between;
}

.menu{
    gap: 48px;
    list-style: none;
}

.menu a{
    line-height: 140%;
    font-size: 16px;
    color: var(--grey-3);
}

.link{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--grey-3);
    filter: brightness(10);
    opacity: 0.65;
}

.link:hover{
    filter: brightness(1);
    opacity: 1;
}


.menu a:hover{
    color: var(--white);
}

.link:hover{
    color: var(--white);
}

.btn__small{
    background: var(--red);
    color: var(--white);
    padding: 16px 20px;
}

.btn__small:hover{
    background: var(--white);
    color: var(--grey-1);
}

h2{
    font-size: 64px;
}

.about__info{
    max-width: 768px;
}

.about__content{
    justify-content: space-around;
}

.card{
    background-color: var(--grey-1);
    color: white;
}


img, p{
    transition: all ease .2s;
}

.service .card{
    padding: 48px 36px;
}

.card p{
    color: var(--grey-2);
}

.card{
    gap: 36px;
    position: relative;
}

.card:hover{
    background-color: var(--red);
    color: var(--white);
}

.card:hover img{
    filter: brightness(30);
}

.card:hover p{
    color: var(--white);
}

h2{
    margin-bottom: 64px;
}

.section__head{
    justify-content: space-between;
    width: 100%;
    margin-bottom: 36px;
}

.section__head h2{
    margin-bottom: 0;
}

.grid__big{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.articles .grid{
    margin-top: 64px;
}

.card__bg{
    background: url(assets/img/bg__logo.svg) no-repeat right top;
    background-color: var(--grey-1);
    background-position: 420px 10px;
    background-blend-mode: soft-light;
}

.white .card {
    background-color: var(--grey-4);
    color: var(--grey-1);
}

.grid .card {
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.articles .card p{
    overflow: hidden;
    text-overflow: ellipsis;
    height: 72px;
} 

.grid .card__bg{
    background-position: 220px 10px;
}

.white .card:hover{
    color: white;
    background-color: var(--red);
}

.white .card:hover  .btn__arrow::after {
    filter: brightness(1);
}

.tag{
    gap: 10px !important;
    padding: 24px !important;
    flex-direction: row !important;
}

.tag p{
    color: var(--white);
}

.tag:hover{
    background: var(--grey-1);
}

p{
    margin: 0;
}

.equipment__content{
    gap: 20px;
}

.card__vertical .card__txt{
    padding: 36px;
}

.card__txt{
    gap: 10px;
}

.card__vertical:hover img{
    filter: unset;
}

.card__vertical{
    width: 350px;
}

.card__vertical img{
    width: -webkit-fill-available;
} 

.card__vertical .card__txt{
    gap: 10px;
}

.grid__big .card h3{
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
}

.grid__big .card p {
    overflow: hidden;
    text-overflow: ellipsis;
    height: 65px;
}

.card__vertical h3{
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
}

.card__vertical p{
    overflow: hidden;
    text-overflow: ellipsis;
    height: 72px;
}

.card__list{
    min-width: 100%;
    margin-top: 64px;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: flex-end;
}

.card__list::-webkit-scrollbar {
    height: 3px; /* Customize scrollbar height */
}

.card__list::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border-radius: 10px;
}

.grid__sm{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid__sm a, .grid__sm a img{
    width: 100%;
    max-height: 152px;
    object-fit: scale-down;
}

.grid__sm a:hover{
    background: #ABABBA50;
    transform: scale(1.1);
}

section.white.card__bg{
    background: url(../img/bg__logo.svg) no-repeat top center;
    background-color: var(--grey-4);
    background-size: 120%;
}

.links{
    width: 650px;
}

.links .col{
    gap: 20px;
}

.form .row{
    gap: 48px;
}

.form{
    gap: 20px;
    width: 768px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

input{
    transition: all ease .2s;
    padding: 14px 16px;
    background: var(--grey-1);
    color: var(--grey-2);
}


.contacts__content{
    justify-content: space-between;
}


/* Комментарий занимает всю ширину в третьей строке */
.form input:nth-child(5) {
    grid-column: 1 / -1;
}

/* Блок с кнопкой и текстом также занимает всю ширину */
.form .row {
    grid-column: 1 / -1;
}

.footer{
    padding: 96px 0;
    background: var(--grey-1);
}

.footer .logo__link{
    width: 220px;
    margin-bottom: 36px;
}

.footer__content{
    justify-content: space-between;
}

.footer__info{
    gap: 20px;
    text-align: right;
}

.footer__copyright{
    margin-top: 48px;
    justify-content: space-between;
    width: 100%;
}

.footer .links{
    width: unset;
}

input{
    color: white;
    outline: 1px solid var(--grey-1);
}

input::placeholder{
    transition: all ease .2s;
    color: var(--grey-2);
}

input:hover::placeholder{
    transition: all ease .2s;
    color: var(--grey-3);
}

input:focus{
    outline: 1px solid var(--grey-2);
}

/* Стили для бургер-меню */
.burger-menu {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.burger-menu__content {
    background-color: var(--grey-1);
    color: var(--white);
    padding: 20px;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
}

.burger-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.burger-menu__list li {
    margin: 20px 0;
}

.burger-menu__list li a {
    text-decoration: none;
    color: #;
    font-size: 18px;
    display: block;
}

/* Стили для крестика */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}


@media screen and (max-width: 1620px) {
    .wrapper{
        max-width: 1260px;
    }

    .menu {
        gap: 36px;
    }

    .header .logo__link img{
        width: 160px;
    }

    h1{
        font-size: 76px;
    }

    .about__content img{
        max-width: 380px;
    }

    .about__content p{
        margin: 10px 0;
    }

    .tag{
        gap: 30px;
    }

    .tag svg{
        width: 36px;
    }

    h2{
        font-size: 55px;
    }

    .form{
        width: 750px;
    }

    .form .row {
        gap: 20px;
    }
}


@media screen and (max-width: 1270px) {
    .wrapper{
        max-width: 1040px;
    }

    .header .link{
        display: none;
    }

    .main__more p{
        font-size: 14px;
    }

    .about img{
        display: none;
    }

    .about__info{
        max-width: 100%;
    }

    .service .card img{
        width: 60px;
    }

    .service .card{
        flex-direction: column;
        align-items: flex-start;
    }

    .service .card__txt{
        gap: 0;
    }

    .tag p{
        font-size: 12px;
    }

    h2{
        font-size: 45px;
    }

    .form .row p, .form .row a{
        font-size: 10px;
    }

    .grid .card__bg {
        background-position: 70px 10px;
    }

    .card__vertical .card__txt {
        padding: 20px;
    }

    .card__vertical {
        width: 320px;
    }
}


@media screen and (max-width: 1060px) {
    .wrapper{
        max-width: 920px;
    }

    .card__vertical {
        width: 320px;
    }

    .main__more{
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .btn__small {
        font-size: 14px;
        background: var(--red);
        color: var(--white);
        padding: 10px 20px;
    }

    .menu {
        gap: 24px;
    }

    .menu a{
        font-size: 12px;
    }

    h1 {
        max-width: 760px;
        font-size: 56px;
    }

    .mainscreen .subheading {
        max-width: 560px;
        margin-top: 64px;
        margin-bottom: 160px;
    }

    .subheading{
        font-size: 24px;
    }

    .grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contacts__content {
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .links{
        align-items: center;
    }

    .links h2 {
        text-align: center;
        max-width: 450px;
        font-size: 45px;
    }

    .footer__info p{
        font-size: 12px;
    }
    
    .links .col{
        align-items: center;
    }

    .form .row {
        gap: 20px;
        align-items: center;
        justify-content: center;
    }
}


@media screen and (max-width: 940px) {
    .wrapper{
        max-width: 750px;
    }

    .service .card {
        padding: 36px 24px;
    }

    .menu{
        display: none;
    }

    .burger-menu.active {
        display: block;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .header .btn__small{
        display: none;
    }

    .burger{
        display: block;
        width: 48px;
        height: 48px;
    }

    .header{
        padding: 12px 0;
    }

    .header .logo__link{
        display: flex;
        align-items: center;
    }

    .equipment__content .grid{
        grid-template-columns: repeat(1, 1fr);
    }
}


@media screen and (max-width: 770px) {
    .wrapper{
        max-width: 520px;
    }

    .white .card{
        padding: 28px 20px;
    }

    .card p{
        font-size: 14px;
    }

    h3{
        font-size: 18px;
        height: 45px;
    }

    .grid, .grid__big{
        grid-template-columns: repeat(1, 1fr) ;
    }

    .grid__sm{
        grid-template-columns: repeat(2, 1fr) ;
    }

    .grid__big .card{
        box-sizing: border-box;
        width: 100%;
    }

    .card__vertical h3 {
        height: 46px;
    }

    .card__vertical p {
        height: 63px;
    }

    section.white.card__bg {
        background: url(../img/bg__logo.svg) no-repeat center center;
        background-color: var(--grey-4);
        background-size: 120%;
    }

    .section__head {
        flex-direction: column;
        gap: 24px;
    }

    .footer__content {
        flex-direction: column;
        justify-content: center;
        gap: 36px;
    }

    .footer__info {
        gap: 20px;
        text-align: center;
    }

    .footer__copyright {
        margin-top: 48px;
        justify-content: space-between;
        width: 100%;
        flex-direction: column-reverse;
        gap: 24px;
    }

    .form {
        gap: 20px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .form .row {
        gap: 20px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .form .row .col{
        align-items: center;
    }

    h1 {
        max-width: 100%;
        font-size: 48px;
    }
}


@media screen and (max-width: 540px) {
    .wrapper{
        max-width: 360px;
    }

    .main__more p {
        font-size: 12px;
    }

    h1{
        font-size: 36px;
    }

    h2{
        font-size: 32px;
    }

    h3{
        font-size: 16px;
    }

    p{
        font-size: 12px;
    }

    .btn{
        font-size: 16px;
    }

    .articles .card p {
        overflow: hidden;
        text-overflow: ellipsis;
        height: 67px;
    }

    .card__vertical h3 {
        height: 40px;
    }

    .links h2 {
        text-align: center;
        max-width: 320px;
        font-size: 32px;
    }
    
    .mainscreen{
        padding-top: 120px;
    }

    section{
        padding: 90px 0;
    }

    .subheading__small{
        font-size: 16px;
    }
}

@media screen and (max-width: 365px) {
    .wrapper{
        max-width: 300px;
    }

    .tag {
        gap: 8px;
        padding: 16px;
    }

    .footer__info p {
        font-size: 10px;
    }

    .footer__copyright .inter{
        font-size: 10px;
    }

    .grid__big .card p {
        overflow: hidden;
        text-overflow: ellipsis;
        height: 66px;
    }

    .service .card {
        padding: 24px 12px;
    }

    .subheading {
        font-size: 16px;
    }

    h1{
        font-size: 30px;
    }

}
