/* Base Styles */
:root {
    --primary-color: #6c3ce9;
    --secondary-color: #37c3d7;
    --gradient-start: #6c3ce9;
    --gradient-end: #37c3d7;
    --bg-dark: #181c25;
    --bg-card: #232836;
    --text-light: #ffffff;
    --text-gray: #a0a7b8;
    --text-dark: #181c25;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: #2eafc2;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background-color: #5a32c7;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--text-light);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--secondary-color);
}

.center-button {
    text-align: center;
    margin-top: 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(24, 28, 37, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background-color: var(--bg-dark);
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    margin-right: 50px;
}

.hero h1 {
    margin-bottom: 20px;
}

.registration-form {
    flex: 1;
    max-width: 400px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.phone-group {
    display: flex;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    border-right: none;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.phone-group input {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.btn-register {
    width: 100%;
    margin-top: 10px;
}

/* Modules Section */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.module-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.module-icon.purple {
    background-color: var(--primary-color);
}

.module-icon.blue {
    background-color: var(--secondary-color);
}

.module-icon img {
    width: 30px;
    height: 30px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
}

.stat-highlight {
    background: linear-gradient(135deg, var(--bg-card), rgba(55, 195, 215, 0.1));
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}

.stat-highlight h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-number.blue {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.step-number.purple {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.step-number.gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-card h3 {
    padding: 20px 20px 10px;
}

.news-card p {
    padding: 0 20px;
}

.read-more {
    display: inline-block;
    padding: 10px 20px 20px;
    color: var(--secondary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}

.progress-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.circular-chart.blue .circle {
    stroke: var(--secondary-color);
}

.circular-chart.purple .circle {
    stroke: var(--primary-color);
}

.percentage {
    fill: var(--text-light);
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 700;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.resource-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resource-icon.blue {
    background-color: var(--secondary-color);
}

.resource-icon.purple {
    background-color: var(--primary-color);
}

.resource-icon img {
    width: 30px;
    height: 30px;
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: 500;
}

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

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon.blue {
    background-color: var(--secondary-color);
}

.contact-icon.purple {
    background-color: var(--primary-color);
}

.contact-icon img {
    width: 25px;
    height: 25px;
}

.contact-detail h3 {
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-primary {
    margin-top: 15px;
}

/* Footer */
.footer {
    background-color: #151820;
    padding: 60px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 0.9rem;
}

.legal-links h3,
.social-links h3 {
    margin-bottom: 20px;
}

.legal-links ul li {
    margin-bottom: 10px;
}

.legal-links ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    height: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 400px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.cookie-popup.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cookie-content h3 {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Thank Popup */
.thank-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.thank-popup.active {
    opacity: 1;
    visibility: visible;
}

.thank-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.thank-content img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.thank-content h3 {
    margin-bottom: 10px;
}

.thank-content p {
    margin-bottom: 25px;
}

.main-section {
    background: #fff;
    color: #000;
    opacity: 1;
    padding: 100px 0;
}

.main-section p {
    color: #000;
}

.main-title {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 2.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .registration-form {
        max-width: 100%;
    }
    
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header .btn-primary {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legal-links, .social-links {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        left: 10px;
        width: calc(100% - 20px);
        padding: 20px;
    }
}