/* css/style.css */

/* 1. Базовый сброс и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    font-size: 16px;
    color: #000;
}

body {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. Стили шапки (Потолок) */
.header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 2.1 Логотип - уменьшен в 2 раза */
.header__logo {
    display: block;
    flex-shrink: 0;
}

.header__logo-image {
    display: block;
    height: auto;
    width: 128px;
    max-width: 100%;
}

/* 2.2 Основное меню */
.header__nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.header__menu-item {
    display: block;
}

/* УДАЛИТЬ текущие стили .header__menu-link и связанные */
/* И ВСТАВИТЬ эти: */

.header__menu-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Эффект подчёркивания при наведении */
.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.header__menu-link:hover::after {
    width: 100%;
}

.header__menu-link:hover {
    color: #333;
}

/* Эффект при нажатии */
.header__menu-link:active {
    color: #666;
    transform: translateY(1px);
}

/* Стиль для текущей страницы */
.header__menu-link--current {
    font-weight: 700;
}

.header__menu-link--current::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
}

/* 2.3 Заглушка поиска - белое поле с тёмной обводкой, лупа справа */
/* 2.3 Заглушка поиска - белое поле с тёмной обводкой, лупа слева */
.header__search {
    flex-shrink: 0;
}

.header__search-input {
    width: 200px;
    height: 40px;
    border: 1px solid #00000094;
    border-radius: 40px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Содержимое слева */
    padding: 0 15px;
    cursor: not-allowed;
    transition: all 0.2s ease;
    position: relative;
}

/* Иконка лупы слева с поворотом */
.header__search-icon {
    display: block;
    opacity: 0.7;
    transform: rotate(-90.66deg); /* Эквивалентно 269.34° */
    transform-origin: center;
    margin-right: 10px;
}

/* Эффекты для заглушки поиска */
.header__search-input:hover {
    background-color: #f9f9f9;
    border-color: #000000CC;
}

.header__search-input:active {
    background-color: #f5f5f5;
    transform: scale(0.98);
}

/* 3. Основная область и подвал */
.main {
    flex-grow: 1;
}

.main__container,
.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer {
    background-color: #fff;
    padding: 20px 0;
}

/* 4. Адаптивность */
@media (max-width: 900px) {
    .header__container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .header__logo-image {
        width: 120px;
    }

    .header__menu {
        gap: 20px;
    }

    .header__menu-link {
        font-size: 1rem;
    }

    .header__search-input {
        width: 180px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .header__menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header__logo-image {
        width: 100px;
    }
    
    .header__search-input {
        width: 160px;
    }
}