/* Стили для страницы детских групп */
.service-detail {
    padding: 120px 0 60px;
}

.service-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

/* Описание программы */
.program-description {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.program-description h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.program-description .description-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.program-description .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent,
        rgba(0, 255, 136, 0.05),
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-description .description-card:hover::before {
    opacity: 1;
}

.program-description .description-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.program-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Информационные карточки */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent,
        rgba(0, 255, 136, 0.05),
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.info-card:hover .card-icon i {
    transform: scale(1.1);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.5;
}

.info-card ul li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Галерея на всю ширину */
.gallery-section {
    margin-bottom: 4rem;
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.gallery-section .carousel-container {
    position: relative;
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 40px;
    border-radius: 15px;
    overflow: hidden;
}

.carousel {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.gallery-section .carousel-slide img {
    width: 100%;
    height: 600px !important;
    object-fit: cover;
    display: block;
}

/* Видео секция */
.video-section {
    margin-bottom: 4rem;
}

.video-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--background-light);
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Упрощенная секция с ценами */
.pricing-section {
    margin-bottom: 2rem;
}

.pricing-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.pricing-simple {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pricing-item {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.pricing-item.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 106, 0.05));
}

.pricing-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.price-details {
    margin-bottom: 1.5rem;
}

.price-details p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.price-details span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--background-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Кнопки карусели */
.gallery-section .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--background-dark);
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 1.2rem;
}

.gallery-section .carousel-button:hover {
    background: #4dffb8;
    color: var(--background-dark);
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-50%) translateY(-2px);
}

.gallery-section .carousel-button.prev {
    left: 1.5rem;
}

.gallery-section .carousel-button.next {
    right: 1.5rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .service-detail {
        padding: 100px 0 40px;
    }

    .service-detail h1 {
        font-size: 2.2rem;
    }

    .program-description h2 {
        font-size: 1.8rem;
    }

    .program-description p {
        font-size: 1.1rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .pricing-row {
        grid-template-columns: 1fr;
    }

    .gallery-section .carousel-container {
        padding: 0 30px;
    }

    .gallery-section .carousel-slide img {
        height: 500px !important;
    }

    .video-container iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .service-detail {
        padding: 80px 0 30px;
    }

    .service-detail .container {
        padding: 0 15px;
    }

    .service-detail h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .program-description {
        margin-bottom: 3rem;
    }

    .program-description h2 {
        font-size: 1.6rem;
    }

    .program-description p {
        font-size: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    .gallery-section h2,
    .video-section h2,
    .pricing-section h2 {
        font-size: 1.8rem;
    }

    .gallery-section .carousel-container {
        padding: 0 20px;
    }

    .gallery-section .carousel-slide img {
        height: 400px !important;
    }

    .gallery-section .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .video-container iframe {
        height: 300px;
    }

    .pricing-item {
        padding: 1.5rem;
    }

    .pricing-item h4 {
        font-size: 1.2rem;
    }

    .price-details p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-detail {
        padding: 70px 0 20px;
    }

    .service-detail .container {
        padding: 0 10px;
    }

    .service-detail h1 {
        font-size: 1.8rem;
    }

    .program-description {
        margin-bottom: 2rem;
    }

    .program-description h2 {
        font-size: 1.4rem;
    }

    .program-description p {
        font-size: 0.95rem;
    }

    .info-card {
        padding: 1rem;
    }

    .gallery-section .carousel-container {
        padding: 0 15px;
    }

    .gallery-section .carousel-slide img {
        height: 350px !important;
    }

    .gallery-section .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .video-container iframe {
        height: 250px;
    }

    .pricing-item {
        padding: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Карусель */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--background-dark);
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    font-size: 1.2rem;
}

.carousel-button:hover {
    background: #4dffb8;
    color: var(--background-dark);
    box-shadow: 0 0 20px var(--primary-color);
    transform: translateY(-50%) translateY(-2px);
}

.carousel-button.prev {
    left: 1.5rem;
}

.carousel-button.next {
    right: 1.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Стили для выпадающего меню */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Убираем эффект подчеркивания для выпадающего меню */
.dropdown-toggle::after {
    display: none;
}

.dropdown:hover .dropdown-toggle {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-dark);
    min-width: 220px;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    margin-top: 10px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--background-dark);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* Стили для десктопной и мобильной версии */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Остальные стили */
.service-image {
    margin-top: 20%;
}

@media (max-width: 768px) {
    .service-image {
        margin-top: 0;
    }
}

@media (min-width: 1025px) {
  .service-content {
    gap: 2.5rem;
    align-items: center;
  }
  .service-image {
    flex: 0 0 55%;
    margin-top: 0;
    max-width: 700px;
    min-width: 500px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .carousel-container {
    width: 100%;
    max-width: 700px;
    min-height: 420px;
  }
  .carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
  }
  .service-info {
    background: rgba(30, 30, 30, 0.85);
    border-radius: 22px;
    box-shadow: 0 4px 32px 0 rgba(0,255,136,0.10), 0 1.5px 0 0 var(--primary-color) inset;
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(0,255,136,0.18);
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    transition: box-shadow 0.3s;
    position: relative;
    z-index: 1;
  }
  .service-info h2, .service-info h3 {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0,255,136,0.15);
    letter-spacing: 1px;
  }
  .service-info ul li:before {
    color: var(--primary-color);
    font-size: 1.3rem;
  }
  .service-info ul {
    padding-left: 0.5rem;
  }
  .service-info p, .service-info ul li {
    color: var(--text-secondary);
  }
}

/* Стили для кнопки с иконкой в info-card */
.info-card .cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    width: fit-content;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.info-card .cta-button i {
    font-size: 14px;
}

/* Адаптивность для кнопки в info-card */
@media (max-width: 768px) {
    .info-card .cta-button {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
    
    .info-card .cta-button i {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .info-card .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 0.6rem;
    }
    
    .info-card .cta-button i {
        font-size: 12px;
    }
}

/* Стили для заметок в карточках цен */
.note {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
