/* ========================================
   Base & Layout
   ======================================== */

html {
    scroll-behavior: smooth;
}

.masters-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--green), #2E8B57);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 195, 108, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 195, 108, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--green);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 2px solid var(--green);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green), #2E8B57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 2.2em;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits-section {
    margin-bottom: 80px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.benefits-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--text-primary);
    margin-bottom: 60px;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--green));
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green), #2E8B57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-icon i {
    font-size: 2em;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05em;
}

/* ========================================
   Statistics Section
   ======================================== */

.stats-section {
    margin-bottom: 80px;
    padding: 60px 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(160deg, var(--green), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    margin-bottom: 80px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--text-primary);
    margin-bottom: 60px;
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 65px;
    right: -40px;
    width: 40px;
    height: 2px;
    background: linear-gradient(45deg, var(--yellow), var(--green));
    opacity: 0.5;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--green), #2E8B57);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 auto 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 195, 108, 0.3);
}

.step h3 {
    font-size: 1.4em;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05em;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(160deg, var(--green), var(--yellow));
    padding: 80px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--green);
}

/* ========================================
   Responsive - Tablet (1024px)
   ======================================== */

@media screen and (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step::after {
        display: none;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Responsive - Mobile (768px)
   ======================================== */

@media screen and (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image{
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .info-sections {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .how-it-works {
        padding: 40px 15px;
    }
    
    .how-it-works h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }
    
    /* Steps - одна колонка на мобильных */
    .steps {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 25px 20px;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .step::after {
        display: none;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
        margin: 0 auto 15px auto;
    }
    
    .step h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .step p {
        font-size: 1em;
        line-height: 1.5;
    }
}

/* ========================================
   Responsive - Small Mobile (480px)
   ======================================== */

@media screen and (max-width: 480px) {
    .masters-page {
        padding: 10px;
    }

    .hero-image{
        display: none;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .benefits-section h2,
    .how-it-works h2 {
        font-size: 1.6em;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-content h2 {
        font-size: 2em;
    }

    .benefit-card {
        padding: 25px 15px;
    }
    
    .how-it-works {
        padding: 30px 10px;
        border-radius: 16px;
    }
}

/* ========================================
   Responsive - Extra Small (320px)
   ======================================== */

@media screen and (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-image{
        display: none;
    }

    .hero-content h2 {
        font-size: 1.3em;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.7em;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Override responsive.css */
@media screen and (max-width: 768px) {
    .masters-page .step {
        max-width: none !important;
        width: 100% !important;
    }
}
