/* Современные стили для главной страницы */
.hero {
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    padding: 3rem 0 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}
.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.3rem;
    font-weight: 400;
}
.about-school {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    padding: 2rem;
}
.about-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: #f1f1f1;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Современные стили для новостей */
.news-section {
    margin-bottom: 2rem;
}

.news-section h2 {
    color: #1976d2;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.news-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    border-radius: 2px;
}

#news-feed {
    display: grid;
    gap: 1.5rem;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    border: 1px solid rgba(227, 234, 247, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.15);
    border-color: #c3d0e6;
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-title {
    margin-bottom: 0.8rem;
}

.news-title strong {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date::before {
    content: '📅';
    font-size: 0.8rem;
}

.news-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
    font-weight: 600;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: rgba(25, 118, 210, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.news-more:hover {
    background: rgba(25, 118, 210, 0.15);
    color: #0d47a1;
    text-decoration: none;
    transform: translateX(4px);
}

.news-more::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.news-more:hover::after {
    transform: translateX(2px);
}

#show-more-news {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.2);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#show-more-news::before {
    content: '📰';
    font-size: 1.1rem;
}

#show-more-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}

#show-more-news:active {
    transform: translateY(0);
}

/* Стили для кнопки "Показать все новости" */
.news-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.show-all-news {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

.show-all-news:hover {
    background: var(--secondary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.25);
}

.show-all-news:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}

@media (max-width: 768px) {
    .show-all-news {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Адаптивность для новостей */
@media (max-width: 768px) {
    .news-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .news-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .news-title strong {
        font-size: 1.1rem;
    }
    
    .news-text {
        -webkit-line-clamp: 4;
    }
    
    .news-more {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    #show-more-news {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-item {
        padding: 1rem;
    }
    
    .news-title strong {
        font-size: 1rem;
    }
    
    .news-date {
        font-size: 0.85rem;
    }
    
    .news-text {
        font-size: 0.95rem;
        -webkit-line-clamp: 5;
    }
    
    .news-more {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 700px) {
    .about-school, .about-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .about-logo {
        margin-bottom: 1rem;
    }
}
.modern-links {
    list-style: none;
    padding: 0;
}
.modern-links li {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.modern-links .icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
}
.feedback.card {
    margin: 2rem auto 0 auto;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.08);
    padding: 2rem;
}
@media (max-width: 900px) {
    .hero {
        padding: 2rem 0 1rem 0;
    }
    .about-school, .feedback.card {
        padding: 1rem;
    }
}

.banner-item {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.banner-image, .nutrition-image {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    object-fit: cover;
    display: block;
}
.nutrition-image {
    aspect-ratio: 9/16;
    height: auto;
    min-height: 320px;
}
.banner-caption {
    font-size: 0.95rem;
    color: #1976d2;
    text-align: center;
    margin-top: 0.2rem;
}
.feedback-flex {
    width: 100%;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 2vw;
}
.feedback-gosuslugi {
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 400px;
    max-width: 100%;
    min-width: 320px;
    overflow-x: auto;
    max-height: 350px;
    overflow: auto;
    margin-top: 2rem;
}
.feedback-uchreditel {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}
.feedback-uchreditel section {
    width: 100%;
    text-align: left;
}
.about-logo img, .about-logo svg {
    width: 100px;
    height: auto;
    display: block;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
@media (max-width: 900px) {
    .feedback-fullwidth {
        padding: 1rem 0;
    }
    .feedback-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1vw;
    }
} 