/* =========================================================
   RESPONSIVE STYLES — единые брейкпоинты
   1024px — планшеты
   768px — мобильные
   480px — узкие телефоны
   ========================================================= */


/* =========================================================
   TABLET — 1024px
   ========================================================= */

@media (max-width: 1024px) {

    /* Container */
    .container {
        max-width: 960px;
    }

    /* ---- Hero ---- */
    .home-hero {
        padding: 40px 0;
    }

    .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-hero__title {
        font-size: 34px;
    }

    .home-hero__visual {
        display: none;
    }

    /* ---- Advantages ---- */
    .home-about {
        padding: 50px 0;
    }

    .home-about__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-about__content h2 {
        font-size: 28px;
    }

    .home-about__features {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* ---- Categories ---- */
    .home-categories {
        padding: 50px 0;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* ---- Products ---- */
    .home-products {
        padding: 50px 0;
    }

    .home-products .home-news-grid,
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .home-products .home-news-card:last-child,
    .home-news-card:last-child {
        grid-column: 1 / -1;
    }

    /* ---- Callback ---- */
    .home-contact {
        padding: 50px 0;
    }

    .home-contact__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
    }

    .home-contact__info h2 {
        font-size: 28px;
    }

    /* ---- Header ---- */
    .header-top {
        display: none;
    }

    .header-main__inner {
        min-height: 70px;
        gap: 15px;
    }

    .site-logo img {
        max-width: 150px;
    }

    .header-search {
        display: none;
    }

    .main-menu {
        gap: 15px;
    }

    .main-menu > li > a {
        font-size: 14px;
    }

    /* ---- Footer ---- */
    .footer-main {
        padding: 35px 0 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================================
   MOBILE — 768px
   ========================================================= */

@media (max-width: 768px) {

    /* Container */
    .container {
        max-width: 688px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* ---- Hero ---- */
    .home-hero {
        padding: 35px 0;
    }

    .home-hero__title {
        font-size: 26px;
    }

    .home-hero__description {
        font-size: 14px;
    }

    .home-hero__buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .home-button {
        width: 100%;
        box-sizing: border-box;
    }

    /* ---- Section titles ---- */
    .section-title {
        font-size: 22px;
    }

    .home-section-heading h2,
    .home-about__content h2,
    .home-contact__info h2 {
        font-size: 22px;
    }

    .home-section-label {
        font-size: 12px;
    }

    /* ---- Advantages ---- */
    .home-about {
        padding: 35px 0;
    }

    .home-about__features {
        grid-template-columns: 1fr;
    }

    .home-feature {
        padding: 18px;
    }

    /* ---- Categories ---- */
    .home-categories {
        padding: 35px 0;
    }

    .home-category {
        min-height: 110px;
        padding: 18px;
    }

    /* ---- Products ---- */
    .home-products {
        padding: 35px 0;
    }

    .home-products .home-news-grid,
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-products .home-news-card:last-child,
    .home-news-card:last-child {
        grid-column: auto;
    }

    .home-product-card__image {
        padding: 14px;
    }

    .home-product-card__content {
        padding: 14px;
    }

    .home-product-card__title {
        font-size: 15px;
    }

    /* ---- Callback ---- */
    .home-contact {
        padding: 35px 0;
    }

    .home-contact__inner {
        padding: 22px 14px;
    }

    .home-contact__info h2 {
        font-size: 22px;
    }

    .home-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-form__field input,
    .home-form__field textarea {
        height: 44px;
    }

    .home-form__field textarea {
        min-height: 100px;
    }

    /* ---- Header ---- */
    .header-main__inner {
        min-height: 60px;
        gap: 10px;
    }

    .site-logo img {
        max-width: 130px;
        max-height: 50px;
    }

    .catalog-button {
        min-height: 40px;
        padding: 0 15px;
        font-size: 14px;
    }

    .catalog-button__icon {
        font-size: 16px;
    }

    .catalog-button span:last-child {
        display: none;
    }

    .main-navigation {
        display: none;
    }

    .main-menu {
        display: none;
    }

    /* ---- Footer ---- */
    .site-footer {
        margin-top: 35px;
    }

    .footer-main {
        padding: 25px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-logo img {
        max-width: 150px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}


/* =========================================================
   SMALL MOBILE — 480px
   ========================================================= */

@media (max-width: 480px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-hero {
        padding: 25px 0;
    }

    .home-hero__title {
        font-size: 22px;
    }

    .home-about,
    .home-categories,
    .home-products,
    .home-contact {
        padding: 25px 0;
    }

    .home-section-heading--row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .home-feature {
        padding: 14px;
    }

    .home-feature__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .home-feature h3 {
        font-size: 15px;
    }

    .home-feature p {
        font-size: 12px;
    }
}
