.teacher-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: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

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

.teacher-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(15, 15, 35, 0) 0%,
        rgba(15, 15, 35, 0.4) 20%,
        rgba(15, 15, 35, 0.8) 60%,
        rgba(15, 15, 35, 0.95) 100%
    );
    z-index: 0;
}

.teacher-hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    z-index: 1;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 4rem;
    align-items: start;
}

.teacher-hero-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.teacher-info-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.teacher-info-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.teacher-hero-main h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 8s ease infinite;
    margin: 0;
}

.teacher-hero-courses h2,
.teacher-hero-about h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 8s ease infinite;
    margin: 0 0 1.5rem 0;
}

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

.teacher-hero-roles {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
}

.school-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.school-link:hover {
    opacity: 0.8;
}

.teacher-hero-school {
    font-size: 1.125rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.teacher-hero-school::before {
    content: 'Школа:';
    opacity: 0.7;
    margin-right: 0.25rem;
}

.school-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.school-name {
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
}

.teacher-hero-about {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
}

.teacher-hero-courses {
    margin-top: 2rem;
}

.teacher-hero-courses-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.courses-section__track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .courses-section__track {
        grid-template-columns: repeat(3, 1fr);
    }
    .teacher-hero-courses-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-section__track {
        grid-template-columns: repeat(2, 1fr);
    }
    .teacher-hero-container {
        grid-template-columns: 1fr;
    }
    .teacher-hero-courses-list {
        grid-template-columns: 1fr;
    }
    .school-logo {
        width: 20px;
        height: 20px;
    }
    
    .teacher-hero-school {
        font-size: 1rem;
        gap: 0.5rem;
    }
}

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

.course-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

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

.course-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.course-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.course-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
}

.course-card-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-price-block {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.course-card-price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-card-old-price {
    font-size: 0.875rem;
    color: #666;
    text-decoration: line-through;
}

.course-card-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4942E4;
}

.course-card-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
}

.course-card-duration svg {
    width: 16px;
    height: 16px;
    stroke: #666;
}

.course-card-button {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .teacher-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .teacher-hero {
        padding: 5rem 0 2rem;
        min-height: auto;
    }
    
    .teacher-hero-info h1 {
        font-size: 2rem;
    }
    
    .teacher-hero-courses {
        /* padding: 1.5rem; */
    }
    
    .teacher-hero-courses h2 {
        font-size: 1.5rem;
    }

    .course-card-content {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .course-card h3 {
        font-size: 1rem;
    }

    .teacher-info-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .teacher-hero-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
}

.teacher-hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.teacher-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-info-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.teachers-white-section {
    background: #fff;
    padding: 3.5rem 0 3rem 0;
    margin: 0 0 3rem 0;
}

.teachers-white-container {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 1rem;
}

.teachers-white-title {
    font-size: 2rem;
    font-weight: 700;
    color: #23244a;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.teachers-white-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1400px;
}

.teachers-white-card {
    background: #f8f9fa;
    border-radius: 1.1rem;
    box-shadow: 0 2px 12px rgba(30,30,60,0.06);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1.5px solid #e3e7f7;
    color: #23244a;
}

.teachers-white-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #e3e7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teachers-white-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.teachers-white-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.teachers-white-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #23244a;
    margin-bottom: 0.2rem;
    font-family: 'Golos Text', sans-serif;
}

.teachers-white-name a {
    color: #23244a;
    text-decoration: none;
}

.teachers-white-name a:hover {
    color: var(--primary-color, #4942E4);
}

.teachers-white-roles {
    font-size: 1rem;
    color: #6c7bbd;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.course-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.course-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-buttons .btn-primary {
    background: var(--primary-color, #4942E4);
    color: white;
    border: none;
}

.course-buttons .btn-primary:hover {
    background: var(--primary-hover-color, #3832B4);
    transform: translateY(-1px);
}

.course-buttons .btn-secondary {
    background: var(--bg-light, #f8f9fa);
    color: var(--text-color, #333);
    border: 1px solid var(--border-color, #e9ecef);
}

.course-buttons .btn-secondary:hover {
    background: var(--border-color, #e9ecef);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .teachers-white-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .teachers-white-card {
        flex-direction: column;
        align-items: center;
        padding: 1.2rem 0.7rem 0.7rem 0.7rem;
        gap: 1rem;
    }
    
    .teachers-white-photo {
        width: 70px;
        height: 70px;
    }
    
    .teachers-white-info {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .teachers-white-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .course-buttons {
        grid-template-columns: 1fr;
    }
}

.teacher-hero-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-hero-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.teacher-hero-contact a:hover {
    color: #fff;
    text-decoration: underline;
} 