/* Основные стили для блока */
.hero-section {
    margin-top: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px;
    background-color: #1a1a1a;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.controls-container {
    background-position: 0 90%;
    cursor: pointer;
    line-height: 23px;
    outline: none;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: transparent;
    transition: background-image .35s ease-out, color .35s ease-out, border-color .35s ease-out;
    color: #343a40;
    margin-left: 2px;
    position: sticky;
    min-height: 2em;
    border-radius: 10px;
    box-shadow: 3px 2px 5px 0;
    font-weight: bold;
    font-size: 14px;
    border-top: 4px solid rgba(0, 0, 0, .125);
    gap: 20px;
    align-items: center;
}

.theme-toggle {
    font-size: 18px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 16px;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.footer-menu-item {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #1c2331;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 360px;
    flex-wrap: wrap;
    max-height: 60px;
    color: #667ae4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: bold;
}

.badge-recommendation {
    background: #ffcc00;
    color: #000;
}

.badge-new {
    background: #00cc99;
    color: #fff;
}

.hero-body {
    border-radius: 14px;
    border: 1px solid #212435;
    padding: 11px;
    box-shadow: 3px 2px 5px 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.metrics-item {
    backdrop-filter: blur(1px);
    text-align: center;
    padding: 8px;
    background: #1a1a1a91;
    border-radius: 8px;
}

.metrics-key {
    font-size: 12px;
    color: #6b7ce1;
    margin: 0;
}

.metrics-value {
    font-size: 18px;
    font-weight: bold;
    color: #667ae4;
    margin: 5px 0 0 0;
}

.hero-center {
    color: #e9ecef;
    padding: 0 15px;
}

.hero-title {
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 14px;
    text-align: start;
    margin: 6px;
    margin: 0 auto;
    padding-bottom: 15px;
}

.hero-center p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.resources-preview-title {
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: bold;
    font-size: 17px;
    text-align: start;
    margin: 0 auto;
    padding-bottom: 15px;
    color: #e9ecef;
}

.review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 24px;
    color: #fbbf24;
}

.star {
    animation: sparkle 1.5s infinite ease-in-out;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
    align-items: center;
    background-color: transparent;
    border-radius: 12px;
    padding: 4px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    flex: 1;
}

.feature-icon {
    width: 30px;
    height: 25px;
    color: #e9ecef;
}

.feature-text {
    font-size: 14px;
    color: #e9ecef;
    font-weight: bold;
}

.hero-videos {
    border: 1px solid #6b7ce1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.video-card {
    max-width: 220px;
    max-height: 150px;
    margin: 0 auto;
}

.video-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-card img:hover {
    transform: scale(1.05);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 10px;
        padding: 8px;
    }

    .controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }

    .theme-toggle {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .footer-menu-list {
        flex-direction: column;
        gap: 10px;
    }

    .footer-menu-item {
        width: 100%;
        max-width: none;
        max-height: none;
        justify-content: flex-start;
    }

    .hero-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .hero-left {
        order: 1;
    }

    .hero-center {
        order: 2;
        padding: 0;
    }

    .hero-videos {
        order: 3;
    }

    .hero-title {
        font-size: 18px;
        text-align: center;
    }

    .resources-preview-title {
        font-size: 16px;
        text-align: center;
    }

    .features-grid {
        flex-direction: column;
        gap: 10px;
    }

    .feature-item {
        min-width: auto;
        justify-content: center;
    }

    .video-card {
        max-width: 100%;
    }

    .metrics-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .metrics-item {
        flex: 1;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 5px;
    }

    .controls-container {
        padding: 10px;
        font-size: 12px;
    }

    .theme-toggle {
        padding: 12px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 16px;
    }

    .resources-preview-title {
        font-size: 14px;
    }

    .feature-text {
        font-size: 12px;
    }

    .review-rating {
        font-size: 20px;
        justify-content: center;
    }
}

/* Стиль для контейнера анимации */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Анимация для круга */
.loader {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1.5s linear infinite;
}

/* Анимация вращения */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Стиль для скрытия анимации после загрузки */
.hidden {
  display: none;
}

.MainModal {
display: none;
position: relative;
margin: auto;
background-color: #292929;
border-radius: 10px;
padding: 20px;
z-index: 1000;
max-width: 800px;
height: fit-content;
border: 2px dashed #838383;
flex-direction: column;
margin-top: 53px;
}
.MainModal.Active {
display: flex;
}
.MainModalClose {
position: absolute;
top: 10px;
right: 10px;
z-index: 1;
}
.MainModalClose>svg {
width: 20px;
height: 20px;
transform: rotate(-90deg);
}
.MainModalClose:hover {
opacity: .8;
}
