
/* ==========================================
   1. ТЁМНАЯ ТЕМА (По умолчанию - кружочки)
   ========================================== */
:root {
    /* Градиентные пятна на фоне */
    --bg-main-1: #4409253c;
    --bg-main-2: #440925;
    --bg-main-3: #0f1117;
    --bg-solid: #000000;

    /* Фоновый узор — Точки */
    --bg-pattern: radial-gradient(#ffffff 1px, transparent 1px);
    --bg-pattern-size: 20px 25px;
    --bg-pattern-opacity: 0.1;

    /* Карточки, модальные окна, профиль */
    --card-bg: rgba(0, 0, 0, 0.32);
    --card-border: rgba(255, 255, 255, 0.26);
    --card-shadow: rgba(0, 0, 0, 0.4);

    /* Текст и свечение */
    --text-main: #ffffff;
    --text-color: #ffffff;
    --text-secondary: #9b6881;
    --text-accent: #d70668;
    --text-hover: rgb(215, 173, 195);
    --glow-color: rgb(205, 10, 108);
    --heading-color: rgba(255, 255, 255, 0.7);
    --links-color: #ffffff;

    --time-color: #5c394a;

    /* Кнопки, формы, сайдбар */
    --btn-bg: #75234551;
    --btn-change-bg: #94034772;
    --input-bg: #440925;
    --sidebar-bg: #000000;
    --sidebar-text: #ffffff;

    --task-text: #ffffff;

    --button-color: #158113;
    --button-bg: #1581137b;

    --chart-bg: #ff1b7e6b;
}

/* ==========================================
   2. СВЕТЛАЯ ТЕМА (Современная стильная сетка)
   ========================================== */
[data-theme="light"] {
    /* Нежное матовое свечение */
    --bg-main-1: rgba(244, 114, 182, 0.12);
    --bg-main-2: #fdf2f8;
    --bg-main-3: #fae8ff;
    --bg-solid: #fafafb;

    /* Фоновый узор — Изящная тонкая сетка (Grid Pattern) */
    --bg-pattern: linear-gradient(to right, rgba(225, 29, 72, 0.05) 1px, transparent 1px),
                  linear-gradient(to bottom, rgba(225, 29, 72, 0.05) 1px, transparent 1px);
    --bg-pattern-size: 32px 32px;
    --bg-pattern-opacity: 1;

    /* Чистые карточки с легким эффектом стекла */
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(214, 29, 152, 0.328);
    --card-shadow: rgba(225, 29, 72, 0.04);

    /* Типографика */
    --text-main: #18181b;
    --text-color: #18181b;
    --text-secondary: #71717a;
    --text-accent: #e11d48;
    --text-hover: #be123c;
    --glow-color: rgba(225, 29, 72, 0.2);
    --heading-color: #09090b;
    --links-color: #e11d48;

    --time-color: #b894adba;

    /* Кнопки и поля ввода */
    --btn-bg: rgba(255, 255, 255, 0.9);
    --btn-change-bg: #ffe4e6;
    --input-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --sidebar-text: #18181b;

    --task-text: #18181b;

    --button-color: #166534;
    --button-bg: #dcfce7;
    --chart-bg: #e053a39b;
}


/* Базовые стили */

@font-face {
    font-family: 'Pixy';
    src: url("/static/fonts/Pixy.ttf") format('truetype');
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'Task';
    font-display: swap;
    src: url("/static/fonts/Montserrat\ Alternates.ttf");
}


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

html, body {
    inset: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at center,
            var(--bg-main-1) 0%,
            var(--bg-main-1) 30%,
            transparent 70%
        ),
        radial-gradient(
            circle at 30% 40%,
            var(--bg-main-2),
            var(--bg-main-3)
        );
    background-color: var(--bg-solid);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Pixy', sans-serif;
    font-size: 18px;
    position: relative;
}

/* ФОНОВЫЙ УЗОР (Динамический для тем) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--bg-pattern);
    background-size: var(--bg-pattern-size);
    opacity: var(--bg-pattern-opacity);
    pointer-events: none; /* Защита от блокировки кликов */
    transition: opacity 0.4s ease;
}

a {
    text-decoration: none;
    color: var(--links-color);
    position: relative;
}

.lighttext {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.lighttext:hover {
    color: var(--text-accent);
    text-shadow: 0 0 15px var(--glow-color);
}

.lightBox {
    position: relative;
}

.lightBox::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px var(--glow-color);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.lightBox:hover::after {
    opacity: 1;
}

.heading {
    display: flex;
    justify-content: center;
    padding: 5px;
    color: var(--heading-color);
}

.h2heading {
    font-size: 24px;
    color: var(--text-accent);
}

img {
    display: block;
    margin: 0 auto;
}

.mascot {
    width: 50px;
    margin-bottom: 15px;
    animation: mascotFloat 3s ease-in-out infinite;
}

.mainCenter {
    margin: 0 auto;
}


.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Состояние, когда элемент появляется в области видимости */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каскадного (поочередного) появления дочерних блоков */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* ================= СТИЛИЗАЦИЯ QUILL ПОД ДИЗАЙН SINUS ================= */
.ql-toolbar.ql-snow {
  border-radius: 12px 12px 0 0;
  background: var(--bg-card, #1c1c1e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.ql-container.ql-snow {
  border-radius: 0 0 12px 12px;
  min-height: 240px;
  font-size: 17px;
  font-family: inherit;
  background: var(--bg-card, #1c1c1e);
  color: var(--text-main, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
}

/* Цвет плейсхолдера */
.ql-editor.ql-blank::before {
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
}

/* Иконки панели инструментов */
.ql-snow .ql-stroke {
  stroke: rgba(255, 255, 255, 0.7) !important;
}

.ql-snow .ql-fill {
  fill: rgba(255, 255, 255, 0.7) !important;
}

.ql-snow .ql-picker {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Наведение и активное состояние элементов */
.ql-snow .ql-picker-label:hover,
.ql-snow button:hover .ql-stroke,
.ql-snow button.ql-active .ql-stroke,
.ql-snow .ql-picker-label.ql-active .ql-stroke {
  stroke: #e00560 !important;
}

.ql-snow button:hover .ql-fill,
.ql-snow button.ql-active .ql-fill,
.ql-snow .ql-picker-label.ql-active .ql-fill {
  fill: #e00560 !important;
}

/* Выпадающие списки (Picker Options) */
.ql-snow .ql-picker-options {
  background-color: var(--bg-card, #252528) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 6px !important;
}

.ql-snow .ql-picker-item {
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 4px;
}

.ql-snow .ql-picker-item:hover {
  color: #e00560 !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Всплывающее окно вставки ссылки */
.ql-snow .ql-tooltip {
  background-color: var(--bg-card, #252528) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}

.ql-snow .ql-tooltip input[type=text] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
}

/* Адаптивность контента внутри карточки теории */
.taskText img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
  display: block;
}

.taskText iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin: 14px 0;
  border: none;
}

.taskText table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.taskText td, 
.taskText th {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
}
/* Стили для расширенной панели цветов Quill */
.colorPickerWrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.customColorBtn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
}

.customColorBtn input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.recentColorsBox {
  display: flex;
  align-items: center;
  gap: 4px;
}

.colorSwatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.colorSwatch:hover {
  transform: scale(1.2);
}
/* Videos fill the card content width, including previously saved embeds. */
.taskText .editorVideoWrap,
.solutionText .editorVideoWrap,
.richEditable .editorVideoWrap {
  width: 100%;
  max-width: 100%;
}
.taskText iframe,
.solutionText iframe,
.richEditable iframe,
.taskText video,
.solutionText video,
.richEditable video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
}
.taskText .editorVideoWrap iframe,
.solutionText .editorVideoWrap iframe,
.richEditable .editorVideoWrap iframe {
  height: 100%;
  margin: 0;
}

/* Shared authoring controls and bounded rich content. */
.richEditorWrapper { min-width: 0; max-width: 100%; }
.richEditable { box-sizing: border-box; max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; }
.richEditable ul, .richEditable ol, .taskText ul, .taskText ol, .solutionText ul, .solutionText ol { padding-inline-start: 1.8em; margin: .6em 0; list-style-position: outside; }
.richEditable ul, .taskText ul, .solutionText ul { list-style-type: disc; }
.richEditable ol, .taskText ol, .solutionText ol { list-style-type: decimal; }
.richEditable li { display: list-item; margin: .25em 0; }
.richEditable table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.richEditable td, .richEditable th { min-width: 40px; padding: 8px; border: 1px solid #888; overflow-wrap: anywhere; }
.editorColor { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.editorColor input[type=color] { width: 36px; height: 32px; padding: 2px; cursor: pointer; }
.editorTableTools { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border: 1px solid #8885; background: var(--lightBox); }
.editorTableTools > span { flex-basis: 100%; font-size: 14px; }
.editorTableTools button { border: 1px solid #8886; border-radius: 6px; background: transparent; color: inherit; padding: 7px; font: inherit; font-size: 13px; cursor: pointer; }
.editorTableTools button:disabled, .editorTableTools input:disabled { opacity: .4; cursor: default; }
.editorTableTools label { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.editorTableTools input { width: 75px; padding: 6px; color: inherit; background: transparent; border: 1px solid #8886; border-radius: 6px; }
/* Reading blocks grow with their content; only the page needs scrolling. */
.taskText, .solutionText {
  height: auto;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  min-width: 0;
}
.taskText table, .solutionText table { max-width: 100%; }
.taskText img, .solutionText img { max-width: 100%; height: auto; }

.editorSurface { position: relative; min-width: 0; }
.editorSurface .richEditable { padding-right: 40px; padding-bottom: 42px; }
.editorTableEdges[hidden] { display: none; }
.editorTableEdges button {
  position: absolute; z-index: 2; width: 28px; height: 28px; min-height: 28px;
  padding: 0; border: 1px solid #e00560; border-radius: 50%;
  background: var(--bg-solid, #24101c); color: var(--text-main);
  font: 22px/1 sans-serif; cursor: pointer; touch-action: manipulation;
}
.editorTableEdges button:hover, .editorTableEdges button:focus-visible { background: #bd145c; color: white; }

.editorImageStatus{flex-basis:100%;font:inherit;font-size:12px;line-height:1.6;color:var(--text-secondary);overflow-wrap:anywhere}.editorImageStatus:empty{display:none}.richToolbar input[type=file][hidden]{display:none!important}.richToolbar button:disabled{opacity:.6;cursor:wait}



/* Переиспользуемые компоненты */

.studentsProfile,
.rate,
.secondColumn,
.thirdColumn,
.mainProfile,
.task,
.noMistakes,
.filterForm,
.typeTasks,
.information,
.toast,
.header,
.modal {
    background-color: var(--background-color) !important;
    border-radius: 25px;
    border: 2px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px var(--card-shadow);
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.goal {
    text-align: center;
    text-shadow: 0 0 20px var(--glow-color);
    color: var(--text-color);
}


.heading, 
.questions {
    color: var(--text-color);
}


.header {
    margin: 10px auto 0 auto;
    border-radius: 35px;
    padding: 20px;
    width: 92%;
    display: flex;
    align-items: center;
}

.header__list1 {
    display: flex;
    list-style: none;
    color: #d70668;
}

.header__list2 {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: auto 0 auto auto;
}

.main_Thing {
    width: auto !important;
    min-width: 240px;
    padding: 13px 22px !important;
    border-radius: 14px;
    transition: 0.25s ease;
    font-size: 14px;
    color:var(--text-color);
}

.main_Thing:hover {
    transform: translateY(-3px);
}

/* =========================================================
   FOOTER (ОБНОВЛЕННЫЙ СТИЛЬ)
   ========================================================= */
.homeFooter {
    width: 100%;
    margin-top: auto;
    padding: 50px 0 30px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(205, 48, 95, 0.03) 100%
    );
    border-top: 1px solid rgba(128, 128, 128, 0.12);
    color: var(--text);
}

[data-theme="dark"] .homeFooter {
    border-top-color: rgba(134, 17, 83, 0.25);
}

.footerContainer {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* Секция бренда */
.footerBrand {
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footerLogo {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.footerLogo span {
    color: #cd305f;
}

.footerDescription {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.55;
}

.footerCopyright {
    font-size: 13px;
    opacity: 0.4;
    margin-top: 8px;
}

/* Сетка ссылок */
.footerNavGrid {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footerColumn {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footerColumnTitle {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #cd305f;
    margin-bottom: 4px;
}

/* Общие стили для ссылок и кнопок в футере */
.footerColumn a,
.footerLinkBtn {
    position: relative;
    z-index: 9999;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.65;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footerColumn a:hover,
.footerLinkBtn:hover {
    opacity: 1;
    color: #cd305f;
    transform: translateX(2px);
}

/* Адаптированность под мобильные устройства */
@media (max-width: 700px) {
    .homeFooter {
        padding: 40px 0 25px;
    }

    .footerContainer {
        width: calc(100% - 30px);
        flex-direction: column;
        gap: 32px;
    }

    .footerBrand {
        max-width: 100%;
    }

    .footerNavGrid {
        width: 100%;
        justify-content: space-between;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .footerNavGrid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
}


/* .sidebar {
    position: fixed;
    top: 0;
    left: -220px;
    width: 210px;
    height: 100%;
    background: var(--sidebar-bg);
    padding: 20px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar:hover {
    left: 0;
}

.sidebar button {
    white-space: nowrap;
    opacity: 0;
    transition: 0.2s;
}

.sidebar:hover button {
    opacity: 1;
}

.content {
    margin-left: 49px;
}

.listThings {
    margin-top: auto;
    list-style: none;
}

.listThings li+li {
    margin-top: 25px;
}

.sidebar_text {
    color:var(--sidebar-text);
} */


/* Кнопки */
.buttons {
    background-color: var(--btn-bg) !important;
    font-family: 'Pixy', sans-serif;
    color: var(--text-hover) !important;
    border-radius: 15px;
    border: 2px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px var(--card-shadow);
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.changeButtons {
    background-color: var(--btn-change-bg);
    border-radius: 15px;
    color: var(--text-accent);
    padding: 5px;
    font-family: 'Pixy', sans-serif;
    border: 2px solid var(--card-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px var(--card-shadow);
    margin: 0 auto;
    cursor: pointer;
}

.textButton {
    font-family: 'Pixy', sans-serif;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    display: inline;
    vertical-align: baseline;
    position: relative;
    pointer-events: auto;
}

.enterButton {
    background-color: var(--button-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: var(--button-color);
    position: relative;
    width: 30%;
    height: 34px;
    cursor: pointer;
}

.phoneButtons {
    width: 30%;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.list_item {
    color: var(--text-color);
}

/* Карточки и Блоки */
.studentsProfile,
.rate,
.secondColumn,
.thirdColumn,
.mainProfile,
.task,
.noMistakes,
.filterForm,
.typeTasks,
.information,
.toast,
.header,
.modal {
    background-color: var(--background-color) !important;
    border-radius: 25px;
    border: 2px solid var(--card-border) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px var(--card-shadow);
    color: var(--text-color) !important; /* УБРАН 'white', ТЕПЕРЬ ПРИМЕНЯЕТСЯ ТЕМА */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.goal {
    text-align: center;
    text-shadow: 0 0 20px var(--glow-color);
    color: var(--text-color);
}

.heading, 
.questions {
    color: var(--text-color);
}

/* Формы */
form {
    position: relative;
}

input {
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: var(--text-accent);
    padding: 8px 12px;
    outline: none;
}

input::placeholder {
    font-family: 'Pixy', sans-serif;
    color: var(--text-secondary);
    text-align: center;
    font-size: 12px;
}

textarea::placeholder {
    font-family: 'Pixy', sans-serif;
    color: var(--text-secondary);
}

.textareas {
    white-space: pre-wrap;
    border-radius: 15px;
    height: 40%;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
    padding: 10px;
}

/* Шапка сайта */
.header {
    margin: 10px auto 0 auto;
    border-radius: 35px;
    padding: 20px;
    width: 92%;
    display: flex;
    align-items: center;
}

.header__list1 {
    display: flex;
    list-style: none;
    color: var(--text-accent);
}

.header__list2 {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: auto 0 auto auto;
}

.main_Thing {
    width: auto !important;
    min-width: 240px;
    padding: 13px 22px !important;
    border-radius: 14px;
    transition: 0.25s ease;
    font-size: 14px;
    color: var(--text-color);
}

.main_Thing:hover {
    transform: translateY(-3px);
}


form {
    position: relative;
    z-index: 9999;
}

input {
    background-color: #440925;
    border-radius: 15px;
    color: #d70668;
    position: relative;
    z-index: 9999;
}

input::placeholder {
    font-family: 'Pixy', sans-serif;
    color: #9b6881;
    text-align: center;
    font-size: 12px;
}

textarea::placeholder {
    font-family: 'Task';
    color: #9b6881;
}

.textareas {
    white-space: pre-wrap;
    border-radius: 15px;
    height: 40%;
}


/* =====================================================
           PRO MODAL
        ===================================================== */
        .proModal {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .proModal.active {
            display: flex;
        }
        .proModalContent {
            position: relative;
            width: min(480px, 100%);
            padding: 32px;
            border-radius: 28px;
            background: var(--card-bg, #18181b);
            color: var(--text-color, #ffffff);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
            animation: proModalAppear 0.25s ease;
        }
        @keyframes proModalAppear {
            from {
                opacity: 0;
                transform: translateY(15px) scale(0.97);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        .proModalClose {
            position: absolute;
            top: 16px;
            right: 18px;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            color: currentColor;
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            opacity: 0.8;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .proModalClose:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.15);
        }
        .proModalBadge {
            display: inline-flex;
            align-items: center;
            margin-bottom: 14px;
            padding: 7px 12px;
            border-radius: 999px;
            background: rgba(130, 100, 255, 0.2);
            color: #a78bfa;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .proModalTitle {
            margin: 0 0 8px;
            font-size: 32px;
            line-height: 1.1;
            color: inherit;
        }
        .proModalDescription {
            margin: 0 0 24px;
            opacity: 0.75;
            line-height: 1.5;
            color: inherit;
        }
        .proFeatures {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 28px;
        }
        .proFeature {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 17px;
            color: inherit;
        }
        .proFeatureIcon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            border-radius: 50%;
            background: rgba(130, 100, 255, 0.2);
            color: #a78bfa;
            font-size: 16px;
            font-weight: bold;
        }
        .proPrice {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 18px;
        }
        .proPriceValue {
            font-size: 34px;
            font-weight: 800;
            color: inherit;
        }
        .proPricePeriod {
            opacity: 0.6;
            color: inherit;
        }
        .proPayButton {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 15px 20px;
            border: none;
            border-radius: 16px;
            background: #8264ff;
            color: #ffffff;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
        }
        .proPayButton:hover {
            background: #6e4eff;
        }
        .proPayButton:active {
            transform: scale(0.99);
        }
        .proModalNote {
            margin-top: 12px;
            font-size: 14px;
            text-align: center;
            opacity: 0.55;
            color: inherit;
        }




/* =========================================================
   CALENDAR STYLES (MATCHED THEME)
   ========================================================= */

.calendarSection {
    position: relative;
    overflow: hidden;

    margin-top: 24px;
    margin-bottom: 24px;

    padding: 24px;
    border-radius: 20px;

    /* НОВЫЙ ФОН И БОРДЕР */
    background: #d699b930;
    border: 1px solid rgba(136, 13, 77, 0.12);

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

/* Плавающие декоративные символы на фоне — не мешают контенту (z-index ниже) */
.calendarSection::before,
.calendarSection::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    font-family: Georgia, serif;
    color: #62072d;
}

.calendarSection::before {
    content: "✦";
    top: -18px;
    right: 24px;
    font-size: 78px;
    opacity: 0.06;
    animation: calendarFloat 9s ease-in-out infinite;
}

.calendarSection::after {
    content: "∑";
    bottom: -28px;
    left: 38%;
    font-size: 96px;
    opacity: 0.05;
    animation: calendarFloat 11s ease-in-out infinite reverse;
}

@keyframes calendarFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-14px) rotate(4deg); }
}

.calendarHeader {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.calendarHeader small {
    display: block;
    margin-bottom: 5px;
    color: #62072d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.calendarHeader h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.03em;
}

.calendarNav {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 6px;
}

.calendarHeaderRight {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 12px;
}

.calendarMonthCount {
    padding: 6px 12px;
    border-radius: 100px;

    background: rgba(136, 13, 77, 0.08);
    color: #62072d;

    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

[data-theme="dark"] .calendarMonthCount {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.calendarNavBtn {
    position: relative;
    z-index: 9999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    border: 1px solid rgba(136, 13, 77, 0.15);
    background: rgba(136, 13, 77, 0.08);

    color: #62072d;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    transition: transform 0.2s ease, background 0.2s ease;
}

.calendarNavBtn:hover {
    transform: translateY(-1px);
    background: rgba(136, 13, 77, 0.18);
}

.calendarGrid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-width: 420px;
    text-align: center;
}

.calendarDayHead {
    padding-bottom: 8px;
    color: #62072d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.calendarCell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: var(--background);
    color: var(--text);

    font-size: 13px;
    font-weight: 500;
    position: relative;
    cursor: default;
    transition: transform 0.15s ease;
}

.calendarCell.empty {
    background: transparent;
}

/* 1–4 решенных задачи */
.calendarCell.hasTasks {
    background: rgba(136, 13, 77, 0.18);
    color: #62072d;
    font-weight: 700;
}

/* 5+ решенных задач */
.calendarCell.hasTasksHigh {
    background: rgba(136, 13, 77, 0.35);
    color: #62072d;
    font-weight: 800;
}

/* Сегодняшний день */
.calendarCell.today {
    border: 1.5px solid #62072d;
}

.calendarCell .taskBadge {
    margin-top: 1px;
    font-size: 7px;
    font-weight: 700;
    color: #62072d;
    opacity: 0.85;
}

[data-theme="dark"] .calendarCell .taskBadge {
    color: #ffffff;
}

/* ================= DARK THEME CALENDAR ================= */

[data-theme="dark"] .calendarSection {
    background: #880d4d30;
    border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .calendarHeader small,
[data-theme="dark"] .calendarDayHead {
    color: #ffffff;
    opacity: 0.7;
}

[data-theme="dark"] .calendarNavBtn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .calendarNavBtn:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .calendarCell {
    background: var(--background);
}

[data-theme="dark"] .calendarCell.hasTasks {
    background: rgba(136, 13, 77, 0.35);
    color: #ffffff;
}

[data-theme="dark"] .calendarCell.hasTasksHigh {
    background: rgba(136, 13, 77, 0.6);
    color: #ffffff;
}

[data-theme="dark"] .calendarCell.today {
    border-color: #ffffff;
}

/* ================= MOBILE CALENDAR ================= */

@media (max-width: 520px) {
    .calendarHeader {
        flex-wrap: wrap;
    }

    .calendarHeaderRight {
        gap: 8px;
    }

    .calendarMonthCount {
        font-size: 12px;
        padding: 5px 10px;
    }

    .calendarSection {
        padding: 16px;
        border-radius: 16px;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .calendarSection::before,
    .calendarSection::after {
        opacity: 0.03;
    }

    .calendarGrid {
        max-width: 320px;
        gap: 4px;
    }

    .calendarCell {
        font-size: 11px;
        border-radius: 7px;
    }

    .calendarCell .taskBadge {
        font-size: 6px;
    }
}


/* Страницы */

/* =========================================================
   HEADER
========================================================= */
.homeHeader {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.homeLogo {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.homeLogo span {
  color: #cd305f;
}

.homeNav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.homeNav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.65;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.homeNav a:hover {
  color: #cd305f;
  background: rgba(205, 48, 95, 0.07);
  opacity: 1;
}

/* =========================================================
   MAIN
========================================================= */
.homeMain {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 15px 0 80px;
}

/* =========================================================
   TIME
========================================================= */
.homeTime {
  display: flex;
  justify-content: center;
  margin: 5px 0 30px;
}

.homeTime #time {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--time-color);
}

/* =========================================================
   WELCOME
========================================================= */
.welcomeBlock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 25px;
  padding: 30px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(205, 48, 95, 0.09), transparent 65%);
  border: 1px solid rgba(205, 48, 95, 0.08);
}

.homeEyebrow {
  margin: 0 0 7px;
  color: #cd305f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.welcomeBlock h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.welcomeBlock p:last-child {
  margin: 8px 0 0;
  font-size: 15px;
  opacity: 0.5;
}

.welcomeDecoration {
  position: absolute;
  right: 35px;
  font-size: 75px;
  color: #cd305f;
  opacity: 0.08;
  transform: rotate(12deg);
}

/* =========================================================
   DASHBOARD
========================================================= */
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.dashboardCard {
  background: #ffffff;
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .dashboardCard {
  background: #880d4d30;
  border-color: rgba(134, 17, 83, 0.336);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   STUDENT
========================================================= */
.studentCard {
  padding: 22px;
}

.studentTop {
  display: flex;
  align-items: center;
  gap: 15px;
}

.studentAvatar {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--background);
}

.studentAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cardLabel {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.4;
}

.studentTop h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.studentGoal {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 20px;
}

.studentGoal span {
  font-size: 14px;
  opacity: 0.5;
}

.studentGoal strong {
  color: #cd305f;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.studentGoal small {
  font-size: 13px;
  opacity: 0.45;
}

/* =========================================================
   RATE
========================================================= */
.rateCard {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
}

.cardIcon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(205, 48, 95, 0.08);
  color: #cd305f;
  font-size: 20px;
}

.rateCard h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

/* =========================================================
   TASKS
========================================================= */
.tasksCard {
  grid-column: 1 / -1;
  padding: 24px;
}

.cardHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cardHeading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.cardHeadingIcon {
  color: #cd305f;
  font-size: 22px;
  opacity: 0.6;
}

.taskLinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.taskLinks a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 115px;
  padding: 17px;
  box-sizing: border-box;
  border-radius: 15px;
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.taskLinks a:hover {
  background: rgba(205, 48, 95, 0.07);
  transform: translateY(-2px);
}

.taskLinks a > span {
  margin-bottom: auto;
  color: #cd305f;
  font-size: 20px;
}

.taskLinks b {
  font-size: 15px;
}

.taskLinks small {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.4;
}

.taskLinks i {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #cd305f;
  font-size: 17px;
  font-style: normal;
  opacity: 0.6;
}

/* =========================================================
   STATS
========================================================= */
.statsCard {
  grid-column: 1 / -1;
  padding: 24px;
}

.statsMore {
  color: #cd305f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.75;
}

.statsMore:hover {
  text-decoration: underline;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.statItem {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 15px;
  background: var(--background);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.statItem:hover {
  transform: translateY(-2px);
  background: rgba(205, 48, 95, 0.06);
}

.statItem strong {
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.statItem span {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.45;
}

.statItem.accentStat strong {
  color: #cd305f;
}

/* =========================================================
   FOOTER
========================================================= */
.homeFooter {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.homeFooter a,
.homeFooter button,
.homeFooter span {
  font-size: 12px;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 700px) {
  .homeHeader {
    width: calc(100% - 30px);
    padding: 18px 0;
  }

  .homeNav {
    gap: 2px;
  }

  .homeNav a {
    padding: 8px 9px;
  }

  .homeMain {
    width: calc(100% - 30px);
    padding-top: 10px;
  }

  .homeTime {
    margin-bottom: 22px;
  }

  .welcomeBlock {
    padding: 23px;
    border-radius: 20px;
  }

  .welcomeDecoration {
    right: 20px;
    font-size: 55px;
  }

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

  .tasksCard,
  .statsCard {
    grid-column: auto;
  }

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

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

  .homeFooter {
    width: calc(100% - 30px);
  }
}

@media (max-width: 430px) {
  .homeLogo {
    font-size: 21px;
  }

  .homeNav a {
    font-size: 13px;
  }

  .welcomeBlock h1 {
    font-size: 25px;
  }

  .studentCard,
  .rateCard,
  .tasksCard,
  .statsCard {
    padding: 18px;
  }

  .taskLinks a {
    min-height: 105px;
    padding: 14px;
  }
}
/* Quiet sparkle motion and a supportive note beside the welcome message. */
.homeMain{position:relative;isolation:isolate}
.homeSparkles{position:absolute;inset:0;pointer-events:none;z-index:-1;overflow:hidden;border-radius:30px}
.homeSparkles span{position:absolute;left:var(--spark-x);top:var(--spark-y);color:var(--text-accent,#d12c70);font:24px/1 Arial,sans-serif;opacity:.22;animation:homeSparkleDrift var(--spark-duration) ease-in-out var(--spark-delay) infinite alternate}
.homeSparkles span:nth-child(3n){font-size:14px;opacity:.35}
.homeEncouragement{position:relative;flex:0 1 300px;min-width:0;padding:22px;border:1px solid var(--card-border,#f5b5d2);border-radius:22px;background:color-mix(in srgb,var(--bg-solid,#fff5fa) 80%,transparent);box-shadow:0 8px 30px color-mix(in srgb,var(--text-accent,#d12c70) 6%,transparent)}
.homeEncouragementStar{position:absolute;right:17px;top:15px;color:var(--text-accent,#d12c70);font-size:23px;animation:homeStarTurn 8s ease-in-out infinite alternate}
.welcomeBlock .homeEncouragementLabel{font:inherit;font-size:10px;letter-spacing:.1em;color:var(--text-accent,#d12c70);margin:0 22px 12px 0;line-height:1.6}
.welcomeBlock #homeEncouragementText{font:inherit;font-size:14px;line-height:1.85;margin:0;min-height:5.6em;overflow-wrap:anywhere}
.homeEncouragement button{border:0;background:transparent;color:var(--text-accent,#d12c70);font:inherit;font-size:10px;line-height:1.6;text-align:left;cursor:pointer;min-height:44px;padding:12px 0 0}
.homeEncouragement button:focus-visible{outline:2px solid var(--text-accent,#d12c70);outline-offset:4px;border-radius:5px}
@keyframes homeSparkleDrift{from{transform:translate3d(-8px,10px,0) rotate(-15deg) scale(.8)}to{transform:translate3d(12px,-20px,0) rotate(25deg) scale(1.15)}}
@keyframes homeStarTurn{from{transform:rotate(-12deg) scale(.9)}to{transform:rotate(20deg) scale(1.08)}}
@media(max-width:750px){.welcomeBlock{flex-wrap:wrap;gap:20px}.homeEncouragement{flex:1 1 100%;padding:18px}.welcomeBlock #homeEncouragementText{min-height:3.8em}.homeSparkles span:nth-child(n+8){display:none}}
@media(prefers-reduced-motion:reduce){.homeSparkles span,.homeEncouragementStar{animation:none}}

#greeting{overflow-wrap:anywhere;line-height:1.45}.welcomeBlock>div:first-child{min-width:0}



/* =========================================================
   PROFILE — SINUS
   ========================================================= */
.profilePage {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 65% 5%,
            rgba(205, 48, 95, 0.07),
            transparent 30%
        ),
        var(--background);
    color: var(--text);
}

/* ================= MAIN ================= */
.profileMain {
    margin-left: 220px;
    width: min(100% - 220px, 1050px);
    box-sizing: border-box;
    padding: 55px 55px 100px;
}

/* ================= HEADER ================= */
.profileHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.profileEyebrow {
    margin: 0 0 8px;
    color: #cd305f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.profileHeader h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.profileSubtitle {
    margin: 12px 0 0;
    max-width: 500px;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.55;
}

/* ================= THEME ================= */
.themeButton {
    position: relative;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 11px 15px;
    border: 1px solid rgba(128, 128, 128, 0.14);
    border-radius: 12px;
    background: var(--lightBox);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.themeButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

/* ================= PROFILE CARD ================= */
.profileCard {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    border-radius: 24px;
    background: var(--lightBox);
    border: 1px solid rgba(128, 128, 128, 0.10);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

/* ================= AVATAR ================= */
.profileAvatarWrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--background);
}

.profileAvatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= PROFILE INFO ================= */
.profileInfo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profileLabel {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.45;
}

.profileGoal {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.profileGoal strong {
    color: #cd305f;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.profileGoal span {
    font-size: 15px;
    opacity: 0.55;
}

.profileMeta {
    margin: 7px 0 0;
    font-size: 14px;
    opacity: 0.5;
}

.profileMeta b {
    margin-right: 5px;
    font-weight: 600;
}

/* ================= SETTINGS ================= */
.profileSettings {
    margin-top: 42px;
}

.sectionHeading {
    margin-bottom: 18px;
}

.sectionHeading h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.sectionHeading p {
    margin: 5px 0 0;
    font-size: 15px;
    opacity: 0.5;
}

/* ================= SETTING CARD ================= */
.profileSettingCard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 12px;
    padding: 20px;
    border-radius: 18px;
    background: var(--lightBox);
    border: 1px solid rgba(128, 128, 128, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profileSettingCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

/* ================= SETTING CONTENT ================= */
.settingText {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.settingIcon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: rgba(205, 48, 95, 0.08);
    font-size: 20px;
}

.settingText h3 {
    margin: 0;
    font-size: 16px;
}

.settingText p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.5;
}

/* ================= INPUT ================= */
.profileInput {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid rgba(128, 128, 128, 0.16);
    border-radius: 11px;
    background: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profileInput:focus {
    border-color: #cd305f;
    box-shadow: 0 0 0 3px rgba(205, 48, 95, 0.08);
}

/* ================= GOAL ================= */
.goalForm {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 250px;
}

.goalInput {
    width: 100px;
}

/* ================= BUTTONS ================= */
.profileSmallButton,
.profilePrimaryButton {
    border: none;
    border-radius: 11px;
    background: #cd305f;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profileSmallButton {
    padding: 11px 15px;
    white-space: nowrap;
    position: relative;
    z-index: 9999;
}

.profilePrimaryButton {
    width: 100%;
    padding: 13px;
}

.profileSmallButton:hover,
.profilePrimaryButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 48, 95, 0.20);
}

/* ================= AVATAR UPLOAD ================= */
.avatarForm {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fileButton {
    display: inline-flex;
    align-items: center;
    padding: 11px 13px;
    border-radius: 11px;
    background: var(--background);
    border: 1px solid rgba(128, 128, 128, 0.14);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fileButton:hover {
    border-color: rgba(205, 48, 95, 0.35);
    transform: translateY(-1px);
}

/* ================= SIDEBAR ================= */
.profilePage .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 30px 15px;
    background: var(--lightBox);
    border-right: 1px solid rgba(128, 128, 128, 0.10);
    z-index: 50;
}

.sidebarLogo {
    display: block;
    margin: 5px 12px 35px;
    color: var(--text);
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.sidebarLogo span {
    color: #cd305f;
}

.profilePage .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profilePage .sidebar nav a,
.profilePage .logoutLink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profilePage .sidebar nav a span,
.profilePage .logoutLink span {
    width: 18px;
    text-align: center;
    opacity: 0.6;
}

.profilePage .sidebar nav a:hover,
.profilePage .logoutLink:hover {
    background: rgba(205, 48, 95, 0.07);
    color: #cd305f;
    transform: translateX(2px);
}

.sidebarBottom {
    margin-top: auto;
}

.logoutLink {
    opacity: 0.55;
}

/* ================= FOOTER ================= */
.profileFooter {
    margin-left: 220px;
    width: min(1050px, calc(100% - 220px));
    box-sizing: border-box;
    padding: 30px 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.10);
}

.footerLinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.profileFooter a,
.profileFooter .textButton {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.profileFooter a:hover,
.profileFooter .textButton:hover {
    opacity: 1;
    color: #62072d;
}

.profileFooter .copyright {
    font-size: 14px;
    opacity: 0.3;
}

/* =========================================================
   PROFILE — MODAL
   ========================================================= */
.settingsModal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92%, 460px);
    max-height: 90vh;
    padding: 30px;
    box-sizing: border-box;
    overflow-y: auto;
    background: #62072d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.30);
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: settingsAppear 0.25s ease both;
}

@keyframes settingsAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -47%) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.settingsHeader {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
}

.settingsIcon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 20px;
}

.settingsHeader h2 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.settingsHeader p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
}

.settingsModal .closeModal {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.settingsModal .closeModal:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: rotate(5deg);
}

.settingsForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settingsLabel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
}

.settingsForm .profileInput {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 12px;
}

.settingsForm .profileInput::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.settingsForm .profileInput:focus {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.settingsDivider {
    height: 1px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.12);
}

.settingsForm .profilePrimaryButton {
    margin-top: 5px;
    padding: 14px;
    background: #ffffff;
    color: #62072d;
    border-radius: 13px;
    font-size: 15px;
    box-shadow: none;
}

.settingsForm .profilePrimaryButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   THEME BUTTON
   ========================================================= */
.themeButton {
    background: #62072d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.themeButton:hover {
    background: #720b37;
    box-shadow: 0 8px 22px rgba(98, 7, 45, 0.25);
}

/* =========================================================
   DARK THEME
   ========================================================= */
[data-theme="dark"] .profileCard,
[data-theme="dark"] .profileSettingCard,
[data-theme="dark"] .themeButton,
[data-theme="dark"] .settingsModal {
    background: #880d4d30;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.10);
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px) {
    /* .sidebar сама уже коллапсится в горизонтальную полосу через
       общее правило в tasks.css (общий класс .tasksSidebar) —
       здесь только убираем отступ у контента и футера, который
       был рассчитан на фиксированный сайдбар 220px. */

    .profileMain {
        margin-left: 0;
        width: 100%;
        padding: 35px 20px 70px;
    }

    .profileFooter {
        margin-left: 0;
        width: 100%;
        padding: 25px 20px;
    }
}

@media (max-width: 520px) {
    .profileMain {
        padding: 28px 15px 60px;
    }

    .profileHeader {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .profileHeader .themeButton {
        width: 100%;
        justify-content: center;
    }

    .profileCard {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
        gap: 18px;
    }

    .profileAvatarWrapper {
        width: 90px;
        height: 90px;
    }

    .profileSettingCard {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .goalForm {
        width: 100%;
    }

    .goalInput {
        width: auto;
        flex: 1;
    }

    .avatarForm {
        flex-direction: column;
        align-items: stretch;
    }

    .profileFooter {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 15px;
    }

    .footerLinks {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* Keep settings controls on a shared right edge; stack before text gets cramped. */
.profileSettings {
    container-type: inline-size;
}
.profileSettingCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 20px;
}
.settingText > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.settingActions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}
.settingActions > form {
    margin: 0;
    max-width: 100%;
}
.settingActions .goalForm,
.settingActions .avatarForm {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.settingActions .goalInput {
    flex: 1 1 70px;
    min-width: 0;
    width: 90px;
}
.settingActions .profileSmallButton,
.settingActions .fileButton {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: auto;
}
.settingActions .settingsForm {
    width: 100%;
    overflow-wrap: anywhere;
}
@container (max-width: 700px) {
    .profileSettingCard {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .settingActions {
        align-items: stretch;
    }
    .settingActions > form:not(.goalForm):not(.avatarForm) > button,
    .settingActions > button {
        width: 100%;
    }
    .settingActions .goalForm,
    .settingActions .avatarForm {
        justify-content: flex-start;
    }
    .settingActions .avatarForm > * {
        flex: 1 1 auto;
    }
}

/* Recovery belongs to the same content column as the profile card. */
.profileRecoveryCard {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 24px 0 0;
    padding: 24px;
}
.profileRecoveryCard form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.profileRecoveryCard .taskInput {
    flex: 1 1 200px;
    min-width: 0;
    max-width: 100%;
}
.profileRecoveryCard button {
    max-width: 100%;
    white-space: normal;
}
@media (max-width: 520px) {
    .profileRecoveryCard { padding: 20px; }
    .profileRecoveryCard button { width: 100%; }
}

/* One consistent control column for every profile setting. */
.profileSettings .settingActions {
    width: 100%;
    align-items: stretch;
    gap: 12px;
}
.profileSettings .settingActions > form,
.profileSettings .settingActions > label,
.profileSettings .settingActions > button,
.profileSettings .settingActions > div,
.profileSettings .settingActions .fontPicker,
.profileSettings .settingActions .filterPicker {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.profileSettings .settingActions .goalForm,
.profileSettings .settingActions .avatarForm {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.profileSettings .settingActions .profileInput,
.profileSettings .settingActions .profileSmallButton,
.profileSettings .settingActions .fileButton,
.profileSettings .settingActions .fontTrigger,
.profileSettings .settingActions select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
}
.profileSettings .settingActions .fileButton { justify-content: center; }
.profileSettings .typographyForm { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.profileSettings .typographyForm label { width: 100%; min-width: 0; }
.profileSettings .accentChoices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
    gap: 16px 8px;
}
.profileSettings .accentChoice { min-width: 0; text-align: center; font-size: 11px; overflow-wrap: anywhere; }
.profileSettings .telegramLinkWidget,
.profileSettings .g_id_signin { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.profileSettings .telegramLinkWidget iframe { display: block; max-width: 100%; border: 0; }
@container (max-width: 700px) {
    .profileSettings .settingActions { width: min(100%, 320px); justify-self: center; }
}

/* Personal editing is grouped separately from appearance and integrations. */
.profilePersonalPanel{padding:28px;border:1px solid var(--text-accent,#d12c70);border-radius:28px;margin-bottom:32px;background:linear-gradient(135deg,color-mix(in srgb,var(--text-accent,#d12c70) 10%,transparent),transparent 65%);box-shadow:0 12px 36px color-mix(in srgb,var(--text-accent,#d12c70) 7%,transparent)}
.profilePersonalHeader{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.profilePersonalHeader h2{margin:0 0 10px;font-size:22px;line-height:1.5}
.profilePersonalHeader p{margin:0;line-height:1.7}
.profilePersonalHeader .profilePersonalEyebrow{color:var(--text-accent,#d12c70);font-size:11px;letter-spacing:.12em;margin-bottom:10px}
.profilePersonalMark{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;border-radius:18px;background:color-mix(in srgb,var(--text-accent,#d12c70) 12%,transparent);color:var(--text-accent,#d12c70);font-size:30px}
.profilePersonalGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.profileSettings .profilePersonalGrid .profileSettingCard{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:20px;padding:22px;margin:0;min-width:0;height:100%;box-sizing:border-box;border-radius:20px;transform:none}
.profilePersonalGrid .settingText{align-items:flex-start;gap:12px;min-width:0}
.profilePersonalGrid .settingText h3{line-height:1.6;margin:0 0 8px;font-size:14px}
.profilePersonalGrid .settingText p{line-height:1.7;font-size:12px}
.profilePersonalGrid .settingIcon{width:40px;height:40px;min-width:40px;border-radius:12px;font-size:20px}
.profileSettings .profilePersonalGrid .settingActions{width:100%;max-width:none;margin-top:auto;align-self:stretch}
.profilePersonalGrid .profileIdentityForm label{display:grid;gap:8px;font-size:12px;line-height:1.6}
.profilePersonalGrid .profileIdentityForm small{line-height:1.7;opacity:.65;font-size:11px}
.profilePersonalGrid .profileSmallButton{white-space:normal;line-height:1.5;text-align:center;min-height:46px}
@media(max-width:1100px){.profilePersonalGrid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.profilePersonalPanel{padding:16px;border-radius:22px}.profilePersonalHeader{gap:12px}.profilePersonalHeader h2{font-size:18px}.profilePersonalHeader p{font-size:12px}.profilePersonalMark{width:42px;height:42px;font-size:24px}.profileSettings .profilePersonalGrid .profileSettingCard{padding:16px}}

@media(min-width:1101px){
.profilePersonalGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.profilePersonalGrid>.profileSettingCard:first-child{grid-column:1/-1}
.profileSettings .profilePersonalGrid .profileIdentityForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;align-items:center}
.profilePersonalGrid .settingText{gap:10px}
.profilePersonalGrid .settingText h3{font-size:12px}
.profilePersonalGrid .profileSmallButton{font-size:11px;padding:12px 10px;min-height:48px}
}



/* =========================================================
   TASKS — SINUS
   ========================================================= */

.tasksPage {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 70% 0%,
            rgba(136, 13, 77, 0.06),
            transparent 30%
        ),
        var(--background);

    color: var(--text);
}


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

.tasksMain {
    margin-left: 220px;

    width: min(
        1050px,
        calc(100% - 220px)
    );

    box-sizing: border-box;

    padding: 55px 55px 80px;
}


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

.tasksHeader {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.tasksEyebrow {
    margin: 0 0 8px;

    color: #62072d;

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

    letter-spacing: 0.18em;
}

.tasksHeader h1 {
    margin: 0;

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

    line-height: 1.1;

    letter-spacing: -0.04em;
}

.tasksSubtitle {
    max-width: 520px;

    margin: 12px 0 0;

    font-size: 16px;

    line-height: 1.5;

    opacity: 0.5;
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.tasksPage .themeButton {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 11px 15px;

    border: 1px solid
        rgba(128, 128, 128, 0.14);

    border-radius: 12px;

    background: var(--lightBox);

    color: var(--text);

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

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

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

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.07);
}


/* =========================================================
   FILTERS
   ========================================================= */

.tasksFilters {
    padding: 24px;

    margin-bottom: 30px;

    border-radius: 22px;

    background: #d699b930;

    border:
        1px solid
        rgba(136, 13, 77, 0.12);

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

.filterHeader {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 22px;
}

.filterEyebrow {
    display: block;

    margin-bottom: 5px;

    color: #e00560;

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

    letter-spacing: 0.14em;
}

.filterHeader h2 {
    margin: 0;

    font-size: 20px;

    letter-spacing: -0.03em;
}

.filterIcon {
    font-size: 23px;

    color: #62072d;

    opacity: 0.6;
}

.filtersGrid {
    display: grid;

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

    gap: 15px;
}

.filterBlock {
    min-width: 0;
}

.filterBlock label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 700;

    opacity: 0.7;
}

.filterHint {
    margin: -3px 0 7px;

    font-size: 11px;

    opacity: 0.4;
}

.filterRow {
    display: flex;

    gap: 8px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.taskInput {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border:
        1px solid
        rgba(135, 6, 51, 0.281);

    border-radius: 11px;

    background: var(--background);

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.taskInput:focus {
    border-color: #62072d;

    box-shadow:
        0 0 0 3px
        rgba(98, 7, 45, 0.08);
}

.taskInput::placeholder {
    color: var(--text);

    opacity: 0.3;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.taskButton,
.taskPrimaryButton {
    border: none;

    border-radius: 11px;

    background: #62072d;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

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

.taskButton {
    padding: 15px 15px;
    position: relative;
    z-index: 9999;
    white-space: nowrap;
}

.taskPrimaryButton {
    width: 100%;

    padding: 13px;
}

.taskButton:hover,
.taskPrimaryButton:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(98, 7, 45, 0.22);
}


/* =========================================================
   ADMIN ADD
   ========================================================= */

.adminAddButton {
    display: flex;
    position:relative;
    z-index:9999;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;

    margin-top: 15px;

    padding: 12px;

    border:
        1px dashed
        rgba(98, 7, 45, 0.25);

    border-radius: 12px;

    background:
        rgba(98, 7, 45, 0.04);

    color: #62072d;

    font-family: inherit;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.adminAddButton:hover {
    background:
        rgba(98, 7, 45, 0.08);

    transform: translateY(-1px);
}

.adminAddButton span {
    font-size: 19px;
}


/* =========================================================
   TASK LIST HEADER
   ========================================================= */

.tasksListHeader {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 15px;
}

.tasksListHeader span {
    display: block;

    margin-bottom: 4px;

    color: #62072d;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.14em;
}

.tasksListHeader h2 {
    margin: 0;

    font-size: 21px;

    letter-spacing: -0.03em;
}

.tasksListHeader p {
    margin: 0;

    font-size: 13px;

    opacity: 0.4;
}


/* =========================================================
   TASK CARD
   ========================================================= */

.taskCard {
    margin-bottom: 14px;

    padding: 24px;

    border-radius: 20px;

    background: #d699b930;

    border:
        1px solid
        rgba(136, 13, 77, 0.12);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.035);

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

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

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.055);
}


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

.taskCardHeader {
    display: flex;

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

    gap: 15px;

    margin-bottom: 18px;
}

.taskTags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.taskTag {
    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    border-radius: 7px;

    background:
        rgba(98, 7, 45, 0.07);

    color: var(--text);

    font-size: 11px;

    font-weight: 700;

    opacity: 0.65;
}

.taskTag.taskId {
    color: #e00560;

    opacity: 1;
}

.firstTry {
    flex-shrink: 0;

    font-size: 11px;

    opacity: 0.45;
}

.firstTry strong {
    color: #62072d;

    font-weight: 800;
}


/* =========================================================
   TASK TEXT
   ========================================================= */

.taskText {
    font-size: 16px;
    font-family: 'Task', sans-serif;
    line-height: 1.7;
    color: var(--text);
}

.taskText .katex {
    font-size: 1em;
}


/* =========================================================
   IMAGE
   ========================================================= */

.taskImageWrapper {
    margin: 20px 0;

    padding: 15px;

    border-radius: 14px;

    background: var(--background);

    overflow: hidden;
}

.taskImage {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0 auto;

    border-radius: 8px;
}


/* =========================================================
   ANSWER
   ========================================================= */

.answerRow {
    display: flex;

    gap: 8px;

    max-width: 500px;

    margin-top: 22px;
}

.answerInput {
    min-width: 0;
}

.answerRow .taskButton {
    flex-shrink: 0;
}


/* =========================================================
   RESULT
   ========================================================= */

.taskResult {
    min-height: 17px;

    margin: 10px 0 0;

    font-size: 13px;

    font-weight: 700;
}

.taskResult.correct {
    color: #13aa13;
}

.taskResult.incorrect {
    opacity: 0.55;
}

.taskResult.neutral {
    opacity: 0.35;
}


/* =========================================================
   SOLUTION
   ========================================================= */

.solutionDetails {
    margin-top: 14px;

    padding-top: 14px;

    border-top:
        1px solid
        rgba(128, 128, 128, 0.10);
}

.solutionDetails summary {
    color: #62072d;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.solutionText {
    margin-top: 14px;
    font-family: 'Task', sans-serif;
    font-size: 15px;

    line-height: 1.7;

    opacity: 0.75;
}


/* =========================================================
   ADMIN TASK ACTIONS
   ========================================================= */

.adminTaskActions {
    display: flex;

    gap: 8px;

    margin-top: 20px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(128, 128, 128, 0.08);
}

.adminTaskActions form {
    margin: 0;
}

.dangerButton,
.secondaryButton {
    position: relative;
    z-index: 9999;
    padding: 9px 12px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.dangerButton {
    border: 1px solid
        rgba(150, 30, 50, 0.15);

    background:
        rgba(150, 30, 50, 0.06);

    color: #8d2438;
}

.secondaryButton {
    border: 1px solid
        rgba(98, 7, 45, 0.15);

    background:
        rgba(98, 7, 45, 0.06);

    color: #62072d;
}

.dangerButton:hover,
.secondaryButton:hover {
    transform: translateY(-1px);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.tasksSidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 220px;

    height: 100vh;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    padding: 30px 15px;

    background: var(--lightBox);

    border-right:
        1px solid
        rgba(128, 128, 128, 0.10);

    z-index: 100;
}


/* LOGO */

.tasksSidebar .sidebarLogo {
    display: block;

    margin: 5px 12px 35px;

    color: var(--text) !important;

    font-size: 22px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.05em;

    text-decoration: none !important;
}

.tasksSidebar .sidebarLogo span {
    color: #62072d;
}


/* NAV */

.tasksSidebar nav,
.tasksSidebar .listThings {
    display: flex;

    flex-direction: column;

    gap: 5px;

    width: 100%;

    margin: 0;

    padding: 0;
}

.tasksSidebar nav a,
.tasksSidebar .listThings a {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none !important;

    opacity: 0.62;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.tasksSidebar nav a span,
.tasksSidebar .listThings a span {
    width: 19px;

    text-align: center;

    flex-shrink: 0;

    font-size: 16px;

    opacity: 0.65;
}

.tasksSidebar nav a:hover,
.tasksSidebar .listThings a:hover {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.07);

    opacity: 1;

    transform: translateX(2px);
}


/* ACTIVE */

.tasksSidebar nav a.active,
.tasksSidebar .listThings a.active {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.09);

    opacity: 1;

    font-weight: 700;
}

.tasksSidebar nav a.active::before,
.tasksSidebar .listThings a.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 20px;

    border-radius:
        0 5px 5px 0;

    background: #62072d;

    transform:
        translateY(-50%);
}


/* LOGOUT */

.tasksSidebar .sidebarBottom {
    margin-top: auto;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(128, 128, 128, 0.08);
}

.tasksSidebar .logoutLink {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    text-decoration: none !important;

    opacity: 0.42;
}

.tasksSidebar .logoutLink:hover {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.07);

    opacity: 1;
}


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

.taskModal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

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

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.45);

    backdrop-filter:
        blur(8px);
}

.taskModalBox {
    position: relative;

    width: min(620px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    box-sizing: border-box;

    padding: 28px;

    border-radius: 24px;

    background: var(--lightBox);

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.18);
}

.closeModal {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 9px;

    background:
        rgba(128, 128, 128, 0.08);

    color: var(--text);

    font-size: 20px;

    cursor: pointer;
}

.modalHeader {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 24px;
}

.modalIcon {
    width: 44px;
    height: 44px;

    display: flex;

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

    border-radius: 13px;

    background:
        rgba(98, 7, 45, 0.08);

    color: #62072d;

    font-size: 20px;
}

.modalHeader h2 {
    margin: 0;

    font-size: 20px;
}

.modalHeader p {
    margin: 4px 0 0;

    font-size: 13px;

    opacity: 0.45;
}

.taskModalForm {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.taskModalForm label {
    display: flex;

    flex-direction: column;

    gap: 7px;

    font-size: 13px;

    font-weight: 700;
}

.modalGrid {
    display: grid;

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

    gap: 12px;
}

.taskTextarea {
    min-height: 110px;

    resize: vertical;

    box-sizing: border-box;

    padding: 12px;

    border:
        1px solid
        rgba(128, 128, 128, 0.14);

    border-radius: 11px;

    background: var(--background);

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;
}

.taskTextarea:focus {
    border-color: #62072d;

    box-shadow:
        0 0 0 3px
        rgba(98, 7, 45, 0.08);
}

.fileInput {
    width: 100%;

    font-family: inherit;

    font-size: 12px;
}


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

.tasksFooter {
    margin-top: 45px;

    padding-bottom: 20px;
}


/* =========================================================
   DARK
   ========================================================= */

[data-theme="dark"] .tasksFilters,
[data-theme="dark"] .taskCard {
    background: #880d4d30;

    border-color:
        rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .tasksSidebar {
    background: var(--lightBox);

    border-right-color:
        rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .tasksSidebar nav a.active,
[data-theme="dark"] .tasksSidebar .listThings a.active {
    color: #ffffff !important;

    background:
        rgba(98, 7, 45, 0.28);
}

[data-theme="dark"] .tasksSidebar nav a:hover,
[data-theme="dark"] .tasksSidebar .listThings a:hover {
    color: #ffffff !important;

    background:
        rgba(98, 7, 45, 0.20);
}

[data-theme="dark"] .taskInput,
[data-theme="dark"] .taskTextarea {
    border-color:
        rgba(255, 255, 255, 0.09);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .tasksSidebar {
        position: relative;

        width: 100%;
        height: auto;

        min-height: 64px;

        padding: 10px 15px;

        flex-direction: row;

        align-items: center;

        border-right: none;

        border-bottom:
            1px solid
            rgba(128, 128, 128, 0.10);

        overflow: hidden;
    }

    .tasksSidebar .sidebarLogo {
        margin: 0 18px 0 4px;

        flex-shrink: 0;

        font-size: 20px;
    }

    .tasksSidebar nav,
    .tasksSidebar .listThings {
        flex-direction: row;

        align-items: center;

        gap: 4px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .tasksSidebar nav::-webkit-scrollbar,
    .tasksSidebar .listThings::-webkit-scrollbar {
        display: none;
    }

    .tasksSidebar nav a,
    .tasksSidebar .listThings a {
        width: auto;

        min-width: max-content;

        padding: 9px 11px;

        white-space: nowrap;
    }

    .tasksSidebar nav a span,
    .tasksSidebar .listThings a span {
        display: none;
    }

    .tasksSidebar nav a.active::before,
    .tasksSidebar .listThings a.active::before {
        display: none;
    }

    .tasksSidebar .sidebarBottom {
        display: none;
    }

    .tasksMain {
        margin-left: 0;

        width: 100%;

        padding: 35px 20px 70px;
    }

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

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


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .tasksMain {
        padding: 28px 15px 60px;
    }

    .tasksHeader {
        flex-direction: column;

        margin-bottom: 25px;
    }

    .tasksHeader h1 {
        font-size: 29px;
    }

    .tasksPage .themeButton {
        width: 100%;

        justify-content: center;
    }

    .tasksFilters {
        padding: 18px;

        border-radius: 17px;
    }

    .filterRow {
        flex-direction: column;
    }

    .taskButton {
        width: 100%;
    }

    .taskCard {
        padding: 18px;

        border-radius: 17px;
    }

    .taskCardHeader {
        align-items: flex-start;

        flex-direction: column;
    }

    .firstTry {
        align-self: flex-start;
    }

    .answerRow {
        flex-direction: column;

        max-width: none;
    }

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

    .taskModalBox {
        padding: 22px 18px;
    }

    .adminTaskActions {
        flex-direction: column;
    }
}

/* =========================================================
   MISTAKES PAGE & EXTENSIONS — SINUS
   ========================================================= */

/* Пустое состояние (когда ошибок нет) */
.noMistakes {
    position: relative;
    padding: 45px 35px;
    border-radius: 24px;
    background: #880d4d30;
    border: 1px solid rgba(136, 13, 77, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035);
    text-align: center;
    overflow: hidden;
    margin-top: 10px;
}

.noMistakesEyebrow {
    display: block;
    margin-bottom: 8px;
    color: #e00560;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.noMistakes h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.noMistakesText {
    max-width: 460px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.6;
}

.noMistakesLinks {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.noMistakesBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 11px 22px;
}

.noMistakesMascot {
    display: block;
    max-width: 170px;
    height: auto;
    margin: 25px auto 0;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.noMistakes:hover .noMistakesMascot {
    transform: scale(1.04) translateY(-3px);
}

/* Модальное окно контактов */
.contactsModal .contactsList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.contactItem {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--background);
    border: 1px solid rgba(128, 128, 128, 0.12);
}

.contactItem span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(98, 7, 45, 0.08);
    color: #62072d;
    font-size: 17px;
    font-weight: 700;
}

.contactItem small {
    display: block;
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 2px;
}

.contactItem p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.contactsNote {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.5;
    text-align: center;
}

/* Подвал страницы */
.mistakesFooter {
    margin-left: 220px;
    padding: 20px 55px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    font-size: 13px;
    opacity: 0.55;
}

.mistakesFooter a,
.mistakesFooter button.textButton {
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mistakesFooter a:hover,
.mistakesFooter button.textButton:hover {
    color: #62072d;
    opacity: 1;
}

.mistakesFooter span {
    margin-left: auto;
    opacity: 0.5;
}

/* Адаптив для мобильных устройств */
@media (max-width: 900px) {
    .mistakesFooter {
        margin-left: 0;
        padding: 20px 20px 40px;
        justify-content: center;
    }
    
    .mistakesFooter span {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .noMistakes {
        padding: 30px 18px;
    }

    .noMistakesLinks {
        flex-direction: column;
    }

    .noMistakesBtn {
        width: 100%;
    }
}
.tasksListTools{display:flex;align-items:center;justify-content:flex-end;gap:14px 20px;flex-wrap:wrap}.tasksListTools>p{margin:0;white-space:nowrap}.hideAttemptedChoice{display:flex;align-items:center;gap:10px;max-width:390px;font:inherit;font-size:12px;line-height:1.7;cursor:pointer;color:var(--text-main);text-align:left}.hideAttemptedChoice input{width:19px;height:19px;flex:0 0 19px;min-height:0;margin:0;accent-color:var(--text-accent,#d12c70);cursor:pointer}.hideAttemptedChoice input:focus-visible{outline:2px solid var(--text-accent,#d12c70);outline-offset:4px}@media(max-width:650px){.tasksListHeader{flex-wrap:wrap;gap:16px}.tasksListTools{width:100%;justify-content:flex-start}.hideAttemptedChoice{font-size:11px;max-width:100%}}

.tasksListHeader .hideAttemptedChoice span{color:inherit;font-size:inherit;letter-spacing:normal;opacity:1}

/* Answer and action form one line, including narrow screens. */
html body.tasksPage .answerRow{display:flex;flex-direction:row;align-items:stretch;flex-wrap:nowrap;max-width:680px;gap:10px}
html body.tasksPage .answerRow .answerInput{flex:1 1 0;width:0;min-width:0;height:46px;min-height:46px;margin:0;box-sizing:border-box}
html body.tasksPage .answerRow .taskButton{flex:0 0 auto;min-height:46px;height:46px;margin:0;position:static;padding:10px 16px;box-sizing:border-box;line-height:1.4;font-size:12px!important}
.taskFavorite{font:inherit;font-size:11px;line-height:1.5;padding:8px 10px;min-height:36px;border:1px solid var(--card-border);border-radius:12px;background:transparent;color:var(--text-accent);cursor:pointer}.taskFavorite[aria-pressed=true]{background:color-mix(in srgb,var(--text-accent) 15%,transparent)}

/* Metadata chips size to their text rather than stretching to the action height. */
html body.tasksPage .taskTags{align-items:center;align-content:flex-start;justify-content:flex-start;min-width:0}
html body.tasksPage .taskTags>:is(.taskTag,.difficultyTag,.taskFavorite){flex:0 0 auto;align-self:center;display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;min-width:0;height:auto;min-height:0;box-sizing:border-box;line-height:1.4;padding:5px 8px;white-space:normal;overflow-wrap:anywhere}
html body.tasksPage .taskTags>.taskFavorite{min-height:32px;padding:6px 10px}

.taskLoadMore{text-align:center;padding:24px 0}.taskLoadMore .taskButton{display:inline-block;text-decoration:none;z-index:auto}.taskLoadMore .taskButton[hidden]{display:none}.taskLoadMore [aria-disabled="true"]{opacity:.65;cursor:wait}.taskLoadMore p{font-size:12px;line-height:1.7;margin-top:18px}



/* =========================================================
LOGIN — БАЗОВЫЙ ЛЭЙАУТ (центрирование карточки на странице)
========================================================= */

.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80vh;
}

.logButtons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.logProfile {
    width: 100%;
    height: 34px;
}

.questions {
    text-align: center;
    margin: 20px auto 15px auto;
}

.createAccount {
    display: block;
    text-align: center;
    color: #9b6881;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: 40%;
    padding: 10px;
    border-radius: 15px;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* =========================================================
AUTH PAGE
========================================================= */

.authPage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 15%, rgba(205, 48, 95, 0.08), transparent 32%),
        var(--background);
    color: var(--text);
}

/* ---------- Основная область ---------- */

.authWrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px 40px;
}

/* ---------- Карточка ---------- */

.authPage .login {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 430px);
    height: auto;
    padding: 42px;
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 28px;
    background: #ffffff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    animation: loginAppear 0.55s ease both;
}

[data-theme="dark"] .authPage .login {
    background: #7f123332 !important;
    border-color: rgba(210, 16, 97, 0.683);
    box-shadow: 0 20px 60px rgba(42, 13, 13, 0.25);
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Маскот ---------- */

.loginMascot {
    position: absolute;
    top: -52px;
    right: 28px;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 7px solid var(--background);
    border-radius: 50%;
    background: var(--background);
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.08));
    animation: mascotFloat 3s ease-in-out infinite;
}

.loginMascot .mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

/* ---------- Заголовок ---------- */

.loginHeader {
    margin-bottom: 30px;
}

.authEyebrow {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #cd305f;
}

.loginHeader h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.loginHeader > p:last-child {
    margin: 12px 0 0;
    max-width: 310px;
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.6;
}

/* ---------- Вход через Telegram ---------- */

.telegramLoginBlock {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

/* ---------- Разделитель "или" ---------- */

.authDivider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: 14px;
    opacity: 0.5;
}

.authDivider::before,
.authDivider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(120, 120, 120, 0.2);
}

.authDivider span {
    white-space: nowrap;
}

/* ---------- Форма ---------- */

.loginForm {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.inputLabel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.loginInput {
    box-sizing: border-box;
    width: 100%;
    padding: 15px 16px;
    border: 1.5px solid rgba(120, 120, 120, 0.16);
    border-radius: 14px;
    background: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 17px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.loginInput::placeholder {
    opacity: 0.4;
}

.loginInput:focus {
    border-color: #cd305f;
    box-shadow: 0 0 0 4px rgba(205, 48, 95, 0.09);
    transform: translateY(-1px);
}

/* ---------- Чекбокс согласия ---------- */

.checkboxLabel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 16px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkboxInput {
    cursor: pointer;
    accent-color: var(--primary-color, #000);
}

.checkboxLabel a {
    text-decoration: underline;
}

/* ---------- Кнопка ---------- */

.enterButton {
    width: 100%;
    margin-top: 6px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 14px;
    background: #cd305f;
    color: white;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(205, 48, 95, 0.20);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.enterButton:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 12px 28px rgba(205, 48, 95, 0.27);
}

.enterButton:active {
    transform: translateY(0);
}

.buttonArrow {
    font-size: 20px;
    line-height: 0;
    transition: transform 0.25s ease;
}

.enterButton:hover .buttonArrow {
    transform: translateX(4px);
}

/* ---------- Регистрация ---------- */

.registerHint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 22px;
    font-size: 15px;
    opacity: 0.6;
}

.registerHint a {
    color: #cd305f;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.registerHint a:hover {
    opacity: 0.7;
}

/* ---------- Ошибка ---------- */

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(205, 48, 95, 0.08);
}

.toast .mascot {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.toast .error {
    margin: 0;
}
/* Provider-rendered buttons share one compact, centered layout. */
.socialLoginGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 4px 0 26px;
}
.socialLoginGroup .telegramLoginBlock,
.socialLoginGroup .googleLoginBlock {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 40px;
    max-width: 100%;
    line-height: 0;
}
.socialLoginGroup iframe { display: block; border: 0; }



/* =========================================================
SINUS · ABOUT PAGE (CENTERED MASCOT ON TOP)
Все селекторы скоуплены под .aboutProjectPage, чтобы не
пересекаться с классами страницы .aboutMePage (about_me.html) —
у обеих страниц раньше был одинаковый body class "aboutPage"
и почти идентичные имена внутренних классов.
========================================================= */

.aboutProjectPage {
  --accent: #e00560;
  --accent-soft: rgba(224, 5, 96, .12);
  --ink: #111111;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .3s;
  --dur-base: .5s;
  --dur-slow: .8s;

  position: relative;
  width: 100%;
  overflow-x: hidden;
  background: var(--background, #fafafa);
  scroll-behavior: smooth;
  color: var(--ink);
  box-sizing: border-box;
}

.aboutProjectPage *, 
.aboutProjectPage *::before, 
.aboutProjectPage *::after {
  box-sizing: border-box;
}

.aboutProjectPage a,
.aboutProjectPage button {
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft);
}

.aboutProjectPage :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
BACKGROUND
========================================================= */
.aboutProjectPage .aboutBackground {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aboutProjectPage .gridNoise {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,0,0,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.aboutProjectPage .bgMath {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 100px;
  opacity: .035;
  animation: aboutProjectBackgroundFloat 16s var(--ease-soft) infinite;
  will-change: transform;
}

.aboutProjectPage .bgMath1 { top: 10%; left: 4%; }
.aboutProjectPage .bgMath2 { top: 36%; right: 4%; animation-delay: -4s; }
.aboutProjectPage .bgMath3 { top: 65%; left: 5%; animation-delay: -8s; }
.aboutProjectPage .bgMath4 { bottom: 8%; right: 7%; animation-delay: -11s; }

@keyframes aboutProjectBackgroundFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-25px) rotate(4deg); }
}

/* =========================================================
HERO LAYOUT & TOP BAR
========================================================= */
.aboutProjectPage .aboutHero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px clamp(25px, 6vw, 100px) 0;
  overflow: hidden;
  z-index: 1;
}

.aboutProjectPage .heroTopBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.aboutProjectPage .aboutLogo {
  font-size: 30px;
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  letter-spacing: -2px;
}

.aboutProjectPage .aboutLogo span {
  color: var(--accent);
}

.aboutProjectPage .aboutThemeButton {
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(15px);
  padding: 10px 15px;
  border-radius: 100px;
  cursor: pointer;
  color: inherit;
}

.aboutProjectPage .aboutThemeButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.aboutProjectPage .aboutThemeButton:active {
  transform: translateY(0);
  transition-duration: .1s;
}

/* =========================================================
HERO MAIN (MASCOT TOP & CENTERED CONTENT)
========================================================= */
.aboutProjectPage .heroMain {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  margin: 20px auto 0;
}

.aboutProjectPage .heroVisualElevated {
  transform: translateY(0);
}

.aboutProjectPage .heroVisual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 480px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  z-index: 2;
}

.aboutProjectPage .heroMascotGlow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(50px);
  animation: aboutProjectGlowPulse 6s var(--ease-soft) infinite;
}

@keyframes aboutProjectGlowPulse {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.aboutProjectPage .heroMascot {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.14));
  animation: aboutProjectMascotFloat 6s var(--ease-soft) infinite;
  will-change: transform;
}

@keyframes aboutProjectMascotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

/* =========================================================
INTERACTIVE FLOATING MATH CARDS
========================================================= */
.aboutProjectPage .mathCard {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  font-size: 15px;
  cursor: pointer;
  will-change: transform;
  white-space: nowrap;
  color: var(--ink);
}

.aboutProjectPage .mathCard span {
  font-size: 22px;
  color: var(--accent);
  transition: transform .35s var(--ease);
}

.aboutProjectPage .mathCardInteractive:hover span {
  transform: scale(1.1);
}

.aboutProjectPage .mathCardInteractive {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease-soft), border-color .35s var(--ease-soft);
}

.aboutProjectPage .cardRoot {
  top: 10%;
  left: 2%;
  animation: aboutProjectCardFloatOne 7s var(--ease-soft) infinite;
}

.aboutProjectPage .cardPi {
  top: 15%;
  right: 2%;
  animation: aboutProjectCardFloatTwo 8s var(--ease-soft) infinite;
  animation-delay: -2s;
}

.aboutProjectPage .cardSum {
  bottom: 8%;
  left: 12%;
  animation: aboutProjectCardFloatThree 9s var(--ease-soft) infinite;
  animation-delay: -4s;
}

.aboutProjectPage .mathCardInteractive:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  border-color: rgba(224, 5, 96, .3);
}

@keyframes aboutProjectCardFloatOne {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes aboutProjectCardFloatTwo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes aboutProjectCardFloatThree {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
HERO TEXT & COPY
========================================================= */
.aboutProjectPage .heroCopy {
  position: relative;
  z-index: 4;
  padding: 10px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aboutProjectPage .heroKicker,
.aboutProjectPage .sectionEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}

.aboutProjectPage .kickerDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 
    0 0 0 5px rgba(224,5,96,.08),
    0 0 20px rgba(224,5,96,.3);
  animation: aboutProjectPulseDot 2.4s var(--ease-soft) infinite;
}

@keyframes aboutProjectPulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.aboutProjectPage .heroTitle {
  margin: 15px 0 20px;
  font-size: clamp(50px, 7vw, 110px);
  line-height: .9;
  letter-spacing: -.06em;
  font-weight: 800;
}

.aboutProjectPage .heroTitle span {
  color: var(--accent);
}

.aboutProjectPage .heroDescription {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.65;
  opacity: .7;
  margin: 0 auto 35px;
}

/* =========================================================
HERO BUTTONS
========================================================= */
.aboutProjectPage .heroActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.aboutProjectPage .heroPrimaryButton,
.aboutProjectPage .heroSecondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border-radius: 100px;
}

.aboutProjectPage .heroPrimaryButton {
  gap: 25px;
  padding: 14px 18px 14px 24px;
  color: white;
  background: var(--ink);
  font-weight: 700;
}

.aboutProjectPage .heroPrimaryButton b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 20px;
  transition: transform var(--dur-fast) var(--ease);
}

.aboutProjectPage .heroPrimaryButton:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,.14);
}

.aboutProjectPage .heroPrimaryButton:hover b {
  transform: translateX(3px);
}

.aboutProjectPage .heroPrimaryButton:active,
.aboutProjectPage .heroSecondaryButton:active {
  transform: translateY(-1px);
  transition-duration: .1s;
}

.aboutProjectPage .heroSecondaryButton {
  gap: 15px;
  padding: 15px 24px;
  border: 1px solid rgba(0,0,0,.12);
  color: inherit;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
}

.aboutProjectPage .heroSecondaryButton:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,.2);
}

.aboutProjectPage .heroSecondaryButton span {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}

.aboutProjectPage .heroSecondaryButton:hover span {
  transform: translateY(3px);
}

/* =========================================================
CIRCLE TEXT
========================================================= */
.aboutProjectPage .heroCircleText {
  position: absolute;
  width: 135px;
  height: 135px;
  right: 4%;
  bottom: 8%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1);
  animation: aboutProjectSpinSlow 22s linear infinite;
}

.aboutProjectPage .heroCircleText span {
  font-size: 11px;
  letter-spacing: .25em;
  font-weight: 800;
}

@keyframes aboutProjectSpinSlow {
  to { transform: rotate(360deg); }
}

/* =========================================================
TICKER
========================================================= */
.aboutProjectPage .mathTicker {
  width: calc(100% + 200px);
  margin-left: -100px;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transform: rotate(-1deg);
  background: rgba(255,255,255,.3);
}

.aboutProjectPage .tickerTrack {
  display: flex;
  width: max-content;
  gap: 35px;
  align-items: center;
  animation: aboutProjectTickerMove 34s linear infinite;
}

.aboutProjectPage .tickerTrack span {
  font-family: Georgia, serif;
  font-size: 25px;
  white-space: nowrap;
  opacity: .55;
}

.aboutProjectPage .tickerTrack i {
  color: var(--accent);
  font-style: normal;
}

@keyframes aboutProjectTickerMove {
  to { transform: translateX(-50%); }
}

/* =========================================================
INTRO & FEATURES
========================================================= */
.aboutProjectPage .aboutIntro {
  max-width: 1150px;
  margin: 150px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 50px;
}

.aboutProjectPage .introNumber {
  font-size: 16px;
  color: var(--accent);
  font-weight: 800;
}

.aboutProjectPage .introText h2,
.aboutProjectPage .featuresHeader h2,
.aboutProjectPage .howHeading h2,
.aboutProjectPage .forWhoContentModern h2,
.aboutProjectPage .finalCtaContent h2 {
  font-size: clamp(45px, 6vw, 85px);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 20px 0;
}

.aboutProjectPage .introText h2 span,
.aboutProjectPage .featuresHeader h2 span,
.aboutProjectPage .howHeading h2 span,
.aboutProjectPage .forWhoContentModern h2 span,
.aboutProjectPage .finalCtaContent h2 span {
  color: var(--accent);
}

.aboutProjectPage .introText p {
  max-width: 650px;
  font-size: 20px;
  line-height: 1.7;
  opacity: .65;
}

.aboutProjectPage .featuresModern {
  max-width: 1250px;
  margin: 0 auto 170px;
  padding: 0 30px;
}

.aboutProjectPage .featuresHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 50px;
}

.aboutProjectPage .featuresHeader > p {
  max-width: 350px;
  opacity: .55;
  line-height: 1.6;
}

.aboutProjectPage .heroFeatures {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.aboutProjectPage .featureGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.aboutProjectPage .featureCard {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.4));
  border: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(15px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease-soft);
}

.aboutProjectPage .featureCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(0,0,0,.09);
  border-color: rgba(224,5,96,.2);
}

.aboutProjectPage .featureCardTop {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: .5;
}

.aboutProjectPage .featureIcon {
  margin-top: 35px;
  font-family: Georgia, serif;
  font-size: 65px;
  color: var(--accent);
  line-height: 1;
}

.aboutProjectPage .featureCard h3 {
  font-size: 30px;
  letter-spacing: -.04em;
  margin: 15px 0 10px;
}

.aboutProjectPage .featureCard p {
  max-width: 440px;
  line-height: 1.6;
  opacity: .6;
}

/* =========================================================
STATS PREVIEW
========================================================= */
.aboutProjectPage .statsPreview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.aboutProjectPage .statsCircle {
  width: 170px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 12px solid rgba(224,5,96,.12);
  border-top-color: var(--accent);
  transform: rotate(-25deg);
  transition: transform .6s var(--ease);
}

.aboutProjectPage .statsCircle span {
  font-size: 35px;
  font-weight: 800;
  transform: rotate(25deg);
}

.aboutProjectPage .statsCircle small {
  font-size: 11px;
  letter-spacing: .12em;
  opacity: .5;
  transform: rotate(25deg);
}

.aboutProjectPage .statsBars {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aboutProjectPage .statsBars div {
  height: 7px;
  background: rgba(0,0,0,.07);
  border-radius: 10px;
  overflow: hidden;
}

.aboutProjectPage .statsBars span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 1.1s var(--ease);
}

/* =========================================================
HOW IT WORKS
========================================================= */
.aboutProjectPage .howSection {
  max-width: 1100px;
  margin: 0 auto 180px;
  padding: 0 30px;
}

.aboutProjectPage .howHeading {
  margin-bottom: 80px;
}

.aboutProjectPage .process {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 55px;
}

.aboutProjectPage .processLine {
  position: absolute;
  left: 29px;
  top: 35px;
  bottom: 35px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(224,5,96,.05));
}

.aboutProjectPage .processStep {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 35px;
  align-items: start;
}

.aboutProjectPage .processCircle {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  border: 1px solid rgba(224,5,96,.25);
  background: var(--background, #fafafa);
  font-size: 14px;
  font-weight: 800;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.aboutProjectPage .processStep:hover .processCircle {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(224,5,96,.06);
}

.aboutProjectPage .processFinal {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 0 0 10px rgba(224,5,96,.08);
}

.aboutProjectPage .processStep span {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
}

.aboutProjectPage .processStep h3 {
  font-size: 30px;
  margin: 8px 0;
}

.aboutProjectPage .processStep p {
  max-width: 500px;
  line-height: 1.6;
  opacity: .6;
}

/* =========================================================
FOR WHO SECTION
========================================================= */
.aboutProjectPage .forWhoModern {
  max-width: 1250px;
  margin: 0 auto 180px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.aboutProjectPage .forWhoVisual {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
}

.aboutProjectPage .forWhoOrb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,5,96,.17), transparent 68%);
  animation: aboutProjectGlowPulse 7s var(--ease-soft) infinite;
}

.aboutProjectPage .forWhoVisual img {
  position: relative;
  z-index: 2;
  width: 330px;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.14));
  animation: aboutProjectMascotFloat 6s var(--ease-soft) infinite;
}

.aboutProjectPage .floatingBadge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(15px);
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
  font-size: 14px;
  animation: aboutProjectCardFloat 6s var(--ease-soft) infinite;
  color: var(--ink);
}

.aboutProjectPage .floatingBadge span {
  color: var(--accent);
  font-weight: 800;
}

.aboutProjectPage .badgeOne { top: 17%; left: 3%; }
.aboutProjectPage .badgeTwo { top: 40%; right: 0; animation-delay: -2.5s; }
.aboutProjectPage .badgeThree { bottom: 15%; left: 8%; animation-delay: -4.5s; }

@keyframes aboutProjectCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.aboutProjectPage .forWhoContentModern > p {
  max-width: 600px;
  line-height: 1.7;
  opacity: .6;
  font-size: 19px;
}

.aboutProjectPage .forWhoPoints {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aboutProjectPage .forWhoPoints > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: padding-left .35s var(--ease), border-color .35s var(--ease-soft);
}

.aboutProjectPage .forWhoPoints > div:hover {
  padding-left: 8px;
  border-color: rgba(224,5,96,.3);
}

.aboutProjectPage .forWhoPoints span {
  font-size: 13px;
  color: var(--accent);
  font-weight: 800;
}

.aboutProjectPage .forWhoPoints p {
  margin: 0;
  font-size: 16px;
}

/* =========================================================
FINAL CTA
========================================================= */
.aboutProjectPage .finalCta {
  position: relative;
  max-width: 1400px;
  min-height: 650px;
  margin: 0 auto 100px;
  border-radius: 45px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 70px clamp(35px, 8vw, 110px);
  background: var(--ink);
  color: white;
}

.aboutProjectPage .finalCta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,5,96,.45), transparent 68%);
  filter: blur(15px);
  animation: aboutProjectGlowPulse 8s var(--ease-soft) infinite;
}

.aboutProjectPage .ctaNoise {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 5px 5px;
  pointer-events: none;
}

.aboutProjectPage .finalCtaContent {
  position: relative;
  z-index: 4;
}

.aboutProjectPage .finalCtaContent h2 {
  max-width: 800px;
  margin-top: 25px;
  color: white;
}

.aboutProjectPage .finalCtaContent p {
  opacity: .6;
  font-size: 19px;
  margin: 25px 0 35px;
}

.aboutProjectPage .finalCtaButton {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 7px 8px 7px 25px;
  border-radius: 100px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.aboutProjectPage .finalCtaButton b {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 22px;
  transition: transform var(--dur-fast) var(--ease);
  font-style: normal;
}

.aboutProjectPage .finalCtaButton:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0,0,0,.28);
}

.aboutProjectPage .finalCtaButton:hover b {
  transform: rotate(45deg);
}

.aboutProjectPage .finalCtaButton:active {
  transform: translateY(-1px);
  transition-duration: .1s;
}

.aboutProjectPage .finalMascot {
  position: absolute;
  z-index: 3;
  width: 430px;
  right: 7%;
  bottom: -30px;
  filter: drop-shadow(0 25px 30px rgba(0,0,0,.35));
  animation: aboutProjectMascotFloat 6s var(--ease-soft) infinite;
}

.aboutProjectPage .ctaMath {
  position: absolute;
  z-index: 2;
  font-family: Georgia, serif;
  color: white;
  opacity: .08;
  font-size: 120px;
}

.aboutProjectPage .ctaMathOne { top: 8%; right: 38%; }
.aboutProjectPage .ctaMathTwo { bottom: 10%; right: 42%; }
.aboutProjectPage .ctaMathThree { top: 30%; left: 45%; }

/* =========================================================
CONTACT MODAL
========================================================= */
.aboutProjectPage .aboutContacts {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(15px);
  padding: 20px;
  animation: aboutProjectFadeIn .35s var(--ease-soft);
}

@keyframes aboutProjectFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.aboutProjectPage .contactsModalContent {
  position: relative;
  width: min(520px, 100%);
  padding: 45px;
  border-radius: 30px;
  background: var(--background, #fafafa);
  box-shadow: 0 40px 90px rgba(0,0,0,.22);
  animation: aboutProjectModalRise .4s var(--ease);
  color: var(--ink);
}

@keyframes aboutProjectModalRise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.aboutProjectPage .contactsMiniLabel {
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.aboutProjectPage .contactsModalContent h2 {
  font-size: 40px;
  letter-spacing: -.05em;
  margin: 15px 0 10px;
}

.aboutProjectPage .contactsModalContent > p {
  opacity: .6;
  line-height: 1.6;
}

.aboutProjectPage .contactsClose {
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 5;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 35px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease-soft);
}

.aboutProjectPage .contactsClose:hover {
  transform: rotate(90deg);
  opacity: .7;
}

.aboutProjectPage .contactRows {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aboutProjectPage .contactRow {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(0,0,0,.035);
  transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease);
  text-decoration: none;
  color: inherit;
}

.aboutProjectPage .contactRow:hover {
  background: rgba(0,0,0,.055);
  transform: translateX(4px);
}

.aboutProjectPage .contactRow > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(224,5,96,.08);
  color: var(--accent);
}

.aboutProjectPage .contactRow small {
  display: block;
  font-size: 12px;
  opacity: .5;
}

.aboutProjectPage .contactRow strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.aboutProjectPage .contactHint {
  margin-top: 20px;
  padding: 15px;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(224,5,96,.06);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
REVEAL ANIMATIONS
========================================================= */
.aboutProjectPage .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: transform, opacity;
}

.aboutProjectPage .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.aboutProjectPage .delay-1 { transition-delay: .1s; }
.aboutProjectPage .delay-2 { transition-delay: .2s; }
.aboutProjectPage .delay-3 { transition-delay: .3s; }

/* =========================================================
DARK THEME (Scoped to .aboutProjectPage)
========================================================= */
.aboutProjectPage.dark-theme,
[data-theme="dark"] .aboutProjectPage {
  background: #101010;
  color: #f5f5f5;
}

.aboutProjectPage.dark-theme .aboutThemeButton,
[data-theme="dark"] .aboutProjectPage .aboutThemeButton {
  background: rgba(30,30,30,.65);
  border-color: rgba(255,255,255,.1);
  color: white;
}

.aboutProjectPage.dark-theme .featureCard,
[data-theme="dark"] .aboutProjectPage .featureCard {
  background: linear-gradient(135deg, rgba(35,35,35,.8), rgba(25,25,25,.6));
  border-color: rgba(255,255,255,.08);
  color: #f5f5f5;
}

.aboutProjectPage.dark-theme .mathCard,
[data-theme="dark"] .aboutProjectPage .mathCard,
.aboutProjectPage.dark-theme .floatingBadge,
[data-theme="dark"] .aboutProjectPage .floatingBadge {
  background: rgba(30,30,30,.8);
  border-color: rgba(255,255,255,.08);
  color: #f5f5f5;
}

.aboutProjectPage.dark-theme .processCircle,
[data-theme="dark"] .aboutProjectPage .processCircle {
  background: #101010;
}

.aboutProjectPage.dark-theme .aboutContacts .contactsModalContent,
[data-theme="dark"] .aboutProjectPage .aboutContacts .contactsModalContent {
  background: #181818;
  color: #f5f5f5;
}

.aboutProjectPage.dark-theme .contactRow,
[data-theme="dark"] .aboutProjectPage .contactRow {
  background: rgba(255,255,255,.04);
}

.aboutProjectPage.dark-theme .contactRow:hover,
[data-theme="dark"] .aboutProjectPage .contactRow:hover {
  background: rgba(255,255,255,.07);
}

/* =========================================================
REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .aboutProjectPage * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .aboutProjectPage .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
RESPONSIVE (TABLET & MOBILE)
========================================================= */
@media (max-width: 992px) {
  .aboutProjectPage .heroVisual {
    max-width: 380px;
    height: 280px;
  }

  .aboutProjectPage .heroMascot {
    max-width: 200px;
  }

  .aboutProjectPage .featureGrid {
    grid-template-columns: 1fr;
  }

  .aboutProjectPage .forWhoModern {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .aboutProjectPage .finalMascot {
    width: 280px;
    opacity: .45;
    right: -40px;
  }
}

@media (max-width: 768px) {
  .aboutProjectPage {
    overflow-x: hidden !important;
    width: 100%;
  }

  .aboutProjectPage .aboutHero {
    min-height: auto;
    padding: 20px 16px 40px;
  }

  .aboutProjectPage .heroTitle {
    font-size: clamp(38px, 11vw, 54px) !important;
    line-height: 1.05;
    letter-spacing: -0.03em;
    word-break: break-word;
  }

  .aboutProjectPage .heroDescription {
    font-size: 18px;
    line-height: 1.5;
    padding: 0 5px;
  }

  .aboutProjectPage .heroVisual {
    height: 260px;
    max-width: 100%;
  }

  .aboutProjectPage .heroMascot {
    max-width: 160px !important;
  }

  .aboutProjectPage .heroMascotGlow {
    width: 220px;
    height: 220px;
  }

  .aboutProjectPage .mathCard {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 10px;
  }

  .aboutProjectPage .mathCard span {
    font-size: 18px;
  }

  .aboutProjectPage .cardRoot { top: 5%; left: 0; }
  .aboutProjectPage .cardPi { top: 10%; right: 0; }
  .aboutProjectPage .cardSum { bottom: 5%; left: 5%; }

  .aboutProjectPage .heroActions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .aboutProjectPage .heroPrimaryButton,
  .aboutProjectPage .heroSecondaryButton {
    width: 100%;
    justify-content: center;
  }

  .aboutProjectPage .aboutIntro {
    margin: 60px auto;
    padding: 0 16px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aboutProjectPage .introText h2,
  .aboutProjectPage .featuresHeader h2,
  .aboutProjectPage .howHeading h2,
  .aboutProjectPage .forWhoContentModern h2,
  .aboutProjectPage .finalCtaContent h2 {
    font-size: clamp(32px, 9vw, 44px) !important;
  }

  .aboutProjectPage .featuresModern {
    padding: 0 16px;
    margin-bottom: 80px;
  }

  .aboutProjectPage .featureGrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .aboutProjectPage .featureCard {
    min-height: auto;
    padding: 24px 20px;
  }

  .aboutProjectPage .howSection {
    padding: 0 16px;
    margin-bottom: 100px;
  }

  .aboutProjectPage .processStep {
    grid-template-columns: 45px 1fr;
    gap: 15px;
  }

  .aboutProjectPage .processCircle {
    width: 45px;
    height: 45px;
    font-size: 13px;
  }

  .aboutProjectPage .processLine {
    left: 22px;
  }

  .aboutProjectPage .processStep h3 {
    font-size: 22px;
  }

  .aboutProjectPage .forWhoModern {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 40px;
    margin-bottom: 100px;
  }

  .aboutProjectPage .forWhoVisual {
    min-height: 320px;
  }

  .aboutProjectPage .forWhoVisual img {
    width: 220px;
  }

  .aboutProjectPage .forWhoOrb {
    width: 260px;
    height: 260px;
  }

  .aboutProjectPage .finalCta {
    border-radius: 25px;
    margin: 0 16px 60px;
    padding: 35px 20px;
    min-height: auto;
  }

  .aboutProjectPage .finalMascot {
    display: none;
  }

  .aboutProjectPage .finalCtaButton {
    width: 100%;
    justify-content: space-between;
  }

  .aboutProjectPage .aboutContacts {
    padding: 10px;
  }

  .aboutProjectPage .contactsModalContent {
    padding: 25px 18px;
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .aboutProjectPage .contactsModalContent h2 {
    font-size: 28px;
  }
}


/* =========================================================
   STATISTICS — MAIN LAYOUT
   ========================================================= */

.statisticsPage {
    min-height: 100vh;
}

.statisticsMain {
    margin-left: 220px;
    width: min(1050px, calc(100% - 220px));
    box-sizing: border-box;
    padding: 55px 55px 80px;
}

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

.statisticsHeader {
    margin-bottom: 35px;
}

.statisticsHeader h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

/* ================= OVERVIEW ================= */

.statisticsOverview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.statisticCard {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px;

    border-radius: 18px;

    /* НОВЫЙ ФОН */
    background: #d699b930;

    border: 1px solid rgba(136, 13, 77, 0.12);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.035);

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

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

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.06);
}

.statisticIcon {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    border-radius: 13px;

    background: rgba(136, 13, 77, 0.10);

    color: #62072d;

    font-size: 19px;
}

.statisticCard small {
    display: block;

    margin-bottom: 4px;

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

    letter-spacing: 0.12em;

    opacity: 0.4;
}

.statisticCard strong {
    display: inline-block;

    font-size: 27px;
    line-height: 1;

    letter-spacing: -0.04em;
}

.statisticCard > div > span {
    margin-left: 4px;

    font-size: 12px;

    opacity: 0.45;
}

.statisticCard.accent strong {
    color: #d5095e;
}

/* ================= CHARTS ================= */

.statisticsGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.statisticsCard {
    min-width: 0;

    padding: 24px;

    border-radius: 20px;

    /* НОВЫЙ ФОН */
    background: #d699b930;

    border: 1px solid rgba(136, 13, 77, 0.12);

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

.statisticsCardHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.statisticsCardHeader small {
    display: block;

    margin-bottom: 5px;

    color: #62072d;

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

    letter-spacing: 0.14em;
}

.statisticsCardHeader h2 {
    margin: 0;

    font-size: 20px;

    letter-spacing: -0.03em;
}

.statisticsCardHeader p {
    margin: 5px 0 0;

    font-size: 13px;

    opacity: 0.45;
}

.statisticsCardIcon {
    font-size: 22px;

    color: #62072d;

    opacity: 0.55;
}

/* ================= CHART WRAPPER ================= */

.chartWrapper {
    position: relative;

    width: 100%;
    height: 300px;
}

.chartWrapper canvas {
    max-width: 100%;
}

/* ================= VARIANTS ================= */

.variantsSection {
    margin-top: 14px;

    padding: 24px;

    border-radius: 20px;

    /* НОВЫЙ ФОН */
    background: #880d4d30;

    border: 1px solid rgba(136, 13, 77, 0.12);

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

.variantsTableWrapper {
    width: 100%;

    overflow-x: auto;

    border-radius: 14px;

    scrollbar-width: thin;
}

/* ================= TABLE ================= */

.variant_table {
    width: 100%;

    min-width: 900px;

    border-collapse: separate;

    border-spacing: 4px;
}

.variant_table th {
    padding: 8px 5px;

    color: var(--text);

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

    opacity: 0.4;
}

.variant_table td {
    min-width: 34px;

    padding: 8px 5px;

    text-align: center;
    vertical-align: middle;

    border-radius: 9px;

    background: var(--background);
}

.variant_table td.variantInfo {
    min-width: 120px;

    text-align: left;

    padding-left: 12px;
}

.variantInfo strong {
    display: block;

    font-size: 13px;
}

.variantInfo small {
    display: block;

    margin-top: 3px;

    font-size: 10px;

    opacity: 0.4;
}

/* ================= TASK ================= */

.variantTask {
    display: flex;

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

    gap: 3px;

    color: var(--text);

    text-decoration: none;

    font-size: 12px;
}

.variantTask b {
    font-size: 11px;
}

/* ================= SCORE ================= */

.variant_table td.variantScore {
    min-width: 70px;

    background: rgba(136, 13, 77, 0.15);
}

.variantScore strong {
    color: #62072d;

    font-size: 16px;
}

/* =========================================================
   DARK THEME
   ========================================================= */

/*
   ВАЖНО:
   Здесь НЕ переопределяем фон карточек через var(--lightBox),
   поэтому #880d4d30 останется и в светлой, и в тёмной теме.
*/

[data-theme="dark"] .statisticCard,
[data-theme="dark"] .statisticsCard,
[data-theme="dark"] .variantsSection {
    background: #880d4d30;

    border-color:
        rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .statisticIcon {
    background: rgba(255, 255, 255, 0.06);

    color: #ffffff;
}

[data-theme="dark"] .variant_table td {
    background: var(--background);
}

[data-theme="dark"] .variant_table td.variantScore {
    background: rgba(136, 13, 77, 0.25);
}

/* =========================================================
   STATISTICS — SIDEBAR
   ========================================================= */

.statisticsPage .sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 220px;
    height: 100vh;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    padding: 30px 15px;

    background: var(--lightBox);

    border-right:
        1px solid rgba(128, 128, 128, 0.10);

    z-index: 100;
}

/* ================= LOGO ================= */

.statisticsPage .sidebar > .name {
    display: block;

    margin: 5px 12px 35px;

    color: var(--text) !important;

    font-size: 22px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.05em;

    text-decoration: none !important;
}

.statisticsPage .sidebar > .name span {
    color: #62072d;
}

/* ================= NAV ================= */

.statisticsPage .sidebar nav.listThings {
    display: flex;

    flex-direction: column;

    gap: 5px;

    width: 100%;

    margin: 0;
    padding: 0;
}

/* ================= LINKS ================= */

.statisticsPage .sidebar nav.listThings a {
    position: relative;

    display: flex;

    align-items: center;

    gap: 8px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none !important;

    opacity: 0.62;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.statisticsPage .sidebar nav.listThings a:hover {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.07);

    opacity: 1;
}

/* ================= ACTIVE ================= */

.statisticsPage .sidebar nav.listThings a.active {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.09);

    opacity: 1;

    font-weight: 700;
}

.statisticsPage .sidebar nav.listThings a.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 20px;

    border-radius:
        0 5px 5px 0;

    background: #62072d;

    transform:
        translateY(-50%);
}

/* ================= LOGOUT ================= */

.statisticsPage .sidebarBottom {
    margin-top: auto;

    padding-top: 20px;

    border-top:
        1px solid rgba(128, 128, 128, 0.08);
}

.statisticsPage .sidebar .logoutLink {
    display: flex;

    align-items: center;

    gap: 8px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    text-decoration: none !important;

    opacity: 0.42;
}

.statisticsPage .sidebar .logoutLink:hover {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.07);

    opacity: 1;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .statisticsPage .sidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding: 20px 15px;

        border-right: none;

        border-bottom:
            1px solid rgba(128, 128, 128, 0.10);
    }

    .statisticsMain {
        margin-left: 0;

        width: 100%;

        padding: 35px 20px 70px;
    }

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

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

@media (max-width: 520px) {

    .statisticsMain {
        padding: 28px 15px 60px;
    }

    .statisticsHeader h1 {
        font-size: 29px;
    }

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

        gap: 8px;
    }

    .statisticCard {
        padding: 15px;

        gap: 10px;
    }

    .statisticIcon {
        width: 36px;
        height: 36px;
    }

    .statisticCard strong {
        font-size: 22px;
    }

    .statisticsCard,
    .variantsSection {
        padding: 18px;

        border-radius: 17px;
    }

    .chartWrapper {
        height: 240px;
    }
}

/* ================= VARIANTS TABLE SLIDER ================= */
.variantsTableSlider { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; }
.variantsTableWrapper { width: 100%; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
/* скрываем стандартный scrollbar */
    scrollbar-width: none;}
.variantsTableWrapper::-webkit-scrollbar { display: none; }
.variant_table { min-width: 1100px; width: max-content; border-collapse: collapse; }
/* Кнопки */
.tableArrow { flex: 0 0 38px; width: 38px; height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;

    background: white;
    color: #222;

    font-size: 26px;
    line-height: 1;

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

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;}
.tableArrow:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }
.tableArrow:active { transform: scale(0.95); }
.tableArrow:disabled { opacity: 0.25; cursor: default; box-shadow: none; transform: none; }
/* На маленьком экране стрелки становятся компактнее */
@media (max-width: 700px) {
.variantsTableSlider {
    gap: 6px;
}

.tableArrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 22px;
}

.variant_table {
    min-width: 1050px;
}}

/* =========================================================
ИСТОРИЯ ВАРИАНТОВ — цветные ответы со ссылкой на банк заданий
========================================================= */

.variantTask {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.variantTask:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.variantTask .answerIcon {
    font-size: 15px;
    line-height: 1;
}

.variantTask.correct .answerIcon,
.variantTask.correct .userAnswerText {
    color: #1f9d55;
}

.variantTask.incorrect .answerIcon,
.variantTask.incorrect .userAnswerText {
    color: #cd305f;
}

.correctAnswerHint {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    opacity: 0.55;
}

.emptyTask {
    opacity: 0.3;
}
.calendarMonthStats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.calendarMonthCount {
    font-size: 13px;
    font-weight: 700;
}
.calendarMonthDifference {
    font-size: 13px;
    font-weight: 700;
}
.calendarMonthDifference.positive {
    color: #1f9d55;
}
.calendarMonthDifference.negative {
    color: #cd305f;
}
.calendarMonthDifference.neutral {
    color: var(--text);
}



/* =========================================================
   MISTAKES — MAIN
   ========================================================= */

.mistakesPage {
    min-height: 100vh;
}

.mistakesMain {
    margin-left: 220px;
    width: min(1050px, calc(100% - 220px));
    box-sizing: border-box;
    padding: 55px 55px 80px;
}


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

.mistakesHeader {
    max-width: 700px;
    margin-bottom: 35px;
}

.mistakesHeader .heading {
    margin-bottom: 12px;
    color: #880d4d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.mistakesHeader h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.mistakesSubtitle {
    max-width: 550px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.5;
}


/* ================= TASK LIST ================= */

.mistakesList {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ================= EMPTY STATE ================= */

.noMistakes {
    width: min(600px, 100%);
    margin: 40px auto 0;
    padding: 35px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 22px;

    background: #880d4d30;
    border: 1px solid rgba(136, 13, 77, 0.08);
}

.noMistakes .heading {
    margin-bottom: 12px;
}

.noMistakes .actualInformation {
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.55;
}

.noMistakesLinks {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.noMistakesLinks a {
    text-decoration: none;
}

.noMistakesMascot {
    display: block;
    width: 180px;
    max-width: 45%;
    margin: 25px auto 0;
}


/* ================= SIDEBAR ================= */

.mistakesSidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 220px;
    height: 100vh;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    padding: 30px 15px;

    background: var(--lightBox);
    border-right: 1px solid rgba(128, 128, 128, 0.10);

    z-index: 100;
}


/* LOGO */

.mistakesSidebar .sidebarLogo {
    display: block;

    margin: 5px 12px 35px;

    color: var(--text) !important;

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

    line-height: 1;
    letter-spacing: -0.05em;

    text-decoration: none;
}

.mistakesSidebar .sidebarLogo span {
    color: #880d4d;
}


/* NAV */

.mistakesSidebar .listThings {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* LINK */

.mistakesSidebar .listThings a {
    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none !important;

    opacity: 0.62;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}


/* ICON */

.mistakesSidebar .listThings a span {
    width: 20px;
    height: 20px;

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

    flex-shrink: 0;

    font-size: 16px;
}


/* HOVER */

.mistakesSidebar .listThings a:hover {
    color: #880d4d !important;
    background: #880d4d14;

    opacity: 1;
}


/* ACTIVE */

.mistakesSidebar .listThings a.active {
    color: #880d4d !important;
    background: #880d4d18;

    opacity: 1;
    font-weight: 700;
}

.mistakesSidebar .listThings a.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 20px;

    border-radius: 0 5px 5px 0;

    background: #880d4d;

    transform: translateY(-50%);
}


/* LOGOUT */

.mistakesSidebar .sidebarBottom {
    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid
        rgba(128, 128, 128, 0.08);
}

.mistakesSidebar .logoutLink {
    display: flex;
    align-items: center;

    gap: 8px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    text-decoration: none !important;

    opacity: 0.42;
}

.mistakesSidebar .logoutLink:hover {
    color: #880d4d !important;
    background: #880d4d14;

    opacity: 1;
}


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

.mistakesFooter {
    margin-left: 220px;
}


/* ================= DARK ================= */

[data-theme="dark"] .mistakesSidebar {
    background: var(--lightBox);
    border-right-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .mistakesSidebar .listThings a:hover {
    color: #fff !important;
    background: #880d4d30;
}

[data-theme="dark"] .mistakesSidebar .listThings a.active {
    color: #fff !important;
    background: #880d4d40;
}

[data-theme="dark"] .noMistakes {
    background: #880d4d30;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .mistakesSidebar {
        position: relative;

        width: 100%;
        height: auto;

        padding: 20px 15px;

        border-right: none;
        border-bottom:
            1px solid rgba(128, 128, 128, 0.10);
    }

    .mistakesMain {
        margin-left: 0;
        width: 100%;

        padding: 35px 20px 70px;
    }

    .mistakesFooter {
        margin-left: 0;
    }

}


@media (max-width: 520px) {

    .mistakesMain {
        padding: 28px 15px 60px;
    }

    .mistakesHeader h1 {
        font-size: 29px;
    }

    .mistakesSubtitle {
        font-size: 14px;
    }

    .noMistakes {
        padding: 25px 18px;
    }

    .noMistakesLinks {
        flex-direction: column;
    }

    .noMistakesLinks a {
        width: 100%;
        box-sizing: border-box;
    }

}



/* =========================================================
   VARIANTS — SINUS
   ========================================================= */

.variantsPage {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 70% 0%,
            rgba(136, 13, 77, 0.06),
            transparent 30%
        ),
        var(--background);

    color: var(--text);
}


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

.variantsMain {
    margin-left: 220px;

    width: min(
        1050px,
        calc(100% - 220px)
    );

    box-sizing: border-box;

    padding: 55px 55px 80px;
}


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

.variantsHeader {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.variantsEyebrow {
    margin: 0 0 8px;

    color: #62072d;

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

    letter-spacing: 0.18em;
}

.variantsHeader h1 {
    margin: 0;

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

    line-height: 1.1;

    letter-spacing: -0.04em;
}

.variantsSubtitle {
    max-width: 560px;

    margin: 12px 0 0;

    font-size: 16px;

    line-height: 1.5;

    opacity: 0.5;
}


/* =========================================================
   GENERATE BUTTON
   ========================================================= */

.variantsGenerateButton {
    display: inline-flex;

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

    gap: 8px;

    flex-shrink: 0;

    padding: 12px 16px;

    border: none;

    border-radius: 11px;

    background: #62072d;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

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

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

    box-shadow:
        0 8px 20px
        rgba(98, 7, 45, 0.22);
}


/* =========================================================
   ADMIN ADD
   ========================================================= */

.variantsAdminAdd {
    display: flex;

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

    gap: 7px;

    width: 100%;

    margin-bottom: 30px;

    padding: 13px;

    box-sizing: border-box;

    border:
        1px dashed
        rgba(98, 7, 45, 0.25);

    border-radius: 12px;

    background:
        rgba(98, 7, 45, 0.04);

    color: #62072d;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.variantsAdminAdd:hover {
    background:
        rgba(98, 7, 45, 0.08);

    transform: translateY(-1px);
}

.variantsAdminAdd span {
    font-size: 19px;
}


/* =========================================================
   YEAR SECTION
   ========================================================= */

.variantYear {
    margin-bottom: 35px;
}


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

.variantYearHeader {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.variantYearLabel {
    display: block;

    margin-bottom: 4px;

    color: #62072d;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.14em;
}

.variantYearHeader h2 {
    margin: 0;

    font-size: 21px;

    line-height: 1.2;

    letter-spacing: -0.03em;
}

.variantYearHeader p {
    margin: 0;

    font-size: 13px;

    opacity: 0.4;
}


/* =========================================================
   VARIANT LIST
   ========================================================= */

.variantList {
    display: grid;

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

    gap: 14px;
}


/* =========================================================
   VARIANT CARD
   ========================================================= */

.variantCard {
    position: relative;

    display: block;

    min-width: 0;

    box-sizing: border-box;

    padding: 22px;

    border-radius: 20px;

    background: #880d4d30;

    border:
        1px solid
        rgba(136, 13, 77, 0.12);

    color: var(--text);

    text-decoration: none;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.variantCard:hover {
    transform: translateY(-3px);

    background: #880d4d3d;

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.055);
}


/* =========================================================
   VARIANT CARD TOP
   ========================================================= */

.variantCardHeader {
    display: flex;

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

    gap: 12px;

    margin-bottom: 18px;
}

.variantTags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.variantTag {
    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    border-radius: 7px;

    background:
        rgba(98, 7, 45, 0.07);

    color: var(--text);

    font-size: 11px;

    font-weight: 700;

    opacity: 0.65;
}

.variantTag.year {
    color: #e00560;

    opacity: 1;
}


/* =========================================================
   VARIANT TITLE
   ========================================================= */

.variantTitle {
    margin: 0;

    max-width: calc(100% - 35px);

    font-size: 20px;

    line-height: 1.25;

    letter-spacing: -0.025em;
}


/* =========================================================
   VARIANT META
   ========================================================= */

.variantMeta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    font-size: 12px;

    opacity: 0.42;
}

.variantMeta span {
    display: inline-flex;

    align-items: center;

    gap: 4px;
}


/* =========================================================
   ARROW
   ========================================================= */

.variantArrow {
    position: absolute;

    right: 20px;
    bottom: 18px;

    font-size: 20px;

    opacity: 0.35;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.variantCard:hover .variantArrow {
    opacity: 1;

    transform:
        translateX(4px);
}


/* =========================================================
   ADMIN ACTIONS
   ========================================================= */

.variantAdminActions {
    display: flex;

    gap: 7px;

    margin-top: 18px;

    padding-top: 14px;

    border-top:
        1px solid
        rgba(128, 128, 128, 0.08);
}

.variantAdminActions button,
.variantAdminActions form {
    margin: 0;
}

.variantDeleteButton,
.variantEditButton {
    padding: 8px 11px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

.variantDeleteButton {
    border:
        1px solid
        rgba(150, 30, 50, 0.15);

    background:
        rgba(150, 30, 50, 0.06);

    color: #8d2438;
}

.variantEditButton {
    border:
        1px solid
        rgba(98, 7, 45, 0.15);

    background:
        rgba(98, 7, 45, 0.06);

    color: #62072d;
}


/* =========================================================
   EMPTY
   ========================================================= */

.variantsEmpty {
    padding: 55px 30px;

    text-align: center;

    border-radius: 20px;

    background: #880d4d30;

    border:
        1px solid
        rgba(136, 13, 77, 0.12);

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

.variantsEmpty h2 {
    margin: 0;

    font-size: 21px;

    letter-spacing: -0.03em;
}

.variantsEmpty p {
    margin: 10px auto 0;

    max-width: 420px;

    font-size: 14px;

    line-height: 1.6;

    opacity: 0.45;
}


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

.variantModal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

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

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.45);

    backdrop-filter:
        blur(8px);
}

.variantModalBox {
    position: relative;

    width: min(620px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    box-sizing: border-box;

    padding: 28px;

    border-radius: 24px;

    background: var(--lightBox);

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.18);
}


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

.variantModalHeader {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 24px;
}

.variantModalIcon {
    width: 44px;
    height: 44px;

    display: flex;

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

    flex-shrink: 0;

    border-radius: 13px;

    background:
        rgba(98, 7, 45, 0.08);

    color: #62072d;

    font-size: 20px;
}

.variantModalHeader h2 {
    margin: 0;

    font-size: 20px;

    letter-spacing: -0.03em;
}

.variantModalHeader p {
    margin: 4px 0 0;

    font-size: 13px;

    opacity: 0.45;
}


/* =========================================================
   CLOSE
   ========================================================= */

.variantModal .closeModal {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 9px;

    background:
        rgba(128, 128, 128, 0.08);

    color: var(--text);

    font-size: 20px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.variantModal .closeModal:hover {
    background:
        rgba(128, 128, 128, 0.14);

    transform: scale(1.04);
}


/* =========================================================
   FORM
   ========================================================= */

.variantModalForm {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.variantModalForm label {
    display: flex;

    flex-direction: column;

    gap: 7px;

    font-size: 13px;

    font-weight: 700;
}

.variantModalForm input,
.variantModalForm textarea,
.variantModalForm select {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border:
        1px solid
        rgba(128, 128, 128, 0.14);

    border-radius: 11px;

    background: var(--background);

    color: var(--text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.variantModalForm input:focus,
.variantModalForm textarea:focus,
.variantModalForm select:focus {
    border-color: #62072d;

    box-shadow:
        0 0 0 3px
        rgba(98, 7, 45, 0.08);
}

.variantModalForm textarea {
    min-height: 120px;

    resize: vertical;
}

.variantModalForm input::placeholder,
.variantModalForm textarea::placeholder {
    color: var(--text);

    opacity: 0.3;
}


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

.variantModalGrid {
    display: grid;

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

    gap: 12px;
}


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

.variantModalSubmit {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 11px;

    background: #62072d;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

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

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

    box-shadow:
        0 8px 20px
        rgba(98, 7, 45, 0.22);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.variantsSidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 220px;

    height: 100vh;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    padding: 30px 15px;

    background: var(--lightBox);

    border-right:
        1px solid
        rgba(128, 128, 128, 0.10);

    z-index: 100;
}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.variantsSidebar .sidebarLogo {
    display: block;

    margin: 5px 12px 35px;

    color: var(--text) !important;

    font-size: 22px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.05em;

    text-decoration: none !important;
}

.variantsSidebar .sidebarLogo span {
    color: #62072d;
}


/* =========================================================
   SIDEBAR NAV
   ========================================================= */

.variantsSidebar nav,
.variantsSidebar .listThings {
    display: flex;

    flex-direction: column;

    gap: 5px;

    width: 100%;

    margin: 0;

    padding: 0;
}

.variantsSidebar nav a,
.variantsSidebar .listThings a {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none !important;

    opacity: 0.62;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.variantsSidebar nav a:hover,
.variantsSidebar .listThings a:hover {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.07);

    opacity: 1;

    transform:
        translateX(2px);
}


/* =========================================================
   ACTIVE
   ========================================================= */

.variantsSidebar nav a.active,
.variantsSidebar .listThings a.active {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.09);

    opacity: 1;

    font-weight: 700;
}

.variantsSidebar nav a.active::before,
.variantsSidebar .listThings a.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 20px;

    border-radius:
        0 5px 5px 0;

    background: #62072d;

    transform:
        translateY(-50%);
}


/* =========================================================
   LOGOUT
   ========================================================= */

.variantsSidebar .sidebarBottom {
    margin-top: auto;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(128, 128, 128, 0.08);
}

.variantsSidebar .logoutLink {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    border-radius: 11px;

    color: var(--text) !important;

    font-size: 14px;

    text-decoration: none !important;

    opacity: 0.42;
}

.variantsSidebar .logoutLink:hover {
    color: #62072d !important;

    background:
        rgba(98, 7, 45, 0.07);

    opacity: 1;
}


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

.variantsFooter {
    margin-top: 45px;

    padding-bottom: 20px;
}


/* =========================================================
   DARK
   ========================================================= */

[data-theme="dark"] .variantCard,
[data-theme="dark"] .variantsEmpty {
    background: #880d4d30;

    border-color:
        rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .variantCard:hover {
    background: #880d4d45;
}

[data-theme="dark"] .variantsSidebar {
    background: var(--lightBox);

    border-right-color:
        rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .variantsSidebar nav a.active,
[data-theme="dark"] .variantsSidebar .listThings a.active {
    color: #ffffff !important;

    background:
        rgba(98, 7, 45, 0.28);
}

[data-theme="dark"] .variantsSidebar nav a:hover,
[data-theme="dark"] .variantsSidebar .listThings a:hover {
    color: #ffffff !important;

    background:
        rgba(98, 7, 45, 0.20);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .variantsSidebar {
        position: relative;

        width: 100%;
        height: auto;

        min-height: 64px;

        padding: 10px 15px;

        flex-direction: row;

        align-items: center;

        border-right: none;

        border-bottom:
            1px solid
            rgba(128, 128, 128, 0.10);

        overflow: hidden;
    }

    .variantsSidebar .sidebarLogo {
        margin: 0 18px 0 4px;

        flex-shrink: 0;

        font-size: 20px;
    }

    .variantsSidebar nav,
    .variantsSidebar .listThings {
        flex-direction: row;

        align-items: center;

        gap: 4px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .variantsSidebar nav::-webkit-scrollbar,
    .variantsSidebar .listThings::-webkit-scrollbar {
        display: none;
    }

    .variantsSidebar nav a,
    .variantsSidebar .listThings a {
        width: auto;

        min-width: max-content;

        padding: 9px 11px;

        white-space: nowrap;
    }

    .variantsSidebar nav a.active::before,
    .variantsSidebar .listThings a.active::before {
        display: none;
    }

    .variantsSidebar .sidebarBottom {
        display: none;
    }

    .variantsMain {
        margin-left: 0;

        width: 100%;

        padding: 35px 20px 70px;
    }

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


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .variantsMain {
        padding: 28px 15px 60px;
    }

    .variantsHeader {
        flex-direction: column;

        margin-bottom: 25px;
    }

    .variantsHeader h1 {
        font-size: 29px;
    }

    .variantsGenerateButton {
        width: 100%;
    }

    .variantsAdminAdd {
        margin-bottom: 22px;
    }

    .variantYear {
        margin-bottom: 28px;
    }

    .variantCard {
        padding: 18px;

        border-radius: 17px;
    }

    .variantTitle {
        font-size: 19px;
    }

    .variantCardHeader {
        align-items: flex-start;

        flex-direction: column;
    }

    .variantAdminActions {
        flex-direction: column;
    }

    .variantAdminActions button {
        width: 100%;
    }

    .variantModal {
        padding: 12px;
    }

    .variantModalBox {
        padding: 22px 18px;

        border-radius: 20px;
    }

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

.variantCardLink {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.variantCardLink:hover {
    transform: translateY(-3px);
    border-color: rgba(98, 7, 45, 0.3);
}

.variantCardLink:hover div:last-child {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* ================= OVERLAY ================= */
.variantResultOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.variantResultOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= MODAL ================= */
.variantResultModal {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, 90vh);
    overflow-y: auto;
    background: var(--background, #ffffff);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.20);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.variantResultOverlay.active .variantResultModal {
    transform: translateY(0) scale(1);
}

/* ================= CLOSE ================= */
.variantResultClose {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.10);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.variantResultClose:hover {
    transform: rotate(5deg) scale(1.05);
    background: rgba(128, 128, 128, 0.18);
}

/* ================= HEADER ================= */
.variantResultHeader {
    text-align: center;
    padding: 5px 35px 20px;
}

.variantResultHeader h2 {
    margin: 4px 0 8px;
    font-size: 30px;
}

.variantResultSubtitle {
    margin: 0;
    opacity: 0.65;
}

/* ================= SCORE ================= */
.variantResultScore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: rgba(128, 128, 128, 0.08);
}

.variantResultScoreNumber {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

.variantResultScoreText {
    margin-top: 8px;
    font-size: 16px;
    opacity: 0.6;
}

/* ================= RESULTS GRID ================= */
.variantResultsGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.variantResultItem {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    border-radius: 14px;
    background: rgba(128, 128, 128, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

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

.variantResultNumber {
    font-size: 14px;
    opacity: 0.55;
}

.variantResultIcon {
    font-size: 20px;
    font-weight: 700;
}

.variantResultAnswer {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.variantResultCorrect {
    border: 1px solid rgba(70, 180, 100, 0.25);
    background: rgba(70, 180, 100, 0.08);
}

.variantResultIncorrect {
    border: 1px solid rgba(220, 80, 80, 0.25);
    background: rgba(220, 80, 80, 0.08);
}

/* ================= FOOTER ================= */
.variantResultFooter {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
    .variantResultOverlay {
        padding: 12px;
        align-items: flex-end;
    }

    .variantResultModal {
        width: 100%;
        max-height: 88vh;
        padding: 26px 18px 20px;
        border-radius: 24px;
    }

    .variantResultHeader {
        padding-left: 25px;
        padding-right: 25px;
    }

    .variantResultHeader h2 {
        font-size: 25px;
    }

    .variantResultScore {
        padding: 20px;
    }

    .variantResultScoreNumber {
        font-size: 40px;
    }

    .variantResultsGrid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .variantResultItem {
        padding: 10px 4px;
    }
}
/* =========================================================
КОНСТРУКТОР ВАРИАНТА — поиск и список выбранных заданий
========================================================= */

.taskSearchResults {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid rgba(120, 120, 120, 0.16);
    border-radius: 14px;
}

.taskSearchResults:empty {
    display: none;
}

.taskSearchResultItem,
.selectedTaskItem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(120, 120, 120, 0.12);
}

.taskSearchResultItem:last-child,
.selectedTaskItem:last-child {
    border-bottom: none;
}

.selectedTaskSnippet {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.65;
    max-width: 420px;
}

.addTaskBtn {
    flex-shrink: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 100px;
    background: #cd305f;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.addTaskBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.addTaskBtn:disabled {
    background: rgba(120, 120, 120, 0.25);
    cursor: default;
}

.removeTaskBtn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(205, 48, 95, 0.1);
    color: #cd305f;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.removeTaskBtn:hover {
    background: rgba(205, 48, 95, 0.2);
}

.selectedTasksBlock {
    margin-top: 6px;
}

.selectedTasksTitle {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.selectedTasksList {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid rgba(120, 120, 120, 0.16);
    border-radius: 14px;
}

.selectedTasksList:has(.selectedTaskItem) #selectedTasksEmpty {
    display: none;
}
/* Separate controls: difficulty, generation and administration. */
.variantsPage .tasksHeader{display:flex;align-items:flex-start;flex-wrap:wrap;gap:28px}
.variantsPage .tasksHeader>div:first-child{flex:1 1 320px}
.variantsPage .variantActions{display:flex;flex:1 1 440px;align-items:flex-end;gap:16px;flex-wrap:wrap;max-width:760px}
.variantsPage .variantGenerateForm{display:grid;gap:14px;flex:1 1 300px;min-width:0;margin:0}
.variantsPage .variantGenerateForm label{font-size:16px;line-height:1.4}
.variantsPage .variantGenerateForm select{box-sizing:border-box;display:block;width:100%;min-height:50px;padding:12px 40px 12px 16px;border-radius:14px;font:inherit;color:var(--text-main);background:transparent;border:1px solid #bb497366}
.variantsPage .variantActions button{box-sizing:border-box;min-height:52px;height:auto;margin:0;padding:16px 20px;font-size:16px;line-height:1.4;white-space:normal;border-radius:14px;align-self:end}
.variantsPage .variantActions>.taskButton{flex:0 1 220px}
@media(max-width:700px){.variantsPage .variantActions{width:100%;max-width:none;flex-basis:100%;gap:14px}.variantsPage .variantGenerateForm{flex-basis:100%}.variantsPage .variantActions>.taskButton{flex-basis:100%;width:100%}.variantsPage .variantActions button{width:100%}}

/* A single, measured action column instead of uneven floating controls. */
.variantsPage .variantActions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:460px;flex:0 1 460px;gap:12px}
.variantsPage .variantGenerateForm{width:100%;gap:12px}
.variantsPage .variantActions button,.variantsPage .variantActions .dropdownTrigger,.variantsPage .variantActions select{width:100%;min-height:52px;box-sizing:border-box}
.variantsPage .variantActions>.taskButton{width:100%;background:transparent;color:var(--text-accent);border:1px solid var(--text-accent)}
@media(max-width:700px){.variantsPage .variantActions{max-width:none;flex-basis:100%}}

/* A warm exam rehearsal, with a clear starting point. */
.variantsPage .variantsHero{position:relative;padding:30px;border:1px solid var(--card-border,#efbad2);border-radius:28px;background:radial-gradient(ellipse at 10% 100%,color-mix(in srgb,var(--text-accent,#d12c70) 17%,transparent),transparent 65%),color-mix(in srgb,var(--bg-solid,#fff6fb) 55%,transparent);gap:24px;align-items:center;overflow:hidden}
.variantsPage .variantsHero h1{font-size:clamp(28px,3.4vw,46px);line-height:1.4;margin:14px 0}
.variantsPage .variantsHero .tasksEyebrow{font-size:10px;line-height:1.8;letter-spacing:.1em;color:var(--text-accent,#d12c70)}
.variantsPage .variantsHero .tasksSubtitle{font-size:13px;line-height:1.9;max-width:460px}
.variantHeroBadges{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.variantHeroBadges span{font-size:10px;padding:9px 12px;border:1px solid var(--card-border,#efbad2);border-radius:30px;background:color-mix(in srgb,var(--text-accent,#d12c70) 7%,transparent);line-height:1.6}
.variantHeroSignature{display:flex;gap:12px;align-items:center}.variantHeroSignature img{width:100px;height:110px;object-fit:contain;filter:drop-shadow(0 8px 15px #0001)}.variantHeroSignature p{font-size:11px;line-height:1.9;margin:0;opacity:.8}
.variantsPage .variantsHero .variantActions{flex:0 1 340px;max-width:360px;min-width:0;padding:22px;border:1px solid var(--card-border,#efbad2);border-radius:22px;background:var(--bg-solid,#fff6fb);box-sizing:border-box;box-shadow:0 12px 30px #0000000a}
.variantStartTitle{font-size:13px;line-height:1.7;margin:0 0 8px}.variantsPage .variantsHero .variantGenerateForm label{font-size:11px}.variantsPage .variantsHero .variantActions button{font-size:12px}
.variantLookupCard{margin-bottom:32px}.variantsPage .variantLibraryCard{border-radius:22px;transition:transform .18s,border-color .18s}.variantsPage .variantLibraryCard:hover{transform:translateY(-3px);border-color:var(--text-accent,#d12c70)}.variantsPage .variantLibraryCard h3{color:var(--text-main)!important;line-height:1.7;font-size:15px!important}
@media(max-width:750px){.variantsPage .variantsHero{padding:20px}.variantsPage .variantsHero .variantActions{flex-basis:100%;max-width:none;width:100%;padding:18px}.variantHeroSignature img{height:85px;width:80px}}
@media(prefers-reduced-motion:reduce){.variantsPage .variantLibraryCard{transition:none}}

.variantHeroSignature img{margin:0;flex-shrink:0}.variantHeroSignature{justify-content:flex-start}

/* Use the same translucent panels as the task bank. */
html body.variantsPage .variantsHero,html body.variantsPage .variantsHero .variantActions{background:var(--task-panel-bg);border-color:var(--task-panel-border);box-shadow:none;backdrop-filter:none}
html body.variantsPage .variantsHero{border-radius:24px}html body.variantsPage .variantsHero .variantActions{border-radius:18px}



/* =====================================================
   SINUS · ОБО МНЕ (NEON PINK EDITION)
   Все селекторы скоуплены под .aboutMePage, чтобы не
   пересекаться с классами страницы .aboutProjectPage
   (about.html) — раньше обе страницы использовали
   одинаковый body class "aboutPage" и почти идентичные
   имена внутренних классов (heroVisual, mathCard,
   floatingBadge и т.д.), а этот файл вообще не был
   проскоуплен ни под каким классом.
===================================================== */

.aboutMePage {
  --accent-purple: #ff007f; /* Ярко-розовый неон */
  --accent-cyan: #ff2a85;   /* Неоново-малиновый */
  --accent-blue: #ff66b2;   /* Нежно-розовый неон */
  --neon-glow: rgba(255, 0, 127, 0.4);
  --glass-bg: rgba(255, 0, 127, 0.03);
  --glass-border: rgba(255, 0, 127, 0.15);
  --glass-hover: rgba(255, 0, 127, 0.08);

  background-color: #0d060a;
  color: #f0f0f5;
  overflow-x: hidden;
  position: relative;
}

/* Glassmorphism Utility */
.aboutMePage .glassCard {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 0, 127, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.aboutMePage .glassCard:hover {
  border-color: rgba(255, 0, 127, 0.4);
  background: var(--glass-hover);
  box-shadow: 0 8px 32px 0 rgba(255, 0, 127, 0.2), inset 0 0 20px rgba(255, 0, 127, 0.1);
}

.aboutMePage .gradientText {
  background: linear-gradient(135deg, #ff66b2, #ff007f, #ff0055);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.3));
}

/* =====================================================
   BACKGROUND ANIMATED ORBS
===================================================== */
.aboutMePage .aboutBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aboutMePage .glowOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.4;
}

.aboutMePage .orb1 {
  width: 500px;
  height: 500px;
  background: #ff007f;
  top: -100px;
  right: -50px;
}

.aboutMePage .orb2 {
  width: 600px;
  height: 600px;
  background: #ff0055;
  bottom: -150px;
  left: -100px;
}

.aboutMePage .bgMath {
  position: absolute;
  color: rgba(255, 0, 127, 0.05);
  font-weight: bold;
  user-select: none;
}
.aboutMePage .bgMath1 { top: 15%; left: 10%; font-size: 3rem; }
.aboutMePage .bgMath2 { top: 40%; right: 12%; font-size: 4rem; }
.aboutMePage .bgMath3 { bottom: 25%; left: 15%; font-size: 3.5rem; }
.aboutMePage .bgMath4 { top: 70%; right: 25%; font-size: 2.5rem; }

/* =====================================================
   HERO SECTION
===================================================== */
.aboutMePage .aboutHero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.aboutMePage .heroTopBar {
  margin-bottom: 60px;
}

.aboutMePage .aboutLogo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
}
.aboutMePage .aboutLogo span { 
  color: #ff007f;
  text-shadow: 0 0 10px #ff007f;
}

.aboutMePage .heroMainAligned {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Visual Side */
.aboutMePage .heroVisual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Даёт «плавающим» карточкам предсказуемую систему координат
     и не даёт им вылезать шире собственного блока на мобильных. */
  max-width: 100%;
  padding: 0 clamp(20px, 6vw, 40px);
}

.aboutMePage .heroMascotGlow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ff007f 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.7;
}

.aboutMePage .imageFrame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 127, 0.3);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.2);
}

.aboutMePage .heroMascot {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.7));
  transition: transform 0.5s ease;
}

.aboutMePage .heroVisual:hover .heroMascot {
  transform: scale(1.03);
}

/* =====================================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ (mathCard + floatingBadge)
===================================================== */
@keyframes aboutMeFloatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.aboutMePage .mathCard {
  position: absolute;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  font-size: 0.9rem;
  animation: aboutMeFloatBob 4.5s ease-in-out infinite;
  pointer-events: none;
}
.aboutMePage .cardIcon { font-size: 1.2rem; color: #ff3399; }

.aboutMePage .cardRoot {
  top: 10%;
  left: clamp(-10px, -2vw, 0px);
  animation-delay: 0s;
}
.aboutMePage .cardPi {
  bottom: 15%;
  right: clamp(-10px, -2vw, 0px);
  animation-delay: 1.2s;
}
.aboutMePage .cardSum {
  top: 50%;
  left: clamp(-20px, -4vw, 0px);
  animation-delay: 2.4s;
}

/* Copy Side */
.aboutMePage .heroKicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #ff3399;
  font-weight: 700;
  margin-bottom: 16px;
}
.aboutMePage .kickerDot {
  width: 8px;
  height: 8px;
  background: #ff007f;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff007f;
}

.aboutMePage .heroTitle {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
}

.aboutMePage .heroDescription {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #b3a0ac;
  margin-bottom: 40px;
}

.aboutMePage .heroActions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.aboutMePage .heroPrimaryButton {
  background: linear-gradient(135deg, #ff007f, #ff3399);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.5);
  transition: all 0.3s ease;
  margin-top: 10px; /* Чтобы кнопка не прыгала при наведении */
}
.aboutMePage .heroPrimaryButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(255, 0, 127, 0.8);
}

.aboutMePage .heroSecondaryButton {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.aboutMePage .heroSecondaryButton:hover { 
  opacity: 1; 
  color: #ff66b2;
}

/* =====================================================
   PROCESS & STORY SECTION
===================================================== */
.aboutMePage .howSection {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 24px;
}

.aboutMePage .sectionEyebrow {
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: #ff007f;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
}

.aboutMePage .howHeading h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 48px;
}

.aboutMePage .processGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.aboutMePage .processCard {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.aboutMePage .stepHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.aboutMePage .processCircle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 0, 127, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ff3399;
  border: 1px solid rgba(255, 0, 127, 0.3);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.aboutMePage .stepBadge {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #a3708a;
  font-weight: 700;
}

.aboutMePage .processCard h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.aboutMePage .processCard p {
  color: #a08c97;
  font-size: 0.95rem;
  line-height: 1.5;
}

.aboutMePage .accentCard {
  border-color: rgba(255, 0, 127, 0.5);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.15);
}

/* =====================================================
   FOR WHO MODERN SECTION
===================================================== */
.aboutMePage .forWhoModern {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.aboutMePage .forWhoVisual {
  position: relative;
  /* Аналогично heroVisual: даём место под floatingBadge,
     не позволяя им упереться в край экрана. */
  padding: 0 clamp(16px, 5vw, 32px);
}

.aboutMePage .founderPhotoWrapper {
  padding: 12px;
  position: relative;
  border-radius: 32px;
}
.aboutMePage .founderPhotoWrapper img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.aboutMePage .featureList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.aboutMePage .featureItem {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.aboutMePage .featureNum {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff007f;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
}

/* Floating badges for Who section */
.aboutMePage .floatingBadge {
  position: absolute;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  animation: aboutMeFloatBob 5s ease-in-out infinite;
  pointer-events: none;
}
.aboutMePage .badgeOne {
  top: 20px;
  right: clamp(-20px, -3vw, 0px);
  animation-delay: 0.4s;
}
.aboutMePage .badgeTwo {
  bottom: 40px;
  left: clamp(-20px, -3vw, 0px);
  animation-delay: 1.6s;
}
.aboutMePage .badgeThree {
  bottom: -10px;
  right: clamp(10px, 2vw, 20px);
  animation-delay: 2.8s;
}

/* =====================================================
   STATS & FINAL CTA
===================================================== */
.aboutMePage .statsSection {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.aboutMePage .statNumber {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #ff66b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.3));
}

.aboutMePage .statLabel {
  color: #a08c97;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.aboutMePage .finalCta {
  max-width: 1200px;
  margin: 100px auto 120px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-color: rgba(255, 0, 127, 0.3);
}

.aboutMePage .ctaGlow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.aboutMePage .ctaContent h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.aboutMePage .ctaContent p {
  color: #b3a0ac;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.aboutMePage .finalMascot {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 220px;
  opacity: 0.8;
  pointer-events: none;
}

/* =====================================================
   CONTACTS MODAL
===================================================== */
.aboutMePage .aboutContacts {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aboutMePage .contactsOverlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 6, 10, 0.85);
  backdrop-filter: blur(8px);
}

.aboutMePage .contactsModalContent {
  position: relative;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  z-index: 2;
  border-color: rgba(255, 0, 127, 0.4);
}

.aboutMePage .contactsClose {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.aboutMePage .contactRows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.aboutMePage .contactRow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 0, 127, 0.05);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 0, 127, 0.2);
  transition: all 0.3s ease;
}
.aboutMePage .contactRow:hover {
  background: rgba(255, 0, 127, 0.15);
  border-color: rgba(255, 0, 127, 0.5);
}

.aboutMePage .contactIcon {
  font-size: 1.5rem;
  color: #ff3399;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 992px) {
  .aboutMePage .heroMainAligned, .aboutMePage .forWhoModern {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .aboutMePage .heroTitle { font-size: 2.5rem; }
  .aboutMePage .heroActions { justify-content: center; }
  .aboutMePage .finalMascot { display: none; }
}

@media (max-width: 560px) {
  .aboutMePage .mathCard,
  .aboutMePage .floatingBadge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aboutMePage .mathCard,
  .aboutMePage .floatingBadge {
    animation: none;
  }
}


/* =========================================================
   FAQ — SINUS
========================================================= */
.faqPage {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 0%, rgba(205, 48, 95, 0.07), transparent 32%),
    var(--background);
  color: var(--text);
}

/* =========================================================
   MAIN
========================================================= */
.faqMain {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 15px 0 90px;
}

/* =========================================================
   HERO
========================================================= */
.faqHero {
  margin-bottom: 40px;
}

.faqHero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.faqHeroSubtitle {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.55;
}

.faqInlineLink {
  padding: 0;
  border: none;
  background: none;
  color: #cd305f;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.faqInlineLink:hover {
  opacity: 0.8;
}

/* =========================================================
   GROUPS
========================================================= */
.faqGroup {
  margin-bottom: 34px;
}

.faqGroupTitle {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cd305f;
  opacity: 0.85;
}

.faqList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   ITEM
========================================================= */
.faqItem {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(128, 128, 128, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faqItem:hover {
  border-color: rgba(205, 48, 95, 0.2);
}

.faqItem summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
}

.faqItem summary::-webkit-details-marker {
  display: none;
}

.faqItem summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(205, 48, 95, 0.08);
  color: #cd305f;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faqItem[open] summary::after {
  content: "–";
}

.faqAnswer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.10);
}

.faqAnswer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.65;
}

.faqAnswer p + p {
  margin-top: 10px;
}

[data-theme="dark"] .faqItem {
  background: #880d4d30;
  border-color: rgba(134, 17, 83, 0.336);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   CTA
========================================================= */
.faqCta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 45px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(205, 48, 95, 0.09), transparent 65%);
  border: 1px solid rgba(205, 48, 95, 0.08);
}

.faqCta h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.faqCta p {
  margin: 0;
  font-size: 15px;
  opacity: 0.55;
}

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

.faqCtaButton {
  width: auto;
  padding: 12px 22px;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 700px) {
  .faqMain {
    width: calc(100% - 30px);
    padding-top: 10px;
  }

  .faqCta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .faqCtaActions {
    width: 100%;
  }

  .faqCtaButton {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .faqHero h1 {
    font-size: 25px;
  }

  .faqItem {
    padding: 15px 16px;
  }
}


/* Адаптивность (подключаем последним) */

/* Mobile layout is defined in mobile.css, loaded after page styles. */


/* Shared reading rhythm and progressive disclosure. */

/* A quieter shared canvas; preserve accent, font and scale preferences. */
html[data-theme="light"] {--bg-main-1:rgba(244,114,182,.05);--bg-main-2:#fff9fc;--bg-main-3:#faf8fc;--bg-pattern-opacity:.38}
html[data-theme="dark"] {--text-secondary:#bda5b3;--bg-pattern-opacity:.045}
html body :is(.tasksMain,.statisticsMain,.profileMain,.learningMain){min-width:0}
html body :is(.tasksHeader,.profileHeader,.statisticsHeader,.trainingHeader){gap:20px;align-items:flex-start}
html body :is(.tasksHeader,.profileHeader,.statisticsHeader,.trainingHeader) h1{line-height:1.35;letter-spacing:-.025em;text-wrap:balance}
html body :is(.tasksSubtitle,.profileSubtitle,.statisticsSubtitle,.trainingHeader p){max-width:60ch;line-height:1.85}
html body :is(.tasksEyebrow,.profileEyebrow,.filterEyebrow){letter-spacing:.1em;font-size:10px;line-height:1.7}
html body :is(.taskCard,.tasksFilters,.statisticsCard,.calendarSection,.variantsSection,.profileSettingCard,.profilePersonalPanel,.trainingStart,.trainingCatalogue,.theoryCatalogBanner){border-color:var(--card-border);box-shadow:0 5px 24px rgba(0,0,0,.025)}
html body .taskText{line-height:1.85}
html body :is(.taskTags,.answerRow){gap:10px;flex-wrap:wrap}
html body .taskTags .taskTag{font-size:10px;line-height:1.6;padding:5px 9px;border-radius:8px}
html body :is(.solutionText,.theoryContent){line-height:1.9}
html body :is(.solutionDetails,.theoryDetails) summary{line-height:1.7;padding-block:10px;cursor:pointer}
html body :is(.listThings a){line-height:1.65;border-radius:12px;transition:background-color .16s,color .16s}
html body .listThings a.active{box-shadow:none}
html body :is(.taskInput,.profileInput){border-radius:12px;box-shadow:none}
html body :is(.taskInput,.profileInput):focus-visible{outline:2px solid var(--text-accent);outline-offset:3px}
html body .bankAdvancedFilters{grid-column:1/-1;grid-row:2;border-top:1px solid var(--card-border);padding-top:14px;min-width:0}
.bankAdvancedFilters>summary,.quietDisclosure>summary{cursor:pointer;line-height:1.7;list-style:none}
.bankAdvancedFilters>summary::-webkit-details-marker,.quietDisclosure>summary::-webkit-details-marker{display:none}
.bankAdvancedFilters>summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;padding:6px 0}
.bankAdvancedFilters>summary::before{content:'＋';color:var(--text-accent)}
.bankAdvancedFilters[open]>summary::before{content:'−'}
.bankAdvancedFilters>summary span{font-size:10px;color:var(--text-secondary)}
.bankAdvancedGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-top:16px}
html body .bankAdvancedGrid .filterBlock{min-width:0}
html body .bankAdvancedGrid .taskInput{width:100%}
html body #tasksFilterForm{grid-template-columns:minmax(0,1fr) auto;gap:16px}
html body #tasksFilterForm>.filterBlock:first-child .taskInput{width:100%}
html body .quietDisclosure:not([open])>.profilePersonalHeader{margin-bottom:0}
html body .quietDisclosure>.profilePersonalHeader h2{font-size:18px;margin-bottom:6px}
html body .quietDisclosure>.profilePersonalHeader p{font-size:11px}
html body .quietDisclosure[open]>.profilePersonalHeader{margin-bottom:22px}
html body .profileRecoveryCard>summary{font-size:15px;display:flex;justify-content:space-between;gap:12px}
.profileRecoveryCard>summary::after{content:'＋';color:var(--text-accent)}
.profileRecoveryCard[open]>summary::after{content:'−'}
html body .profileRecoveryCard p{font-size:12px;line-height:1.85;max-width:65ch}
html body .profileRecoveryCard form{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
html body .profilePersonalPanel{background:var(--card-bg);border-radius:18px}
html body .profilePersonalMark{background:transparent;box-shadow:none;border:0}
html body .statisticsOverview{gap:12px;margin-bottom:28px}
html body .statisticsGrid{gap:20px;margin-bottom:28px}
html body :is(.calendarSection,.variantsSection){margin-top:28px}
html body .statisticCard{background:var(--card-bg);box-shadow:none}
html body .statisticIcon{font-size:22px;opacity:.7}
html body :is(.statisticsCardHeader,.calendarHeader){gap:16px;flex-wrap:wrap}
html body .variantsTableWrapper{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html body :is(.theoryCatalogBanner,#theoryCatalog){border-radius:18px}
html body .theoryNumberGroup{border-radius:14px;background:transparent}
html body .theoryTopicChip{border-radius:10px;font-size:12px;padding:9px 12px}
html body :is(.faqItem,.featureCard){box-shadow:none}
html body .siteSparkles span:nth-child(n+5){display:none}
html body .siteSparkles span{opacity:.08;filter:none}
@media(min-width:1000px){
 html body :is(.tasksMain,.statisticsMain,.profileMain){padding-top:40px}
 html body :is(.tasksHeader,.profileHeader,.statisticsHeader,.trainingHeader) h1{font-size:32px}
 html body .listThings a{padding-block:11px;font-size:12px}
 html body .taskCard{margin-bottom:20px}
 html body :is(.statisticsCard,.calendarSection,.variantsSection){padding:24px;border-radius:18px}
 html body .theoryCatalogHeader{padding:24px 24px 12px}
 html body .theoryCatalogSearch{padding:8px 24px 20px}
 html body .theoryCatalogGroups{padding:0 24px 20px}
 html body .theoryNumberGroup{padding:18px}
 html body .profileSettingCard{padding:20px;gap:20px}
}
@media(max-width:760px){
 html body #tasksFilterForm{grid-template-columns:1fr}
 html body .bankAdvancedFilters{grid-row:auto}
 .bankAdvancedGrid{grid-template-columns:1fr}
 .bankAdvancedFilters>summary{min-height:44px}
 html body .quietDisclosure>summary{min-height:44px}
 html body :is(.statisticsHeader,.trainingHeader) h1{font-size:24px}
 html body .theoryTopicChip{min-height:44px;font-size:12px}
 html body .siteSparkles span:nth-child(n+3){display:none}
}
@media(prefers-reduced-motion:reduce){html body .listThings a{transition:none}}

html body .profileAppearance{grid-column:1/-1;min-width:0;padding:22px;border:1px solid var(--card-border);border-radius:18px;background:var(--card-bg)}
html body .profileAppearance>.sectionHeading{display:flex;justify-content:space-between;align-items:center;margin:0;gap:16px}
html body .profileAppearance>.sectionHeading h2{font-size:18px;margin:0 0 6px;line-height:1.6}
html body .profileAppearance>.sectionHeading p{font-size:11px;line-height:1.8;margin:0;color:var(--text-secondary)}
html body .profileAppearance[open]>.sectionHeading{margin-bottom:22px}
html body .profileAppearance>.profileSettingCard{margin-bottom:14px}
html body .quietDisclosure[open]>.profilePersonalHeader .profilePersonalMark{transform:rotate(45deg)}
html body .legalPage{max-width:800px;line-height:1.9}
html body .legalPage :is(h2,h3){margin-top:32px;line-height:1.55}
@media(max-width:760px){html body .homeNav{display:flex;flex-wrap:wrap;max-width:100%;min-width:0;gap:10px 16px}html body .homeNav a{white-space:normal;overflow-wrap:anywhere;line-height:1.7}}


