.banner {
    width: 100%;
    height: 100%;
}

.banner__bg {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #5f4b8b;
}

.banner__bg--img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
    opacity: 0.5;
}

.banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner__content {
    position: relative;
    z-index: 2;
    padding: 158px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.banner__content--tag {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 122%;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.banner__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 56px;
    line-height: 110%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.banner__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.8);
}

.tabs-nav {
    background: #fff;
    border-bottom: 1px solid rgba(95, 75, 139, 0.12);
    position: relative;
}

.tabs-nav__wrap {
    position: relative;
}

.tabs-nav__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav__scroll::-webkit-scrollbar {
    display: none;
}

.tabs-nav__list {
    display: flex;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
}

.tabs-nav__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #565656;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.tabs-nav__item::before {
    content: '';
    position: absolute;
    inset: 8px 4px;
    border-radius: 8px;
    background: rgba(95, 75, 139, 0.08);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: -1;
}

.tabs-nav__item span {
    position: relative;
    transition: color 0.25s ease;
}

.tabs-nav__item:hover span {
    color: #5f4b8b;
}

.tabs-nav__item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.tabs-nav__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #5f4b8b;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.tabs-nav__item.is-active span {
    font-weight: 700;
    color: #5f4b8b;
}

.tabs-nav__item.is-active::after {
    opacity: 1;
}

.tabs-nav__fade {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tabs-nav__fade--left {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.tabs-nav__fade--right {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.tabs-nav__fade.is-visible {
    opacity: 1;
}


.secondary {
    padding: 80px 0;
    background: #fff;
}

.title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 34px;
    line-height: 150%;
    color: #000;
    margin-bottom: 36px;
}

.secondary__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.secondary__card {
    display: flex;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    background: #f4f3f8;
    box-shadow: 0 2px 12px 0 rgba(95, 75, 139, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secondary__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px 0 rgba(95, 75, 139, 0.16);
}

/* Каждая вторая карточка — зеркально, картинка справа */
.secondary__grid > .data-aos:nth-child(even) .secondary__card {
    flex-direction: row-reverse;
}

.secondary__card--img {
    max-width: 480px;
    width: 100%;
    height: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

.secondary__card--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secondary__card:hover .secondary__card--img img {
    transform: scale(1.06);
}

.secondary__card--content {
    flex: 1;
    width: 100%;
    padding: 32px 32px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* На зеркальных карточках отступ тоже переворачиваем */
.secondary__grid > .data-aos:nth-child(even) .secondary__card--content {
    padding: 32px 40px 32px 32px;
}

.secondary__card--tag {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6ea1;
}

.secondary__card--text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.secondary__card--text h3 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    color: #5f4b8b;
    transition: color 0.25s ease;
}

.secondary__card:hover .secondary__card--text h3 {
    color: #4a3a6e;
}

.secondary__card--text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 175%;
    color: #565656;
}











.grading__block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 860px;
}

.grading__subtitle {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    color: #5f4b8b;
}

.grading__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 175%;
    color: #565656;
}

.grading__card {
    border-radius: 12px;
    padding: 24px;
    background: #f4f3f8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    box-shadow: 0 2px 12px 0 rgba(95, 75, 139, 0.06);
}

.grading__card-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: #5f4b8b;
}

.grading__list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
}

.grading__row {
    border-bottom: 1px solid rgba(95, 75, 139, 0.1);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.grading__row:last-child {
    border-bottom: none;
}

.grading__row:hover {
    background: rgba(95, 75, 139, 0.06);
}

.grading__label {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    color: #252525;
    transition: color 0.2s ease;
}

.grading__row:hover .grading__label {
    color: #5f4b8b;
}

.grading__value {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 15px;
    line-height: 150%;
    color: #5f4b8b;
}








.care__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 40px;
}

.care__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.care__content h3 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    color: #5f4b8b;
    margin-bottom: -6px;
}

.care__content p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 175%;
    color: #565656;
}

.care__content--img {
    width: 100%;
    height: 330px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(95, 75, 139, 0.08);
}

.care__content--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.care__content--img:hover img {
    transform: scale(1.06);
}








.teachers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    gap: 20px;
}

.teacher__card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f3f8;
    box-shadow: 0 2px 12px 0 rgba(95, 75, 139, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px 0 rgba(95, 75, 139, 0.16);
}

.teacher__card--img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.teacher__card--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.teacher__card:hover .teacher__card--img img {
    transform: scale(1.08);
}

.teacher__card--info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 12px 14px;
}

.teacher__card--info > p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    line-height: 130%;
    color: #5f4b8b;
}

.teacher__card--info > span {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    color: #565656;
}

.teacher__card--details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

.teacher__card--details p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #565656;
    margin: 0;
}

.teacher__card--details ul {
    list-style: disc;
    padding-left: 18px;
    margin: 4px 0 0;
}

.teacher__card--details ol {
    list-style: decimal;
    padding-left: 18px;
    margin: 4px 0 0;
}

.teacher__card--details li {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #565656;
}




.support__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 32px;
}

.support__card {
    display: flex;
    align-items: start;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f3f8;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 12px 0 rgba(95, 75, 139, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px 0 rgba(95, 75, 139, 0.16);
}

.support__card--img {
    max-width: 180px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.support__card--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.support__card:hover .support__card--img img {
    transform: scale(1.08);
}

.support__card--content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.support__card--content h3 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 17px;
    line-height: 150%;
    color: #5f4b8b;
}

.support__card--content p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 170%;
    color: #565656;
}








.schedule__table-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: auto;
    box-shadow: 0 2px 16px 0 rgba(95, 75, 139, 0.08);
}

.schedule__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.schedule__table thead tr {
    background: #5f4b8b;
}

.schedule__table thead th {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 13px;
    line-height: 150%;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    padding: 14px 16px;
}

.schedule__table tbody tr {
    transition: background 0.2s ease;
}

.schedule__table tbody tr:nth-child(even) {
    background: #f4f3f8;
}

.schedule__table tbody tr:hover {
    background: #e9e6f4;
}

.schedule__table tbody td {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #252525;
    padding: 12px 16px;
    white-space: nowrap;
}

.schedule__table .schedule__time {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 13px;
    line-height: 150%;
    color: #5f4b8b;
}










.title.short {
    margin-bottom: 16px;
}

.events__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 720px;
}

.events__text h3 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    color: #252525;
}

.events__text p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 175%;
    color: #565656;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 16px;
}

.event__card {
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 2px 12px 0 rgba(95, 75, 139, 0.07);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px 0 rgba(95, 75, 139, 0.16);
}

.event__card--img {
    border-radius: 28px;
    width: 56px;
    height: 56px;
    background: #f4f3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.event__card:hover .event__card--img {
    transform: scale(1.1);
}

.event__card p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
    color: #252525;
    transition: color 0.25s ease;
}

.event__card:hover p {
    color: #5f4b8b;
}




.secondary__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 40px;
}

.exam-status__col, .exam-status__col-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.exam-status__col h3, .exam-status__col-2 h3 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    color: #5f4b8b;
    margin-bottom: -4px;
}

.exam-status__col p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 170%;
    color: #565656;
    margin-top: -4px;
}

.exam-status__col ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.exam-status__col ul li {
    position: relative;
    padding-left: 20px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    color: #565656;
    max-width: 100%;
    transition: color 0.2s ease, transform 0.2s ease;
}

.exam-status__col ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5f4b8b;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.exam-status__col ul li:hover {
    color: #5f4b8b;
    transform: translateX(4px);
}

.exam-status__col ul li:hover::before {
    transform: translateY(-50%) scale(1.4);
}

.exam-status__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.exam-status__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.exam-status__list li:hover {
    transform: translateX(4px);
}

.exam-status__list li svg {
    width: 18px;
    height: 18px;
    padding-top: 2px;
    flex-shrink: 0;
}

.exam-status__list li span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 160%;
    color: #565656;
    transition: color 0.2s ease;
}

.exam-status__list li:hover span {
    color: #5f4b8b;
}

.exam-status__title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    color: #5f4b8b;
}

.uniform__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 48px;
}

.uniform__complect {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.uniform__complect--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.uniform__card {
    border-radius: 10px;
    padding: 16px 20px;
    background: #f4f3f8;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-shadow: 0 2px 10px 0 rgba(95, 75, 139, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.uniform__card:hover {
    transform: translateX(4px);
    background: #fff;
    box-shadow: 0 8px 18px 0 rgba(95, 75, 139, 0.15);
}

.uniform__card p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    color: #000;
    transition: color 0.25s ease;
}

.uniform__card:hover p {
    color: #5f4b8b;
}

.uniform__card span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #565656;
}






@media (max-width: 991px) {
    .banner__content {
        padding: 130px 0 48px;
    }

    .banner__title {
        font-size: 42px;
    }

    .banner__desc {
        font-size: 16px;
    }

    .secondary {
        padding: 56px 0;
    }

    .title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .secondary__card,
    .secondary__grid > .data-aos:nth-child(even) .secondary__card {
        flex-direction: column;
    }

    .secondary__card--img {
        max-width: 100%;
    }

    .secondary__card--content,
    .secondary__grid > .data-aos:nth-child(even) .secondary__card--content {
        padding: 24px;
    }

    .care__grid {
        gap: 28px;
    }

    .teachers__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .support__grid {
        gap: 20px;
    }

    .events__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .secondary__content {
        gap: 28px;
    }

    .uniform__content {
        gap: 28px;
    }

    .support__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .banner__content {
        padding: 110px 0 40px;
        gap: 12px;
    }

    .banner__title {
        font-size: 32px;
    }

    .banner__content--tag {
        font-size: 14px;
    }

    .banner__desc {
        font-size: 15px;
    }

    .tabs-nav__item {
        padding: 12px 16px;
        font-size: 12px;
    }

    .secondary {
        padding: 48px 0;
    }

    .title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .secondary__grid {
        gap: 20px;
    }

    .secondary__card--img {
        height: 260px;
    }

    .secondary__card--text h3 {
        font-size: 20px;
    }

    .grading__subtitle {
        font-size: 19px;
    }

    .grading__card {
        padding: 20px;
    }

    .care__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .care__content h3 {
        font-size: 19px;
    }

    .care__content--img {
        height: 260px;
    }

    .teachers__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .support__card--img {
        max-width: 130px;
    }

    .events__text h3 {
        font-size: 19px;
    }

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

    .secondary__content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .exam-status__col h3,
    .exam-status__col-2 h3 {
        font-size: 19px;
    }

    .uniform__content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 575px) {
    .banner__content {
        padding: 100px 0 32px;
    }

    .banner__title {
        font-size: 26px;
    }

    .banner__desc br {
        display: none;
    }

    .secondary__card--content {
        padding: 18px;
    }

    .secondary__card--text h3 {
        font-size: 18px;
    }

    .teachers__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .teacher__card--info {
        padding: 12px;
    }

    .teacher__card--info > p {
        font-size: 13px;
    }

    .teacher__card--info > span,
    .teacher__card--details p,
    .teacher__card--details li {
        font-size: 11px;
    }

    .support__card {
        flex-direction: column;
    }

    .support__card--img {
        max-width: 100%;
        height: 250px;
    }

    .grading__row {
        gap: 10px;
        padding: 12px 0;
    }

    .grading__value {
        text-align: right;
    }

    .events__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .event__card {
        padding: 16px 12px;
    }

    .event__card--img {
        width: 48px;
        height: 48px;
    }

    .uniform__card {
        padding: 14px 16px;
    }

    .exam-status__col, .exam-status__col-2 {
        gap: 15px;
    }

    .grading__block {
        gap: 15px;
    }
}

@media (max-width: 410px) {
    .teachers__grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}