* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #b71c1c;
    --accent-red: #d32f2f;
    --dark-red: #8b0000;
    --light-red: #ffebee;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --shadow: rgba(183, 28, 28, 0.2);
    --gradient: linear-gradient(135deg, var(--primary-red), var(--accent-red));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(183, 28, 28, 0.1);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 0.9;
    letter-spacing: -1px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-red);
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-figure {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 60%;
    height: 60%;
    background: rgba(0, 0, 0, 0.3);
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: slideInLeft 1s ease-out;
}

.accent {
    color: var(--light-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: slideInUp 1s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-red);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--light-red);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.courses {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(183, 28, 28, 0.2);
}

.course-header {
    padding: 40px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-red), var(--white));
}

.course-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.course-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.course-content {
    padding: 30px;
}

.course-description {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.course-features {
    margin-bottom: 30px;
}

.feature {
    padding: 8px 0;
    color: var(--black);
    font-weight: 500;
}

.feature::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
    margin-right: 10px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.price-old {
    font-size: 1.2rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.order-button {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(183, 28, 28, 0.3);
}

.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    text-align: center;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

.advantage {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.advantage:hover {
    background: var(--light-red);
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.advantage p {
    color: var(--gray);
    line-height: 1.6;
}

.contact {
    padding: 100px 0;
    background: var(--gradient);
    color: var(--white);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--white);
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.email-link {
    display: inline-block;
    background: var(--white);
    color: var(--primary-red);
    padding: 20px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: left;
}

.contact-note p {
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-note ul {
    list-style: none;
}

.contact-note li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.contact-note li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

.footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-right {
    display: flex;
    align-items: center;
}

.privacy-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.footer .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-red);
}

.modal h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-note {
    background: var(--light-red);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    color: var(--primary-red);
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantages {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-note {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .course-card {
        margin: 0 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
}

.course-card {
    animation: fadeInUp 0.6s ease-out;
}

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

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

.advantage {
    animation: fadeInUp 0.6s ease-out;
}

.advantage:nth-child(1) { animation-delay: 0.1s; }
.advantage:nth-child(2) { animation-delay: 0.2s; }
.advantage:nth-child(3) { animation-delay: 0.3s; }

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
