* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #fff 0%, #f8f5e6 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4b86a;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #d4b86a;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #d4b86a 0%, #fff 50%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #d4b86a;
    color: white;
    border: 2px solid #d4b86a;
}

.btn-primary:hover {
    background: #b89c4a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 184, 106, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #d4b86a;
    border: 2px solid #d4b86a;
}

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

.btn-android, .btn-ios {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid, .news-grid, .packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card, .news-card, .package-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover, .news-card:hover, .package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 184, 106, 0.2);
}

.feature-card h3, .news-card h3, .package-card h3 {
    color: #d4b86a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* News cards */
.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.news-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Package cards */
.package-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4b86a;
    margin: 1rem 0;
}

.package-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.package-features li:last-child {
    border-bottom: none;
}

/* Map section */
.map {
    padding: 4rem 0;
    background-color: #f8f5e6;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* App download section */
.app-download {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8f5e6 100%);
}

.app-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-android {
    background: #4285f4;
    color: white;
}

.btn-ios {
    background: #000;
    color: white;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background-color: #fff;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.testimonial-card {
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: #d4b86a;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #d4b86a;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #d4b86a;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Mobile menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        z-index: 1001 !important;
        position: fixed !important;
        top: 25px !important; /* опущена на 10 px ниже (было 15 px) */
        right: 15px !important; /* отступ справа для кнопки */
        background: #f5deb3 !important; /* соломенный цвет фона кнопки */
        color: #333 !important; /* тёмный текст для контраста */
        border-radius: 50% !important; /* круглая форма */
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
        border: 1px solid #e6c2a8 !important; /* тонкая рамка в тон */
    }

    .nav {
        display: none !important;
        position: fixed !important;
        top: 70px !important; /* опущено на 10 px ниже (было 60 px) */
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        max-height: calc(100vh - 70px) !important; /* высота: весь экран минус новый отступ сверху */
        background: white !important; /* белый фон меню */
        flex-direction: column !important;
        padding: 0.5rem 0 !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        margin: 0 !important;
        border-radius: 0 0 12px 12px !important; /* скругление нижних углов */
        border-top: 2px solid #f5deb3 !important; /* акцентная линия сверху */
    }

    .nav.active {
        display: flex !important;
    }

    .nav-list {
        gap: 0.3rem !important; /* ещё меньше расстояния между пунктами */
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.25rem 0 !important;
    }

    .nav-list a {
        padding: 0.8rem 1.5rem !important;
        text-align: center !important;
        width: 90% !important; /* немного отступа по краям */
        margin: 0 auto !important; /* центрирование ссылок */
        box-sizing: border-box !important;
        display: block !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
        font-weight: 600 !important; /* чуть жирнее */
        color: #333 !important; /* тёмный текст на белом фоне */
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 8px !important;
        background: rgba(245, 222, 179, 0.1) !important; /* полупрозрачный соломенный фон */
        border: 1px solid rgba(245, 222, 179, 0.3) !important; /* лёгкая рамка */
    }

    .nav-list a:hover {
        background: rgba(245, 222, 179, 0.2) !important;
        transform: translateY(-2px) !important; /* лёгкий подъём при наведении */
        box-shadow: 0 5px 15px rgba(245, 222, 179, 0.3) !important; /* тень в тон */
        border-color: #f5deb3 !important;
    }

    .nav-list a:active {
        transform: scale(0.97) translateY(1px) !important;
        background: rgba(245, 222, 179, 0.4) !important;
        border-color: #e6c2a8 !important;
    }

    .nav-list a:last-child {
        border-bottom: none !important;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Lazy loading */
img {
    will-change: transform;
}
/* News detail page */
.news-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4b86a;
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.news-detail-page .back-link:hover {
    color: #b89c4a;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.news-meta {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.news-full-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container {
    margin-bottom: 2rem;
}

.news-video {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-content {
    line-height: 1.8;
}

.news-description h2,
.news-full-text h2 {
    color: #d4b86a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Package detail page */
.package-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4b86a;
    text-decoration: none;
    margin-bottom: 3rem;
    font-weight: 500;
    transition: color 0.3s;
}

.package-detail-page .back-link:hover {
    color: #b89c4a;
}

.package-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.package-image-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.package-full-img {
    width: 100%;
    height: auto;
    display: block;
}

.package-info {
    display: flex;
    flex-direction: column;
}

.package-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.price.large {
    font-size: 2.8rem;
    font-weight: 700;
    color: #d4b86a;
    margin: 1.5rem 0;
}

.package-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
}

.package-features-detail h3 {
    color: #d4b86a;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.package-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    color: #d4b86a;
    font-weight: bold;
    flex-shrink: 0;
}

.package-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.btn-large {
    font-size: 1.2rem;
    padding: 16px 40px;
}

/* About page */
.about-page .page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.our-goal {
    background: linear-gradient(135deg, #d4b86a 0%, #f8f5e6 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.our-goal h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info {
    background: #f8f5e6;
    padding: 2rem;
    border-radius: 15px;
}

.contact-info h3 {
    color: #d4b86a;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.about-images {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.about-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Instructors section */
.instructors .section-title {
    margin-bottom: 2rem;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 184, 106, 0.2);
}

.instructor-photo {
    width: 120px;
    height: 120px;
    background: #d4b86a;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.instructor-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.instructor-card p {
    color: #666;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header adjustments */
    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        margin-bottom: 1rem;
    }

    /* Hero section */
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-img {
        height: 180px;
    }

    /* Sections */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    /* Grid layouts */
    .features-grid,
    .news-grid,
    .packages-grid,
    .instructors-grid {
        grid-template-columns: 1fr;
    }

    /* News detail page */
    .news-article {
        max-width: 100%;
    }

    .news-full-img {
        height: 250px;
    }

    /* Package detail page */
    .package-detail-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .package-image-container {
        order: 1;
    }

    .package-info {
        order: 2;
    }

    .price.large {
        font-size: 2.2rem;
    }

    /* About page */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-images {
        grid-template-rows: 1fr;
        grid-auto-rows: 200px;
        gap: 1rem;
    }

    .about-img {
        height: 200px;
    }

    /* Testimonials */
    .testimonials-slider {
        flex-direction: column;
    }

    .testimonial-card {
        min-width: auto;
        width: 100%;
    }

    /* App download section */
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-android,
    .btn-ios {
        width: 80%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    /* Navigation */
    .nav.active {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        overflow-y: auto;
    }

    .nav-list {
        gap: 1.5rem;
    }

    /* Forms and buttons */
    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .btn-large {
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* Package features */
    .package-features li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }

    /* Contact info */
    .contact-info {
        padding: 1.5rem;
    }

    /* Instructor cards */
    .instructor-card {
        padding: 1.5rem;
    }

    .instructor-photo {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    /* Map section */
    .map-container iframe {
        height: 300px;
    }
}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .price,
    .price.large {
        font-size: 1.8rem;
    }

    .feature-card,
    .news-card,
    .package-card,
    .testimonial-card,
    .instructor-card {
        padding: 1.5rem 1rem;
    }

    .back-link {
        font-size: 0.9rem;
    }

    .app-buttons a {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .news-meta {
        font-size: 0.9rem;
    }

    .video-container {
        margin-bottom: 1rem;
    }

    .our-goal {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    body * {
        visibility: hidden;
    }
    .print-content,
    .print-content * {
        visibility: visible;
    }
    .print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print,
    .no-print * {
        display: none !important;
    }
}
.placeholder-image {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border-radius: 10px;
}
/* Видео в списке новостей */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

.news-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-thumbnail:hover .video-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-icon {
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

/* Видео в детальной новости */
.video-container {
    margin: 2rem 0;
}

.news-video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Разделение медиаконтента */
.media-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.media-image,
.media-video {
    border-radius: 10px;
    overflow: hidden;
}

/* Плейсхолдер */
.placeholder-image {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    border-radius: 10px;
}
.news-img,
.news-full-img,
.package-img {
    width: 100%;
    height: 200px; /* фиксированная высота */
    object-fit: contain; /* сохраняет пропорции, не обрезает */
    border-radius: 10px;
}
.news-video-preview {
    width: 100%;
    height: 200px; /* фиксированная высота для превью */
    object-fit: cover; /* заполняет контейнер без искажений */
    border-radius: 8px;
}

.video-container {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

/* Стили для карточек новостей */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.hero-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-img {
    max-width: 100%;
    height: auto;
    width: 200px; /* фиксированная ширина для всех изображений */
    object-fit: contain; /* сохраняет пропорции, не обрезает */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Эффект при наведении */
.hero-img:hover {
    transform: scale(1.05);
}
.about-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem; /* увеличили расстояние между фото */
    padding: 3.5rem 0; /* чуть больше отступов вокруг блока */
    margin-top: 3.5rem; /* чуть больше отступ от текста сверху */
}

.about-img {
    width: 100%;
    height: auto;
    max-width: 320px; /* было 250 px → стало 320 px */
    max-height: 260px; /* было 200 px → стало 260 px */
    object-fit: scale-down;
    border-radius: 12px; /* чуть более скруглённые углы */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* чуть более выраженная тень */
    display: block;
    margin: 0 auto 2rem; /* увеличили отступ снизу от фото */
    vertical-align: top;
}


/* Дополнительные отступы для секции "О нас", чтобы фото не налезали на верхний контент */
.about-section,
.about-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin: 0;
}

/* Отступ перед блоком с фото, чтобы отделить его от текста */
.about-content {
    margin-bottom: 2.5rem;
}
/* Базовый контейнер для медиа — теперь с адаптивным размером */
.media-wrapper {
  max-width: 100%; /* изначально занимает всю ширину */
  margin: 0 auto 1.5rem;
  display: block;
}

/* Изображения в разных секциях */
.hero-img,
.news-img,
.package-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Контейнер для видео */
.video-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.news-video-preview {
  width: 100%;
  height: auto;
  display: block;
}

/* Заглушка при отсутствии медиа */
.placeholder-image {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  max-width: 100%;
  margin: 0 auto;
}

/* Адаптивное масштабирование для сетки новостей */
.news-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Медиа в карточках новостей — размер зависит от ширины карточки */
.news-card .media-wrapper {
  max-width: 85%; /* занимает 85 % ширины карточки */
  margin-bottom: 1.2rem;
}

/* Для разных количеств карточек на экране */
@media (min-width: 1200px) {
  /* 4+ карточек — медиа чуть меньше */
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .news-card .media-wrapper {
    max-width: 75%;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* 3 карточки — медиа крупнее */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-card .media-wrapper {
    max-width: 80%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* 2 карточки — медиа ещё крупнее */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-card .media-wrapper {
    max-width: 85%;
  }
}

@media (max-width: 767px) {
  /* 1 карточка на мобильных — медиа почти во всю ширину */
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card .media-wrapper {
    max-width: 90%;
    margin-bottom: 1rem;
  }
}

/* Стили для секции hero-images */
.hero-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-images .media-wrapper {
  max-width: 22%;
  margin: 0;
}

/* Адаптивность для hero-images на мобильных */
@media (max-width: 768px) {
  .hero-images .media-wrapper {
    max-width: 45%;
  }
}

@media (max-width: 480px) {
  .hero-images .media-wrapper {
    max-width: 90%;
  }
}

/* Дополнительные стили для карточек */
.news-card,
.package-card {
  text-align: center;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Отступы для текста в карточках */
.news-card h3,
.package-card h3 {
  margin-top: 1rem;
}

.news-card p,
.package-card .price {
  margin: 0.5rem 0;
}
/* Контейнер для медиа на детальной странице — больше, чем в превью */
.news-detail-page .media-wrapper {
  max-width: 70%; /* занимает 70 % ширины контейнера (крупнее, чем в превью) */
  margin: 0 auto 2rem; /* центрирует и добавляет отступ снизу */
  display: block;
}

/* Изображения на детальной странице */
.news-full-img {
  width: 100%;
  height: auto;
  border-radius: 12px; /* более скруглённые углы для эстетики */
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* более выраженная тень */
}

/* Видео на детальной странице */
.news-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Контейнер для видео */
.video-container {
  width: 100%;
  overflow: hidden;
}

/* Разделение медиа при наличии и изображения, и видео */
.media-split {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.media-image,
.media-video {
  flex: 1;
  min-width: 300px; /* минимальная ширина блока */
}

/* Заглушка при отсутствии медиа */
.placeholder-image {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
  background: #f8f8f8;
  border-radius: 12px;
  max-width: 70%;
  margin: 0 auto;
  border: 2px dashed #ddd;
}

/* Стили для статьи */
.news-article {
  text-align: center;
}

.news-title {
  margin-bottom: 1rem;
}

.news-meta {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.news-content {
  text-align: left;
  margin-top: 3rem;
}

.news-description h2,
.news-full-text h2 {
  color: #333;
  margin-bottom: 1rem;
}

/* Адаптивность для детальной страницы */
@media (max-width: 992px) {
  .media-split {
    flex-direction: column;
  }

  .news-detail-page .media-wrapper,
  .placeholder-image {
    max-width: 85%; /* на средних экранах — больше места */
  }
}

@media (max-width: 768px) {
  .news-detail-page .media-wrapper,
  .placeholder-image {
    max-width: 95%; /* на мобильных — почти полная ширина */
    margin-bottom: 1.5rem;
  }

  .news-content {
    margin-top: 2rem;
  }
}

/* Ссылка «Назад» */
.back-link {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: #0056b3;
}
/* Стили модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.95) 0%, rgba(253, 231, 190, 0.95) 100%);
}

.modal-content {
  background: #fffdf7; /* кремовый фон */
  margin: 8% auto;
  padding: 32px;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  animation: modalFadeIn 0.4s ease-out;
  box-shadow: 0 25px 50px rgba(139, 115, 78, 0.25);
  border: 1px solid rgba(255, 219, 148, 0.3);
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 32px;
  font-weight: bold;
  color: #b4965a; /* соломенный оттенок для крестика */
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #d4b66a; /* более светлый соломенный при наведении */
}

.modal-title {
  text-align: center;
  color: #9a7c3a; /* насыщенный соломенный */
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.modal-subtitle {
  text-align: center;
  color: #a88a4a; /* чуть более тёмный соломенный */
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.contact-options {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 253, 247, 0.8);
  border-radius: 12px;
  text-decoration: none;
  color: #8b6b2e; /* тёмный соломенный для текста */
  transition: all 0.3s ease;
  border: 1px solid #ffe794;
}

.contact-option:hover {
  background: rgba(255, 231, 190, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 182, 106, 0.3);
  border-color: #ffd166; /* яркий соломенный */
}

.option-icon {
  font-size: 1.4rem;
  min-width: 24px;
}

.option-text {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
}

.option-hint {
  font-size: 0.8rem;
  color: #9c8466; /* приглушённый коричневый для подсказок */
  text-align: right;
  min-width: 100px;
}

/* Специфические стили для разных платформ */
.contact-option.vk .option-icon { color: #4f46e5; } /* синий VK оставляем как есть */
.contact-option.telegram .option-icon { color: #0088cc; } /* синий Telegram оставляем как есть */
.contact-option.app .option-icon { color: #b4965a; } /* соломенный */
.contact-option.appstore .option-icon { color: #a8a29e; } /* нейтральный серый */
.contact-option.android .option-icon { color: #b4965a; } /* соломенный */

/* Анимация появления модального окна */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .modal-content {
    margin: 5% auto;
    padding: 24px;
    width: 95%;
    max-width: none;
  }

  .contact-options {
    gap: 10px;
  }

  .contact-option {
    padding: 14px 16px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-subtitle {
    font-size: 0.85rem;
  }

  .option-text {
    font-size: 0.95rem;
  }

  .option-hint {
    font-size: 0.75rem;
  }
}

/* Эффект нажатия */
.contact-option:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(212, 182, 106, 0.4);
}

/* Плавное появление при наведении */
.contact-option {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  /* Отключаем фиксацию шапки только на мобильных устройствах */
  .header {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
}

@media (max-width: 768px) {
  /* Увеличиваем высоту меню */
  .nav.active {
    padding-top: 1.5rem !important; /* увеличенный отступ сверху */
    padding-bottom: 1.5rem !important; /* новый отступ снизу */
    max-height: 450px !important; /* увеличили высоту с 400 px до 450 px */
  }

  /* Добавляем нижнюю полоску (аналогично верхней) */
  .nav.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* толщина полоски */
    background: #f5deb3; /* цвет полоски — как у верхней; замените на нужный */
  }
}
.app-store-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    vertical-align: middle;
}

.google-play-icon {
    width: 40px;      /* увеличение в 2 раза относительно 20px */
    height: 40px;    /* увеличение в 2 раза относительно 20px */
    margin-right: 8px;
    vertical-align: middle;
}

.telegram-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    vertical-align: middle;
}

.vk-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    vertical-align: middle;
}
/* --- Контейнер секции --- */
.gallery-section {
  padding: 3rem 1rem;
  background-color: #f4f6f8;
}

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

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
  color: #2c3e50;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #7f8c8d;
  margin-top: 0;
  margin-bottom: 2.5rem;
}

/* --- Сетка: фото чуть крупнее (minmax 320px вместо 260px) --- */
.gallery-grid {
  display: grid;
  /* Автоматически подстраивает количество колонок.
     Минимум 320px — это и даёт нужный размер "чуть больше" */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; /* Чуть больше отступы между фото */
}

/* --- Карточка фото --- */
.gallery-item {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* Показывает, что элемент кликабельный */
}

/* Чтобы клик срабатывал по всей карточке */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Сохраняет пропорции, обрезает лишнее по краям */
  display: block;    /* Убирает лишние отступы снизу */
  transition: transform 0.4s ease;
}

/* Эффект при наведении (визуально "открывает" фото) */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.gallery-item:hover img {
  transform: scale(1.05); /* Лёгкое увеличение фото */
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* На телефоне строго 1 фото в ряд */
    gap: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
