/* =========================================================
   ABOUT.CSS — СТРАНИЦА «ОБ УЧИТЕЛЕ»
========================================================= */


/* =========================================================
   HERO
========================================================= */

.about-hero {
    position: relative;
    overflow: visible;

    padding: 0;

    background:
        radial-gradient(
            circle at 70% 45%,
            rgba(255,255,255,.96) 0,
            rgba(255,255,255,.58) 18%,
            transparent 43%
        ),
        linear-gradient(
            115deg,
            #eef6ff 0%,
            #f4f2ff 52%,
            #e9e5ff 100%
        );
}


/* =========================================================
   HERO INNER
========================================================= */

.about-hero-inner {
    position: relative;

    width: min(1420px, calc(100% - 64px));

    margin: 0 auto;

    min-height: 390px;
    height: 390px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        540px;

    align-items: center;

    gap: 10px;
}


/* =========================================================
   ЛЕВАЯ ЧАСТЬ
========================================================= */

.about-intro {
    position: relative;

    z-index: 10;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    padding: 0;

    margin: 0;
}


/* =========================================================
   КНОПКА «ВСЕ РАЗДЕЛЫ»

   ПОДНЯТА ВЫШЕ ТЕКСТА
========================================================= */

.about-sections {
    position: relative;

    z-index: 100;

    display: block;

    width: 100%;

    /*
       ПОДНИМАЕМ КНОПКУ ВЫШЕ
    */
    margin-top: -145px;

    margin-bottom: 20px;
}


/* =========================================================
   САМА КНОПКА
========================================================= */

.about-sections .sections-button {
    position: relative;

    top: auto;
    left: auto;

    z-index: 100;

    min-height: 42px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #7055f4,
            #5035df
        );

    color: #fff;

    font: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(87,64,234,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.about-sections .sections-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(87,64,234,.30);
}


.about-sections .sections-button:active {
    transform: translateY(0);
}


/* =========================================================
   МЕНЮ РАЗДЕЛОВ
========================================================= */

.about-sections .sections-menu {
    position: absolute;

    top: calc(100% + 7px);

    left: 0;

    z-index: 9999;

    width: 250px;

    display: none;

    padding: 8px;

    background: #fff;

    border: 1px solid #e5e1fa;

    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(40,31,110,.18);
}


.about-sections .sections-menu.open {
    display: grid;
}


.about-sections .sections-menu a {
    display: block;

    padding: 11px 13px;

    border-radius: 8px;

    text-decoration: none;

    color: #071546;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease;
}


.about-sections .sections-menu a:hover {
    background: #f1efff;

    color: #573fe9;
}


/* =========================================================
   НАДПИСЬ «УЧИТЕЛЬ ИНФОРМАТИКИ»
========================================================= */

.about-label {
    display: block;

    margin: 0 0 10px;

    color: #5b43ed;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   ЗАГОЛОВОК
========================================================= */

.about-intro h1 {
    margin: 0 0 13px;

    color: #071546;

    font-size: clamp(42px, 4vw, 58px);

    line-height: 1;

    letter-spacing: -2.5px;

    font-weight: 800;
}


.about-intro p {
    max-width: 570px;

    margin: 0;

    color: #566488;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   СТАРЫЕ КНОПКИ НЕ ПОКАЗЫВАЕМ
========================================================= */

.about-buttons {
    display: none;
}


.about-secondary {
    display: none;
}


/* =========================================================
   ФОТО
========================================================= */

.teacher-visual {
    position: relative;

    height: 360px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    transform: translateX(-20px);

    z-index: 5;
}


/* =========================================================
   СВЕЧЕНИЕ ВОКРУГ ФОТО
========================================================= */

.visual-glow {
    position: absolute;

    width: 390px;

    height: 390px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.55);

    box-shadow:
        0 0 0 18px rgba(255,255,255,.28),
        0 0 0 36px rgba(255,255,255,.14);

    pointer-events: none;
}


/* =========================================================
   КАРТИНКА
========================================================= */

.teacher-picture {
    position: relative;

    z-index: 2;

    width: 440px;

    height: 310px;

    overflow: hidden;

    border-radius: 72px;

    background:
        linear-gradient(
            145deg,
            #7860f2,
            #5741dd
        );

    box-shadow:
        0 22px 45px rgba(79,57,210,.20);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.teacher-picture:hover {
    transform: translateY(-4px);

    box-shadow:
        0 28px 55px rgba(79,57,210,.25);
}


.teacher-picture img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;
}


/* =========================================================
   БЕЙДЖ «30 ЛЕТ»
========================================================= */

.experience-badge {
    position: absolute;

    z-index: 5;

    right: -10px;

    bottom: 0;

    width: 105px;

    height: 135px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: #fff;

    border-radius: 20px;

    box-shadow:
        0 14px 35px rgba(51,43,122,.16);
}


.experience-badge strong {
    display: block;

    margin: 6px 0 2px;

    color: #071546;

    font-size: 29px;

    line-height: 1;

    font-weight: 800;
}


.experience-badge span {
    color: #59627d;

    font-size: 9px;

    font-weight: 700;
}


.experience-badge .star {
    color: #6045ed;

    font-size: 24px;

    line-height: 1;
}


/* =========================================================
   ФАКТЫ
========================================================= */

.facts {
    position: relative;

    z-index: 20;

    width: min(1420px, calc(100% - 64px));

    min-height: 82px;

    margin: 0 auto;

    padding: 13px 22px;

    display: grid;

    grid-template-columns:
        1.55fr
        .75fr
        1.05fr
        .85fr
        .85fr
        .95fr;

    align-items: center;

    gap: 8px;

    background: rgba(255,255,255,.98);

    border: 1px solid #e7e4f8;

    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(72,61,150,.12);

    transform: translateY(15px);
}


.fact {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 3px 7px;
}


.fact-icon {
    width: 36px;

    height: 36px;

    flex: 0 0 36px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #f0edff;

    color: #5b43ed;

    font-size: 15px;

    font-weight: 800;
}


.fact-text {
    min-width: 0;

    display: grid;

    gap: 2px;
}


.fact-text small {
    color: #68718d;

    font-size: 9px;
}


.fact-text strong {
    color: #071546;

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   ОСНОВНОЙ КОНТЕНТ
========================================================= */

.about-content {
    width: min(1420px, calc(100% - 64px));

    margin: 0 auto;

    padding-top: 55px;

    padding-bottom: 65px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 24px;
}


/* =========================================================
   КАРТОЧКИ
========================================================= */

.about-card {
    min-width: 0;

    padding: 30px;

    background: #fff;

    border: 1px solid #e8e5f7;

    border-radius: 20px;

    box-shadow:
        0 7px 24px rgba(65,59,130,.08);
}


/* =========================================================
   ЗАГОЛОВОК КАРТОЧКИ
========================================================= */

.about-card-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 17px;
}


.about-card-title-icon {
    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background: #f0edff;

    color: #5b43ed;

    font-size: 14px;
}


.about-card-label {
    color: #5b43ed;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   ИМЯ
========================================================= */

.about-card h2 {
    margin: 0 0 15px;

    color: #071546;

    font-size: 27px;

    line-height: 1.2;

    letter-spacing: -.7px;
}


.about-card p {
    margin: 0 0 14px;

    color: #53617f;

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   ПОДЧЁРКИВАНИЕ
========================================================= */

.about-underline {
    width: 58px;

    height: 3px;

    margin-bottom: 18px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #6247ed,
            #806bf5
        );
}


/* =========================================================
   ПОДХОД К ОБУЧЕНИЮ
========================================================= */

.approach-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 20px;
}


.approach-card {
    min-height: 145px;

    padding: 19px 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #faf9ff,
            #f1efff
        );

    border: 1px solid #eeeafd;

    border-radius: 15px;
}


.approach-icon {
    width: 45px;

    height: 45px;

    margin-bottom: 12px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background: #fff;

    font-size: 25px;

    box-shadow:
        0 5px 15px rgba(83,64,220,.08);
}


.approach-card h3 {
    margin: 0 0 7px;

    color: #071546;

    font-size: 12px;

    line-height: 1.3;
}


.approach-card p {
    margin: 0;

    color: #67718d;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   ЦИТАТА
========================================================= */

.teacher-quote {
    position: relative;

    margin-top: 20px;

    padding: 23px 25px;

    overflow: hidden;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #6146ed,
            #8c7bf4
        );

    color: #fff;

    box-shadow:
        0 12px 28px rgba(88,67,225,.20);
}


.teacher-quote::before {
    content: "“";

    position: absolute;

    left: 15px;

    top: -10px;

    color: rgba(255,255,255,.25);

    font-family: Georgia, serif;

    font-size: 80px;

    line-height: 1;
}


.teacher-quote p {
    position: relative;

    z-index: 2;

    margin: 0 0 10px;

    padding-left: 28px;

    color: #fff;

    font-size: 13px;

    line-height: 1.7;
}


.teacher-quote strong {
    display: block;

    padding-left: 28px;

    font-size: 11px;
}


/* =========================================================
   ЦЕННОСТИ
========================================================= */

.personal-values {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-top: 20px;
}


.value-card {
    padding: 16px;

    background: #f7f6ff;

    border-radius: 14px;

    border: 1px solid #eeecfb;
}


.value-card-icon {
    width: 35px;

    height: 35px;

    margin-bottom: 10px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #6549ed;

    color: #fff;
}


.value-card h3 {
    margin: 0 0 6px;

    color: #071546;

    font-size: 11px;
}


.value-card p {
    margin: 0;

    color: #66718f;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   АНИМАЦИЯ
========================================================= */

.about-intro,
.teacher-visual,
.facts,
.about-card {
    animation:
        aboutFadeUp .6s ease both;
}


.teacher-visual {
    animation-delay: .1s;
}


.facts {
    animation-delay: .15s;
}


.about-card:nth-child(2) {
    animation-delay: .2s;
}


@keyframes aboutFadeUp {

    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   DARK MODE — ИСПРАВЛЕННЫЙ
========================================================= */

.dark .about-hero {
    background:
        radial-gradient(
            circle at 70% 45%,
            rgba(65, 70, 125, .65),
            transparent 45%
        ),
        linear-gradient(
            115deg,
            #11152b 0%,
            #171a34 55%,
            #211d46 100%
        );
}

/* HERO — ТЕКСТ */

.dark .about-label {
    color: #9585ff !important;
}

.dark .about-intro h1 {
    color: #ffffff !important;
}

.dark .about-intro p {
    color: #c8cce2 !important;
}

/* КНОПКА «ВСЕ РАЗДЕЛЫ» */

.dark .about-sections .sections-button {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #7658ff,
            #5437e5
        ) !important;

    box-shadow:
        0 8px 24px rgba(90, 62, 230, .4);
}

/* МЕНЮ РАЗДЕЛОВ */

.dark .about-sections .sections-menu {
    background: #222645 !important;
    border-color: #3b3f65 !important;
}

.dark .about-sections .sections-menu a {
    color: #f2f3ff !important;
}

.dark .about-sections .sections-menu a:hover {
    background: #373b61 !important;
    color: #ffffff !important;
}

/* БЛОК ФАКТОВ */

.dark .facts {
    background: #202440 !important;
    border-color: #383c63 !important;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .35);
}

.dark .fact-icon {
    background: #353960 !important;
    color: #9b8cff !important;
}

.dark .fact small,
.dark .fact > div > small,
.dark .fact-text small {
    color: #aeb5d0 !important;
}

.dark .fact strong,
.dark .fact > div > strong,
.dark .fact-text strong {
    color: #ffffff !important;
}

/* КАРТОЧКА «ОБО МНЕ» */

.dark .about-card {
    background: #202440 !important;
    border-color: #383c63 !important;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .25);
}

.dark .about-card h2 {
    color: #ffffff !important;
}

.dark .about-card p {
    color: #c0c6dd !important;
}

.dark .about-card-label {
    color: #9585ff !important;
}

.dark .about-card-title-icon {
    background: #37315e !important;
    color: #a092ff !important;
}

/* МИНИ-КАРТОЧКИ */

.dark .mini-card {
    background: #292d50 !important;
    border-color: #3b3f65 !important;
}

.dark .mini-card strong {
    color: #ffffff !important;
}

.dark .mini-card p {
    color: #b9c0d8 !important;
}

.dark .mini-icon {
    background: #6047ed !important;
    color: #ffffff !important;
}

/* МОЙ ПОДХОД */

.dark .approach-card {
    background:
        linear-gradient(
            145deg,
            #292d50,
            #252946
        ) !important;

    border-color: #3b3f65 !important;
}

.dark .approach-card h3 {
    color: #ffffff !important;
}

.dark .approach-card p {
    color: #b9c0d8 !important;
}

.dark .approach-icon {
    background: #373b60 !important;
}

/* ЦИТАТА */

.dark .teacher-quote {
    color: #ffffff !important;
}

.dark .teacher-quote p {
    color: #ffffff !important;
}

.dark .teacher-quote strong {
    color: #ffffff !important;
}

/* ЦЕННОСТИ */

.dark .value-card {
    background: #292d50 !important;
    border-color: #3b3f65 !important;
}

.dark .value-card h3 {
    color: #ffffff !important;
}

.dark .value-card p {
    color: #b9c0d8 !important;
}

/* БЕЙДЖ «30 ЛЕТ» */

.dark .experience-badge {
    background: #ffffff !important;
}

.dark .experience-badge strong {
    color: #071546 !important;
}

.dark .experience-badge span {
    color: #59627d !important;
}

.dark .experience-badge .star {
    color: #6045ed !important;
}


/* ДОПОЛНИТЕЛЬНАЯ ЗАЩИТА ОТ ТЁМНОГО ТЕКСТА */

.dark .about-content,
.dark .about-content * {
    color-scheme: dark;
}

.dark .about-card-title,
.dark .about-card-title *,
.dark .fact,
.dark .fact *,
.dark .approach-card *,
.dark .value-card * {
    text-shadow: none;
}

/* =========================================================
   1200 PX
========================================================= */

@media (max-width: 1200px) {

    .about-hero-inner {
        width: calc(100% - 48px);

        grid-template-columns:
            minmax(0, 1fr)
            470px;

        height: 360px;

        min-height: 360px;
    }


    .facts {
        width: calc(100% - 48px);

        grid-template-columns:
            1.4fr
            .7fr
            1fr
            .8fr
            .8fr
            .9fr;
    }


    .teacher-picture {
        width: 390px;

        height: 280px;
    }


    .teacher-visual {
        transform: translateX(-5px);
    }


    .visual-glow {
        width: 350px;

        height: 350px;
    }


    .about-content {
        width: calc(100% - 48px);
    }
}


/* =========================================================
   950 PX
========================================================= */

@media (max-width: 950px) {

    .about-hero-inner {
        grid-template-columns:
            1fr 390px;

        height: 340px;

        min-height: 340px;
    }


    .about-sections {
        margin-top: -35px;

        margin-bottom: 18px;
    }


    .about-intro h1 {
        font-size: 45px;
    }


    .about-intro p {
        max-width: 480px;

        font-size: 14px;
    }


    .teacher-picture {
        width: 340px;

        height: 250px;
    }


    .visual-glow {
        width: 300px;

        height: 300px;
    }


    .experience-badge {
        width: 90px;

        height: 120px;

        right: 0;
    }


    .experience-badge strong {
        font-size: 25px;
    }


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

        padding: 14px;
    }


    .about-content {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   700 PX
========================================================= */

@media (max-width: 700px) {

    .about-hero {
        padding-bottom: 0;
    }


    .about-hero-inner {
        width: calc(100% - 32px);

        height: auto;

        min-height: 0;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

        padding-top: 25px;

        padding-bottom: 25px;
    }


    .about-sections {
        margin-top: -20px;

        margin-bottom: 18px;
    }


    .about-sections .sections-button {
        min-height: 42px;

        padding: 0 15px;

        font-size: 12px;
    }


    .about-sections .sections-menu {
        width: min(250px, 85vw);
    }


    .about-intro {
        padding: 0;

        text-align: left;
    }


    .about-label {
        font-size: 9px;
    }


    .about-intro h1 {
        font-size: 38px;

        letter-spacing: -1.5px;
    }


    .about-intro p {
        font-size: 13px;

        line-height: 1.6;
    }


    .teacher-visual {
        width: 100%;

        height: 280px;

        transform: none;
    }


    .teacher-picture {
        width: min(100%, 350px);

        height: 245px;

        border-radius: 48px;
    }


    .visual-glow {
        width: 270px;

        height: 270px;
    }


    .experience-badge {
        right: 0;

        bottom: 0;

        width: 80px;

        height: 105px;

        border-radius: 16px;
    }


    .experience-badge strong {
        font-size: 23px;
    }


    .experience-badge span {
        font-size: 8px;
    }


    .experience-badge .star {
        font-size: 19px;
    }


    .facts {
        width: calc(100% - 32px);

        grid-template-columns:
            1fr 1fr;

        gap: 7px;

        padding: 12px;

        transform: translateY(0);

        border-radius: 15px;
    }


    .fact {
        padding: 6px;
    }


    .fact-icon {
        width: 32px;

        height: 32px;

        flex-basis: 32px;
    }


    .fact-text small {
        font-size: 8px;
    }


    .fact-text strong {
        font-size: 9px;
    }


    .about-content {
        width: calc(100% - 32px);

        padding-top: 32px;

        padding-bottom: 45px;

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .about-card {
        padding: 22px;
    }


    .about-card h2 {
        font-size: 23px;
    }


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


    .personal-values {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   430 PX
========================================================= */

@media (max-width: 430px) {

    .about-hero-inner {
        width: calc(100% - 24px);

        padding-top: 20px;
    }


    .about-sections {
        margin-top: -15px;

        margin-bottom: 16px;
    }


    .about-sections .sections-button {
        min-height: 40px;

        padding: 0 14px;

        font-size: 11px;
    }


    .about-intro h1 {
        font-size: 34px;
    }


    .about-intro p {
        font-size: 12px;
    }


    .teacher-picture {
        width: 100%;

        height: 225px;
    }


    .teacher-visual {
        height: 240px;
    }


    .facts {
        width: calc(100% - 24px);

        grid-template-columns: 1fr;
    }


    .fact {
        padding: 8px;
    }


    .experience-badge {
        right: 2px;
    }


    .about-card {
        padding: 18px;
    }


    .about-card h2 {
        font-size: 21px;
    }
}


/* =========================================================
   ЗАЩИТА ОТ СТАРЫХ СТИЛЕЙ
========================================================= */

.about-hero-inner > .sections-button {
    position: static !important;

    top: auto !important;

    left: auto !important;
}


/* =========================================================
   ЕСЛИ СТАРАЯ КНОПКА БЫЛА В HEADER
========================================================= */

.header-left .sections-button {
    position: static !important;

    top: auto !important;

    left: auto !important;
}


/* =========================================================
   ФИНАЛЬНОЕ ПОЛОЖЕНИЕ КНОПКИ
========================================================= */

.about-sections .sections-button {
    position: relative !important;

    top: auto !important;

    left: auto !important;
}

/* =========================================================
   ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ ТЁМНОЙ ТЕМЫ
   НИЖНЯЯ ЧАСТЬ ABOUT
========================================================= */

/* ВЕСЬ БЛОК ОБО МНЕ */

body.dark .about-content {
    color: #ffffff !important;
}

body.dark .about-content .about-card {
    background: #202440 !important;
    color: #ffffff !important;
    border-color: #3b3f65 !important;
}


/* ВСЕ ТЕКСТЫ ВНУТРИ «ОБО МНЕ» */

body.dark .about-content .about-card,
body.dark .about-content .about-card * {
    color: #ffffff !important;
}


/* МЕЛКИЙ ЗАГОЛОВОК «ОБО МНЕ» */

body.dark .about-content .about-card-label {
    color: #9b8cff !important;
}


/* ИМЯ УЧИТЕЛЯ */

body.dark .about-content .about-card h2 {
    color: #ffffff !important;
}


/* ОСНОВНОЙ ТЕКСТ */

body.dark .about-content .about-card p {
    color: #d4d8e8 !important;
}


/* КАРТОЧКИ ПОД ОСНОВНЫМ ТЕКСТОМ */

body.dark .about-content .mini-card,
body.dark .about-content .approach-card {
    background: #292d50 !important;
    border-color: #41466d !important;
    color: #ffffff !important;
}


/* ВСЁ ВНУТРИ МИНИ-КАРТОЧЕК */

body.dark .about-content .mini-card *,
body.dark .about-content .approach-card * {
    color: #ffffff !important;
}


/* ОПИСАНИЯ В МИНИ-КАРТОЧКАХ */

body.dark .about-content .mini-card p,
body.dark .about-content .approach-card p {
    color: #cbd0e2 !important;
}


/* ЗАГОЛОВКИ МИНИ-КАРТОЧЕК */

body.dark .about-content .mini-card strong,
body.dark .about-content .approach-card h3 {
    color: #ffffff !important;
}


/* ИКОНКИ */

body.dark .about-content .mini-icon,
body.dark .about-content .approach-icon {
    color: #ffffff !important;
    background: #4f43a8 !important;
}


/* МОЙ ПОДХОД К ОБУЧЕНИЮ */

body.dark .about-content .approach-card h3,
body.dark .about-content .approach-card h2 {
    color: #ffffff !important;
}


/* ЦИТАТА */

body.dark .about-content .teacher-quote,
body.dark .about-content .teacher-quote *,
body.dark .about-content blockquote,
body.dark .about-content blockquote * {
    color: #ffffff !important;
}


/* ТЕКСТ В ЦИТАТЕ */

body.dark .about-content .teacher-quote p {
    color: #ffffff !important;
}


/* =========================================================
   ФАКТЫ ВВЕРХУ
========================================================= */

body.dark .facts {
    background: #202440 !important;
    border-color: #3b3f65 !important;
}

body.dark .facts * {
    color: #ffffff !important;
}

body.dark .facts small {
    color: #aeb5d0 !important;
}

body.dark .facts strong {
    color: #ffffff !important;
}

body.dark .fact-icon {
    background: #363a62 !important;
    color: #a394ff !important;
}


/* =========================================================
   FOOTER
========================================================= */

body.dark footer {
    background: #181b35 !important;
    border-top-color: #3a3e61 !important;
    color: #ffffff !important;
}

body.dark footer * {
    color: #d5d9e8 !important;
}

body.dark footer h3 {
    color: #ffffff !important;
}

body.dark footer a {
    color: #9b8cff !important;
}

body.dark footer a:hover {
    color: #ffffff !important;
}


/* =========================================================
   НА СЛУЧАЙ ЕСЛИ ГЛОБАЛЬНЫЙ CSS ПЕРЕКРАШИВАЕТ TEXT
========================================================= */

body.dark .about-content h1,
body.dark .about-content h2,
body.dark .about-content h3,
body.dark .about-content h4,
body.dark .about-content p,
body.dark .about-content span,
body.dark .about-content small,
body.dark .about-content strong,
body.dark .about-content b,
body.dark .about-content li {
    color: #ffffff !important;
}


/* ОПИСАНИЯ ДЕЛАЕМ НЕ ЧИСТО БЕЛЫМИ */

body.dark .about-content p,
body.dark .about-content small {
    color: #d0d5e5 !important;
}


/* ЗАГОЛОВКИ ОСТАЮТСЯ БЕЛЫМИ */

body.dark .about-content h1,
body.dark .about-content h2,
body.dark .about-content h3,
body.dark .about-content strong,
body.dark .about-content b {
    color: #ffffff !important;
}
























/* =========================================================
   СОВРЕМЕННЫЕ КАРТОЧКИ ФАКТОВ
========================================================= */

.facts {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 14px !important;

    padding: 14px !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;
}


/* ---------------------------------------------------------
   КАРТОЧКА
--------------------------------------------------------- */

.fact {
    position: relative;

    min-height: 112px;

    padding: 20px 16px;

    display: flex !important;
    align-items: center !important;
    gap: 13px !important;

    border-radius: 20px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(247,246,255,.98)
        ) !important;

    border: 1px solid rgba(105,85,235,.12) !important;

    box-shadow:
        0 8px 25px rgba(64,53,150,.08),
        inset 0 1px 0 rgba(255,255,255,.8) !important;

    overflow: hidden;

    transform-style: preserve-3d;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease,
        border-color .35s ease;
}


/* светящаяся полоска сверху */

.fact::before {
    content: "";

    position: absolute;

    top: 0;
    left: 18px;
    right: 18px;

    height: 3px;

    border-radius: 0 0 10px 10px;

    background:
        linear-gradient(
            90deg,
            #7357ff,
            #9b87ff,
            #6244ef
        );

    opacity: .35;

    transform: scaleX(.4);

    transition:
        transform .35s ease,
        opacity .35s ease;
}


/* мягкое свечение */

.fact::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -55px;
    top: -55px;

    border-radius: 50%;

    background: rgba(105,82,245,.15);

    filter: blur(5px);

    transition:
        transform .5s ease,
        opacity .5s ease;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.fact:hover {
    transform:
        translateY(-8px)
        rotateX(2deg)
        rotateY(-2deg);

    border-color: rgba(91,67,238,.35) !important;

    box-shadow:
        0 18px 40px rgba(82,63,210,.18),
        0 0 0 1px rgba(105,85,235,.08),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.fact:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.fact:hover::after {
    transform: scale(2.2);
}


/* ---------------------------------------------------------
   ИКОНКА
--------------------------------------------------------- */

.fact-icon {
    position: relative;
    z-index: 2;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px;

    display: grid !important;
    place-items: center !important;

    border-radius: 15px !important;

    background:
        linear-gradient(
            145deg,
            #f0edff,
            #e5e0ff
        ) !important;

    color: #6046ed !important;

    font-size: 20px !important;

    box-shadow:
        0 6px 15px rgba(88,68,220,.12);

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        background .3s ease,
        box-shadow .3s ease;
}

.fact:hover .fact-icon {
    transform:
        translateZ(18px)
        scale(1.12)
        rotate(-5deg);

    background:
        linear-gradient(
            145deg,
            #7052f5,
            #5436dc
        ) !important;

    color: white !important;

    box-shadow:
        0 10px 25px rgba(91,64,225,.35);
}


/* ---------------------------------------------------------
   ТЕКСТ
--------------------------------------------------------- */

.fact > div {
    position: relative;
    z-index: 2;

    min-width: 0;
}

.fact small {
    display: block;

    margin-bottom: 5px;

    color: #777f9d !important;

    font-size: 11px !important;
    font-weight: 500 !important;
}

.fact strong {
    display: block;

    color: #101a45 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
}


/* ---------------------------------------------------------
   DARK MODE
--------------------------------------------------------- */

.dark .facts {
    background: transparent !important;
}

.dark .fact {
    background:
        linear-gradient(
            145deg,
            #252a4a,
            #1e233f
        ) !important;

    border-color: #393f68 !important;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.dark .fact:hover {
    border-color: #6656d9 !important;

    box-shadow:
        0 18px 40px rgba(55,43,150,.35),
        0 0 25px rgba(95,75,230,.12) !important;
}

.dark .fact-icon {
    background:
        linear-gradient(
            145deg,
            #393e68,
            #30355a
        ) !important;

    color: #a99cff !important;
}

.dark .fact:hover .fact-icon {
    background:
        linear-gradient(
            145deg,
            #7658ff,
            #5538dc
        ) !important;

    color: white !important;
}

.dark .fact small {
    color: #9da5c4 !important;
}

.dark .fact strong {
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   АДАПТИВ
--------------------------------------------------------- */

@media (max-width: 1200px) {

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

}

@media (max-width: 700px) {

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

    .fact {
        min-height: 100px;
        padding: 14px;
    }

    .fact-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px;
    }

    .fact strong {
        font-size: 12px !important;
    }

}

@media (max-width: 480px) {

    .facts {
        grid-template-columns: 1fr !important;
    }

}


/* =========================================================
   ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ ПОЗИЦИИ ФОТО
   Двигаем именно .teacher-picture, а не весь .teacher-visual.
========================================================= */

.about-hero .about-hero-inner .teacher-visual > .teacher-picture {
    position: relative !important;
    left: -70px !important;
    transform: translateX(-70px) !important;
    margin-left: 0 !important;
}

/* Не даём внутренним правилам анимации вернуть фото назад */
.about-hero .about-hero-inner .teacher-visual > .teacher-picture {
    animation: none !important;
}

/* Сам img не должен компенсировать сдвиг */
.about-hero .about-hero-inner .teacher-visual > .teacher-picture img {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
}

/* На мобильном оставляем фото по центру */
@media (max-width: 900px) {
    .about-hero .about-hero-inner .teacher-visual > .teacher-picture {
        left: 0 !important;
        transform: none !important;
    }
}


/* =========================================================
   ФИНАЛ: УБИРАЕМ СЕРЫЙ КРУГ ЗА ФОТО
========================================================= */

.about-hero .teacher-visual .visual-glow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* =========================================================
   ФОТО: ОСТАВЛЯЕМ СДВИГ ВЛЕВО НА 70PX
========================================================= */

.about-hero .about-hero-inner .teacher-visual > .teacher-picture {
    position: relative !important;
    left: -70px !important;
    transform: none !important;
    margin-left: 0 !important;
    z-index: 2 !important;
}


/* =========================================================
   БЕЙДЖ «30 ЛЕТ» — В УГОЛ ФОТО
   И НОРМАЛЬНЫЙ ВИД В ТЁМНОЙ ТЕМЕ
========================================================= */

.about-hero .teacher-visual .experience-badge {
    right: 15px !important;
    bottom: 25px !important;

    width: 105px !important;
    height: 135px !important;

    background: #292d50 !important;
    border: 1px solid #474c78 !important;

    box-shadow:
        0 14px 35px rgba(0,0,0,.35) !important;

    z-index: 6 !important;
}

.dark .about-hero .teacher-visual .experience-badge {
    background: #292d50 !important;
    border-color: #474c78 !important;
}

.dark .about-hero .teacher-visual .experience-badge strong,
.about-hero .teacher-visual .experience-badge strong {
    color: #ffffff !important;
}

.dark .about-hero .teacher-visual .experience-badge span,
.about-hero .teacher-visual .experience-badge span {
    color: #c7cbe5 !important;
}

.dark .about-hero .teacher-visual .experience-badge .star,
.about-hero .teacher-visual .experience-badge .star {
    color: #8b73ff !important;
}


/* =========================================================
   НА УЗКИХ ЭКРАНАХ БЕЙДЖ НЕ ВЫЛЕЗАЕТ
========================================================= */

@media (max-width: 1100px) {
    .about-hero .teacher-visual .experience-badge {
        right: 10px !important;
        bottom: 20px !important;
        width: 90px !important;
        height: 120px !important;
    }
}

@media (max-width: 900px) {
    .about-hero .about-hero-inner .teacher-visual > .teacher-picture {
        left: 0 !important;
    }

    .about-hero .teacher-visual .experience-badge {
        right: 5px !important;
        bottom: 10px !important;
    }
}


/* =========================================================
   ФИНАЛЬНАЯ ТЕМА: БЕЙДЖ «30 ЛЕТ» В СВЕТЛОЙ И ТЁМНОЙ ТЕМЕ
========================================================= */

/* СВЕТЛАЯ ТЕМА — когда .dark на body НЕТ */
body:not(.dark) .about-hero .teacher-visual .experience-badge {
    background: #ffffff !important;
    border: 1px solid #e8e5f8 !important;
    color: #14204b !important;
    box-shadow:
        0 12px 30px rgba(77, 61, 190, 0.16) !important;
}

body:not(.dark) .about-hero .teacher-visual .experience-badge strong {
    color: #14204b !important;
}

body:not(.dark) .about-hero .teacher-visual .experience-badge small {
    color: #66729a !important;
}

body:not(.dark) .about-hero .teacher-visual .experience-badge .experience-star {
    color: #5b43ed !important;
}

/* ТЁМНАЯ ТЕМА */
body.dark .about-hero .teacher-visual .experience-badge {
    background: #292d50 !important;
    border: 1px solid #474c78 !important;
    color: #ffffff !important;
    box-shadow:
        0 14px 35px rgba(0,0,0,.35) !important;
}

body.dark .about-hero .teacher-visual .experience-badge strong {
    color: #ffffff !important;
}

body.dark .about-hero .teacher-visual .experience-badge small {
    color: #c7cbe5 !important;
}

body.dark .about-hero .teacher-visual .experience-badge .experience-star {
    color: #a99cff !important;
}


/* =========================================================
   ЕСЛИ СКРИПТ ИСПОЛЬЗУЕТ .dark-theme ВМЕСТО .dark
========================================================= */

.dark-theme .about-hero .teacher-visual .experience-badge {
    background: #292d50 !important;
    border-color: #474c78 !important;
    color: #ffffff !important;
}

.dark-theme .about-hero .teacher-visual .experience-badge strong {
    color: #ffffff !important;
}

.dark-theme .about-hero .teacher-visual .experience-badge small {
    color: #c7cbe5 !important;
}

.dark-theme .about-hero .teacher-visual .experience-badge .experience-star {
    color: #a99cff !important;
}


/* =========================================================
   СЕРЫЙ КРУГ — УДАЛЯЕМ В ОБЕИХ ТЕМАХ
========================================================= */

.about-hero .teacher-visual > .visual-glow,
.about-hero .teacher-visual .visual-glow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: none !important;
    box-shadow: none !important;
}


/* =========================================================
   ФОТО ОСТАЁТСЯ СДВИНУТЫМ НА -70PX
========================================================= */

.about-hero .about-hero-inner .teacher-visual > .teacher-picture {
    position: relative !important;
    left: -70px !important;
    transform: none !important;
    margin-left: 0 !important;
    z-index: 2 !important;
}

.about-hero .about-hero-inner .teacher-visual > .teacher-picture img {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
}


/* =========================================================
   БЕЙДЖ ОСТАЁТСЯ В НИЖНЕМ ПРАВОМ УГЛУ ФОТО
========================================================= */

.about-hero .teacher-visual .experience-badge {
    right: 15px !important;
    bottom: 25px !important;
    z-index: 10 !important;
}

@media (max-width: 900px) {
    .about-hero .about-hero-inner .teacher-visual > .teacher-picture {
        left: 0 !important;
    }

    .about-hero .teacher-visual .experience-badge {
        right: 5px !important;
        bottom: 10px !important;
    }
}


/* =========================================================
   ИСПРАВЛЕНИЕ: СВЕТЛАЯ ТЕМА ДОЛЖНА БЫТЬ БЕЛОЙ
   Бейдж по умолчанию = светлый.
========================================================= */

.about-hero .teacher-visual .experience-badge {
    background: #ffffff !important;
    border: 1px solid #e7e3fa !important;
    color: #14204b !important;
    box-shadow: 0 12px 30px rgba(77, 61, 190, 0.16) !important;
}

.about-hero .teacher-visual .experience-badge strong {
    color: #14204b !important;
}

.about-hero .teacher-visual .experience-badge small {
    color: #66729a !important;
}

.about-hero .teacher-visual .experience-badge .experience-star {
    color: #5b43ed !important;
}


/* =========================================================
   ТЁМНАЯ ТЕМА
   Поддерживаем разные варианты класса/атрибута,
   которые может использовать script.js.
========================================================= */

html.dark body .about-hero .teacher-visual .experience-badge,
body.dark .about-hero .teacher-visual .experience-badge,
html.dark-theme body .about-hero .teacher-visual .experience-badge,
body.dark-theme .about-hero .teacher-visual .experience-badge,
html[data-theme="dark"] body .about-hero .teacher-visual .experience-badge,
body[data-theme="dark"] .about-hero .teacher-visual .experience-badge {
    background: #292d50 !important;
    border-color: #474c78 !important;
    color: #ffffff !important;
    box-shadow: 0 14px 35px rgba(0,0,0,.35) !important;
}

html.dark body .about-hero .teacher-visual .experience-badge strong,
body.dark .about-hero .teacher-visual .experience-badge strong,
html.dark-theme body .about-hero .teacher-visual .experience-badge strong,
body.dark-theme .about-hero .teacher-visual .experience-badge strong,
html[data-theme="dark"] body .about-hero .teacher-visual .experience-badge strong,
body[data-theme="dark"] .about-hero .teacher-visual .experience-badge strong {
    color: #ffffff !important;
}

html.dark body .about-hero .teacher-visual .experience-badge small,
body.dark .about-hero .teacher-visual .experience-badge small,
html.dark-theme body .about-hero .teacher-visual .experience-badge small,
body.dark-theme .about-hero .teacher-visual .experience-badge small,
html[data-theme="dark"] body .about-hero .teacher-visual .experience-badge small,
body[data-theme="dark"] .about-hero .teacher-visual .experience-badge small {
    color: #c7cbe5 !important;
}

html.dark body .about-hero .teacher-visual .experience-badge .experience-star,
body.dark .about-hero .teacher-visual .experience-badge .experience-star,
html.dark-theme body .about-hero .teacher-visual .experience-badge .experience-star,
body.dark-theme .about-hero .teacher-visual .experience-badge .experience-star,
html[data-theme="dark"] body .about-hero .teacher-visual .experience-badge .experience-star,
body[data-theme="dark"] .about-hero .teacher-visual .experience-badge .experience-star {
    color: #a99cff !important;
}


/* =========================================================
   СЕРЫЙ КРУГ УДАЛЯЕМ В ЛЮБОЙ ТЕМЕ
========================================================= */

.about-hero .teacher-visual .visual-glow {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* =========================================================
   ФОТО −70PX
========================================================= */

.about-hero .about-hero-inner .teacher-visual > .teacher-picture {
    position: relative !important;
    left: -70px !important;
    transform: none !important;
    margin-left: 0 !important;
    z-index: 2 !important;
}


/* БЕЙДЖ В УГЛУ ФОТО */
.about-hero .teacher-visual .experience-badge {
    right: 15px !important;
    bottom: 25px !important;
    z-index: 10 !important;
}

@media (max-width: 900px) {
    .about-hero .about-hero-inner .teacher-visual > .teacher-picture {
        left: 0 !important;
    }
}
