/* Исправления для главной страницы - соответствие tatprof.ru */

/* Позиционирование новостей справа от баннера */
.headerNews {
    position: absolute;
    top: 253px;
    right: 20px;
    width: 275px;
    z-index: 10;
}

.headerNews .news-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.news-slider.headerSlider .news-slide {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
}

.news-slider.headerSlider .news-slide .date {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-slider.headerSlider .news-name {
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Заголовок баннера с подсветкой */
.main-banner .text h1 {
    background: rgba(135, 206, 235, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 0;
}

/* Основная контентная секция */
.main-content-section {
    background: #f5f5f5;
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Левая колонка - текстовый контент */
.content-left {
    display: flex;
    align-items: center;
}

.content-card {
    background: transparent;
    padding: 0;
    width: 100%;
}

.section-title {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.section-title a {
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.section-title a:hover .arrow {
    transform: translateX(5px);
}

.section-subtitle {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.section-text {
    margin: 0 0 25px 0;
    line-height: 1.6;
    color: #000;
    font-size: 1rem;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #000;
    padding: 0;
    border: none;
    text-decoration: none;
    font-weight: normal;
    font-size: 1rem;
    transition: color 0.3s;
}

.portfolio-btn:hover {
    color: #007bff;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.portfolio-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Правая колонка - изображение и детали проекта */
.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-details {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.project-info {
    margin-bottom: 15px;
}

.project-info:last-child {
    margin-bottom: 0;
}

.project-info h4 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.3;
}

.project-info p {
    margin: 0;
    color: #000;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .headerNews {
        right: 10px;
        width: 250px;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .headerNews {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .content-card {
        padding: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .project-info h4 {
        font-size: 0.9rem;
    }
    
    .project-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content-section {
        padding: 20px 0;
    }
    
    .content-card {
        padding: 0;
    }
    
    .portfolio-btn {
        font-size: 0.9rem;
    }
}