/* Стили для главной страницы */

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    min-height: 100vh !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: block !important;
}

html {
    height: auto !important;
    min-height: 100vh !important;
    display: block !important;
}

.home-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    padding-top: 0px;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    box-sizing: border-box;
}

.home-content {
    max-width: 780px;
    width: 100%;
    background: white;
    padding: 0 0 50px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

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

.banner-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.banner-container:hover .banner-image {
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.site-title {
    font-family: 'Reddit Mono', monospace;
    font-size: 2.8rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}


.course-content {
    text-align: left;
    padding: 0 30px;
    max-width: 480px;
    margin: 0 auto;
}

.course-title {
    font-family: 'Reddit Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 1.5rem 0;
    animation: fadeInUp 0.6s ease-out 0.5s both;
    text-transform: uppercase;
}

.course-list {
    font-family: 'Reddit Mono', monospace;
    font-size: 1rem;
    color: #444;
    line-height: 1.3;
    margin: 0 0 2rem 0;
    padding-left: 1.5rem;
}

.course-list li {
    margin-bottom: 0rem;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
    transition: transform 0.2s ease, color 0.2s ease;
}

.course-list li:hover {
    transform: translateX(5px);
    color: #2c2c2c;
}

.course-list li:nth-child(1) { animation-delay: 0.6s; }
.course-list li:nth-child(2) { animation-delay: 0.65s; }
.course-list li:nth-child(3) { animation-delay: 0.7s; }
.course-list li:nth-child(4) { animation-delay: 0.75s; }
.course-list li:nth-child(5) { animation-delay: 0.8s; }
.course-list li:nth-child(6) { animation-delay: 0.85s; }
.course-list li:nth-child(7) { animation-delay: 0.9s; }
.course-list li:nth-child(8) { animation-delay: 0.95s; }
.course-list li:nth-child(9) { animation-delay: 1.0s; }
.course-list li:nth-child(10) { animation-delay: 1.05s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    max-width: 360px;
}

.watch-button {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    background-color: #f60000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Reddit Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 1.1s both;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.2);
}

.watch-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.watch-button:hover::before {
    width: 300px;
    height: 300px;
}

.watch-button:hover {
    background-color: #f28f10;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.3);
}

.watch-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(44, 44, 44, 0.2);
}

.telegram-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.watch-button:hover .telegram-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Адаптивность для средних экранов (планшеты) */
@media (min-width: 769px) and (max-width: 1100px) {
    .home-container {
        padding: 40px 20px;
        padding-top: 0px;
        box-sizing: border-box;
        max-width: 780px;
        margin: 0 auto;
    }
    
    .home-content {
        max-width: calc(100% - 40px);
        width: 100%;
        box-sizing: border-box;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .home-container {
        align-items: flex-start;
        padding: 0;
        padding-top: 0;
        padding-bottom: 0px;
        overflow-y: auto;
        box-sizing: border-box;
        background: white;
    }

    .home-content {
        padding: 0 0 40px 0;
        animation-duration: 0.4s;
        box-shadow: none;
    }
    
    .banner-container {
        margin-bottom: 1.5rem;
        animation-duration: 0.4s;
    }
    
    .banner-container:hover {
        transform: none;
    }
    
    .banner-container:hover .banner-image {
        transform: none;
    }

    .site-title {
        font-size: 2rem;
        animation-duration: 0.4s;
    }

    
    .course-title {
        font-size: 1.3rem;
        animation-duration: 0.4s;
    }
    
    .course-list {
        font-size: 0.95rem;
        padding-left: 1.2rem;
    }
    
    .course-list li {
        animation-duration: 0.3s;
    }
    
    .course-list li:hover {
        transform: none;
    }
    
    .watch-button {
        font-size: 0.9rem;
        padding: 12px 20px;
        animation-duration: 0.4s;
    }
    
    .watch-button:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .home-container {
        align-items: flex-start;
        padding: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    .home-content {
        padding: 0;
        box-sizing: border-box;
    }

    .banner-container {
        margin-bottom: 1rem;
    }

    .site-title {
        font-size: 1.6rem;
    }

    
    .course-content {
        margin-top: 2rem;
    }
    
    .course-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .course-list {
        font-size: 0.9rem;
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .course-list li {
        margin-bottom: 0.4rem;
    }
    
    .watch-button {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
    
    .course-actions {
        margin-top: 1.5rem;
    }
}

