@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .banner__title {
        font-size: 2.5rem;
    }

    .products__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .specs__compare {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

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

    .chat__window {
        width: 340px;
        right: -10px;
    }

    .product-detail__specs {
        grid-template-columns: 1fr;
    }

    .product-detail__pricing {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav__menu--active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__toggle {
        display: block;
    }

    .nav__actions {
        display: none;
    }

    .banner {
        padding: 100px 0 60px;
    }

    .banner__title {
        font-size: 2rem;
    }

    .banner__subtitle {
        font-size: 1.125rem;
    }

    .banner__actions {
        flex-direction: column;
        gap: 12px;
    }

    .banner__actions .btn {
        width: 100%;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

    .filter__categories {
        gap: 8px;
    }

    .filter__btn {
        padding: 6px 16px;
        font-size: 0.8125rem;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 20px;
    }

    .product-card__footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .product-card__btn {
        width: 100%;
    }

    .specs__table {
        font-size: 0.875rem;
    }

    .specs__table th,
    .specs__table td {
        padding: 12px 8px;
    }

    .trial__form {
        padding: 0 10px;
    }

    .tutorials__categories {
        flex-wrap: wrap;
    }

    .tutorials__list {
        grid-template-columns: 1fr;
    }

    .faq__categories {
        flex-wrap: wrap;
    }

    .contact__map {
        height: 300px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat__toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .chat__window {
        width: calc(100vw - 40px);
        height: 60vh;
        right: 0;
        bottom: 70px;
    }

    .modal__content {
        max-width: 95vw;
        margin: 20px;
    }

    .modal__body {
        padding: 24px;
    }

    .product-detail__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-detail__actions {
        flex-direction: column;
    }

    .toast {
        right: 20px;
        left: 20px;
        top: 80px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .banner {
        padding: 80px 0 40px;
    }

    .banner__title {
        font-size: 1.5rem;
    }

    .banner__subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 30px 0;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .section__header {
        margin-bottom: 30px;
    }

    .filter__search {
        margin-bottom: 20px;
    }

    .filter__categories {
        gap: 6px;
    }

    .filter__btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .product-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-card__logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .specs__checkboxes label {
        font-size: 0.875rem;
    }

    .form__group input,
    .form__group select,
    .form__group textarea {
        font-size: 0.875rem;
    }

    .tutorial-card__image {
        height: 150px;
        font-size: 2rem;
    }

    .faq-item__question {
        padding: 16px;
        font-size: 0.9375rem;
    }

    .faq-item__answer {
        padding: 0 16px;
        font-size: 0.875rem;
    }

    .contact__item {
        gap: 12px;
    }

    .contact__item i {
        font-size: 1.25rem;
    }

    .contact__item h4 {
        font-size: 1rem;
    }

    .contact__item p {
        font-size: 0.875rem;
    }

    .footer {
        padding: 40px 0 16px;
    }

    .footer__content {
        gap: 24px;
    }

    .footer__section h3 {
        font-size: 1rem;
    }

    .footer__section p,
    .footer__section a {
        font-size: 0.875rem;
    }

    .modal__body h2 {
        font-size: 1.5rem;
    }

    .product-detail__logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .product-detail__info h3 {
        font-size: 1.25rem;
    }

    .product-detail__section h4 {
        font-size: 1.125rem;
    }

    .product-detail__plan-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 320px) {
    .banner__title {
        font-size: 1.25rem;
    }

    .section__title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .btn--large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media print {
    .header,
    .footer,
    .chat-widget,
    .modal,
    .toast {
        display: none;
    }

    .banner {
        background: none;
        color: var(--text-color);
    }

    .product-card,
    .tutorial-card,
    .faq-item {
        break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (hover: hover) {
    .product-card:hover,
    .tutorial-card:hover {
        transform: translateY(-4px);
    }
}

@media (hover: none) {
    .product-card:active,
    .tutorial-card:active {
        transform: translateY(-2px);
    }
}
