.main_header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header_container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-sizing: border-box;
}

.header_logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    gap: 10px;
    color: #1e293b;
}

.logo_img {
    width: 32px;
    height: 32px;
}

.header_nav {
    display: flex;
    gap: 25px;
}

.nav_link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav_link:hover, .nav_link.active {
    color: #00bd8e;
}

.header_auth {
    display: flex;
    align-items: center;
}

.btn_login {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
    font-size: 15px;
    transition: color 0.2s;
}

.btn_login:hover, .btn_login.active {
    color: #00bd8e;
}

.btn_logout {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    font-size: 15px;
    transition: color 0.2s;
}

.btn_logout:hover, .btn_logout.active {
    color: #00bd8e;
}

.btn_register {
    background: #00bd8e;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}

.btn_register:hover {
    background: #009a74;
}

.btn_cabinet {
    background: #00bd8e;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}

.btn_cabinet:hover {
    background: #009a74;
}

.main_footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 30px 20px;
    width: auto;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: auto;
}

.footer_container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    box-sizing: border-box;
}

.footer_links {
    display: flex;
    gap: 20px;
}

.footer_links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer_links a:hover {
    color: #00bd8e;
}

@media (max-width: 768px) {
    .header_container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .header_nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .footer_container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer_links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.lang-switcher {
    position: relative;
    display: inline-block;
    font-family: system-ui, -apple-system, sans-serif;
    user-select: none;
    cursor: pointer;
    margin-right: 15px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.lang-current:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}

.lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lang-arrow {
    font-size: 10px;
    color: #64748b;
    margin-left: 2px;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
    color: #00bd8e;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 9999;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
}

.lang-dropdown::-webkit-scrollbar {
    width: 4px;
}
.lang-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.lang-option:hover {
    background: #f8fafc;
    color: #00bd8e;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .lang-dropdown {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}
