.home-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('/images/home-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 10, 46, 0.65);
    z-index: 1;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.hero-deco-1 {
    width: 400px;
    height: 400px;
    background: var(--color-brand);
    top: -120px;
    right: -100px;
}

.hero-deco-2 {
    width: 250px;
    height: 250px;
    background: var(--color-cta);
    bottom: -60px;
    left: -60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 800px;
    padding: 40px 0;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-content h1 strong {
    color: var(--color-cta);
    font-weight: 700;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    text-align: center;
}

.hero-scroll-hint svg {
    display: block;
    margin: 6px auto 0;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.home-section {
    padding: 80px 0;
}

.home-section-alt {
    background: var(--bg-section-alt);
}

.home-section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.home-section-dark h2,
.home-section-dark h3,
.home-section-dark h4 {
    color: var(--text-light);
}

.home-section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header h2 {
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.home-section-dark .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-cta);
    line-height: 1.2;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.cat-card {
    background: var(--text-light);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: default;
}

.cat-card:hover {
    box-shadow: 0 6px 24px rgba(217, 70, 239, 0.12);
    border-color: var(--color-brand);
}

.cat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: var(--bg-section-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-brand);
}

.cat-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.cat-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.article-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
    box-shadow: 0 6px 24px rgba(217, 70, 239, 0.1);
    border-color: var(--color-brand);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--bg-section-alt);
}

.article-card-body {
    padding: 22px 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-card-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
    flex-shrink: 0;
}

.article-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.45;
}

.article-card-body h3 a {
    color: var(--text-dark);
    transition: color 0.2s;
}

.article-card-body h3 a:hover {
    color: var(--color-brand);
}

.article-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.calculator-section {
    background: var(--text-light);
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 36px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field.full-width {
    grid-column: 1 / -1;
}

.calc-field label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.calc-field input,
.calc-field select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--text-light);
    transition: border-color 0.2s;
    width: 100%;
    max-width: 100%;
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.15);
}

.calc-btn {
    grid-column: 1 / -1;
    padding: 14px;
    font-size: 1.05rem;
}

.calc-results {
    display: none;
    background: var(--bg-section-alt);
    border-radius: 10px;
    padding: 28px;
}

.calc-results.visible {
    display: block;
}

.calc-results h3 {
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.calc-result-item {
    text-align: center;
    padding: 16px 10px;
    background: var(--text-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.calc-result-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand);
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.calc-result-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.calc-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-style: italic;
}

.newsletter-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    color: var(--text-light);
    margin-bottom: 12px;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    min-width: 0;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
}

.newsletter-msg {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--color-cta);
    min-height: 1.5em;
}

.macro-table-wrap {
    margin-top: 18px;
}

.macro-table-wrap table {
    width: 100%;
}

.macro-table-wrap th {
    background: var(--text-light);
    color: var(--color-brand);
    font-size: 0.88rem;
}

.macro-table-wrap td {
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 85vh;
    }

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

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .home-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calc-form {
        grid-template-columns: 1fr;
    }

    .calc-result-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calculator-section {
        padding: 28px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

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

    .cat-card {
        padding: 24px 18px;
    }
}