/* ===== ОБЩИЕ НАСТРОЙКИ ===== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html {
    height: 100%;
    /* Фон для html с !important */
    background: linear-gradient(135deg, #d5d0d0 0%, #ebe8e8 50%, #f5f3f3 100%) !important;
    background-attachment: fixed !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /* Фон для body с !important */
    background: linear-gradient(135deg, #d5d0d0 0%, #ebe8e8 50%, #f5f3f3 100%) !important;
    background-attachment: fixed !important;
    padding-top: 100px; 
}

main { 
    flex: 1 0 auto; 
}

footer { 
    flex-shrink: 0; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ===== ШАПКА ===== */
header { 
    background: #111111; 
    border-bottom: 4px solid #e53935; 
    padding: 0.8rem 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.site-logo { 
    max-height: 50px; 
    width: auto; 
    display: block; 
}

nav a { 
    color: #ffffff; 
    text-decoration: none; 
    margin-left: 2rem; 
    transition: all 0.3s; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px; 
}

nav a:hover, nav a.active { 
    color: #ff1a1a; 
    border-bottom: 2px solid #ff1a1a; 
}

/* ===== НОВАЯ ГЛАВНАЯ СТРАНИЦА ===== */
.new-hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero-image-wrapper {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #d1d1d1;
    background: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== БЛОК НОВОСТЕЙ ===== */
.news-section {
    margin-bottom: 4rem;
    border-top: 1px solid #d1d1d1;
    padding-top: 2.5rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #111;
    margin-bottom: 2rem;
    font-weight: 800;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e53935;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.news-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== PROGRAMS GRID ===== */
.programs-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 1.8rem; 
    margin-bottom: 3rem;
}

.program-card { 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 4px 14px rgba(0,0,0,0.08); 
    transition: transform 0.3s, box-shadow 0.3s; 
    border: 1px solid #e0e0e0; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.program-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.2); 
    border-color: #e53935; 
}

.program-cover {
    width: 100%;
    aspect-ratio: 1664 / 928;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    border-bottom: 3px solid #e53935;
}

.program-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.program-card:hover .program-cover img {
    transform: scale(1.03);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem 0.5rem;
}

.program-header h3 {
    margin: 0;
    color: #d32f2f;
    font-size: 1.2rem;
    font-weight: 800;
}

.program-header .service-link {
    font-size: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    background: #e53935;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.program-header .service-link:hover {
    color: #ffffff;
    background: #2e7d32;
}

.program-spacer {
    height: 0.5rem;
}

.program-card p.description {
    padding: 0 1.2rem 1.2rem;
    color: #444;
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: left;
    line-height: 1.5;
}

.program-card .btn {
    margin: 0 1.2rem 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
}

/* ===== CONTACT GRID ===== */
.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 3rem; 
}

.contact-card { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    text-align: center; 
    border-top: 3px solid #e53935; 
}

.contact-card h3 { 
    color: #d32f2f; 
    margin-bottom: 0.8rem; 
    font-size: 1.1rem; 
}

.contact-link { 
    display: inline-block; 
    margin-top: 0.5rem; 
    color: #d32f2f; 
    font-weight: bold; 
    text-decoration: none; 
    font-size: 1rem; 
}

.contact-link:hover { 
    color: #b71c1c; 
    text-decoration: underline; 
}

.content-block { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    border-left: 4px solid #e53935; 
}

.content-block ul { 
    margin-left: 1.5rem; 
    margin-top: 1rem; 
}

.content-block li { 
    margin-bottom: 0.5rem; 
    font-size: 0.95rem; 
}

/* ===== BUTTONS ===== */
.btn { 
    display: inline-block; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: all 0.3s; 
    cursor: pointer; 
    border: none; 
    text-transform: uppercase; 
}

.btn-primary { 
    background: #e53935; 
    color: white; 
    padding: 0.8rem 1.8rem; 
}

.btn-primary:hover { 
    background: #c62828; 
}

.btn-secondary { 
    background: #111; 
    color: #e53935; 
    border: 2px solid #e53935; 
    width: calc(100% - 2.4rem); 
    padding: 0.7rem 1rem; 
}

.btn-secondary:hover { 
    background: #e53935; 
    color: white; 
}

.btn-soon {
    background: #e0e0e0;
    color: #777;
    border: 2px solid #bbb;
    width: calc(100% - 2.4rem);
    padding: 0.7rem 1rem;
    cursor: default;
}

.btn-soon:hover {
    background: #d5d5d5;
    color: #555;
}

/* ===== FOOTER ===== */
footer { 
    background: #111; 
    color: #888; 
    text-align: center; 
    padding: 1.5rem 0; 
    margin-top: 3rem; 
    border-top: 3px solid #e53935; 
}

footer a { 
    color: #e53935; 
    text-decoration: none; 
    margin: 0 0.5rem; 
    font-weight: 600; 
    font-size: 0.9rem; 
}

footer a:hover { 
    color: #ff1a1a; 
    text-decoration: underline; 
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body { 
        padding-top: 130px;
    }
    
    .header-content { 
        flex-direction: column; 
        gap: 0.8rem; 
    }
    
    nav a { 
        margin: 0 0.5rem; 
        font-size: 0.75rem; 
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .news-item {
        padding: 1.2rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}