:root {
    --primary-color: #100853;
    --gold-color: #dec195;
    --white-color: #dec195;

}

/* Стили для сердечка избранного */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon {
    position: relative;
    width: 20px;
    height: 18px;
    display: inline-block;
}

.favorite-icon:before,
.favorite-icon:after {
    position: absolute;
    content: '';
    left: 10px;
    top: 0;
    width: 10px;
    height: 16px;
    background: #aaa;
    border-radius: 10px 10px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    transition: background 0.3s ease;
}

.favorite-icon:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.favorite-btn.active .favorite-icon:before,
.favorite-btn.active .favorite-icon:after {
    background: #e74c3c;
}

.favorite-btn:hover .favorite-icon:before,
.favorite-btn:hover .favorite-icon:after {
    background: #ff6b6b;
}

.favorite-btn.active:hover .favorite-icon:before,
.favorite-btn.active:hover .favorite-icon:after {
    background: #ff3b3b;
}

/* Стили для карточки услуги */
.service-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;

}

.service-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    margin-top: auto;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
    margin-top: auto;
}

.service-duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    margin-top: auto;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: auto;
}

.service-actions > .btn {
    flex: none;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

/* Стили для фильтра категорий */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 12px 14px;
}

.category-filter button {
    padding: 7px 14px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.category-filter button.active {
    background: var(--primary-color);
    color: white;
}

/* Каталог: длинный ряд категорий — одна линия + горизонтальный скролл (планшет и узкий десктоп) */
@media (max-width: 1023px) {
    .category-filter:not(.favorites-section-tabs) {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 10px 12px;
    }

    .category-filter:not(.favorites-section-tabs) button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Стили для карточки товара */
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
    margin-top: auto;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
    margin-top: auto;
}

.product-stock {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    margin-top: auto;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s ease;
}
.btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background-color: #100853;
    color: white;
}



.btn-secondary {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-add-product {
    position: fixed;
    bottom: 24px;
    right: 96px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--gold-color);
    color: transparent;
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 8, 83, 0.28);
    z-index: 2500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    isolation: isolate;
}

.btn-add-product__icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.btn-add-product__icon::before,
.btn-add-product__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn-add-product__icon::before {
    width: 22px;
    height: 3px;
}

.btn-add-product__icon::after {
    width: 3px;
    height: 22px;
}

.btn-add-product:hover {
    transform: scale(1.04);
    background-color: #c4a67d;
    box-shadow: 0 6px 18px rgba(16, 8, 83, 0.32);
}

.btn-add-product:active {
    transform: scale(0.98);
}

/* Стили для сетки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 100px 50px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding: 80px 20px 30px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для модального окна */
.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.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Стили для формы редактирования */
.edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-form .form-group.full-width {
    grid-column: span 2;
}

.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.edit-form input[type="text"],
.edit-form input[type="number"],
.edit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-form .image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.edit-form .btn-save {
    background-color: var(--gold-color);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    grid-column: span 2;
    margin-top: 10px;
}

.edit-form .btn-save:hover {
    background-color: var(--gold-color);
}


/* Стили для страницы личного кабинета */
.profile-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Декоративные элементы */
.profile-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.profile-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

/* Информация о пользователе */
.user-info {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.user-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

/* Формы изменения данных */
.edit-section {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.edit-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

.edit-form {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(222, 193, 149, 0.2);
    outline: none;
}

.save-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
}

.save-btn:hover {
    background-color: #c4a67d;
    transform: translateY(-2px);
}

.save-btn:active {
    transform: translateY(0);
}

/* Сообщения */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f0f8ff;
    border-left: 4px solid #3498db;
    color: #333;
    position: relative;
    z-index: 2;
}

.message.success {
    background-color: #f0fff0;
    border-left-color: #2ecc71;
}

.message.error {
    background-color: #fff0f0;
    border-left-color: #e74c3c;
}

/* Ссылки */
.profile-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.profile-link {
    display: inline-block;
    padding: 10px 20px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.profile-link:hover {
    background-color: rgba(16, 8, 83, 0.1);
}

.logout-link {
    color: #e74c3c;
}

.logout-link:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        margin-top: 80px;
        width: 90%;
    }

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

    .profile-links {
        flex-direction: column;
        gap: 10px;
    }

    .profile-link {
        text-align: center;
    }
}

/* Стили для страницы избранного */
.favorites-container {
    width: 1200px;
    margin: 100px auto 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.favorites-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Декоративные элементы */
.favorites-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.favorites-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.favorites-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.favorite-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.favorite-card .favorite-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: none;
}

/* Стили для сердечка избранного */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon {
    position: relative;
    width: 20px;
    height: 18px;
    display: inline-block;
}

.favorite-icon:before,
.favorite-icon:after {
    position: absolute;
    content: '';
    left: 10px;
    top: 0;
    width: 10px;
    height: 16px;
    background: #aaa;
    border-radius: 10px 10px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    transition: background 0.3s ease;
}

.favorite-icon:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.favorite-btn.active .favorite-icon:before,
.favorite-btn.active .favorite-icon:after {
    background: #e74c3c;
}

.favorite-btn:hover .favorite-icon:before,
.favorite-btn:hover .favorite-icon:after {
    background: #ff6b6b;
}

.favorite-btn.active:hover .favorite-icon:before,
.favorite-btn.active:hover .favorite-icon:after {
    background: #ff3b3b;
}

/* Стили для карточки услуги */
.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.service-info {
    padding: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.service-duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn {
    padding: 20px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: auto;
}

.btn-primary {
    background-color: var(--gold-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c4a67d;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-edit {
    background-color: #100853;
    color: white;
    width: 100%;
    margin-top: 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}


.btn-edit:hover {
    background-color: #100853;
}

.btn-add-service {
    position: fixed;
    bottom: 24px;
    right: 96px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: var(--gold-color);
    color: transparent;
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 8, 83, 0.28);
    z-index: 2500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    isolation: isolate;
}

.btn-add-service__icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.btn-add-service__icon::before,
.btn-add-service__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn-add-service__icon::before {
    width: 22px;
    height: 3px;
}

.btn-add-service__icon::after {
    width: 3px;
    height: 22px;
}

.btn-add-service:hover {
    background-color: #c4a67d;
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(16, 8, 83, 0.32);
}

.btn-add-service:active {
    transform: scale(0.98);
}




/* Стили для сетки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 100px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding: 80px 20px 30px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для модального окна */
.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.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Стили для формы редактирования */
.edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-form .form-group.full-width {
    grid-column: span 2;
}

.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.edit-form input[type="text"],
.edit-form input[type="number"],
.edit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-form .image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.edit-form .btn-save {
    background-color: #dec195;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    grid-column: span 2;
    margin-top: 10px;
}

.edit-form .btn-save:hover {
    background-color: #dec195;
}




/* Стили для страницы личного кабинета */
.profile-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Декоративные элементы */
.profile-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.profile-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

/* Информация о пользователе */
.user-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

.info-grid {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

/* Формы изменения данных */
.edit-section {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.edit-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

.edit-form {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(222, 193, 149, 0.2);
    outline: none;
}

/* Стили для кнопки "Сохранить" */
.save-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 8px 15px;
    /* Уменьшенный padding */
    border-radius: 5px;
    font-size: 14px;
    /* Уменьшенный размер шрифта */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    width: 120px;
    /* Фиксированная ширина */
    height: 30px;
    display: inline-block;
    /* Чтобы ширина работала корректно */
    text-align: center;
    /* Центрируем текст внутри кнопки */
}

.save-btn:hover {
    background-color: #c4a67d;
    transform: translateY(-2px);
}

.save-btn:active {
    transform: translateY(0);
}

/* Сообщения */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f0f8ff;
    border-left: 4px solid #3498db;
    color: #333;
    position: relative;
    z-index: 2;
}

.message.success {
    background-color: #f0fff0;
    border-left-color: #2ecc71;
}

.message.error {
    background-color: #fff0f0;
    border-left-color: #e74c3c;
}

/* Ссылки */
.profile-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.profile-link {
    display: inline-block;
    padding: 10px 20px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.profile-link:hover {
    background-color: rgba(16, 8, 83, 0.1);
}

.logout-link {
    color: #e74c3c;
}

.logout-link:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Стили для предстоящих записей и истории посещений */
.appointments-section {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.appointments-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

.appointments-list {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.appointment-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.appointment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.appointment-service {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.appointment-status {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #f0f0f0;
}

.appointment-status.pending {
    background-color: #ffeaa7;
    color: #d35400;
}

.appointment-status.confirmed {
    background-color: #d4f5e2;
    color: #27ae60;
}

.appointment-status.completed {
    background-color: #e0e0e0;
    color: #555;
}

.appointment-status.cancelled {
    background-color: #ffd3d3;
    color: #c0392b;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.appointment-detail {
    margin-bottom: 10px;
}

.detail-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.appointment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.appointment-btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-cancel {
    background-color: #f8f8f8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.btn-cancel:hover {
    background-color: #fff0f0;
}

.btn-reschedule {
    background-color: #f8f8f8;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn-reschedule:hover {
    background-color: #f0f8ff;
}

.btn-repeat {
    background-color: var(--gold-color);
    color: white;
}

.btn-repeat:hover {
    background-color: #c4a67d;
}

.empty-appointments {
    text-align: center;
    padding: 30px 0;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        margin-top: 80px;
        width: 90%;
    }

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

    .profile-links {
        flex-direction: column;
        gap: 10px;
    }

    .profile-link {
        text-align: center;
    }

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


/* Стили для страницы избранного */
.favorites-container {
    max-width: 1150px;
    margin: 50px auto 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.favorites-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Декоративные элементы */
.favorites-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.favorites-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}



.favorite-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.favorite-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.favorite-details {
    padding: 20px;
}

.favorite-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.favorite-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.favorite-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.favorite-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
    margin-right: 10px;
}

.add-to-cart-btn:hover {
    background-color: #c4a67d;
}

.remove-favorite-btn {
    background-color: #f8f8f8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-favorite-btn:hover {
    background-color: #e74c3c;
    color: white;
}

.empty-favorites {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-favorites-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-favorites h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.empty-favorites p {
    margin-bottom: 25px;
}

.browse-products-btn {
    display: inline-block;
    background-color: var(--gold-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.browse-products-btn:hover {
    background-color: #c4a67d;
}

/* Стили для модального окна */
.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.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

.modal-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-details h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.modal-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-add-to-cart {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.modal-add-to-cart:hover {
    background-color: #c4a67d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .favorites-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}


/* Стили для страницы оформления заказа */
.checkout-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.checkout-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Декоративные элементы */
.checkout-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.checkout-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold-color);
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 8px;
    display: inline-block;
}

.payment-methods {
    display: grid;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--gold-color);
    background-color: #f0f0f0;
}

.payment-method.selected {
    border-color: var(--gold-color);
    background-color: rgba(196, 166, 125, 0.1);
}

.payment-method input {
    margin-right: 10px;
}

.payment-method-icon {
    margin-right: 10px;
    font-size: 24px;
    color: var(--primary-color);
}

.order-summary {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 8px;
    display: inline-block;
}

.order-items {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-price {
    color: #666;
    font-size: 14px;
}

.order-item-quantity {
    margin-left: 15px;
    background-color: #eee;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.order-totals {
    margin-top: 20px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-total-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    padding-top: 15px;
}

.place-order-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    margin-top: 30px;
}

.place-order-btn:hover {
    background-color: #c4a67d;
    transform: translateY(-2px);
}

.place-order-btn:active {
    transform: translateY(0);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.error-message ul {
    margin: 10px 0 0 20px;
}

.back-to-cart {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
}

.back-to-cart:hover {
    text-decoration: underline;
}

.pickup-info {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.pickup-info h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.pickup-info p {
    margin-bottom: 5px;
}

/* Стили для чекбокса */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

/* Стили для скрытых полей */
.hidden {
    display: none;
}

/* Акцентируем новую функциональность */
.another-person-info {
    border-left: 4px solid var(--gold-color);
    padding-left: 15px;
    margin-top: 15px;
    background-color: rgba(196, 166, 125, 0.05);
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Стили для страницы корзины */
.cart-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(16, 8, 83, 0.08);
    border: 1px solid #eceaf3;
    box-sizing: border-box;
}

.cart-page-title {
    color: var(--primary-color);
    margin: 0 0 24px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.cart-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

.cart-empty p {
    margin-bottom: 20px;
    font-size: 18px;
}

.cart-table-wrap {
    width: 100%;
    overflow-x: visible;
}

.cart-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    margin-bottom: 24px;
    table-layout: fixed;
}

.cart-table thead tr {
    background-color: #f3f1f8;
}

.cart-table th {
    background-color: #f3f1f8;
    padding: 12px 14px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #e8e6f0;
    vertical-align: middle;
}

.cart-table th.cart-col-price,
.cart-table th.cart-col-qty {
    text-align: center;
}

.cart-table th.cart-col-sum {
    text-align: right;
}

.cart-col-product {
    width: 46%;
}

.cart-col-price {
    width: 14%;
    text-align: center;
}

.cart-col-qty {
    width: 22%;
    text-align: center;
}

.cart-col-sum {
    width: 14%;
    text-align: right;
}

.cart-col-actions {
    width: 6%;
    min-width: 44px;
    max-width: none;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

.cart-th-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cart-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table-actions {
    text-align: center;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

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

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-product-name {
    font-weight: 500;
    color: #333;
    line-height: 1.35;
    word-break: break-word;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-quantity button {
    background-color: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity button:hover {
    background-color: #e0e0e0;
}

.cart-price,
.cart-subtotal {
    font-weight: 500;
    color: #333;
}

.cart-table td.cart-col-price,
.cart-table td.cart-col-qty {
    text-align: center;
}

.cart-table td.cart-col-sum {
    text-align: right;
}

.cart-table td.cart-col-qty .cart-quantity {
    justify-content: center;
    margin: 0 auto;
}

.cart-remove {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.cart-remove:hover {
    color: #c0392b;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

.cart-clear {
    background-color: #fff;
    color: #555;
    border: 1px solid #d8d4e4;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cart-clear:hover {
    background-color: #f8f6fc;
    border-color: #c5bdd8;
    color: var(--primary-color);
}

.cart-summary {
    background-color: #f7f5fb;
    padding: 20px 22px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid #e8e6f0;
    width: 100%;
    box-sizing: border-box;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0dce8;
}

.checkout-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 8, 83, 0.22);
    box-sizing: border-box;
}

.checkout-btn:hover {
    background-color: #1a1068;
    transform: translateY(-1px);
    color: #fff;
}

.checkout-btn:active {
    transform: translateY(0);
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cart-actions .continue-shopping {
    margin-top: 0;
    padding: 10px 18px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.cart-actions .continue-shopping:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.cart-empty .continue-shopping {
    margin-top: 0;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
}

.cart-empty .continue-shopping:hover {
    background: #1a1068;
    text-decoration: none;
}

.continue-shopping:hover {
    text-decoration: underline;
}

.stock-warning {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* Адаптивность корзины */
@media (min-width: 768px) {
    .cart-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .cart-table thead {
        display: table-header-group;
    }

    .cart-table tbody {
        display: table-row-group;
    }

    .cart-table-row {
        display: table-row;
    }

    .cart-table th,
    .cart-table td {
        display: table-cell;
    }
}

@media (max-width: 767px) {
    .cart-container {
        padding: 20px;
        margin-top: 80px;
    }

    .cart-table-wrap {
        overflow-x: visible;
    }

    .cart-table {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cart-clear,
    .cart-actions .continue-shopping {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .cart-clear {
        order: 2;
    }

    .cart-actions .continue-shopping {
        order: 1;
    }
}

@media (max-width: 480px) {
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-product-image {
        width: 60px;
        height: 60px;
    }
}

:root {
    --primary-color: #100853;
    --gold-color: #dec195;
    --white-color: #dec195;
}

/* Base styles — прижатый подвал к низу страницы */
html {
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}
/* Основная область растягивается — подвал всегда внизу (корзина, избранное, после удаления) */
body > main {
    flex: 1 0 auto;
}

/* Header styles */
.header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky !important;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* ===== Бургер-меню (чекбокс + классическая анимация) ===== */
.header-burger-wrap {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.burger-toggle-input {
    display: none;
}

/* Кликабельная область иконки */
.burger-toggle-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    cursor: pointer;
    z-index: 1002;
    border-radius: 8px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.burger-toggle-label:hover {
    background-color: rgba(222, 193, 149, 0.16);
    box-shadow: inset 0 0 0 1px rgba(222, 193, 149, 0.30);
}

/* Иконка: 3 линии (закрыто) */
.burger-toggle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px !important;
    height: 2px;
    background: linear-gradient(
        to bottom,
        var(--gold-color) 0%,
        var(--gold-color) 100%
    );
    border-radius: 2px;
    box-shadow:
        0 -8px 0 var(--gold-color),
        0 8px 0 var(--gold-color);
    transition: background 0.2s, box-shadow 0.2s, transform 0.5s ease;
}

.burger-toggle-icon::before,
.burger-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold-color);
    border-radius: 2px;
    transform: translateY(-50%) rotate(0deg) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.2s;
}

/* Открыто: линии превращаются в X */
.burger-toggle-input:checked ~ .burger-toggle-label .burger-toggle-icon {
    background: transparent;
    box-shadow: none;
}
.burger-toggle-input:checked ~ .burger-toggle-label .burger-toggle-icon::before {
    opacity: 1;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) rotate(45deg) scale(1);
    transition-delay: 0.1s;
}
.burger-toggle-input:checked ~ .burger-toggle-label .burger-toggle-icon::after {
    opacity: 1;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) rotate(-45deg) scale(1);
    transition-delay: 0.1s;
}

.burger-toggle-label.is-open .burger-toggle-icon {
    background: transparent;
    box-shadow: none;
}

.burger-toggle-label.is-open .burger-toggle-icon::before {
    opacity: 1;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) rotate(45deg) scale(1);
    transition-delay: 0.1s;
}

.burger-toggle-label.is-open .burger-toggle-icon::after {
    opacity: 1;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) rotate(-45deg) scale(1);
    transition-delay: 0.1s;
}

/* Панель навигации */
.nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background-color: var(--primary-color);
    transition: left 0.28s ease, box-shadow 0.28s ease;
    padding: 0;
    z-index: 10000;
    overflow: hidden;
    box-shadow: none;
    border-top: none;
    display: flex;
    flex-direction: column;
}

.nav-menu__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background-color: var(--primary-color);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu__scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.nav-menu-end-spacer {
    display: none;
}

.burger-toggle-input:checked ~ .nav-menu,
.nav-menu.is-open {
    left: 0 !important;
    box-shadow: none;
    top: 64px !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
}

/* При открытом бургере блокируем прокрутку страницы */
body.menu-open {
    overflow: hidden;
}

body.menu-open .search-form {
    display: none !important;
}

body.menu-open .header-actions {
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10007;
}

body.menu-open .header {
    z-index: 10001;
}

body.menu-open .nav-menu__scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

body.menu-open .mobile-store-nav {
    visibility: hidden !important;
    pointer-events: none !important;
}

body.menu-open .mobile-store-nav {
    display: none !important;
}

body.menu-open .header-burger-wrap {
    z-index: 2;
}

body.menu-open #luna-chat-widget {
    z-index: 10007;
    visibility: visible !important;
    pointer-events: auto !important;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    margin: 0 0 4px 0;
}

.nav-menu ul li a,
.nav-menu .nav-item {
    display: block;
    color: var(--gold-color);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background 0.25s, color 0.25s;
}
.nav-menu ul li a:hover,
.nav-menu .nav-item:hover {
    background-color: rgba(222, 193, 149, 0.15);
    color: #fff;
}

/* Logo wrapper */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -33.33%;
    z-index: 1001;
}

.logo-circle {
    margin-left: 37%;
    width: 25%;
    height: 25%;
    border-radius: 55%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: auto;
    margin-left: 5%;
    margin-top: 10%;
    align-items: center;
    justify-content: center;
}

/* Круглый логотип в шапке главной — только широкий экран (десктоп) */
@media (max-width: 1023px) {
    .header .logo-wrapper {
        display: none !important;
    }
}

/* Header actions */
.header-actions {
    --header-icon-gap: 14px;
    display: flex;
    align-items: center;
    gap: var(--header-icon-gap);
}

.header-icon {
    display: flex;
    align-items: center;
    color: var(--white-color);
    text-decoration: none;
}

.header-icon img {
    width: 24px;
    height: 24px;
}

/* Icon styles */
.icon {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.icon::before,
.icon::after {
    content: '';
    position: absolute;
    background-color: var(--white-color);
}

/* User icon */
.user-icon::before {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.user-icon::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 12px;
    border-radius: 0 0 12px 12px;
}

/* Heart icon */
.heart-icon::before,
.heart-icon::after {
    top: 5px;
    width: 15px;
    height: 24px;
    border-radius: 15px 15px 0 0;
}

.heart-icon::before {
    left: 15px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-icon::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Cart icon */
.cart-icon::before {
    top: 10px;
    left: 5px;
    width: 20px;
    height: 15px;
    border: 2px solid var(--white-color);
    border-radius: 0 0 3px 3px;
    background-color: var(--white-color);
}

.cart-icon::after {
    top: 4px;
    left: 8px;
    width: 14px;
    height: 8px;
    border: 2px solid var(--white-color);
    border-radius: 8px 8px 0 0;
    background-color: transparent;
}

/* Search container */
.search-container {
    position: relative;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.header-search-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 100%;
    height: 100%;
}

.header-search-svg {
    display: block;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    overflow: visible;
}

.search-form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 1001;
}

.search-form input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}

.search-form button {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Products styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;

}


.product-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 15px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    /* Прижимаем кнопки к низу */

}

.product-actions-admin {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Buttons */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.btn-primary {
    background-color: #100853;
    color: white;
}


.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-details {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-details:hover {
    background-color: #c4a67d;
}

/* Product favorite icon */
.product-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 2;
}

.product-favorite::before,
.product-favorite::after {
    content: '';
    position: absolute;
    background-color: white;
    top: 5px;
    width: 15px;
    height: 24px;
    border-radius: 15px 15px 0 0;
    transition: background-color 0.3s;
}

.product-favorite::before {
    left: 15px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.product-favorite::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.product-favorite.active::before,
.product-favorite.active::after {
    background-color: #ff0000;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

/* Product details in modal */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.product-details-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details-info {
    padding: 20px;
}

.product-details-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-details-price {
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-details-description {
    color: #666;
    line-height: 1.6;
}

/* Master details in modal */
.master-details-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    text-align: center;
}

.master-details {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

.master-services-list {
    padding-right: 20px;
}

.master-details-photo {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.master-details-info {
    margin-top: 20px;
}

#masterName {
    color: #1a237e;
    margin-bottom: 10px;
    text-align: center;
}

#masterBio {
    color: #333;
    margin-bottom: 10px;
    text-align: justify;
    width: 90%;
    padding-left: 20px;
}

#masterSpecialization {
    color: #666;
    text-align: center;
}

/* Featured masters */
.featured-masters {
    padding: 50px 0;
    background-color: #fff;
}

.featured-masters h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.5em;
}

.masters-preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.master-preview-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.master-preview {
    width: 300px;
    text-align: center;
}

.master-image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-color);
}

.master-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.master-position {
    color: #666;
    margin-bottom: 15px;
}

/* Service items */
.service-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.service-name {
    color: #333;
}

.service-price {
    color: var(--gold-color);
    font-weight: bold;
}

.service-duration {
    color: #666;
    font-size: 0.9em;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-info {
    padding: 20px;
    margin-top: auto;
}

.service-title {
    font-size: 1.35em;
    margin: 0 0 10px;
}

.service-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: auto;
}

.service-actions-admin {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

.service-actions .btn,
.service-actions-admin .btn {
    box-sizing: border-box;
}

.service-actions-admin .btn-edit,
.service-actions-admin .btn-delete {
    margin-top: 0;
    min-height: 44px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

/* Footer styles — всегда внизу страницы */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--gold-color);
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    transition: opacity 0.3s;
}
.social-icon:hover {
    opacity: 0.85;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 24px;
    padding-top: 16px;
}

.footer-legal__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.footer-legal a {
    color: var(--gold-color);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-legal__copy {
    color: rgba(255, 255, 255, 0.75);
}

.privacy-consent {
    margin: 16px 0 20px;
}

.privacy-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
    color: #444;
}

.privacy-consent__input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.privacy-consent__text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-page {
    flex: 1;
    padding: 40px 20px 60px;
}

.privacy-container {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 8px 28px rgba(16, 8, 83, 0.08);
}

.privacy-container h1 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 28px;
}

.privacy-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.privacy-intro {
    margin-bottom: 28px;
    line-height: 1.6;
}

.privacy-container section {
    margin-bottom: 28px;
}

.privacy-container h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 6px;
}

.privacy-container p,
.privacy-container li {
    line-height: 1.65;
    color: #333;
}

.privacy-container ul {
    margin: 10px 0 14px;
    padding-left: 22px;
}

.privacy-container li {
    margin-bottom: 6px;
}

.privacy-contact-list {
    list-style: none;
    padding-left: 0;
}

.privacy-back {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.privacy-back a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .privacy-container {
        padding: 24px 18px;
    }

    .footer-legal__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .master-details {
        grid-template-columns: 1fr;
    }

    .master-preview {
        width: 100%;
        max-width: 300px;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 80px 20px 30px;
    }

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

    .product-details-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для страницы входа */
.login-container {
    max-width: 400px;
    margin: 100px auto 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.login-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
    position: relative;
    /* Для правильного отображения над кружочками */
    z-index: 2;
    /* Чтобы текст был над кружочками */
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    /* Для правильного отображения над кружочками */
    z-index: 2;
    /* Чтобы форма была над кружочками */
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--gold-color);
    outline: none;
}

/* Поле пароля с иконкой «глаз» */
.password-field-wrap {
    position: relative;
    width: 100%;
}

.password-field-wrap .password-field-input {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
}

.password-field-input::-ms-reveal,
.password-field-input::-ms-clear {
    display: none;
}

.password-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    margin: 0;
    color: #777;
    line-height: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

.password-toggle-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.password-toggle-btn .icon-eye-off {
    display: none;
}

.password-toggle-btn.is-visible .icon-eye-open {
    display: none;
}

.password-toggle-btn.is-visible .icon-eye-off {
    display: block;
}

.login-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #c4a67d;
}

.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 14px;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 5px;
    position: relative;
    /* Для правильного отображения над кружочками */
    z-index: 2;
    /* Чтобы сообщение было над кружочками */
}

/* Декоративные элементы - исправлены для отображения внутри контейнера */
.login-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    /* Чтобы кружочки были под контентом */
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: 43px;
    right: 5px;
    width: 100px;
    height: 100px;
    background-color: #f3f2f7;
    border-radius: 50%;
    z-index: 1;
    /* Чтобы кружочки были под контентом */
}

.login-container::before,
.login-container::after {
    pointer-events: none;
}

/* Ссылки «Создать аккаунт» / «Забыли пароль» — над декоративными кругами */
.login-container .auth-links {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 20px;
        margin-top: 80px;
    }

    .reset-password-container {
        margin-top: 72px;
        margin-bottom: 32px;
    }
}

/* Стили для страницы регистрации */
.register-container {
    max-width: 500px;
    margin: 100px auto 50px;
    padding: 35px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.register-container h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 28px;
}

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

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(222, 193, 149, 0.2);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.register-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    font-weight: bold;
}

.register-btn:hover {
    background-color: #c4a67d;
    transform: translateY(-2px);
}

.register-btn:active {
    transform: translateY(0);
}

.login-link {
    margin-top: 20px;
    color: #666;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 14px;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 5px;
}

/* Декоративные элементы */
.register-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.register-container::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.register-container h1,
.register-container .register-form,
.register-container .error-message,
.register-container .success-message,
.register-container > .login-link {
    position: relative;
    z-index: 1;
}

.register-container .success-message {
    color: #27ae60;
    background-color: #e8f8f0;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #2ecc71;
}

.register-container .success-message p {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
}

.register-container .error-message {
    color: #e74c3c;
    background-color: #fdecea;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e74c3c;
    font-size: 14px;
}

/* Стили для полей даты */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    color: #444;
    font-family: inherit;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

input[type="date"]:focus {
    border-color: var(--gold-color);
    outline: none;
}

/* Адаптивность */
@media (max-width: 600px) {
    .register-container {
        width: 90%;
        padding: 20px;
        margin-top: 80px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Восстановление пароля (шрифт как на сайте — наследуется от body) */
.reset-password-container {
    max-width: 440px;
    margin: 100px auto 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.reset-password-container .reset-password-title {
    color: var(--primary-color);
    margin: 0 0 22px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.reset-password-container .steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 22px;
}

.reset-password-container .step {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #555;
    font-size: 14px;
    font-weight: 700;
}

.reset-password-container .step.active {
    background-color: var(--primary-color);
    color: #fff;
}

.reset-password-container .step.completed {
    background-color: #27ae60;
    color: #fff;
}

.reset-password-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.reset-password-container .form-group {
    margin-bottom: 0;
}

.reset-password-container .form-group input {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.reset-password-container .form-group input:focus {
    border-color: var(--gold-color);
    outline: none;
}

.reset-password-btn {
    background-color: var(--gold-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 6px;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.reset-password-btn:hover {
    background-color: #c4a67d;
}

.reset-password-container .error-message {
    color: #e74c3c;
    margin-bottom: 14px;
    font-size: 14px;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.reset-password-container .success-message {
    color: #27ae60;
    margin-bottom: 14px;
    font-size: 15px;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.reset-password-container .login-link {
    margin-top: 18px;
    font-size: 15px;
}

.reset-password-container .login-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.reset-password-container .login-link a:hover {
    text-decoration: underline;
}

.reset-password-container a.reset-password-btn {
    text-decoration: none;
    width: auto;
    min-width: 200px;
    max-width: 100%;
}

/* Стили для страницы отзывов */
.reviews-page {
    width: calc(100% - 40px); /* Учитываем отступы */
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}



.reviews-page a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

.reviews-page a:hover {
    text-decoration: underline;
}

/* Стили для формы выбора типа отзыва */
#select-review-type {
    margin-bottom: 30px;
}

#select-review-type h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

#select-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group label {
    color: var(--primary-color);
    font-weight: bold;
}

.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group select:focus {
    border-color: var(--gold-color);
    outline: none;
}

#select-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#select-btn:hover {
    background-color: #c4a67d;
}

/* Отзывы */

/* Review Page Styles */
.reviews-page {
    max-width: 1200px;
    margin: 80px auto 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}



.reviews-page a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.reviews-page a:hover {
    color: var(--primary-color);
}

/* Review Type Selection */
#select-review-type {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#select-review-type h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

#select-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(222, 193, 149, 0.2);
    outline: none;
}

#select-btn {
    background-color: var(--gold-color);
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    align-self: flex-start;
}

#select-btn:hover {
    background-color: #c4a67d;
    transform: translateY(-2px);
}

/* Add Review Form */
#add-review {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

#add-review h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    display: inline-block;
}

#review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-select {
    display: flex;
    gap: 10px;
}

.rating-select button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
    transition: color 0.3s, transform 0.2s;
}

.rating-select button:hover {
    color: var(--gold-color);
    transform: scale(1.2);
}

.rating-select button.selected {
    color: var(--gold-color);
    transform: scale(1.1);
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    min-height: 150px;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group textarea:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(222, 193, 149, 0.2);
    outline: none;
}

#review-form button[type="submit"] {
    background-color: var(--gold-color);
    color:white;
    border: none;
    padding: 14px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    align-self: flex-start;
}

#review-form button[type="submit"]:hover {
    background-color: #c4a67d;
    transform: translateY(-2px);
}

/* Отзывы */
#all-reviews {
    margin-top: 40px;
}





.review-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: var(--gold-color);
}

.review-date {
    color: #888;
    font-size: 14px;
}

.review-content {
    color: #333;
    line-height: 1.6;
}

.review-service-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.master-name {
    color: var(--primary-color);
    font-weight: 600;

}

.delete-review-btn {
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    margin-top: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
}

.delete-review-btn svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.delete-review-btn:hover {
    background: #c0392b;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .reviews-page {
        padding: 20px;
        margin-top: 60px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-date {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .reviews-page h2 {
        font-size: 1.8em;
    }

    #select-review-type h2,
    #add-review h2,
    #all-reviews h2 {
        font-size: 1.8em;
    }

    .rating-select button {
        font-size: 24px;
    }
}


.book-service-btn {
    background-color: var(--gold-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
    margin-right: 10px;
}

.book-service-btn:hover {
    background-color: #c4a67d;
}

.remove-favorite-service-btn {
    background-color: #f8f8f8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-favorite-service-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(-100px);
    transition: transform 0.3s ease;
    max-width: 300px;
    font-size: 14px;
    text-align: center;
}

.notification.show {
    transform: translateY(0);
}

.notification.error {
    background-color: rgba(231, 76, 60, 0.9);
}

/* Unified site notices */
.site-notice-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-notice {
    min-width: 240px;
    max-width: 360px;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 14px;
}

.site-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.site-notice.success {
    background: linear-gradient(135deg, #1e9f55, #198754);
}

.site-notice.error {
    background: linear-gradient(135deg, #cf2e2e, #dc3545);
}

.site-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.site-confirm-overlay.show {
    opacity: 1;
}

.site-confirm-dialog {
    background: #fff;
    border-radius: 14px;
    width: calc(100% - 32px);
    max-width: 430px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(16, 8, 83, 0.25);
}

.site-confirm-dialog h3 {
    margin: 0 0 10px;
    color: #100853;
}

.site-confirm-dialog p {
    margin: 0 0 16px;
    color: #444;
}

.site-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.site-confirm-actions button {
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 600;
    cursor: pointer;
}

.site-confirm-cancel {
    background: #f0f0f5;
    color: #3f3f5a;
}

.site-confirm-ok {
    background: #100853;
    color: #fff;
}
/* Стили для восстановления пароля */
.auth-links {
        display: flex;
        justify-content: flex-start;
        gap: 20px;
        align-items: center;
        margin-top: 15px;

}

.forgot-password-link,
.register-link {
    margin: 0;
    font-size: 13px;
}

.forgot-password-link a,
.register-link a {
    color: var(--primary-color);
    text-decoration: none;

}

.forgot-password-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}
.form-hint {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* AI chat widget */
#luna-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3000;
    font-family: Arial, sans-serif;
}

.luna-chat-toggle {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #100853;
    color: #dec195;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 8, 83, 0.35);
}

.luna-chat-panel {
    width: 340px;
    max-width: calc(100vw - 24px);
    height: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    position: absolute;
    right: 0;
    bottom: 72px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.luna-chat-panel.open {
    display: flex;
}

.luna-chat-header {
    background: #100853;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.luna-chat-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.luna-chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f6fb;
}

.luna-chat-message {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
}

.luna-chat-message.user {
    margin-left: auto;
    background: #100853;
    color: #fff;
}

.luna-chat-message.assistant {
    margin-right: auto;
    background: #fff;
    color: #2f2f2f;
    border: 1px solid #e5e7ef;
}

.luna-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e9ebf2;
    background: #fff;
}

#luna-chat-input {
    flex: 1;
    border: 1px solid #d4d7e2;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
}

#luna-chat-input:focus {
    outline: none;
    border-color: #100853;
}

#luna-chat-send {
    border: none;
    border-radius: 8px;
    background: #100853;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    font-size: 13px;
}

#luna-chat-send:hover {
    background: #0a0637;
}

.mobile-store-nav {
    display: none;
}

@media (max-width: 767px) {
    .btn-add-product,
    .btn-add-service {
        right: 84px;
        bottom: 12px;
        width: 56px;
        height: 56px;
        transition: left 0.28s ease, right 0.28s ease, transform 0.2s ease;
    }

    body.menu-open .btn-add-product,
    body.menu-open .btn-add-service,
    body.menu-open .btn-add-news {
        z-index: 10001;
    }

    #luna-chat-widget {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        z-index: 4000;
    }

    .luna-chat-toggle {
        width: 52px;
        height: 52px;
        font-size: 15px;
    }

    .luna-chat-panel {
        position: fixed;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(80px, calc(env(safe-area-inset-bottom, 0px) + 72px));
        top: auto;
        width: auto !important;
        max-width: none !important;
        height: min(72vh, 560px);
        max-height: calc(100dvh - 120px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    }

    .luna-chat-messages {
        min-height: 0;
        flex: 1;
        color: #1a1a1a;
    }

    .luna-chat-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    #luna-chat-input {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
        color: #111;
        background: #fff;
        -webkit-text-fill-color: #111;
    }

    #luna-chat-send {
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* Доступность WCAG */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
}

html {
    --a11y-font-scale: 1;
    font-size: calc(16px * var(--a11y-font-scale, 1));
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) footer.footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
}

.header-actions .icon,
.header-actions .search-btn,
.a11y-header-btn {
    flex: 0 0 auto;
}

.header-actions .icon,
.header-actions .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    color: var(--white-color);
}

.header-actions .icon {
    width: 30px;
    height: 30px;
}

.header-actions .search-btn {
    width: 40px;
    height: 40px;
}

.a11y-header-btn {
    border: 1px solid rgba(222, 193, 149, 0.45);
    background: rgba(16, 8, 83, 0.35);
    color: var(--white-color);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.a11y-header-btn:hover {
    background: rgba(222, 193, 149, 0.28);
    border-color: rgba(222, 193, 149, 0.8);
    transform: translateY(-1px);
}

.a11y-header-btn[aria-expanded='true'] {
    background: rgba(222, 193, 149, 0.35);
    border-color: rgba(222, 193, 149, 1);
}

.a11y-eye-icon {
    display: inline-flex;
    line-height: 0;
}

.a11y-eye-svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.header-actions .search-container {
    display: inline-flex;
    align-items: center;
    gap: var(--header-icon-gap);
    position: relative;
    margin-right: -10px;
}

.header-actions .search-container .search-btn {
    margin-left: -6px;
}

.a11y-panel {
    position: fixed;
    top: 70px;
    right: 18px;
    z-index: 2500;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    padding: 14px;
    min-width: 272px;
    max-width: min(360px, calc(100vw - 24px));
    max-height: min(85vh, 560px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    zoom: 1;
    -webkit-overflow-scrolling: touch;
}

.a11y-panel[hidden] {
    display: none !important;
}

.a11y-panel-title {
    font-weight: 700;
    font-size: 15px;
    color: #100853;
}

.a11y-action-btn {
    border: 1px solid #100853;
    background: #fff;
    color: #100853;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.a11y-panel-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.a11y-panel-label {
    font-size: 12px;
    font-weight: 600;
    color: #100853;
    letter-spacing: 0.02em;
}

.a11y-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.a11y-option-btn {
    flex: 1 1 0;
    min-width: 72px;
    min-height: 44px;
    border: 1px solid #100853;
    background: #fff;
    color: #100853;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.a11y-option-btn:hover {
    background: rgba(222, 193, 149, 0.25);
    border-color: #c4a67d;
}

.a11y-option-btn.is-active {
    background: #100853;
    color: #fff;
    border-color: #100853;
}

.a11y-font-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.a11y-font-preview {
    display: block;
    font-weight: 700;
    line-height: 1;
}

.a11y-font-preview-sm {
    font-size: 13px;
}

.a11y-font-preview-md {
    font-size: 17px;
}

.a11y-font-preview-lg {
    font-size: 21px;
}

.a11y-font-scale-note {
    font-size: 11px;
    color: #333333;
    text-align: center;
    margin-top: -2px;
}

.a11y-scheme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.a11y-scheme-swatch {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 2px solid #cfcfe0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.a11y-scheme-swatch:hover {
    border-color: #c4a67d;
}

.a11y-scheme-swatch.is-active {
    border-color: #100853;
    box-shadow: 0 0 0 2px rgba(16, 8, 83, 0.22);
}

.a11y-swatch-visual {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: block;
    box-sizing: border-box;
}

.a11y-swatch-normal {
    background: linear-gradient(90deg, #ffffff 50%, #1a1a1a 50%);
}

.a11y-swatch-inverse {
    background: #16142a;
    box-shadow: inset 0 0 0 2px #dec195;
}

.a11y-swatch-byellow {
    background: linear-gradient(180deg, #fff9c4 58%, #0d47a1 58%);
}

.a11y-swatch-hc {
    background: linear-gradient(90deg, #ffffff 50%, #000000 50%);
}

.a11y-swatch-beige {
    background: linear-gradient(135deg, #f4e9d8 40%, #4e342e 40%);
}

.a11y-speech-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
    text-align: left;
    min-height: 48px;
    overflow: visible;
}

.a11y-speech-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    overflow: visible;
}

/* Иконка громкости (css.gg — gg-volume), внутри кнопки озвучивания */
.a11y-speech-icon .gg-volume {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    transform-origin: left center;
    width: 8px;
    height: 8px;
    border: 2px solid;
    border-right: 0;
    -webkit-perspective: 12px;
    perspective: 12px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: currentColor;
    --ggs: 1.05;
}

.a11y-speech-icon .gg-volume::after,
.a11y-speech-icon .gg-volume::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
}

.a11y-speech-icon .gg-volume::before {
    left: 2px;
    transform: rotateY(-90deg);
    width: 10px;
    height: 10px;
    border: 2px solid;
    border-left: 0;
    top: -3px;
}

.a11y-speech-icon .gg-volume::after {
    width: 8px;
    height: 16px;
    border: 6px double;
    border-left: 0;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    right: -14px;
    top: -6px;
}

.a11y-speech-label {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
    padding-left: 14px;
}

.a11y-speech-hint {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.a11y-speech-toggle.is-active {
    background: #100853 !important;
    color: #fff !important;
    border-color: #100853 !important;
}

.a11y-speech-toggle.is-active .gg-volume {
    color: #fff;
}

html[data-a11y-images='off'] body img {
    display: none !important;
}

html[data-a11y-images='off'] .header img,
html[data-a11y-images='off'] .a11y-panel img {
    display: block !important;
}

.a11y-img-alt-caption {
    display: block;
    margin: 6px 0 10px;
    padding: 8px 10px;
    border: 1px dashed #100853;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    background: #faf8ff;
    color: #100853;
}

html[data-a11y-scheme='inverse'] .a11y-img-alt-caption {
    background: #1e1c32;
    border-color: #dec195;
    color: #ececf3;
}

html[data-a11y-contrast='high'] body {
    background: #ffffff !important;
    color: #111111 !important;
    line-height: 1.65 !important;
    letter-spacing: 0.01em !important;
}

html[data-a11y-contrast='high'] .header,
html[data-a11y-contrast='high'] .footer,
html[data-a11y-contrast='high'] .nav-menu,
html[data-a11y-contrast='high'] .modal-content,
html[data-a11y-contrast='high'] .search-form,
html[data-a11y-contrast='high'] .a11y-panel,
html[data-a11y-contrast='high'] .site-confirm-dialog {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #111111 !important;
    box-shadow: none !important;
}

html[data-a11y-contrast='high'] .header .header-actions .search-btn {
    color: #111111 !important;
}

html[data-a11y-contrast='high'] a,
html[data-a11y-contrast='high'] .nav-item {
    color: #0033aa !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

html[data-a11y-contrast='high'] .btn,
html[data-a11y-contrast='high'] .a11y-action-btn,
html[data-a11y-contrast='high'] .a11y-option-btn,
html[data-a11y-contrast='high'] .site-confirm-actions button {
    background: #ffffff !important;
    color: #111111 !important;
    border: 2px solid #111111 !important;
    font-weight: 700 !important;
}

html[data-a11y-contrast='high'] .a11y-option-btn.is-active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

html[data-a11y-contrast='high'] input,
html[data-a11y-contrast='high'] textarea,
html[data-a11y-contrast='high'] select {
    background: #ffffff !important;
    color: #111111 !important;
    border: 2px solid #111111 !important;
}

html[data-a11y-contrast='high'] .icon,
html[data-a11y-contrast='high'] .search-btn {
    filter: contrast(180%) saturate(0%);
}

html[data-a11y-contrast='high'] :focus-visible {
    outline: 4px solid #111111 !important;
    outline-offset: 3px !important;
}

/* Инверсная схема (как на типовых гос/вуз сайтах): тёмный фон, светлый текст, акцент — золото бренда */
html[data-a11y-scheme='inverse'] {
    --primary-color: #e8d4b0;
    --gold-color: #f0d9a8;
}

html[data-a11y-scheme='inverse'] body {
    background: #0c0b16 !important;
    color: #ececf4 !important;
    line-height: 1.65 !important;
}

html[data-a11y-scheme='inverse'] .header {
    background: #16142a !important;
    color: #fff !important;
    border-color: #3d3858 !important;
}

html[data-a11y-scheme='inverse'] .footer {
    background: #12101f !important;
    color: #ddd !important;
    border-color: #3d3858 !important;
}

html[data-a11y-scheme='inverse'] .nav-menu {
    background: #1a1830 !important;
    color: #ececf4 !important;
}

html[data-a11y-scheme='inverse'] .nav-menu__scroll {
    background: #1a1830 !important;
}

html[data-a11y-scheme='inverse'] .nav-menu a,
html[data-a11y-scheme='inverse'] .nav-item {
    color: #f0d9a8 !important;
}

html[data-a11y-scheme='inverse'] a:not(.a11y-option-btn):not(.a11y-action-btn):not(.a11y-header-btn):not(.btn):not(.mobile-store-nav__item) {
    color: #c4a67d !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
}

html[data-a11y-scheme='inverse'] a.btn,
html[data-a11y-scheme='inverse'] .btn {
    color: #ffffff !important;
}

html[data-a11y-scheme='inverse'] .search-form {
    background: #1e1c32 !important;
    color: #ececf4 !important;
    border-color: #4a4668 !important;
}

html[data-a11y-scheme='inverse'] .modal-content,
html[data-a11y-scheme='inverse'] .site-confirm-dialog {
    background: #1e1c32 !important;
    color: #ececf4 !important;
    border-color: #dec195 !important;
}

html[data-a11y-scheme='inverse'] .btn,
html[data-a11y-scheme='inverse'] .site-confirm-actions button {
    background: #252240 !important;
    color: #ececf4 !important;
    border: 2px solid #dec195 !important;
}

html[data-a11y-scheme='inverse'] input,
html[data-a11y-scheme='inverse'] textarea,
html[data-a11y-scheme='inverse'] select {
    background: #252240 !important;
    color: #ececf4 !important;
    border: 2px solid #6a6588 !important;
}

html[data-a11y-scheme='inverse'] .header .header-actions .search-btn,
html[data-a11y-scheme='inverse'] .a11y-header-btn {
    color: #fff !important;
    border-color: rgba(222, 193, 149, 0.55) !important;
}

html[data-a11y-scheme='inverse'] .a11y-panel {
    background: #1e1c32 !important;
    color: #ececf4 !important;
    border-color: #dec195 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-a11y-scheme='inverse'] .a11y-panel-title,
html[data-a11y-scheme='inverse'] .a11y-panel-label {
    color: #f0d9a8 !important;
}

html[data-a11y-scheme='inverse'] .a11y-option-btn {
    background: #252240 !important;
    color: #ececf4 !important;
    border-color: #dec195 !important;
}

html[data-a11y-scheme='inverse'] .a11y-option-btn:hover {
    background: #2f2c48 !important;
}

html[data-a11y-scheme='inverse'] .a11y-option-btn.is-active {
    background: #dec195 !important;
    color: #100853 !important;
    border-color: #dec195 !important;
}

html[data-a11y-scheme='inverse'] .a11y-scheme-swatch {
    border-color: #6a6588;
    background: #252240;
}

html[data-a11y-scheme='inverse'] .a11y-scheme-swatch.is-active {
    border-color: #dec195;
    box-shadow: 0 0 0 2px rgba(222, 193, 149, 0.45);
}

html[data-a11y-scheme='inverse'] .a11y-action-btn {
    background: #252240 !important;
    color: #ececf4 !important;
    border: 2px solid #dec195 !important;
}

html[data-a11y-scheme='inverse'] .a11y-font-scale-note {
    color: #b8b4d0 !important;
}

html[data-a11y-scheme='inverse'] .mobile-store-nav {
    background: #16142a !important;
    border-top-color: #3d3858 !important;
    color: #ececf4 !important;
}

html[data-a11y-scheme='inverse'] .mobile-store-nav__item {
    color: #f5f5f5 !important;
}

html[data-a11y-scheme='inverse'] .mobile-store-nav__item.is-active {
    color: #f0d9a8 !important;
    background: rgba(222, 193, 149, 0.22) !important;
}

html[data-a11y-scheme='inverse'] .mobile-store-nav__label {
    color: inherit !important;
}

html[data-a11y-scheme='inverse'] :focus-visible {
    outline: 3px solid #dec195 !important;
    outline-offset: 2px !important;
}

/* Синий на жёлтом (типовая схема для слабовидящих) */
html[data-a11y-scheme='byellow'] {
    --primary-color: #0a1f63;
    --gold-color: #1565c0;
}

html[data-a11y-scheme='byellow'] body {
    background: #fffce8 !important;
    color: #0a1548 !important;
    line-height: 1.65 !important;
}

html[data-a11y-scheme='byellow'] .header {
    background: #0d1b5c !important;
    color: #fff !important;
}

html[data-a11y-scheme='byellow'] .footer {
    background: #e8f0ff !important;
    color: #0a1548 !important;
    border-color: #90caf9 !important;
}

html[data-a11y-scheme='byellow'] .nav-menu {
    background: #f1f7ff !important;
    color: #0a1548 !important;
}

html[data-a11y-scheme='byellow'] .nav-menu a,
html[data-a11y-scheme='byellow'] .nav-item {
    color: #0d47a1 !important;
}

html[data-a11y-scheme='byellow'] a:not(.a11y-option-btn):not(.a11y-action-btn):not(.a11y-header-btn):not(.a11y-scheme-swatch):not(.btn):not(.mobile-store-nav__item) {
    color: #0d47a1 !important;
    text-decoration: underline !important;
}

html[data-a11y-scheme='byellow'] a.btn,
html[data-a11y-scheme='byellow'] .btn {
    color: #ffffff !important;
}

html[data-a11y-scheme='byellow'] .search-form {
    background: #ffffff !important;
    color: #0a1548 !important;
    border-color: #90caf9 !important;
}

html[data-a11y-scheme='byellow'] .modal-content,
html[data-a11y-scheme='byellow'] .site-confirm-dialog {
    background: #ffffff !important;
    color: #0a1548 !important;
    border-color: #0d47a1 !important;
}

html[data-a11y-scheme='byellow'] .btn,
html[data-a11y-scheme='byellow'] .site-confirm-actions button {
    background: #0d47a1 !important;
    color: #fff !important;
    border: 2px solid #0a1548 !important;
}

html[data-a11y-scheme='byellow'] input,
html[data-a11y-scheme='byellow'] textarea,
html[data-a11y-scheme='byellow'] select {
    background: #ffffff !important;
    color: #0a1548 !important;
    border: 2px solid #0d47a1 !important;
}

html[data-a11y-scheme='byellow'] .a11y-panel {
    background: #ffffff !important;
    color: #0a1548 !important;
    border-color: #0d47a1 !important;
}

html[data-a11y-scheme='byellow'] .a11y-panel-title,
html[data-a11y-scheme='byellow'] .a11y-panel-label {
    color: #0d47a1 !important;
}

html[data-a11y-scheme='byellow'] .a11y-option-btn.is-active,
html[data-a11y-scheme='byellow'] .a11y-speech-toggle.is-active {
    background: #0d47a1 !important;
    color: #fff !important;
    border-color: #0a1548 !important;
}

html[data-a11y-scheme='byellow'] .mobile-store-nav {
    background: #0d1b5c !important;
    color: #ffffff !important;
    border-top-color: #1565c0 !important;
}

html[data-a11y-scheme='byellow'] .mobile-store-nav__item {
    color: #ffffff !important;
}

html[data-a11y-scheme='byellow'] .mobile-store-nav__item.is-active {
    color: #fffce8 !important;
    background: rgba(255, 252, 232, 0.18) !important;
}

html[data-a11y-scheme='byellow'] .mobile-store-nav__label {
    color: inherit !important;
}

html[data-a11y-scheme='byellow'] .a11y-img-alt-caption {
    background: #fffef5;
    border-color: #0d47a1;
    color: #0a1548;
}

/* Чёрным по белому */
html[data-a11y-scheme='hc-light'] {
    --primary-color: #000000;
    --gold-color: #333333;
}

html[data-a11y-scheme='hc-light'] body {
    background: #ffffff !important;
    color: #000000 !important;
    line-height: 1.65 !important;
}

html[data-a11y-scheme='hc-light'] .header,
html[data-a11y-scheme='hc-light'] .footer,
html[data-a11y-scheme='hc-light'] .nav-menu,
html[data-a11y-scheme='hc-light'] .modal-content,
html[data-a11y-scheme='hc-light'] .search-form,
html[data-a11y-scheme='hc-light'] .a11y-panel,
html[data-a11y-scheme='hc-light'] .site-confirm-dialog {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

html[data-a11y-scheme='hc-light'] .header .header-actions .search-btn {
    color: #000000 !important;
}

html[data-a11y-scheme='hc-light'] a,
html[data-a11y-scheme='hc-light'] .nav-item {
    color: #0000cc !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

html[data-a11y-scheme='hc-light'] .btn,
html[data-a11y-scheme='hc-light'] .a11y-action-btn,
html[data-a11y-scheme='hc-light'] .a11y-option-btn,
html[data-a11y-scheme='hc-light'] .site-confirm-actions button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    font-weight: 700 !important;
}

html[data-a11y-scheme='hc-light'] .a11y-option-btn.is-active,
html[data-a11y-scheme='hc-light'] .a11y-speech-toggle.is-active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

html[data-a11y-scheme='hc-light'] input,
html[data-a11y-scheme='hc-light'] textarea,
html[data-a11y-scheme='hc-light'] select {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

html[data-a11y-scheme='hc-light'] .mobile-store-nav {
    background: #ffffff !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
}

html[data-a11y-scheme='hc-light'] .mobile-store-nav__item {
    color: #000000 !important;
}

html[data-a11y-scheme='hc-light'] .mobile-store-nav__item.is-active {
    color: #000000 !important;
    background: #eeeeee !important;
    border: 1px solid #000000 !important;
}

html[data-a11y-scheme='hc-light'] .mobile-store-nav__label {
    color: inherit !important;
}

html[data-a11y-scheme='hc-light'] .a11y-img-alt-caption {
    background: #ffffff;
    border-color: #000;
    color: #000;
}

/* Коричневым по бежевому */
html[data-a11y-scheme='beige'] {
    --primary-color: #4e342e;
    --gold-color: #6d4c41;
}

html[data-a11y-scheme='beige'] body {
    background: #f4e9d8 !important;
    color: #3e2723 !important;
    line-height: 1.65 !important;
}

html[data-a11y-scheme='beige'] .header {
    background: #4e342e !important;
    color: #fff8e7 !important;
}

html[data-a11y-scheme='beige'] .footer {
    background: #efe0cc !important;
    color: #3e2723 !important;
    border-color: #a1887f !important;
}

html[data-a11y-scheme='beige'] .nav-menu {
    background: #faf3ea !important;
    color: #3e2723 !important;
}

html[data-a11y-scheme='beige'] .nav-menu a,
html[data-a11y-scheme='beige'] .nav-item {
    color: #5d4037 !important;
}

html[data-a11y-scheme='beige'] a:not(.a11y-option-btn):not(.a11y-action-btn):not(.a11y-header-btn):not(.a11y-scheme-swatch):not(.btn):not(.mobile-store-nav__item) {
    color: #4e342e !important;
    text-decoration: underline !important;
}

html[data-a11y-scheme='beige'] a.btn,
html[data-a11y-scheme='beige'] .btn {
    color: #ffffff !important;
}

html[data-a11y-scheme='beige'] .search-form {
    background: #fffaf2 !important;
    color: #3e2723 !important;
    border-color: #a1887f !important;
}

html[data-a11y-scheme='beige'] .modal-content,
html[data-a11y-scheme='beige'] .site-confirm-dialog {
    background: #fffaf2 !important;
    color: #3e2723 !important;
    border-color: #6d4c41 !important;
}

html[data-a11y-scheme='beige'] .btn,
html[data-a11y-scheme='beige'] .site-confirm-actions button {
    background: #5d4037 !important;
    color: #fff8e7 !important;
    border: 2px solid #3e2723 !important;
}

html[data-a11y-scheme='beige'] input,
html[data-a11y-scheme='beige'] textarea,
html[data-a11y-scheme='beige'] select {
    background: #ffffff !important;
    color: #3e2723 !important;
    border: 2px solid #6d4c41 !important;
}

html[data-a11y-scheme='beige'] .a11y-panel {
    background: #fffaf2 !important;
    color: #3e2723 !important;
    border-color: #6d4c41 !important;
}

html[data-a11y-scheme='beige'] .a11y-panel-title,
html[data-a11y-scheme='beige'] .a11y-panel-label {
    color: #4e342e !important;
}

html[data-a11y-scheme='beige'] .a11y-option-btn.is-active,
html[data-a11y-scheme='beige'] .a11y-speech-toggle.is-active {
    background: #4e342e !important;
    color: #fff8e7 !important;
    border-color: #3e2723 !important;
}

html[data-a11y-scheme='beige'] .mobile-store-nav {
    background: #4e342e !important;
    color: #fff8e7 !important;
    border-top-color: #8d6e63 !important;
}

html[data-a11y-scheme='beige'] .mobile-store-nav__item {
    color: #fff8e7 !important;
}

html[data-a11y-scheme='beige'] .mobile-store-nav__item.is-active {
    color: #ffffff !important;
    background: rgba(255, 248, 231, 0.2) !important;
}

html[data-a11y-scheme='beige'] .mobile-store-nav__label {
    color: inherit !important;
}

html[data-a11y-scheme='beige'] .a11y-img-alt-caption {
    background: #fffaf2;
    border-color: #6d4c41;
    color: #3e2723;
}

html[data-a11y-scheme='byellow'] :focus-visible,
html[data-a11y-scheme='hc-light'] :focus-visible,
html[data-a11y-scheme='beige'] :focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 2px !important;
}

/* Версия для слабовидящих: раскладка и контраст (ГОСТ Р 52872-2019 / WCAG 2.1 AA) */
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) footer.footer {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .product-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .service-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .favorite-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .cart-table-row,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .cart-container,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .category-filter button {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .category-filter button {
    font-size: 0.875rem !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-table-row {
    width: 100% !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) #luna-chat-widget,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .luna-chat-panel {
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main h1,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main h2,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .masters-title,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .specialisations-title,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-text h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    max-width: 100%;
    hyphens: auto;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main h3,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main h4 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main p,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main li,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main label,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main td,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main th,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .master-position,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .master-name,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .service-masters,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .product-stock,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .notification-setting label,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .profile-info,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-meta,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .stat-label {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #1a1a1a !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .service-price,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .product-price,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .service-title,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .product-title {
    color: #100853 !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main input:not([type='checkbox']):not([type='radio']),
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main textarea,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    min-height: 44px;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main textarea {
    min-height: 88px;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) main button,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main .btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main a.btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main .checkout-btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main .place-order-btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main .save-btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main .save-btn1,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) main .master-details-btn {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.3 !important;
    padding: 10px 14px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn-primary,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn-secondary {
    border: 2px solid #100853 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn-primary,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) a.btn.btn-primary {
    background: #100853 !important;
    color: #ffffff !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn-secondary,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) a.btn.btn-secondary {
    background: #ffffff !important;
    color: #100853 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .checkout-btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .place-order-btn {
    background-color: #100853 !important;
    color: #ffffff !important;
    border: 2px solid #100853 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .save-btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .save-btn1 {
    width: auto !important;
    min-width: 130px !important;
    max-width: 100% !important;
    align-self: stretch !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .notification-setting {
    align-items: flex-start !important;
    gap: 8px;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .notification-setting label {
    flex: 1 1 auto !important;
    min-width: 0;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-container,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-text,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-images,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .profile-gray-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .modal-content,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .reviews-form-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .cart-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .gallery,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .flickity-viewport,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-images,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .gallery-cell {
    max-width: 100% !important;
    overflow: hidden !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .gallery-cell img,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-images img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .product-actions,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .service-actions,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .favorite-actions,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .product-actions-admin,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .service-actions-admin {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .product-actions .btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .service-actions .btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .product-actions-admin .btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .service-actions-admin .btn {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 1rem !important;
    padding: 10px 12px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .favorite-card {
    flex-direction: column !important;
    min-height: 0 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .favorite-image {
    width: 100% !important;
    min-width: 0 !important;
    max-height: 180px !important;
    aspect-ratio: 16 / 10 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .favorite-details {
    flex-direction: column !important;
    align-items: stretch !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .favorite-description {
    display: -webkit-box !important;
    font-size: 1rem !important;
    color: #1a1a1a !important;
    -webkit-line-clamp: 2 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .favorite-actions {
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-table-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
        "product"
        "price"
        "sum"
        "qty"
        "actions" !important;
    gap: 10px !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-product,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-price,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-qty,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-sum,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-actions {
    grid-area: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    align-self: stretch !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-product {
    grid-area: product !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-price {
    grid-area: price !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-sum {
    grid-area: sum !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-qty {
    grid-area: qty !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-actions {
    grid-area: actions !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 44px !important;
    align-self: flex-start !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-col-product[data-label]::before {
    display: block !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) body.page-store-mobile .cart-table td[data-label]:not([data-label=''])::before {
    display: block !important;
    margin-bottom: 4px !important;
    font-size: 0.875rem !important;
    color: #1a1a1a !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mobile-store-nav__label {
    font-size: 0.625rem !important;
    line-height: 1.2 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mobile-store-nav__item {
    min-height: 3rem !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Панель настроек — фиксированный размер, не зависит от корневого rem */
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .a11y-panel {
    font-size: 14px !important;
}

/* Контраст кнопок в цветовых схемах */
html[data-a11y-scheme='beige'] .checkout-btn,
html[data-a11y-scheme='beige'] .place-order-btn,
html[data-a11y-scheme='inverse'] .checkout-btn,
html[data-a11y-scheme='inverse'] .place-order-btn,
html[data-a11y-scheme='byellow'] .checkout-btn,
html[data-a11y-scheme='byellow'] .place-order-btn,
html[data-a11y-scheme='hc-light'] .checkout-btn,
html[data-a11y-scheme='hc-light'] .place-order-btn {
    color: #ffffff !important;
    border: 2px solid #000000 !important;
}

html[data-a11y-scheme='beige'] .checkout-btn,
html[data-a11y-scheme='beige'] .place-order-btn {
    background-color: #4e342e !important;
    border-color: #3e2723 !important;
}

html[data-a11y-scheme='inverse'] .checkout-btn,
html[data-a11y-scheme='inverse'] .place-order-btn {
    background-color: #252240 !important;
    border-color: #dec195 !important;
    color: #ffffff !important;
}

html[data-a11y-scheme='byellow'] .checkout-btn,
html[data-a11y-scheme='byellow'] .place-order-btn {
    background-color: #0d47a1 !important;
    border-color: #0a1548 !important;
}

html[data-a11y-scheme='hc-light'] .checkout-btn,
html[data-a11y-scheme='hc-light'] .place-order-btn {
    background-color: #000000 !important;
}

html[data-a11y-scheme='beige'] .save-btn,
html[data-a11y-scheme='beige'] .save-btn1,
html[data-a11y-scheme='hc-light'] .save-btn,
html[data-a11y-scheme='hc-light'] .save-btn1 {
    color: #ffffff !important;
}

html[data-a11y-scheme='hc-light'] .save-btn,
html[data-a11y-scheme='hc-light'] .save-btn1 {
    background: #000000 !important;
    border: 2px solid #000000 !important;
}

/* Отзывы — увеличение текста */
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .reviews-page h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .reviews-subtitle,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-stat span,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-meta,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-form-card,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-form-card label,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .pill-btn,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .sort-wrap label,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .reviews-page select,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .reviews-page textarea {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #1a1a1a !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-stat b {
    font-size: 1.25rem !important;
    color: #100853 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-form-card h3 {
    font-size: 1.2rem !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-head strong {
    font-size: 1.05rem !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .review-photo {
    max-width: 100% !important;
    height: auto !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .reviews-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

/* Новости — увеличение текста */
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .news-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .news-date,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .news-excerpt,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .news-author,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .news-card-title {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #1a1a1a !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn-read-more {
    font-size: 1rem !important;
    min-height: 44px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

/* Обучение — увеличение текста и раскладка */
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-hero h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-hero-desc,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-type-content,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-type-tagline,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-sched-note,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-price-desc,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-section-sub,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-sched-type,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-sched-spots,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .btn-book,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-type-readmore,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-sched-btn {
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-section-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-type-card h3 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-price-amount {
    font-size: 1.75rem !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-types-grid {
    grid-template-columns: 1fr !important;
}

html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-type-actions .btn-book,
html[data-a11y-font-step]:not([data-a11y-font-step='0']) .mc-sched-btn {
    width: 100% !important;
    white-space: normal !important;
    min-height: 44px !important;
}

html[data-a11y-images='off'] .review-photo {
    display: block !important;
}

/* Панель настроек на мобильных — фиксированный размер, прокрутка */
@media (max-width: 767px) {
    .a11y-panel:not([hidden]) {
        top: 52px;
        right: 10px;
        left: 10px;
        bottom: auto;
        min-width: 0;
        max-width: none;
        max-height: min(62vh, 420px);
        padding: 12px;
        gap: 10px;
    }

    .a11y-panel-title {
        font-size: 14px !important;
    }

    .a11y-panel-label {
        font-size: 11px !important;
    }

    .a11y-option-btn {
        min-width: 60px;
        min-height: 40px;
        font-size: 12px !important;
        padding: 5px 8px;
    }

    .a11y-scheme-swatch {
        width: 40px;
        height: 40px;
    }

    .a11y-swatch-visual {
        width: 24px;
        height: 24px;
    }

    .a11y-speech-toggle {
        min-height: 44px;
    }

    .a11y-speech-label {
        font-size: 12px !important;
    }

    .a11y-speech-hint {
        font-size: 10px !important;
        line-height: 1.35;
    }

    .a11y-action-btn {
        font-size: 12px !important;
        padding: 8px;
    }

    html[data-a11y-font-step]:not([data-a11y-font-step='0']) .services-grid,
    html[data-a11y-font-step]:not([data-a11y-font-step='0']) .products-grid,
    html[data-a11y-font-step]:not([data-a11y-font-step='0']) .favorites-grid,
    html[data-a11y-font-step]:not([data-a11y-font-step='0']) .masters-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-container {
        flex-direction: column !important;
        margin: 20px auto !important;
    }

    html[data-a11y-font-step]:not([data-a11y-font-step='0']) .welcome-images {
        height: auto !important;
        min-height: 200px;
    }
}


/* =========================================================
   Mobile-first global adaptive layer (project-wide)
   390px+ phones -> tablets -> desktop
   ========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

/* Шапка: «лупа», профиль, корзина — псевдоэлементы с border рассчитаны под content-box */
.icon::before,
.icon::after {
    box-sizing: content-box;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video,
canvas {
    height: auto;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.a11y-header-btn,
.burger-toggle-label,
.nav-menu a,
.nav-menu .nav-item,
.luna-chat-toggle,
.btn-add-product,
.btn-add-service {
    min-width: 44px;
    min-height: 44px;
}

table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile phones (default focus) */
@media (max-width: 767px) {
    .header {
        padding: 10px 0;
    }

    .header-container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
    }

    .header-actions {
        gap: 8px;
        position: relative;
        z-index: 1100;
    }

    .header-burger-wrap .burger-toggle-label {
        width: 30px !important;
        height: 30px !important;
    }

    .header-burger-wrap .burger-toggle-icon {
        width: 20px !important;
        box-shadow:
            0 -7px 0 var(--gold-color),
            0 7px 0 var(--gold-color);
    }

    .nav-menu {
        width: min(300px, 88vw);
        z-index: 10000;
    }

    .burger-toggle-input:checked ~ .nav-menu,
    .nav-menu.is-open {
        top: 50px !important;
        height: calc(100dvh - 50px) !important;
        max-height: calc(100dvh - 50px) !important;
    }

    .nav-menu__scroll {
        padding-top: 12px;
        padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        background-color: var(--primary-color);
    }

    .nav-menu__scroll > ul {
        padding-bottom: 16px;
    }

    .nav-menu-end-spacer {
        display: block;
        height: 56px;
        margin: 0;
        padding: 0;
        border: none;
        list-style: none;
    }

    body.admin-submenu-open .nav-menu-end-spacer {
        height: 80px;
    }

    .nav-submenu {
        transition: none !important;
    }

    .nav-submenu.open {
        max-height: none !important;
        overflow: visible !important;
    }

    .nav-has-sub {
        margin-bottom: 4px;
    }

    .header .header-actions .icon {
        width: 27px;
        height: 27px;
    }

    .header-actions .search-btn {
        width: 28px;
        height: 28px;
    }

    .a11y-header-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }

    .header-search-svg {
        width: 31px;
        height: 31px;
    }

    .a11y-eye-svg {
        width: 16px;
        height: 16px;
    }

    .header .header-actions .user-icon::before {
        width: 11px;
        height: 11px;
    }

    .header .header-actions .user-icon::after {
        width: 20px;
        height: 11px;
    }

    .header .header-actions .heart-icon::before,
    .header .header-actions .heart-icon::after {
        width: 13px;
        height: 21px;
    }

    .header .header-actions .heart-icon::before {
        left: 13px;
    }

    .header .header-actions .cart-icon::before {
        top: 9px;
        left: 4px;
        width: 18px;
        height: 13px;
    }

    .header .header-actions .cart-icon::after {
        top: 4px;
        left: 7px;
        width: 12px;
        height: 7px;
    }

    .search-form {
        position: fixed;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        top: max(72px, calc(env(safe-area-inset-top, 0px) + 52px));
        width: auto !important;
        max-width: none !important;
        margin-top: 0;
        z-index: 2600;
        color: #111;
        background-color: #fff !important;
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .search-form input[type='text'] {
        color: #111 !important;
        background: #fff !important;
        -webkit-text-fill-color: #111;
        font-size: 16px !important;
        min-height: 44px;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .search-form input::placeholder {
        color: #666;
        opacity: 1;
    }

    .search-form button[type='submit'] {
        color: #fff !important;
        min-height: 44px;
        width: 100%;
    }

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

    .container,
    .checkout-container,
    .search-page-container,
    .reviews-page,
    .profile-container,
    .login-container,
    .register-container {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 16px !important;
    }

    .reset-password-container {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        margin: 72px auto 28px !important;
        padding: 16px !important;
    }

    .reset-password-container .reset-password-title {
        font-size: 1.45rem;
    }

    .login-container,
    .register-container {
        margin: 72px auto 28px !important;
    }

    .login-container h1,
    .register-container h1 {
        font-size: 1.45rem;
    }

    .login-btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }

    .register-container .register-btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }

    .register-container .form-hint {
        text-align: left;
        line-height: 1.35;
        word-break: break-word;
    }

    .register-container > .login-link {
        font-size: 15px;
        line-height: 1.45;
    }

    .masters-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .favorites-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        padding: 0 !important;
    }

    .checkout-grid,
    .service-actions,
    .product-actions,
    .auth-links,
    .site-confirm-actions {
        display: flex;
        flex-direction: column;
    }

    .search-form-large {
        flex-direction: column;
        gap: 10px;
        box-shadow: none;
    }

    .search-form-large input,
    .search-form-large button {
        width: 100%;
        border-radius: 8px;
    }

    .search-item {
        flex-direction: column;
    }

    .search-item-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 12px;
    }

    .modal-content,
    .site-confirm-dialog {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

.favorites-section-tabs {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    max-width: 100%;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.favorites-page-main {
    margin-top: 50px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.favorites-page-header {
    text-align: center;
    margin-bottom: 22px;
}

.favorites-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.favorites-page-subtitle {
    margin: 8px 0 0;
    font-size: 15px;
    color: #666;
    line-height: 1.45;
}

.favorites-section-tabs .favorites-tab-btn {
    border: 1px solid #d8d2ec;
    background: #fff;
    color: var(--primary-color);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.favorites-section-tabs .favorites-tab-btn:hover,
.favorites-section-tabs .favorites-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.favorites-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eceaf3;
}

.favorites-section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.favorites-section-count {
    flex-shrink: 0;
    background: #f3f1f8;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
}

.favorites-block + .favorites-block {
    margin-top: 36px;
}

.favorites-container {
    width: calc(100% - 40px) !important;
    max-width: 1100px !important;
    margin: 20px auto 50px !important;
    padding: 28px 30px 32px !important;
    background: #fff !important;
    border: 1px solid #eceaf3;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 8, 83, 0.08);
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.favorites-container::before,
.favorites-container::after {
    display: none !important;
}

.favorites-container h1 {
    text-align: left;
}

.favorites-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.favorite-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: linear-gradient(180deg, #fff 0%, #fcfbff 100%);
    border: 1px solid #e8e6f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16, 8, 83, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.favorite-card .favorite-media {
    position: relative;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: auto;
    min-height: 140px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
    background: #f3f4f6;
}

.favorite-card .favorite-media .favorite-image,
.favorite-card .favorite-media .catalog-media-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom: none;
}

.favorite-card:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(16, 8, 83, 0.1);
    border-color: #d8d2ec;
}

.favorite-card .favorite-media .catalog-media-empty {
    min-height: 0;
    background: #fff;
    color: #666;
    border-bottom: none;
}

.favorite-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    min-width: 0;
}

.favorite-meta {
    flex: 1;
    min-width: 0;
}

.favorite-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    line-height: 1.35;
}

.favorite-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #9a7340;
    margin-bottom: 8px;
}

.favorite-description {
    color: #5c5c6d;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: 150px;
    justify-content: center;
}

.favorite-actions .add-to-cart-btn,
.favorite-actions .book-service-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    margin-right: 0;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
}

.favorite-actions .add-to-cart-btn:hover,
.favorite-actions .book-service-btn:hover {
    background-color: #1a1068;
}

.favorite-actions .remove-favorite-btn,
.favorite-actions .remove-favorite-service-btn {
    background: #fff;
    border: 1px solid #e0a8a8;
    color: #c0392b;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
}

.favorite-actions .remove-favorite-btn:hover,
.favorite-actions .remove-favorite-service-btn:hover {
    background: #fdecea;
    color: #a93226;
}

.browse-products-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.browse-products-btn:hover {
    background: #1a1068;
    color: #fff;
    text-decoration: none;
}

.empty-favorites {
    padding: 36px 20px;
    background: #f7f5fb;
    border-radius: 12px;
    border: 1px dashed #d8d2ec;
}

@media (max-width: 767px) {
    .favorites-page-main .favorite-card {
        flex-direction: row;
    }

    .favorites-page-main .favorite-card .favorite-media {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        min-height: 100px;
    }

    .favorites-page-main .favorite-details {
        flex-direction: row;
        align-items: center;
        padding: 12px 10px;
        gap: 10px;
    }

    .favorites-page-main .favorite-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
        margin-top: 4px;
    }

    .favorites-page-main .favorite-actions {
        width: 108px;
        min-width: 108px;
        flex-direction: column;
    }

    .favorites-page-title {
        font-size: 1.35rem;
    }

    .favorites-section-title {
        font-size: 1.05rem;
    }
}

/* Мобильный каталог: товары, услуги, корзина (2 колонки + нижняя панель) */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 12px));
    }

    #luna-chat-widget {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-store-nav {
        display: flex;
    }

    body.page-store-mobile {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 12px));
    }

    body.page-store-mobile #luna-chat-widget {
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    body.page-store-mobile .category-filter {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 10px;
        margin: 0 0 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(180deg, #221858 0%, var(--primary-color) 100%);
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(16, 8, 83, 0.28);
    }

    body.page-store-mobile .category-filter::-webkit-scrollbar {
        display: none;
    }

    body.page-store-mobile .category-filter button {
        flex: 0 0 auto;
        white-space: nowrap;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.1);
        color: #f8f4ea;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 600;
        margin: 0;
        cursor: pointer;
    }

    body.page-store-mobile .category-filter button.active {
        background: var(--gold-color);
        color: var(--primary-color);
        border-color: var(--gold-color);
    }

    body.page-store-mobile .product-card,
    body.page-store-mobile .service-card {
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(16, 8, 83, 0.12);
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    body.page-store-mobile .product-info,
    body.page-store-mobile .service-info {
        padding: 10px 10px 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    body.page-store-mobile .product-title,
    body.page-store-mobile .service-title {
        font-size: 0.92rem;
        line-height: 1.25;
        margin: 0 0 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.page-store-mobile .product-price,
    body.page-store-mobile .service-price {
        font-size: 0.95rem;
        font-weight: 700;
        color: #b8874a;
        margin-bottom: 4px;
    }

    body.page-store-mobile .product-stock,
    body.page-store-mobile .service-duration {
        font-size: 0.7rem;
        line-height: 1.2;
        color: #666;
        margin-bottom: 8px;
    }

    body.page-store-mobile .product-actions,
    body.page-store-mobile .service-actions {
        margin-top: auto;
        flex-direction: column;
        gap: 6px;
    }

    body.page-store-mobile .product-actions .btn,
    body.page-store-mobile .service-actions .btn {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
        padding: 10px 12px;
    }

    body.page-store-mobile .service-actions-admin {
        gap: 6px;
        margin-top: 4px;
    }

    body.page-store-mobile .product-actions-admin {
        flex-direction: column;
        gap: 6px;
        margin-top: 4px;
        width: 100%;
    }

    body.page-store-mobile .product-actions-admin .btn-edit,
    body.page-store-mobile .product-actions-admin .btn-delete {
        min-height: 48px;
        font-size: 13px;
        padding: 10px 12px;
        width: 100%;
    }

    body.page-store-mobile .service-actions-admin .btn-edit,
    body.page-store-mobile .service-actions-admin .btn-delete {
        min-height: 48px;
        font-size: 13px;
        padding: 10px 12px;
    }

    body.page-store-mobile .favorite-btn {
        top: 6px;
        right: 6px;
        transform: scale(0.92);
    }

    body.page-store-mobile .service-image-carousel {
        border-radius: 12px 12px 0 0;
    }

    body.page-store-mobile .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    body.page-store-mobile .cart-container {
        padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px));
        margin: 12px auto 24px;
        width: calc(100% - 20px) !important;
        max-width: none;
        border-radius: 16px;
    }

    body.page-store-mobile .cart-page-title,
    body.page-store-mobile .cart-container h1 {
        font-size: 1.35rem !important;
        margin-bottom: 16px !important;
    }

    body.page-store-mobile .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 4px;
    }

    body.page-store-mobile .cart-actions .continue-shopping,
    body.page-store-mobile .cart-clear {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    body.page-store-mobile .cart-actions .continue-shopping {
        order: 1;
    }

    body.page-store-mobile .cart-clear {
        order: 2;
    }

    body.page-store-mobile .cart-table-wrap {
        overflow-x: visible;
    }

    body.page-store-mobile .cart-table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
        overflow: visible;
    }

    body.page-store-mobile .cart-table thead {
        display: none;
    }

    body.page-store-mobile .cart-table tbody {
        display: block;
    }

    body.page-store-mobile .cart-table-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "product product"
            "price sum"
            "qty actions";
        align-items: start;
        gap: 10px 12px;
        position: relative;
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 14px;
        border-radius: 12px;
        background: #faf9fc;
        border: 1px solid #e8e6f0;
        box-shadow: 0 2px 10px rgba(16, 8, 83, 0.06);
    }

    body.page-store-mobile .cart-table .cart-col-product,
    body.page-store-mobile .cart-table .cart-col-price,
    body.page-store-mobile .cart-table .cart-col-qty,
    body.page-store-mobile .cart-table .cart-col-sum,
    body.page-store-mobile .cart-table .cart-col-actions {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.page-store-mobile .cart-table td {
        display: block;
        padding: 0;
        border: none;
        vertical-align: top;
        box-sizing: border-box;
        min-width: 0;
    }

    body.page-store-mobile .cart-table td[data-label]:not([data-label=''])::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        color: #403a5f;
        margin-bottom: 4px;
    }

    body.page-store-mobile .cart-col-product {
        grid-area: product;
        margin-bottom: 0;
    }

    body.page-store-mobile .cart-col-product[data-label]::before {
        display: none;
    }

    body.page-store-mobile .cart-col-price {
        grid-area: price;
        font-size: 0.9375rem;
        min-width: 0;
    }

    body.page-store-mobile .cart-col-sum {
        grid-area: sum;
        text-align: right;
        font-size: 1rem;
        min-width: 0;
    }

    body.page-store-mobile .cart-col-qty {
        grid-area: qty;
        min-width: 0;
    }

    body.page-store-mobile .cart-col-actions {
        grid-area: actions;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        justify-self: end;
        align-self: end;
        position: relative;
        top: auto;
        right: auto;
        z-index: 1;
    }

    body.page-store-mobile .cart-col-actions[data-label]::before {
        display: none;
    }

    body.page-store-mobile .cart-product {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
        width: 100%;
    }

    body.page-store-mobile .cart-product > div {
        flex: 1;
        min-width: 0;
    }

    body.page-store-mobile .cart-product-image {
        width: 72px;
        height: 72px;
        min-width: 72px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    body.page-store-mobile .cart-product-name {
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 600;
        color: var(--primary-color);
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    body.page-store-mobile .cart-price,
    body.page-store-mobile .cart-subtotal {
        font-size: inherit;
        font-weight: 700;
        color: #100853;
        white-space: nowrap;
    }

    body.page-store-mobile .cart-quantity {
        justify-content: flex-start;
        gap: 4px;
    }

    body.page-store-mobile .cart-quantity input {
        width: 44px;
        font-size: 16px !important;
        min-height: 44px;
        padding: 6px 4px;
    }

    body.page-store-mobile .cart-quantity button {
        min-width: 44px;
        min-height: 44px;
        font-size: 18px;
        border-radius: 8px;
        background: #eceaf3;
    }

    body.page-store-mobile .cart-table-actions {
        text-align: center;
        padding: 0;
    }

    body.page-store-mobile .cart-remove {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 1;
        border-radius: 8px;
        background: #fdecea;
        border: 1px solid #f0c4c4;
    }

    body.page-store-mobile .cart-summary {
        margin-top: 18px;
        padding: 18px 16px;
    }

    body.page-store-mobile .checkout-btn {
        width: 100%;
        min-height: 48px;
    }

    .mobile-store-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2800;
        justify-content: space-around;
        align-items: stretch;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, #1a0f44 0%, #100853 100%);
        border-top: 1px solid rgba(222, 193, 149, 0.28);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
    }

    .mobile-store-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 48px;
        padding: 4px 2px;
        text-decoration: none;
        color: rgba(248, 244, 234, 0.75);
        font-size: 10px;
        font-weight: 600;
        border-radius: 10px;
        max-width: 120px;
    }

    .mobile-store-nav__item.is-active {
        color: var(--gold-color);
        background: rgba(222, 193, 149, 0.12);
    }

    .mobile-store-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: currentColor;
    }

    .mobile-store-nav__iconWrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-store-nav__badge {
        position: absolute;
        top: -4px;
        right: -10px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #e14d6b;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 18px;
        text-align: center;
    }

    .mobile-store-nav__label {
        line-height: 1.1;
        text-align: center;
    }

    body.page-store-mobile .btn-add-product,
    body.page-store-mobile .btn-add-service,
    body.page-store-mobile .btn-add-news {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        /* Слева: не пересекается с виджетом чата «AI» (правый нижний угол, z-index выше) */
        left: max(12px, env(safe-area-inset-left, 0px));
        right: auto;
        width: 54px;
        height: 54px;
        z-index: 10001;
        transition:
            left 0.28s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
    }

    body.page-store-mobile.menu-open .btn-add-product,
    body.page-store-mobile.menu-open .btn-add-service,
    body.page-store-mobile.menu-open .btn-add-news,
    body.page-store-mobile .btn-add-product.luna-add-btn-shifted,
    body.page-store-mobile .btn-add-service.luna-add-btn-shifted,
    body.page-store-mobile .btn-add-news.luna-add-btn-shifted {
        left: var(--luna-add-btn-left, max(12px, env(safe-area-inset-left, 0px))) !important;
        right: auto !important;
        z-index: 10001 !important;
    }

    body.page-store-mobile .btn-add-product__icon,
    body.page-store-mobile .btn-add-service__icon,
    body.page-store-mobile .btn-add-news__icon {
        width: 22px;
        height: 22px;
    }

    body.page-store-mobile .btn-add-product__icon::before,
    body.page-store-mobile .btn-add-service__icon::before,
    body.page-store-mobile .btn-add-news__icon::before {
        width: 20px;
    }

    body.page-store-mobile .btn-add-product__icon::after,
    body.page-store-mobile .btn-add-service__icon::after,
    body.page-store-mobile .btn-add-news__icon::after {
        height: 20px;
    }

    body.page-store-mobile .favorites-section-tabs.category-filter {
        display: flex !important;
        margin: 0 0 16px;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body.page-store-mobile .favorites-section-tabs .favorites-tab-btn {
        flex: 1;
        border: 1px solid #d8d2ec !important;
        background: #fff !important;
        color: var(--primary-color) !important;
        border-radius: 999px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        min-height: 44px;
    }

    body.page-store-mobile .favorites-section-tabs .favorites-tab-btn.active,
    body.page-store-mobile .favorites-section-tabs .favorites-tab-btn:hover {
        background: var(--primary-color) !important;
        color: #fff !important;
        border-color: var(--primary-color) !important;
    }

    body.page-store-mobile .favorites-page-header {
        text-align: left;
        margin-bottom: 14px;
    }

    body.page-store-mobile .favorites-page-subtitle {
        font-size: 13px;
    }

    body.page-store-mobile #favorites-products-block,
    body.page-store-mobile #favorites-services-block {
        scroll-margin-top: 72px;
    }

    body.page-store-mobile .favorites-container {
        width: calc(100% - 20px) !important;
        max-width: 600px;
        margin: 12px auto 20px;
        padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: 16px;
    }

    body.page-store-mobile .favorites-section-head {
        margin-bottom: 12px;
    }

    body.page-store-mobile .favorites-container h1,
    body.page-store-mobile .favorites-page-title {
        font-size: 1.15rem !important;
        margin: 0 0 10px !important;
        text-align: left;
    }

    body.page-store-mobile .favorites-block + .favorites-block h1,
    body.page-store-mobile #favorites-services-block > h1 {
        margin-top: 20px !important;
    }

    body.page-store-mobile .favorite-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: auto;
        min-height: 96px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(16, 8, 83, 0.08);
        background: #fff;
    }

    body.page-store-mobile .favorite-card .favorite-media {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        min-height: 96px;
        height: auto;
        align-self: stretch;
    }

    body.page-store-mobile .favorite-image {
        width: 100%;
        min-width: 0;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
        border-bottom: none;
    }

    body.page-store-mobile .favorite-details {
        padding: 10px 10px 10px 8px;
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }

    body.page-store-mobile .favorite-meta {
        min-width: 0;
        flex: 1;
    }

    body.page-store-mobile .favorite-name {
        font-size: 0.9375rem;
        line-height: 1.35;
        margin-bottom: 4px;
        font-weight: 700;
        color: var(--primary-color);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.page-store-mobile .favorite-price {
        font-size: 1rem;
        margin-bottom: 0;
        font-weight: 700;
        color: #7a5618;
    }

    body.page-store-mobile .favorite-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.35;
        margin-top: 4px;
        color: #5c5c6d;
    }

    body.page-store-mobile .favorite-actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 0;
        width: 108px;
        min-width: 108px;
        flex-shrink: 0;
    }

    body.page-store-mobile .favorite-actions .add-to-cart-btn,
    body.page-store-mobile .favorite-actions .remove-favorite-btn,
    body.page-store-mobile .favorite-actions .book-service-btn,
    body.page-store-mobile .favorite-actions .remove-favorite-service-btn {
        width: 100%;
        min-height: 44px;
        flex: none;
        font-size: 13px;
        padding: 8px 6px;
        line-height: 1.2;
    }

    body.page-store-mobile .empty-favorites {
        padding: 24px 12px;
    }

    @media (max-width: 380px) {
        body.page-store-mobile .favorite-details {
            flex-direction: column;
            align-items: stretch;
        }

        body.page-store-mobile .favorite-actions {
            width: 100%;
            min-width: 0;
            flex-direction: row;
        }

        body.page-store-mobile .favorite-actions .add-to-cart-btn,
        body.page-store-mobile .favorite-actions .remove-favorite-btn,
        body.page-store-mobile .favorite-actions .book-service-btn,
        body.page-store-mobile .favorite-actions .remove-favorite-service-btn {
            flex: 1;
        }
    }

    body.page-store-mobile .mobile-store-nav__item {
        max-width: none;
        padding: 4px 2px;
        font-size: 11px;
        min-height: 48px;
    }

    body.page-store-mobile .mobile-store-nav__icon svg,
    body.page-store-mobile .mobile-store-nav__iconWrap .mobile-store-nav__icon svg {
        width: 20px;
        height: 20px;
    }

    /* Единая мобильная пагинация как на странице отзывов */
    .reviews-pagination,
    .pagination,
    .worktime-pagination,
    .search-pagination,
    .admin-pagination .pagination {
        margin-top: 20px !important;
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        width: 100%;
    }

    .reviews-pagination a,
    .reviews-pagination span,
    .pagination a,
    .pagination span,
    .pagination .pagination-btn,
    .pagination .pagination-link,
    .pagination .page-link,
    .worktime-pagination a,
    .worktime-pagination span,
    .search-pagination a,
    .search-pagination span,
    .admin-pagination .page-link {
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        border: 1px solid #d9d4ec !important;
        background: #fff !important;
        color: #100853 !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
        text-align: center !important;
    }

    .reviews-pagination .active,
    .pagination .active,
    .pagination .page-item.active .page-link,
    .worktime-pagination .active,
    .search-pagination .active {
        background: #100853 !important;
        color: #fff !important;
        border-color: #100853 !important;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .services-grid,
    .products-grid,
    .masters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .container,
    .checkout-container,
    .search-page-container,
    .reviews-page {
        width: calc(100% - 40px) !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Final micro-audit: consistent mobile UX across custom pages */
@media (max-width: 767px) {
    body {
        line-height: 1.45;
    }

    h1 {
        font-size: clamp(1.4rem, 5.2vw, 1.9rem);
    }

    h2 {
        font-size: clamp(1.2rem, 4.6vw, 1.5rem);
    }

    h3 {
        font-size: clamp(1.05rem, 4.2vw, 1.25rem);
    }

    .btn,
    .btn-filter,
    .btn-reset,
    .filter-btn,
    .apply-btn,
    .reset-btn,
    .btn-read-more,
    .btn-edit,
    .btn-delete,
    .btn-save,
    .btn-primaryk,
    .btn-primaryky,
    .warn-btn,
    .block-btn,
    .master-details-btn,
    .pagination-link,
    .pagination-btn {
        min-height: 44px;
    }

    .pagination,
    .pagination-wrap,
    .reviews-pagination,
    .search-pagination,
    .worktime-pagination {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: auto !important;
    }

    .pagination-link,
    .pagination-btn,
    .pagination .page-link,
    .reviews-pagination a,
    .reviews-pagination span,
    .search-pagination a,
    .search-pagination span,
    .worktime-pagination a,
    .worktime-pagination span {
        min-width: 42px !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 11px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .pagination-btn.disabled,
    .pagination-link.disabled,
    .reviews-pagination .disabled,
    .search-pagination .disabled,
    .worktime-pagination .disabled {
        opacity: 0.45 !important;
        pointer-events: none !important;
    }

    .modal-content {
        max-height: calc(100vh - 28px);
        overflow-y: auto;
    }

    .news-actions,
    .admin-actions,
    .filter-actions {
        gap: 10px;
    }

    .item-row,
    .order-item,
    .booking-meta-box,
    .order-items,
    .search-item {
        word-break: break-word;
    }
}

/* ========= Календарь записи на услугу ========= */
.luna-booking-cal-wrap {
    width: 100%;
    min-width: 0;
}

.luna-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.luna-cal-nav__title {
    font-weight: 700;
    color: var(--primary-color, #100853);
    font-size: 0.95rem;
}

.luna-cal-nav__btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(16, 8, 83, 0.15);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-color, #100853);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.luna-cal-nav__btn:hover {
    background: #f4f2fa;
}

.luna-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #746d93;
    text-align: center;
}

.luna-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.luna-cal-day {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f3f2f8;
    color: #5c557a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.luna-cal-day--empty {
    background: transparent;
    border: none;
    cursor: default;
}

.luna-cal-day--working {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #c8e6c9;
}

.luna-cal-day--off {
    background: #eceff1;
    color: #546e7a;
}

.luna-cal-day--sick {
    background: #ffebee;
    color: #b71c1c;
    border-color: #ffcdd2;
}

.luna-cal-day--vacation {
    background: #fff8e1;
    color: #8d6e00;
    border-color: #ffe082;
}

.luna-cal-day--unset {
    background: #f5f5f7;
    color: #9e9e9e;
}

.luna-cal-day--past,
.luna-cal-day--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.luna-cal-day--selected {
    background: var(--primary-color, #100853) !important;
    color: #fff !important;
    border-color: var(--primary-color, #100853) !important;
}

.luna-cal-day:not(:disabled):not(.luna-cal-day--empty):hover {
    filter: brightness(0.96);
}

.luna-cal-hint {
    margin: 10px 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #746d93;
}

.luna-cal-selected {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: #403a5f;
}

/* Модалка записи: поля не обрезаются */
.modal--booking .modal-content--booking.modal-content--form {
    max-width: 580px;
}

.modal-content--booking .services-form-row--2 .form-group {
    display: block;
}

.modal-content--booking .services-form-row--2 .form-group > label {
    display: block;
    margin-bottom: 6px;
    text-align: left;
}

.modal-content--booking .booking-grid-row--master-date,
.modal-content--booking .booking-grid-row--time-comment {
    grid-template-columns: 1fr;
    column-gap: 0;
}

.modal-content--booking .booking-grid-label--1,
.modal-content--booking .booking-grid-label--2,
.modal-content--booking .booking-grid-control--1,
.modal-content--booking .booking-grid-control--2 {
    grid-column: 1 !important;
    grid-row: auto !important;
}

.modal-content--booking .booking-grid-control--2 {
    margin-top: 0;
}

.modal-content--booking .edit-form .booking-grid-row--time-comment select#booking_time,
.modal-content--booking .edit-form .booking-grid-row--time-comment select.booking-grid-control--1 {
    min-height: 44px;
    max-height: none;
    height: auto;
}

.modal-content--booking .edit-form .booking-grid-row--time-comment textarea.booking-grid-textarea {
    min-height: 80px;
    max-height: none;
    height: auto;
}

.modal-content--booking .edit-form input,
.modal-content--booking .edit-form select,
.modal-content--booking .edit-form textarea {
    font-size: 16px;
    overflow: visible;
    text-overflow: clip;
}

.modal-content--booking .booking-modal__submit {
    white-space: normal;
    line-height: 1.3;
    min-height: 48px;
}

@media (min-width: 720px) {
    .modal-content--booking .services-form-row--2 {
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
    }

    .modal-content--booking .booking-grid-row--time-comment {
        grid-template-columns: minmax(140px, 0.42fr) 1fr;
        column-gap: 16px;
    }

    .modal-content--booking .booking-grid-row--time-comment .booking-grid-label--1 {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .modal-content--booking .booking-grid-row--time-comment .booking-grid-label--2 {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .modal-content--booking .booking-grid-row--time-comment .booking-grid-control--1 {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .modal-content--booking .booking-grid-row--time-comment .booking-grid-control--2 {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

/* Календарь мастера (админ) */
.luna-mw-cal {
    border: 1px solid #ece7f7;
    border-radius: 12px;
    padding: 14px;
    background: #fcfbff;
}

.luna-mw-cal .luna-cal-day {
    min-height: 38px;
}

.luna-mw-cal .luna-cal-day--picked {
    outline: 3px solid #100853;
    outline-offset: -2px;
}

.luna-mw-bulk {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #ece7f7;
    border-radius: 12px;
    background: #fbfaff;
}

.luna-mw-bulk label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #645d83;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.luna-mw-bulk input,
.luna-mw-bulk select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d8cfee;
    border-radius: 9px;
    padding: 8px 10px;
    box-sizing: border-box;
}

.luna-mw-selected-count {
    font-size: 14px;
    color: #403a5f;
    margin: 10px 0 0;
    font-weight: 600;
}

/* Карусель фото в карточках услуг и товаров */
.product-card .service-image-carousel {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    padding-bottom: 0;
}

.service-image-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 8px 8px 0 0;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

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

/* Заглушка фото в каталоге (как в разделе обучения) */
.catalog-media-empty {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: #f3f4f6;
    color: #bbb;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

.catalog-media-empty-text {
    font-size: 13px;
    line-height: 1.4;
}

.product-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.product-details-media {
    min-height: 280px;
    border-radius: 8px;
    overflow: hidden;
}

.product-details-media .catalog-media-empty {
    min-height: 280px;
}

.service-image-carousel .catalog-media-empty,
.service-details-content .catalog-media-empty {
    position: absolute;
    inset: 0;
    min-height: 100%;
    height: 100%;
    background: #fff;
    color: #666;
}

.specialisation-cell .catalog-media-empty {
    min-height: 200px;
    border-radius: 8px;
}

.catalog-media-empty--cart {
    width: 80px;
    height: 80px;
    min-height: 80px;
    flex-shrink: 0;
    border-radius: 5px;
    padding: 6px;
}

.catalog-media-empty--cart .catalog-media-empty-text {
    font-size: 9px;
    line-height: 1.2;
}

.catalog-media-empty--checkout,
.order-item-image-placeholder {
    width: 60px;
    height: 60px;
    min-height: 60px;
    flex-shrink: 0;
    border-radius: 5px;
    margin-right: 15px;
    padding: 4px;
}

.catalog-media-empty--checkout .catalog-media-empty-text,
.order-item-image-placeholder .catalog-media-empty-text {
    font-size: 8px;
    line-height: 1.15;
}

.modal-image-placeholder {
    min-height: 280px;
    border-radius: 8px;
}
