@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

*{
    padding: 0;
    margin: 0;
    border: none;
    outline: none ;
    text-decoration: none;
    list-style: none;
    font-family: Quicksand;
}
.container{
    max-width: 1140px;
    padding: 0 15px;
    width: 100%;
    margin: auto;
}
.header{
  background: #2d2d2d;  
  padding: 27px 0;
}
.header__nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__nav-list{
    display: flex;
    gap: 120px;
}
.header__nav-icons{
     display: flex;
    gap: 40px;
}
.logo{
    font-weight: 700;
    font-size: 32px;
    color: white;
}
.header__nav-list a{
        color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-weight: 500;
  transition: 300ms;
}
.header__nav-list a :hover{
    color: white;
}
body{
    background: #f9f9f9;
}
.hero{
background: url(images/main.jpg);
background-size: cover;
height: 831px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 100px;
}
h1{
    color: white;
    font-size: 96px;
    font-weight: 500;
}
.btn{
    color: #000000;
    font-size: 20px;
    background: white;
    padding: 26px 36px;
    border-radius: 12px;
}
.about{
    padding: 100px 0;
    text-align: center;
}
.about p{
    max-width: 923px;
    margin: 40px auto 0;
    font-size: 20px;
    line-height: 40px;
    font-weight: 500;
}
 h2{
font-size: 40px;
color: #303030;
text-align: center;
}
.coll-card{
margin-top: 100px;
display: flex;
justify-content: space-between;
}
.coll-card__info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.coll-card__info h3{
    max-width: 555px;
    font-size: 32px;
    font-weight: 600;
}
.coll-card__info p{
    max-width: 459px;
    line-height: 30px;
    font-size: 20px;
}
.coll-card__info a{
    padding: 28px 38px;
    background: #000000;
color: white;
font-weight: 700;
font-size: 20px;
border-radius: 12px;
}
.footer{
    background: #2d2d2d;
    padding: 100px 0;
    margin-top: 100px;
}
.footer__content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.burger {
    font-size: 40px;
    color: white;
    font-weight: 900;
    display: none;
}

@media (max-width: 1140px) {
    img {
        width: 100%;
    }
    .info__left {
        max-width: 100%;
    }
}

@media (max-width:768px) {
    h1 {
        font-size: 70px;
    }
    .btn {
        padding: 10px 43px;
        font-size: 16px;
    }
    .footer__content {
        flex-direction: column;
        gap: 50px;
    }
    form {
        width: 100%;
    }
    .footer__nav {
        width: 100%;
        justify-content: space-around;
    }
    .burger {
        display: block;
    }
    .header__nav-list {
        position: fixed;
        background: #12121280;
        backdrop-filter: blur(15px);
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: .5s;
    }
    .burger:hover ~ .header__nav-list {
        transform: translateX(0);
    }
} /* --- Исправления для базовых стилей --- */
img {
    max-width: 100%; /* Чтобы картинки не вылезали за экран */
    height: auto;
}

/* --- Адаптация под Планшеты и Телефоны --- */

@media (max-width: 1140px) {
    .header__nav-list {
        gap: 40px; /* Уменьшаем гигантский отступ в меню */
    }
}

@media (max-width: 992px) {
    .coll-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    /* Чтобы вторая карточка (и все четные) тоже шли: текст, потом картинка */
    .coll-card:nth-child(even) {
        flex-direction: column;
    }

    .coll-card__info {
        align-items: center; /* Центрируем кнопку и текст */
        gap: 20px;
    }

    .coll-card__info h3, .coll-card__info p {
        max-width: 100%; /* Снимаем ограничение по ширине */
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px; /* Уменьшаем высоту на мобилках */
        gap: 50px;
    }

    h1 {
        font-size: 48px; /* 96px — слишком много для телефона */
    }

    .about {
        padding: 60px 0;
    }

    .about p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Навигация (Бургер-меню) */
    .burger {
        display: block;
        cursor: pointer;
        z-index: 100;
    }

    .header__nav-list {
        position: fixed;
        background: rgba(18, 18, 18, 0.95); /* Чуть плотнее фон для читаемости */
        backdrop-filter: blur(15px);
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: 0.5s;
    }

    /* Чтобы меню открывалось, нужно добавить класс через JS или использовать :focus-within */
    .header__nav:hover .header__nav-list {
        transform: translateX(0);
    }
    
    .header__nav-icons {
        display: none; /* Скрываем иконки на маленьких экранах для чистоты */
    }

    .footer {
        padding: 60px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
    }
    
    .btn, .coll-card__info a {
        padding: 18px 28px;
        font-size: 16px;
    }
}