
/* DESIGN — SM PROJECTS */

.design-hero {
    position: relative;
    min-height: 570px;
    padding: 125px 7% 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.design-hero h1 {
    font-size: clamp(48px, 8vw, 120px);
    line-height: 1;
    letter-spacing: -5px;
    font-weight: 800;
}

.design-hero h1 span,
.design-section-heading h2 span,
.design-client-content h3 span,
.design-gallery-heading h3 span {
    color: var(--gold);
}

.design-hero > p {
    max-width: 570px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.design-hero-index {
    position: absolute;
    right: 7%;
    bottom: 35px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 3px;
}

/* РАЗДЕЛ ПРОЕКТОВ */

.design-works {
    padding: 110px 7% 140px;
}

.design-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
}

.design-section-heading h2 {
    font-size: clamp(36px, 5vw, 70px);
    letter-spacing: -3px;
}

.design-counter {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
}

/* КАРТОЧКА КЛИЕНТА */

.design-client-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border: 1px solid var(--border);
    background: #1b1c20;
    overflow: hidden;
}

.design-client-visual {
    position: relative;
    min-height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(214, 180, 122, .24),
            transparent 50%
        ),
        linear-gradient(135deg, #30352c, #111412);
}

.design-visual-mark {
    font-size: clamp(100px, 16vw, 240px);
    font-weight: 800;
    letter-spacing: -15px;
    color: rgba(214, 180, 122, .7);
}

.design-visual-caption {
    position: absolute;
    left: 30px;
    bottom: 25px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.design-client-content {
    padding: clamp(30px, 5vw, 65px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 35px;
}

.design-client-number,
.design-client-type {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.design-client-content h3 {
    margin: 20px 0;
    font-size: clamp(40px, 5vw, 75px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.design-client-content p {
    max-width: 370px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.design-client-details {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.design-client-details > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.design-client-details span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.design-client-details strong,
.design-client-details a {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.design-client-details a:hover {
    color: var(--gold);
}

.design-client-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.design-client-link span {
    font-size: 28px;
}

/* ГАЛЕРЕЯ ВНУТРИ КАРТОЧКИ */

.design-gallery {
    grid-column: 1 / -1;
    padding: 50px;
    border-top: 1px solid var(--border);
}

.design-gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 40px;
}

.design-gallery-heading h3 {
    font-size: clamp(30px, 4vw, 55px);
    letter-spacing: -2px;
}

.design-gallery-heading > p {
    max-width: 320px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

/* ПЕРЕКЛЮЧАТЕЛЬ КАТЕГОРИЙ */

.design-gallery-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.design-gallery-tab {
    min-height: 105px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    border: 1px solid var(--border);
    background: #222327;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
    transition: .3s;
}

.design-gallery-tab span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.design-gallery-tab:hover {
    border-color: var(--gold);
    background: #2a2926;
}

.design-gallery-tab.active {
    border-color: var(--gold);
    background: #3b3327;
    color: #f0d2a1;
}

.design-gallery-tab:focus-visible,
.design-artwork:focus-visible,
.design-lightbox-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ЗАГОЛОВОК ВЫБРАННОЙ КАТЕГОРИИ */

.design-gallery-subheading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin: 50px 0 25px;
}

.design-gallery-kicker {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.design-gallery-subheading h4 {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 45px);
}

#gallery-count {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 2px;
}

/* КАРТОЧКИ РАБОТ */

.design-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.design-artwork {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #17181b;
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: zoom-in;
    transition: border-color .3s, transform .3s;
}

.design-artwork:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.design-artwork-preview {
    position: relative;
    aspect-ratio: 4 / 5;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.design-artwork-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.design-artwork-number {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
}

.design-artwork-preview strong {
    font-size: clamp(23px, 3vw, 45px);
    line-height: 1.1;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.artwork-menu {
    background: linear-gradient(135deg, #344038, #111b16);
}

.artwork-drinks {
    background: linear-gradient(135deg, #553c2c, #201713);
}

.artwork-prices {
    background: linear-gradient(135deg, #363238, #18151a);
}

.artwork-promo {
    background: linear-gradient(135deg, #4a4030, #1c1812);
}

.design-artwork-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.design-artwork-label {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.design-artwork-info h5 {
    font-size: 17px;
    font-weight: 700;
}

.design-artwork-hint {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

/* УВЕЛИЧЕНИЕ ИЗОБРАЖЕНИЙ */

.design-lightbox[hidden] {
    display: none;
}

.design-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.design-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    backdrop-filter: blur(12px);
}

.design-lightbox-content {
    position: relative;
    z-index: 1;
    width: min(1050px, 100%);
    max-height: calc(100dvh - 40px);
    padding: 30px;
    overflow-y: auto;
    border: 1px solid #514630;
    background: #18191c;
}

.design-lightbox-close {
    position: absolute;
    right: 20px;
    top: 12px;
    border: none;
    background: transparent;
    color: var(--gold);
    font-size: 38px;
    cursor: pointer;
}

.design-lightbox-label {
    display: block;
    padding-right: 40px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.design-lightbox-content h3 {
    margin: 20px 0;
    font-size: clamp(25px, 4vw, 48px);
}

.design-lightbox-image {
    min-height: 250px;
    max-height: 65dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.design-lightbox-image img {
    display: block;
    max-width: 100%;
    max-height: 65dvh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.design-lightbox-image strong {
    padding: 40px;
    font-size: clamp(35px, 7vw, 85px);
    text-align: center;
    overflow-wrap: anywhere;
}

#lightbox-description {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

body.design-modal-open {
    overflow: hidden;
}

/* ТЕЛЕФОНЫ И ПЛАНШЕТЫ */

@media (max-width: 900px) {
    .design-client-card {
        grid-template-columns: 1fr;
    }

    .design-client-visual {
        min-height: 320px;
    }

    .design-gallery {
        grid-column: 1;
    }

    .design-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .design-hero {
        min-height: 450px;
        padding: 100px 5% 80px;
    }

    .design-hero h1 {
        letter-spacing: -2px;
    }

    .design-works {
        padding: 80px 5%;
    }

    .design-section-heading,
    .design-gallery-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .design-client-content {
        padding: 30px;
    }

    .design-gallery {
        padding: 25px 18px;
    }

    .design-gallery-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .design-gallery-tab {
        min-height: 85px;
        padding: 15px;
    }

    .design-gallery-grid {
        gap: 12px;
    }

    .design-artwork-info {
        padding: 13px;
    }

    .design-artwork-info h5 {
        font-size: 14px;
    }

    .design-artwork-preview {
        padding: 12px;
    }

    .design-gallery-subheading {
        align-items: flex-start;
        flex-direction: column;
    }

    .design-lightbox-content {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .design-artwork,
    .design-gallery-tab {
        transition: none;
    }
}
/* ЛОГОТИП КОФЕЙНИ */

.design-cafe-logo {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.design-client-visual:hover .design-cafe-logo {
    transform: scale(1.05);
}
.design-client-visual {
    background: #000000;
}

/* ==========================================
   SM PROJECTS — DESIGN CREATIVE WORKSPACE
   ========================================== */

.design-workspace {
    --studio-purple: #d8b6ff;
    --studio-muted: #a8a3b0;

    display: block;
    position: relative;
    min-height: 0;
    padding: 0;
    background: #202127;
    border-bottom: 1px solid #41414b;
    color: #f6f3fa;
}

/* ВЕРХНЯЯ ПАНЕЛЬ */

.workspace-topbar {
    min-height: 48px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #292a30;
    border-bottom: 1px solid #41414b;
}

.workspace-window-dots {
    display: flex;
    gap: 7px;
}

.workspace-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fc7167;
}

.workspace-window-dots span:nth-child(2) {
    background: #f5c451;
}

.workspace-window-dots span:nth-child(3) {
    background: #69c789;
}

.workspace-filename,
.workspace-zoom {
    font-family: monospace;
    font-size: 11px;
    color: var(--studio-muted);
    letter-spacing: 1px;
}

/* РАБОЧЕЕ ПРОСТРАНСТВО */

.workspace-body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 210px;
    min-height: 650px;
}

/* ПАНЕЛЬ ИНСТРУМЕНТОВ */

.workspace-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 24px 8px;
    background: #25262c;
    border-right: 1px solid #41414b;
}

.workspace-tool {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: var(--studio-muted);
    font-size: 22px;
    cursor: default;
}

.workspace-tool.active {
    background: #473b57;
    color: var(--studio-purple);
}

/* ОБЛАСТЬ ХОЛСТА */

.workspace-canvas-area {
    min-width: 0;
    padding: 45px 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;

    background-color: #202127;
    background-image:
        radial-gradient(
            #45454e 0.8px,
            transparent 0.8px
        );
    background-size: 20px 20px;
}

.workspace-canvas-label,
.workspace-canvas-bottom {
    color: var(--studio-muted);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
}

/* ОСНОВНОЙ ХОЛСТ */

.workspace-artboard {
    position: relative;
    width: 100%;
    padding: clamp(35px, 6vw, 85px);
    border: 1px solid var(--studio-purple);

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(216, 182, 255, 0.12),
            transparent 45%
        ),
        #131418;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.workspace-artboard-tag {
    display: block;
    margin-bottom: 35px;
    color: var(--studio-purple);
    font-size: 11px;
    letter-spacing: 2px;
}

.workspace-artboard h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 95px);
    line-height: 1.05;
    letter-spacing: -4px;
    font-weight: 800;
}

.workspace-artboard h1 span {
    color: var(--studio-purple);
}

.workspace-artboard p {
    max-width: 500px;
    margin-top: 30px;
    color: var(--studio-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* ЦВЕТОВАЯ ПАЛИТРА */

.workspace-palette {
    display: flex;
    gap: 9px;
    margin-top: 40px;
}

.workspace-palette span {
    width: 25px;
    height: 25px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* МАРКЕРЫ ВЫДЕЛЕНИЯ */

.workspace-handle {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border: 2px solid var(--studio-purple);
}

.workspace-handle.top-left {
    top: -5px;
    left: -5px;
}

.workspace-handle.top-right {
    top: -5px;
    right: -5px;
}

.workspace-handle.bottom-left {
    bottom: -5px;
    left: -5px;
}

.workspace-handle.bottom-right {
    bottom: -5px;
    right: -5px;
}

/* ПАНЕЛЬ СЛОЁВ */

.workspace-layers {
    padding: 25px 12px;
    background: #26272d;
    border-left: 1px solid #41414b;
}

.workspace-layers-title {
    display: block;
    margin-bottom: 25px;
    color: var(--studio-muted);
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
}

.workspace-layer {
    padding: 13px 10px;
    margin-bottom: 5px;
    color: var(--studio-muted);
    font-size: 12px;
    white-space: nowrap;
}

.workspace-layer.active {
    background: #3c3448;
    color: var(--studio-purple);
}

/* НИЖНЯЯ ПАНЕЛЬ */

.workspace-statusbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 25px;
    background: #292a30;
    border-top: 1px solid #41414b;
    color: var(--studio-muted);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.workspace-statusbar span:last-child {
    color: var(--studio-purple);
}

/* АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ */

@media (max-width: 1000px) {

    .workspace-body {
        grid-template-columns: 55px minmax(0, 1fr);
    }

    .workspace-layers {
        display: none;
    }

}

/* АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ */

@media (max-width: 600px) {

    .workspace-body {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 450px;
    }

    .workspace-toolbar {
        padding: 15px 3px;
        gap: 12px;
    }

    .workspace-tool {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .workspace-canvas-area {
        padding: 35px 15px;
    }

    .workspace-artboard {
        padding: 30px 20px;
    }

    .workspace-artboard h1 {
        font-size: clamp(30px, 8vw, 55px);
        letter-spacing: -2px;
        overflow-wrap: anywhere;
    }

    .workspace-artboard-tag {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .workspace-artboard p {
        font-size: 12px;
    }

    .workspace-filename {
        font-size: 9px;
        letter-spacing: 0;
    }

    .workspace-statusbar {
        padding: 12px;
        font-size: 9px;
    }

}

/* ==========================================
   DESIGN STUDIO — PROJECTS & GALLERY THEME
   ЕДИНЫЙ СТИЛЬ С ВЕРХНИМ ЭКРАНОМ
   ========================================== */

/* ОБЩИЙ ФОН РАЗДЕЛА */

.design-works {
    background: #202127;
    color: #f6f3fa;
}

/* ЗАГОЛОВОК МОИ РАБОТЫ */

.design-works .eyebrow,
.design-counter {
    color: #a8a3b0;
}

.design-section-heading h2 span,
.design-gallery-heading h3 span,
.design-client-content h3 span {
    color: #d8b6ff;
}

/* КАРТОЧКА КОФЕЙНИ */

.design-client-card {
    background: #26272d;
    border: 1px solid #41414b;
}

/* СОХРАНЯЕМ ЧЁРНЫЙ ФОН ЛОГОТИПА */

.design-client-visual {
    background: #000000;
    border-right: 1px solid #41414b;
}

.design-visual-caption {
    color: #d8b6ff;
}

/* ИНФОРМАЦИЯ О КОФЕЙНЕ */

.design-client-content {
    background: #26272d;
}

.design-client-number,
.design-client-type,
.design-client-details span {
    color: #d8b6ff;
}

.design-client-content p {
    color: #a8a3b0;
}

.design-client-details strong,
.design-client-details a {
    color: #f6f3fa;
}

.design-client-details a:hover {
    color: #d8b6ff;
}

/* ССЫЛКА НА ГАЛЕРЕЮ */

.design-client-link {
    color: #d8b6ff;
    border-top: 1px solid #41414b;
}

.design-client-link:hover {
    color: #ffffff;
}

/* ГАЛЕРЕЯ */

.design-gallery {
    background: #202127;
    border-top: 1px solid #41414b;
}

.design-gallery-heading > p {
    color: #a8a3b0;
}

/* КАТЕГОРИИ: МЕНЮ, НАПИТКИ, ЦЕННИКИ, РЕКЛАМА */

.design-gallery-tab {
    background: #292a30;
    color: #f6f3fa;
    border: 1px solid #41414b;
}

.design-gallery-tab span {
    color: #d8b6ff;
}

.design-gallery-tab:hover {
    background: #34303e;
    border-color: #d8b6ff;
}

.design-gallery-tab.active {
    background: #3c3448;
    border-color: #d8b6ff;
    color: #f6f3fa;
}

/* ЗАГОЛОВОК ВЫБРАННОЙ КАТЕГОРИИ */

.design-gallery-kicker {
    color: #d8b6ff;
}

#gallery-count {
    color: #a8a3b0;
}

/* КАРТОЧКИ РАБОТ */

.design-artwork {
    background: #26272d;
    border: 1px solid #41414b;
    color: #f6f3fa;
}

.design-artwork:hover {
    border-color: #d8b6ff;
}

.design-artwork-number,
.design-artwork-label {
    color: #d8b6ff;
}

.design-artwork-hint {
    color: #a8a3b0;
}

/* ФОНЫ ДЛЯ РАБОТ БЕЗ ИЗОБРАЖЕНИЙ */

.design-artwork-preview.artwork-menu {
    background: linear-gradient(
        135deg,
        #41354f,
        #19161f
    );
}

.design-artwork-preview.artwork-drinks {
    background: linear-gradient(
        135deg,
        #393449,
        #191720
    );
}

.design-artwork-preview.artwork-prices {
    background: linear-gradient(
        135deg,
        #343745,
        #171820
    );
}

.design-artwork-preview.artwork-promo {
    background: linear-gradient(
        135deg,
        #4a3c50,
        #1b1720
    );
}

/* ПРОСМОТР ИЗОБРАЖЕНИЙ КРУПНО */

.design-lightbox-content {
    background: #26272d;
    border: 1px solid #d8b6ff;
}

.design-lightbox-close,
.design-lightbox-label {
    color: #d8b6ff;
}

#lightbox-description {
    color: #a8a3b0;
}

/* ВЫДЕЛЕНИЕ ПРИ НАВИГАЦИИ КЛАВИАТУРОЙ */

.design-gallery-tab:focus-visible,
.design-artwork:focus-visible,
.design-lightbox-close:focus-visible {
    outline: 2px solid #d8b6ff;
    outline-offset: 3px;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 900px) {
    .design-client-visual {
        border-right: none;
        border-bottom: 1px solid #41414b;
    }
}

/* ==========================================
   DESIGN STUDIO — SECRET INTERACTIONS
   ========================================== */

/* ОБЪЕКТЫ НА ХОЛСТЕ */

.workspace-artboard {
    --studio-purple: #d8b6ff;
    overflow: hidden;
}

.workspace-object {
    position: relative;
    width: fit-content;
    max-width: 100%;
    border: 1px solid transparent;
    touch-action: pan-y;
}

.workspace-object.selected {
    border-color: var(--studio-purple);
}

.workspace-object.selected::before,
.workspace-object.selected::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border: 1px solid var(--studio-purple);
    z-index: 5;
    pointer-events: none;
}

.workspace-object.selected::before {
    top: -4px;
    left: -4px;
}

.workspace-object.selected::after {
    bottom: -4px;
    right: -4px;
}

.workspace-object.dragging {
    cursor: grabbing;
    z-index: 10;
}

.workspace-object:not(.editing) {
    cursor: default;
}

/* СОХРАНЯЕМ ОТСТУПЫ ЭЛЕМЕНТОВ */

.workspace-tag-object {
    margin-bottom: 35px;
}

.workspace-tag-object .workspace-artboard-tag {
    margin-bottom: 0;
}

.workspace-description-object {
    margin-top: 30px;
}

.workspace-description-object p {
    margin-top: 0;
}

.workspace-palette-object {
    margin-top: 40px;
}

.workspace-palette-object .workspace-palette {
    margin-top: 0;
}

/* ЗАГОЛОВОК */

.workspace-title-object {
    max-width: 100%;
}

.workspace-title-object h1 {
    outline: none;
    overflow-wrap: anywhere;
}

.workspace-title-object.editing {
    cursor: text;
}

.workspace-title-object.editing h1 {
    outline: 1px dashed var(--studio-purple);
    outline-offset: 5px;
    cursor: text;
}

/* ЦВЕТОВАЯ ПАЛИТРА */

.palette-color {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 3px;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}

.palette-color:hover {
    transform: translateY(-3px);
    border-color: #fff;
}

.palette-color:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* АКТИВНЫЙ СЛОЙ */

.workspace-layer.selected {
    background: #3c3448;
    color: var(--studio-purple);
}

/* ЦВЕТА, КОТОРЫЕ МЕНЯЕТ ПАЛИТРА */

.design-workspace .workspace-artboard {
    border-color: var(--studio-purple);
}

.design-workspace .workspace-artboard-tag,
.design-workspace .workspace-artboard h1 span,
.design-workspace .workspace-statusbar span:last-child {
    color: var(--studio-purple);
}

.design-workspace .workspace-handle {
    border-color: var(--studio-purple);
}

/* СРАВНЕНИЕ ДО / ПОСЛЕ */

.design-comparison {
    --compare-position: 50%;
    position: relative;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #17181b;
}

.design-comparison img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.design-comparison .comparison-after {
    clip-path: inset(
        0
        calc(100% - var(--compare-position))
        0
        0
    );
}

.design-comparison input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

.design-comparison::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position);
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 4;
}

/* АДАПТАЦИЯ */

@media (max-width: 600px) {
    .workspace-tag-object {
        margin-bottom: 25px;
    }

    .workspace-description-object {
        margin-top: 22px;
    }

    .workspace-palette-object {
        margin-top: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .palette-color {
        transition: none;
    }
}

/* Цвет второй строки редактируемого заголовка */

.design-workspace .workspace-title-object h1 span {
    color: var(--studio-purple, #d8b6ff) !important;
}

.design-workspace .workspace-title-object h1 {
    color: #f6f3fa;
}

/* Статус внутри креативного холста */

.workspace-inner-status {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 3;

    font-family: monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;

    color: var(--studio-purple, #d8b6ff);
    opacity: 0.8;

    pointer-events: none;
    user-select: none;
}

@media (max-width: 600px) {
    .workspace-inner-status {
        right: 12px;
        bottom: 10px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }
}
/* КНОПКА СРАВНЕНИЯ */

.design-compare-label {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;

    color: #d8b6ff;
    background: #393044;
    border: 1px solid #6b547e;
    border-radius: 4px;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

.design-artwork:hover .design-compare-label {
    background: #4b3b5a;
}

/* ПОЛЗУНОК */

.design-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #17181b;
}

.design-comparison img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.design-comparison .comparison-after {
    clip-path: inset(
        0
        calc(100% - var(--compare-position, 50%))
        0
        0
    );
}

.design-comparison input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

.design-comparison::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position, 50%);

    width: 2px;
    background: #d8b6ff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 4;
}

/* ДО / ПОСЛЕ — ПРАВИЛЬНОЕ ОТОБРАЖЕНИЕ */

.design-comparison {
    position: relative;
    isolation: isolate;
    background: #ffffff !important;
    overflow: hidden;
}

.design-comparison .comparison-after,
.design-comparison .comparison-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Новая версия находится справа */

.design-comparison .comparison-after {
    z-index: 1;
    clip-path: none !important;
}

/* Старая версия открывается слева */

.design-comparison .comparison-before {
    z-index: 2;
    clip-path: inset(
        0
        calc(100% - var(--compare-position, 50%))
        0
        0
    );
}

/* Разделительная линия */

.design-comparison::after {
    z-index: 3;
    background: #d8b6ff;
}

/* Невидимый управляющий ползунок */

.design-comparison input[type="range"] {
    z-index: 4;
}

/* ИСПРАВЛЕНИЕ СРАВНЕНИЯ ДО / ПОСЛЕ */

.design-comparison {
    --compare-position: 50%;
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ffffff !important;
}

.design-comparison .comparison-before,
.design-comparison .comparison-after {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* ДО — ЛЕВАЯ ЧАСТЬ */

.design-comparison .comparison-before {
    z-index: 2;
    clip-path: inset(
        0
        calc(100% - var(--compare-position))
        0
        0
    ) !important;
}

/* ПОСЛЕ — ПРАВАЯ ЧАСТЬ */

.design-comparison .comparison-after {
    z-index: 1;
    clip-path: inset(
        0
        0
        0
        var(--compare-position)
    ) !important;
}

/* РАЗДЕЛИТЕЛЬНАЯ ЛИНИЯ */

.design-comparison::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-position);
    width: 2px;
    background: #d8b6ff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 4;
}

/* ПОЛЗУНОК */

.design-comparison input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

/* УМЕНЬШАЕМ ТОЛЬКО СТАРОЕ МЕНЮ */

.design-comparison .comparison-before {
    object-fit: contain;
    object-position: center;
    padding: 35px;
    box-sizing: border-box;
}
