/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* Спиннер */
.spinner {
    border: 4px solid #228B22;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Анимация вращения */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Когда прелоадер скрывается */
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}


/* Переопределение акцентного цвета */
.btn-primary {
    background-color: #228B22 !important;
    border-color: #228B22 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 10px #a3a3a3;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1E7A1E !important; /* Тёмный оттенок при hover */
    border-color: #1E7A1E !important;
}

/* Для других элементов, использующих primary */
.text-primary {
    color: #228B22 !important;
}

.bg-primary {
    background-color: #228B22 !important;
}

a {
    color: #228B22;
}

a:hover {
    color: #1E7A1E;
    text-decoration: none;
}

/* Стили для контейнера с ползунком */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-right: 20px;
}

/* Иконки */
#sun-icon, #moon-icon {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease-in-out;
}

/* Скрытие иконок в зависимости от темы */
body.light-theme #sun-icon {
    opacity: 1;
}
body.light-theme #moon-icon {
    opacity: 0;
}
body.dark-theme #sun-icon {
    opacity: 0;
}
body.dark-theme #moon-icon {
    opacity: 1;
}

/* Ползунок для десктопной версии */
#theme-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 16px;
    background-color: #383A3F; /* Цвет фона для светлой темы */
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Стили для кружка ползунка в Webkit-браузерах (Chrome, Safari) */
#theme-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    border: solid 1px #383A3F;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    box-shadow: 1px 1px 4px 0px rgba(0,0,0,1);
    /* Иконка внутри ползунка */
    background-image: var(--slider-icon, 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="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>'));
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Стили для кружка ползунка в Firefox */
#theme-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    border: solid 1px #383A3F;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    background-image: var(--slider-icon, 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="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>'));
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Светлая тема */
body {
    background-color: #fff;
    color: #383A3F;
    font-family: Roboto;
    font-weight: 400;
    font-family: Roboto;
    font-size: 16px;
    display: flex;
    flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
    width: 100%;
    align-items: stretch;
    gap: 5px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.overriden-link a {
    text-decoration: none;
    color: #383a3f;
}

.overriden-link a:hover {
    text-decoration: none;
    color: #228B22;
}

.svg-icon {
    color: #383a3f; /* Цвет для светлой темы */
    stroke: none;
}

body.dark-theme .svg-icon {
    color: #fff; /* Цвет для темной темы */
}

.dark-theme .overriden-link a {
    text-decoration: none;
    color: #ffffff;
}

.dark-theme .overriden-link a:hover {
    text-decoration: none;
    color: #D4D4D4;
}

/* Тёмная тема */
body.dark-theme {
    background-color: #383A3F;
    color: #ffffff;
}

/* Иконки в зависимости от темы */
body:not(.dark-theme) #moon-icon {
    opacity: 0.5;
}

body.dark-theme #sun-icon {
    opacity: 0.5;
}

body.dark-theme #theme-slider {
    background-color: #fff; /* Белый фон для тёмной темы */
}

body.dark-theme #theme-slider::-webkit-slider-thumb {
    border-color: #fff; /* Граница кружка соответствует фону ползунка */
}

body.dark-theme #theme-slider::-moz-range-thumb {
    border-color: #fff;
}

.container-area {
    display: flex;
    flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
    width: 100%;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #383a3f;
}

.container-area:empty {
    display: none;
}

body.dark-theme .container-area {
    background-color: #383a3f;
    color: #f5f5f5;
}

.module {
    flex-grow: 1;
    margin: 10px;
    padding: 20px;
    justify-content: space-between;
    /*background-color: #f5f5f5;
    color: #383a3f;*/
    box-sizing: border-box;
    position: relative;
    min-width: 200px;
    align-items: center;
}

body.dark-theme .module {
    background-color: #383a3f;
    color: #f5f5f5;
}

.module:empty {
    display: none;
}

.promo:empty {
    display: none;
}

.header {
    background-color: #fff;
    color: #383A3F;
    padding-bottom: 0px;
    padding-top: 5px;
    margin-top: 0px;
    margin-bottom: -15px;
    border-bottom: 1px solid #383A3F;
    /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);*/
}

body.dark-theme .header {
    background-color: #383A3F;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.header:empty {
    display: none;
}

.color-header {
    background-color: #fff;
    border-bottom: 1px solid #383A3F;
}

body.dark-theme .color-header {
    background-color: #383A3F;
    color: #ffffff;
    border-bottom: 1px solid #fff;
}

/* Кнопка профиля авторизованного пользователя */
.profile-button {
    cursor: pointer;
    background: #383a3f;
    color: #ffffff;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    padding: 7px 7px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* Если присутствует изображение аватара */
.avatar-image {
    width: 150%;
    height: 150%;
    border-radius: 50%;
    object-fit: cover;
    justify-content: center;
    align-items: center;
}

body.dark-theme .profile-button {
    background: #4d4d4d;
    color: #fff;
}


.left-sidebar:empty {
    display: none;
}

.right-sidebar:empty {
    display: none;
}

.container:empty {
    display: none;
    margin: 0;
    padding: 0;
}

body.dark-theme .container {
    background: #383a3f;
    color: #fff;
}

.show-mobile {
    display: none;
}

.content {
    min-height: 70vh;
    flex: 1;
}

.common-area {
    display: inline-flex;
    flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
    width: 100%;
    flex: 1;
    align-items: flex-start;
    align-content: flex-start;
    gap: 5px;

    /* width: calc(100% - 250px); Ширина основного контента с учетом отступа сайдбара */
    transition: margin-left 0.1s ease, width 0.1s ease;
}

body.dark-theme .common-area {
    background: #383a3f;
    color: #fff;
}

.left-sidebar {
    display: inline-flex;
    flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
	justify-content: flex-start;
	margin-right: 60px;
}

body.dark-theme .left-sidebar {
    background: #383a3f;
    color: #fff;
}

.left-sidebar.closed ~ .common-area {
    margin-left: 0; /* Убираем отступ при закрытом сайдбаре */
    width: 100%; /* Растягиваем на всю ширину */
}

/* Скрываем сайдбар полностью на странице с классом .no-sidebar */
.no-sidebar .left-sidebar {
    display: none;
}

.left-sidebar:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* Сообщения в модальных окнах */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* Общие стили для всех модальных окон */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    border-radius: 5px;
    width: 50%;
    text-align: left;
}

.modal-content {
    background-color: #337ab7;
    color: #fff;
}

body.dark-theme .default-modal {
    background-color: #383A3F;
    color: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
}

.modal-body {
    font-size: 18px;
}

/* Сообщения об успехе */
.modal-success {
    background-color: #228B22;
    color: #ffffff;
    border: 1px solid #228B22;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Сообщения об ошибке */
.modal-error {
    background-color: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Сообщения-предупреждения */
.modal-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Сообщения-информации */
.modal-info {
    background-color: #515eb0;
    color: #fff;
    border: 1px solid #515eb0;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Стили для сайдбар-панели */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #383a3f;
    color: white;
    padding-top: 20px;
    padding-left: -15px;
    transition: width 0.3s ease;
    font-family: "Alegreya Sans", sans-serif;
    font-weight: 400;
    overflow-y: scroll;
    overflow-x: hidden;
}

.sidebar.closed {
    width: 60px;
    margin-right: 10px;
}

.sidebar .menu-text {
    display: inline-block;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

.sidebar.closed .menu-text {
    opacity: 0;
    visibility: hidden;
}

/* Основная область страницы растягивается на 100%, если нет сайдбара */
.no-sidebar .common-area {
    margin-left: 0;
    width: 100%;
}

.no-sidebar .sidebar {
    display: none; /* Скрываем сайдбар */
}

/* Стили для крестика и сэндвича */
.toggle-icon {
    position: absolute;
    top: 10px;
    right: -40px;
    background-color: rgba(0, 0, 0, 0);
    color: #383a3f;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px;

}

.toggle-icon.open {
    border: none;
    transform: rotate(180deg);
}

.toggle-icon.closed {
    border: none;
    transform: rotate(90deg);
}

body.dark-theme .toggle-icon {
    color: #fff;
}

/* Пункты меню сайдбара */
.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 30px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Стили для выпадающего меню профиля пользователя */
.user-menu {
    display: none; /* По умолчанию скрываем меню */
    position: absolute;
    z-index: 1000;
    width: 180px;
    box-sizing: border-box;
    margin-left: -20px;
    background: #ffffff;
    box-shadow: 0 1px 10px #a3a3a3;
    color: #383a3f;
}

/* Когда меню открыто */
.user-menu.show {
    display: block;
}

.user-menu ul {
    margin: 0;
    padding: 0;
}

.user-menu ul li {
    padding: 8px 12px;
}

.user-menu ul li a {
    color: #383a3f;
    text-decoration: none;
}

.user-menu ul li a:hover {
    background-color: #f1f1f1;
    color: #228b22;
}

body.dark-theme .user-menu {
    background-color: #383A3F;
    color: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
}

body.dark-theme .user-menu ul li a {
    color: #fff;
    text-decoration: none;
}

body.dark-theme .user-menu ul li a:hover{
    background-color: #4d4d4d;
    color: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
}

input, select, textarea {
    border: none;         /* Убирает рамку */
    outline: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;        /* Убирает обводку при фокусе */
}


/* Стиль для кнопки в виде пункта меню с подчеркиванием */
/* Для светлой темы */
.item-button {
    text-decoration: none;
    font-size: 18px;
    border-radius: 0px;
}

.item-button:hover {
    color: #707070;
}

.item-button.mode-active {
    border-bottom: 2px solid #383a3f;
    padding-bottom: 3px;
}

/* Для светлой темы */
body.dark-theme .item-button {
    color: #fff;
}

body.dark-theme .item-button:hover {
    color: #707070;
}

body.dark-theme .item-button.mode-active {
    border-bottom: 2px solid #fff;
    padding-bottom: 3px;
}

/* Стили футера */

.footer {
    background: #f5f5f5;
    z-index: 99;
}

body.dark-theme .footer {
    background: #383a3f;
    color: #fff;
}

/* Стиль полосы над футером страниц */
.footer-border {
    border-top: 1px solid #383a3f;
}

body.dark-theme .footer-border {
    border-top: 1px solid #fff;
}

/* Стили ссылок в футере */
.footer-link a {
    color: #383a3f;
    text-decoration: none;
}

body.dark-theme .footer-link a {
    color: #fff;
}

/* Общий стиль футера */
.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 18px;
}

.footer-logo {
    order: 1;
}

.footer-menu {
    order: 2;
    margin: 0;
}

.payment-data {
    margin-top: 10px;
}

.payment-data img {
    max-width: 70%;
}

/* Стиль дефолтных кнопок */
.common-button {
    display: inline;
    cursor: pointer;
    background: #ffffff;
    color: #383a3f;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 10px;
}

body.dark-theme .common-button {
    background-color: #383a3f;
    color: #fff;
}

/* Стиль информационных плиток */
.info-grid {
    flex: 1;
    background: #ffffff;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-theme .info-grid {
    background-color: #383a3f;
    color: #fff;
    box-shadow: 0 1px 10px #fff;
}

.dashboard-info {
    color: #fff;
}

body.dark-theme .dashboard-info {
    color: #383a3f;
}

/* Стикер статуса пользователя в админпанели */
.user-label {
    margin-left: 20px;
    width: auto;
    display: inline-block;
    color: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 5px;
    font-size: 14px !important;
    font-weight: 600;
}

.superadmin {
    background: #ff264b;
}

.admin {
    background: #ffc141;
}

.host {
    background: #00b370;
}

.guest {
    background: #00bbd3;
}

.verified {
    background: #00b370;
}

.non-verified {
    background: #ff264b;
}

.moderate {
    background: #ff264b;
}

.published {
    background: #00b370;
}

.declined {
    background: #ffc141;
}

.notif-bookings {
    background: #00b370;
}

.notif-messages {
    background: #00bbd3;
}

.notif-transactions {
    background: #775dce;
}

.notif-ads {
    background: #696969;
}

.notif-system {
    background: #a117b8;
}

.default-modal{
    background: #ffffff;
    color: #383a3f;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 10px;
}

.default-modal .modal-header {
    align-self: start;
    width: 100%;
}

body.dark-theme .modal-header .close {
    color: #fff;
}

.modal-footer textarea {
    background-color: #f5f5f5;
    box-shadow: 0 1px 10px #383a3f;
    color: #383a3f;
}

body.dark-theme .default-modal textarea {
    background: #383a3f;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}

body.dark-theme .modal-footer textarea {
    background: #383a3f;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}


/* Фиксированное меню внизу экрана для мобильных устройств */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    gap: 15px;
}

body.dark-theme .bottom-menu {
    background: #383a3f;
    box-shadow: 0 -1px 10px #fff;
}

/* Стили иконок мобильного меню */
.menu-icon {
    color: #383a3f;
    font-size: 24px;
    text-align: center;
    flex: 1;
}

body.dark-theme .menu-icon {
    color: #fff;
}

.menu-icon i {
    transition: color 0.2s;
}

/* Цвет при наведении */
.menu-icon:hover i {
    color:  #228B22;
}

/* Стили для показа и скрытия формы поиска в хедере */
.form-hide {
    display: none !important;
}

/* Контейнер формы в хедере */
.header-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background-color: #fff;
    padding: 8px;
    border-radius: 16px;
    max-width: 500px; /* Ограничение ширины */
    max-height: 55px;
    box-shadow: 0 1px 10px #a3a3a3;
}

/* Тёмная тема для контейнера */
body.dark-theme .header-search-form {
    background-color: #474747;
}

/* Контейнеры полей */
.header-search-form-field {
    flex: 1;
    /*min-width: 100px;  Минимальная ширина полей */
    position: relative;
}

/* Тёмная тема для контейнеров полей */
body.dark-theme .header-search-form-field {
    background-color: #474747;
}

/* Поля ввода */
.header-search-form-field input {
    width: 100%;
    padding: 5px 10px; /* Уменьшенный padding */
    border: none;
    border-radius: 18px;
    text-align: center;
    box-sizing: border-box;
    background-color: #fff;
    color: #383a3f;
    height: 30px; /* Фиксированная высота */
}

/* Тёмная тема для полей ввода */
body.dark-theme .header-search-form-field input {
    background-color: #474747;
    color: #fff;
}

/* Плейсхолдеры в светлой теме */
.header-search-form-field input::placeholder {
    color: #383a3f;
    opacity: 1;
}

/* Поддержка разных браузеров для плейсхолдеров */
.header-search-form-field input::-webkit-input-placeholder {
    color: #383a3f;
}
.header-search-form-field input:-moz-placeholder {
    color: #383a3f;
}
.header-search-form-field input::-moz-placeholder {
    color: #383a3f;
}
.header-search-form-field input:-ms-input-placeholder {
    color: #383a3f;
}

/* Тёмная тема для плейсхолдеров */
body.dark-theme .header-search-form-field input::placeholder {
    color: #fff;
}
body.dark-theme .header-search-form-field input::-webkit-input-placeholder {
    color: #fff;
}
body.dark-theme .header-search-form-field input:-moz-placeholder {
    color: #fff;
}
body.dark-theme .header-search-form-field input::-moz-placeholder {
    color: #fff;
}
body.dark-theme .header-search-form-field input:-ms-input-placeholder {
    color: #fff;
}

/* Вертикальные линии между полями */
.header-search-form-field:nth-last-child(n+3)::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 5%;
    height: 90%;
    width: 1px;
    background-color: #383a3f;
}

/* Тёмная тема для линий */
body.dark-theme .header-search-form-field:not(:last-child)::after {
    background-color: #fff;
}

.vertical-info-block {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 10px;
    background: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 8px;
    padding: 20px;
    margin: 0px 10px;
}

body.dark-theme .vertical-info-block {
    background: #383a3f;
    color: #fff;
}

/* Основной контейнер для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Внутренний контейнер для ссылок */
.step-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Стили для ссылок пагинации */
.pagination a {
    color: #228B22; /* Основной цвет */
    padding: 8px 12px;
    border: 2px solid #228B22;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95em;
}

/* Эффект при наведении */
.pagination a:hover {
    background-color: #228B22;
    color: white;
}

body.dark-theme .pagination a {
    color: #fff;
}

/* Текущая страница */
.current-page {
    color: #333;
    font-weight: bold;
    font-size: 1em;
    padding: 8px 12px;
    background-color: #F0F0F0;
    border-radius: 5px;
}

/* Декоративные элементы для первой и последней ссылки */
.pagination a:first-of-type,
.pagination a:last-of-type {
    font-size: 1em;
    padding: 8px 15px;
}

/* Дополнительные декоративные эффекты */
.pagination a:active {
    transform: scale(0.95); /* Легкий эффект уменьшения при клике */
}

.pagination a:focus {
    outline: 3px solid #E0F2E9; /* Акцент на фокусе для улучшения доступности */
}

/* Стикеры статусов заявок в панели администратора */
.booking-pending {
    background: #ff264b;
}

.booking-confirmed {
    background: #00b370;
}

.booking-cancelled {
    background: #ffc141;
}

.booking-active {
    background: #00bbd3;
}

.booking-completed {
    background: #696969;
}

/* Стили кнопки отключения сайта */
.is-on {
    background-color: #ffc141 !important;
    color: #fff !important;
}

.is-off {
    background-color: #ff264b !important;
    color: #fff !important;
}

/* Цвета плиток */
.color-style_1 {
    color: #fff;
    background: #00b370;
}

.color-style_2 {
    color: #fff;
    background: #ffc141;
}

.color-style_3 {
    color: #fff;
    background: #00bbd3;
}

.color-style_4 {
    color: #fff;
    background: #775dce;
}

body.dark-theme .color-style_1 {
    background: #00b370;
}

body.dark-theme .color-style_2 {
    background: #ffc141;
}

body.dark-theme .color-style_3 {
    background: #00bbd3;
}

body.dark-theme .color-style_4 {
    background: #775dce;
}

/* Стили мобильной формы поиска */
.mobile-form input {
    background: #fff;
    box-shadow: 0 -1px 10px #a3a3a3;
    border-radius: 10px;
    color: #383a3f;
    margin: 5px 0px;
    padding: 5px;
}

/* Стиль для полей ввода данных */
.label-field-group {
    display: flex;
    flex-direction: row;
    justify-content: left;
    column-gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
}

/* Объявление с предложением подключить Telegram */
.telegram-container {
    display:  flex;
    flex-direction: row;
    justify-content: start;
    gap: 10px;
    align-items: center;
}

.telegram-container img {
    max-width: 200px;
}

.unread-count {
    background-color: #228B22;
    color: #fff;
    padding: 2px 7px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 769px) {
    .hide-mobile {
        display: flex !important;
    }
    .show-mobile {
        display: none !important;
    }
}

/* Стили по медиазапросам для разных экранов */
@media (max-width: 768px) {
    .logo-block {
        display: flex;
        flex-direction: column;
        justify-content: start; 
        align-items: start;
        margin: 0px 0px -20px 0px;
        z-index: 100;
    }

    .mobile-slogan {
        font-size: 14px;
    }

    .container {
        flex-direction: column;
        align-items: stretch;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
    display: flex !important;
    }

    /* Стиль главной формы поиска на мобильном экране */
    .main-search-mobile {
        position: fixed;
        left: 50%;
        transform: translate(-50%, 0%);
        z-index: 1000;
        margin-top: -10px;
        display: flex;
        flex-direction: row !important;
        justify-content: start;
        align-items: center;
        width: 80%;
        height: 50px;
        gap: 10px;
        border-radius: 18px;
        cursor: pointer;
        background: #fff;
        color: #383a3f;
        box-shadow: 0 1px 10px #a3a3a3;
        padding: 10px;
    }

    body.dark-theme .main-search-mobile {
        background-color: #383a3f;
        box-shadow: 0 1px 10px #fff;
        color: #fff;
    }

    .sidebar {
         transform: translateX(-100%);
    }

    .no-sidebar .common-area {
        width: 100%; /* Для мобильных устройств */
    }

    .toggle-icon {
          right: 20px;
    }

    .container.promo .module {
        max-width: 100%; /* Блоки занимают 100% ширины на узких экранах */
    }

   .modal-dialog {
        max-width: 90%; /* Устанавливаем ширину модального окна */
        margin: 10px auto; /* Центрируем модальное окно */
    }

    .modal-content {
        width: 100%; /* Устанавливаем ширину контента */
        padding: 10px; /* Добавляем внутренние отступы */
        box-sizing: border-box; /* Включаем отступы и границы в ширину */
        border-radius: 10px; /* Скругляем углы */
        overflow: hidden; /* Убираем выходящий контент */
        text-align: left; /* Выравниваем текст */
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px; /* Отступы для заголовка */
        border-bottom: 1px solid #ccc; /* Разделительная линия */
    }

    .modal-title {
        font-size: 16px; /* Уменьшаем шрифт заголовка */
        flex: 1;
        text-align: center;
    }

    .modal-body {
        padding: 15px; /* Отступы для тела сообщения */
        font-size: 14px; /* Уменьшаем размер текста */
    }

    .modal {
        min-width: 400px;
    }

    .modal .close {
        font-size: 20px;
        color: #fff; /* Цвет кнопки закрытия */
        opacity: 1;
    }

    .right-sidebar {
        position: fixed;
        top: 0;
        right: -300px; /* Скрываем сайдбар за пределами экрана */
        width: 80%;
        max-width: 300px;
        height: 100%;
        z-index: 1050;
        background-color: #fff;
        overflow-y: auto;
        transition: transform 0.3s ease-in-out;
        display: none; /* Убираем пустое место */
    }

    .right-sidebar.show {
        right: 0; /* Показываем меню */
        display: block; /* Отображение меню */
    }

    /* Стили для выдвижного меню */
    .mobile-sidebar-menu {
        position: fixed;
        transform: translateX(100%);
        top: 0;
        right: 0; /* Изначально скрываем за пределами экрана */
        width: 80%; /* Меню занимает 80% ширины экрана */
        max-width: 300px; /* Максимальная ширина */
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 1050;
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        padding: 20px;
        display: none;
    }

    .mobile-sidebar-menu div {
        margin: 20px 0px;
    }

    .mobile-sidebar-menu div a {
        color: #383a3f;
    }

    body.dark-theme .mobile-sidebar-menu div a {
        color: #fff;
    }

    /* Когда меню открыто */
    .mobile-sidebar-menu.show {
        transform: translateX(0); /* Показываем меню */
        display: block;
    }

    body.dark-theme .mobile-sidebar-menu {
        background-color: #383a3f;
        box-shadow: -2px 0 5px #fff;
        color: #fff;
    }

    .mobile-sidebar-menu.theme-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
        margin-top: 10px;
    }

    /* Unified logout button style inside mobile sidebar */
    .mobile-sidebar-menu .mobile-logout-form {
        border-top: 1px solid #e6e6e6;
        padding-top: 16px;
        margin-top: 16px;
    }

    .mobile-sidebar-menu .btn-logout {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #383a3f;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        border-radius: 16px;
        padding: 12px 20px;
        border: none;
        text-align: center;
        font-size: 16px;
    }

    .mobile-sidebar-menu .btn-logout:hover {
        background: #f5f5f5;
        color: #383a3f;
    }

    body.dark-theme .mobile-sidebar-menu .btn-logout {
        background-color: #383a3f;
        color: #fff;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
    }

    body.dark-theme .mobile-sidebar-menu .btn-logout:hover {
        background: #4d4d4d;
        color: #fff;
    }

    /* Стили переключателя темы оформления сайта */
    #theme-slider-mobile {
        -webkit-appearance: none;
        appearance: none;
        width: 48px;
        height: 16px;
        background-color: #383A3F;
        border-radius: 10px;
        outline: none;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    #theme-slider-mobile::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background-color: #fff;
        border-radius: 50%;
        border: solid 1px #383A3F;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
        transition: background-color 0.3s;
        background-image: var(--slider-icon);
        background-size: 16px 16px;
        background-position: center;
        background-repeat: no-repeat;
    }

    #theme-slider-mobile::-moz-range-thumb {
        width: 24px;
        height: 24px;
        background-color: #fff;
        border-radius: 50%;
        border: solid 1px #383A3F;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
        transition: background-color 0.3s;
        background-image: var(--slider-icon);
        background-size: 16px 16px;
        background-position: center;
        background-repeat: no-repeat;
    }

    #theme-slider-mobile::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background-color: #fff;
        border-radius: 50%;
        border: solid 1px #383A3F;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
        transition: background-color 0.3s;
        position: relative;
        /* Добавляем иконку */
        background-image: var(--slider-icon, 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="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>'));
        background-size: 16px 16px;
        background-position: center;
        background-repeat: no-repeat;
    }

    #theme-slider-mobile::-moz-range-thumb {
        width: 24px;
        height: 24px;
        background-color: #fff;
        border-radius: 50%;
        border: solid 1px #383A3F;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
        transition: background-color 0.3s;
        /* Добавляем иконку */
        background-image: var(--slider-icon, 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="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>'));
        background-size: 16px 16px;
        background-position: center;
        background-repeat: no-repeat;
    }

    body.dark-theme #theme-slider-mobile {
        background-color: #fff; /* Белый фон для тёмной темы */
    }

    body.dark-theme #theme-slider-mobile::-webkit-slider-thumb {
        border-color: #fff; /* Граница кружка соответствует фону ползунка */
    }

    body.dark-theme #theme-slider-mobile::-moz-range-thumb {
        border-color: #fff;
    }

    body {
        overflow-x: hidden; /* Запрещаем горизонтальный скролл */
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Кнопка профиля авторизованного пользователя */
    .profile-button {
        height: 25px;
        width: 25px;
    }

    /* Если присутствует изображение аватара */
    .avatar-image {
        width: 400%;
        height: 400%;
        border-radius: 50%;
        object-fit: cover;
        justify-content: center;
        align-items: center;
    }

    .profile-button {
        font-size: 16px;
    }

    body.dark-theme .profile-button {
        background: #fff;
    }

    .left-sidebar {
        display: none;
    }

    .mobile-bank-details {
        position: absolute;
        bottom: 0;
        right: 0;
        padding: 10px;
        font-size: 10px;
        display: none;
    }

    .telegram-container {
        display:  flex;
        flex-direction: column;
        justify-content: start;
        gap: 10px;
        align-items: center;
    }

    .telegram-container img {
        margin: 5px;
    }

    .telegram-container h3 {
        font-size: 22px;
    }

    .profile-button {
        padding: 10px 10px;
    }

    /* Общий стиль футера */
    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 18px;
    }

    .footer-logo {
        order: 2;
        margin-bottom: 40px;
    }

    .footer-menu {
        order: 1;
        margin: 10px 0px 20px 0px;
    }

    .payment-data img {
        max-width: 100%;
    }
}