/* =========================================================
   САЙТ УЧИТЕЛЯ ИНФОРМАТИКИ
   ПОЛНЫЙ STYLE.CSS
========================================================= */


/* =========================================================
   ОСНОВНЫЕ НАСТРОЙКИ
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f6ff;
    color: #18234f;
    transition:
        background 0.35s ease,
        color 0.35s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1560px, calc(100% - 76px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 35px;

    position: relative;
    z-index: 100;

    background: #ffffff;

    border-bottom: 1px solid #e8e4ff;

    transition:
        background 0.35s ease,
        border-color 0.35s ease;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 245px;

    font-size: 18px;
    font-weight: 800;

    color: #18234f;
}

.logo-mark {
    width: 58px;
    height: 58px;

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

    border: 3px solid #7351ff;
    border-radius: 8px;

    color: #6845ff;

    font-size: 20px;
    font-weight: 900;
}


/* MENU */

.menu {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.menu a {
    min-height: 52px;

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

    gap: 7px;

    padding: 0 18px;

    border-radius: 13px;

    color: #18234f;

    font-weight: 700;
    font-size: 16px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.menu a:hover {
    background: #f0edff;
    color: #6242ed;

    transform: translateY(-1px);
}

.menu a.active {
    background: #f0edff;
    color: #6242ed;
}


/* ACTIONS */

.actions {
    display: flex;
    align-items: center;

    gap: 18px;
}


/* THEME */

.theme {
    width: 88px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    border: 1px solid #8c82c9;
    border-radius: 30px;

    background: transparent;

    color: #6544ed;

    font-size: 18px;

    position: relative;
}

.theme i {
    width: 32px;
    height: 32px;

    position: absolute;
    left: 28px;

    border-radius: 50%;

    background: #6845ee;

    box-shadow: 0 4px 12px rgba(92, 62, 230, 0.3);

    transition: left 0.3s ease;
}


/* LOGIN */

.login {
    height: 52px;

    padding: 0 25px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #704cff,
            #5736df
        );

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        0 9px 20px rgba(91, 57, 222, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 28px rgba(91, 57, 222, 0.35);
}


/* =========================================================
   MAIN
========================================================= */

main {
    background: #f7f6ff;
    transition: background 0.35s ease;
}


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

.hero {
    min-height: 475px;

    padding: 20px 0;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(125, 91, 255, 0.12),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(125, 91, 255, 0.08),
            transparent 30%
        ),
        #f4f6ff;

    transition: background 0.35s ease;
}

.hero-grid {
    min-height: 435px;

    display: grid;

    grid-template-columns:
        1.1fr
        0.95fr
        1.05fr;

    align-items: center;

    gap: 0;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    padding: 35px 25px 35px 42px;
}

.intro h1 {
    max-width: 620px;

    color: #18234f;

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

    line-height: 1.04;

    font-weight: 900;

    letter-spacing: -2px;

    transition: color 0.35s ease;
}

.intro h1 strong {
    color: #6744f2;
}

.intro p {
    max-width: 620px;

    margin-top: 28px;

    color: #46547e;

    font-size: 18px;

    line-height: 1.7;

    transition: color 0.35s ease;
}


/* MAIN BUTTON */

.main-button {
    margin-top: 28px;

    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #704cff,
            #5939df
        );

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        0 10px 22px rgba(94, 62, 230, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

    box-shadow:
        0 15px 28px rgba(94, 62, 230, 0.35);
}


/* =========================================================
   PORTRAIT
========================================================= */

.portrait {
    height: 370px;

    overflow: hidden;

    border-radius:
        190px 0 0 190px;

    background: #e8e7f3;

    border-right: 1px solid #ddd9f1;

    transition:
        background 0.35s ease,
        border-color 0.35s ease;
}

.portrait img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.5s ease;
}

.portrait:hover img {
    transform: scale(1.025);
}


/* =========================================================
   PROFILE
========================================================= */

.profile {
    min-height: 335px;

    margin: 0 38px 0 0;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            #252945,
            #20243d
        );

    border-radius: 0 22px 22px 0;

    color: #ffffff;

    box-shadow:
        0 15px 35px rgba(29, 29, 63, 0.15);

    transition:
        background 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
}

.profile-head {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 28px;
}

.profile-head > span {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

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

    border-radius: 50%;

    background: #f7f5ff;

    color: #6845ed;

    font-size: 24px;
}

.profile h2 {
    font-size: 17px;

    line-height: 1.35;

    color: #ffffff;
}

.profile p {
    margin-top: 6px;

    color: #ddd9ee;

    font-size: 14px;
}

.profile ul {
    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 22px;
}

.profile li {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    color: #ffffff;

    font-size: 14px;

    line-height: 1.5;
}

.profile li > span:first-child {
    color: #7654ff;

    font-size: 18px;
}


/* =========================================================
   DETAILS / ABOUT
========================================================= */

.details {
    padding-top: 40px;
    padding-bottom: 45px;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 28px;

    background: #161a30;

    transition: background 0.35s ease;
}


/* ABOUT */

.about {
    min-height: 285px;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 25px;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #242945,
            #20243c
        );

    border: 1px solid #343957;

    color: #ffffff;

    transition:
        background 0.35s ease,
        border-color 0.35s ease;
}

.about h2 {
    color: #ffffff;

    font-size: 25px;
}

.underline {
    width: 68px;
    height: 3px;

    display: block;

    margin: 10px 0 18px;

    background: #7654ff;

    border-radius: 5px;
}

.about p {
    margin-bottom: 12px;

    color: #c6c9db;

    font-size: 14px;

    line-height: 1.6;
}


/* OUTLINE */

.outline {
    margin-top: 10px;

    min-height: 42px;

    padding: 0 18px;

    border: 1px solid #7654ff;

    border-radius: 8px;

    background: #ffffff;

    color: #5d42dc;

    font-weight: 700;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.outline:hover {
    background: #7654ff;

    color: #ffffff;

    transform: translateY(-1px);
}


/* COMPUTER */

.computer {
    height: 165px;

    display: flex;
    flex-direction: column;

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

    gap: 12px;

    background:
        linear-gradient(
            145deg,
            #356ac9,
            #2455a8
        );

    border: 10px solid #454c67;

    border-radius: 6px;

    color: #ffffff;

    box-shadow:
        10px 12px 0 #b7bac5;
}

.computer small {
    font-size: 12px;
    font-weight: 700;
}

.computer b {
    font-size: 30px;
}


/* =========================================================
   NUMBERS
========================================================= */

.numbers {
    color: #ffffff;
}

.numbers h2 {
    margin: 0 0 17px;

    font-size: 25px;

    color: #ffffff;

    text-align: center;
}

.stat-grid {
    display: grid;

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

    gap: 12px;
}

.stat-grid article {
    min-height: 160px;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding: 18px;

    border: 1px solid #676b86;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #1e223b,
            #181b31
        );

    color: #ffffff;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.35s ease;
}

.stat-grid article:hover {
    transform: translateY(-4px);

    border-color: #7654ff;
}

.stat-grid article i {
    font-style: normal;

    font-size: 26px;

    margin-bottom: 8px;
}

.stat-grid article b {
    font-size: 22px;

    color: #ffffff;
}

.stat-grid article span {
    margin-top: 7px;

    color: #c4c7d8;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   USEFUL
========================================================= */

.useful {
    padding-top: 40px;
    padding-bottom: 55px;

    background: #161a30;

    transition: background 0.35s ease;
}

.useful > h2 {
    margin-bottom: 22px;

    text-align: center;

    color: #ffffff;

    font-size: 27px;
}

.useful-grid {
    display: grid;

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

    gap: 15px;
}

.useful-grid button {
    min-height: 155px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 25px;

    border: 1px solid #5b607d;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #242945,
            #1e223a
        );

    color: #ffffff;

    text-align: left;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.35s ease;
}

.useful-grid button:hover {
    transform: translateY(-4px);

    border-color: #7654ff;

    background:
        linear-gradient(
            145deg,
            #292e4e,
            #222642
        );
}

.useful-grid button > i {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

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

    border-radius: 50%;

    background: #f3f1ff;

    color: #6845ed;

    font-style: normal;

    font-size: 22px;
}

.useful-grid button span {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.useful-grid button b {
    color: #ffffff;

    font-size: 16px;
}

.useful-grid button small {
    color: #b9bdd1;

    font-size: 13px;

    line-height: 1.5;
}


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

footer {
    padding: 38px 0;

    background:
        linear-gradient(
            145deg,
            #0b0d19,
            #101426
        );

    color: #ffffff;

    border-top: 1px solid #32364e;

    transition:
        background 0.35s ease,
        color 0.35s ease;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 25px;
}

footer section h3 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size: 17px;
}

footer section p {
    color: #adb1c5;

    font-size: 14px;

    line-height: 1.7;
}

footer > .shell > small {
    grid-column: 1 / -1;

    padding-top: 18px;

    border-top: 1px solid #292d42;

    color: #777c92;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   MODAL
========================================================= */

dialog {
    width: min(480px, calc(100% - 30px));

    padding: 35px;

    border: 1px solid #40386b;

    border-radius: 20px;

    background: #1c1930;

    color: #ffffff;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5);

    margin: auto;
}

dialog::backdrop {
    background: rgba(5, 5, 15, 0.7);

    backdrop-filter: blur(5px);
}

dialog h2 {
    margin-bottom: 15px;

    color: #ffffff;
}

dialog p {
    color: #bbb5d1;

    line-height: 1.6;
}

.close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: 0;

    border-radius: 50%;

    background: #2a2645;

    color: #ffffff;

    font-size: 23px;
}


/* =========================================================
   ТЁМНАЯ ТЕМА
   Поддерживаются все варианты классов,
   чтобы твой script.js точно сработал.
========================================================= */

body.dark,
body.dark-theme,
body.dark-mode,
body[data-theme="dark"] {

    background: #0c0a18;

    color: #f4f1ff;
}


/* HEADER */

body.dark .header,
body.dark-theme .header,
body.dark-mode .header,
body[data-theme="dark"] .header {
    background:
        linear-gradient(
            180deg,
            #242844,
            #20243d
        );

    border-color: #343957;
}

body.dark .logo,
body.dark-theme .logo,
body.dark-mode .logo,
body[data-theme="dark"] .logo {
    color: #ffffff;
}

body.dark .menu a,
body.dark-theme .menu a,
body.dark-mode .menu a,
body[data-theme="dark"] .menu a {
    color: #ffffff;
}

body.dark .menu a:hover,
body.dark-theme .menu a:hover,
body.dark-mode .menu a:hover,
body[data-theme="dark"] .menu a:hover {
    background: #302b52;

    color: #8b70ff;
}

body.dark .menu a.active,
body.dark-theme .menu a.active,
body.dark-mode .menu a.active,
body[data-theme="dark"] .menu a.active {
    background: #39345d;

    color: #947dff;
}


/* MAIN */

body.dark main,
body.dark-theme main,
body.dark-mode main,
body[data-theme="dark"] main {
    background: #0c0a18;
}


/* HERO */

body.dark .hero,
body.dark-theme .hero,
body.dark-mode .hero,
body[data-theme="dark"] .hero {
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(112, 76, 255, 0.16),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(112, 76, 255, 0.1),
            transparent 30%
        ),
        #0f0d20;
}

body.dark .intro h1,
body.dark-theme .intro h1,
body.dark-mode .intro h1,
body[data-theme="dark"] .intro h1 {
    color: #ffffff;
}

body.dark .intro h1 strong,
body.dark-theme .intro h1 strong,
body.dark-mode .intro h1 strong,
body[data-theme="dark"] .intro h1 strong {
    color: #7957ff;
}

body.dark .intro p,
body.dark-theme .intro p,
body.dark-mode .intro p,
body[data-theme="dark"] .intro p {
    color: #bbb6d0;
}


/* PORTRAIT */

body.dark .portrait,
body.dark-theme .portrait,
body.dark-mode .portrait,
body[data-theme="dark"] .portrait {
    background: #19152d;

    border-color: #312b50;
}


/* PROFILE */

body.dark .profile,
body.dark-theme .profile,
body.dark-mode .profile,
body[data-theme="dark"] .profile {
    background:
        linear-gradient(
            145deg,
            #272b49,
            #20243d
        );

    border-color: #393e5d;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3);
}


/* DETAILS */

body.dark .details,
body.dark-theme .details,
body.dark-mode .details,
body[data-theme="dark"] .details {
    background: #111024;
}


/* ABOUT */

body.dark .about,
body.dark-theme .about,
body.dark-mode .about,
body[data-theme="dark"] .about {
    background:
        linear-gradient(
            145deg,
            #252944,
            #1e2239
        );

    border-color: #383d5b;
}

body.dark .about h2,
body.dark-theme .about h2,
body.dark-mode .about h2,
body[data-theme="dark"] .about h2 {
    color: #ffffff;
}

body.dark .about p,
body.dark-theme .about p,
body.dark-mode .about p,
body[data-theme="dark"] .about p {
    color: #b9bdd0;
}


/* NUMBERS */

body.dark .numbers h2,
body.dark-theme .numbers h2,
body.dark-mode .numbers h2,
body[data-theme="dark"] .numbers h2 {
    color: #ffffff;
}

body.dark .stat-grid article,
body.dark-theme .stat-grid article,
body.dark-mode .stat-grid article,
body[data-theme="dark"] .stat-grid article {
    background:
        linear-gradient(
            145deg,
            #1d2138,
            #171a2e
        );

    border-color: #555a76;

    color: #ffffff;
}

body.dark .stat-grid article span,
body.dark-theme .stat-grid article span,
body.dark-mode .stat-grid article span,
body[data-theme="dark"] .stat-grid article span {
    color: #b8bdcf;
}


/* USEFUL */

body.dark .useful,
body.dark-theme .useful,
body.dark-mode .useful,
body[data-theme="dark"] .useful {
    background: #111024;
}

body.dark .useful > h2,
body.dark-theme .useful > h2,
body.dark-mode .useful > h2,
body[data-theme="dark"] .useful > h2 {
    color: #ffffff;
}

body.dark .useful-grid button,
body.dark-theme .useful-grid button,
body.dark-mode .useful-grid button,
body[data-theme="dark"] .useful-grid button {
    background:
        linear-gradient(
            145deg,
            #242844,
            #1d2138
        );

    border-color: #515671;

    color: #ffffff;
}

body.dark .useful-grid button:hover,
body.dark-theme .useful-grid button:hover,
body.dark-mode .useful-grid button:hover,
body[data-theme="dark"] .useful-grid button:hover {
    background:
        linear-gradient(
            145deg,
            #2b3050,
            #222640
        );

    border-color: #7654ff;
}

body.dark .useful-grid button b,
body.dark-theme .useful-grid button b,
body.dark-mode .useful-grid button b,
body[data-theme="dark"] .useful-grid button b {
    color: #ffffff;
}

body.dark .useful-grid button small,
body.dark-theme .useful-grid button small,
body.dark-mode .useful-grid button small,
body[data-theme="dark"] .useful-grid button small {
    color: #b7bbce;
}


/* FOOTER */

body.dark footer,
body.dark-theme footer,
body.dark-mode footer,
body[data-theme="dark"] footer {
    background:
        linear-gradient(
            145deg,
            #090812,
            #0f0d1d
        );

    border-color: #2c3048;
}

body.dark footer h3,
body.dark-theme footer h3,
body.dark-mode footer h3,
body[data-theme="dark"] footer h3 {
    color: #ffffff;
}

body.dark footer p,
body.dark-theme footer p,
body.dark-mode footer p,
body[data-theme="dark"] footer p {
    color: #a9aec2;
}


/* =========================================================
   УБИРАЕМ БЕЛЫЕ ФОНЫ В ТЁМНОЙ ТЕМЕ
========================================================= */

body.dark .shell,
body.dark-theme .shell,
body.dark-mode .shell,
body[data-theme="dark"] .shell {
    background: transparent;
}


/* =========================================================
   АДАПТИВНОСТЬ
========================================================= */

@media (max-width: 1250px) {

    .shell {
        width: min(1180px, calc(100% - 40px));
    }

    .header {
        gap: 15px;
    }

    .logo {
        min-width: 200px;
    }

    .menu a {
        padding: 0 10px;

        font-size: 14px;
    }

    .hero-grid {
        grid-template-columns:
            1fr
            0.9fr
            1fr;
    }

    .intro {
        padding-left: 15px;
    }

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

    .profile {
        margin-right: 20px;

        padding: 25px;
    }
}


@media (max-width: 1000px) {

    .header {
        flex-wrap: wrap;

        padding: 15px 0;
    }

    .logo {
        min-width: auto;
    }

    .menu {
        order: 3;

        width: 100%;

        overflow-x: auto;

        justify-content: flex-start;
    }

    .actions {
        margin-left: auto;
    }

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

    .intro {
        grid-column: 1 / 2;
    }

    .portrait {
        grid-column: 2 / 3;
    }

    .profile {
        grid-column: 1 / -1;

        margin: 0;
    }

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


@media (max-width: 700px) {

    .shell {
        width: min(100% - 24px, 600px);
    }

    .header {
        align-items: flex-start;
    }

    .logo {
        font-size: 15px;
    }

    .logo-mark {
        width: 45px;
        height: 45px;

        font-size: 16px;
    }

    .actions {
        gap: 8px;
    }

    .theme {
        width: 72px;
    }

    .login {
        padding: 0 14px;
    }

    .hero {
        padding: 20px 0;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;

        gap: 20px;
    }

    .intro {
        padding: 20px 5px;
    }

    .intro h1 {
        font-size: 39px;

        letter-spacing: -1px;
    }

    .intro p {
        font-size: 15px;
    }

    .portrait {
        width: 100%;
        height: 300px;

        border-radius: 25px;
    }

    .profile {
        width: 100%;

        border-radius: 20px;

        margin: 0;
    }

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

    .computer {
        width: 100%;
    }

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

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

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

    footer > .shell > small {
        grid-column: auto;
    }
}


@media (max-width: 450px) {

    .menu a span {
        display: none;
    }

    .menu a {
        min-width: 48px;

        padding: 0 12px;

        font-size: 18px;
    }

    .intro h1 {
        font-size: 33px;
    }

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

    .profile {
        padding: 22px;
    }

    .useful-grid button {
        padding: 18px;
    }
}


/* =========================================================
   MAIN PAGE — FINAL LIGHT/DARK FIX
========================================================= */


/* =========================================================
   HERO TITLE — ДЕЛАЕМ МЕНЬШЕ
========================================================= */

.intro h1 {
    font-size: clamp(46px, 4.6vw, 64px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.intro h1 strong {
    font-size: inherit !important;
}


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

.intro p {
    max-width: 560px;
    margin-top: 0;
    color: #58698f !important;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   LIGHT THEME — HERO
========================================================= */

body:not(.dark) .hero {
    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(103, 76, 242, .10),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 80%,
            rgba(103, 76, 242, .08),
            transparent 28%
        ),
        #f5f6ff !important;
}


body:not(.dark) .intro h1 {
    color: #18295f !important;
}


body:not(.dark) .intro h1 strong {
    color: #6548ee !important;
}


/* =========================================================
   LIGHT — PROFILE
========================================================= */

body:not(.dark) .profile {
    background: #ffffff !important;
    color: #18295f !important;

    border: 1px solid #e4e0fa;

    box-shadow:
        0 18px 40px rgba(53, 42, 140, .08);
}


body:not(.dark) .profile-head h2 {
    color: #18295f !important;
}


body:not(.dark) .profile-head p {
    color: #69779a !important;
}


body:not(.dark) .profile li {
    color: #6045eb !important;
}


body:not(.dark) .profile li span {
    color: #263866 !important;
}


body:not(.dark) .profile-head > span {
    background: #eeeaff !important;
    color: #6045eb !important;
}



/* =========================================================
   LIGHT — DETAILS
========================================================= */

body:not(.dark) .details {
    background: #f7f6ff !important;
    color: #18295f !important;
}


body:not(.dark) .about {
    background: #ffffff !important;

    border: 1px solid #e4e0fa;

    color: #18295f !important;

    box-shadow:
        0 15px 35px rgba(55, 43, 150, .06);
}


body:not(.dark) .about h2 {
    color: #18295f !important;
}


body:not(.dark) .about p {
    color: #617099 !important;
}


/* =========================================================
   LIGHT — COMPUTER
========================================================= */

body:not(.dark) .computer {
    background:
        linear-gradient(
            145deg,
            #f1eeff,
            #e8e3ff
        ) !important;

    border: 1px solid #ddd6ff;

    color: #6045eb !important;
}


body:not(.dark) .computer small {
    color: #6045eb !important;
}


body:not(.dark) .computer b {
    color: #6045eb !important;
}



/* =========================================================
   LIGHT — NUMBERS
========================================================= */

body:not(.dark) .numbers {
    background: transparent !important;
    color: #18295f !important;
}


body:not(.dark) .numbers h2 {
    color: #18295f !important;
}


body:not(.dark) .stat-grid article {
    background: #ffffff !important;

    color: #18295f !important;

    border: 1px solid #e3def9;

    box-shadow:
        0 12px 28px rgba(50, 40, 130, .07);
}


body:not(.dark) .stat-grid article b {
    color: #18295f !important;
}


body:not(.dark) .stat-grid article span {
    color: #68769a !important;
}



/* =========================================================
   LIGHT — USEFUL
========================================================= */

body:not(.dark) .useful {
    background: #f7f6ff !important;
    color: #18295f !important;
}


body:not(.dark) .useful h2 {
    color: #18295f !important;
}


body:not(.dark) .useful-grid button {
    background: #ffffff !important;

    color: #18295f !important;

    border: 1px solid #e3def9;

    box-shadow:
        0 12px 30px rgba(50, 40, 130, .07);
}


body:not(.dark) .useful-grid button b {
    color: #18295f !important;
}


body:not(.dark) .useful-grid button small {
    color: #68769a !important;
}



/* =========================================================
   LIGHT — BUTTON
========================================================= */

body:not(.dark) .outline {
    background: #ffffff !important;

    color: #5f45e8 !important;

    border: 1px solid #cfc6ff !important;
}


body:not(.dark) .outline:hover {
    background: #f0edff !important;
}



/* =========================================================
   LIGHT — PORTRAIT
========================================================= */

body:not(.dark) .portrait {
    background: transparent !important;
}


body:not(.dark) .portrait img {
    box-shadow:
        0 20px 50px rgba(50, 40, 130, .13);
}



/* =========================================================
   LIGHT — FOOTER SEPARATION
========================================================= */

body:not(.dark) footer {
    border-top: 1px solid #e0dcf7;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .intro h1 {
        font-size: clamp(42px, 4.5vw, 58px) !important;
    }

}


@media (max-width: 850px) {

    .intro h1 {
        font-size: 42px !important;
    }

}


@media (max-width: 600px) {

    .intro h1 {
        font-size: 34px !important;
        letter-spacing: -0.5px;
    }

    .intro p {
        font-size: 15px;
    }

}


/* =========================================================
   HERO BUTTON — ЦЕЛЬНАЯ КНОПКА ПОУРОЧНЫХ ПЛАНОВ
   Для HTML с .button-icon, .button-text и .button-arrow
========================================================= */

.intro a.main-button {
    width: 100%;
    max-width: 430px;
    min-height: 66px;
    margin-top: 28px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;

    background: linear-gradient(120deg, #7954ff, #5532dc);
    color: #ffffff !important;

    text-decoration: none !important;
    font-size: 17px;
    font-weight: 700;

    box-shadow: 0 9px 25px rgba(94, 62, 230, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.intro a.main-button .button-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

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

    border-radius: 11px;
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
    font-size: 20px;
}

.intro a.main-button .button-text {
    flex: 1 1 auto;
    display: block;
    color: #ffffff !important;
    line-height: 1.35;
    text-align: left;
}

.intro a.main-button .button-arrow {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.intro a.main-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(120deg, #896aff, #6240ed);
    box-shadow: 0 14px 30px rgba(94, 62, 230, 0.35);
}

.intro a.main-button:hover .button-arrow {
    transform: translateX(5px);
}

.intro a.main-button:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .intro a.main-button {
        max-width: 100%;
        min-height: 60px;
        padding: 0 14px;
        font-size: 15px;
    }
}

.portrait {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 45% 0 0 45%;
}

.portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}