/* ==========================================================================
   1. ОБНУЛЕНИЕ И БАЗОВЫЕ НАСТРОЙКИ (RESET)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Защита от горизонтального скролла */
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 4.5rem; /* Компенсация высоты фиксированной шапки */
    display: flex;
    flex-direction: column;
    position: relative;
}

main {
    flex: 1; /* Прижимает футер к низу, если контента мало */
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   2. ШАПКА (HEADER) И НАВИГАЦИЯ
   ========================================================================== */
header {
    background: rgb(186 186 186 / 95%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 4.5rem;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-nav-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: "Great Vibes", cursive;
    font-size: 50px;
    min-width: 22rem;
    margin: 0 1rem;
}

.nav-order {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Стили ссылок в меню */
.navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navigation a {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #177c3e;
}

/* ==========================================================================
   3. КОМПОНЕНТЫ (КНОПКИ И ПР.)
   ========================================================================== */
.order-call {
    background: #5a7650;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    min-width: 9.8rem;
    transition: all 0.3s ease;
}

.order-call:hover {
    background: #177c3e;
    box-shadow: 0 4px 12px rgba(23, 124, 62, 0.2);
}

/* ==========================================================================
   4. МОБИЛЬНОЕ МЕНЮ (GAMBURGER)
   ========================================================================== */
.gamburger {
    display: none; /* По умолчанию скрыт на десктопе */
}

/* ==========================================================================
   5. АДАПТИВ (MEDIA QUERIES) - Сгруппирован по точкам
   ========================================================================== */

/* Планшеты и узкие экраны */
@media (max-width: 1180px) {
    .nav-order {
        display: none; /* Прячем обычное меню */
    } 
    .gamburger {
        display: block; /* Показываем бургер */
        margin-right: 0.5rem;
    }
    header {
        padding: 0 0.5rem;
    }
    .logo {
        min-width: 4rem;
        font-size: 2.8rem;
    }
}

/* Мобильные телефоны */
@media (max-width: 404px) {
    .logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 376px) {
    .logo {
        font-size: 2rem;
    }
}
