

/* Кометный контейнер на заднем плане */
.comet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;  /* клики сквозь контейнер */
    overflow: hidden;
    z-index: -1;          /* чтобы было позади основного контента */
}

/* Стили для комет */
.comet {
    position: absolute;
    width: 3px;
    height: 3px;
    /* Мягкая белая точка с размытым свечением */
    background: radial-gradient(circle, rgba(255,255,255,1) 30%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: fly linear forwards; /* Анимация будет задана динамически: fly 10s linear forwards */
}

/* Ключевые кадры полёта.
   Изначально (0%) комета в своей точке (transform: translate(0,0)),
   а в (100%) улетает далеко за экран (200vw/200vh).
   Комета постепенно теряет непрозрачность.
*/
/*@keyframes fly {*/
/*    0% {*/
/*        opacity: 1;*/
/*        transform: translate(0, 0) scale(1);*/
/*    }*/
/*    100% {*/
/*        opacity: 0;*/
/*        transform: translate(150vw, 150vh) scale(0.5);*/
/*    }*/
/*}*/

@keyframes fly {
    0% {
        transform: translateX(-100px) translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh);
        opacity: 0;
    }
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    padding: 10px 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    max-width: 600px;
    content-visibility: auto;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding: 0px 0px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    min-height: 100px; /* Высота, соответствующая контенту */
    overflow: hidden;
    cursor: pointer;
    will-change: transform, opacity;
}

/*.card:nth-child(1) { background: rgba(255, 255, 255, 0.1); }*/
/*.card:nth-child(2) { background: rgba(255, 200, 200, 0.1); }*/
/*.card:nth-child(3) { background: rgba(200, 255, 200, 0.1); }*/
/*.card:nth-child(4) { background: rgba(200, 200, 255, 0.1); }*/
/*.card:nth-child(5) { background: rgba(255, 255, 200, 0.1); }*/
/*.card:nth-child(6) { background: rgba(200, 255, 255, 0.1); }*/
/*.card:nth-child(7) { background: rgba(255, 200, 255, 0.1); }*/
/*.card:nth-child(8) { background: rgba(255, 220, 180, 0.1); }*/
/*.card:nth-child(9) { background: rgba(180, 220, 255, 0.1); }*/

.card:nth-child(1) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(2) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(3) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(4) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(5) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(6) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(7) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(8) { background: rgba(200, 200, 255, 0.1); }
.card:nth-child(9) { background: rgba(200, 200, 255, 0.1); }

.card img {
    max-width: 100%;
    height: auto; /* Ensure images keep their aspect ratio */
    border-radius: 10px;
    /*transition: transform 0.3s ease;*/
    margin-bottom: 5px;
    box-shadow: none;
    transition: none;
    animation: none;
}

.card-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.selected img {
    transform: scale(1.1);
}

.selected .card-title {
    color: #7bbfb3;
}


.cards-container .card:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / 3;
    justify-self: center;
    max-width: calc(50% - 10px);
}

.navbar {
    background: rgba(200, 200, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 10px 10px;
    z-index: 10; /* Гарантируем, что navbar всегда сверху */
}

.navbar-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: row !important;
}

.navbar-nav .nav-item {
    text-align: center;
    flex: 1;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    padding: 0 10px;
}

.navbar-nav .nav-link.active {
    color: #7bbfb3 !important;
}

.navbar-nav .nav-link i {
    font-size: 24px;
}

.navbar-toggler {
    display: none;
}

.navbar-nav .nav-link svg {
    stroke: #fff;      /* Цвет обводки иконок */
    width: 24px;
    height: 24px;
    stroke-width: 2.2; /* Толщина линий (по умолчанию 2) */
}

.navbar-nav .nav-link.active svg {
    stroke: #7bbfb3; /* Цвет активной иконки */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.94);
    padding-top: 60px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.modal-content {
    background-color: rgba(200, 200, 255, 0.1);
    border-radius: 10px;
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    text-align: left;
    position: relative;
}

.modal.show {
    animation: openModalAnimation 0.5s forwards;
}

.modal.hide {
    animation: closeModalAnimation 0.5s forwards;
}

.modal-image {
    /*max-width: 500px; !* изображение не будет шире 500px *!*/
    width: 100%;      /* занимает всю доступную ширину контейнера */
    height: auto;     /* высота подстраивается для сохранения пропорций */
    display: block;
    margin: -20px -20px 10px -20px;
    border-radius: 10px;
    transition: transform 0.5s;
    opacity: 0;
    transform: scale(0.8);
    animation: imageZoomIn 0.5s forwards;
}


.modal-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    opacity: 1;
}

.modal-description {
    font-size: 18px;
    line-height: 1.5;
    opacity: 1;
    text-align: left;
    margin-top: 0; /* убираем отступ по умолчанию */
    margin-bottom: 300px;
}

.modal-question-container.has-fields + .modal-description {
    margin-top: 20px !important;
}

.modal-question-container textarea {
    width: 100%;
    padding: 8px 10px; /* Уменьшаем padding сверху и снизу */
    font-size: 16px;
    line-height: 1.4; /* Оптимальная высота строки */
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-sizing: border-box;

    resize: none; /* Отключаем изменение размера вручную */
    overflow-y: auto; /* Показываем скролл, если текста слишком много */
    min-height: 40px; /* Минимальная высота */
    max-height: 100px; /* Максимальная высота */
}


.modal-question-container textarea:focus,
.modal-question-container input[type="date"]:focus {
    outline: none;
    border-color: #7bbfb3;
}

.modal-question-container input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Изменение цвета иконки календаря */
}



.modal-info-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.modal-info {
    font-size: 18px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.modal-info i {
    margin-right: 10px;
}

.modal-question-container {
    display: flex; /* Гибкая компоновка контейнера вопросов по умолчанию */
    flex-direction: column; /* Вертикальное расположение */
    gap: 10px; /* Промежуток между текстовыми полями */
}

.modal-question-container.hidden {
    display: none; /* Полное скрытие контейнера вопросов */
}

.modal-question-container textarea:focus,
.modal-question-container input[type="date"]:focus {
    outline: none;
    border-color: #7bbfb3;
}

/*.modal-question-container textarea,*/
/*.modal-question-container input[type="date"] {*/
/*    width: 100%;*/
/*    padding: 10px;*/
/*    font-size: 16px;*/
/*    border-radius: 5px;*/
/*    border: 1px solid rgba(255, 255, 255, 0.3);*/
/*    background-color: rgba(255, 255, 255, 0.1);*/
/*    color: #ffffff;*/
/*    resize: none;*/
/*}*/

.modal-question-container input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Изменение цвета иконки календаря */
}

/*.modal-question-container input[type="date"],*/
/*.modal-question-container textarea {*/
/*    width: 100%;*/
/*    padding: 10px;*/
/*    font-size: 16px;*/
/*    border-radius: 5px;*/
/*    border: 1px solid rgba(255, 255, 255, 0.3);*/
/*    background-color: rgba(255, 255, 255, 0.1);*/
/*    color: #ffffff;*/
/*    resize: none;*/
/*}*/

.modal-question-container input[type="date"]:focus,
.modal-question-container textarea:focus {
    outline: none;
    border-color: #7bbfb3;
}

@keyframes openModalAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes closeModalAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}



.modal-image-wrapper {
    position: relative;
    display: inline-block; /* чтобы бэйдж размещался в нижнем правом углу именно картинки */
    width: calc(100% + 40px);
}

.close {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 1002;

    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: bold;
    color: #ffffff; /* Чисто белый цвет */
    background: none; /* Убираем фоновый цвет */
    border: none; /* Убираем любые границы */
    text-shadow: none; /* Убираем все тени текста */
    opacity: 1; /* Устанавливаем непрозрачность на 100% */

    cursor: pointer;
}










.date-field {
    width: 100%;
    padding: 10px;
    height: 40px;
    line-height: 20px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.date-field:focus {
    outline: none;
    border-color: #7bbfb3;
}

.form-group {
    margin-bottom: 0px; /* Отступ между полями */
}

.form-group label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
}



@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .card-title {
        font-size: 16px;
    }

    .menu ul {
        gap: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-description {
        font-size: 16px;
    }

    .modal-info {
        font-size: 16px;
    }

    .navbar {
        height: 50px;
        display: flex;
        align-items: center;
        z-index: 10
    }

    .navbar-nav .nav-link {
        height: 100%;
        padding: 0 5px;
        font-size: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navbar-nav .nav-link i {
        font-size: 20px;
    }

    .info-option a {
        font-size: 14px; /* Размер шрифта для экранов до 600px */
    }

    .info-option i {
        font-size: 14px; /* Адаптируем размер иконок */
    }

    .support-option i {
        font-size: 14px; /* Адаптируем размер иконок */
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    body {
        padding-top: 70px;
    }

    .cards-container {
        margin-top: 20px;
    }

    .modal {
        padding-top: 95px;
    }

    .info-option a {
        font-size: 15px; /* Размер шрифта для экранов от 601px до 1200px */
    }

    .info-option i {
        font-size: 15px; /* Адаптируем размер иконок */
    }

    .support-option i {
        font-size: 15px; /* Адаптируем размер иконок */
    }
}

@media (min-width: 1201px) {
    body {
        padding-top: 80px;
    }

    .cards-container {
        margin-top: 20px;
    }

    .modal {
        padding-top: 80px;
    }

    .info-option a {
        font-size: 16px; /* Стандартный размер шрифта для экранов 1201px и выше */
    }

    .info-option i {
        font-size: 16px; /* Адаптируем размер иконок */
    }

    .support-option i {
        font-size: 16px; /* Адаптируем размер иконок */
    }
}

/* Обновим стили для формы настроек */
.settings-container {
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
    padding: 0px 10px 20px 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.support-section, .legal-section {
    background: rgba(200, 200, 255, 0.1);
    padding: 5px 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.support-section:first-of-type, .legal-section:first-of-type {
    margin-top: 10px;
}

.support-option, .legal-section a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.support-option:last-child, .legal-section a:last-child {
    border-bottom: none;
}

.support-option img {
    margin-right: 15px;
    width: 24px;
    height: 24px;
}

.support-option a {
    flex: 1;
    text-align: left;
    color: #fff;
    margin-right: 10px;
}

.support-option a::after, .legal-section a::after {
    font-family: 'FontAwesome', Arial, sans-serif;
    padding-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.support-option a:hover, .legal-section a:hover {
    color: #fff;
}

.status {
    color: #66bb6a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.status i {
    margin-right: 5px;
}

/* Обновим стили для формы информации */
.info-container {
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
    padding: 0px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.info-section {
    background: rgba(200, 200, 255, 0.1);
    padding: 5px 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.info-section:first-of-type {
    margin-top: 10px;
}

.info-section:not(:first-of-type) {
    margin-top: 20px;
}

.info-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px 10px 5px; /* Увеличим padding для баланса с элементами settings */
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.info-option:last-child {
    border-bottom: none;
}

.info-option img {
    margin-right: 10px;
    width: 32px;
    height: 32px;
}

.info-option a {
    flex: 1;
    text-align: left;
    color: #fff;
    margin-right: 10px;
    font-size: 16px;
}

.info-option a::after {
    font-family: 'FontAwesome', Arial, sans-serif;
    padding-left: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.info-option i {
    color: rgba(255, 255, 255, 0.5);
}

/* Убираем подчеркивание при клике */
.info-option a,
.support-option a {
    text-decoration: none; /* Убираем подчеркивание по умолчанию */
}

.support-option i {
    color: rgba(255, 255, 255, 0.5);
}

.info-option a:focus,
.support-option a:focus {
    outline: none; /* Убираем обводку, которая появляется при фокусе */
    text-decoration: none; /* Убираем подчеркивание при фокусе */
}

/* Стили для страницы истории раскладов */
.history-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.history-date-group {
    margin-bottom: 20px; /* Отступ между группами по дате */
}

.history-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    background: rgba(200, 200, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 10px; /* Отступ сверху для даты */
    position: relative;
}

.history-image-container {
    margin-right: 10px;
}

.history-image-container img {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.history-details {
    flex: 1;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-spread {
    font-size: 16px;
    font-weight: bold;
}

.history-question {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Стили для иконки */
.info-icon {
    margin-left: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

.info-icon.active {
    color: #7bbfb3; /* Цвет при активном состоянии */
}

/* Стили для скрытого текста */
.info-text {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}


.history-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #ffffff;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 15px;
    gap: 10px;
}

.search-input, .date-input {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid rgba(200, 200, 255, 0.3);
    background-color: rgba(200, 200, 255, 0.1);
    color: #ffffff;
    width: 100%;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus, .date-input:focus {
    outline: none;
    border-color: #7bbfb3;
}

.no-scroll {
    overflow: hidden;
}


.form-horizontal .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
}

.form-horizontal .form-group label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
    color: rgba(200, 200, 255, 0.8);
    width: 80px;
}

.form-horizontal .search-input,
.form-horizontal .date-input {
    flex: 1;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid rgba(200, 200, 255, 0.3);
    background-color: rgba(200, 200, 255, 0.1);
    color: #ffffff;
    box-sizing: border-box;
}

.form-horizontal .search-input:focus,
.form-horizontal .date-input:focus {
    outline: none;
    border-color: #7bbfb3;
}

.no-animation {
    animation: none !important;
    transition: none !important;
}

#content {
  width: 100%;
}

/*Вроде помогло с сужением*/
.info-container, .settings-container, .cards-container, .history-container {
  max-width: 600px; /* Сохранение вашей max-width */
  width: 100%; /* Ширина на 100% от родителя */
  margin: 0 auto; /* Центрируем контейнер */
  box-sizing: border-box; /* Учитываем padding и border */
}

#content-container {
    width: 100%;
    display: block; /* Контейнер видим сразу */
    position: relative;
    z-index: 1;
}

#info-container, #settings-container {
    max-width: 600px;  /* Оставляем прежнюю максимальную ширину */
    width: 100%;       /* Ширина на 100% от родителя */
    margin: 0 auto;    /* Центрируем контейнер */
    padding: 0px 10px 20px 10px; /* Внутренний отступ: сверху 10px, справа 20px, снизу 20px, слева 20px */
    box-sizing: border-box; /* Учитываем padding и border */
}


/*.spreads-badge {*/
/*    position: absolute;*/
/*    bottom: 20px;*/
/*    right: -10px;*/
/*    z-index: 1002;*/
/*    font-size: 16px;*/
/*    font-weight: 500;*/
/*    color: #ffffff;*/

/*    !* Уменьшаем эффект выделения: *!*/
/*    background: rgba(0, 0, 0, 0.3);       !* более прозрачный фон *!*/
/*    border: 1px solid rgba(255, 255, 255, 0.2); !* менее заметная рамка *!*/
/*    box-shadow: none;                    !* убираем яркую подсветку *!*/
/*    text-shadow: none;                   !* убираем свечение текста *!*/

/*    border-radius: 8px;*/
/*    padding: 4px 8px;*/
/*    pointer-events: none;*/
/*}*/

/*.spreads-badge {*/
/*    position: absolute;*/
/*    bottom: 20px;*/
/*    right: -10px;*/
/*    z-index: 1002;*/
/*    font-size: 14px;*/
/*    font-weight: 500;*/
/*    color: #ffffff;*/

/*    background: rgba(0, 0, 0, 0.4);*/
/*    border-radius: 8px;*/
/*    padding: 6px 10px;*/
/*    pointer-events: none;*/

/*    backdrop-filter: blur(6px); !* Размытие фона *!*/
/*    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);*/
/*    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);*/
/*}*/


.spreads-badge {
    position: absolute;
    top: -20px; /* Небольшое смещение вверх */
    left: -20px; /* Небольшое смещение влево */
    z-index: 1002;

    font-size: 12px; /* Чуть больше шрифт */
    font-weight: 600;
    color: #ffffff; /* Белый цвет текста для контраста */

    background: rgba(76, 175, 80, 0.2); /* Полупрозрачный зелёный */
    backdrop-filter: blur(3px); /* Легкое размытие фона */
    border: 1px solid rgba(76, 175, 80, 0.3); /* Тонкая зелёная рамка */

    border-radius: 8px 0 8px 0; /* Скругляем углы для гармонии */
    padding: 5px 10px; /* Чуть больше отступы */
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Мягкая тень для выделения */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Легкое затемнение текста */
    opacity: 0.9; /* Чуть менее прозрачный, но всё ещё лёгкий */

    pointer-events: none; /* Отключаем взаимодействие */
}

.spreads-badge.no-spreads {
  background: rgba(186, 104, 200, 0.2); /* Полупрозрачный мягкий пурпурный */
  border: 1px solid rgba(186, 104, 200, 0.3);
}


@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}


/*Форма данных пользователя в settings*/
.form-group-settings {
    display: flex;
    flex-direction: column;
    margin: 20px 0; /* Равные отступы сверху и снизу */
}

.form-group-settings label {
    font-size: 16px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8); /* Цвет текста */
}

.form-group-settings .form-control {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Цвет рамки */
    background-color: rgba(255, 255, 255, 0.1); /* Цвет фона полей */
    color: #ffffff; /* Цвет текста */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group-settings .form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: not-allowed;
}

.info-text-userdata {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.form-group-settings:first-of-type {
    margin-top: 10px; /* Меньший отступ сверху */
}

.form-group-settings .form-control:focus {
    border-color: #7bbfb3; /* Цвет рамки при фокусе */
    outline: none; /* Убираем стандартный синий outline браузера */
    box-shadow: none; /* Убираем стандартную тень браузера */
}

.user-data-form {
    max-height: 0; /* Скрыта по умолчанию */
    margin-top: 0; /* Отступ отсутствует */
    opacity: 0; /* Скрыта визуально */
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.5s ease, opacity 0.5s ease; /* Плавная анимация */
    padding: 0 15px;
    background: rgba(200, 200, 255, 0.1); /* Цвет фона */
    border-radius: 10px; /* Скруглённые углы только снизу */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Тень */
}

.user-data-form.open {
    max-height: 500px; /* Высота при раскрытии */
    margin-top: 20px; /* Отступ сверху при открытии */
    opacity: 1; /* Форма становится видимой */
    padding: 10px 15px; /* Отступы внутри */
}


#chevronIcon {
    transition: transform 0.3s ease; /* Плавное вращение стрелки */
}



.support-option.toggle-user-data {
    cursor: pointer; /* Указатель при наведении */
}

.support-option.toggle-user-data i {
    transition: transform 0.3s ease; /* Анимация для стрелки */
}



/*Форма данных пользователя в settings*/

#button.btn.btn-primary {
    background: rgba(161, 255, 161, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 10px;
}



.alert-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(200, 200, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    animation: fadeInOut 3s forwards;

    /* Запрещаем переносы строк */
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.no-link {
    color: inherit;
    text-decoration: none;
    flex: 1; /* если требуется, чтобы текст вёл себя как в других секциях */
}

.green-highlight {
    color: green; /* можно заменить на нужный оттенок зелёного */
    font-weight: bold;
}

.orange-highlight {
    color: orange; /* можно заменить на нужный оттенок оранжевого */
    font-weight: bold;
}


/* Стили для оформления "бейджей" (выделенных блоков) */
.badge-value {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    margin-left: 10px;
}

/* Зеленый вариант для положительных значений */
.badge-green {
    color: #ffffff;
    background: rgba(76, 175, 80, 0.1); /* ещё более прозрачный фон */
    border: 1px solid rgba(76, 175, 80, 0.15); /* ещё более прозрачная рамка */
    backdrop-filter: blur(3px);
}

.badge-purple {
    color: #ffffff;
    background: rgba(186, 104, 200, 0.1); /* ещё более прозрачный фон */
    border: 1px solid rgba(186, 104, 200, 0.15); /* ещё более прозрачная рамка */
    backdrop-filter: blur(3px);
}


/*ul.green-bullets li::marker {*/
/*    color: #77dd77;*/
/*}*/

/*ul.red-bullets li::marker {*/
/*    color: #ff6961;*/
/*}*/

/*ul.green-bullets li:not(:last-child),*/
/*ul.red-bullets li:not(:last-child) {*/
/*  margin-bottom: 8px;*/
/*}*/

/*ul.green-bullets {*/
/*    margin-left: 20px !important;*/
/*    margin-top: 10px;*/
/*    margin-bottom: 0;*/
/*    list-style-position: outside;*/
/*}*/

/*ul.red-bullets {*/
/*    margin-left: 20px !important;*/
/*    margin-top: 10px;*/
/*    list-style-position: outside;*/
/*    margin-bottom: 0;*/
/*}*/

/*ul.green-bullets:not(:last-child),*/
/*ul.red-bullets:not(:last-child) {*/
/*  margin-bottom: 10px;*/
/*}*/

/*hr.divider {*/
/*    margin: 20px 0;*/
/*    border: none;*/
/*    height: 2px;*/
/*    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));*/
/*    opacity: 0.8;*/
/*    box-shadow: 0 1px 3px rgba(0,0,0,0.3);*/
/*}*/

/*mark {*/
/*  background-color: rgba(123, 191, 179, 0.1);*/
/*  color: inherit;*/
/*  padding: 0 2px;*/
/*  border-radius: 8px; !* увеличенное закругление углов *!*/
/*  font-weight: normal;*/
/*}*/


/*aside {*/
/*  background: rgba(200, 200, 255, 0.1);*/
/*  border-left: 4px solid rgba(123, 191, 179, 0.8);*/
/*  padding: 15px;*/
/*  margin: 20px 0 0;*/
/*  border-radius: 5px;*/
/*  color: #ffffff;*/
/*  font-size: 16px;*/
/*}*/

/*!* Если aside не является последним ребенком родительского контейнера, добавляем отступ снизу *!*/
/*aside:not(:last-child) {*/
/*  margin-bottom: 20px;*/
/*}*/

/*footer {*/
/*  background: linear-gradient(135deg, rgba(200,200,255,0.1), rgba(138,43,226,0.05));*/
/*  color: #ffffff;*/
/*  text-align: center;*/
/*  padding: 20px 15px;*/
/*  border-top: 1px solid rgba(255,255,255,0.2);*/
/*  font-size: 14px;*/
/*  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.4);*/
/*  margin-top: 20px;*/
/*  backdrop-filter: blur(4px);*/
/*  border-radius: 10px; !* Закругление углов *!*/
/*}*/

/*footer a {*/
/*  color: #8774e1;*/
/*  text-decoration: none;*/
/*  transition: color 0.3s ease;*/
/*}*/

/*footer a:hover {*/
/*  color: #ffffff;*/
/*  text-decoration: underline;*/
/*}*/

/* ===== Стили для списков (ul.green-bullets и ul.red-bullets) ===== */
ul.green-bullets li::marker {
  color: #77dd77;
}

ul.red-bullets li::marker {
  color: #ff6961;
}

/* Отступы между элементами списка внутри самого ul */
ul.green-bullets li:not(:last-child),
ul.red-bullets li:not(:last-child) {
  margin-bottom: 8px;
}

/* Базовые отступы для списков */
ul.green-bullets,
ul.red-bullets {
  margin-left: 20px !important;
  margin-top: 10px;
  margin-bottom: 0;
  list-style-position: outside;
}

/* Если списки идут сразу после <br>, убираем верхний отступ */
br + ul.green-bullets,
br + ul.red-bullets {
  margin-top: 0;
}

/* Если за списком (в общем контейнере) есть следующий элемент, не являющийся <br>,
   добавляем нижний отступ */
ul.green-bullets:has(~ *:not(br)),
ul.red-bullets:has(~ *:not(br)) {
  margin-bottom: 10px;
}

/* Если список непосредственно следует за <br>, оставляем нижний отступ равным 0 */
ul.green-bullets:has(+ br),
ul.red-bullets:has(+ br) {
  margin-bottom: 0;
}

/* ===== Разделительная линия ===== */
hr.divider {
  margin: 20px 0;
  border: none;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
  opacity: 0.8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== Стили для mark ===== */
mark {
  background-color: rgba(123, 191, 179, 0.1);
  color: inherit;
  padding: 0 2px;
  border-radius: 8px;
  font-weight: normal;
}

/* ===== Стили для aside вне li ===== */
aside {
  background: rgba(200, 200, 255, 0.1);
  border-left: 4px solid rgba(123, 191, 179, 0.8);
  padding: 15px;
  margin: 20px 0 0;
  border-radius: 5px;
  color: #ffffff;
  font-size: 16px;
}

/* Если aside идёт сразу после <br>, убираем верхний отступ */
br + aside {
  margin-top: 0;
}

/* Если aside не является последним элементом в родительском контейнере и за ним нет <br>, добавляем нижний отступ */
aside:not(:last-child):not(:has(+ br)) {
  margin-bottom: 20px;
}

/* ===== Стили для aside, когда он находится внутри li ===== */
li aside {
  display: block; /* чтобы margin сработал корректно */
  margin-bottom: 20px;
}

/* Если aside внутри li идёт сразу перед <br>, убираем отступ снизу */
li aside:has(+ br) {
  margin-bottom: 0;
}

/* ===== Стили для footer ===== */
footer {
  background: linear-gradient(135deg, rgba(200,200,255,0.1), rgba(138,43,226,0.05));
  color: #ffffff;
  text-align: center;
  padding: 20px 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
  backdrop-filter: blur(4px);
  border-radius: 10px;
}

footer a {
  color: #8774e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Если footer идёт сразу после <br>, убираем верхний отступ */
br + footer {
  margin-top: 0;
}

.summary p + p {
  margin-top: 20px;
}



/*1*/
