/* Основные стили */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --background-color: #f8fafc;
    --container-max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, system-ui, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Unbounded", sans-serif;
    font-optical-sizing: auto;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 24px;
      color: var(--text-color);
  }
  

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}


/* Общие стили компонентов */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    opacity: 0.9;
}

header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0;
}

/* Медиа-запросы для основного контейнера */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem 0;
    }
    
    .courses-content {
        padding: 1rem;
    }

    header {
        padding: 0; /* Убрал паддинг для хедера на мобилке */
    }
}

/* Скрываем скролл при горизонтальной прокрутке */
.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Футер */
.site-footer {
    background: #1a1a1a;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-columns {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-column h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    display: block;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-disclaimers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    line-height: 1.5;
}

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

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        text-align: left;
    }

    .footer-brand {
        text-align: left;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-logo {
        width: 140px;
    }

    .footer-tagline {
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }
    
    .footer-legal {
        margin-top: 1rem;
    }

    .footer-column {
        /* padding-bottom: 1.5rem; */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-column h3 {
        margin-bottom: 1rem;
        font-size: 1.125rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .footer-column h3::after {
        content: '';
        width: 12px;
        height: 12px;
        border-right: 2px solid rgba(255, 255, 255, 0.5);
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .footer-column.active h3::after {
        transform: rotate(-135deg);
    }

    .footer-column ul {
        display: none;
        padding-top: 0.5rem;
    }

    .footer-column.active ul {
        display: block;
        margin-bottom: 2rem;
    }

    .footer-column ul li {
        margin-bottom: 0.1rem;
    }

    .footer-column ul li:last-child {
        margin-bottom: 0;
    }

    .footer-column ul li a {
        font-size: 0.9375rem;
        padding: 0.3rem 0;
        display: block;
    }

    .footer-disclaimers {
        gap: 1rem;
    }

    .footer-disclaimer {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 120px;
    }

    .footer-column h3 {
        font-size: 1rem;
    }

    .footer-column ul li a {
        font-size: 0.875rem;
    }
}

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

.home-direction-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.home-direction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.home-direction-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-direction-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

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

@media (max-width: 768px) {
    .home-directions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }

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

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

    .home-direction-card__title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .home-direction-card__description {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .home-directions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

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

    .home-direction-card__icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

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

/* Страница 404 */
.error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #4942E4 0%, #8696FE 50%, #C4B0FF 100%);
    overflow: hidden;
    margin-top: -85px;
    padding-top: 85px;
}

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

.error-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-content {
    color: white;
}

.error-title {
    font-size: 8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    background: linear-gradient(to right, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-description {
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem 0;
}

.error-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.error-actions {
    display: flex;
    gap: 1rem;
}

.error-button {
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-button {
    background: white;
    color: #4942E4;
}

.error-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-button--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-illustration svg {
    width: 300px;
    height: 300px;
    stroke: white;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .error-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .error-title {
        font-size: 6rem;
    }

    .error-description {
        font-size: 1.5rem;
    }

    .error-text {
        font-size: 1rem;
    }

    .error-actions {
        justify-content: center;
    }

    .error-illustration svg {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 1.5rem;
    }

    .error-title {
        font-size: 4rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
        text-align: center;
    }

    .error-illustration svg {
        width: 150px;
        height: 150px;
    }
}

/* Топ направления */
.home-trending {
    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;
    margin-top: 2rem;
}

.home-trending__header {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-trending__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-trending__tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.7rem;
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
}

.home-trending__tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .home-trending {
        padding: 1rem;
        display: none;
        margin-top: 1.5rem;
    }

    .home-trending__header {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .home-trending__list {
        gap: 0.5rem;
    }

    .home-trending__tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

.ai-breadcrumbs-wrap {
    max-width: 1400px;
    margin: 0 auto 1.2rem auto;
    padding: 0 12px;
}
.ai-breadcrumbs {
    font-size: 1.01rem;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3em;
    margin-bottom: 0.2rem;
    margin-top: 1rem;
}
.ai-breadcrumbs a {
    color: #4942E4;
    text-decoration: none;
    font-weight: 600;
}
.ai-breadcrumbs a:hover {
    text-decoration: underline;
}
.ai-breadcrumbs-sep {
    color: #bbb;
    margin: 0 0.5em;
    font-size: 1.1em;
}
@media (max-width: 900px) {
    .ai-breadcrumbs-wrap {
        display: none;
        max-width: 100%;
        padding: 0 8px;
        margin-bottom: 0.7rem;
    }
    .ai-breadcrumbs {
        font-size: 0.97rem;
        gap: 0.2em;
    }
}

