:root {
    --primary-color: #4f9242;
    --secondary-color: #378541;
    --accent-color: #FFD166;
    --dark-color: #292F36;
    --light-color: #F7FFF7;
    --text-color: #333;
    --text-light: #777;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - Центрированная навигация (без фиксированного позиционирования) */
header {
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247,255,247,0.98) 100%);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 140px;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.logo img {
    height: 90px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
    margin-bottom: 15px;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.main-nav {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    margin: 0 15px;
    position: relative;

}

.main-nav a {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
}

/* Hero Banner - Баннер с ежиком */
.hero-banner {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 100, 44, 0.4);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 20px auto 0;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    display: block;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.value-card p {
    color: var(--text-light);
}

/* Programs Section */
.programs-section {
    padding: 100px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.program-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.program-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.program-duration {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--secondary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

.all-news-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 30px;
}

.all-news-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 78, 137, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    text-align: center;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info-item p {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item small {
    color: var(--text-light);
}

.contact-info-item a {
    transition: var(--transition);
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    padding: 0 0 100px;
}

.map-container-full {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer - На всю ширину */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
    width: 100%;
    margin: 0;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-subscribe h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.subscribe-form {
    display: flex;
    margin-bottom: 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Montserrat', sans-serif;
}

.subscribe-form button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.footer-subscribe p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}
.news-page-header {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(255,209,102,0.1) 100%);
}

.all-news-section {
    padding: 50px 0 100px;
    background: white;
}

.news-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.all-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
}

.page-btn.next {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Адаптивность для страницы новостей */
@media (max-width: 768px) {
    .news-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .all-news-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
        position: relative;
        height: 140px;
    }
    
    .logo {
        margin-bottom: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 25px;
    }
    
    .logo img {
        height: 80px;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 50px;
        right: 20px;
        z-index: 1001;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--dark-color);
        cursor: pointer;
    }
    
 .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px 40px;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 1002; /* Увеличиваем z-index */
    }
    
    .main-nav.active {
        left: 0;
    }
     .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .main-nav li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
        font-weight: 600;
        border-bottom: 1px solid #eee;
    }
    
    .hero-text {
        max-width: 90%;
        padding: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    /* Затемнение фона при открытом меню */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }
    
    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
        left: 80%;
    }
     .menu-toggle {
        z-index: 1003;
    }
}
@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .value-card, .program-card, .news-card {
        padding: 25px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* Добавим эти стили в конец файла */

/* Параллакс эффект для героя */
.hero-banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1560114928-5b7a64f15dc9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,53,0.7) 0%, rgba(0,78,137,0.7) 100%);
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-badge-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Анимация плавающих элементов */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Улучшенный футер */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    width: 100%;
    margin: 0;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .hero-badge-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
    }
}

/* Улучшенная навигация */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 15px 0;
}

@media (min-width: 901px) {
    .header-container {
        flex-direction: row;
        padding: 0 20px;
    }
    
    .logo {
        margin-bottom: 0;
    }
}

/* Эффекты при наведении для карточек */
.value-card:hover, .program-card:hover, .testimonial-card:hover, 
.news-card:hover, .contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Исправление для отображения рейтинга 4.9 */
.stat-number[data-count="4.9"]::after {
    content: ".9";
}
/* Стили для уведомления о бронировании */
.booking-notice {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px 0;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.notice-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.notice-text {
    flex: 1;
    min-width: 300px;
}

.notice-text h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.notice-text a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

.notice-text a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-text {
        min-width: auto;
    }
}
/* Новогодний квест раздел - улучшенная версия */
.new-year-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%);
}

.new-year-program {
    max-width: 1200px;
    margin: 0 auto;
}

.program-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Сетка активностей - улучшенная */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-content {
    padding: 25px;
    text-align: center;
}

.activity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.activity-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.activity-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

/* Гастрономическая секция - улучшенная */
.gastronomy-section {
    margin-bottom: 60px;
}

.gastronomy-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.gastronomy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gastro-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gastro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gastro-image {
    height: 250px;
    overflow: hidden;
}

.gastro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gastro-card:hover .gastro-image img {
    transform: scale(1.05);
}

.gastro-content {
    padding: 25px;
}

.gastro-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.gastro-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gastro-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Описание программы - улучшенное */
.program-description {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.description-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.description-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.description-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.booking-info {
    display: flex;
    align-items: center;
}

.booking-card {
    background: var(--primary-color);
    color: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
}

.booking-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.booking-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.booking-card p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
}

.booking-btn {
    display: inline-block;
    padding: 12px 25px;
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.booking-btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Бейджи для программ */
.program-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gastronomy-options {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .program-description {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .booking-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .new-year-section {
        padding: 60px 0;
    }
    
    .activities-grid,
    .gastronomy-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .activity-image,
    .gastro-image {
        height: 180px;
    }
    
    .activity-content,
    .gastro-content {
        padding: 20px;
    }
    
    .gastro-card {
        max-width: 100%;
    }
    
    .description-content {
        padding: 20px;
    }
    
    .booking-card {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .program-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .activity-image,
    .gastro-image {
        height: 160px;
    }
    
    .activity-card h3,
    .gastro-content h4 {
        font-size: 1.1rem;
    }
    
    .activity-card p,
    .gastro-content p {
        font-size: 0.9rem;
    }
    
    .activity-price,
    .gastro-price {
        font-size: 1.2rem;
    }
    
    .booking-card h4 {
        font-size: 1.1rem;
    }
    
    .booking-card p {
        font-size: 0.9rem;
    }
    
    .booking-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Улучшенная анимация плавающих элементов */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Улучшенные тени при наведении */
.activity-card:hover,
.gastro-card:hover,
.booking-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
/* Исправление для кнопки "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 998; /* Убедитесь, что z-index достаточно высок */
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}
/* Стили для кнопок входа и регистрации в навигации */
.login-btn, .register-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    transition: var(--transition);
    margin-left: 5px;
}

.login-btn:hover, .register-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white !important;
}

.login-btn i, .register-btn i {
    margin-right: 8px;
}

/* Стили для мобильной версии */
@media (max-width: 900px) {
    .login-btn, .register-btn {
        margin: 10px auto;
        display: inline-block;
        width: 80%;
    }
}
/* Выравнивание навигации */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.main-nav li {
    display: flex;
    align-items: center;
}

/* Стили для динамических кнопок */
.dynamic-nav {
    margin-left: 0 !important;
}

.dynamic-nav div {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Мобильная версия */
@media (max-width: 900px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .dynamic-nav div {
        flex-direction: column;
        width: 100%;
    }
    
    .dynamic-nav a {
        display: block;
        text-align: center;
        width: 200px;
    }
}
/* ========== ПРОСТАЯ И НАДЁЖНАЯ НАВИГАЦИЯ ========== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 70px;
}

/* Все элементы навигации в одной строке */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

/* Основное меню - горизонтально */
.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark-color);
    padding: 8px 0;
    font-size: 1rem;
    white-space: nowrap;
}

/* Динамические кнопки - справа */
.dynamic-nav {
    margin-left: 30px;
}

.dynamic-nav div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dynamic-nav a {
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Кнопка мобильного меню - скрыта на десктопе */
.menu-toggle {
    display: none;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--dark-color);
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-wrapper.active {
        right: 0;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 10px;
    }
    
    .dynamic-nav {
        margin-left: 0;
        width: 100%;
    }
    
    .dynamic-nav div {
        flex-direction: column;
        width: 100%;
    }
    
    .dynamic-nav a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px;
    }
}
/* ============================================
   ДОПОЛНЕНИЯ — улучшения без изменения стилистики
   ============================================ */

/* CTA кнопки в hero */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(79,146,66,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    letter-spacing: 0.02em;
}
.hero-cta-btn:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    box-shadow: 0 10px 28px rgba(55,133,65,0.45);
}
.hero-cta-btn--outline {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    box-shadow: none;
    backdrop-filter: blur(4px);
}
.hero-cta-btn--outline:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@media (max-width: 576px) {
    .hero-cta-btn { padding: 12px 22px; font-size: 0.9rem; }
}

/* Счётчики: убираем псевдо-контент, теперь суффикс в JS */
.stat-number[data-count="4.9"]::after { content: none; }

/* Улучшенные переходы hover для карточек — без изменения анимации floating */
.program-card:hover,
.activity-card:hover,
.gastro-card:hover,
.news-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 18px 38px rgba(0,0,0,0.13) !important;
}
.testimonial-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.11) !important;
}

/* Форма контактов — улучшенные focus-стили */
#contact-form input,
#contact-form textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79,146,66,0.15);
}
#contact-form button:hover {
    background: var(--secondary-color) !important;
}

/* Плавное появление секций при скролле */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Статистика — улучшенный вид числа */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    font-family: 'Playfair Display', serif;
}

/* Исправление: floating-анимация не должна мешать scroll-reveal */
.floating {
    animation: none;
}
@media (prefers-reduced-motion: no-preference) {
    .floating.revealed {
        animation: floating 4s ease-in-out infinite;
    }
}

/* Карточка контактов — поля формы на мобильном */
@media (max-width: 576px) {
    #contact-form input,
    #contact-form textarea {
        font-size: 16px; /* предотвращает zoom на iOS */
    }
}
