body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    margin: 0 auto;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .slide-content {
        padding: 10px;
    }

    .prev, .next {
        padding: 5px;
        font-size: 16px;
    }

    header h1 {
        font-size: 24px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

/* Остальные стили */
.hero {
    background-color: #007BFF;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.services {
    padding: 20px 0;
    text-align: center;
}

.service-item {
    margin: 20px 0;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* личный кабинет пользователя*/
.user-info {
    margin-bottom: 20px;
}
.user-info p {
    margin: 5px 0;
    font-size: 16px;
}
.debt-table, .payments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.debt-table th, .debt-table td, .payments-table th, .payments-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.debt-table th, .payments-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.debt-table tr:nth-child(even), .payments-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.debt-table tr:hover, .payments-table tr:hover {
    background-color: #f1f1f1;
}

.text_container {
    max-width: 950px;
    margin: 0 auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.accordion {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    padding: 15px;
    text-align: left;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.accordion-btn:hover {
    background-color: #0056b3;
}

.accordion-btn:after {
    content: '\25BC';
    float: right;
    transition: transform 0.3s;
}

.accordion-btn.active:after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
    background-color: #f9f9f9;
}

.accordion-content.active {
    max-height: 500px;
    padding: 15px;
}

/* Стили для контейнера вкладок */
.tabs {
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: -1px;
}

.tab-btn {
    padding: 12px 25px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #fff;
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0 5px 5px 5px;
    background: #fff;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== НОВЫЕ СТИЛИ ДЛЯ НОВОСТЕЙ ========== */

/* Основной контейнер для всех новостей - УВЕЛИЧЕННЫЙ */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Вариант 1: Стили для новостей с новыми классами - УВЕЛИЧЕННЫЙ */
.news-item {
    display: flex;
    gap: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

/* Контейнер для изображения - УВЕЛИЧЕННЫЙ */
.news-image {
    flex: 0 0 300px;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер для текстового содержимого */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Дата - справа сверху, мелкая и серая */
.news-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    align-self: flex-end;
    order: -1;
    font-style: italic;
}

/* Заголовок новости - УВЕЛИЧЕННЫЙ */
.news-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

/* Текст новости - УВЕЛИЧЕННЫЙ */
.news-text {
    margin: 0;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

/* ============================================ */

/* Вариант 2: Стили для новостей с использованием существующего класса text_container - УВЕЛИЧЕННЫЙ */
.text_container.news-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.news-item-alt {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    transition: background-color 0.3s;
}

.news-item-alt:last-child {
    border-bottom: none;
}

.news-item-alt:hover {
    background-color: #fafafa;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 8px;
}

/* Контейнер для изображения (альтернативный вариант) - УВЕЛИЧЕННЫЙ */
.news-item-alt .news-image-alt {
    flex: 0 0 280px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.news-item-alt .news-image-alt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер для текстового содержимого (альтернативный вариант) */
.news-item-alt .news-content-alt {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Дата - справа сверху, мелкая и серая (альтернативный вариант) */
.news-item-alt .news-date-alt {
    font-size: 12px;
    color: #999;
    align-self: flex-end;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Заголовок новости (альтернативный вариант) - УВЕЛИЧЕННЫЙ */
.news-item-alt .news-title-alt {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
}

/* Текст новости (альтернативный вариант) - УВЕЛИЧЕННЫЙ */
.news-item-alt .news-text-alt {
    margin: 0;
    line-height: 1.8;
    color: #666;
    font-size: 16px;
}

/* ============================================ */

/* Стиль для сообщения "Новостей нет" - УВЕЛИЧЕННЫЙ */
.no-news {
    text-align: center;
    padding: 60px 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.no-news h2 {
    color: #555;
    margin-bottom: 15px;
    font-size: 28px;
}

.no-news p {
    color: #888;
    font-size: 18px;
}

/* ============================================ */

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .news-container {
        max-width: 100%;
        margin: 30px 20px;
        padding: 0 15px;
    }
    
    .text_container.news-container {
        margin: 30px 20px;
        padding: 25px;
    }
    
    .news-item {
        padding: 25px;
        gap: 25px;
    }
    
    .news-image {
        flex: 0 0 250px;
        height: 190px;
    }
    
    .news-item-alt .news-image-alt {
        flex: 0 0 230px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .news-container {
        margin: 25px 15px;
        gap: 25px;
    }
    
    .text_container.news-container {
        margin: 25px 15px;
        padding: 20px;
    }
    
    /* Вариант 1 - мобильная версия */
    .news-item {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .news-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    
    .news-date {
        align-self: flex-start;
        order: 0;
        margin-bottom: 5px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-text {
        font-size: 15px;
    }
    
    /* Вариант 2 - мобильная версия */
    .news-item-alt {
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
    }
    
    .news-item-alt .news-image-alt {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    
    .news-item-alt .news-date-alt {
        align-self: flex-start;
        margin-bottom: 5px;
    }
    
    .news-item-alt .news-title-alt {
        font-size: 20px;
    }
    
    .news-item-alt .news-text-alt {
        font-size: 15px;
    }
    
    .news-item-alt:hover {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .no-news {
        padding: 40px 20px;
        margin: 25px 15px;
    }
    
    .no-news h2 {
        font-size: 24px;
    }
    
    .no-news p {
        font-size: 16px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .news-container {
        margin: 20px 10px;
        gap: 20px;
    }
    
    .text_container.news-container {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .news-item {
        padding: 15px;
        gap: 15px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-item-alt .news-image-alt {
        height: 200px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-item-alt .news-title-alt {
        font-size: 18px;
    }
    
    .news-text {
        font-size: 14px;
    }
    
    .news-item-alt .news-text-alt {
        font-size: 14px;
    }
    
    .no-news {
        padding: 30px 15px;
        margin: 20px 10px;
    }
    
    .no-news h2 {
        font-size: 20px;
    }
    
    .no-news p {
        font-size: 14px;
    }
}