:root {
    --dg-yellow: #f9b000;
    --dg-yellow-hover: #ffc233;
    --dg-dark: #090909;
    --dg-dark-soft: #111111;
    --dg-panel: rgba(255, 255, 255, 0.07);
    --dg-panel-strong: rgba(255, 255, 255, 0.11);
    --dg-border: rgba(255, 255, 255, 0.14);
    --dg-text: #ffffff;
    --dg-muted: rgba(255, 255, 255, 0.68);
}

html,
body.dg-works-body {
    background: var(--dg-dark) !important;
}

body.dg-works-body {
    overflow-x: hidden;
}

.dg-portfolio-page,
.dg-portfolio-page *,
.dg-portfolio-page *::before,
.dg-portfolio-page *::after,
.dg-works-modal,
.dg-works-modal *,
.dg-works-modal *::before,
.dg-works-modal *::after {
    box-sizing: border-box;
}

.dg-portfolio-page {
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
    color: var(--dg-text);
    font-family: "Manrope", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 176, 0, 0.11), transparent 28%),
        radial-gradient(circle at 94% 18%, rgba(255, 255, 255, 0.06), transparent 27%),
        linear-gradient(180deg, #090909 0%, #111111 44%, #090909 100%);
}

.dg-portfolio-page a,
.dg-portfolio-page a:hover,
.dg-portfolio-page a:focus,
.dg-portfolio-page button,
.dg-portfolio-page button:hover,
.dg-portfolio-page button:focus,
.dg-works-modal a,
.dg-works-modal a:hover,
.dg-works-modal a:focus,
.dg-works-modal button,
.dg-works-modal button:hover,
.dg-works-modal button:focus {
    text-decoration: none !important;
    outline: none !important;
}

.dg-portfolio-page button,
.dg-works-modal button,
.dg-portfolio-page input,
.dg-works-modal input {
    font-family: inherit;
}

.dg-portfolio-page a:focus-visible,
.dg-portfolio-page button:focus-visible,
.dg-portfolio-page input:focus-visible,
.dg-works-modal a:focus-visible,
.dg-works-modal button:focus-visible {
    outline: 2px solid rgba(249, 176, 0, 0.72) !important;
    outline-offset: 3px !important;
}

.dg-portfolio-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06));
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06));
}

.dg-portfolio-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dg-yellow), var(--dg-yellow-hover));
    box-shadow: 0 0 22px rgba(249, 176, 0, 0.38);
}

.dg-portfolio-shell {
    position: relative;
    z-index: 2;
    width: min(1760px, calc(100% - 48px));
    margin: 0 auto;
}

.dg-portfolio {
    position: relative;
    z-index: 2;
    padding: 108px 0 72px;
}

.dg-portfolio-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 22px;
}

.dg-portfolio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--dg-yellow);
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dg-portfolio-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: var(--dg-yellow);
    box-shadow: 0 0 22px rgba(249, 176, 0, 0.44);
}

.dg-portfolio-head h1 {
    margin: 0;
    max-width: 980px;
    color: #ffffff;
    font-size: clamp(44px, 5.4vw, 98px);
    line-height: 0.88;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.dg-portfolio-head p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.48;
    font-weight: 600;
}

.dg-portfolio-head__side {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.dg-portfolio-count {
    min-width: 190px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 176, 0, 0.13), transparent 38%),
        rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dg-portfolio-count strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 42px;
    line-height: 0.92;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.dg-portfolio-count span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 850;
}

.dg-portfolio-action,
.dg-portfolio-bottom__box a,
.dg-portfolio-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--dg-yellow);
    color: #111111 !important;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(249, 176, 0, 0.18);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.dg-portfolio-action:hover,
.dg-portfolio-bottom__box a:hover,
.dg-portfolio-more__btn:hover {
    transform: translateY(-2px);
    background: var(--dg-yellow-hover);
    color: #111111 !important;
    box-shadow: 0 22px 48px rgba(249, 176, 0, 0.25);
}

.dg-portfolio-controls {
    position: sticky;
    top: 82px;
    z-index: 30;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: rgba(9, 9, 9, 0.74);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.dg-portfolio-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.dg-portfolio-filters::-webkit-scrollbar {
    display: none;
}

.dg-portfolio-filter {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.76);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.dg-portfolio-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 176, 0, 0.28);
    color: #ffffff;
}

.dg-portfolio-filter.is-active {
    background: var(--dg-yellow);
    border-color: transparent;
    color: #111111;
}

.dg-portfolio-search input {
    width: 100%;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 750;
    box-shadow: none;
}

.dg-portfolio-search input::placeholder {
    color: rgba(255, 255, 255, 0.43);
}

.dg-portfolio-search input:focus {
    border-color: rgba(249, 176, 0, 0.42);
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 176, 0, 0.13), transparent 40%),
        rgba(255, 255, 255, 0.08);
}

.dg-portfolio-empty {
    display: none;
    margin: 26px 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 750;
}

.dg-portfolio-empty.is-visible {
    display: block;
}

.dg-portfolio-grid {
    column-count: 3;
    column-gap: 16px;
}

.dg-work-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 28px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    break-inside: avoid;
    page-break-inside: avoid;
    transition:
        opacity 0.38s ease,
        transform 0.38s ease,
        filter 0.22s ease;
}

.dg-work-card.is-rendered {
    opacity: 1;
    transform: translateY(0);
}

.dg-work-card.is-hidden {
    display: none !important;
}

.dg-work-card__button {
    position: relative;
    display: block;
    width: 100%;
    min-height: 180px;
    padding: 0;
    border: 0;
    border-radius: inherit;
    overflow: hidden;
    background: #171717;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.dg-work-card__button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.86) 100%);
    opacity: 0.72;
    transition: opacity 0.28s ease;
}

.dg-work-card__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #151515;
}

.dg-work-card__image img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: unset;
    transform: scale(1.01);
    filter: saturate(1.03) contrast(1.02);
    transition:
        transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.35s ease;
}

.dg-work-card:hover .dg-work-card__image img {
    transform: scale(1.055);
    filter: saturate(1.1) contrast(1.05);
}

.dg-work-card:hover .dg-work-card__button::before {
    opacity: 0.95;
}

.dg-work-card__placeholder {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    font-weight: 950;
    letter-spacing: 0.05em;
}

.dg-work-card__play {
    display: none !important;
}

.dg-work-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    gap: 9px;
    padding: 22px;
}

.dg-work-card__label {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 7px 11px;
    border: 1px solid rgba(249, 176, 0, 0.4);
    border-radius: 999px;
    background: rgba(249, 176, 0, 0.92);
    color: #111111;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(249, 176, 0, 0.2);
}

.dg-work-card__title {
    display: block;
    width: 100%;
    max-width: 720px;
    overflow: visible;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(22px, 1.48vw, 30px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 950;
    white-space: normal;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.72);
    transition: color 0.22s ease;
}

.dg-work-card:hover .dg-work-card__title {
    color: rgba(255, 255, 255, 0.98);
}

.dg-work-card__description {
    display: grid;
    gap: 4px;
    max-width: 660px;
    max-height: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    line-height: 1.32;
    font-weight: 750;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        max-height 0.28s ease;
}

.dg-work-card__description span {
    display: block;
}

.dg-work-card:hover .dg-work-card__description {
    max-height: 240px;
    opacity: 1;
    transform: translateY(0);
}

.dg-work-card__open {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    max-height: 0;
    margin-top: 0;
    padding: 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--dg-yellow);
    color: #111111;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        max-height 0.28s ease,
        padding 0.28s ease,
        margin 0.28s ease,
        background 0.18s ease;
}

.dg-work-card__open::after {
    content: "→";
}

.dg-work-card:hover .dg-work-card__open {
    max-height: 42px;
    margin-top: 4px;
    padding: 10px 14px;
    opacity: 1;
    transform: translateY(0);
}

.dg-work-card__open:hover {
    background: var(--dg-yellow-hover);
}

.dg-portfolio-more {
    display: flex;
    justify-content: center;
    padding: 36px 0 0;
}

.dg-portfolio-more__btn {
    min-width: 230px;
}

.dg-portfolio-seo,
.dg-portfolio-faq,
.dg-portfolio-bottom {
    position: relative;
    z-index: 2;
}

.dg-portfolio-seo {
    padding: 0 0 34px;
}

.dg-portfolio-seo__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 176, 0, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dg-portfolio-seo__content span,
.dg-portfolio-faq__head span,
.dg-portfolio-bottom__box span {
    display: block;
    margin-bottom: 10px;
    color: var(--dg-yellow);
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dg-portfolio-seo__content h2,
.dg-portfolio-faq__head h2,
.dg-portfolio-bottom__box h2 {
    margin: 0;
    max-width: 960px;
    color: #ffffff;
    font-size: clamp(30px, 3.2vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.dg-portfolio-seo__content p {
    max-width: 920px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16.5px;
    line-height: 1.62;
    font-weight: 650;
}

.dg-portfolio-seo__tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    padding: 4px 0 0;
}

.dg-portfolio-seo__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 10px 13px;
    border: 1px solid rgba(249, 176, 0, 0.18);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 176, 0, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
}

.dg-portfolio-faq {
    padding: 0 0 34px;
}

.dg-portfolio-faq__head {
    margin-bottom: 18px;
}

.dg-portfolio-faq__list {
    display: grid;
    gap: 10px;
}

.dg-portfolio-faq__item {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    overflow: hidden;
}

.dg-portfolio-faq__item summary {
    position: relative;
    display: block;
    padding: 20px 56px 20px 22px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.dg-portfolio-faq__item summary::-webkit-details-marker {
    display: none;
}

.dg-portfolio-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(249, 176, 0, 0.14);
    color: var(--dg-yellow);
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
}

.dg-portfolio-faq__item[open] summary::after {
    content: "−";
}

.dg-portfolio-faq__item p {
    margin: 0;
    padding: 0 22px 22px;
    max-width: 960px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15.5px;
    line-height: 1.58;
    font-weight: 650;
}

.dg-portfolio-bottom {
    padding: 0 0 78px;
}

.dg-portfolio-bottom__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 176, 0, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dg-portfolio-bottom__box h2 {
    max-width: 860px;
    font-size: clamp(28px, 3.2vw, 56px);
}

.dg-works-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #ffffff;
    font-family: "Manrope", Arial, sans-serif;
}

.dg-works-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg-works-modal__dialog {
    position: relative;
    width: auto;
    max-width: calc(100vw - 48px);
    height: auto;
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(320px, auto) 410px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 36px;
    background: #101010;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
    contain: layout paint;
}

.dg-works-modal__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(249, 176, 0, 0.1), transparent 42%),
        #070707;
}

.dg-works-modal__stage img,
.dg-works-modal__stage video {
    display: block;
    width: auto;
    height: auto;
    max-width: min(64vw, 1120px);
    max-height: calc(100vh - 72px);
    object-fit: contain;
    padding: 0;
}

.dg-works-modal__stage.has-image.is-zoomed {
    display: block;
    overflow: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

.dg-works-modal__stage.has-image.is-zoomed img {
    width: auto !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: initial !important;
    padding: 0 !important;
    cursor: grab;
}

.dg-works-zoom-toggle {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(9, 9, 9, 0.76);
    color: #ffffff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 950;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dg-works-modal__stage.is-zoomed .dg-works-zoom-toggle {
    position: sticky;
    top: 18px;
    left: 18px;
    right: auto;
    bottom: auto;
    margin: 18px;
    background: var(--dg-yellow);
    color: #111111;
    border-color: transparent;
}

.dg-works-modal__info {
    width: 410px;
    min-width: 0;
    min-height: 0;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 176, 0, 0.12), transparent 34%),
        #111111;
    -webkit-overflow-scrolling: touch;
}

.dg-works-modal__label {
    width: fit-content;
    margin: 0 0 16px;
    padding: 8px 11px;
    border: 1px solid rgba(249, 176, 0, 0.36);
    border-radius: 999px;
    background: rgba(249, 176, 0, 0.12);
    color: #ffd36a;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dg-works-modal__info h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(30px, 2.65vw, 48px);
    line-height: 0.94;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.dg-works-modal__description {
    display: grid;
    gap: 7px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.38;
    font-weight: 750;
    white-space: normal;
}

.dg-works-modal__description span {
    display: block;
}

.dg-works-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.dg-works-modal__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
}

.dg-works-modal__actions {
    display: flex;
    margin-top: 20px;
}

.dg-works-modal__actions .dg-portfolio-action {
    width: 100%;
}

.dg-works-modal__close,
.dg-works-modal__arrow {
    position: fixed;
    z-index: 1000001;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 12, 12, 0.74);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.dg-works-modal__close:hover,
.dg-works-modal__arrow:hover {
    transform: scale(1.04);
    background: var(--dg-yellow);
    color: #111111;
}

.dg-works-modal__close {
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.dg-works-modal__arrow {
    top: 50%;
    width: 56px;
    height: 76px;
    border-radius: 999px;
    font-size: 50px;
    line-height: 1;
}

.dg-works-modal__prev {
    left: 24px;
}

.dg-works-modal__next {
    right: 24px;
}

html.dg-works-locked,
body.dg-works-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.dg-works-locked {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

@media (max-width: 1180px) {
    .dg-portfolio-grid {
        column-count: 2;
    }

    .dg-portfolio-controls {
        top: 76px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dg-portfolio-shell {
        width: min(100% - 28px, 960px);
    }

    .dg-portfolio {
        padding-top: 102px;
    }

    .dg-portfolio-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dg-portfolio-head__side {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        width: 100%;
    }

    .dg-portfolio-count {
        min-width: 0;
        flex: 1;
    }

    .dg-portfolio-seo__box {
        grid-template-columns: 1fr;
    }

    .dg-works-modal__dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: min(100%, 920px);
    }

    .dg-works-modal__stage img,
    .dg-works-modal__stage video {
        max-width: calc(100vw - 48px);
        max-height: 56vh;
    }

    .dg-works-modal__info {
        width: auto;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 767px) {
    .dg-portfolio-shell {
        width: min(100% - 20px, 520px);
    }

    .dg-portfolio {
        padding: 86px 0 44px;
    }

    .dg-portfolio-head {
        gap: 12px;
        margin-bottom: 14px;
    }

    .dg-portfolio-kicker {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .dg-portfolio-head h1 {
        font-size: 46px;
        line-height: 0.9;
    }

    .dg-portfolio-head p {
        margin-top: 10px;
        font-size: 14.5px;
        line-height: 1.45;
    }

    .dg-portfolio-head__side {
        display: none;
    }

    .dg-portfolio-controls {
        position: relative;
        top: auto;
        z-index: 4;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 12px;
        padding: 10px;
        overflow: hidden;
        border-radius: 18px;
        background: rgba(9, 9, 9, 0.72);
    }

    .dg-portfolio-filters {
        order: 1;
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        min-width: 0;
        max-width: calc(100vw - 40px);
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scroll-snap-type: x proximity;
        padding: 2px 22px 6px 2px;
        margin: 0;
    }

    .dg-portfolio-filter {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .dg-portfolio-search {
        order: 2;
        display: block;
        width: 100%;
    }

    .dg-portfolio-search input {
        width: 100%;
        min-height: 44px;
        padding: 12px 15px;
        border-radius: 16px;
        background:
            radial-gradient(circle at 12% 0%, rgba(249, 176, 0, 0.09), transparent 38%),
            rgba(255, 255, 255, 0.065);
        font-size: 14px;
    }

    .dg-portfolio-filter {
        min-height: 36px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .dg-portfolio-grid {
        display: block;
        column-count: 1;
        column-gap: 0;
        width: 100%;
    }

    .dg-work-card {
        display: block;
        width: 100%;
        margin: 0 0 12px;
        border-radius: 22px;
    }

    .dg-work-card__button {
        display: block;
        width: 100%;
        min-height: 0;
        height: auto;
        border-radius: inherit;
        overflow: hidden;
    }

    .dg-work-card__image {
        display: block;
        width: 100%;
        min-height: 0;
    }

    .dg-work-card__image img {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: unset;
        border-radius: inherit;
        transform: none;
    }

    .dg-work-card:hover .dg-work-card__image img {
        transform: none;
        filter: saturate(1.03) contrast(1.02);
    }

    .dg-work-card__button::before {
        opacity: 0.96;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0.94) 100%);
    }

    .dg-work-card__overlay {
        transform: none;
        padding: 18px;
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .dg-work-card__label,
    .dg-work-card__description,
    .dg-work-card__open {
        display: none !important;
    }

    .dg-work-card__title {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        max-height: none;
        color: rgba(255, 255, 255, 0.86);
        font-size: 22px;
        line-height: 1.08;
        letter-spacing: -0.045em;
        white-space: normal;
        text-overflow: unset;
    }

    .dg-portfolio-seo {
        padding-bottom: 28px;
    }

    .dg-portfolio-seo__box,
    .dg-portfolio-bottom__box {
        padding: 22px;
        border-radius: 26px;
    }

    .dg-portfolio-seo__content h2,
    .dg-portfolio-faq__head h2,
    .dg-portfolio-bottom__box h2 {
        font-size: 31px;
        line-height: 0.98;
    }

    .dg-portfolio-seo__content p {
        font-size: 15px;
        line-height: 1.56;
    }

    .dg-portfolio-seo__tags {
        gap: 8px;
    }

    .dg-portfolio-seo__tags span {
        min-height: 34px;
        padding: 9px 11px;
        font-size: 12.5px;
    }

    .dg-portfolio-faq__item {
        border-radius: 20px;
    }

    .dg-portfolio-faq__item summary {
        padding: 18px 52px 18px 18px;
        font-size: 15.5px;
    }

    .dg-portfolio-faq__item p {
        padding: 0 18px 18px;
        font-size: 14.5px;
    }

    .dg-portfolio-bottom {
        padding-bottom: 42px;
    }

    .dg-portfolio-bottom__box {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dg-portfolio-bottom__box a {
        width: 100%;
    }

    .dg-works-modal {
        padding: 0;
    }

    .dg-works-modal.is-open {
        display: block;
    }

    .dg-works-modal__dialog {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        border: 0;
        border-radius: 0;
        overflow: hidden;
        contain: none;
    }

    .dg-works-modal__stage {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 58vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #050505;
    }

    .dg-works-modal__stage img,
    .dg-works-modal__stage video {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 58vh;
        object-fit: contain;
        padding: 8px;
    }

    .dg-works-zoom-toggle {
        display: none !important;
    }

    .dg-works-modal__stage.is-zoomed {
        overflow: hidden;
        touch-action: auto;
    }

    .dg-works-modal__stage.is-zoomed img {
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 58vh !important;
        object-fit: contain !important;
        padding: 8px !important;
    }

    .dg-works-modal__info {
        display: block;
        width: auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        -webkit-overflow-scrolling: touch;
    }

    .dg-works-modal__info h2 {
        font-size: 30px;
        line-height: 0.98;
    }

    .dg-works-modal__description {
        gap: 6px;
        margin-bottom: 18px;
        padding-bottom: 0;
        font-size: 15px;
    }

    .dg-works-modal__meta {
        display: none;
    }

    .dg-works-modal__actions,
    .dg-works-modal.is-actions-visible .dg-works-modal__actions {
        position: relative;
        inset: auto;
        z-index: 1;
        display: flex;
        width: 100%;
        margin: 22px 0 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
        animation: none;
        background: transparent;
        box-shadow: none;
    }

    .dg-works-modal__actions .dg-portfolio-action {
        position: static;
        width: 100%;
        min-height: 52px;
        margin: 0;
    }

    .dg-works-modal__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 28px;
        background: rgba(8, 8, 8, 0.78);
    }

    .dg-works-modal__arrow {
        display: none;
    }
}

/* DoGlass /works v4: mobile filter rail fix + no sticky hover as active */
@media (max-width: 767px) {
    .dg-portfolio-controls,
    #dgWorksToolbar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .dg-portfolio-filters,
    #dgWorksToolbar .dg-portfolio-filters {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        min-width: 0 !important;
        margin: 0 0 10px !important;
        padding: 2px 26px 8px 2px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x proximity !important;
        touch-action: pan-x pan-y !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
    }

    .dg-portfolio-filters::-webkit-scrollbar,
    #dgWorksToolbar .dg-portfolio-filters::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .dg-portfolio-filter,
    #dgWorksToolbar .dg-portfolio-filter {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        white-space: nowrap !important;
        scroll-snap-align: start !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .dg-portfolio-search,
    #dgWorksToolbar .dg-portfolio-search {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .dg-portfolio-search input,
    #dgWorksToolbar .dg-portfolio-search input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .dg-portfolio-filter:not(.is-active):hover,
    .dg-portfolio-filter:not(.is-active):focus,
    .dg-portfolio-filter:not(.is-active):active {
        transform: none !important;
        background: rgba(255, 255, 255, 0.055) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: rgba(255, 255, 255, 0.76) !important;
        box-shadow: none !important;
    }

    .dg-portfolio-filter.is-active,
    .dg-portfolio-filter.is-active:hover,
    .dg-portfolio-filter.is-active:focus,
    .dg-portfolio-filter.is-active:active {
        transform: none !important;
        background: var(--dg-yellow) !important;
        border-color: transparent !important;
        color: #111111 !important;
        box-shadow: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .dg-portfolio-filter:hover {
        transform: none !important;
    }

    .dg-portfolio-filter:not(.is-active):hover {
        background: rgba(255, 255, 255, 0.055) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: rgba(255, 255, 255, 0.76) !important;
    }
}
