/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: #1a1a1a;
    font-weight: 600;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

ol {
    padding-left: 20px;
}

/* Навигация */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ecf0f1;
}
.logo:hover {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: #ecf0f1;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Основной контейнер и колонки */
.container {
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
}

.left-sidebar, .right-sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex: 1;
    align-self: flex-start; /* Прилипание к верху */
}

.left-sidebar h3, .right-sidebar h3 {
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.left-sidebar ul {
    list-style: none;
    padding: 0;
}
.left-sidebar ul li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.right-sidebar .tip {
    margin-bottom: 15px;
    padding: 10px;
    background: #eef7ff;
    border-left: 4px solid #3498db;
}

.main-content {
    flex: 3;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

main section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

main section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-image {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Отзывы */
.review-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review {
    background-color: #f9f9f9;
    border-left: 5px solid #2c3e50;
    padding: 20px;
    border-radius: 5px;
}
.review blockquote {
    margin: 0;
    font-style: italic;
}
.review cite {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
}

/* Форма обратной связи */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact-form button {
    padding: 12px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #3f556b;
}
.contacts-info {
    margin-top: 30px;
    padding: 20px;
    background: #f0f4f8;
    border-radius: 5px;
}


/* Виджет чата */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #3498db;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.chat-widget:hover {
    transform: scale(1.1);
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #2c3e50;
    color: #aaa;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    .left-sidebar, .right-sidebar {
        order: 1; /* Сайдбары уходят вниз на мобильных */
    }
    .main-content {
        order: 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px;
    }
}