* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e7e3db;
}

.header {
    height: 170px;
    padding: 20px 40px 0 40px;
    display: flex;
    align-items: center;
    background: #e7e3db;
}

/* Логотип */
.logo-block img {
    height: 150px;
    width: 120px;
    display: block;
}

/* Меню */
.menu {
    display: flex;
    align-items: center;
    gap: 45px;
    margin-left: 35px;
}

.menu button {
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #4a433c;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 5px;
    transition: color 0.25s ease;
}

.menu button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 100%;
    height: 2px;

    background: #178b31;

    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}

.menu button:hover {
    color: #178b31;
}

.menu button:hover::after {
    transform: scaleX(1);
}

.lang {
    color: #178b31 !important;
}

/* Правая часть */
.right-panel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==================== Кнопка "Мы в MAX" ==================== */
.max-btn {
    display: inline-flex;
    height: 52px;              /* как у burger */
    /*display: inline-block;*/
    align-items: center;      /* по вертикали */
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    gap: 10px;
    background: rgba(16, 128, 34, 1);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;

    /* Анимация */
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.max-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(12, 141, 46, 0.35);
    background: #0a7a27;
}

.max-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Лёгкий эффект свечения при наведении */
.max-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.7s;
}

.max-btn:hover::before {
    left: 200%;
}

/* ==================== Бургер ==================== */
.burger {
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: #5a3424;
    color: white;
    font-size: 30px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger:hover {
    background: #6f3f2b;
    transform: rotate(90deg) scale(1.12);
    box-shadow: 0 6px 15px rgba(90, 52, 36, 0.3);
}

.burger:active {
    transform: rotate(90deg) scale(0.95);
}

/* ========================= ADAPTATION ================ */

/* ==================== TABLET ==================== */

@media (max-width: 1240px) {

    .header {
        height: 110px;
        padding: 10px 16px 0 16px;
    }

    .logo-block img {
        height: 100px;
        width: 80px;
    }

    .burger {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .menu {
        display: none;
    }

    .right-panel {
        margin-left: auto;
        gap: 12px;
    }

    .max-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ==================== MOBILE ==================== */

@media (max-width: 480px) {

    /*.header {*/
    /*    height: 80px;*/
    /*    padding: 0 15px;*/
    /*}*/

    /*.logo-block img {*/
    /*    height: 60px;*/
    /*    width: auto;*/
    /*}*/

    .max-btn {
        display: none;
    }

    /*.burger {*/
    /*    width: 42px;*/
    /*    height: 42px;*/
    /*    font-size: 22px;*/
    /*}*/
}