/* ==================== SPA MODERN STYLES ==================== */

/* Hero Section */
.spa-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%),
                url('./гречесская сауна бассейн.jpg') center/cover no-repeat;
    margin-top: 80px;
    overflow: hidden;
}

.spa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.spa-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.spa-hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.spa-hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.spa-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* SPA Grid Section */
.spa-grid-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%),
                url('./1762096265733.jpg') center/cover no-repeat;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.spa-grid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 1400px 900px at 30% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 1200px 700px at 70% 80%, rgba(184, 134, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: spaGridSectionGlow 15s ease-in-out infinite;
}

@keyframes spaGridSectionGlow {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1) translate(0, 0);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05) translate(20px, -15px);
    }
}

.spa-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.spa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* SPA Card - улучшенная версия */
.spa-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(212, 175, 55, 0.05) inset;
}

.spa-card:nth-child(1) { animation-delay: 0.1s; }
.spa-card:nth-child(2) { animation-delay: 0.2s; }

.spa-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 24px 60px rgba(212, 175, 55, 0.3),
                0 0 80px rgba(212, 175, 55, 0.15),
                0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    background: rgba(255, 255, 255, 0.05);
}

.spa-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.1), 
        transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.spa-card:hover::after {
    left: 100%;
}

.spa-card-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.spa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.6s ease;
    filter: brightness(0.95) contrast(1.05);
}

.spa-card:hover .spa-card-image img {
    transform: scale(1.15);
    filter: brightness(1.05) contrast(1.1);
}

.spa-card-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    color: #d4af37;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.spa-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.spa-card:hover .spa-card-overlay {
    opacity: 1;
}

.spa-card-btn {
    padding: 18px 44px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b5 100%);
    border: none;
    border-radius: 50px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4),
                0 0 40px rgba(212, 175, 55, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.spa-card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.spa-card-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5),
                0 0 60px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #f4e5b5 0%, #d4af37 100%);
}

.spa-card-btn:hover::before {
    width: 300px;
    height: 300px;
}

.spa-card-btn:active {
    transform: scale(1.05) translateY(0);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.spa-card-content {
    padding: 40px;
}

.spa-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.spa-card-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.spa-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.spa-card-features span {
    padding: 10px 18px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.spa-card-prices {
    margin-bottom: 20px;
}

.spa-card-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.spa-card-price-item:last-child {
    border-bottom: none;
}

.spa-card-price-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.spa-card-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
}

.spa-card-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 20px;
}

.spa-card-promo-badge {
    font-size: 16px;
    color: #d4af37;
    font-weight: 700;
}

.spa-card-promo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* SPA Modal */
.spa-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spa-modal[aria-hidden="false"] {
    display: flex;
}

.spa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.spa-modal-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(212, 175, 55, 0.2),
                0 0 0 1px rgba(212, 175, 55, 0.15) inset;
}

.spa-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.spa-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: rotate(90deg);
}

.spa-modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

/* SPA Modal Gallery */
.spa-modal-gallery {
    margin-bottom: 30px;
}

.spa-modal-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.spa-modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spa-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.spa-modal-nav:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

.spa-modal-nav.prev {
    left: 20px;
}

.spa-modal-nav.next {
    right: 20px;
}

.spa-modal-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.spa-modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.spa-modal-dot.active {
    background: #d4af37;
    border-color: #fff;
    transform: scale(1.2);
}

/* SPA Modal Info */
.spa-modal-info {
    color: #fff;
}

.spa-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.spa-modal-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.spa-modal-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.spa-modal-features {
    margin-bottom: 30px;
}

.spa-modal-features h3 {
    font-size: 22px;
    color: #d4af37;
    margin-bottom: 15px;
    font-weight: 700;
}

.spa-modal-features ul {
    list-style: none;
    padding: 0;
}

.spa-modal-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}

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

.spa-modal-prices {
    margin-bottom: 30px;
}

.spa-modal-price-block {
    margin-bottom: 25px;
}

.spa-modal-price-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.spa-modal-price-value {
    font-size: 48px;
    font-weight: 700;
    color: #d4af37;
}

.spa-modal-price-unit {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.spa-modal-price-period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 20px;
}

.spa-modal-price-list {
    margin-bottom: 20px;
}

.spa-modal-price-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.spa-modal-price-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.spa-modal-price-value-small {
    color: #d4af37;
    font-weight: 600;
    font-size: 16px;
}

.spa-modal-promo {
    padding: 25px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 20px;
}

.spa-modal-promo-title {
    font-size: 20px;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 15px;
}

.spa-modal-promo-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.spa-modal-additional {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.spa-modal-additional-title {
    font-size: 18px;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 15px;
}

.spa-modal-additional-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.spa-modal-additional-item:last-child {
    border-bottom: none;
}

.spa-modal-additional-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.spa-modal-additional-cost {
    color: #d4af37;
    font-weight: 600;
    font-size: 16px;
}

.spa-modal-booking {
    margin-top: 25px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    border-left: 3px solid #d4af37;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.spa-modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.spa-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 44px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b5 100%);
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4),
                0 0 50px rgba(212, 175, 55, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.spa-modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.spa-modal-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.5),
                0 0 70px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #f4e5b5 0%, #d4af37 100%);
}

.spa-modal-btn:hover::before {
    width: 400px;
    height: 400px;
}

.spa-modal-btn:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.spa-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.spa-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .spa-hero {
        height: 50vh;
        min-height: 300px;
    }

    .spa-hero-title {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .spa-hero-subtitle {
        font-size: 16px;
    }

    .spa-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .spa-grid-section::before {
        background: 
            radial-gradient(ellipse 800px 600px at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
            radial-gradient(ellipse 700px 500px at 70% 80%, rgba(184, 134, 11, 0.08) 0%, transparent 50%);
    }

    .spa-card-image {
        height: 280px;
    }

    .spa-card-content {
        padding: 30px 20px;
    }

    .spa-card-title {
        font-size: 26px;
    }

    .spa-modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .spa-modal-body {
        padding: 30px 20px;
    }

    .spa-modal-image-container {
        height: 300px;
    }

    .spa-modal-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .spa-hero {
        height: 40vh;
        min-height: 250px;
    }

    .spa-grid-section {
        padding: 40px 15px;
    }

    .spa-card-content {
        padding: 20px;
    }

    .spa-card-title {
        font-size: 22px;
    }
    
    /* Улучшаем touch targets */
    .spa-card {
        touch-action: manipulation;
    }
    
    .spa-card-btn {
        min-height: 44px !important;
        touch-action: manipulation;
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 375px) {
    .spa-hero-title {
        font-size: 36px !important;
    }
    
    .spa-grid-section {
        padding: 30px 12px !important;
    }
    
    .spa-card-content {
        padding: 16px !important;
    }
    
    .spa-card-title {
        font-size: 20px !important;
    }
    }

    .spa-modal-image-container {
        height: 250px;
    }

    .spa-modal-price-value {
        font-size: 36px;
    }

    .spa-modal-nav {
        width: 40px;
        height: 40px;
    }

    .spa-modal-nav.prev {
        left: 10px;
    }

    .spa-modal-nav.next {
        right: 10px;
    }
}



