/* Tablet Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }
    section {
        padding: 3rem 1rem;
    }
    .products {
        grid-template-columns: 1fr 1fr;
    }
    .about,
    .contact {
        padding: 2rem 1rem;
    }
    .about_block {
        flex-direction: column;
    }
    .about_block_text {
        width: 100%;
    }
    .about_block_photo {
        width: 100%;
    }
    .about_block_photo img {
        height: 300px;
        max-height:300px;
    }
}

/* Mobile Styles */
@media (max-width: 600px) {
    .site-header .header_block {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-header .nav {
        margin-top: 0.5rem;
    }
    .site-header .nav a {
        margin-left: 0;
        margin-right: 1rem;
    }
    .hero {
        padding: 3rem 1rem;
    }
    .hero-slide h1 {
        font-size: 1.5rem;
    }
    .productS {
        grid-template-columns: 1fr;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 0.5rem 0;
    }
    .about_block {
        flex-direction: column;
    }
    .about_block_photo img {
        width: 100%;
    }
}

/* product pages */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    .related-grid {
        justify-content: space-between;
    }
}