*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #5A6DB3 rgba(255,255,255,0.1);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><polygon points="10,2 18,18 10,14 2,18" fill="%23ffd700" stroke="%23ffd700"/></svg>') 2 2, auto !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a, button, [role="button"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path d="M15,2 L25,25 L15,20 L5,25 Z" fill="%23ffd700" stroke="%23ffd700" stroke-width="2"/></svg>') 2 2, pointer !important;
}

.home-nav-links a.active,
.home-mobile-menu a.active {
    color: #5A6DB3;
    font-weight: bold;
    position: relative;
}

.home-nav-links a.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(77, 127, 255,0) 0%, 
        #5A6DB3 50%, 
        rgba(77, 127, 255,0) 100%
    );
    border-radius: 2px;
}

.home-mobile-menu a.active::after {
    content: '';
    display: block;
    width: 30%;
    height: 2px;
    background-color: #5A6DB3;
    margin: 5px auto 0;
    border-radius: 2px;
}

.home-nav-links a:hover,
.home-mobile-menu a:hover {
    color: #5A6DB3;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Webkit browsers custom scrollbar */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #5A6DB3;
    border-radius: 4px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: #596eb3;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #1a0f0f;
    overflow-x: hidden;
    margin-top: -100px; /* Added -100px margin */
}

main {
    flex: 1;
    width: 100%;
    max-width: 2424px;
    background-size: cover;          /* Растягивает изображение на весь экран */
    background-repeat: no-repeat;    /* Запрещает повторение */
    background-position: center;     /* Центрирует изображение */
    background-attachment: fixed;    /* Фиксирует фон при прокрутке */
    margin: 0;
    padding: 0;
    padding-top: 120px; /* Adjusted for fixed header height */
    background-image: url(https://fantasyicarus.com/img/bgs.png);
}

 
body::before, body::after {
    content: '';
    position: fixed; /* Changed from absolute to fixed */
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,236,196,0.4) 0%, rgba(230,213,195,0) 70%);
    pointer-events: none; /* Allows clicks to pass through */
    z-index: -1; /* Positions them behind other elements */
}

body::before {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
}

body::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.home-login-btn, .home-register-btn {
    transition: all 0.2s;
}

.home-login-btn {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
}

.home-login-btn:hover {
    color: #5A6DB3;
}

.home-register-btn {
    background: #5A6DB3;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
}

.home-register-btn:hover {
    background: #596eb3;
}

.home-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.home-hamburger div {
    width: 25px;
    height: 3px;
    background-color: #b3b3b3;
    transition: all 0.3s ease;
}

/* Hero Section */
.home-hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
}

.home-hero-text {
    max-width: 600px;
    z-index: 1;
    margin: 0 20px;
}

.home-hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    position: relative;
}

.home-hero-text h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, rgba(77, 127, 255,0.8) 0%, rgba(77, 127, 255,0) 100%);
}

.home-hero-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    padding: 0 20px;
}

.home-cta-btn {
    background: #5A6DB3;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(77, 127, 255, 0.3);
    position: relative;
}

.home-cta-btn:hover {
    background: #596eb3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 127, 255, 0.3);
}

.home-hero-image {
    margin-top: 0;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: scale(1);
}

.home-news-section {
    padding: 50px 20px;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.home-news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.home-news-card {
    flex: 1 1 300px;
    background: rgba(24, 24, 24, 0.5);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    max-width: 380px;
    position: relative;
}

.home-news-card:hover {
    transform: translateY(-5px);
}

.home-news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
}

.home-news-card:hover img {
    transform: scale(1.05);
}

.home-card-content {
    padding: 20px;
}

.home-card-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.home-card-content p {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-bottom: 15px;
}



.home-more-news-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(24, 24, 24, 0.5);
    color: #5A6DB3;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 127, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.home-more-news-btn:hover {
    background: rgba(194, 30, 30, 0.6);
    border-color: rgba(77, 127, 255, 0.5);
}

/* Removed ::after content and used CSS for the plus sign */
.home-more-news-btn::after {
    content: '+';
    font-size: 1rem;
    font-weight: 300;
}

.home-diferenciais-section {
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.home-diferenciais-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
}

.home-diferenciais-section h2 span {
    color: #5A6DB3;
}

.home-diferenciais-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(24, 24, 24, 0.5);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.home-diferencial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1 1 150px;
}

.home-diferencial-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.home-diferencial-text {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.home-sistemas-section {
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.home-sistemas-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
}

.home-sistemas-section h2 span {
    color: #5A6DB3;
}

.home-sistemas-slider {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    padding-bottom: 50px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: wrap;
}

.home-sistemas-slider::-webkit-scrollbar {
    display: none;
}

.home-sistema-card {
    flex: 0 0 280px;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    position: relative;
    border: 1px solid rgba(77, 127, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.9;
    min-height: 200px;
    margin: 10px;
    cursor: pointer;
}

.home-sistema-card:hover {
    transform: scale(1.05);
    opacity: 1;
    z-index: 2;
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(77, 127, 255, 0.3);
}

.home-sistema-card.active {
    transform: none;
    opacity: 0.9;
    z-index: 1;
}

.home-sistema-tag {
    color: #5A6DB3;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.home-sistema-card h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.home-sistema-card p {
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-card-decoration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-right: 2px solid #5A6DB3;
    border-bottom: 2px solid #5A6DB3;
    opacity: 0.5;
}

/* Slider Navigation for Desktop */
.home-slider-navigation {
    display: none;
}

/* Desktop specific styles */
.home-nav-links,
.home-nav-buttons {
    display: flex;
    /* Other desktop styles */
}

.home-mobile-menu {
    display: none !important; /* Ensure mobile menu is hidden on desktop */
}

.home-hamburger {
    display: none !important; /* Hide hamburger on desktop */
}



/* Mobile Styles */
/* Styles for screens up to 1200px */
@media (max-width: 1200px) {
    .home-nav-container {
        width: 95%;
    }

    .home-hero-section {
        padding: 80px 20px;
    }

    .home-hero-text h1 {
        font-size: 2rem;
    }

    .home-cta-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .home-sistema-card {
        flex: 0 0 260px;
    }
}

/* Styles for screens up to 992px */
@media (max-width: 992px) {
    .home-hero-section {
        flex-direction: column;
        text-align: center;
    }

    /* Navigation adjustments */
    .home-nav-links,
    .home-nav-buttons {
        display: none;
    }

    .home-hamburger {
        display: flex;
    }

    /* Mobile menu styles */
    .home-mobile-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(24, 24, 24, 0.9);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }

    .home-mobile-menu.active {
        display: flex;
        transform: translateX(0);
    }

    .home-sistemas-section {
        padding: 50px 10px;
    }

    /* News section */
    .home-destaques-heading {
        font-size: 2rem;
        margin: 140px 0 30px;
        padding-left: 15px;
    }

    .home-destaques-heading::after {
        width: 90%;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .home-news-card {
        margin-bottom: 15px;
    }

    /* Pagination */
    .home-pagination {
        gap: 5px;
        margin: 30px 0;
    }

    .home-page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Other sections */
    .home-diferenciais-container {
        flex-direction: column;
    }

    .home-diferencial-item {
        flex: none;
    }

    .home-sistemas-slider {
        padding: 0 20px;
    }

    .home-sistema-card {
        flex: 0 0 220px;
        min-height: 180px;
    }

    .home-sistema-card h4 {
        font-size: 1.2rem;
    }

    .home-sistema-card p {
        font-size: 0.85rem;
    }
}

/* Styles for screens up to 480px */
@media (max-width: 480px) {
    /* Navigation */
    .home-nav-links a {
        font-size: 0.9rem;
    }
}   
        