* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Шапка */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
}

.logo img {
    max-width: 75px;
}

/* Поиск */
.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Язык */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.language-btn:hover {
    border-color: #ff0000;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 1001;
    min-width: 150px;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #ffebee;
    color: #ff0000;
}

.language-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 60px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 60px);
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mobile-menu a:hover {
    background-color: #f0f0f0;
}

.mobile-menu .submenu {
    padding-left: 20px;
    display: none;
}

.mobile-menu .has-submenu > a::after {
    content: "▼";
    float: right;
    font-size: 10px;
    transition: transform 0.3s;
}

.mobile-menu .has-submenu.active > a::after {
    transform: rotate(180deg);
}

/* Основная структура */
.container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
}

/* Левая панель навигации */
.sidebar-left {
    width: 250px;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 20px 0;
    position: fixed;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 900;
}

.sidebar-left ul {
    list-style: none;
}

.sidebar-left li {
    padding: 8px 20px;
}

.sidebar-left li a {
    text-decoration: none;
    color: #333;
    display: block;
    transition: all 0.2s;
}

.sidebar-left li a:hover {
    background-color: #f0f0f0;
    padding-left: 5px;
}

.sidebar-left .submenu {
    padding-left: 20px;
    display: none;
}

.sidebar-left .has-submenu > a::after {
    content: "▼";
    float: right;
    font-size: 10px;
    transition: transform 0.3s;
}

.sidebar-left .has-submenu.active > a::after {
    transform: rotate(180deg);
}

/* Основной контент */
.content {
    flex: 1;
    margin: 0 300px 0 250px;
    padding: 30px;
    background-color: #fff;
    overflow-y: auto;
    min-height: calc(100vh - 60px);
}

.content h1 {
    margin-bottom: 20px;
    color: #333;
}

.content h2 {
    margin: 25px 0 15px;
    color: #444;
}

.content p {
    margin-bottom: 15px;
}

.content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content li {
    margin-bottom: 8px;
}

.content .feature-list {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.feedback {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.feedback p {
    margin-bottom: 10px;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-btn:hover {
    background-color: #f0f0f0;
}

.feedback-btn.active {
    background-color: #ffcc00;
    border-color: #ffcc00;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-link {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Правая панель */
.sidebar-right {
    width: 300px;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 20px;
    position: fixed;
    right: 0;
    height: calc(100vh - 60px);
    z-index: 900;
}

.sidebar-right h3 {
    margin-bottom: 15px;
    color: #333;
}

.sidebar-right ul {
    list-style: none;
    margin-bottom: 20px;
}

.sidebar-right li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.sidebar-right li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
}

/* Оверлей для мобильного меню */
.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.overlay.active {
    display: block;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .sidebar-right {
        width: 250px;
    }
    
    .content {
        margin-right: 250px;
    }
    
    .search-container {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar-left {
        width: 200px;
    }
    
    .sidebar-right {
        width: 200px;
    }
    
    .content {
        margin-left: 200px;
        margin-right: 200px;
    }
    
    .search-container {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .sidebar-left, .sidebar-right {
        display: none;
    }
    
    .content {
        margin: 0;
        padding: 20px;
    }
    
    .search-container {
        display: none;
    }
    
    .language-selector {
        margin-right: 15px;
    }
    
    .mobile-search {
        display: block;
        margin: 20px 0;
    }
    
    .mobile-search .search-container {
        display: block;
        width: 100%;
    }
}