.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 70%;
    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;
}









.about {
    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;
}

.about-director__content {
    display: grid;
    grid-template-columns: 360px 1fr;
    align-items: start;
    gap: 48px;
}

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

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

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

.about-director__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

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

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

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

.about__text ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.about__text 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;
}

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

.about__text--author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.about__text--author span {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 180%;
    color: #5f4b8b;
}










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

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

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

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

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

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

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

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

.admin__card--position {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 12px;
    line-height: 150%;
    color: #565656;
}

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

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

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

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

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







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

.mission {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.mission__images {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

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

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










.principle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.gov__wrap {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    align-items: start;
}

.gov__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gov__item {
    border: none;
    background: #f4f3f8;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: left;
    color: #252525;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.gov__item:hover {
    background: rgba(95, 75, 139, 0.16);
    color: #5f4b8b;
    transform: translateX(3px);
}

.gov__item.is-active {
    background: #5f4b8b;
    color: #fff;
}

.gov__item.is-active:hover {
    background: #5f4b8b;
    transform: none;
}

.gov__content {
    position: relative;
    background: #f4f3f8;
    border-radius: 16px;
    padding: 32px;
    min-height: 160px;
}

.gov__panel {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gov__panel.is-active {
    display: block;
}

.gov__panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.gov__panel--text p a {
    color: #5f4b8b;
    text-decoration: underline;
}

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





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

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

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





.structure__table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px 0 rgba(95, 75, 139, 0.08);
}

.structure__table table {
    width: 100%;
    border-collapse: collapse;
}

.structure__table thead {
    background: #5f4b8b;
}

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

.structure__table td {
    padding: 14px 16px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #252525;
}

.structure__table td.is-accent {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: #5f4b8b;
}

.structure__table tbody tr {
    background: #fff;
    transition: background 0.2s ease;
}

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

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

.structure__table th:last-child,
.structure__table td:last-child {
    text-align: center;
}






.faq {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 860px;
    width: 100%;
}

.faq h3 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #252525;
}

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

.faq__item {
    border-bottom: 1px solid rgba(95, 75, 139, 0.15);
}

.faq__item--head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 18px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease;
}

.faq__item--head:hover {
    background: rgba(95, 75, 139, 0.05);
}

.faq__item--head h4 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #252525;
    transition: color 0.25s ease;
}

.faq__item--head:hover h4 {
    color: #5f4b8b;
}

.faq__plus {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq__plus--v {
    transform-origin: center;
    transition: transform 0.35s ease;
}

.faq__item.is-active .faq__plus--v {
    transform: rotate(90deg) scaleX(0);
}

.faq__item--body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq__item--body-inner {
    overflow: hidden;
}

.faq__item--body-inner p {
    padding: 0 4px 15px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 170%;
    color: #565656;
}

.faq__item--body-inner p a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 170%;
    color: #565656;
    text-decoration: underline;
}

.faq__item--body-inner ul,
.faq__item--body-inner ol {
    padding: 0 4px 15px 25px;
}

.faq__item--body-inner ul li,
.faq__item--body-inner ol li {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 170%;
    color: #565656;
    margin-bottom: 5px;
}

.faq__item--body-inner ul li {
    list-style: disc;
}

.faq__item--body-inner ol li {
    list-style: decimal;
}

/* Активное состояние */
.faq__item.is-active .faq__item--body {
    grid-template-rows: 1fr;
}






.gallery-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: -8px;
}

.gallery-tabs__filter {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.gallery-tabs__btn {
    border: 2px solid rgba(95, 75, 139, 0.25);
    border-radius: 60px;
    padding: 10px 22px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 13px;
    line-height: 150%;
    text-align: center;
    color: #000;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gallery-tabs__btn:hover {
    border-color: #5f4b8b;
    color: #5f4b8b;
}

.gallery-tabs__btn.is-active {
    border-color: #5f4b8b;
    background: #5f4b8b;
    color: #fff;
}

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

.gallery-tabs__item {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 10px 0 rgba(95, 75, 139, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.gallery-tabs__empty {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
    font-family: var(--font-family);
}

.gallery-tabs__empty.is-visible {
    display: block;
}

.gallery-tabs__item.is-hidden {
    display: none;
}

.gallery-tabs__item a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-tabs__item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-tabs__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #5f4b8b;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease;
}

.gallery-tabs__play::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
}

.gallery-tabs__item:hover .gallery-tabs__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}







.exams__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 24px;
}

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

.exam__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px 0 rgba(95, 75, 139, 0.16);
}

.exam__card--img {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.exam__card--content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
}

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

.exam__card:hover .exam__card--content h3 {
    color: #4a3a6e;
}

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






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

    .banner__title {
        font-size: 42px;
    }

    .banner__desc {
        font-size: 16px;
    }

    .about {
        padding: 56px 0;
    }

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

    .about-director__content {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }

    .about-director__img {
        height: 400px;
    }

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

    .principle__grid {
        gap: 32px;
    }

    .missin__img {
        height: 170px;
    }

    .gov__wrap {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }

    .gov__content {
        padding: 24px;
    }

    .about__img {
        height: 340px;
    }

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

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

    .structure__table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .structure__table table {
        min-width: 520px;
    }

    .structure__table th,
    .structure__table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .gallery-tabs__filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .gallery-tabs__filter::-webkit-scrollbar {
        display: none;
    }

    .gallery-tabs__btn {
        flex-shrink: 0;
    }
}

@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;
    }

    .about {
        padding: 48px 0;
    }

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

    .about-director__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-director__img {
        height: 320px;
    }

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

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

    .mission__images {
        gap: 12px;
    }

    .missin__img {
        height: 140px;
    }

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

    .gov__list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gov__panel h3 {
        font-size: 20px;
    }

    .structure__table {
        overflow-x: auto;
    }

    .structure__table table {
        min-width: 560px;
    }

    .faq h3 {
        font-size: 16px;
    }

    .faq__item--head h4 {
        font-size: 15px;
    }

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

    .gallery-tabs__item {
        height: 180px;
    }

    

    .exam__card--img {
        height: 190px;
    }

    .about__text {
        gap: 15px;
    }
}

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

    .banner__title {
        font-size: 26px;
    }

    .banner__desc br {
        display: none;
    }

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

    .admin__card--content h3 {
        font-size: 13px;
    }

    .gov__list {
        gap: 8px;
    }

    .gov__item {
        font-size: 13px;
        padding: 10px 14px;
    }

    .structure__table th,
    .structure__table td {
        padding: 10px 12px;
        font-size: 13px;
    }

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

    .gallery-tabs__item {
        height: 140px;
    }

    .gallery-tabs__btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .exams__grid {
        grid-template-columns: 1fr;
    }

    .about__img {
        height: 260px;
    }

    .gallery-tabs__play {
        width: 42px;
        height: 42px;
    }

    .gallery-tabs__play svg {
        width: 18px;
        height: 18px;
    }
}


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