/* Стили для страницы услуг */

/* Навигация по секциям услуг */
.services-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(106, 90, 205, 0.1);
    z-index: 999;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color)) 1;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.services-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    gap: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.services-nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.05), rgba(106, 90, 205, 0.05));
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 100px;
    flex-shrink: 0;
}

.nav-link i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-colorful);
}

.nav-link:hover i {
    -webkit-text-fill-color: white;
    background: none;
}

/* Секции услуг */
.service-section {
    margin-bottom: var(--space-xxl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-section:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(106, 90, 205, 0.15);
}

.service-section:hover::before {
    opacity: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: linear-gradient(135deg, var(--bg-white), #f8f9fa);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 139, 0.1), 
        rgba(106, 90, 205, 0.1), 
        rgba(0, 206, 209, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(106, 90, 205, 0.25);
    border-color: var(--light-color);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--bright-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    min-height: 80px;
    text-align: center;
}

.btn-more {
    background: linear-gradient(135deg, var(--accent-color), var(--bright-blue));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.btn-more:hover {
    background: linear-gradient(135deg, var(--bright-blue), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.4);
}

/* Категории шоу */
.show-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.show-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(106, 90, 205, 0.1);
    transition: all 0.3s ease;
}

.show-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 90, 205, 0.15);
}

.show-category h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.show-category h3 i {
    font-size: 1.2rem;
}

.show-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.show-item {
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.05), rgba(106, 90, 205, 0.05));
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.show-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
}

/* Ростовые куклы */
.puppet-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: start;
}

.puppet-features h3,
.puppet-prices h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.5;
}

.features-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Таблицы цен */
.price-table {
    background: linear-gradient(135deg, var(--bg-white), #f8f9fa);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    padding: var(--space-md);
}

.price-col {
    text-align: center;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:hover {
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.05), rgba(106, 90, 205, 0.05));
}

.price-name,
.price-duration,
.price-value {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-sm);
}

.price-name {
    font-weight: 600;
    color: var(--text-dark);
}

.price-duration {
    color: var(--text-light);
}

.price-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-row.highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

.price-row.highlight .price-name {
    color: var(--dark-color);
    font-weight: 700;
}

/* Пакеты услуг */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.package-card {
    background: linear-gradient(135deg, var(--bg-white), #f8f9fa);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(106, 90, 205, 0.25);
}

.package-card.featured {
    border-color: var(--light-color);
    transform: scale(1.05);
}

.package-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.package-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--space-xl);
    text-align: center;
}

.package-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.package-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.package-features {
    padding: var(--space-xl);
    list-style: none;
}

.package-features li {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--text-dark);
    line-height: 1.5;
}

.package-features i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.package-footer {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(255, 255, 255, 0.9));
    border-top: 1px solid var(--border-color);
}

.package-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.package-duration {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-light);
    font-size: 0.95rem;
}

.package-duration i {
    color: var(--accent-color);
}

.package-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.btn-package-select {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--bright-blue));
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

.btn-package-select:hover {
    background: linear-gradient(135deg, var(--bright-blue), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.4);
}

/* Анимация на выезд */
.animation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.animation-info h3,
.animation-map h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.zones-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.zone-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.05), rgba(106, 90, 205, 0.05));
    border-radius: var(--radius-md);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.zone-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
}

.zone-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.zone-item:hover i {
    color: white;
}

/* Индивидуальные проекты */
.individual-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: center;
}

.individual-info h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.individual-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.individual-features li {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.5;
}

.individual-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.individual-note {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--light-color);
}

.individual-note p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.individual-cta {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.05), rgba(106, 90, 205, 0.05));
    border-radius: var(--radius-lg);
}

.individual-cta h3 {
    color: var(--secondary-color);
    margin-bottom: var(--space-md);
    font-size: 1.8rem;
}

.individual-cta p {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 992px) {
    .services-nav-inner {
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
    }
    
    .nav-link {
        min-width: 90px;
        padding: var(--space-sm);
    }
    
    .nav-link span {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        min-height: 50px;
    }
    
    .service-card p {
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: var(--space-lg);
    }
    
    .services-grid,
    .packages-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .package-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .show-categories {
        grid-template-columns: 1fr;
    }
    
    .price-header,
    .price-row {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .price-col,
    .price-name,
    .price-duration,
    .price-value {
        font-size: 0.9rem;
        padding: 0 var(--space-xs);
    }
}

@media (max-width: 576px) {
    .nav-link {
        min-width: 80px;
        padding: 8px;
    }
    
    .nav-link i {
        font-size: 1.2rem;
    }
    
    .nav-link span {
        font-size: 0.7rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        min-height: 40px;
    }
    
    .service-card p {
        min-height: 60px;
        font-size: 0.95rem;
    }
    
    .puppet-content,
    .animation-content,
    .individual-content {
        grid-template-columns: 1fr;
    }
    
    .price-header,
    .price-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .price-col,
    .price-name,
    .price-duration,
    .price-value {
        font-size: 0.8rem;
    }
}


/* Custom images for service cards */
.custom-card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    display: block;
    margin: 0 0 18px;
}

img[alt="Театральные и студийные шоу"] {
    object-position: center 42%;
}

@media (max-width: 768px) {
    .custom-card-image {
        height: 220px;
    }
}


/* Убрать ВСЕ верхние квадраты/плашки внутри карточек */
.service-card:has(.custom-card-image) > div:not([class*="content"]):empty,
.program-card:has(.custom-card-image) > div:not([class*="content"]):empty,
.show-program-card:has(.custom-card-image) > div:not([class*="content"]):empty,
.card:has(.custom-card-image) > div:not([class*="content"]):empty,
.service-card:has(.custom-card-image) > span:empty,
.program-card:has(.custom-card-image) > span:empty,
.show-program-card:has(.custom-card-image) > span:empty,
.card:has(.custom-card-image) > span:empty,
.service-card:has(.custom-card-image) .image-placeholder,
.program-card:has(.custom-card-image) .image-placeholder,
.show-program-card:has(.custom-card-image) .image-placeholder,
.card:has(.custom-card-image) .image-placeholder,
.service-card:has(.custom-card-image) .placeholder,
.program-card:has(.custom-card-image) .placeholder,
.show-program-card:has(.custom-card-image) .placeholder,
.card:has(.custom-card-image) .placeholder,
.service-card:has(.custom-card-image) .card-icon,
.program-card:has(.custom-card-image) .card-icon,
.show-program-card:has(.custom-card-image) .card-icon,
.card:has(.custom-card-image) .card-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Убрать прямоугольные полупрозрачные подложки, которые были созданы стилями */
.service-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button),
.program-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button),
.show-program-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button),
.card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button) {
    box-shadow: none !important;
    border-image: none !important;
}

.service-card:has(.custom-card-image) > *:not(.custom-card-image),
.program-card:has(.custom-card-image) > *:not(.custom-card-image),
.show-program-card:has(.custom-card-image) > *:not(.custom-card-image),
.card:has(.custom-card-image) > *:not(.custom-card-image) {
    position: relative !important;
    z-index: 2 !important;
}

.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4 {
    color: #fff !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    text-shadow: 0 4px 18px rgba(0,0,0,.8) !important;
}

.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p {
    color: rgba(255,255,255,.95) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 26px !important;
    text-shadow: 0 3px 14px rgba(0,0,0,.7) !important;
}

.service-card:has(.custom-card-image) a,
.program-card:has(.custom-card-image) a,
.show-program-card:has(.custom-card-image) a,
.card:has(.custom-card-image) a,
.service-card:has(.custom-card-image) button,
.program-card:has(.custom-card-image) button,
.show-program-card:has(.custom-card-image) button,
.card:has(.custom-card-image) button {
    position: relative !important;
    z-index: 3 !important;
}

@media (max-width: 768px) {
    .service-card:has(.custom-card-image),
    .program-card:has(.custom-card-image),
    .show-program-card:has(.custom-card-image),
    .card:has(.custom-card-image) {
        min-height: 430px !important;
        padding: 26px !important;
    }
}


/* FINAL CLEAN TOP ENTERTAINMENT CARDS */

/* Карточка: фото чистое, текст вынесен сверху, кнопка внутри фото */
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image) {
    position: relative !important;
    overflow: hidden !important;
    min-height: 520px !important;
    border-radius: 28px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    background: transparent !important;
    box-shadow: 0 18px 45px rgba(61, 38, 97, .16) !important;
}

/* Фото на всю карточку */
.service-card:has(.custom-card-image) .custom-card-image,
.program-card:has(.custom-card-image) .custom-card-image,
.show-program-card:has(.custom-card-image) .custom-card-image,
.card:has(.custom-card-image) .custom-card-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit !important;
    z-index: 1 !important;
}

/* Лёгкое затемнение только снизу под кнопку */
.service-card:has(.custom-card-image)::before,
.program-card:has(.custom-card-image)::before,
.show-program-card:has(.custom-card-image)::before,
.card:has(.custom-card-image)::before {
    content: "" !important;
    position: absolute !important;
    inset: auto 0 0 0 !important;
    height: 38% !important;
    background: linear-gradient(to top, rgba(20, 12, 34, .62), rgba(20, 12, 34, 0)) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Полностью убираем любые мутные полосы/квадраты/иконки */
.service-card:has(.custom-card-image) .placeholder,
.service-card:has(.custom-card-image) .image-placeholder,
.service-card:has(.custom-card-image) .card-icon,
.service-card:has(.custom-card-image) .icon,
.service-card:has(.custom-card-image) .top-card-icon,
.service-card:has(.custom-card-image) .floating-icon,
.program-card:has(.custom-card-image) .placeholder,
.program-card:has(.custom-card-image) .image-placeholder,
.program-card:has(.custom-card-image) .card-icon,
.program-card:has(.custom-card-image) .icon,
.program-card:has(.custom-card-image) .top-card-icon,
.program-card:has(.custom-card-image) .floating-icon,
.show-program-card:has(.custom-card-image) .placeholder,
.show-program-card:has(.custom-card-image) .image-placeholder,
.show-program-card:has(.custom-card-image) .card-icon,
.show-program-card:has(.custom-card-image) .icon,
.show-program-card:has(.custom-card-image) .top-card-icon,
.show-program-card:has(.custom-card-image) .floating-icon,
.card:has(.custom-card-image) .placeholder,
.card:has(.custom-card-image) .image-placeholder,
.card:has(.custom-card-image) .card-icon,
.card:has(.custom-card-image) .icon,
.card:has(.custom-card-image) .top-card-icon,
.card:has(.custom-card-image) .floating-icon {
    display: none !important;
}

/* Заголовок и описание выносим НАД карточкой */
.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4 {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -92px !important;
    color: #2e2340 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: none !important;
    z-index: 5 !important;
    font-size: 25px !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
}

/* Описание тоже над фото, под заголовком */
.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -34px !important;
    color: #6f6380 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 10px !important;
    margin: 0 !important;
    text-align: center !important;
    text-shadow: none !important;
    z-index: 5 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

/* Нужно место сверху, потому что текст вынесен наружу */
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image) {
    margin-top: 112px !important;
}

/* На фото оставляем только кнопку */
.service-card:has(.custom-card-image) a,
.program-card:has(.custom-card-image) a,
.show-program-card:has(.custom-card-image) a,
.card:has(.custom-card-image) a,
.service-card:has(.custom-card-image) button,
.program-card:has(.custom-card-image) button,
.show-program-card:has(.custom-card-image) button,
.card:has(.custom-card-image) button {
    position: relative !important;
    z-index: 4 !important;
    align-self: center !important;
    margin: auto 28px 28px !important;
}

/* Убираем фон у всех внутренних обёрток, чтобы не появлялись полосы */
.service-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button),
.program-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button),
.show-program-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button),
.card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button) {
    box-shadow: none !important;
    border: 0 !important;
}

/* Если браузер не поддерживает :has, хотя современные Chrome/Edge поддерживают */
.custom-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .service-card:has(.custom-card-image),
    .program-card:has(.custom-card-image),
    .show-program-card:has(.custom-card-image),
    .card:has(.custom-card-image) {
        min-height: 430px !important;
        margin-top: 125px !important;
    }

    .service-card:has(.custom-card-image) h2,
    .service-card:has(.custom-card-image) h3,
    .service-card:has(.custom-card-image) h4,
    .program-card:has(.custom-card-image) h2,
    .program-card:has(.custom-card-image) h3,
    .program-card:has(.custom-card-image) h4,
    .show-program-card:has(.custom-card-image) h2,
    .show-program-card:has(.custom-card-image) h3,
    .show-program-card:has(.custom-card-image) h4,
    .card:has(.custom-card-image) h2,
    .card:has(.custom-card-image) h3,
    .card:has(.custom-card-image) h4 {
        top: -100px !important;
        font-size: 23px !important;
    }

    .service-card:has(.custom-card-image) p,
    .program-card:has(.custom-card-image) p,
    .show-program-card:has(.custom-card-image) p,
    .card:has(.custom-card-image) p {
        top: -42px !important;
        font-size: 14px !important;
    }
}



/* TITLES COMPLETELY OUTSIDE CARDS */
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image){
margin-top:170px !important;
overflow:visible !important;
}

/* Заголовки далеко выше фото */
.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4{
top:-150px !important;
left:50% !important;
transform:translateX(-50%) !important;
width:120% !important;
max-width:520px !important;
text-align:center !important;
font-size:28px !important;
line-height:1.1 !important;
color:#332248 !important;
text-shadow:none !important;
z-index:10 !important;
}

/* Описание между заголовком и фото */
.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p{
top:-82px !important;
left:50% !important;
transform:translateX(-50%) !important;
width:125% !important;
max-width:540px !important;
text-align:center !important;
font-size:15px !important;
line-height:1.4 !important;
color:#756786 !important;
text-shadow:none !important;
z-index:10 !important;
}

/* На фото только кнопка */
.service-card:has(.custom-card-image) a,
.program-card:has(.custom-card-image) a,
.show-program-card:has(.custom-card-image) a,
.card:has(.custom-card-image) a{
margin-bottom:26px !important;
}

@media (max-width:768px){
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image){
margin-top:150px !important;
}

.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4{
top:-132px !important;
font-size:22px !important;
}

.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p{
top:-70px !important;
font-size:13px !important;
}
}



/* MOVE TITLES HIGHER */
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image){
margin-top:240px !important;
}

.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4{
top:-215px !important;
}

.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p{
top:-145px !important;
}

@media (max-width:768px){
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image){
margin-top:210px !important;
}

.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4{
top:-190px !important;
}

.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p{
top:-128px !important;
}
}



/* FINAL: clean cards, aligned titles, no text on photos */
.service-card:has(.custom-card-image),
.program-card:has(.custom-card-image),
.show-program-card:has(.custom-card-image),
.card:has(.custom-card-image) {
    margin-top: 130px !important;
    overflow: visible !important;
}

/* Заголовки строго на одной линии над карточками */
.service-card:has(.custom-card-image) h2,
.service-card:has(.custom-card-image) h3,
.service-card:has(.custom-card-image) h4,
.program-card:has(.custom-card-image) h2,
.program-card:has(.custom-card-image) h3,
.program-card:has(.custom-card-image) h4,
.show-program-card:has(.custom-card-image) h2,
.show-program-card:has(.custom-card-image) h3,
.show-program-card:has(.custom-card-image) h4,
.card:has(.custom-card-image) h2,
.card:has(.custom-card-image) h3,
.card:has(.custom-card-image) h4 {
    position: absolute !important;
    top: -170px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 115% !important;
    max-width: 520px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #332248 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-shadow: none !important;
    z-index: 10 !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
}

/* Убираем весь описательный текст с фотографий */
.service-card:has(.custom-card-image) p,
.program-card:has(.custom-card-image) p,
.show-program-card:has(.custom-card-image) p,
.card:has(.custom-card-image) p {
    display: none !important;
}

/* Убираем любые фиолетовые прямоугольники/плашки на фотографиях */
.service-card:has(.custom-card-image) .placeholder,
.service-card:has(.custom-card-image) .image-placeholder,
.service-card:has(.custom-card-image) .card-icon,
.service-card:has(.custom-card-image) .icon,
.service-card:has(.custom-card-image) .top-card-icon,
.service-card:has(.custom-card-image) .floating-icon,
.service-card:has(.custom-card-image) .decor,
.service-card:has(.custom-card-image) .glow,
.program-card:has(.custom-card-image) .placeholder,
.program-card:has(.custom-card-image) .image-placeholder,
.program-card:has(.custom-card-image) .card-icon,
.program-card:has(.custom-card-image) .icon,
.program-card:has(.custom-card-image) .top-card-icon,
.program-card:has(.custom-card-image) .floating-icon,
.program-card:has(.custom-card-image) .decor,
.program-card:has(.custom-card-image) .glow,
.show-program-card:has(.custom-card-image) .placeholder,
.show-program-card:has(.custom-card-image) .image-placeholder,
.show-program-card:has(.custom-card-image) .card-icon,
.show-program-card:has(.custom-card-image) .icon,
.show-program-card:has(.custom-card-image) .top-card-icon,
.show-program-card:has(.custom-card-image) .floating-icon,
.show-program-card:has(.custom-card-image) .decor,
.show-program-card:has(.custom-card-image) .glow,
.card:has(.custom-card-image) .placeholder,
.card:has(.custom-card-image) .image-placeholder,
.card:has(.custom-card-image) .card-icon,
.card:has(.custom-card-image) .icon,
.card:has(.custom-card-image) .top-card-icon,
.card:has(.custom-card-image) .floating-icon,
.card:has(.custom-card-image) .decor,
.card:has(.custom-card-image) .glow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* На фото видна только кнопка */
.service-card:has(.custom-card-image) a,
.program-card:has(.custom-card-image) a,
.show-program-card:has(.custom-card-image) a,
.card:has(.custom-card-image) a,
.service-card:has(.custom-card-image) button,
.program-card:has(.custom-card-image) button,
.show-program-card:has(.custom-card-image) button,
.card:has(.custom-card-image) button {
    position: relative !important;
    z-index: 5 !important;
    align-self: center !important;
    margin: auto 28px 28px !important;
}

/* Чистим фон у внутренних элементов, чтобы не было мутных полос */
.service-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button):not(h1):not(h2):not(h3):not(h4),
.program-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button):not(h1):not(h2):not(h3):not(h4),
.show-program-card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button):not(h1):not(h2):not(h3):not(h4),
.card:has(.custom-card-image) *:not(.custom-card-image):not(a):not(button):not(h1):not(h2):not(h3):not(h4) {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Если полосы были псевдоэлементами — отключаем всё, кроме нижнего затемнения */
.service-card:has(.custom-card-image)::after,
.program-card:has(.custom-card-image)::after,
.show-program-card:has(.custom-card-image)::after,
.card:has(.custom-card-image)::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {
    .service-card:has(.custom-card-image),
    .program-card:has(.custom-card-image),
    .show-program-card:has(.custom-card-image),
    .card:has(.custom-card-image) {
        margin-top: 120px !important;
    }

    .service-card:has(.custom-card-image) h2,
    .service-card:has(.custom-card-image) h3,
    .service-card:has(.custom-card-image) h4,
    .program-card:has(.custom-card-image) h2,
    .program-card:has(.custom-card-image) h3,
    .program-card:has(.custom-card-image) h4,
    .show-program-card:has(.custom-card-image) h2,
    .show-program-card:has(.custom-card-image) h3,
    .show-program-card:has(.custom-card-image) h4,
    .card:has(.custom-card-image) h2,
    .card:has(.custom-card-image) h3,
    .card:has(.custom-card-image) h4 {
        top: -88px !important;
        font-size: 22px !important;
        height: 58px !important;
    }
}
