/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --peach: #FFD6CC;
    --light-blue: #CCE7FF;
    --light-green: #D4EDDA;
    --soft-yellow: #FFF3CD;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--peach);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Nunito', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vk-btn {
    background-color: #4C75A3;
    color: white;
}

/* Шапка */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--peach);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Герой */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--peach) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.circle-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--soft-yellow), var(--light-green));
    position: relative;
    overflow: hidden;
}

.circle-img::before {
    content: "🎤📚💬";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

/* Секции */
section {
    padding: 60px 0;
}

.about-short {
    background-color: var(--white);
    text-align: center;
}

.about-short p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Форматы занятий */
.formats {
    background-color: #f0f8ff;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.format-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.format-card:hover {
    transform: translateY(-10px);
}

.format-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.format-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Отзывы */
.reviews-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
}

.review-card {
    min-width: 300px;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-image {
    height: 150px;
    background-color: var(--peach);
}

.review-content {
    padding: 20px;
}

.review-content p {
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.news-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-image {
    height: 200px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image i {
    font-size: 4rem;
    color: rgba(0,0,0,0.2);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.vk-link {
    text-align: center;
    margin-top: 40px;
}

.loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--peach);
    width: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light-blue);
    border-radius: 30px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.subscribe-note {
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-light);
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .circle-img {
        width: 250px;
        height: 250px;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
    }
}

/* Добавляем к предыдущим стилям */

/* Стили для внутренних страниц */
.page-hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--peach) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    min-height: 60vh;
}

/* Стили для страницы "О нас" */
.about-details, .program-details, .contacts-full, .all-news {
    padding: 60px 0;
}

.about-content, .program-content {
    max-width: 900px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.team-role {
    color: var(--peach);
    font-weight: 600;
    margin: 10px 0;
}

/* Стили для страницы "Программа" */
.methods-list {
    margin: 40px 0;
}

.method-item {
    margin-bottom: 30px;
    padding-left: 50px;
    position: relative;
}

.method-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--peach);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
}

.schedule {
    margin: 40px 0;
}

.schedule-item {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.schedule-day {
    background-color: var(--light-blue);
    padding: 20px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.schedule-content {
    padding: 20px;
    flex: 1;
}

.stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stage {
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.stage-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

/* Стили для страницы "Новости" */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-count {
    font-weight: 600;
    color: var(--text-dark);
}

.news-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card-full {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.news-card-full:hover {
    transform: translateY(-5px);
}

.news-image-full {
    height: 200px;
    background-color: var(--light-blue);
    overflow: hidden;
}

.news-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content-full {
    padding: 25px;
}

.news-date-full {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-content-full h3 {
    margin: 15px 0;
    font-size: 1.3rem;
}

.vk-direct-link {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
}

.vk-note {
    margin-top: 15px;
    font-size: 0.9rem;
}

.photo-gallery {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    height: 200px;
    border-radius: 15px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.gallery-label {
    position: relative;
    z-index: 1;
}

/* Стили для страницы "Контакты" */
.contacts-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.contact-form-section, .contact-info-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--peach);
}

.form-group textarea {
    resize: vertical;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item-large {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.contact-item-large:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item-large i {
    font-size: 1.5rem;
    color: var(--peach);
    margin-top: 5px;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.institutions-list {
    list-style: none;
    margin: 20px 0 30px;
}

.institutions-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.institutions-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: bold;
}

.social-links-large {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.social-btn.vk {
    background-color: #4C75A3;
}

.social-btn.tg {
    background-color: #2AABEE;
}

.social-btn.yt {
    background-color: #FF0000;
}

.map-section {
    margin-top: 60px;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #e6f2ff 100%);
    border-radius: 15px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.map-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-point {
    position: absolute;
    transform: translate(-50%, -50%);
}

.map-marker {
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.map-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.map-marker:hover + .map-tooltip {
    opacity: 1;
}

.map-note {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Дополнительные классы */
.btn-secondary {
    background-color: var(--light-blue);
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .contacts-grid-full {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section, .contact-info-section {
        padding: 25px;
    }
    
    .news-grid-full {
        grid-template-columns: 1fr;
    }
    
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-day {
        min-width: 100%;
        padding: 15px;
    }
    
    .social-links-large {
        flex-direction: column;
    }
    
    .social-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}

.vk-widget-fallback {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.fallback-posts {
    margin: 30px 0;
    text-align: left;
}

.fallback-post {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #4C75A3;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-content p {
    margin: 0;
    line-height: 1.5;
}

.fallback-actions {
    margin-top: 30px;
}

/* =========================================== */
/* СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ (news.html)     */
/* =========================================== */

/* Контейнер для всех новостей */
.all-news .container {
    max-width: 1000px;
}

/* Контролы новостей */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.news-count {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 15px;
    background-color: var(--light-blue);
    border-radius: 30px;
    font-size: 0.95rem;
}

/* Основной контейнер для виджета ВК */
#vk-news-all {
    margin: 30px 0;
}

/* Виджет ВКонтакте (iframe) */
.vk-widget-container {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.vk-widget-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.vk-title-icon {
    font-size: 3rem;
    color: #4C75A3;
    margin-bottom: 15px;
}

.vk-widget-title h3 {
    margin: 10px 0;
    color: var(--text-dark);
    font-size: 1.6rem;
}

.vk-widget-subtitle {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Iframe виджета */
.vk-iframe-widget {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    margin: 0 auto;
    background: white;
    border: none;
    width: 100%;
}

/* Подвал виджета */
.vk-widget-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.vk-direct-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4C75A3, #3a5f8a);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
}

.vk-direct-btn:hover {
    background: linear-gradient(135deg, #3a5f8a, #2b4a6b);
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(76, 117, 163, 0.2);
    color: white;
}

.vk-widget-note {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.vk-widget-note i {
    color: #4C75A3;
    margin-right: 8px;
}

/* Загрузка виджета */
.vk-widget-loading {
    text-align: center;
    padding: 60px 30px;
    background-color: var(--white);
    border-radius: 15px;
    margin: 20px 0;
}

.vk-spinner {
    font-size: 3rem;
    color: #4C75A3;
    margin-bottom: 20px;
}

.vk-widget-loading p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Сообщение об ошибке */
.vk-widget-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    text-align: center;
}

.vk-widget-error i {
    color: #856404;
    margin-right: 10px;
}

/* Запасной виджет (если iframe не работает) */
.vk-fallback-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.fallback-news {
    margin: 30px 0;
}

.fallback-post {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #4C75A3;
    transition: transform 0.3s ease;
}

.fallback-post:hover {
    transform: translateX(5px);
}

.fallback-date {
    color: #4C75A3;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fallback-content h4 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.fallback-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Ссылка на ВК внизу страницы */
.vk-direct-link {
    text-align: center;
    margin: 40px 0;
    padding: 25px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

/* Фотогалерея на странице новостей */
.all-news .photo-gallery {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.all-news .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.all-news .gallery-item {
    height: 200px;
    border-radius: 15px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.all-news .gallery-item:hover {
    transform: translateY(-5px);
}

.all-news .gallery-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.all-news .gallery-label {
    position: relative;
    z-index: 1;
}

/* Адаптивность для страницы новостей */
@media (max-width: 768px) {
    .news-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .vk-widget-container,
    .vk-fallback-widget {
        padding: 20px;
    }
    
    .vk-widget-title h3 {
        font-size: 1.4rem;
    }
    
    .vk-iframe-widget {
        height: 500px; /* Немного уменьшаем высоту на мобильных */
    }
    
    .all-news .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vk-widget-title h3 {
        font-size: 1.2rem;
    }
    
    .vk-direct-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .fallback-post {
        padding: 20px;
    }
}

/* =========================================== */
/* СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ (news.html)     */
/* =========================================== */

/* Контейнер для всех новостей */
.all-news .container {
    max-width: 1200px;
    width: 100%;
}

/* Контролы новостей */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    width: 100%;
}

/* Основной контейнер для виджета ВК */
#vk-news-all {
    margin: 30px 0;
    width: 100%;
}

/* Виджет ВКонтакте (iframe) - ГЛАВНОЕ ИЗМЕНЕНИЕ */
.vk-widget-container {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Важно для iframe */
}

.vk-widget-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    width: 100%;
}

/* Iframe виджета - КЛЮЧЕВЫЕ СТИЛИ ДЛЯ ШИРИНЫ */
.vk-iframe-widget {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    margin: 0 auto;
    background: white;
    border: none;
    width: 100% !important; /* Приоритет ширины */
    max-width: 100% !important; /* Не превышать родителя */
    min-width: 280px; /* Минимальная ширина для мобильных */
}

/* Обеспечиваем адаптивность контейнера */
.vk-widget-inner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Подвал виджета */
.vk-widget-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    width: 100%;
}

.vk-direct-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4C75A3, #3a5f8a);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
}

/* Загрузка виджета */
.vk-widget-loading {
    text-align: center;
    padding: 60px 30px;
    background-color: var(--white);
    border-radius: 15px;
    margin: 20px 0;
    width: 100%;
}

/* Запасной виджет */
.vk-fallback-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    width: 100%;
}

/* Фотогалерея на странице новостей */
.all-news .photo-gallery {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.all-news .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

/* Адаптивность - УСИЛЕННАЯ */
@media (max-width: 1200px) {
    .all-news .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .vk-widget-container {
        padding: 25px;
    }
    
    .vk-iframe-widget {
        height: 600px; /* Немного уменьшаем высоту на планшетах */
    }
}

@media (max-width: 992px) {
    .vk-widget-container {
        padding: 20px;
    }
    
    .vk-widget-title h3 {
        font-size: 1.4rem;
    }
    
    .vk-iframe-widget {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .news-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .vk-widget-container,
    .vk-fallback-widget {
        padding: 15px;
        border-radius: 12px;
    }
    
    .vk-widget-title {
        padding: 0 0 15px 0;
        margin-bottom: 20px;
    }
    
    .vk-widget-title h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .vk-widget-subtitle {
        font-size: 1rem;
    }
    
    .vk-iframe-widget {
        height: 500px;
        border-radius: 8px;
    }
    
    .vk-direct-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%; /* На мобильных кнопка на всю ширину */
        box-sizing: border-box;
    }
    
    .all-news .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .vk-widget-title h3 {
        font-size: 1.2rem;
    }
    
    .vk-iframe-widget {
        height: 450px;
        min-height: 400px; /* Гарантируем минимальную высоту */
    }
    
    .vk-widget-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .fallback-post {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .all-news .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .all-news .gallery-item {
        height: 180px;
    }
}

@media (max-width: 400px) {
    .vk-iframe-widget {
        height: 400px;
    }
    
    .vk-widget-container {
        padding: 12px;
    }
    
    .vk-title-icon {
        font-size: 2.5rem;
    }
    
    .vk-widget-loading {
        padding: 40px 20px;
    }
}

/* =========================================== */
/* АДАПТИВНЫЙ ВИДЖЕТ ВК ДЛЯ ПК                 */
/* =========================================== */

/* Контейнер с явной шириной для ПК */
@media (min-width: 993px) {
    .vk-widget-container {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    /* Сбрасываем ограничения ширины для iframe */
    .vk-iframe-widget {
        width: 100% !important;
        max-width: none !important;
        min-width: 800px !important;
        transform-origin: top left !important;
    }
    
    /* Враппер для растягивания */
    .vk-adaptive-wrapper {
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        transform: scale(1) !important;
    }
    
    /* Принудительное растягивание внутреннего контента */
    .vk-iframe-widget[src*="vk.com"] {
        transform: scale(1.05) !important;
        width: 105% !important;
        margin-left: -2.5% !important;
    }
}

/* Фикс для очень широких экранов (более 1400px) */
@media (min-width: 1400px) {
    .vk-widget-container {
        width: 100% !important;
    }
    
    .vk-iframe-widget[src*="vk.com"] {
        transform: scale(1.1) !important;
        width: 110% !important;
        margin-left: -5% !important;
    }
}

/* Фикс для ультрашироких мониторов */
@media (min-width: 1920px) {
    .vk-widget-container {
        width: 100% !important;
    }
    
    .vk-iframe-widget[src*="vk.com"] {
        transform: scale(1.15) !important;
        width: 115% !important;
        margin-left: -7.5% !important;
    }
}

/* Обеспечиваем видимость масштабированного контента */
.vk-widget-container {
    overflow: visible !important;
}

/* Кнопка для переключения режима ширины (опционально) */
.vk-width-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4C75A3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
}

.vk-width-toggle:hover {
    background: #3a5f8a;
}

/* Индикатор режима ширины */
.vk-width-indicator {
    display: inline-block;
    background: #4C75A3;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: normal;
}