:root {
    --primary: #8a2be2; /* Фиолетовый */
    --secondary: #ff6b6b; /* Красный */
    --accent: #4ecdc4; /* Бирюзовый */
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --text: #333;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #da70d6);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #ff8e8e);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.section-title p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}

#header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9)), url('media/bg_main/1.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.social-share {
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.9s both;
}

/* About Section - Темный фон */
#about {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--white);
}

.feature-card p {
    color: rgba(255,255,255,0.7);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark), #2d2d44);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* How To Section - Темный фон */
#howto {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--white);
}

.howto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.howto-text .highlight {
    background: linear-gradient(120deg, rgba(255, 107, 107, 0.1), rgba(138, 43, 226, 0.1));
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary);
}

.howto-text p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.level-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-10px);
}

.level-header {
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.level-green .level-header { background: linear-gradient(135deg, #28a745, #20c997); }
.level-yellow .level-header { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.level-red .level-header { background: linear-gradient(135deg, #dc3545, #e83e8c); }

.level-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.level-body p {
    color: rgba(255,255,255,0.8);
}

/* Testimonials Section */
#testimonials {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)), url('media/bg_main/4_2.jpg') center/cover no-repeat;
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--white);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.final-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
#footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-links-row {
    display: flex;
    gap: 20px;
}

.footer-links-row a {
    margin-bottom: 0;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .howto-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-links-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}


/* Стили для страницы статей */
#articles-hero {
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9)), url('../media/bg_main/2.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 0 80px;
}

#articles-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#articles-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.article-image {
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 30px;
}

.article-content h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.article-content h2 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-content h2 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary);
}

.read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    #articles-hero {
        padding: 100px 0 60px;
    }
    
    #articles-hero h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    #articles-hero {
        padding: 80px 0 40px;
    }
    
    #articles-hero h1 {
        font-size: 2rem;
    }
    
    #articles-hero p {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
}

/* Стили для страницы статьи */
#article-hero {
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.9)), url('../media/bg_main/4_2.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 120px 0 80px;
}

#article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-text {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.article-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text);
}

.article-point {
    margin-bottom: 30px;
}

.article-point h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.article-point p {
    margin-bottom: 0;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.divider i {
    background: var(--white);
    color: var(--secondary);
    font-size: 1.2rem;
    padding: 0 15px;
    position: relative;
}

/* Адаптивность */
@media (max-width: 768px) {
    #article-hero {
        padding: 100px 0 60px;
    }
    
    #article-hero h1 {
        font-size: 2rem;
    }
    
    .article-text {
        padding: 25px;
    }
    
    .article-text p {
        font-size: 1rem;
    }
    
    .article-point h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #article-hero {
        padding: 80px 0 40px;
    }
    
    #article-hero h1 {
        font-size: 1.8rem;
    }
    
    .article-image {
        margin-bottom: 30px;
    }
    
    .article-text {
        padding: 20px;
    }
    
    .article-point {
        margin-bottom: 25px;
    }
}








