:root {
    --primary-color: #2d5a27;
    --primary-light: #4a7c42;
    --primary-dark: #1a3d15;
    --secondary-color: #8bc34a;
    --accent-color: #ff7043;
    --accent-light: #ff9e80;
    --background-light: #f5f9f3;
    --background-cream: #faf8f5;
    --text-dark: #2c3e2d;
    --text-medium: #556b5a;
    --text-light: #7a9080;
    --border-color: #d4e5d1;
    --shadow-soft: 0 4px 20px rgba(45, 90, 39, 0.1);
    --shadow-hover: 0 8px 30px rgba(45, 90, 39, 0.15);
    --gradient-primary: linear-gradient(135deg, #2d5a27 0%, #4a7c42 100%);
    --gradient-accent: linear-gradient(135deg, #ff7043 0%, #ff9e80 100%);
    --gradient-leaf: linear-gradient(135deg, #8bc34a 0%, #4caf50 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

header {
    background: var(--gradient-primary);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

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

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--secondary-color);
}

nav {
    display: flex;
    gap: 8px;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

nav a:hover::before {
    left: 0;
}

nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero {
    background: var(--gradient-primary);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 span {
    color: var(--secondary-color);
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lessons-section {
    padding: 80px 0;
    background: var(--background-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.lesson-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-leaf);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.lesson-card:hover::before {
    transform: scaleX(1);
}

.lesson-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.lesson-image {
    height: 200px;
    background: var(--gradient-leaf);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lesson-image svg {
    width: 80px;
    height: 80px;
    fill: white;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.lesson-card:hover .lesson-image svg {
    transform: scale(1.1) rotate(5deg);
}

.lesson-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lesson-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.lesson-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.lesson-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.lesson-duration svg {
    width: 16px;
    height: 16px;
    fill: var(--text-light);
}

.lesson-btn {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lesson-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 30px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand p {
    opacity: 0.8;
    margin-top: 15px;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.article-hero {
    background: var(--gradient-primary);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.article-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

.lesson-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-accent);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 30px;
    opacity: 0.9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.article-main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.article-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.article-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-section h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-section h2 .icon {
    width: 35px;
    height: 35px;
    background: var(--gradient-leaf);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-section h2 .icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.article-section p {
    color: var(--text-medium);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.article-section ul,
.article-section ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-section li {
    color: var(--text-medium);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 20px 25px;
    border-radius: 0 15px 15px 0;
    margin: 25px 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.1) 0%, rgba(255, 158, 128, 0.1) 100%);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    border-radius: 0 15px 15px 0;
    margin: 25px 0;
}

.warning-box p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.step-list {
    list-style: none;
    margin-left: 0;
    counter-reset: step-counter;
}

.step-list li {
    position: relative;
    padding-left: 60px;
    padding-bottom: 25px;
    margin-bottom: 0;
    border-left: 2px solid var(--border-color);
}

.step-list li:last-child {
    border-left: none;
    padding-bottom: 0;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.visual-container {
    background: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    text-align: center;
}

.visual-container img,
.visual-container svg {
    max-width: 100%;
    border-radius: 10px;
}

.visual-caption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.mistake-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.mistake-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateX(5px);
}

.mistake-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mistake-card p {
    margin: 0;
    font-size: 0.95rem;
}

.example-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.example-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.summary-points {
    display: grid;
    gap: 15px;
}

.summary-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--background-light);
    border-radius: 12px;
}

.summary-point .check {
    width: 25px;
    height: 25px;
    background: var(--gradient-leaf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-point .check svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.summary-point p {
    margin: 0;
    font-size: 1rem;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-medium);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.toc-list a:hover::before {
    background: var(--primary-color);
}

.progress-card .progress-bar {
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-card .progress-fill {
    height: 100%;
    background: var(--gradient-leaf);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-card .progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    flex: 1;
    padding: 20px;
    background: var(--background-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.nav-btn:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

.nav-btn.next {
    text-align: right;
}

.legal-hero {
    background: var(--gradient-primary);
    padding: 120px 0 50px;
}

.legal-hero h1 {
    color: white;
    font-size: 2.5rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-content li {
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.7;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

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

.submit-btn {
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.3);
}

@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    nav.active {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }

    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .article-hero h1 {
        font-size: 2rem;
    }

    .article-main {
        padding: 25px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-btn.next {
        text-align: left;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    color: #fff;
}

.toc-list .active::before {
    background: var(--primary-color);
}