body {
    background-color: #f8f9fa;
}

.sidebar {
    min-height: calc(100vh - 56px);
}

.sidebar-sticky {
    top: 1rem;
}

.sidebar .nav-link,
.offcanvas .nav-link {
    color: #333;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.15rem;
}

.sidebar .nav-link:hover,
.offcanvas .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.sidebar .nav-link.active,
.offcanvas .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.card {
    border-radius: 0.75rem;
}

/* ===== Мобільна адаптивність адмінки ===== */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1rem;
    }

    main.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Формы с кнопками действий — в колонку и на всю ширину, чтобы было удобно тапать */
    .btn {
        min-height: 38px;
    }

    table.table {
        font-size: 0.9rem;
    }

    h1.h3, h1.mb-4 {
        font-size: 1.35rem;
    }
}

.offcanvas {
    max-width: 280px;
}

/* ===== SEO-текст на головній сторінці ===== */
.seo-text h2 {
    font-size: 1.4rem;
    margin-top: 1.75rem;
}

.seo-text h3 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
}

.seo-text p {
    line-height: 1.7;
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-radius: 1rem;
}

/* ===== Фото до коментарів майстра (превʼю + лайтбокс) ===== */
.photo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.photo-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-thumb:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 575.98px) {
    .photo-thumb {
        width: 60px;
        height: 60px;
    }
}

.photo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.photo-lightbox.show {
    display: flex;
}

.photo-lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 0.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.photo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.photo-thumb-wrap {
    position: relative;
    display: inline-block;
}

.photo-thumb-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.photo-thumb-remove:hover {
    background: #b02a37;
}
