@font-face {
    font-family: "Arial Black";
    src: url('/static/ai/fonts/arial_black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url('/static/ai/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro';
    src: url('/static/ai/fonts/SF-Pro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #151822;;
    background-image: url('/static/ai/bg-image-1.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    body {
        background-image: url('/static/ai/bg-image-mobile-1.png');
    }
    body::before {
        background-image: url('/static/ai/bg-image-mobile-2.png');
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/static/ai/bg-image-2.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: 0;
}

.navbar {
    background: #151822;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar .navbar-brand a {
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    color: #F5F5F5;
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.navbar .navbar-brand a:hover {
    color: #E0E0E0;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-menu a:not(.purchase-btn) {
    text-decoration: none;
    transition: color 0.3s ease;
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.navbar-menu a:not(.purchase-btn):hover {
    color: #E0E0E0;
}

.navbar-menu a.purchase-btn {
    font-family: Arial, sans-serif;
    display: inline-block;
    padding: 10px 32px;
    color: #000000;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    line-height: 21px;
    transition: transform 0.1s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(146, 188, 250, 0.3);
    margin-left: 10px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #BDE3FB 0%, #92BCFA 100%);
}

.navbar-menu a.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 188, 250, 0.4);
    opacity: 0.9;
    color: #000000;
    text-decoration: none !important;
}

.navbar-menu a.purchase-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(146, 188, 250, 0.2);
    opacity: 0.8;
}

.navbar-toggle {
    display: none;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.navbar-toggle:active, .navbar-toggle:focus {
    background: none;
    color: #E0E0E0;
}

@media (max-width: 768px) {
    .navbar-menu a:not(.purchase-btn) {
        font-family: "SF Pro", sans-serif;
        font-size: 24px;
        padding-top: 1rem;
    }

    .navbar-menu a:not(.purchase-btn):hover {
        color: #E0E0E0;
    }

    .navbar-menu a.purchase-btn {
        font-family: "SF Pro", sans-serif;
        font-size: 24px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .navbar-menu a.purchase-btn {
        margin-left: 0;
        max-width: 50%;
    }
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1024px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    z-index: 1;
    margin: 20px 0;
    border-radius: 32px;
    border: 4px solid rgba(0, 144, 255, 0.20);
    background: #151822;
}

#ai-form-container {
        background: none; /* Убираем фон */
        border-radius: 0; /* Убираем скругление */
        box-shadow: none; /* Убираем тень */
        border: none; /* Убираем границу */
        text-align: center;
        position: sticky;
        top: 20px; /* Отступ от верха при прокрутке */
        z-index: 10;
        padding: 10px;
    }

.compact-container {
    max-width: 600px;
    padding: 50px;
}

@media (max-width: 768px) {
    #ai-form-container {
        width: 100%;
        max-width: none; /* Убираем ограничение max-width */
        margin: 0; /* Убираем внешние отступы */
        padding: 0; /* Уменьшаем внутренние отступы для мобильных */
        box-sizing: border-box; /* Учитываем padding в ширине */
    }

    /* Убираем влияние content-wrapper на ширину */
    .content-wrapper {
        padding: 0; /* Убираем возможные отступы */
        width: 100%; /* Убеждаемся, что родитель тоже на всю ширину */
    }

    .compact-container {
        max-width: 600px;
        padding: 40px;
    }

}

.login-container {
    width: 542px;
    height: auto;
    flex-shrink: 0;
    border-radius: 32px;
    border: 4px solid rgba(0, 144, 255, 0.20);
    background: #151822;
    display: flex; /* Включаем Flexbox */
    flex-direction: column; /* Располагаем содержимое вертикально */
    justify-content: center; /* Центрируем по вертикали */
    align-items: center; /* Центрируем по горизонтали */
    color: #F5F5F5;
}

h1 {
    color: #F5F5F5;
    text-align: center;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #000;
    font-family: "Arial Black", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
    font-size: 56px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
}

h2 {
    color: #F5F5F5;
    text-align: center;
    font-family: "Arial Black", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.left-text {
    text-align: left;
    padding-left: 0;
}

.info-text {
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 125% */
}

.info-button {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
}

.contacts-separator {
    padding-bottom: 45px;
    padding-top: 10px;
}

.input-form {
    display: flex;
    flex-direction: column;
}

/* Добавляем более специфичный стиль для формы с кнопкой */
form.input-form button {
    margin-top: 60px; /* Явно задаём расстояние сверху для кнопки */
}

.input-form textarea,
.input-form input {
    width: 70%;
    height: 70px;
    padding-left: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 16px;
    border-radius: 32px;
    border: 3px solid rgba(0, 144, 255, 0.20);
    background: #151822;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #B1B1B1;
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    resize: none;
    min-height: 40px;
    overflow: hidden;
    box-sizing: border-box;
}


.input-form textarea:focus,
.input-form input:focus {
    box-shadow: 0 0 5px rgba(0, 221, 255, 0.5);
    color: #F5F5F5;
}

/* Отдельный стиль для формы логина */
.login-form {
    display: flex;
    flex-direction: column;
}

.login-form textarea,
.login-form input {
    width: 100%;
    height: 56px;
    padding: 12px 16px;
    border-radius: 32px;
    border: 3px solid rgba(0, 144, 255, 0.20);
    background: #151822;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #B1B1B1;
    font-family: "Arial", "Helvetica Neue", "Helvetica", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    resize: none;
    min-height: 40px;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.login-container h2 {
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .login-form {
       width: 100%;
    }
    .login-form textarea,
    .login-form input {
        width: 100%;
    }
}

.login-form textarea:focus,
.login-form input:focus {
    box-shadow: 0 0 5px rgba(0, 221, 255, 0.5);
    color: #F5F5F5;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-left: 1rem;
}

.follow-up-container {
    margin-top: 1.5rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in;
    border-radius: 40px;
    border: 4px solid #19273E;
    background: #19273E;
}

@media (max-width: 768px) {
    .follow-up-container {
        background: none; /* Убираем фон */
        border: none; /* Убираем границы */
        box-shadow: none; /* Убираем тень */
        padding: 0; /* Убираем внутренние отступы */
        margin-top: 0; /* Оставляем небольшой отступ сверху */
        border-radius: 0; /* Убираем скругление */
        width: 100%; /* Убеждаемся, что занимает всю ширину */
    }
}

.follow-up-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.textarea-wrapper {
    position: relative; /* Относительное позиционирование для дочерних элементов */
    width: 100%; /* Занимает всю ширину .follow-up-container */
}

.follow-up-container .input-form textarea {
    width: calc(100% - 80px);
    border: 4px solid rgba(0, 144, 255, 0.20);
    background: #151822;
    color: #B1B1B1;
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 60px;
    padding-left: 40px;
    margin-top: 20px;
}

.follow-up-container .arrow-btn {
    position: absolute;
    right: 56px; /* Отступ от правой границы */
    bottom: 14px; /* Отступ от нижнего края */
    width: 40px; /* Фиксируем размер кнопки */
    height: 40px;
    padding: 0; /* Убираем внутренние отступы, чтобы SVG занимал всё пространство */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.3s ease;
    background: #21232C;
}

@media (max-width: 768px) {
    .input-form textarea,
    .input-form input {
        width: calc(100% - 20px);
    }

    .follow-up-container .input-form textarea {
        width: 100%;
        border: 2px solid rgba(0, 144, 255, 0.20);
        padding-top: 20px;
        padding-bottom: 20px;
        padding-right: 60px;
        padding-left: 20px;
        margin-top: 20px;
    }

    .follow-up-container .arrow-btn {
        right: 16px; /* Отступ от правой границы */
    }
}

/* Стили для SVG внутри кнопки */
.follow-up-container .arrow-btn svg {
    width: 24px; /* Размер иконки */
    height: 24px;
}

button {
    width: 318px;
    height: 56px;
    flex-shrink: 0;
    padding: 10px 32px;
    border-radius: 24px;
    background: linear-gradient(180deg, #BDE3FB 0%, #92BCFA 100%);
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.3s ease;
    color: #000;
    font-family: "Arial Black", "Arial", "Helvetica Neue", "Helvetica", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

@media (max-width: 768px) {
    button {
        width: 237px;
        height: 56px;
        flex-shrink: 0;
    }
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98);
    opacity: 0.8;
}

button:disabled {
    background: linear-gradient(180deg, rgba(189, 227, 251, 0.50) 0%, rgba(146, 188, 250, 0.50) 100%);
    cursor: not-allowed;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
}

.clear-btn {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
}


.clear-btn:hover {
    background: #c0392b;
}

.question-box {
    width: calc(100% - 80px); /* 100px = 50px слева + 50px справа */
    margin: 30px 40px 40px 40px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeIn 0.3s ease-in;
    color: #FFFFFFE6;
    border-radius: 32px;
    border: 4px solid rgba(0, 144, 255, 0.20);
    background: #151822;
}

.question-box h3 {
    margin-bottom: 0.5rem;
    color: #0090FFE6;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: left;
}

.question-box p {
    margin-bottom: 0;
    text-align: left;
    color: #F5F5F5E6;
    font-family: "SF Pro", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

@media (max-width: 768px) {
    .question-box {
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
        padding: 18px;
        border: 2px solid rgba(0, 144, 255, 0.20);
    }

    .question-box h3 {
        font-size: 18px;
    }

    .question-box p {
        font-size: 18px;
    }
}

.answer-box {
    width: calc(100% - 80px); /* 100px = 50px слева + 50px справа */
    margin: 30px 40px 40px 40px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeIn 0.3s ease-in;
    overflow-x: auto;
    color: #FFFFFFE6;
    text-align: left;
    border-radius: 32px;
    border: 4px solid rgba(0, 144, 255, 0.20);
    background: #151822;
}

.answer-box h2 {
    color: #0090FFE6;
    font-family: "SF Pro", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: left;
    margin-bottom: 1rem;
}

#answer_title {
    color: #0090FFE6;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: left;
    margin-bottom: 0.5rem;
}

.answer-box hr {
    margin-bottom: 1rem;
}



.answer-box h1 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
    color: #FFFFFFE6;
}

.answer-box h4 {
    font-family: "SF Pro", sans-serif;
    font-size: 1.25rem;
    color: #FFFFFFE6;
    margin-bottom: 1rem;
}

.answer-box p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.90);
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
}

.answer-box ul, .answer-box ol {
    margin: 0 0 1rem 2rem;
    color: #FFFFFFE6;
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
    line-height: 30px;
}

/* Стили для таблиц в ответах AI */
.answer-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #19273E;
    border: rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    overflow: hidden;
}

.answer-box th,
.answer-box td {
    padding: 12px 16px;
    text-align: left;
    color: #F5F5F5E6;
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.answer-box th {
    background: #21232C;
    color: #FFFFFFE6;
    font-weight: 700;
    font-size: 18px;
}

.answer-box tr:last-child td {
    border-bottom: none;
}

.answer-box tr:hover {
    background: rgba(0, 144, 255, 0.05);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .answer-box table {
        font-size: 14px;
    }

    .answer-box th,
    .answer-box td {
        padding: 8px 12px;
        font-size: 14px;
    }

    .answer-box th {
        font-size: 16px;
    }
}

/* Стили для гиперссылок в тексте */
.source-link {
    color: #3498dbE6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.source-link:hover {
    color: #2980b9;
    text-decoration: none; /* Убираем подчёркивание при наведении */
}

.source-link:active {
    color: #1f6391;
}

.markdown-content .source-link {
    font-size: inherit;
    vertical-align: baseline;
}

/* Стили для кружочков с номерами */
.citation-circle {
    display: inline-block;
    width: 20px; /* Размер кружочка */
    height: 20px;
    line-height: 20px; /* Центрируем число по вертикали */
    text-align: center;
    background: rgba(102, 161, 255, 0.30);
    color: #FFFFFF; /* Белый цвет текста */
    border-radius: 50%; /* Делаем круг */
    font-size: 12px; /* Размер текста внутри кружочка */
    font-weight: 700;
    transition: background 0.3s ease; /* Плавное изменение фона */
}

/* Голубой фон при наведении */
.source-link:hover .citation-circle {
    background: rgba(102, 161, 255, 1)
}

.answer-box li {
    margin-bottom: 0.5rem;
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
}

/* Стили для блоков кода */
.answer-box pre {
    background: #21232C;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    color: #FFFFFFE6; /* Базовый цвет для текста вне Highlight.js */
    position: relative;
}

.answer-box code {
    background: none; /* Для inline-кода */
    padding: 0;
    color: #FFFFFFE6; /* Цвет для inline-кода */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Стили для Highlight.js */
.answer-box .highlight {
    background: #21232C;
    color: #FFFFFFE6; /* Базовый цвет, если подсветка не применяется */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Увеличиваем специфичность для подсветки синтаксиса */
.answer-box .highlight .hljs-keyword,
.answer-box .highlight .hljs-selector-tag,
.answer-box .highlight .hljs-built_in,
.answer-box .highlight .hljs-name,
.answer-box .highlight .hljs-tag {
    color: #66A1FFE6 !important; /* Голубой для ключевых слов */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.answer-box .highlight .hljs-string,
.answer-box .highlight .hljs-title,
.answer-box .highlight .hljs-section,
.answer-box .highlight .hljs-attribute,
.answer-box .highlight .hljs-symbol,
.answer-box .highlight .hljs-regexp,
.answer-box .highlight .hljs-link {
    color: #98C379E6 !important; /* Зелёный для строк */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.answer-box .highlight .hljs-number,
.answer-box .highlight .hljs-literal {
    color: #D19A66E6 !important; /* Оранжевый для чисел */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.answer-box .highlight .hljs-comment,
.answer-box .highlight .hljs-deletion,
.answer-box .highlight .hljs-doctag {
    color: #5C6370E6 !important; /* Серый для комментариев */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.answer-box .highlight .hljs-function {
    color: #C678DDE6 !important; /* Фиолетовый для функций */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.answer-box .highlight .hljs-class,
.answer-box .highlight .hljs-type,
.answer-box .highlight .hljs-template-variable,
.answer-box .highlight .hljs-variable.language_ {
    color: #E5C07BE6 !important; /* Жёлтый для классов и типов */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .answer-box pre {
        padding: 0.5rem;
    }

    .answer-box code {
        font-size: 14px;
    }

    .answer-box .highlight {
        font-size: 14px;
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    }
}



.answer-box blockquote {
    border-left: 4px solid #3498db;
    padding: 0.5rem 1rem;
    color: #D0D0D0E6;
    margin: 1rem 0;
    background: #333536;
}

@media (max-width: 768px) {
    .answer-box {
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
        padding: 18px;
        border: 2px solid rgba(0, 144, 255, 0.20);
    }

    .answer-box h2 {
        font-family: "SF Pro", sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-align: left;
        margin-bottom: 1rem;
    }
    .answer-box h3 {
        font-size: 20px;
    }

    .answer-box p {
        font-size: 18px;
    }
}

.loading-indicator {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.loading-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3498dbE6;
    border-radius: 50%;
    margin: 0 4px;
    animation: bounce 0.6s infinite alternate;
}

.loading-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.history-item {
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: #FFFFFF;
}

.history-item-text {
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px; /* 133.333% */
    margin-bottom: 10px;
}

.history-item strong,
.history-item br + strong,
.history-item br + span {
    color: #FFFFFF;
}

.history-item br {
    display: block;
    margin: 5px 0;
}

.history-item p {
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    justify-content: center;
}

.action-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #FFFFFF;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.action-btn:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

.action-btn:active {
    border-color: #2980b9;
    color: #2980b9;
}


.share-btn {
    display: inline-flex; /* Используем inline-flex вместо flex, чтобы ширина подстраивалась под содержимое */
    align-items: center;
    width: auto;
    border-radius: 16px;
    border: 3px solid rgba(0, 144, 255, 0.20);
    background: #151822;
    color: #F5F5F5;
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 590;
    line-height: normal;
    padding-left: 20px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.share-btn svg {
    width: 2rem; /* Размер иконки */
    height: 2rem;
}

.download-btn::before {
    content: "↓";
    font-size: 1rem;
}

.quote-container {
    text-align: center;
    color: #FFFFFF;
    min-height: 200px; /* Подберите значение, достаточное для самой длинной цитаты */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
}

.quote-container .loading-indicator {
    display: block;
    margin-bottom: 40px;
    margin-top: 30px;
}

.quote-text {
    margin-bottom: 5px;
    animation: fadeInOut 4s infinite;
    color: #F5F5F5CC;
    text-align: center;
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.quote-author {
    animation: fadeInOut 4s infinite;
    color: #F5F5F5CC;
    font-family: "SF Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(52, 152, 219, 0.8);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
    display: block;
}

.copy-btn:hover {
    background: rgba(41, 128, 185, 0.8);
}

.copy-btn:active {
    background: rgba(31, 99, 145, 0.8);
}

.copy-btn.copied::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
}

.answer-box h3 {
    color: #0090FFE6;
    font-family: "SF Pro", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 12px;
}

.register-link {
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 2rem;
}

.register-link a {
    color: #0090FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.ai-access-message {
    width: 100%;
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    border: 4px solid rgba(0, 144, 255, 0.20);
    background: #151822;
}

.ai-access-message p {
    color: #F5F5F5;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 16px;
}

.ai-access-message .purchase-btn {
    display: inline-block;
    padding: 10px 32px;
    color: #000000;
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(146, 188, 250, 0.3);
    border-radius: 24px;
    background: linear-gradient(180deg, #BDE3FB 0%, #92BCFA 100%);
    margin-top: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ai-access-message {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .ai-access-message p {
        font-size: 1rem;
    }
}

.ai-access-message .purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 188, 250, 0.4);
    opacity: 0.9;
    color: #000000;
}

.ai-access-message .purchase-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(146, 188, 250, 0.2);
    opacity: 0.8;
}

.user-email {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #0090FFE6;
    margin: 0 0 1.5rem 0;
    font-family: "SF Pro", sans-serif;
    padding: 0.3rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

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

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

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        height: 48px;
        align-items: center;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar-brand img {
        height: 28px;
    }

    .navbar .navbar-brand a {
        color: #F5F5F5;
        font-family: Montserrat, serif;
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1E2021;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        gap: 10px;
        align-items: flex-start;
    }

    .navbar-menu.active {
        display: flex;
        background: #151822;
    }

    .navbar-menu a.btn {
        width: 100%;
        text-align: center;
        padding: 10px;
        margin-left: 40px;
        margin-top: 30px;
    }

    .navbar-menu a {
        margin-left: 40px;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: #F5F5F5;
        font-family: Montserrat, serif;
        font-size: 26px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }


    .login-container {
        margin-top: 5vh;
        width: 100%;
    }


    .action-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .action-btn {
        padding: 8px 12px;
    }
}

/* Стили для примеров вопросов */
.example-questions {
    text-align: center;
    margin-top: 50px;
    color: #FFFFFFCC;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Плавный переход */
    opacity: 1;
    height: auto; /* Позволяет сохранить естественную высоту */
}

.example-questions[style*="display: none"] {
    opacity: 0;
    transform: translateY(10px);
}

.example-questions[style*="opacity: 0"] {
    height: auto; /* Сохраняем высоту */
    visibility: hidden; /* Делаем невидимым, но сохраняем место */
}

.example-questions h2 {
    color: #F5F5F5CC;
    font-family: "Arial Black", sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: normal;
    margin-bottom: 15px;
}

.example-text {
    margin-bottom: 0;
    animation: fadeInOut 4s infinite;
    color: #F5F5F5CC;
    text-align: center;
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    padding: 0 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .example-questions {
        margin-top: 40px;
    }

    .example-questions h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .example-text {
        font-size: 14px;
        max-width: 90%;
    }
}

/* Стили для страницы контактов */
.contacts-content {
    color: #F5F5F5;
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contacts-content p {
    margin-bottom: 1.5rem;
}

.contacts-content .source-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contacts-content .source-link:hover {
    color: #2980b9;
}

.contacts-content .source-link:active {
    color: #1f6391;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .contacts-content {
        font-size: 16px;
        line-height: 26px;
        padding: 1rem;
    }

    .contacts-content p {
        margin-bottom: 1rem;
    }
}

/* Стили для страницы "О сервисе" */
.about-content {
    color: #F5F5F5;
    font-family: "SF Pro", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    text-align: left;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #F5F5F5;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* 144.444% */
}

.about-content ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style-type: disc;
}

.about-content ul li {
    margin-bottom: 0;
}

#description{
    margin-bottom: 40px;
}

.about-content h2 {
    color: #F5F5F5;
    font-family: "Arial Black", sans-serif;
    font-size: 24px;
    font-weight: 900;
    margin: 2rem 0 1rem;
}

.about-content .source-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-content .source-link:hover {
    color: #2980b9;
}

.about-content .source-link:active {
    color: #1f6391;
}

.about-content .btn.purchase-btn {
    display: block;
    margin: 2rem auto;
    text-align: center;
    max-width: 400px;
}

.about-gallery {
    display: flex;
    flex-direction: column; /* Вертикальное расположение */
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    text-align: center;
}

.about-image {
    width: 100%; /* Занимает полную ширину контейнера */
    height: auto;
    border: 2px solid rgba(0, 144, 255, 0.20);
    display: block;
    margin: 1rem auto 50px;
    border-radius: 24px;
    background: rgba(0, 144, 255, 0.10);
}

.signature {
    text-align: left;
    margin: 2rem 0;
    color: #F5F5F5;
    font-family: "Arial Black", sans-serif;
    font-size: 44px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.postscript {
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    color: #F5F5F5;
    text-align: left;
    margin-top: 1rem;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .about-content {
        font-size: 16px;
        line-height: 26px;
        padding: 1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .about-content h2 {
        font-size: 20px;
        margin: 1.5rem 0 0.8rem;
    }

    .about-content ul {
        margin: 0.8rem 0 1.2rem 1.5rem;
    }

    .about-gallery {
        gap: 1.5rem;
    }

    .about-image {
        max-width: 100%;
        margin-top: 0.8rem;
    }

    .signature, .postscript {
        font-size: 14px;
    }

    .about-content .btn.purchase-btn {
        max-width: 100%;
    }
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-modal-content {
    padding: 20px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    font-family: "SF Pro", sans-serif;
    border-radius: 32px;
    border: 2px solid rgba(0, 144, 255, 0.20);
    background: #151822;
}

.share-modal-content h3 {
    margin: 0 0 10px;
    color: #F5F5F5;
    font-family: "SF Pro", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.share-modal-content p {
    margin: 0 0 15px;
    color: #F5F5F5;
    text-align: center;
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
}

.share-link-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    color: #B1B1B1;
    font-family: "SF Pro", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 16px;
    border: 3px solid rgba(0, 144, 255, 0.20);
    background: #151822;
}

.share-modal-buttons {
    display: flex;
    flex-direction: column; /* Вертикальная компоновка */
    gap: 10px;
    align-items: center;
}

.share-copy-btn, .share-close-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%; /* Полная ширина для единообразия */
    max-width: 200px;
}

.share-copy-btn {
    border-radius: 24px;
    background: linear-gradient(180deg, #BDE3FB 0%, #92BCFA 100%);
    color: #000;
    font-family: "SF Pro", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.share-close-btn {
    border-radius: 24px;
    background: #19273E;
    color: #42B6FF;
    font-family: "SF Pro", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000; /* Увеличиваем z-index */
    font-family: "SF Pro", sans-serif;
    font-size: 16px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .share-modal-content {
        width: 90%;
        padding: 15px;
    }
    .share-link-input {
        font-size: 12px;
    }
}