@import "section-1.css";
@import "section-2.css";
@import "section-3.css";



body {
    margin: 0;
    padding: 0;
   font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg,  #0d0d1a, #1a1a2e 60%, #232946);
  
}

*, *::before, *::after {
    box-sizing: border-box; /* Теперь 100% — это реально 100%, включая отступы */
}


html, body {
    max-width: 100%;
    overflow-x: hidden; /* Это убьет полосу прокрутки внизу */
    position: relative;
     scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

.container {
    width: 100%;
    max-width: 1250px;
    padding: 0 1.2rem;
    margin: 0 auto;
}

.header {
    width: 100%;
    padding: 1rem 0;
    background-color: rgb(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 999;

}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.gooey-wrapper {
    display: none;
    filter: url(#ago);
    position: fixed;
    right: 20px;
    z-index: 999;
}



.burger-btn .line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}



.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-menu .open {
    opacity: 1;
    pointer-events: auto;
}

.burger-btn.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-btn.active .line:nth-child(2) {
    opacity: 0;
}
.burger-btn.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}



input:hover, select:hover {
    background: rgba(255, 255, 255, 0.22);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}



.logo {
    display: flex;
    gap: 5px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-img img {
  width: 100%;
  max-width: 50px;
}

.text-logo {
    margin: 0;
    padding: 0;
    z-index: 1;
    font-weight: 700;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.1;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 5px;
    color: #d9d9d9;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    box-shadow: 0 8px 30px rgba(133, 38, 211, 0.8);
    
}



@media (max-width: 1024px) {
    
    .section-title, .title h3 {
        font-size: 3.2rem; /* Уменьшаем гигантские заголовки, чтобы они влезали */
    }


    .feed-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        max-width: 800px;
        gap: 15px;
    }

    .filtres {
        margin-left: 0;
        justify-content: center; /* Центрируем кнопки фильтров */
    }
}


@media (max-width: 768px) {
    /* --- ШАПКА САЙТА --- */
    .header-content {
        gap: 1.2rem;
    }

    .header-nav {
        gap: 1.2rem;
        justify-content: center;
        flex-wrap: wrap; /* Разрешаем ссылкам переноситься на новую строку, если экран очень узкий */
    }

    .section-header {
        margin-top: 3rem;
    }

    .section-title, .title h3 {
        font-size: 2.8rem; /* Оптимальный читаемый размер заголовка для телефонов */
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .calculator {
        max-width: 90%;
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Лет и месяцев в возрасте теперь тоже располагаются друг под другом */
    .age-dog {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* --- КАРТОЧКИ КОРМОВ --- */
    .filtres {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap; /* Фильтры соберутся в аккуратную кучку по центру */
        gap: 10px;
    }

    .filter {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .feed-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        padding: 0 10px;
    }

    .article-card {
        max-width: 100%; /* Карточки растягиваются на весь экран мобильного */
    }

    /* --- БЛОК "О НАС" --- */
    .About-us-info {
        grid-template-columns: 1fr; /* Текст и картинка/блоки встают друг под друга */
        gap: 30px;
    }

    .block-name {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    /* --- ФУТЕР --- */
    .footer-content {
         /* Элементы футера встают по вертикали */
        gap: 1.5rem;
        text-align: center;
    }

    .footer-icon {
        justify-content: center; /* Центрируем иконки соцсетей */
    }
}


@media (max-width: 600px) {

   .header-content {
    justify-content: center;
   }



 .header-content {
        justify-content: center;
    }

    /* 1. Отключаем жидкий фоновый круг, так как теперь стекло будет на весь экран */
    .menu-bg {
        display: none;
    }

    /* 2. Контейнер для кнопки-бургера */
    .gooey-wrapper {
        display: block;
        position: fixed;
        right: 20px;
        z-index: 1001;
        filter: none;  
    }

    /* 3. Кнопка-бургер (делаем её стильным маленьким стеклянным кружком) */
    .burger-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        
        /* 🌟 СТЕКЛЯННЫЙ СТИЛЬ ДЛЯ КНОПКИ */
        background-color: rgba(255, 255, 255, 0.08); /* Полупрозрачный белый */
        backdrop-filter: blur(20px);                  /* Размытие под кнопкой */
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);  /* Тонкий стеклянный блик */
        
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: relative;
        z-index: 1002;
    }

    /* 4. 🌟 НАВИГАЦИЯ — ПРЕВРАЩАЕМ В РОСКОШНОЕ МАТОВОЕ СТЕКЛО (GLASSMORPHISM) */
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        z-index: 1000; 
        
        /* 🌟 НАСТРОЙКИ СТЕКЛА НА ВЕСЬ ЭКРАН */
       
        border-left: 1px solid rgba(255, 255, 255, 0.5); /* Едва заметная грань стекла */
        
        /* Скрываем по умолчанию */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Плавное проявление стекла */
    }

     .nav-link {
        font-size: 2rem;
        font-weight: 600;
    }

    /* Когда меню открыто — плавно проявляем стекло */
    .header-nav.open {
        opacity: 1;
         background-color: rgba(13, 13, 26, 0.45); /* Очень темный полупрозрачный тон */
        backdrop-filter: blur(50px) saturate(200%); /* Глубокое размытие сайта на фоне (как в iOS) */
        -webkit-backdrop-filter: blur(25px) saturate(180%);
    }

    /* Включаем кликабельность ссылок */
    .header-nav.open .nav-link {
        pointer-events: auto;
    }
}





@media (max-width: 480px) {
    .section-title, .title h3 {
        font-size: 1.8rem; /* Уменьшаем шрифт еще сильнее для узких экранов */
    }

    /* Немного сжимаем кнопки "+" и "-" в калькуляторе, чтобы они аккуратно влезали в ряд */
    .stepper {
        grid-template-columns: 35px 1fr 35px;
        gap: 4px;
    }
}