.section--launches {
    max-width: 1420px;
    margin: auto;
}

.section--launches .section__title {
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 1);
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
}

.launch-item {
    flex: 0 0 32.5%;
    margin-right: 1%;
    padding: 20px;

    background: var(--nav-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.launch-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.launch-item p {
    font-size: 15px;
    color: #cccccc;
}

.slider--launches {
    position: relative;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

.slider__viewport {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

.slider__track {
    display: flex;
    transition: transform 0.2s ease;
}

.slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 55px;
    font-size: 25px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    border-radius: 35%;
    cursor: pointer;
}

.slider__btn--prev {
    left: 0.5rem;
}

.slider__btn--next {
    right: 0.5rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal--launch.hidden {
    display: none;
}

.modal--launch .modal__content {
    width: 50%;
    height: 80%;
    padding: 40px;

    background: #1a1a1a;
    border-radius: 8px;
    color: #fff;
    overflow-y: auto;
    scrollbar-width: none;
}

.modal__content h2 {
    margin-bottom: 50px;
    font-size: 35px;
}

.modal__content p {
    margin-bottom: 10px;
    font-size: 15px;
}

.modal__content::-webkit-scrollbar {
    display: none;
}

.modal__image {
    display: block;
    margin: 30px auto 0;
    width: 100%;
    height: auto;
}

.modal__close {
    position: absolute;
    top: 13%;
    right: 26.5%;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 25px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.section--releases {
    max-width: 1420px;
    margin: 100px auto;
}

.section--releases .section__title {
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 1);
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
}

.grid--releases {
    max-width: 71%;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.releases-item {
    padding: 1rem;
    background: var(--nav-bg);
    border-radius: 8px;
}

.releases-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.releases-item p {
    font-size: 15px;
    margin-bottom: 2px;
}

.releases-item ul {
    font-size: 15px;
    list-style: none;
}

.releases-item li {
    font-size: 15px;
    margin-top: 15px;
}

.releases-item a {
    color: #4fa3f7;
    text-decoration: none;
}

.releases-item a:hover {
    color: #a0cfff;
}

.section--news {
    max-width: 1420px;
    margin: 100px auto;
}

.section--news .section__title {
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 1);
    font-family: Arial, 'Roboto', 'Helvetica Neue', 'San Francisco', sans-serif;
}

.grid--news {
    max-width: 71%;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .launch-item {
        flex: 0 0 49%;
    }

    .slider--launches {
        width: 95%;
    }

    .slider__viewport {
        width: 85%;
    }

    .modal--launch .modal__content {
        width: 70%;
        height: 80%;
        padding: 30px;
    }

    .modal__content h2 {
        margin-bottom: 30px;
        font-size: 30px;
    }

    .modal__content p {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .modal__close {
        right: 17.5%;
    }
    
    .grid--releases {
        max-width: 80%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--news {
        max-width: 80%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section--launches .section__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .launch-item {
        flex: 0 0 100%;
        padding: 12px;
    }

    .launch-item h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .launch-item p {
        font-size: 12px;
    }

    .slider--launches {
        width: 95%;
    }

    .slider__viewport {
        width: 70%;
    }

    .modal--launch .modal__content {
        width: 90%;
        height: 70%;
        padding: 25px;
    }

    .modal__content h2 {
        margin-bottom: 40px;
        font-size: 25px;
    }

    .modal__content p {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .modal__close {
        top: 16%;
        right: 7%;
    }

    .section--releases {
        margin: 50px auto;
    }
    
    .section--releases .section__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .grid--releases {
        max-width: 65%;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .releases-item h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .releases-item p {
        font-size: 12px;
    }
    
    .releases-item li {
        font-size: 12px;
        margin-top: 8px;
    }

    .section--news {
        margin: 50px auto;
    }
    
    .section--news .section__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .grid--news {
        max-width: 65%;
        grid-template-columns: repeat(1, 1fr);
    }
}