/* Главный экран */
.home-hero {
    position: relative;
    width: 100%;
    margin-top: -85px;
    padding-top: 85px;
    background: linear-gradient(135deg, #4942E4 0%, #8696FE 50%, #C4B0FF 100%);
    overflow: hidden;
    min-height: 600px;
}

.site-header.transparent + main .home-hero {
    margin-top: -85px;
}

.site-header.transparent {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.solid {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.home-hero-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-hero__text {
    color: white;
}

.home-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 8s ease infinite;
}

@keyframes titleGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.home-hero__description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Правая колонка */
.home-hero__right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Поиск */
.home-search {
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.home-search__input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 1rem;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.home-search__input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.home-search__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.home-search__button {
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: #4942E4;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-search__button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Статистика */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.home-stats__item {
    text-align: center;
    color: white;
}

.home-stats__number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-stats__label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
}


/* Преимущества */
.home-features-section {
    margin-top: 5rem;
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #4942E4 0%, #8696FE 50%, #C4B0FF 100%);
    overflow: hidden;
}

.features-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.home-features-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.home-features-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
    background: linear-gradient(to right, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.home-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-feature__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-feature__icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
    transition: transform 0.3s ease;
}

.home-feature:hover .home-feature__icon svg {
    transform: scale(1.1);
}

.home-feature__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.home-feature__description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1200px) {
    .home-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-features-section {
        padding: 4rem 0;
    }

    .home-features-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .home-features {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem;
        margin: 0 -1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .home-features::-webkit-scrollbar {
        display: none;
    }

    .home-feature {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: 1.25rem;
    }

    .home-feature__icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.75rem;
    }

    .home-feature__title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .home-feature__description {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .home-features {
        gap: 0.75rem;
    }

    .home-feature {
        flex: 0 0 80%;
        padding: 1rem;
    }

    .home-feature__icon {
        width: 32px;
        height: 32px;
    }

    .home-features-title {
        font-size: 1.75rem;
    }
}

/* Направления */
.home-directions {
    padding: 6rem 0;
    background: var(--bg-light);
    overflow-x: hidden;
    width: 100%;
}

.home-directions__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.home-directions__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.home-directions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.home-direction-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
}

.home-direction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-direction-card__icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.home-direction-card__content {
    flex: 1;
}

.home-direction-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.home-direction-card__description {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .home-directions__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-directions {
        padding: 3rem 0;
    }

    .home-directions__title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-directions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .home-direction-card {
        padding: 0.75rem;
    }

    .home-direction-card__icon {
        font-size: 1.5rem;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .home-directions__grid {
        grid-template-columns: 1fr;
    }

    .home-direction-card__description {
        display: none;
    }
}

/* Популярные курсы */
.home-popular {
    padding: 6rem 0;
    background: var(--bg-light);
}

.home-popular__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-popular__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.home-popular__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.home-course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.home-course-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.home-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-course-card__content {
    padding: 1.5rem;
}

.home-course-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.home-course-card__school {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.home-course-card__price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

.home-popular__more {
    text-align: center;
}

.home-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background 0.2s;
}

.home-button:hover {
    background: var(--accent-dark);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .home-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .home-hero__title {
        font-size: 2.5rem;
    }

    .home-search {
        margin: 0 auto;
    }

    .home-hero__right {
        max-width: 600px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .home-hero {
        min-height: auto;
        padding: 6rem 0;
    }

    .home-hero-inner {
        padding: 2rem 1rem;
    }

    .home-hero__title {
        font-size: 2rem;
    }

    .home-hero__description {
        font-size: 1rem;
    }

    .home-search {
        flex-direction: column;
    }

    .home-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .home-stats__number {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .home-stats__label {
        font-size: 0.75rem !important;
    }

    .hero-background {
        display: none;
    }

    .home-search__input,
    .home-search__button {
        padding: 1rem 1.5rem;
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .home-directions,
    .home-popular {
        padding: 3rem 0;
    }

    .home-directions__title,
    .home-popular__title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-features-section {
        padding: 3rem 0;
    }

    .home-features-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-directions {
        padding: 3rem 0;
    }

    .home-directions__title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-directions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .home-direction-card {
        padding: 16px;
    }

    .home-direction-card__icon {
        font-size: 24px;
        margin-right: 12px;
    }

    .home-direction-card__title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .home-direction-card__description {
        display: none;
    }
}

@media (max-width: 480px) {
    .home-features {
        grid-template-columns: 1fr;
    }

    .home-features-title {
        font-size: 1.75rem;
    }

    .home-feature__icon {
        width: 32px;
        height: 32px;
    }

    .home-directions__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-direction-card {
        padding: 12px;
    }

    .home-direction-card__icon {
        font-size: 20px;
        margin-right: 10px;
    }

    .home-direction-card__description {
        display: none;
    }
}

.home-no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: white;
    font-size: 1.25rem;
    backdrop-filter: blur(5px);
}

/* Курсы по ChatGPT */
.home-chatgpt {
    padding: 6rem 0;
    background: var(--bg-light);
}

.home-chatgpt__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.home-chatgpt__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.home-chatgpt__slider {
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.home-chatgpt__track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.home-chatgpt__track::-webkit-scrollbar {
    display: none;
}

.home-chatgpt__slide {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 300px;
}

.home-chatgpt__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s;
    z-index: 1;
}

.home-chatgpt__arrow:hover {
    background: var(--accent-color);
    color: white;
}

.home-chatgpt__arrow--prev {
    left: 0;
}

.home-chatgpt__arrow--next {
    right: 0;
}

.home-chatgpt__more {
    text-align: center;
    margin-top: 3rem;
}

/* Медиа-запросы для слайдера */
@media (max-width: 1024px) {
    .home-chatgpt__slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .home-chatgpt__slide {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .home-chatgpt__arrow {
        width: 40px;
        height: 40px;
    }
}

/* Секция курсов (общие стили) */
.courses-section {
    padding: 2rem 0;
    background: var(--bg-light);
}

.courses-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.courses-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.courses-section__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.courses-section__slider {
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.courses-section__track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.courses-section__track::-webkit-scrollbar {
    display: none;
}

.courses-section__slide {
    flex: 0 0 calc(20% - 1.6rem);
    min-width: 200px;
}

.courses-section__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.2s ease;
    z-index: 1;
}

.courses-section__arrow:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.courses-section__arrow--prev {
    left: 0;
}

.courses-section__arrow--next {
    right: 0;
}

.courses-section__more {
    margin: 0;
}

.courses-section__more .home-button {
    padding: 0.875rem 1.5rem;
    background: rgba(73, 66, 228, 0.1);
    color: #4942E4;
    border: none;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.courses-section__more .home-button:hover {
    background: #4942E4;
    color: white;
}

@media (max-width: 768px) {
    .courses-section {
        padding: 3rem 0;
    }

    .courses-section__header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .courses-section__title {
        font-size: 1.5rem;
    }

    .courses-section__more .home-button {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    .courses-section__slide {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .courses-section__arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 1400px) {
    .courses-section__slide {
        flex: 0 0 calc(25% - 1.5rem);
    }
}

@media (max-width: 1024px) {
    .courses-section__slide {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
}

@media (max-width: 480px) {
    .courses-section__slide {
        flex: 0 0 calc(100% - 2rem);
    }
}

.home-features-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .home-features-dots {
        display: flex;
    }
} 