@media (min-width: 768px) {
    .footer__credits {
        margin-top: 0;
    }

    .footer__actions {
        margin-bottom: 0;
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .story__text {
        margin-top: 0;
    }

    .story__block {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }
    
    .story__block__reverse {
        flex-direction: row-reverse;
    }

    .features__content {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    .features__image {
        margin-top: 0;
    }

    .yt__wrapper {
        height: auto;
        width: 70%;
    }
}

@media (max-width: 767px) {
    .nav__links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--dark-gray);
        flex-direction: column;
        gap: 0;
        padding: 20px 5%;
        border-bottom: 1px solid var(--red);
    }
    
    .nav__links.active {
        display: flex;
    }

    .youtube-icon {
        margin: 15px 0;
      }
    
    .nav__link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav__button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .hero__content {
        padding: 20px;
        transform: translateY(20px);
    }

    .hero__content.visible {
        transform: translateY(20px);
        margin-bottom: 150px;
        margin-top: 150px;
    }
    
    
    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .features__content {
        flex-direction: column;
    }
    
    .feature__item {
        padding: 15px;
        font-size: 1rem;
    }
    
    .story__paragraph {
        font-size: 1.5rem;
    }
    
    .reviews__grid {
        grid-template-columns: 1fr;
    }
    
    .copyright__title {
        font-size: 2rem;
    }
    
    .copyright__button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .footer__actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer__button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero__content.visible {
        transform: translateY(20px);
        margin-bottom: 150px;
        margin-top: 150px;
    }

    .hero__title {
        font-size: 1.8rem;
    }
    
    .story__paragraph {
        font-size: 1.3rem;
    }
    
    .copyright__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media (max-width: 767px) {
    .fixed__nav {
        justify-content: space-between;
        padding: 15px 5%;
    }
    
    .logo {
        height: 30px;
    }
    
    .nav__button {
        width: 100%;
        padding: 12px 0;
    }
}

@media (max-width: 767px) {
    .nav__desktop-button {
        display: none;
    }
    
    .nav__button-mobile {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .nav__links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--dark-gray);
        flex-direction: column;
        gap: 0;
        padding: 20px 5%;
        border-bottom: 1px solid var(--red);
        display: none;
    }
    
    .nav__links.active {
        display: flex;
    }
    
    .nav__link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

@media (min-width: 768px) {
    .footer__content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .footer__actions {
        order: 1;
        margin-right: auto;
    }
    
    .youtube-icon__container {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer__credits {
        order: 1;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .footer__content {
        flex-direction: column;
    }
    
    .footer__credits,
    .youtube-icon__container,
    .footer__actions {
        order: initial;
        margin: 0;
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
    }
    
    .youtube-icon {
        width: 40px;
        height: 40px;
    }

}

@media (max-width: 767px) {
    .yt__video {
        margin-top: 30px;
        padding: 0 5%;
    }

    .yt__title {
        font-size: 2.5rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .yt__paragraph {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 30px;
        text-align: center;
    }

    .yt__paragraph br {
        display: none;
    }

    .story__block {
        flex-direction: column;
    }

    .yt__wrapper {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .yt__wrapper iframe {
        width: 100%;
        height: 200px;
        max-width: 100%;
    }

    .story__text {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .yt__title {
        font-size: 2rem;
    }

    .yt__paragraph {
        font-size: 1rem;
    }

    .yt__wrapper iframe {
        height: 180px;
    }
}


@media (max-width: 767px) {
    .hero__section {
        margin-top: 60px;
        min-height: 80vh;
        padding: 0 5%;
        align-items: flex-start;
        background-position: center;
    }

    .hero__content {
        width: 100%;
        padding: 20px;
        margin-top: 60px;
        transform: none;
    }

    .hero__content.visible {
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .hero__title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero__description {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero__section {
        min-height: 70vh;
    }

    .hero__content {
        margin-top: 40px;
        padding: 15px;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__description {
        font-size: 1rem;
    }
}