/* Header and language switcher styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header.visible {
    transform: translateY(0);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {    height: 125px;    width: auto;}

/* Navigation styles */
.main-nav {
    margin-right: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-nav a {
    color: #000;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #FF3B30;
}

/* Language switcher styles */
.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-dropdown {
    padding: 5px 28px 5px 10px;
    background: white;
    border: 1px solid #FF3B30;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 70px;
    color: #000;
    position: relative;
    display: flex;
    align-items: center;
    user-select: none;
}

.lang-dropdown::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #FF3B30;
    transition: transform 0.2s ease;
}

.lang-dropdown.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.lang-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #FF3B30;
    border-radius: 4px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: rgba(255, 59, 48, 0.1);
}

.lang-option.active {
    background-color: #FF3B30;
    color: white;
}

.nav-lang-group {
    display: flex;
    align-items: center;
}

/* Добавляем невидимую область для сохранения hover */
.lang-switcher::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: white;
    color: black;
    padding: 5px 25px 5px 10px;
    font-size: 14px;
    border: 1px solid #FF3B30;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.dropbtn::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #FF3B30;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #FF3B30;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #FF3B30;
    color: white;
}

.dropdown-content a.active {
    background-color: #FF3B30;
    color: white;
} 