/* ===== UNIFIED RESPONSIVE SYSTEM ===== */

:root {
    /* Unified Breakpoints - NO CONFLICTS */
    --breakpoint-mobile: 479px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-large: 1440px;
    
    /* Responsive Spacing Variables */
    --mobile-padding: 16px;
    --tablet-padding: 32px;
    --desktop-padding: 60px;
    --large-padding: 80px;
    
    /* Header Height определён в shared-variables.css - не переопределяем */
    /* --header-height-mobile: 60px; (см. shared-variables.css) */
    /* --header-height-desktop: 80px; (см. shared-variables.css) */
}

/* ===== MOBILE FIRST APPROACH ===== */

/* Base styles (mobile) */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 4vw; /* Luxury wellness mobile padding */
}

/* Hero sections - отступ от фиксированного хедера */
.hero-section,
.course-hero,
.club-hero,
.private-hero,
.classes-hero {
    padding-top: var(--header-height-mobile);
}

.hero-section .container,
.course-hero .container,
.club-hero .container,
.private-hero .container,
.classes-hero .container {
    padding: var(--header-height-mobile) var(--mobile-padding) 20px;
}

/* Typography responsive - using mobile tokens */
.hero-title,
/* === UNIFIED HERO STYLES === */

/* Hero Title Section - контейнер заголовка */
.hero-title-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 16px;
}

/* Все hero titles используют одинаковые стили */
.course-hero-title,
.club-hero-title,
.private-hero-title,
.classes-hero-title {
    font-family: var(--font-heading); /* Playfair Display */
    font-size: var(--fs-mobile-2xl); /* 32px - unified mobile hero title */
    font-weight: 300; /* Unified light weight */
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin: 0 0 16px 0;
}

/* Hero Subtitle/Label - подзаголовок */
.hero-label-text,
.club-hero-subtitle,
.classes-hero-subtitle {
    font-family: var(--font-primary);
    font-size: 0.9375rem; /* 15px - unified */
    font-weight: 300;
    color: var(--color-text-light);
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

/* Hero Description - описание */
.hero-description,
.course-hero-description,
.club-hero-description,
.private-hero-description {
    font-family: var(--font-primary);
    font-size: var(--fs-mobile-base); /* 16px - unified */
    font-weight: 300;
    line-height: var(--lh-mobile-relaxed); /* 1.65 */
    color: var(--color-text-light);
    margin: 0;
}

.course-hero-description strong,
.club-hero-description strong,
.private-hero-description strong {
    font-weight: 500;
    color: var(--color-primary);
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--tablet-padding);
    }
    
    .hero-section .container,
    .course-hero .container,
    .club-hero .container,
    .private-hero .container,
    .classes-hero .container {
        padding: var(--header-height-desktop) var(--tablet-padding) 40px;
    }
    
    /* Hero Title Section */
    .hero-title-section {
        margin-top: 24px;
        margin-bottom: 20px;
    }
    
    /* Typography scaling */
    .hero-title,
    .course-hero-title,
    .club-hero-title,
    .private-hero-title,
    .classes-hero-title {
        font-size: 2.5rem;
    }
    
    .hero-label-text,
    .club-hero-subtitle,
    .classes-hero-subtitle {
        font-size: 1rem; /* 16px */
    }
    
    .hero-description,
    .course-hero-description,
    .club-hero-description,
    .private-hero-description {
        font-size: 1.0625rem; /* 17px - unified tablet description */
        line-height: 1.7;
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--desktop-padding);
    }
    
    .hero-section .container,
    .course-hero .container,
    .club-hero .container,
    .private-hero .container,
    .classes-hero .container {
        padding: var(--header-height-desktop) var(--desktop-padding) 60px;
    }
    
    /* Hero Title Section */
    .hero-title-section {
        margin-top: 28px;
        margin-bottom: 24px;
    }
    
    /* Typography scaling */
    .hero-title,
    .course-hero-title,
    .club-hero-title,
    .private-hero-title,
    .classes-hero-title {
        font-size: 3rem;
    }
    
    .hero-label-text,
    .club-hero-subtitle,
    .classes-hero-subtitle {
        font-size: 1.125rem; /* 18px */
    }
    
    .hero-description,
    .course-hero-description,
    .club-hero-description,
    .private-hero-description {
        font-size: 1.125rem; /* 18px - unified desktop description */
        line-height: var(--lh-mobile-loose); /* 1.8 */
    }
}

/* ===== LARGE DESKTOP STYLES ===== */
@media (min-width: 1440px) {
    .container {
        padding: 0 var(--large-padding);
    }
    
    .hero-section .container,
    .course-hero .container,
    .club-hero .container,
    .private-hero .container,
    .classes-hero .container {
        padding: var(--header-height-desktop) var(--large-padding) 80px;
    }
    
    /* Typography scaling */
    .hero-title,
    .course-hero-title,  
    .club-hero-title,
    .private-hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description,
    .course-hero-description,
    .club-hero-description,
    .private-hero-description {
        font-size: 1.25rem; /* 20px - unified large desktop description */
        line-height: var(--lh-mobile-loose); /* 1.8 */
    }
}

/* ===== MOBILE-ONLY & DESKTOP-ONLY UTILITIES ===== */
/* По умолчанию desktop-only hidden на mobile */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Только для мобайла */
    .mobile-only {
        display: block;
    }
    
    .mobile-stack {
        flex-direction: column;
    }
}

/* ===== TABLET-ONLY STYLES ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Только для планшета */
    .tablet-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ============================================================ */
/* PAGE-SPECIFIC RESPONSIVE STYLES */
/* ============================================================ */

/* ===== SHANTI LIGHT PAGE ===== */

/* Hero Content Wrapper */
.hero-content-wrapper {
    gap: 16px;
}

@media (max-width: 1023px) {
    .hero-content-wrapper {
        gap: 12px;
        margin-top: 8px;
    }
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: row;
        gap: 50px;
        align-items: flex-start;
    }
}

@media (min-width: 1280px) {
    .hero-content-wrapper { 
        gap: 60px; 
    }
}

@media (min-width: 1440px) {
    .hero-content-wrapper { 
        gap: 80px; 
    }
}

/* Hero Image Section Responsive */
@media (min-width: 768px) {
    .hero-image-section {
        width: 85%;
        max-width: 500px;
    }
    
    .hero-banner {
        height: 45vh;
        border-radius: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-image-section {
        width: 75%;
        max-width: 600px;
    }
    
    .hero-banner {
        height: 50vh;
        border-radius: 20px;
    }
}

/* Course Program Section */
@media (min-width: 768px) {
    .course-program {
        padding: var(--lw-section-padding-tablet);
    }
    
    .course-program .section-header {
        margin-bottom: var(--lw-header-margin-tablet);
    }
    
    .course-program .section-title {
        font-size: 2.5rem;
        font-weight: var(--lw-title-weight);
        letter-spacing: var(--lw-title-spacing);
    }
    
    .practices-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .practice-item {
        padding: 40px 32px;
        transition: all var(--lw-hover-transition);
    }
    
    .practice-number {
        margin-bottom: 16px;
        font-size: 0.8125rem;
        font-weight: 400;
    }
    
    .practice-text {
        font-size: 1rem;
        line-height: 1.65;
        color: var(--lw-text-color);
        font-weight: 400;
    }
}

@media (min-width: 1024px) {
    .course-program {
        padding: var(--lw-section-padding-desktop);
    }
    
    .course-program .section-header {
        margin-bottom: var(--lw-header-margin-desktop);
    }
    
    .course-program .section-title {
        font-size: var(--lw-title-desktop);
        font-weight: 300;
        letter-spacing: var(--lw-title-spacing);
    }
    
    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 920px;
        margin: 0 auto;
    }
    
    .practice-item {
        padding: 48px 40px;
        position: relative;
        overflow: visible;
    }
    
    .practice-number {
        font-size: 0.875rem;
        font-weight: 300;
        letter-spacing: var(--lw-number-tracking);
        margin-bottom: 20px;
        color: var(--color-text-light);
        opacity: 0.7;
    }
    
    .practice-text {
        font-size: 1.0625rem;
        line-height: 1.7;
        color: var(--lw-text-color);
        font-weight: 300;
    }
}

@media (min-width: 1200px) {
    .practices-grid {
        max-width: 1000px;
        gap: 40px;
    }
    
    .practice-item {
        padding: 48px 44px;
    }
}

/* How Classes Work Section */
@media (min-width: 768px) {
    .how-classes-work {
        padding: var(--spacing-section-desktop) 0;
    }
    
    .how-classes-work .section-title {
        font-size: 2.5rem;
        font-weight: 300;
    }
    
    .classes-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .process-step {
        padding: 32px 28px;
    }
    
    .step-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    
    .step-title {
        font-size: 1.35rem;
    }
    
    .step-description {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (min-width: 1024px) {
    .how-classes-work {
        padding: var(--spacing-section-large) 0;
    }
    
    .how-classes-work .container {
        max-width: 1200px;
    }
    
    .how-classes-work .section-title {
        font-size: clamp(2rem, 3vw, 2.75rem);
        margin-bottom: 60px;
    }
    
    .classes-process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        align-items: start;
    }
    
    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 35px 25px 40px;
        border-radius: 20px;
        background: var(--color-background-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        margin-bottom: 24px;
        background: rgba(253, 167, 0, 0.06);
        border: 1px solid rgba(253, 167, 0, 0.15);
    }
    
    .step-icon svg {
        width: 30px;
        height: 30px;
        stroke-width: 1.5;
    }

    .step-icon img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .step-content {
        text-align: center;
    }
    
    .step-title {
        font-size: 1.35rem;
        margin-bottom: 14px;
        font-weight: 500;
    }
    
    .step-description {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--color-text-light);
    }
}

@media (min-width: 1440px) {
    .how-classes-work .section-title {
        font-size: clamp(2rem, 3vw, 2.75rem);
    }
    
    .classes-process-grid {
        gap: 40px;
    }
    
    .process-step {
        padding: 48px 44px;
    }
}

/* For You Section */
@media (min-width: 768px) {
    .for-you-section {
        padding: var(--spacing-section-tablet) 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .benefits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .benefit-card {
        padding: 40px 32px;
        border-radius: 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    
    .benefit-number {
        font-size: clamp(4rem, 10vw, 5rem); /* Сохраняем большую цифру */
        margin-bottom: 20px;
    }
    
    .benefit-text {
        font-size: 1rem;
        line-height: 1.65;
    }
    
    .benefits-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .for-you-section {
        padding: var(--spacing-section-desktop) 0;
    }
    
    .section-header {
        margin-bottom: 64px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .benefit-card {
        padding: 56px 48px;
        border-radius: 28px;
        border: none;
        position: relative;
        overflow: visible;
    }
    
    .benefit-number {
        font-size: clamp(5rem, 8vw, 6rem); /* Большая цифра на десктопе */
        font-weight: 400;
        opacity: 0.7;
        margin-bottom: 20px;
    }
    
    .benefit-text {
        font-size: 1.0625rem;
        line-height: 1.7;
        font-weight: 300;
    }
    
    .benefits-list {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Wellness Photo Block */
@media (min-width: 768px) {
    .program-wellness-photo {
        padding: var(--lw-section-padding-tablet);
    }
}

@media (min-width: 1024px) {
    .program-wellness-photo {
        padding: var(--lw-section-padding-desktop);
    }
}

/* Course Results Section */
@media (min-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .result-item {
        border-radius: 20px;
    }
}

@media (min-width: 568px) and (max-width: 767px) and (orientation: landscape) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .result-image-wrapper {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 479px) {
    .result-content {
        padding: 20px 16px;
    }
    
    .result-title {
        font-size: var(--fs-mobile-lg); /* 20px */
    }
    
    .result-text {
        font-size: var(--fs-mobile-sm); /* 14px */
        line-height: var(--lh-mobile-relaxed); /* 1.65 */
    }
    
    .result-number {
        font-size: var(--fs-mobile-3xl); /* 40px */
        top: 12px;
        right: 12px;
    }
}

@media (min-width: 768px) {
    .course-results {
        padding: var(--spacing-section-desktop) 0;
    }
    
    .course-results .section-title {
        font-size: 2.25rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .result-content {
        padding: 28px 24px 32px 24px;
    }
    
    .result-title {
        font-size: 1.4rem;
    }
    
    .result-text {
        font-size: 0.98rem;
    }
}

@media (min-width: 1024px) {
    .course-results {
        padding: var(--spacing-section-large) 0;
    }
    
    .course-results .section-title {
        font-size: 3rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
    
    .result-title {
        font-size: 1.45rem;
    }
    
    .result-number {
        font-size: 4rem;
    }
}

@media (min-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    .result-title {
        font-size: 1.3rem;
    }
    
    .result-text {
        font-size: 0.9rem;
    }
    
    .result-content {
        padding: 24px 20px;
    }
}

@media (min-width: 1400px) {
    .course-results .section-title {
        font-size: 3.5rem;
    }
    
    .results-grid {
        gap: 32px;
    }
    
    .result-title {
        font-size: 1.35rem;
    }
    
    .result-text {
        font-size: 0.95rem;
    }
}

/* Course Pricing Section */
@media (max-width: 480px) {
    .course-pricing {
        padding: 60px 0;
    }
    
    .course-pricing .section-title {
        font-size: var(--fs-mobile-2xl); /* 32px */
    }
    
    .pricing-single-plan {
        padding: 32px 24px;
    }
    
    .duration-text {
        font-size: var(--fs-mobile-lg); /* 20px */
    }
    
    .price-amount {
        font-size: var(--fs-mobile-2xl); /* 32px (was 1.75rem=28px, upgraded) */
    }
    
    .price-usd .price-amount {
        font-size: var(--fs-mobile-lg); /* 20px */
    }
    
    .pricing-cta-button {
        font-size: var(--fs-mobile-sm); /* 14px */
        padding: 14px 28px;
    }
}

@media (max-width: 600px) {
    .pricing-glass-container {
        background: transparent;
        box-shadow: none;
        padding: 0 6%;
        border: none;
        backdrop-filter: none;
    }
    
    .course-pricing {
        padding: 60px 0 40px;
    }
    
    .pricing-single-plan {
        max-width: 100%;
        padding: 32px 24px;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .pricing-intro {
        margin-bottom: 32px;
    }
    
    .payment-method {
        padding: 12px 24px;
    }
    
    .payment-title {
        font-size: var(--fs-mobile-xs); /* 12px */
    }
    
    .plan-duration {
        margin-bottom: 8px;
    }
    
    .duration-text {
        font-size: var(--fs-mobile-md); /* 18px */
    }
    
    .plan-pricing {
        padding: 20px 0;
    }
    
    .price-amount {
        font-size: var(--fs-mobile-2xl); /* 32px */
    }
    
    .price-usd .price-amount {
        font-size: var(--fs-mobile-lg); /* 20px */
    }
    
    .plan-features {
        gap: 10px;
    }
    
    .plan-feature {
        font-size: var(--fs-mobile-sm); /* 14px */
        padding-left: 20px;
    }
    
    .pricing-footer {
        margin-top: 32px;
        gap: 24px;
        padding: 0;
    }
    
    .language-info {
        font-size: var(--fs-mobile-xs); /* 12px */
    }
    
    .language-label {
        font-size: var(--fs-mobile-xs); /* 12px */
    }
    
    .language-value {
        font-size: var(--fs-mobile-sm); /* 14px (upgraded from 15px) */
    }
    
    .pricing-cta-button {
        padding: 16px 32px;
        font-size: var(--fs-mobile-sm); /* 14px (was 15px) */
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-program-details {
        margin: 16px 0;
        width: 100%;
        text-align: left;
    }
    
    .program-intro {
        font-size: var(--fs-mobile-xs); /* 12px */
        margin-bottom: 12px;
    }
    
    .caps-row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        scroll-padding: 16px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .caps-row::after {
        content: '';
        padding-right: 20px;
        flex-shrink: 0;
    }
    
    .caps-row::-webkit-scrollbar {
        display: none;
    }
    
    .cap {
        flex: 0 0 auto;
        width: auto;
        padding: 6px 14px;
        font-size: var(--fs-mobile-xs); /* 12px */
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .pricing-single-plan {
        max-width: 600px;
        padding: 48px 40px;
    }
    
    .pricing-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 600px;
        margin: 48px auto 0;
        padding: 0;
    }
    
    .pricing-cta-button {
        width: auto;
        min-width: 200px;
        max-width: none;
        margin: 0;
        padding: 16px 40px;
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .course-pricing {
        padding: var(--spacing-section-large) 0;
    }
    
    .course-pricing .section-title {
        font-size: 3rem;
    }
    
    .pricing-intro {
        margin-bottom: 64px;
    }
    
    .pricing-single-plan {
        max-width: 650px;
    }
    
    .duration-text {
        font-size: 1.75rem;
    }
    
    .price-amount {
        font-size: 2.25rem;
    }
    
    .price-usd .price-amount {
        font-size: 1.75rem;
    }
}

/* ===== ACCESSIBILITY MEDIA QUERIES ===== */

/* High Contrast Support */
@media (prefers-contrast: high) {
    .practice-item,
    .benefit-card {
        background: var(--color-background);
        backdrop-filter: none;
        border: 1px solid var(--color-text-light);
        box-shadow: none;
    }
    
    .highlight-text,
    .benefit-text strong {
        border: 1px solid var(--color-accent);
        background: transparent;
    }
    
    .benefit-card {
        border: 1px solid var(--color-primary);
    }
    
    .benefit-text strong {
        border-bottom: 2px solid var(--color-accent);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .practice-item,
    .benefit-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .practice-item:active,
    .benefit-card:active {
        transform: none;
    }
    
    .course-program::before,
    .benefit-card::before {
        animation: none;
    }
}

/* Reduced Transparency */
@media (prefers-reduced-transparency: reduce) {
    .practice-item,
    .benefit-card,
    .result-item {
        background: var(--color-background-light);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-shadow: none;
    }
    
    .practice-item:active,
    .benefit-card:active {
        background: var(--color-background-soft);
    }
    
    [data-theme="dark"] .result-item {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: none;
        text-shadow: none;
    }
}

/* Hover Capability Detection */
@media (hover: hover) {
    .practice-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        background: var(--color-background);
    }
    
    .practice-item:hover::before {
        transform: scaleX(1);
    }
    
    .benefit-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    
    .benefit-card:hover::before {
        transform: translateX(0);
    }
    
    .benefit-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
        border-color: rgba(253, 167, 0, 0.2);
    }
}

/* ===== NAVIGATION COMPONENT ===== */
/* Все стили навигации в components/navigation.css */
