/* =========================================================
   ФОТОМОМЕНТ — site.css (оптимизированная версия)

   Содержание:
   1. Базовые стили
   2. Шапка и мобильное меню
   3. Главный экран (hero)
   4. Портфолио
   5. Обо мне
   6. Услуги
   7. Просмотр фотографий (lightbox)
   8. Подвал
   9. Админка: фотографии, формы, вход
   10. Админка: панель, категории, услуги, заявки
   11. Форма записи (контакты)
   11.5. Анимации
   12. Уменьшение анимации
   ========================================================= */


/* =========================================================
   1. БАЗОВЫЕ СТИЛИ
   ========================================================= */

:root {
    --fm-bg: #11100f;
    --fm-card: #1b1917;
    --fm-text: #f5efe7;
    --fm-muted: #b8ada2;
    --fm-gold: #c5a477;
    --fm-border: rgba(197, 164, 119, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    background: var(--fm-bg);
    color: var(--fm-text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

    body > main[role="main"] {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body h1,
    body h2,
    body h3 {
        color: var(--fm-text);
        line-height: 1.2;
    }

    body h2 {
        margin-bottom: 18px;
        font-size: clamp(28px, 4vw, 42px);
        letter-spacing: 0.5px;
    }

img {
    max-width: 100%;
}

section {
    min-width: 0;
    max-width: 100%;
}

/* Разделы не прячутся под закреплённой шапкой */
#portfolio,
#about,
#services,
#contacts {
    scroll-margin-top: 100px;
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 80px;
    }

    #portfolio,
    #about,
    #services,
    #contacts {
        scroll-margin-top: 80px;
    }
}


/* =========================================================
   2. ШАПКА И МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
    background: rgba(20, 19, 18, 0.97);
    border-bottom: 1px solid rgba(201, 170, 120, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    max-width: none;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 5%;
}

    .nav-container .logo {
        display: inline-flex;
        align-items: center;
        color: #d6b783;
        font-family: Georgia, serif;
        font-size: 23px;
        font-weight: bold;
        letter-spacing: 2px;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.25s ease;
    }

        .nav-container .logo:hover {
            color: #f0d7ac;
        }

    .nav-container .nav-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(18px, 2.5vw, 36px);
    }

        .nav-container .nav-links a {
            color: #e8e4de;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.25s ease;
        }

            .nav-container .nav-links a:hover {
                color: #d6b783;
            }

            /* Кнопка записи */
            .nav-container .nav-links a.nav-cta {
                padding: 12px 18px;
                color: #171411;
                background: #c9aa78;
                border: 1px solid #c9aa78;
                border-radius: 3px;
                font-weight: 600;
                transition: background 0.25s ease, border-color 0.25s ease;
            }

                .nav-container .nav-links a.nav-cta:hover {
                    background: #e2c69d;
                    border-color: #e2c69d;
                    color: #171411;
                }

/* Кнопка-«бургер» (показывается на телефонах) */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(201, 170, 120, 0.45);
    border-radius: 4px;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 5px 0;
        background: #d6b783;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

/* Планшеты */
@media (max-width: 850px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 16px;
        min-height: 72px;
        padding: 12px 4%;
    }

        .nav-container .logo {
            font-size: 20px;
        }

        .nav-container .nav-links {
            flex-wrap: wrap;
            gap: 14px 20px;
        }
}

/* Телефоны: выпадающее меню */
@media (max-width: 700px) {
    .nav-container {
        position: relative;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 12px;
        min-height: 72px;
        padding: 12px 20px;
    }

        .nav-container .logo {
            font-size: 18px;
        }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav-container .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: #171615;
        border-bottom: 1px solid rgba(201, 170, 120, 0.3);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }

        .nav-container .nav-links.menu-open {
            display: flex;
        }

        .nav-container .nav-links a {
            display: block;
            padding: 14px 8px;
            font-size: 14px;
        }

            .nav-container .nav-links a.nav-cta {
                margin-top: 10px;
                padding: 13px 16px;
                text-align: center;
            }
}


/* =========================================================
   3. ГЛАВНЫЙ ЭКРАН
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 760px;
    height: min(900px, 100svh);
    padding: 100px 8% 70px;
    overflow: hidden;
    background-color: #11100f;
    background-image: linear-gradient(90deg, rgba(17, 16, 15, 0.92) 0%, rgba(17, 16, 15, 0.76) 34%, rgba(17, 16, 15, 0.25) 68%, rgba(17, 16, 15, 0.08) 100%), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}

    /* Затемнение и тонкая рамка поверх фотографии */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border: 1px solid rgba(197, 164, 119, 0.25);
        background: linear-gradient(180deg, rgba(12, 12, 13, 0.35) 0%, rgba(12, 12, 13, 0.55) 50%, rgba(12, 12, 13, 0.82) 100%);
        pointer-events: none;
    }

    .hero .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 620px;
        margin: 0;
        padding: 30px 20px;
        text-align: left;
        animation: heroContentIn 0.8s ease both;
    }

        /* Имя фотографа */
        .hero .hero-content h1 {
            max-width: 620px;
            margin: 0 0 24px;
            font-family: Georgia, "Times New Roman", serif;
            font-size: clamp(42px, 5.5vw, 76px);
            font-weight: 400;
            line-height: 1.08;
            letter-spacing: 0.08em;
            overflow-wrap: break-word;
            text-wrap: balance;
            text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
            opacity: 0;
            animation: nameReveal 1.2s ease-out 0.2s both;
            will-change: opacity, transform, filter;
        }

        /* Подзаголовок */
        .hero .hero-content p {
            max-width: 500px;
            margin: 0 0 32px;
            color: #dfc397;
            font-size: clamp(15px, 1.8vw, 20px);
            line-height: 1.7;
            letter-spacing: 1px;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
            opacity: 0;
            animation: subtitleReveal 0.8s ease-out 1.4s both;
        }

        /* Кнопка «Посмотреть портфолио» */
        .hero .hero-content a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 52px;
            padding: 0 28px;
            background: #c9aa78;
            border: 1px solid #c9aa78;
            border-radius: 3px;
            color: #171411;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            opacity: 0;
            animation: portfolioReveal 0.8s ease-out 2.2s both;
            transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        }

@media (hover: hover) and (pointer: fine) {
    .hero .hero-content a:hover {
        background: #e2c69d;
        border-color: #e2c69d;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    }
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: translateY(22px);
        letter-spacing: 0.14em;
        filter: blur(5px);
    }

    60% {
        opacity: 0.8;
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.08em;
        filter: blur(0);
    }
}

@keyframes subtitleReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes portfolioReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 680px;
        height: 85svh;
        padding: 100px 6% 60px;
        background-position: 60% center;
    }

        .hero .hero-content {
            max-width: 540px;
        }
}

@media (max-width: 600px) {
    .hero {
        min-height: 620px;
        height: 82svh;
        padding: 100px 28px 60px;
        background-image: linear-gradient(90deg, rgba(17, 16, 15, 0.84), rgba(17, 16, 15, 0.40)), url('/images/hero-bg.jpg');
        background-position: 62% center;
    }

        .hero .hero-content {
            padding: 24px 16px;
        }

            .hero .hero-content h1 {
                font-size: clamp(38px, 10vw, 54px);
            }

            .hero .hero-content p {
                font-size: 15px;
                letter-spacing: 0.5px;
            }

            .hero .hero-content a {
                min-height: 48px;
                padding: 0 20px;
            }
}


/* =========================================================
   4. ПОРТФОЛИО
   ========================================================= */

.portfolio {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 90px 3%;
    background: #11100f;
    color: #f5efe7;
}

    .portfolio h2 {
        margin: 0 0 18px;
        color: #d6b783;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(32px, 4vw, 46px);
        font-weight: 400;
        text-align: center;
    }

        .portfolio h2::after {
            content: "";
            display: block;
            width: 65px;
            height: 2px;
            margin: 20px auto 35px;
            background: #c9aa78;
        }

/* Фильтры (кнопки) */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0 auto 40px;
}

    .portfolio-filters .filter-btn {
        padding: 11px 20px;
        background: transparent;
        color: #d8d2c9;
        border: 1px solid #49443d;
        border-radius: 3px;
        font-size: 13px;
        cursor: pointer;
        transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    }

        .portfolio-filters .filter-btn:hover,
        .portfolio-filters .filter-btn.active {
            color: #171411;
            background: #c9aa78;
            border-color: #c9aa78;
        }

/* Фильтры (альтернативная разметка category-filters) */
.portfolio .category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    margin: 30px auto 38px;
}

    .portfolio .category-filters button,
    .portfolio .category-filters a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 21px;
        border: 1px solid rgba(201, 170, 120, 0.45);
        border-radius: 2px;
        background: transparent;
        color: #c9aa78;
        font-family: inherit;
        font-size: 13px;
        letter-spacing: 0.5px;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    }

        .portfolio .category-filters button:hover,
        .portfolio .category-filters a:hover {
            border-color: #c9aa78;
            background: rgba(201, 170, 120, 0.12);
            color: #f5efe7;
        }

        .portfolio .category-filters button.active,
        .portfolio .category-filters a.active,
        .portfolio .category-filters button[aria-pressed="true"] {
            border-color: #c9aa78;
            background: #c9aa78;
            color: #171411;
        }

        .portfolio .category-filters button:focus-visible,
        .portfolio .category-filters a:focus-visible {
            outline: 2px solid #f5efe7;
            outline-offset: 3px;
        }

/* Сетка: 4 колонки, часть карточек выше / шире */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 90px;
    grid-auto-flow: dense;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 30px auto 0;
}

.portfolio-item {
    position: relative;
    display: block;
    grid-column: span 1;
    grid-row: span 2;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    background: #1b1917;
    border: 1px solid rgba(197, 164, 119, 0.18);
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .portfolio-item:nth-child(9n + 1) {
        grid-row: span 3;
    }

    .portfolio-item:nth-child(9n + 4) {
        grid-column: span 2;
        grid-row: span 3;
    }

    .portfolio-item:hover {
        border-color: rgba(214, 183, 131, 0.8);
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .portfolio-item:focus-within {
        outline: 2px solid #c9aa78;
        outline-offset: 3px;
    }

    /* Фотография */
    .portfolio-item img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        transition: transform 0.4s ease, filter 0.4s ease;
    }

.gallery-image {
    cursor: zoom-in;
}

/* Затемнение нижней части снимка */
.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 30% 0 0;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 0%, rgba(17, 16, 15, 0.2) 35%, rgba(17, 16, 15, 0.94) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Подпись */
.portfolio-item .photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    color: #f5efe7;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.photo-overlay::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-bottom: 12px;
    background: #c9a96e;
    transition: width 0.35s ease;
}

.portfolio-item .photo-overlay h3 {
    margin: 0 0 8px;
    color: #e2c18b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.35;
}

.portfolio-item .photo-overlay p {
    margin: 0;
    color: #d2c8bc;
    font-size: 13px;
    line-height: 1.65;
}

.portfolio-item:hover::after,
.portfolio-item:hover .photo-overlay {
    opacity: 1;
}

.portfolio-item:hover .photo-overlay {
    transform: translateY(0);
}

/* Эффекты только для мыши */
@media (hover: hover) and (pointer: fine) {
    .portfolio-item img {
        filter: brightness(0.9);
    }

    .portfolio-item:hover img {
        transform: scale(1.06);
        filter: brightness(0.85);
    }

    .portfolio-item:hover .photo-overlay::before {
        width: 55px;
    }
}

/* На сенсорных экранах подписи видны всегда */
@media (hover: none) {
    .portfolio-item::after,
    .portfolio-item .photo-overlay {
        opacity: 1;
        transform: none;
    }
}

/* Планшеты */
@media (min-width: 601px) and (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 85px;
        gap: 12px;
    }

    .portfolio-item:nth-child(9n + 4) {
        grid-column: span 1;
        grid-row: span 2;
    }
}

/* Телефоны */
@media (max-width: 600px) {
    .portfolio {
        padding: 60px 18px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 75px;
        gap: 10px;
    }

    .portfolio-item:nth-child(5n + 1) {
        grid-row: span 3;
    }

    .portfolio-item:nth-child(9n + 4) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .portfolio-item .photo-overlay {
        padding: 11px;
    }

        .portfolio-item .photo-overlay h3 {
            font-size: 13px;
            line-height: 1.3;
        }

        .portfolio-item .photo-overlay p {
            font-size: 11px;
            line-height: 1.4;
        }

    .portfolio-filters .filter-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .portfolio-filters button {
        max-width: 100%;
        white-space: normal;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .portfolio .category-filters {
        gap: 8px;
        margin: 24px auto 28px;
    }

        .portfolio .category-filters button,
        .portfolio .category-filters a {
            min-height: 38px;
            padding: 0 13px;
            font-size: 12px;
        }
}

@media (max-width: 520px) {
    .portfolio-filters {
        margin-bottom: 25px;
    }
}

@media (max-width: 380px) {
    .portfolio-filters {
        gap: 6px;
    }
}


/* =========================================================
   5. ОБО МНЕ
   ========================================================= */

.about {
    padding: 100px 24px;
    background: #151412;
    color: #f5efe7;
    text-align: center;
    border-top: 1px solid var(--fm-border);
    border-bottom: 1px solid var(--fm-border);
}

.about-container {
    display: block;
    max-width: 820px;
    margin: 0 auto;
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-eyebrow {
    margin: 0 0 22px;
    color: #c9aa78;
    font-size: 12px;
    letter-spacing: 4px;
}

.about-content h2 {
    margin: 0 0 28px;
    color: #f5efe7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.2;
}

    .about-content h2 span {
        color: #c9aa78;
    }

.about-content > p:not(.about-eyebrow) {
    margin: 0 auto 20px;
    color: #bdb7af;
    font-size: 16px;
    line-height: 1.9;
}

.about-content .about-intro {
    max-width: 650px;
    margin-bottom: 28px;
    color: #e5d4ba !important;
    font-size: 19px !important;
    line-height: 1.7 !important;
}

.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    padding: 15px 24px;
    border: 1px solid #c9aa78;
    color: #c9aa78;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

    .about-button:hover {
        background: #c9aa78;
        color: #171411;
    }

    .about-button span {
        font-size: 20px;
    }

@media (max-width: 600px) {
    .about {
        padding: 65px 22px;
    }

    .about-content h2 {
        font-size: 38px;
    }

    .about-content > p:not(.about-eyebrow) {
        font-size: 15px;
        line-height: 1.8;
    }

    .about-content .about-intro {
        font-size: 17px !important;
    }
}


/* =========================================================
   6. УСЛУГИ
   ========================================================= */

.services {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 100px 3%;
    background: #11100f;
    color: #f5efe7;
    text-align: center;
}

    .services > h2 {
        margin: 0 0 18px;
        color: #d6b783;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(32px, 4vw, 46px);
        font-weight: 400;
        text-align: center;
    }

        .services > h2::after {
            content: "";
            display: block;
            width: 58px;
            height: 2px;
            margin: 20px auto;
            background: #c9aa78;
        }

.services-subtitle {
    max-width: 600px;
    margin: 0 auto 45px;
    color: #b8ada2;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 34px 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #211e1a, #171513);
    border: 1px solid rgba(201, 170, 120, 0.25);
    border-radius: 3px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

    /* Золотая линия сверху карточки */
    .service-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 48px;
        height: 2px;
        background: #c9aa78;
        transition: width 0.3s ease;
    }

    .service-card:hover {
        transform: translateY(-6px);
        border-color: #c9aa78;
        background: linear-gradient(145deg, #28231d, #191613);
    }

        .service-card:hover::before {
            width: 100%;
        }

    .service-card h3 {
        margin: 0 0 18px;
        color: #e4c99c;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 1.35;
    }

.service-description {
    flex-grow: 1;
    margin: 0;
    color: #b8ada2;
    font-size: 14px;
    line-height: 1.85;
}

.service-price {
    margin: 28px 0 22px;
    color: #e2c18b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #c9aa78;
    border-radius: 2px;
    color: #c9aa78;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

    .service-button::after {
        content: "→";
        font-size: 17px;
    }

    .service-button:hover {
        background: #c9aa78;
        color: #171411;
    }

.services-empty {
    grid-column: 1 / -1;
    padding: 30px;
    color: #b8ada2;
    text-align: center;
    border: 1px solid rgba(201, 170, 120, 0.25);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .services {
        padding: 60px 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        font-size: 23px;
    }

    .service-price {
        margin: 22px 0 18px;
    }
}


/* =========================================================
   7. ПРОСМОТР ФОТОГРАФИЙ (LIGHTBOX)
   ========================================================= */

.lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(12, 12, 13, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .lightbox.active {
        opacity: 1;
        visibility: visible;
    }

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: min(92vw, 1200px);
    max-width: 92vw;
    max-height: 88vh;
}

#lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.lightbox-info {
    flex: 0 0 auto;
    width: 100%;
    max-width: 900px;
    margin-top: 18px;
    padding: 16px 12px 0;
    color: #f1eee8;
    text-align: center;
}

    .lightbox-info h3 {
        margin: 0 0 8px;
        color: #c9a96e;
        font-family: Georgia, serif;
        font-size: 20px;
        font-weight: 500;
    }

    .lightbox-info p {
        margin: 0;
        color: #c4c0ba;
        font-size: 14px;
        line-height: 1.6;
    }

/* Крестик закрытия */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(201, 170, 120, 0.55);
    border-radius: 50%;
    background: rgba(17, 16, 15, 0.85);
    color: #e2c18b;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

    .lightbox-close:hover {
        background: #c9aa78;
        color: #171411;
        border-color: #c9aa78;
        transform: rotate(90deg);
    }

/* Стрелки */
.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 64px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(201, 170, 120, 0.55);
    border-radius: 2px;
    background: rgba(17, 16, 15, 0.72);
    color: #e2c18b;
    font-size: 25px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

    .lightbox-nav[hidden] {
        display: none;
    }

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-nav:hover {
    border-color: #c9aa78;
    background: #c9aa78;
    color: #171411;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 2px solid #f5efe7;
    outline-offset: 3px;
}

/* Анимация смены фотографий */
#lightbox-image.photo-exit-left {
    opacity: 0;
    transform: translateX(-45px);
}

#lightbox-image.photo-exit-right {
    opacity: 0;
    transform: translateX(45px);
}

#lightbox-image.photo-enter-right {
    animation: lightboxPhotoInRight 0.3s ease both;
}

#lightbox-image.photo-enter-left {
    animation: lightboxPhotoInLeft 0.3s ease both;
}

#lightbox-image.photo-enter {
    animation: photoEnter 0.3s ease both;
}

@keyframes lightboxPhotoInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lightboxPhotoInLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes photoEnter {
    from {
        opacity: 0;
        transform: translateX(35px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 700px) {
    .lightbox {
        padding: 55px 16px 20px;
    }

    .lightbox-content {
        gap: 18px;
        overflow-y: auto;
    }
}

@media (max-width: 600px) {
    .lightbox-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        padding: 0 12px;
    }

    #lightbox-image {
        max-height: 68vh;
        border-radius: 3px;
    }

    .lightbox-info {
        padding: 12px 8px 0;
    }

        .lightbox-info h3 {
            font-size: 17px;
        }

        .lightbox-info p {
            font-size: 13px;
        }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 29px;
    }

    .lightbox-nav {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}


/* =========================================================
   8. ПОДВАЛ
   ========================================================= */

.site-footer {
    margin-top: 0;
    padding: 36px 20px;
    text-align: center;
    background: #100f0e;
    color: var(--fm-text);
    border-top: 1px solid var(--fm-border);
}

    .site-footer p {
        margin: 5px 0;
    }

        .site-footer p:last-child {
            color: var(--fm-gold);
            font-size: 0.9rem;
        }


/* Кнопка загрузки следующих фотографий */
.portfolio-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

.portfolio-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 30px;
    border: 1px solid #b89b68;
    border-radius: 4px;
    background: transparent;
    color: #d2b783;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

    .portfolio-more-btn:hover {
        background: #b89b68;
        color: #171717;
        border-color: #b89b68;
    }

    .portfolio-more-btn[hidden] {
        display: none;
    }

.portfolio-counter {
    margin: 0;
    color: #999;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 600px) {
    .portfolio-more-btn {
        width: 100%;
        max-width: 320px;
    }
}



/* =========================================================
   9. АДМИНКА: ФОТОГРАФИИ, ФОРМЫ, ВХОД
   ========================================================= */

/* ----- Страница управления фотографиями ----- */

.admin-page {
    --admin-bg: #11100f;
    --admin-card: #1b1917;
    --admin-card-hover: #24211e;
    --admin-text: #f5efe7;
    --admin-muted: #b8ada2;
    --admin-gold: #c5a477;
    --admin-border: rgba(197, 164, 119, 0.23);
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: Arial, sans-serif;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin-bottom: 45px;
    padding: 38px max(5%, calc((100% - 1400px) / 2));
    border-bottom: 1px solid var(--admin-border);
    background: radial-gradient(ellipse at top left, rgba(197, 164, 119, 0.10), transparent 55%), var(--admin-card);
}

.admin-header-content {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.admin-header h1 {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.15;
}

.admin-header-description {
    margin: 13px 0 0;
    color: var(--admin-muted);
    line-height: 1.7;
}

.admin-eyebrow {
    margin: 25px 0 10px;
    color: var(--admin-gold);
    font-size: 11px;
    letter-spacing: 2.5px;
}

.admin-back {
    display: inline-block;
    margin-bottom: 18px;
    padding: 12px 20px;
    border: 1px solid #555;
    border-radius: 30px;
    color: var(--admin-gold, #c5a477);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

    .admin-back:hover {
        border-color: var(--admin-gold, #c5a477);
        color: var(--admin-text, #f5efe7);
    }

.admin-footer a {
    color: var(--admin-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .admin-footer a:hover {
        color: var(--admin-text);
    }

.admin-add-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid var(--admin-gold);
    border-radius: 3px;
    background: var(--admin-gold);
    color: #171411;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

    .admin-add-button:hover {
        background: transparent;
        color: var(--admin-gold);
    }

.admin-main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 35px 3%;
}

.admin-success {
    margin: 20px 0 25px;
    padding: 15px 18px;
    border: 1px solid rgba(112, 176, 128, 0.4);
    border-radius: 4px;
    background: rgba(112, 176, 128, 0.09);
    color: #b8e0c1;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    margin-bottom: 28px;
}

.admin-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.admin-stat-number {
    color: var(--admin-gold);
    font-size: 30px;
    font-weight: 700;
}

.admin-stat-label {
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(620px, 65%);
}

.admin-search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--admin-border);
    border-radius: 3px;
    background: var(--admin-card);
    color: var(--admin-gold);
}

    .admin-search:focus-within {
        border-color: var(--admin-gold);
    }

    .admin-search > span {
        font-size: 25px;
    }

    .admin-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--admin-text);
        font-size: 14px;
    }

        .admin-search input::placeholder {
            color: var(--admin-muted);
        }

.admin-category-select {
    width: 190px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--admin-border);
    border-radius: 3px;
    background: var(--admin-card);
    color: var(--admin-text);
    font-size: 13px;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.admin-photo-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 5px;
    background: var(--admin-card);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

    .admin-photo-card:hover {
        transform: translateY(-3px);
        border-color: var(--admin-gold);
    }

    .admin-photo-card[hidden] {
        display: none !important;
    }

.admin-photo-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0b0a09;
}

.admin-photo-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
    transition: transform 0.4s ease;
}

.admin-photo-card:hover .admin-photo-image {
    transform: scale(1.035);
}

.admin-photo-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    padding: 7px 10px;
    border: 1px solid rgba(197, 164, 119, 0.4);
    border-radius: 2px;
    background: rgba(17, 16, 15, 0.88);
    color: var(--admin-gold);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-photo-content {
    padding: 19px;
}

    .admin-photo-content h2 {
        margin: 0 0 12px;
        color: #fff;
        font-size: 19px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

.admin-photo-description {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 20px;
    overflow: hidden;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-no-description {
    opacity: 0.65;
    font-style: italic;
}

.admin-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-edit-button,
.admin-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-edit-button {
    flex: 1;
    border-color: var(--admin-gold);
    background: var(--admin-gold);
    color: #171411;
}

    .admin-edit-button:hover {
        background: transparent;
        color: var(--admin-gold);
    }

.admin-delete-button {
    background: #422323;
    color: #e3aaa1;
}

    .admin-delete-button:hover {
        border-color: #bd7165;
        background: rgba(189, 113, 101, 0.12);
    }

.admin-empty,
.admin-no-results {
    padding: 65px 20px;
    border: 1px dashed var(--admin-border);
    border-radius: 5px;
    text-align: center;
}

.admin-empty {
    margin-top: 30px;
    background: #1b1b1b;
    color: #bbb;
}

.admin-empty-icon {
    margin-bottom: 15px;
    color: var(--admin-gold);
    font-size: 45px;
}

.admin-empty h2,
.admin-no-results h2 {
    margin: 0 0 12px;
}

.admin-empty p,
.admin-no-results p {
    margin: 0 0 22px;
    color: var(--admin-muted);
    line-height: 1.7;
}

.admin-reset-button {
    padding: 10px 16px;
    border: 1px solid var(--admin-gold);
    border-radius: 3px;
    background: transparent;
    color: var(--admin-gold);
    cursor: pointer;
}

    .admin-reset-button:hover {
        background: var(--admin-gold);
        color: #171411;
    }

.admin-no-results[hidden] {
    display: none !important;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 5%;
    border-top: 1px solid var(--admin-border);
    color: var(--admin-muted);
    font-size: 12px;
}

@media (max-width: 1000px) {
    .admin-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-header {
        align-items: flex-start;
    }
}

@media (max-width: 800px) {
    .admin-header {
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .admin-header {
        gap: 22px;
        padding: 25px 5%;
    }

        .admin-header .admin-add-button {
            width: 100%;
        }

    .admin-eyebrow {
        margin-top: 20px;
        font-size: 10px;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .admin-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .admin-search,
    .admin-category-select {
        width: 100%;
        min-height: 48px;
    }

    .admin-photo-content {
        padding: 16px;
    }

        .admin-photo-content h2 {
            font-size: 18px;
        }

    .admin-footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .admin-main {
        padding: 24px 16px;
    }

    .admin-photo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* ----- Формы управления фотографиями ----- */

.admin-form-card {
    max-width: 540px;
}

    .admin-form-card form {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .admin-form-card input,
    .admin-form-card textarea,
    .admin-form-card select {
        width: 100%;
        padding: 13px;
        color: #fff;
        background: #111;
        border: 1px solid #444;
        border-radius: 8px;
        font: inherit;
    }

    .admin-form-card textarea {
        resize: vertical;
    }

    .admin-form-card select option {
        color: #fff;
        background: #111;
    }

.admin-field-hint {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

.admin-field-error {
    color: #ffb4b4;
    font-size: 13px;
}

.admin-edit-preview {
    display: block;
    width: 100%;
    max-height: 280px;
    margin: 0 0 20px;
    object-fit: contain;
    background: #111;
    border-radius: 10px;
}

.admin-confirm-delete {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    color: #fff;
    background: #a52a2a;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

    .admin-confirm-delete:hover {
        background: #c03939;
    }

.admin-cancel-delete {
    display: block;
    margin-top: 18px;
    color: #bbb;
    text-align: center;
    text-decoration: none;
}

    .admin-cancel-delete:hover {
        color: #fff;
    }


/* ----- Вход в админ-панель ----- */

.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: #f5f1e9;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(ellipse at 50% 35%, rgba(201, 169, 110, 0.09), transparent 55%), #101010;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 42px 36px;
    background: linear-gradient(145deg, #20201e, #171716);
    border: 1px solid #39352e;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 35px rgba(201, 169, 110, 0.04);
}

.admin-login-logo {
    display: inline-block;
    margin: 0 0 12px;
    color: #c9a96e;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-login-card h1,
.admin-login-card h2 {
    margin: 0 0 12px;
    color: #f5f1e9;
    font-size: 25px;
    font-weight: 500;
    text-align: center;
}

.admin-login-subtitle {
    margin: 0 0 30px;
    color: #aaa49a;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.admin-login-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-login-card label {
    display: block;
    margin: 0 0 8px;
    color: #d8d1c5;
    font-size: 14px;
}

.admin-login-card input {
    width: 100%;
    padding: 13px;
    color: #fff;
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
}

    .admin-login-card input[type="text"],
    .admin-login-card input[type="email"],
    .admin-login-card input[type="password"],
    .admin-login-card input:not([type]) {
        display: block;
        min-height: 48px;
        margin: 0 0 20px;
        padding: 12px 14px;
        color: #f5f1e9;
        background: #111110;
        border: 1px solid #454139;
        font: inherit;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .admin-login-card input:focus {
        outline: none;
        border-color: #c9a96e;
        box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
    }

.admin-login-card button {
    margin-top: 14px;
    padding: 14px;
    color: #111;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

    .admin-login-card button:hover {
        background: #ddd;
    }

    .admin-login-card button[type="submit"],
    .admin-login-card input[type="submit"] {
        display: block;
        width: 100%;
        min-height: 49px;
        margin-top: 8px;
        padding: 13px 18px;
        color: #171512;
        background: #c9a96e;
        border: 1px solid #c9a96e;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }

        .admin-login-card button[type="submit"]:hover,
        .admin-login-card input[type="submit"]:hover {
            background: #ddc18b;
            border-color: #ddc18b;
            transform: translateY(-1px);
        }

.admin-login-error {
    margin: 0 0 20px;
    padding: 12px 14px;
    color: #ffc4bc;
    background: #351f1d;
    border: 1px solid #70413b;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.admin-login-back {
    display: block;
    margin-top: 25px;
    color: #b9b1a3;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s;
}

    .admin-login-back:hover {
        color: #c9a96e;
    }

@media (max-width: 480px) {
    .admin-login-body {
        padding: 16px;
    }

    .admin-login-card {
        padding: 32px 22px;
        border-radius: 14px;
    }

    .admin-login-logo {
        font-size: 23px;
        letter-spacing: 2px;
    }

    .admin-login-card h1,
    .admin-login-card h2 {
        font-size: 22px;
    }
}


/* =========================================================
   10. АДМИНКА: ПАНЕЛЬ, КАТЕГОРИИ, УСЛУГИ, ЗАЯВКИ
   (блок перенесён без изменений)
   ========================================================= */

/* =========================================
   ЕДИНЫЙ СТИЛЬ АДМИН-ПАНЕЛИ ФОТОМОМЕНТ
   ========================================= */

.admin-dashboard {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 65px 4%;
    background: #11100f;
    color: #f5efe7;
    box-sizing: border-box;
}

.admin-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 45px;
}

.admin-dashboard-eyebrow {
    margin: 0 0 14px;
    color: #c9a66b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.admin-dashboard-header h1 {
    margin: 0;
    color: #f5efe7;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -1.5px;
}

.admin-dashboard-description {
    max-width: 620px;
    margin: 15px 0 0;
    color: #aaa198;
    font-size: 16px;
    line-height: 1.8;
}

.admin-dashboard-site-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 19px;
    border: 1px solid #514432;
    border-radius: 8px;
    color: #e7d2ad;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

    .admin-dashboard-site-link:hover {
        background: #272219;
        border-color: #c9a66b;
        color: #fff;
    }

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.admin-dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 30px;
    border: 1px solid #34302a;
    border-radius: 14px;
    background: #191816;
    box-sizing: border-box;
    transition: transform .2s, border-color .2s, background .2s;
}

    .admin-dashboard-card:hover {
        transform: translateY(-3px);
        border-color: #796344;
        background: #1e1c18;
    }

.admin-dashboard-card-featured {
    border-color: #655137;
    background: linear-gradient(135deg, #211d17, #191816 70%);
}

.admin-dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 25px;
    border: 1px solid #5c4a30;
    border-radius: 12px;
    color: #d2b17a;
    font-size: 27px;
}

.admin-dashboard-number {
    margin: 0 0 10px;
    color: #c9a66b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.admin-dashboard-card h2 {
    margin: 0 0 12px;
    color: #f5efe7;
    font-size: 25px;
    font-weight: 600;
}

.admin-dashboard-card > p:not(.admin-dashboard-number) {
    flex: 1;
    margin: 0 0 25px;
    color: #aaa198;
    font-size: 15px;
    line-height: 1.8;
}

.admin-dashboard-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #6b5739;
    border-radius: 8px;
    background: #c9a66b;
    color: #17130e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .2s, color .2s;
}

    .admin-dashboard-button span {
        font-size: 19px;
        transition: transform .2s;
    }

    .admin-dashboard-button:hover {
        background: #e0c18c;
        color: #17130e;
    }

        .admin-dashboard-button:hover span {
            transform: translateX(4px);
        }

.admin-dashboard-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid #302c26;
    color: #8e867b;
    font-size: 12px;
}

    .admin-dashboard-footer span:first-child {
        color: #c9a66b;
        font-weight: 700;
        letter-spacing: 2px;
    }

@media (max-width: 700px) {
    .admin-dashboard {
        padding: 40px 18px;
    }

    .admin-dashboard-header {
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-dashboard-card {
        padding: 24px;
    }

    .admin-dashboard-footer {
        flex-direction: column;
    }
}


/* =========================================
   УПРАВЛЕНИЕ КАТЕГОРИЯМИ
   ========================================= */

.categories-admin {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 55px 4%;
    background: #11100f;
    color: #f5efe7;
    box-sizing: border-box;
}

    .categories-admin *,
    .categories-admin *::before,
    .categories-admin *::after {
        box-sizing: border-box;
    }

.categories-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 38px;
}

.categories-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #b9ad9d;
    font-size: 14px;
    text-decoration: none;
}

    .categories-back:hover {
        color: #d9b77e;
    }

.categories-eyebrow {
    margin: 0 0 12px;
    color: #c9a66b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.categories-header h1 {
    margin: 0;
    color: #f5efe7;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -1px;
}

.categories-subtitle {
    max-width: 620px;
    margin: 14px 0 0;
    color: #aaa198;
    font-size: 15px;
    line-height: 1.8;
}

.categories-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 20px;
    border: 1px solid #c9a66b;
    border-radius: 8px;
    background: #c9a66b;
    color: #17130e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

    .categories-add-button:hover {
        background: #e0c18c;
        color: #17130e;
        transform: translateY(-1px);
    }

    .categories-add-button span {
        font-size: 19px;
        line-height: 1;
    }

.categories-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid #3c5943;
    border-radius: 9px;
    background: #19231b;
    color: #c8e6ce;
    line-height: 1.6;
}

    .categories-alert > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #294a31;
    }

.categories-alert-error {
    border-color: #633d3d;
    background: #281a1a;
    color: #ffc4c4;
}

    .categories-alert-error > span {
        background: #512929;
    }

.categories-panel {
    overflow: hidden;
    border: 1px solid #34302a;
    border-radius: 14px;
    background: #191816;
}

.categories-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    border-bottom: 1px solid #34302a;
}

    .categories-panel-header h2 {
        margin: 0;
        color: #f5efe7;
        font-size: 20px;
        font-weight: 600;
    }

    .categories-panel-header p {
        margin: 7px 0 0;
        color: #958d83;
        font-size: 13px;
    }

.categories-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7ab9a;
    white-space: nowrap;
}

    .categories-count span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 37px;
        height: 37px;
        padding: 0 8px;
        border: 1px solid #5c4a30;
        border-radius: 8px;
        background: #262118;
        color: #d8b77e;
        font-size: 16px;
        font-weight: 700;
    }

    .categories-count small {
        font-size: 12px;
    }

.categories-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.categories-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #e9e1d7;
}

    .categories-table thead {
        background: #211f1b;
    }

    .categories-table th {
        padding: 17px 24px;
        border-bottom: 1px solid #34302a;
        color: #b6a58b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .categories-table td {
        padding: 20px 24px;
        border-bottom: 1px solid #302d27;
        vertical-align: middle;
    }

    .categories-table tbody tr:last-child td {
        border-bottom: none;
    }

    .categories-table tbody tr {
        transition: background .2s;
    }

        .categories-table tbody tr:hover {
            background: #211f1b;
        }

.categories-id-column {
    width: 90px;
}

.categories-actions-column {
    width: 310px;
}

.categories-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #39352e;
    border-radius: 6px;
    color: #b6a58b;
    font-size: 13px;
}

.categories-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.categories-name-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #51432e;
    border-radius: 8px;
    background: #262118;
    color: #d1ae73;
    font-size: 18px;
}

.categories-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.categories-edit-button,
.categories-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #5c4a30;
    border-radius: 7px;
    color: #dfc18f;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

    .categories-edit-button:hover {
        border-color: #c9a66b;
        background: #30281b;
        color: #f5dfb6;
    }

.categories-delete-button {
    border-color: #593838;
    color: #e4a4a4;
}

    .categories-delete-button:hover {
        border-color: #a65e5e;
        background: #321e1e;
        color: #ffd0d0;
    }

.categories-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 24px;
    text-align: center;
}

.categories-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    border: 1px solid #5c4a30;
    border-radius: 16px;
    background: #262118;
    color: #d1ae73;
    font-size: 30px;
}

.categories-empty h3 {
    margin: 0 0 10px;
    color: #f5efe7;
    font-size: 22px;
}

.categories-empty p {
    max-width: 430px;
    margin: 0 0 24px;
    color: #aaa198;
    font-size: 14px;
    line-height: 1.8;
}

.categories-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #302c26;
    font-size: 12px;
}

    .categories-footer a {
        color: #c9a66b;
        text-decoration: none;
    }

        .categories-footer a:hover {
            color: #e0c18c;
        }

    .categories-footer span {
        color: #81796f;
        letter-spacing: 1px;
    }

@media (max-width: 700px) {
    .categories-admin {
        padding: 32px 16px;
    }

    .categories-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .categories-panel-header {
        padding: 20px 16px;
    }

    .categories-table th,
    .categories-table td {
        padding: 15px 14px;
    }

    .categories-actions-column {
        width: auto;
    }

    .categories-footer {
        flex-direction: column;
    }
}


/* =========================================
   УПРАВЛЕНИЕ УСЛУГАМИ
   ========================================= */

.services-admin {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 55px 4%;
    background: #11100f;
    color: #f5efe7;
    box-sizing: border-box;
}

    .services-admin *,
    .services-admin *::before,
    .services-admin *::after {
        box-sizing: border-box;
    }

.services-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 38px;
}

.services-admin-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #b9ad9d;
    font-size: 14px;
    text-decoration: none;
}

    .services-admin-back:hover {
        color: #d9b77e;
    }

.services-admin-eyebrow {
    margin: 0 0 12px;
    color: #c9a66b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.services-admin-header h1 {
    margin: 0;
    color: #f5efe7;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -1px;
}

.services-admin-subtitle {
    max-width: 620px;
    margin: 14px 0 0;
    color: #aaa198;
    font-size: 15px;
    line-height: 1.8;
}

.services-admin-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 20px;
    border: 1px solid #c9a66b;
    border-radius: 8px;
    background: #c9a66b;
    color: #17130e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

    .services-admin-add:hover {
        background: #e0c18c;
        color: #17130e;
        transform: translateY(-1px);
    }

    .services-admin-add span {
        font-size: 19px;
        line-height: 1;
    }

.services-admin-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid #3c5943;
    border-radius: 9px;
    background: #19231b;
    color: #c8e6ce;
    line-height: 1.6;
}

    .services-admin-alert > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #294a31;
    }

.services-admin-panel {
    overflow: hidden;
    border: 1px solid #34302a;
    border-radius: 14px;
    background: #191816;
}

.services-admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    border-bottom: 1px solid #34302a;
}

    .services-admin-panel-header h2 {
        margin: 0;
        color: #f5efe7;
        font-size: 20px;
        font-weight: 600;
    }

    .services-admin-panel-header p {
        margin: 7px 0 0;
        color: #958d83;
        font-size: 13px;
    }

.services-admin-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7ab9a;
    white-space: nowrap;
}

    .services-admin-count > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 37px;
        height: 37px;
        padding: 0 8px;
        border: 1px solid #5c4a30;
        border-radius: 8px;
        background: #262118;
        color: #d8b77e;
        font-size: 16px;
        font-weight: 700;
    }

    .services-admin-count small {
        font-size: 12px;
    }

.services-admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.services-admin-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #e9e1d7;
}

    .services-admin-table thead {
        background: #211f1b;
    }

    .services-admin-table th {
        padding: 17px 20px;
        border-bottom: 1px solid #34302a;
        color: #b6a58b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .services-admin-table td {
        padding: 20px;
        border-bottom: 1px solid #302d27;
        vertical-align: middle;
    }

    .services-admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .services-admin-table tbody tr {
        transition: background .2s;
    }

        .services-admin-table tbody tr:hover {
            background: #211f1b;
        }

.services-admin-id-col {
    width: 70px;
}

.services-admin-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #39352e;
    border-radius: 6px;
    color: #b6a58b;
    font-size: 13px;
}

.services-admin-name {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 160px;
}

    .services-admin-name strong {
        color: #f5efe7;
        font-size: 14px;
        font-weight: 600;
    }

.services-admin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid #51432e;
    border-radius: 8px;
    background: #262118;
    color: #d1ae73;
    font-size: 20px;
}

.services-admin-description {
    display: block;
    min-width: 180px;
    max-width: 360px;
    color: #b5ada3;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.services-admin-no-description {
    color: #81796f;
    font-size: 13px;
    font-style: italic;
}

.services-admin-price {
    color: #d9bb84;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.services-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.services-admin-edit,
.services-admin-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #5c4a30;
    border-radius: 7px;
    color: #dfc18f;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

    .services-admin-edit:hover {
        border-color: #c9a66b;
        background: #30281b;
        color: #f5dfb6;
    }

.services-admin-delete {
    border-color: #593838;
    color: #e4a4a4;
}

    .services-admin-delete:hover {
        border-color: #a65e5e;
        background: #321e1e;
        color: #ffd0d0;
    }

.services-admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 24px;
    text-align: center;
}

.services-admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    border: 1px solid #5c4a30;
    border-radius: 16px;
    background: #262118;
    color: #d1ae73;
    font-size: 30px;
}

.services-admin-empty h3 {
    margin: 0 0 10px;
    color: #f5efe7;
    font-size: 22px;
}

.services-admin-empty p {
    max-width: 430px;
    margin: 0 0 24px;
    color: #aaa198;
    font-size: 14px;
    line-height: 1.8;
}

.services-admin-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #302c26;
    font-size: 12px;
}

    .services-admin-footer a {
        color: #c9a66b;
        text-decoration: none;
    }

        .services-admin-footer a:hover {
            color: #e0c18c;
        }

    .services-admin-footer span {
        color: #81796f;
        letter-spacing: 1px;
    }

@media (max-width: 700px) {
    .services-admin {
        padding: 32px 16px;
    }

    .services-admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-admin-panel-header {
        padding: 20px 16px;
    }

    .services-admin-table th,
    .services-admin-table td {
        padding: 15px 14px;
    }

    .services-admin-footer {
        flex-direction: column;
    }
}


/* =========================================
   ЗАЯВКИ КЛИЕНТОВ
   ========================================= */

.requests-admin {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 55px 3%;
    background: #11100f;
    color: #f5efe7;
    box-sizing: border-box;
}

    .requests-admin *,
    .requests-admin *::before,
    .requests-admin *::after {
        box-sizing: border-box;
    }

.requests-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 38px;
}

.requests-admin-back {
    display: inline-block;
    margin-bottom: 27px;
    color: #b9ad9d;
    font-size: 14px;
    text-decoration: none;
}

    .requests-admin-back:hover {
        color: #d9b77e;
    }

.requests-admin-eyebrow {
    margin: 0 0 12px;
    color: #c9a66b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.requests-admin-header h1 {
    margin: 0;
    color: #f5efe7;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -1px;
}

.requests-admin-subtitle {
    max-width: 650px;
    margin: 14px 0 0;
    color: #aaa198;
    font-size: 15px;
    line-height: 1.8;
}

.requests-admin-total {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 1px solid #5c4a30;
    border-radius: 10px;
    background: #201c16;
}

    .requests-admin-total > span {
        color: #d8b77e;
        font-size: 27px;
        font-weight: 700;
    }

    .requests-admin-total small {
        color: #b7ab9a;
        font-size: 12px;
    }

.requests-admin-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid #3c5943;
    border-radius: 9px;
    background: #19231b;
    color: #c8e6ce;
    line-height: 1.6;
}

    .requests-admin-alert > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: #294a31;
    }

.requests-admin-panel {
    overflow: hidden;
    border: 1px solid #34302a;
    border-radius: 14px;
    background: #191816;
}

.requests-admin-panel-header {
    padding: 24px 26px;
    border-bottom: 1px solid #34302a;
    background: #191816;
}

    .requests-admin-panel-header h2 {
        margin: 0;
        color: #f5efe7;
        font-size: 20px;
        font-weight: 600;
    }

    .requests-admin-panel-header p {
        margin: 7px 0 0;
        color: #958d83;
        font-size: 13px;
    }

.requests-admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.requests-admin-table {
    width: 100%;
    min-width: 1250px;
    margin: 0;
    border-collapse: collapse;
    color: #e9e1d7;
}

    .requests-admin-table thead {
        background: #211f1b;
    }

    .requests-admin-table th {
        padding: 16px 15px;
        border-bottom: 1px solid #39342c;
        color: #b6a58b;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .requests-admin-table td {
        padding: 18px 15px;
        border-bottom: 1px solid #302d27;
        vertical-align: top;
        font-size: 13px;
    }

    .requests-admin-table tbody tr:last-child td {
        border-bottom: none;
    }

    .requests-admin-table tbody tr {
        transition: background .2s;
    }

        .requests-admin-table tbody tr:hover {
            background: #211f1b;
        }

.requests-admin-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #51432e;
    border-radius: 6px;
    background: #262118;
    color: #d8b77e;
    font-weight: 700;
}

.request-client-name {
    min-width: 145px;
    margin-bottom: 8px;
    color: #f5efe7;
    font-size: 14px;
    font-weight: 600;
}

.request-contact-link {
    display: block;
    width: fit-content;
    max-width: 190px;
    margin-top: 6px;
    color: #d1b27d;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    .request-contact-link:hover {
        color: #f1d5a3;
        text-decoration: underline;
    }

.request-muted {
    display: inline-block;
    color: #81796f;
    font-size: 12px;
}

.request-service-name {
    display: inline-block;
    min-width: 100px;
    color: #e5d5b9;
    font-weight: 500;
}

.request-date {
    display: block;
    color: #d7cfc3;
    white-space: nowrap;
}

.request-time {
    display: block;
    margin-top: 5px;
    color: #8f867b;
    font-size: 12px;
}

.request-message {
    min-width: 180px;
    max-width: 280px;
    color: #b5ada3;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.request-status-cell {
    min-width: 145px;
}

.request-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.request-status-new {
    border-color: #354e6b;
    background: #1b2b3e;
    color: #a9d1ff;
}

.request-status-progress {
    border-color: #6c5833;
    background: #302719;
    color: #e9c887;
}

.request-status-done {
    border-color: #365a42;
    background: #1b3021;
    color: #a9ddb4;
}

.request-status-cancelled {
    border-color: #633d3d;
    background: #321e1e;
    color: #f0aaaa;
}

.request-status-other {
    border-color: #49433a;
    background: #292621;
    color: #c4b9a8;
}

.request-status-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.request-status-select {
    width: 100%;
    min-width: 135px;
    padding: 9px 10px;
    border: 1px solid #494238;
    border-radius: 7px;
    outline: none;
    background: #211f1b;
    color: #eee5d8;
    font-size: 12px;
}

    .request-status-select:focus {
        border-color: #c9a66b;
    }

    .request-status-select option {
        background: #211f1b;
        color: #eee5d8;
    }

.request-status-save {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #6b5739;
    border-radius: 7px;
    background: #c9a66b;
    color: #17130e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

    .request-status-save:hover {
        background: #e0c18c;
    }

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 115px;
}

.request-details-button,
.request-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #5c4a30;
    border-radius: 7px;
    background: transparent;
    color: #dfc18f;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

    .request-details-button:hover {
        border-color: #c9a66b;
        background: #30281b;
        color: #f5dfb6;
    }

.request-actions form {
    margin: 0;
}

.request-delete-button {
    border-color: #593838;
    color: #e4a4a4;
}

    .request-delete-button:hover {
        border-color: #a65e5e;
        background: #321e1e;
        color: #ffd0d0;
    }

.requests-admin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 55px 24px;
    text-align: center;
}

.requests-admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    border: 1px solid #5c4a30;
    border-radius: 16px;
    background: #262118;
    color: #d1ae73;
    font-size: 30px;
}

.requests-admin-empty h3 {
    margin: 0 0 10px;
    color: #f5efe7;
    font-size: 22px;
}

.requests-admin-empty p {
    max-width: 430px;
    margin: 0;
    color: #aaa198;
    font-size: 14px;
    line-height: 1.8;
}

.requests-admin-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #302c26;
    font-size: 12px;
}

    .requests-admin-footer a {
        color: #c9a66b;
        text-decoration: none;
    }

        .requests-admin-footer a:hover {
            color: #e0c18c;
        }

    .requests-admin-footer span {
        color: #81796f;
        letter-spacing: 1px;
    }

@media (max-width: 700px) {
    .requests-admin {
        padding: 32px 16px;
    }

    .requests-admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .requests-admin-panel-header {
        padding: 20px 16px;
    }

    .requests-admin-footer {
        flex-direction: column;
    }
}


/* =========================================
   ФОРМА ДОБАВЛЕНИЯ КАТЕГОРИИ
   ========================================= */

.category-form-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 55px 20px;
    background: #11100f;
    color: #f5efe7;
    box-sizing: border-box;
}

.category-form-card {
    width: 100%;
    max-width: 620px;
    padding: 38px;
    border: 1px solid #39342c;
    border-radius: 16px;
    background: #191816;
    box-sizing: border-box;
}

.category-form-back {
    display: inline-block;
    margin-bottom: 32px;
    color: #b9ad9d;
    font-size: 14px;
    text-decoration: none;
}

    .category-form-back:hover {
        color: #d9b77e;
    }

.category-form-eyebrow {
    margin: 0 0 18px;
    color: #c9a66b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.category-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
    border: 1px solid #5c4a30;
    border-radius: 13px;
    background: #262118;
    color: #d8b77e;
    font-size: 28px;
}

.category-form-card h1 {
    margin: 0;
    color: #f5efe7;
    font-size: clamp(27px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: -.7px;
}

.category-form-subtitle {
    margin: 13px 0 30px;
    color: #aaa198;
    font-size: 14px;
    line-height: 1.8;
}

.category-form-group {
    margin-bottom: 24px;
}

    .category-form-group label {
        display: block;
        margin-bottom: 10px;
        color: #e5d9c7;
        font-size: 13px;
        font-weight: 600;
    }

.category-form-input {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 13px 15px;
    border: 1px solid #494238;
    border-radius: 8px;
    outline: none;
    background: #11100f;
    color: #f5efe7;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

    .category-form-input::placeholder {
        color: #756d63;
    }

    .category-form-input:focus {
        border-color: #c9a66b;
        box-shadow: 0 0 0 3px rgb(201 166 107 / 12%);
    }

.category-form-hint {
    margin: 10px 0 0;
    color: #8f867b;
    font-size: 12px;
    line-height: 1.7;
}

.category-form-field-error,
.category-form-validation {
    display: block;
    margin-top: 8px;
    color: #ff9292;
    font-size: 13px;
    line-height: 1.6;
}

    .category-form-validation:empty {
        display: none;
    }

.category-form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 49px;
    padding: 13px 16px;
    border: 1px solid #c9a66b;
    border-radius: 8px;
    background: #c9a66b;
    color: #17130e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

    .category-form-submit:hover {
        background: #e0c18c;
    }

    .category-form-submit span {
        font-size: 20px;
    }

.category-form-cancel {
    display: flex;
    justify-content: center;
    margin-top: 13px;
    padding: 13px;
    border: 1px solid #494238;
    border-radius: 8px;
    color: #c5b9a8;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
}

    .category-form-cancel:hover {
        background: #26231e;
        color: #fff;
    }

.category-form-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #302c26;
    color: #81796f;
    font-size: 10px;
    letter-spacing: 1.5px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .category-form-page {
        padding: 25px 14px;
    }

    .category-form-card {
        padding: 25px 20px;
    }
}

/* ===== Удаление категории ===== */
.category-delete-page {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 20px;
    background: #111111;
    color: #f3f0e9;
}

.category-delete-card {
    width: 100%;
    max-width: 600px;
    padding: 38px;
    background: #191919;
    border: 1px solid #34312b;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.category-delete-back {
    display: inline-block;
    margin-bottom: 30px;
    color: #c9a96e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

    .category-delete-back:hover {
        color: #f0d29b;
    }

.category-delete-eyebrow {
    margin-bottom: 18px;
    color: #b79a65;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
}

.category-delete-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid #76533c;
    border-radius: 15px;
    color: #e5a078;
    background: rgba(180, 90, 55, 0.10);
    font-size: 28px;
    font-weight: 500;
}

.category-delete-card h1 {
    margin: 0 0 14px;
    color: #f5f1e8;
    font-size: clamp(27px, 5vw, 36px);
    font-weight: 600;
    letter-spacing: -1px;
}

.category-delete-subtitle {
    margin-bottom: 28px;
    color: #a9a59d;
    font-size: 14px;
    line-height: 1.8;
}

.category-delete-info {
    padding: 22px;
    margin-bottom: 20px;
    background: #22211e;
    border: 1px solid #39352d;
    border-radius: 12px;
}

.category-delete-label {
    color: #a59b88;
    font-size: 10px;
    letter-spacing: 1.8px;
}

.category-delete-info h2 {
    margin: 10px 0;
    color: #d6b77c;
    font-size: 23px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.category-delete-id {
    color: #858078;
    font-size: 12px;
}

.category-delete-warning {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin-bottom: 25px;
    background: rgba(174, 113, 57, 0.08);
    border: 1px solid rgba(174, 113, 57, 0.3);
    border-radius: 10px;
}

.category-delete-warning-icon {
    color: #d6a16b;
    font-size: 19px;
}

.category-delete-warning p {
    margin: 0;
    color: #bdb5a8;
    font-size: 12px;
    line-height: 1.8;
}

.category-delete-warning strong {
    color: #e1c49a;
}

.category-delete-submit {
    width: 100%;
    min-height: 49px;
    padding: 13px 18px;
    border: 1px solid #a94f43;
    border-radius: 9px;
    background: #8f3e35;
    color: #fff5f1;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .category-delete-submit:hover {
        background: #a5483d;
        transform: translateY(-1px);
    }

.category-delete-cancel {
    display: block;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #39362f;
    border-radius: 9px;
    color: #d2c9b8;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

    .category-delete-cancel:hover {
        background: #252420;
        color: #e6c88f;
    }

.category-delete-footer {
    padding-top: 22px;
    margin-top: 26px;
    border-top: 1px solid #302e29;
    color: #77736b;
    font-size: 10px;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .category-delete-page {
        padding: 30px 12px;
    }

    .category-delete-card {
        padding: 24px 18px;
    }
}

/* ===== Форма добавления и редактирования услуги ===== */
.service-form-page {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background: #111111;
    color: #f3f0e9;
}

.service-form-card {
    width: 100%;
    max-width: 680px;
    padding: 38px;
    background: #191919;
    border: 1px solid #34312b;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.service-form-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #c9a96e;
    font-size: 14px;
    text-decoration: none;
}

    .service-form-back:hover {
        color: #f0d29b;
    }

.service-form-eyebrow {
    margin-bottom: 18px;
    color: #b79a65;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.service-form-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid #665438;
    border-radius: 15px;
    color: #d6b77c;
    background: rgba(201, 169, 110, 0.08);
    font-size: 27px;
}

.service-form-card h1 {
    margin: 0 0 14px;
    color: #f5f1e8;
    font-size: clamp(27px, 5vw, 36px);
    font-weight: 600;
    letter-spacing: -1px;
}

.service-form-subtitle {
    margin-bottom: 30px;
    color: #a9a59d;
    font-size: 14px;
    line-height: 1.8;
}

.service-form-group {
    margin-bottom: 23px;
}

    .service-form-group label {
        display: block;
        margin-bottom: 10px;
        color: #e5dfd3;
        font-size: 13px;
        font-weight: 500;
    }

.service-form-input {
    display: block;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #3a3832;
    border-radius: 9px;
    outline: none;
    background: #22211e;
    color: #f3f0e9;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

    .service-form-input::placeholder {
        color: #77736b;
    }

    .service-form-input:focus {
        border-color: #b79a65;
        background: #25231f;
    }

.service-form-textarea {
    min-height: 125px;
    resize: vertical;
    line-height: 1.7;
}

.service-form-hint {
    margin: 9px 0 0;
    color: #858078;
    font-size: 12px;
    line-height: 1.6;
}

.service-form-error,
.service-form-validation {
    display: block;
    margin-top: 7px;
    color: #e59b8f;
    font-size: 12px;
}

    .service-form-validation:empty {
        display: none;
    }

.service-form-submit {
    width: 100%;
    min-height: 49px;
    padding: 13px 18px;
    border: 1px solid #d0b477;
    border-radius: 9px;
    background: #c9a96e;
    color: #191713;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .service-form-submit:hover {
        background: #dfc18a;
        transform: translateY(-1px);
    }

    .service-form-submit span {
        margin-left: 7px;
    }

.service-form-cancel {
    display: block;
    margin-top: 13px;
    padding: 12px;
    border: 1px solid #39362f;
    border-radius: 9px;
    color: #d2c9b8;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

    .service-form-cancel:hover {
        background: #252420;
        color: #e6c88f;
    }

.service-form-footer {
    padding-top: 22px;
    margin-top: 27px;
    border-top: 1px solid #302e29;
    color: #77736b;
    font-size: 10px;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .service-form-page {
        padding: 30px 12px;
    }

    .service-form-card {
        padding: 24px 18px;
    }
}

/* ===== Удаление услуги ===== */
.service-delete-page {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: #111111;
    color: #f3f0e9;
}

.service-delete-card {
    width: 100%;
    max-width: 680px;
    padding: 38px;
    background: #191919;
    border: 1px solid #34312b;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.service-delete-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #c9a96e;
    font-size: 14px;
    text-decoration: none;
}

    .service-delete-back:hover {
        color: #f0d29b;
    }

.service-delete-eyebrow {
    margin-bottom: 18px;
    color: #b79a65;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.service-delete-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid #76533c;
    border-radius: 15px;
    color: #e5a078;
    background: rgba(180, 90, 55, 0.10);
    font-size: 28px;
}

.service-delete-card h1 {
    margin: 0 0 14px;
    color: #f5f1e8;
    font-size: clamp(27px, 5vw, 36px);
    font-weight: 600;
    letter-spacing: -1px;
}

.service-delete-subtitle {
    margin-bottom: 28px;
    color: #a9a59d;
    font-size: 14px;
    line-height: 1.8;
}

.service-delete-info {
    padding: 23px;
    margin-bottom: 20px;
    background: #22211e;
    border: 1px solid #39352d;
    border-radius: 12px;
}

.service-delete-label {
    color: #a59b88;
    font-size: 10px;
    letter-spacing: 1.8px;
}

.service-delete-info h2 {
    margin: 10px 0;
    color: #d6b77c;
    font-size: 23px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.service-delete-divider {
    height: 1px;
    margin: 20px 0;
    background: #39352d;
}

.service-delete-description {
    margin: 10px 0 0;
    color: #d0cbc1;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.service-delete-price {
    margin: 10px 0 16px;
    color: #d6b77c;
    font-size: 25px;
    font-weight: 600;
}

.service-delete-id {
    display: block;
    color: #858078;
    font-size: 12px;
}

.service-delete-warning {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin-bottom: 25px;
    background: rgba(174, 113, 57, 0.08);
    border: 1px solid rgba(174, 113, 57, 0.3);
    border-radius: 10px;
}

.service-delete-warning-icon {
    color: #d6a16b;
    font-size: 19px;
}

.service-delete-warning p {
    margin: 0;
    color: #bdb5a8;
    font-size: 12px;
    line-height: 1.8;
}

.service-delete-warning strong {
    color: #e1c49a;
}

.service-delete-submit {
    width: 100%;
    min-height: 49px;
    padding: 13px 18px;
    border: 1px solid #a94f43;
    border-radius: 9px;
    background: #8f3e35;
    color: #fff5f1;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .service-delete-submit:hover {
        background: #a5483d;
        transform: translateY(-1px);
    }

.service-delete-cancel {
    display: block;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #39362f;
    border-radius: 9px;
    color: #d2c9b8;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

    .service-delete-cancel:hover {
        background: #252420;
        color: #e6c88f;
    }

.service-delete-footer {
    padding-top: 22px;
    margin-top: 26px;
    border-top: 1px solid #302e29;
    color: #77736b;
    font-size: 10px;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .service-delete-page {
        padding: 30px 12px;
    }

    .service-delete-card {
        padding: 24px 18px;
    }
}

/* ===== Подробности заявки ===== */
.request-details-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 45px 28px 35px;
    color: #f3f0e9;
}

.request-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 32px;
}

.request-details-back {
    display: inline-block;
    margin-bottom: 26px;
    color: #c9a96e;
    font-size: 14px;
    text-decoration: none;
}

    .request-details-back:hover {
        color: #f0d29b;
    }

.request-details-eyebrow {
    margin-bottom: 13px;
    color: #b79a65;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.request-details-header h1 {
    margin: 0 0 12px;
    color: #f5f1e8;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -1px;
}

.request-details-subtitle {
    margin: 0;
    color: #a9a59d;
    font-size: 14px;
    line-height: 1.7;
}

.request-details-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 22px;
    background: #191919;
    border: 1px solid #34312b;
    border-radius: 12px;
}

.request-details-status-label {
    color: #8e897f;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.request-details-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.request-details-status-new {
    color: #e5c783;
    background: rgba(201, 169, 110, 0.10);
    border-color: rgba(201, 169, 110, 0.28);
}

.request-details-status-progress {
    color: #8ec5e8;
    background: rgba(75, 145, 190, 0.10);
    border-color: rgba(75, 145, 190, 0.28);
}

.request-details-status-done {
    color: #94d3a2;
    background: rgba(79, 155, 98, 0.10);
    border-color: rgba(79, 155, 98, 0.28);
}

.request-details-status-cancelled {
    color: #e5a09a;
    background: rgba(180, 75, 65, 0.10);
    border-color: rgba(180, 75, 65, 0.28);
}

.request-details-status-other {
    color: #c4bdb0;
    background: #292722;
    border-color: #454037;
}

.request-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.request-details-card {
    min-width: 0;
    padding: 26px;
    background: #191919;
    border: 1px solid #34312b;
    border-radius: 15px;
}

.request-details-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid #302e29;
}

.request-details-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #665438;
    border-radius: 12px;
    background: rgba(201, 169, 110, 0.08);
    color: #d6b77c;
    font-size: 22px;
}

.request-details-card-heading h2 {
    margin: 0 0 6px;
    color: #eee8dc;
    font-size: 17px;
    font-weight: 600;
}

.request-details-card-heading p {
    margin: 0;
    color: #858078;
    font-size: 12px;
}

.request-details-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 17px 0;
    border-bottom: 1px solid #2b2925;
}

    .request-details-field > span:first-child {
        color: #928c81;
        font-size: 12px;
    }

    .request-details-field strong {
        color: #e8e2d7;
        font-size: 14px;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

.request-details-contact {
    color: #d6b77c;
    font-size: 14px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

    .request-details-contact:hover {
        color: #f0d29b;
        text-decoration: underline;
    }

.request-details-muted {
    color: #858078 !important;
}

.request-details-price {
    color: #d6b77c !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.request-details-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.request-details-primary-button,
.request-details-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.request-details-primary-button {
    background: #c9a96e;
    border-color: #d0b477;
    color: #191713;
}

    .request-details-primary-button:hover {
        background: #dfc18a;
        color: #191713;
    }

.request-details-secondary-button {
    background: #22211e;
    border-color: #39362f;
    color: #d2c9b8;
}

    .request-details-secondary-button:hover {
        background: #2b2924;
        border-color: #766344;
        color: #e6c88f;
    }

.request-details-message-block {
    padding-top: 20px;
}

    .request-details-message-block > span {
        color: #928c81;
        font-size: 12px;
    }

    .request-details-message-block p {
        margin: 12px 0 0;
        padding: 15px;
        border: 1px solid #353129;
        border-radius: 9px;
        background: #22211e;
        color: #d0cbc1;
        font-size: 13px;
        line-height: 1.8;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

.request-details-meta-card {
    grid-column: 1 / -1;
}

    .request-details-meta-card .request-details-field {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

        .request-details-meta-card .request-details-field > span:first-child {
            flex-shrink: 0;
        }

.request-details-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #302e29;
}

    .request-details-footer > span {
        color: #77736b;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

@media (max-width: 760px) {
    .request-details-page {
        padding: 30px 16px;
    }

    .request-details-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .request-details-meta-card {
        grid-column: auto;
    }

    .request-details-card {
        padding: 21px 18px;
    }

    .request-details-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .request-details-contact-actions {
        flex-direction: column;
    }

    .request-details-primary-button,
    .request-details-secondary-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== Поиск и фильтры заявок ===== */
.requests-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
    align-items: end;
    gap: 16px;
    padding: 22px;
    background: #191919;
    border-bottom: 1px solid #302e29;
}

.requests-search-box,
.requests-filter-box {
    min-width: 0;
}

    .requests-search-box label,
    .requests-filter-box label {
        display: block;
        margin-bottom: 9px;
        color: #bdb5a8;
        font-size: 12px;
        font-weight: 500;
    }

.requests-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #3a3832;
    border-radius: 9px;
    background: #22211e;
    transition: border-color 0.2s;
}

    .requests-search-input-wrap:focus-within {
        border-color: #b79a65;
    }

    .requests-search-input-wrap > span {
        color: #c9a96e;
        font-size: 23px;
    }

    .requests-search-input-wrap input {
        width: 100%;
        min-width: 0;
        padding: 12px 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #f3f0e9;
        font: inherit;
        font-size: 13px;
    }

        .requests-search-input-wrap input::placeholder {
            color: #77736b;
        }

.requests-filter-box select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #3a3832;
    border-radius: 9px;
    outline: none;
    background: #22211e;
    color: #e5dfd3;
    font: inherit;
    font-size: 13px;
}

    .requests-filter-box select:focus {
        border-color: #b79a65;
    }

.requests-reset-button {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid #514735;
    border-radius: 9px;
    background: transparent;
    color: #d6b77c;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .requests-reset-button:hover {
        background: #29251e;
        border-color: #b79a65;
    }

.requests-results-line {
    padding: 14px 22px;
    border-bottom: 1px solid #302e29;
    background: #171715;
    color: #928c81;
    font-size: 12px;
}

    .requests-results-line strong {
        color: #d6b77c;
        font-weight: 600;
    }

.requests-no-matches {
    padding: 48px 20px;
    text-align: center;
    color: #a9a59d;
}

    .requests-no-matches[hidden] {
        display: none !important;
    }

    .requests-no-matches > div {
        margin-bottom: 10px;
        color: #c9a96e;
        font-size: 36px;
    }

    .requests-no-matches h3 {
        margin: 0 0 10px;
        color: #eee8dc;
        font-size: 20px;
    }

    .requests-no-matches p {
        margin-bottom: 20px;
        font-size: 13px;
    }

.request-filter-row[hidden] {
    display: none !important;
}

.requests-admin-table-wrap[hidden] {
    display: none !important;
}

@media (max-width: 850px) {
    .requests-tools {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .requests-search-box {
        grid-column: 1 / -1;
    }

    .requests-reset-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .requests-tools {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .requests-search-box {
        grid-column: auto;
    }
}

/* Кнопки в шапке панели администратора */

.admin-dashboard-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-logout-form {
    margin: 0;
}

.admin-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 17px;
    box-sizing: border-box;
    color: #c9a96e;
    background: #242321;
    border: 1px solid #66543a;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .admin-logout-button:hover {
        color: #171512;
        background: #c9a96e;
        border-color: #c9a96e;
    }

    .admin-logout-button:focus-visible {
        outline: 2px solid #ddc18b;
        outline-offset: 3px;
    }

@media (max-width: 700px) {
    .admin-dashboard-header-actions {
        justify-content: flex-start;
        width: 100%;
    }

        .admin-dashboard-header-actions > a,
        .admin-logout-form,
        .admin-logout-button {
            width: 100%;
        }
}

/* =========================================================
   11. ФОРМА ЗАПИСИ (КОНТАКТЫ)
   ========================================================= */

.contacts {
    background: radial-gradient(ellipse at 50% 0%, rgba(197, 164, 119, 0.09), transparent 60%), #191715;
    border-top: 1px solid var(--fm-border);
    text-align: center;
}

#contacts {
    width: 100%;
    padding: 80px 24px;
    overflow-wrap: anywhere;
}

.contacts > h2 {
    text-align: center;
}

.contacts p {
    margin-bottom: 30px;
    font-size: 20px;
}

/* Специальное предложение */
#contacts .first-session-offer {
    position: relative;
    max-width: 820px;
    margin: 0 auto 36px;
    padding: 30px 32px 32px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(145deg, rgba(201, 170, 120, 0.13), rgba(201, 170, 120, 0.03) 60%), #1c1a17;
    border: 1px solid rgba(201, 170, 120, 0.45);
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

    /* Золотая линия сверху */
    #contacts .first-session-offer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 90px;
        height: 2px;
        background: #c9aa78;
        transform: translateX(-50%);
    }

#contacts .first-session-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(201, 170, 120, 0.5);
    border-radius: 2px;
    color: #c9aa78;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.4;
}

#contacts .first-session-offer h3 {
    margin: 0 0 12px;
    color: #e4c99c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 400;
    line-height: 1.25;
}

#contacts .first-session-offer p {
    max-width: 560px;
    margin: 0 auto;
    color: #b8ada2;
    font-size: 15px;
    line-height: 1.8;
}

#contacts .contacts-subtitle {
    max-width: 600px;
    margin: 14px auto 32px;
    color: #aaa;
    line-height: 1.7;
    text-align: center;
}

#contacts .request-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 32px;
    background: #202020;
    border: 1px solid #373737;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    text-align: left;
}

#contacts .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

    /* Поля «Дата» и «Пожелания», цена, кнопка и примечание — на всю ширину */
    #contacts .form-group:has(#PreferredDate),
    #contacts .form-group:has(#Message),
    #contacts .booking-price,
    #contacts .request-submit,
    #contacts .form-note {
        grid-column: 1 / -1;
    }

    #contacts .form-group label {
        display: block;
        margin: 0;
        color: #e5e0d7;
        font-size: 14px;
        line-height: 1.5;
    }

    #contacts .form-group input,
    #contacts .form-group select,
    #contacts .form-group textarea {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 13px 14px;
        border: 1px solid #454545;
        border-radius: 6px;
        outline: none;
        background: #171717;
        color: #f5f5f5;
        font: inherit;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    #contacts .form-group input,
    #contacts .form-group select {
        min-height: 49px;
    }

    #contacts .form-group textarea {
        min-height: 130px;
        resize: none;
    }

        #contacts .form-group input::placeholder,
        #contacts .form-group textarea::placeholder {
            color: #777;
            opacity: 1;
        }

        #contacts .form-group input:focus,
        #contacts .form-group select:focus,
        #contacts .form-group textarea:focus {
            border-color: #b89b68;
            box-shadow: 0 0 0 3px rgba(184, 155, 104, 0.13);
        }

    #contacts .form-group select {
        cursor: pointer;
    }

    #contacts .form-group input[type="date"] {
        color-scheme: dark;
    }

/* Своя стрелка у списка фотосессий */
.request-form select#ServiceId {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 16px !important;
    padding-right: 42px !important;
}

/* Блок стоимости */
#contacts .booking-price {
    min-width: 0;
}

#bookingPrice[hidden] {
    display: none !important;
}

#bookingPrice:not([hidden]) {
    display: block;
    visibility: visible;
    opacity: 1;
    margin: 20px 0;
    padding: 22px;
    background: linear-gradient(135deg, #292929, #171717);
    border: 1px solid #b89b66;
    border-radius: 14px;
    box-shadow: 0 0 22px rgba(184, 155, 102, 0.12);
}

#bookingPrice .booking-price-label {
    display: block;
    margin-bottom: 8px;
    color: #d0d0d0;
    font-size: 14px;
}

#bookingPrice .booking-price-value {
    display: block;
    color: #d6b77a;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#bookingPrice > p {
    margin: 10px 0 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
}

/* Анимация появления цены (класс добавляется скриптом) */
#bookingPrice.price-animate:not([hidden]) {
    transform-origin: center top;
    animation: priceCardEnter 800ms ease both;
}

#bookingPrice.price-animate .booking-price-value {
    animation: priceTextEnter 800ms ease 100ms both;
}

@keyframes priceCardEnter {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.92);
        filter: blur(5px);
    }

    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1.01);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes priceTextEnter {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка отправки */
#contacts .request-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 22px;
    border: 1px solid #b89b68;
    border-radius: 6px;
    background: #b89b68;
    color: #171717;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    #contacts .request-submit:hover {
        background: #d2b783;
        border-color: #d2b783;
    }

    #contacts .request-submit:active {
        transform: translateY(1px);
    }

    #contacts .request-submit:focus-visible {
        outline: 2px solid #d2b783;
        outline-offset: 3px;
    }

#contacts .form-note {
    margin: -10px 0 0;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}

/* Уведомление после отправки заявки */
.request-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 700px;
    margin: 25px auto;
    padding: 20px 24px;
    border: 1px solid #b99a62;
    border-radius: 12px;
    background: #242424;
    color: #f1eee8;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.request-message-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b99a62;
    color: #171717;
    font-weight: 700;
}

.request-message.error {
    border-color: #b85c5c;
}

    .request-message.error .request-message-icon {
        background: #b85c5c;
        color: #fff;
    }

#contacts .request-message {
    gap: 12px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 24px;
    padding: 16px 18px;
    border: 1px solid #454545;
    border-radius: 8px;
}

    #contacts .request-message.success {
        border-color: #405746;
        background: #202a23;
        color: #c6e0cb;
    }

    #contacts .request-message.error {
        border-color: #704343;
        background: #302020;
        color: #f0caca;
    }

@media (max-width: 768px) {
    #contacts {
        padding: 60px 20px;
    }

        #contacts .request-form {
            gap: 20px;
            padding: 24px;
        }
}

@media (max-width: 600px) {
    .request-message {
        margin: 20px 16px;
        padding: 16px;
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    #contacts {
        padding: 48px 16px;
    }

        #contacts .contacts-subtitle {
            margin-bottom: 26px;
            font-size: 14px;
        }

        #contacts .first-session-offer {
            margin-bottom: 28px;
            padding: 24px 18px 26px;
        }

        #contacts .first-session-label {
            font-size: 10px;
            letter-spacing: 2px;
        }

        #contacts .first-session-offer p {
            font-size: 14px;
        }

        #contacts .request-form {
            grid-template-columns: minmax(0, 1fr);
            gap: 18px;
            padding: 20px 16px;
            border-radius: 10px;
        }

        #contacts .form-group input,
        #contacts .form-group select {
            min-height: 50px;
        }

        #contacts .form-group textarea {
            min-height: 120px;
        }

        #contacts .request-submit {
            min-height: 54px;
        }
}


/* =========================================================
   11.5. АНИМАЦИИ
   Только CSS, без JS. Включаются, если в системе не выбрано
   «уменьшить движение». Анимации при прокрутке работают в
   современных браузерах; в остальных сайт выглядит как раньше.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

    /* ----- Наведение: работает везде ----- */

    /* Подчёркивание пунктов меню */
    @media (min-width: 701px) {
        .nav-container .nav-links a:not(.nav-cta) {
            position: relative;
        }

            .nav-container .nav-links a:not(.nav-cta)::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -6px;
                height: 1px;
                background: #d6b783;
                transform: scaleX(0);
                transform-origin: left;
                transition: transform 0.3s ease;
            }

            .nav-container .nav-links a:not(.nav-cta):hover::after {
                transform: scaleX(1);
            }
    }

    /* Блик на кнопке главного экрана */
    .hero .hero-content a {
        position: relative;
        overflow: hidden;
    }

        .hero .hero-content a::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: -80%;
            width: 50%;
            background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
            transform: skewX(-20deg);
            pointer-events: none;
        }

        .hero .hero-content a:hover::after {
            left: 130%;
            transition: left 0.7s ease;
        }

    /* Стрелки на кнопках сдвигаются */
    .service-button::after,
    .about-button span {
        display: inline-block;
        transition: transform 0.25s ease;
    }

    .service-button:hover::after,
    .about-button:hover span {
        transform: translateX(5px);
    }

    /* Цена в карточке услуги чуть «оживает» */
    .service-card .service-price {
        transition: transform 0.3s ease;
    }

    .service-card:hover .service-price {
        transform: translateX(4px);
    }

    /* Мягкое «дыхание» рамки специального предложения */
    #contacts .first-session-offer {
        animation: offerGlow 3.2s ease-in-out infinite alternate;
    }

    /* ----- Прокрутка: современные браузеры ----- */

    @supports (animation-timeline: view()) {
        /* Полоска прогресса чтения страницы под шапкой */
        .navbar::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -1px;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #c9aa78, #f0d7ac);
            transform-origin: left;
            scale: 0 1;
            animation: scrollProgress linear both;
            animation-timeline: scroll(root);
        }
        /* Тень у шапки появляется при прокрутке */
        .navbar {
            animation: navShadow linear both;
            animation-timeline: scroll(root);
            animation-range: 0 140px;
        }
        /* Плавное появление заголовков и текста */
        .portfolio h2,
        .portfolio-filters,
        .about-content > *,
        .services > h2,
        .services-subtitle,
        .contacts > h2,
        #contacts .contacts-subtitle,
        #contacts .request-form {
            animation: revealUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
        /* Предложение: появление при прокрутке + свечение рамки */
        #contacts .first-session-offer {
            animation: revealUp linear both, offerGlow 3.2s ease-in-out infinite alternate;
            animation-timeline: view(), auto;
            animation-range: entry 0% entry 40%, normal;
        }
        /* Золотая линия под заголовком «вырастает» */
        .portfolio h2::after,
        .services > h2::after {
            animation: lineGrow linear both;
            animation-timeline: view();
            animation-range: entry 20% entry 90%;
        }
        /* Фотографии и карточки услуг выезжают при появлении */
        .portfolio-item,
        .service-card {
            animation: revealCard linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        translate: 0 36px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes revealCard {
    from {
        opacity: 0;
        translate: 0 48px;
        scale: 0.95;
    }

    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}

@keyframes offerGlow {
    from {
        border-color: rgba(201, 170, 120, 0.35);
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    }

    to {
        border-color: rgba(201, 170, 120, 0.75);
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18), 0 0 26px rgba(201, 170, 120, 0.16);
    }
}

@keyframes lineGrow {
    from {
        scale: 0 1;
    }

    to {
        scale: 1 1;
    }
}

@keyframes scrollProgress {
    from {
        scale: 0 1;
    }

    to {
        scale: 1 1;
    }
}

@keyframes navShadow {
    from {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    to {
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    }
}


/* =========================================================
   11.6. СТРАНИЦА «УСЛУГИ» (/Services)
   ========================================================= */

.services-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 3% 90px;
}

.sp-hero {
    margin-bottom: 40px;
    padding: 60px 24px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(197, 164, 119, 0.12), transparent 65%), #191715;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
}

    .sp-hero h1 {
        margin: 0 0 16px;
        color: #d6b783;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2rem, 5vw, 3.2rem);
        font-weight: 400;
    }

        .sp-hero h1::after {
            content: "";
            display: block;
            width: 58px;
            height: 2px;
            margin: 20px auto 0;
            background: #c9aa78;
        }

    .sp-hero p {
        max-width: 650px;
        margin: 0 auto;
        color: var(--fm-muted);
        font-size: 1.1rem;
        line-height: 1.8;
    }

.sp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #211e1a, #171513);
    border: 1px solid rgba(201, 170, 120, 0.25);
    border-radius: 3px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

    .sp-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 48px;
        height: 2px;
        background: #c9aa78;
        transition: width 0.3s ease;
    }

    .sp-card:hover {
        transform: translateY(-6px);
        border-color: #c9aa78;
        background: linear-gradient(145deg, #28231d, #191613);
    }

        .sp-card:hover::before {
            width: 100%;
        }

.sp-number {
    margin-bottom: 16px;
    color: #c9aa78;
    font-size: 0.8rem;
    letter-spacing: 3px;
}

.sp-card h2 {
    margin: 0 0 16px;
    color: #e4c99c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.35;
}

.sp-description {
    flex-grow: 1;
    color: var(--fm-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.sp-price {
    margin-top: 28px;
    color: #e2c18b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.9rem;
    line-height: 1.2;
}

.sp-empty {
    padding: 50px 24px;
    text-align: center;
    color: var(--fm-muted);
    border: 1px dashed rgba(201, 170, 120, 0.35);
    border-radius: 3px;
}

    .sp-empty h2 {
        margin: 0 0 12px;
        color: #e4c99c;
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 400;
    }

    .sp-empty p {
        margin: 0;
    }

.sp-contact {
    margin-top: 50px;
    padding: 50px 24px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 100%, rgba(197, 164, 119, 0.10), transparent 65%), #191715;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
}

    .sp-contact h2 {
        margin: 0 0 12px;
        color: #e4c99c;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        font-weight: 400;
    }

    .sp-contact p {
        max-width: 560px;
        margin: 0 auto 28px;
        color: var(--fm-muted);
        line-height: 1.8;
    }

.sp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    background: #c9aa78;
    border: 1px solid #c9aa78;
    border-radius: 3px;
    color: #171411;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

    .sp-button:hover {
        background: #e2c69d;
        border-color: #e2c69d;
        color: #171411;
    }

@media (max-width: 900px) {
    .sp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services-page {
        padding: 40px 16px 60px;
    }

    .sp-hero {
        padding: 40px 18px;
    }

    .sp-grid {
        grid-template-columns: 1fr;
    }

    .sp-contact {
        padding: 40px 18px;
    }
}

/* Появление при прокрутке (современные браузеры) */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .sp-hero,
        .sp-contact {
            animation: revealUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }

        .sp-card {
            animation: revealCard linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
    }
}


/* =========================================================
   12. УМЕНЬШЕНИЕ АНИМАЦИИ (настройка системы)
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero .hero-content,
    .hero .hero-content h1,
    .hero .hero-content p,
    .hero .hero-content a {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        will-change: auto;
    }

    .portfolio-item,
    .portfolio-item img {
        transition: none !important;
        transform: none !important;
    }

    .lightbox,
    .lightbox-close,
    .lightbox-nav,
    #lightbox-image {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================
   ФОТОМОМЕНТ — ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА УСЛУГ
   Только мобильная версия
   ========================================== */

@media (max-width: 600px) {

    .services .services-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: calc(100% + 36px);
        max-width: none;
        margin-left: -18px;
        margin-right: -18px;
        gap: 14px;
        padding: 4px 18px 18px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 18px;
        scrollbar-width: none;
    }

        .services .services-grid::-webkit-scrollbar {
            display: none;
        }

    .services .service-card {
        flex: 0 0 82%;
        width: 82%;
        max-width: 360px;
        min-width: 0;
        box-sizing: border-box;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* ==========================================
   ФОТОМОМЕНТ — КНОПКИ СВЯЗИ
   ========================================== */

.social-contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    max-width: 680px;
    margin: 30px auto 40px;
}

.social-contact-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 250px;
    min-width: 0;
    padding: 18px 20px;
    color: #f5efe7;
    text-decoration: none;
    background: linear-gradient(145deg, #211e1a, #171513);
    border: 1px solid rgba(201, 170, 120, 0.3);
    border-radius: 4px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

    .social-contact-btn:hover {
        color: #fff;
        border-color: #c9aa78;
        background: #28231d;
        transform: translateY(-3px);
    }

.social-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: #d4b787;
    border: 1px solid rgba(201, 170, 120, 0.45);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-contact-btn > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.social-contact-btn strong {
    font-size: 15px;
    font-weight: 600;
}

.social-contact-btn small {
    color: #aaa19a;
    font-size: 12px;
    line-height: 1.4;
}

.social-contact-arrow {
    margin-left: auto;
    color: #c9aa78;
    font-size: 20px;
}

@media (max-width: 600px) {
    .social-contact-buttons {
        flex-direction: column;
        gap: 12px;
        margin: 24px auto 32px;
    }

    .social-contact-btn {
        flex: 1 1 auto;
        width: 100%;
        padding: 16px;
    }
}

/* ==========================================
   ФОТОМОМЕНТ — ОТЗЫВЫ КЛИЕНТОВ
   ========================================== */

.reviews-section {
    padding: 90px 20px;
    background: #151311;
    color: #f5efe7;
}

.reviews-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.reviews-eyebrow {
    margin: 0 0 14px;
    color: #c9aa78;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
}

.reviews-container h2 {
    margin: 0 0 20px;
    color: #f5efe7;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
}

.reviews-description {
    max-width: 620px;
    margin: 0 auto 42px;
    color: #b7afa7;
    font-size: 15px;
    line-height: 1.8;
}

.reviews-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 38px 28px;
    border: 1px solid rgba(201, 170, 120, 0.25);
    background: linear-gradient(145deg, #211e1a, #191715);
}

.reviews-mark {
    display: block;
    margin-bottom: 6px;
    color: #c9aa78;
    font-family: Georgia, serif;
    font-size: 64px;
    line-height: 1;
}

.reviews-empty h3 {
    margin: 0 0 14px;
    color: #f5efe7;
    font-size: 22px;
    font-weight: 500;
}

.reviews-empty p {
    margin: 0 auto 25px;
    max-width: 470px;
    color: #aaa19a;
    font-size: 14px;
    line-height: 1.8;
}

.reviews-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    color: #171513;
    background: #c9aa78;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .reviews-button:hover {
        color: #171513;
        background: #dec49b;
        transform: translateY(-2px);
    }

@media (max-width: 600px) {
    .reviews-section {
        padding: 65px 18px;
    }

    .reviews-empty {
        padding: 30px 20px;
    }

        .reviews-empty h3 {
            font-size: 20px;
        }

    .reviews-description {
        font-size: 14px;
    }
}
