/* Каталог — колонки как в галерее: равная ширина, равные зазоры, своя высота */
.gl-catalog__list {
    display: block;
    columns: 3;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gl-catalog__item {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    margin: 0 0 2rem;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.gl-catalog__item--video-large {
    /* same column width as others */
}

.gl-catalog__card-media-wrapper.gl-catalog__content {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.gl-catalog__item--video-large .gl-catalog__card-media-wrapper {
    aspect-ratio: 16 / 9;
}

.gl-catalog__card-video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

.gl-catalog__card-video-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 2;
}

.gl-catalog__card-video-wrapper iframe,
.gl-catalog__card-video-wrapper video {
    pointer-events: none;
}

.gl-catalog__card-video {
    position: relative;
    min-height: 100%;
}

.gl-catalog__link-wrapper {
    cursor: pointer;
}

/* Модалка — полноэкранный просмотр видео */
body.mod-video-modal-open {
    overflow: hidden;
}

#modal-host {
    background-color: rgba(0, 0, 0, 0.95);
}

.modal__container--video {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    width: min(92vw, 112rem);
    max-width: none;
}

.modal__container--video .modal__close-btn-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.modal__container--video .modal__title {
    position: static;
    padding: 0 6rem;
    max-width: 100%;
    color: #fff;
    font-weight: 700;
    font-size: 3.6rem;
    line-height: 1.2;
    text-align: center;
    background: none;
}

.modal__container--video .modal__content {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.modal__video {
    position: absolute;
    inset: 0;
    background: #000;
}

.modal__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media only screen and (max-width: 1024px) {
    .modal__container--video .modal__title {
        font-size: 3rem;
    }
}

@media only screen and (max-width: 768px) {
    .modal__container--video {
        width: 100%;
        margin: 0;
        gap: 1.6rem;
    }

    .modal__container--video .modal__title {
        padding: 0 5rem;
        font-size: 2.2rem;
    }

    .modal__container--video .modal__content {
        aspect-ratio: auto;
        height: 56vw;
        min-height: 20rem;
    }
}

@media only screen and (max-width: 640px) {
    .modal__container--video .modal__title {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 1024px) {
    .gl-catalog__list {
        columns: 2;
        column-gap: 1.6rem;
    }

    .gl-catalog__item {
        margin-bottom: 1.6rem;
    }
}

@media only screen and (max-width: 576px) {
    .gl-catalog__list {
        columns: 1;
        column-gap: 0;
    }

    .gl-catalog__item {
        margin-bottom: 1.6rem;
        width: 100%;
    }
}

.header__left-block {
    margin-top: 0.8rem;
}

.header__logo-wrapper {
    line-height: 0;
    padding-top: 0.6rem;
    width: 80%;
    max-width: 22rem;
}

.header__logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

/* Top bar: logo + horizontal nav */
body:not([data-layout="admin"]) .header.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 2.4rem;
    grid-template-columns: none;
}

body:not([data-layout="admin"]) .header__left-block {
    flex: 0 0 auto;
    margin-top: 0;
    padding-right: 0;
}

body:not([data-layout="admin"]) .header__menu-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 0;
}

body:not([data-layout="admin"]) .header__controls-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem 2rem;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible !important;
}

body:not([data-layout="admin"]) .header__control-wrapper {
    width: auto;
    margin: 0;
    overflow: visible !important;
}

body:not([data-layout="admin"]) .header__control.mod-link {
    font-size: clamp(1.4rem, 1.6vw, 2rem);
    line-height: 1.2;
    white-space: nowrap;
}

body:not([data-layout="admin"]) .header__burger-wrapper {
    flex: 0 0 auto;
}

/* MacBook 14" и другие ноутбуки — компактнее */
@media only screen and (max-width: 1512px) {
    body:not([data-layout="admin"]) .header.container {
        column-gap: 1.6rem;
        margin-bottom: 2.4rem;
    }

    .header__left-block {
        padding-right: 0;
        margin-top: 0;
    }

    .header__logo-wrapper {
        padding-top: 0.4rem;
        max-width: 18rem;
    }

    body:not([data-layout="admin"]) .header__controls-list {
        gap: 0.3rem 1.4rem;
    }

    .gl-catalog {
        margin-top: 0.8rem;
    }
}

@media only screen and (max-width: 1024px) {
    .header__left-block {
        padding-right: 0;
    }

    .header__logo-wrapper {
        max-width: 16rem;
    }

    body:not([data-layout="admin"]) .header__controls-list {
        gap: 0.2rem 1.2rem;
    }

    body:not([data-layout="admin"]) .header__control.mod-link {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 768px) {
    body:not([data-layout="admin"]) .header.container {
        flex-wrap: wrap;
        align-items: center;
    }

    body:not([data-layout="admin"]) .header__menu-wrapper {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    body:not([data-layout="admin"]) .header__menu-wrapper:not(.mod-show) {
        display: none;
    }

    body:not([data-layout="admin"]) .header__menu-wrapper.mod-show {
        display: flex;
        max-height: none;
        padding-top: 1.6rem;
    }

    body:not([data-layout="admin"]) .header__controls-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        width: 100%;
    }

    body:not([data-layout="admin"]) .header__control.mod-link {
        font-size: 2.4rem;
    }

    .header__logo-wrapper {
        max-width: 14rem;
    }
}

@media only screen and (max-width: 480px) {
    .header__logo-wrapper {
        max-width: 12rem;
    }
}

.header__contacts-tel {
    white-space: nowrap;
}

/* Active / hover nav: soft glow halo only */
.header__control-wrapper {
    overflow: visible !important;
}

.header__controls-list {
    overflow: visible !important;
}

.header__control.mod-link,
.header__control.header__sort-btn {
    position: relative;
    z-index: 1;
    transition: text-shadow 0.35s ease, opacity 0.3s ease;
}

.header__control.mod-link::before,
.header__control.header__sort-btn::before {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: calc(100% + 7.2rem);
    height: calc(100% + 3.6rem);
    min-width: 14rem;
    min-height: 5.2rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse 58% 52% at 50% 50%,
        rgba(255, 255, 255, 0.26),
        rgba(255, 255, 255, 0.08) 45%,
        transparent 72%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.header__control.mod-link::after,
.header__control.header__sort-btn::after {
    display: none;
}

.header__control.mod-link:hover::before,
.header__control.header__sort-btn:hover::before,
.header__control.mod-link.mod-active::before,
.header__control.header__sort-btn.mod-active::before,
.header__control.mod-link:focus-visible::before,
.header__control.header__sort-btn:focus-visible::before {
    opacity: 1;
}

.header__control.mod-link:hover,
.header__control.header__sort-btn:hover,
.header__control.mod-link.mod-active,
.header__control.header__sort-btn.mod-active {
    opacity: 1;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.75),
        0 0 18px rgba(255, 255, 255, 0.45),
        0 0 36px rgba(255, 255, 255, 0.25);
}

@media only screen and (max-width: 1024px) {
    .header__control.mod-link::before,
    .header__control.header__sort-btn::before {
        width: calc(100% + 5.6rem);
        height: calc(100% + 3rem);
        min-width: 12rem;
        min-height: 4.6rem;
    }
}

/* Админка */
.admin-gate {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.admin-gate[hidden],
#admin-app[hidden] {
    display: none !important;
}

.admin-gate__box {
    width: 100%;
    max-width: 40rem;
}

.admin-gate__title {
    margin: 0 0 1.2rem;
    font-size: 4.8rem;
    line-height: 5.2rem;
    font-weight: 700;
    color: #fff;
}

.admin-gate__text {
    margin: 0 0 2.4rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: rgba(255, 255, 255, 0.65);
}

.admin {
    padding: 4rem 0 6rem;
}

.admin__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.admin__title {
    margin: 0;
    font-size: 4.8rem;
    line-height: 5.2rem;
    font-weight: 700;
    color: #fff;
}

.admin__logout {
    padding: 0.8rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    line-height: 1.8rem;
    cursor: pointer;
}

.admin__logout:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.admin__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.4rem;
}

.admin__tab {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
}

.admin__tab.mod-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.admin__panel {
    margin-top: 2.4rem;
}

.admin__panel[hidden] {
    display: none !important;
}

.admin__text {
    margin: 0 0 2.4rem;
    max-width: 52rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: rgba(255, 255, 255, 0.75);
}

.admin__text code {
    color: #fff;
}

.admin__hint {
    margin: -0.8rem 0 1.6rem;
    font-size: 1.3rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.45);
}

.admin__section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 4.8rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    align-items: start;
}

.admin__grid .admin__section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.admin__section--upload {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__section--tags {
    grid-column: 1;
    grid-row: 2;
    padding-top: 3rem;
}

.admin__section--edit {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__section--catalog {
    grid-column: 2;
    grid-row: 2;
    padding-top: 3rem;
}

@media only screen and (max-width: 1024px) {
    .admin__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin__section--upload,
    .admin__section--tags,
    .admin__section--edit,
    .admin__section--catalog {
        grid-column: 1;
        grid-row: auto;
        padding-top: 3rem;
        padding-bottom: 0;
        border-bottom: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .admin__section--edit {
        padding-top: 0;
        border-top: 0;
    }
}

.admin__subtitle {
    margin: 0 0 1.2rem;
    font-size: 2.4rem;
    line-height: 2.8rem;
    font-weight: 700;
    color: #fff;
}

.admin__form {
    max-width: none;
}

.admin__field {
    display: block;
    margin-bottom: 1.6rem;
    border: 0;
    padding: 0;
}

.admin__field-label,
.admin__field legend.admin__field-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.admin__input {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background-color: #1a1a1a;
    color: #fff;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    font: inherit;
    font-size: 1.6rem;
}

.admin__input:placeholder-shown {
    color: #4d4d4d;
    -webkit-text-fill-color: #4d4d4d;
}

.admin__input::placeholder {
    color: #4d4d4d;
    -webkit-text-fill-color: #4d4d4d;
    opacity: 1;
}

.admin__input::-webkit-input-placeholder {
    color: #4d4d4d;
    -webkit-text-fill-color: #4d4d4d;
}

.admin__input:focus {
    outline: 1px solid rgba(255, 255, 255, 0.55);
    outline-offset: 0;
    background-color: #222;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.admin__input:focus:placeholder-shown {
    color: #4d4d4d;
    -webkit-text-fill-color: #4d4d4d;
}

.admin__input:-webkit-autofill,
.admin__input:-webkit-autofill:hover,
.admin__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px #1a1a1a inset;
    transition: background-color 9999s ease-out 0s;
}

select.admin__input {
    cursor: pointer;
    color-scheme: dark;
}

select.admin__input option {
    background-color: #1a1a1a;
    color: #fff;
}

.admin__input--file {
    padding: 0.8rem 0;
    background-color: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
}

.admin__input--file::file-selector-button {
    margin-right: 1.2rem;
    padding: 0.8rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
}

.admin__input--file::file-selector-button:hover {
    opacity: 0.85;
}

.admin__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.6rem;
}

.admin__tags-empty {
    margin: 0;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

.admin__tags-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.admin__tag-item {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__tag-item-view {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin__tag-item-label {
    flex: 1;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.admin__tag-item-slug {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.4);
}

.admin__tag-delete {
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.admin__tag-edit {
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.admin__tag-edit:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin__tag-edit-form {
    margin-top: 1.2rem;
}

.admin__tag-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin__tag-edit-actions .admin__submit {
    margin-top: 0;
}

.admin__submit--secondary {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.admin__tag-delete:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.admin__form--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.2rem;
}

.admin__field--grow {
    flex: 1 1 16rem;
    margin-bottom: 0;
}

.admin__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: 1.6rem;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}

.admin__source-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.6rem;
}

.admin__submit {
    margin-top: 0.8rem;
    padding: 1.2rem 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
}

.admin__form--inline .admin__submit {
    margin-top: 0;
    flex-shrink: 0;
    align-self: flex-end;
}

.admin__submit:disabled {
    opacity: 0.5;
    cursor: wait;
}

.admin__submit:hover:not(:disabled) {
    opacity: 0.85;
}

.page-template-admin .admin__submit:not(.admin__submit--danger) {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
}

.admin__submit--danger {
    margin-top: 2rem;
    background: #c0392b;
    color: #fff;
}

.admin__submit--danger:hover:not(:disabled) {
    background: #a93226;
    opacity: 1;
}

.admin__edit-panel {
    margin-top: 2rem;
}

.admin__edit-kind {
    margin: 0 0 1.6rem;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-all;
}

.admin__form--replace {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__progress {
    height: 4px;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.admin__progress-bar {
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 0.2s ease;
}

.admin__status {
    margin: 1.2rem 0 0;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.admin__status--success {
    color: #8fd18f;
}

.admin__status--error {
    color: #f08080;
}

.admin__video-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin__video-item {
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__video-item-title {
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.admin__video-item-meta {
    margin-top: 0.4rem;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.admin__video-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.6rem;
}

.admin__reorder-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    max-width: 72rem;
}

.admin__reorder-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    cursor: grab;
    user-select: none;
}

.admin__reorder-item + .admin__reorder-item {
    margin-top: 0.8rem;
}

.admin__reorder-item.mod-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.admin__reorder-item.mod-drag-over {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.admin__reorder-handle {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.15em;
}

.admin__reorder-index {
    min-width: 2.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
}

.admin__reorder-title {
    flex: 1;
    font-size: 1.6rem;
    line-height: 2rem;
    color: #fff;
}

.admin__reorder-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.6rem;
}

.admin__section--team {
    margin-top: 4rem;
}

.admin__team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    margin-top: 2rem;
}

.admin__team-heading {
    margin: 0 0 1.6rem;
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.admin__input--textarea {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.6;
}

.admin__team-preview {
    margin-bottom: 1.6rem;
}

.admin__team-preview-photo {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    display: block;
    background: #111;
}

.admin__gallery-item {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr) auto;
    gap: 1.6rem;
    align-items: start;
}

.admin__gallery-preview-photo {
    width: 12rem;
    height: 9rem;
    object-fit: cover;
    display: block;
    background: #111;
}

.admin__gallery-item .admin__gallery-item-status {
    grid-column: 1 / -1;
}

@media only screen and (max-width: 768px) {
    .admin__gallery-item {
        grid-template-columns: 1fr;
    }
}

.admin__team-list {
    list-style: none;
    margin: 3rem 0 0;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__team-item {
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__team-item:first-child {
    border-top: 0;
}

.admin__team-item-title {
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.admin__team-item-meta {
    margin-top: 0.4rem;
    font-size: 1.4rem;
    line-height: 1.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.admin__team-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.6rem;
}

.admin__section--about {
    margin-top: 0;
}

.admin__about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    margin-top: 2rem;
}

.admin__about-heading {
    margin: 0 0 1.6rem;
    font-size: 1.8rem;
    line-height: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.admin__about-preview {
    margin-bottom: 1.6rem;
}

.admin__about-preview-photo {
    width: 100%;
    max-width: 36rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    background: #111;
}

@media only screen and (max-width: 1024px) {
    .admin__team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .admin__about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Страница «О нас» */
.about {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.about__block {
    margin-bottom: 0;
}

.about__block--dark {
    padding: 4rem 0;
}

.about__block--dark .about__item + .about__item {
    margin-top: 4rem;
}

.about__block--light {
    background: transparent;
    color: #fff;
    margin-left: 0;
    margin-right: 0;
    padding: 4rem 0 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about__title {
    margin: 0 0 1.6rem;
    font-size: 3.6rem;
    line-height: 4.2rem;
    font-weight: 700;
    color: #fff;
}

.about__text {
    margin: 0;
    max-width: 52rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: rgba(255, 255, 255, 0.85);
}

.about__block--light .about__label {
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.about__block--light .about__heading {
    margin: 0 0 2.4rem;
    font-size: 4.8rem;
    line-height: 5.2rem;
    font-weight: 700;
    color: #fff;
    max-width: 56rem;
}

.about__block--light .about__steps {
    display: inline-block;
    margin-bottom: 3.2rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 1.6rem;
    line-height: 1.8rem;
    font-weight: 700;
}

.about__block--light .about__subtitle {
    margin: 0 0 1.6rem;
    font-size: 3.2rem;
    line-height: 3.8rem;
    font-weight: 700;
    color: #fff;
}

.about__block--light .about__text--dark {
    color: rgba(255, 255, 255, 0.85);
    max-width: 56rem;
}

.about__text--dark + .about__text--dark {
    margin-top: 1.6rem;
}

/* Контакты — команда с фото при наведении */
.contacts-team {
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible !important;
}

.contacts-team .talents__title {
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.contacts-team .talents__item-wrapper {
    height: auto;
    min-height: 5.6rem;
    padding: 1.2rem 0;
}

.contacts-team .talents__item-link {
    font-size: 2.4rem;
    line-height: 2.8rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    height: auto;
    align-items: flex-start;
}

.contacts-team__link {
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.contacts-team__name {
    display: block;
}

.contacts-team .talents__item-link:hover,
.contacts-team .talents__item-link:focus-visible {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

.contacts-team .talents__item-link:hover .contacts-team__role,
.contacts-team .talents__item-link:focus-visible .contacts-team__role {
    color: rgba(255, 255, 255, 0.75);
}

.contacts-team .talents__item-photo {
    width: 18rem;
    height: 18rem;
    pointer-events: none;
}

.contacts-team .talents__item-wrapper:hover .talents__item-photo,
.contacts-team .talents__item-wrapper:focus-within .talents__item-photo,
.contacts-team .talents__item-link:hover + .talents__item-photo,
.contacts-team .talents__item-link:focus-visible + .talents__item-photo {
    right: 0.4rem;
    opacity: 1;
    z-index: 1;
    transform: translateY(-50%) rotate(-6deg);
}

.contacts-team__role {
    display: block;
    margin: 0.6rem 0 0;
    max-width: 100%;
    font-size: 1.3rem;
    line-height: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

/* Контакты — 3 колонки: info | team | map */
.contacts-page {
    display: grid;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(24rem, 1.3fr) minmax(22rem, 1.1fr);
    gap: 3.2rem 4rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.contacts-page__col--info,
.contacts-page__col--map {
    min-width: 0;
}

.contacts-page__col--team {
    min-width: 0;
    overflow: visible !important;
}

.contacts-page__item + .contacts-page__item {
    margin-top: 2.4rem;
}

.contacts-page .gl-caption {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.45);
}

.contacts-page .gl-value {
    font-size: 2rem;
    line-height: 2.6rem;
}

.contacts-page__socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.contacts-page__socials a {
    display: block;
}

.contacts-page .contacts__map {
    margin-top: 1.6rem;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
}

.contacts-page .contacts__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media only screen and (max-width: 1200px) {
    .contacts-page {
        grid-template-columns: minmax(16rem, 0.85fr) minmax(22rem, 1.2fr) minmax(20rem, 1fr);
        gap: 2.4rem 2.8rem;
    }

    .contacts-team .talents__item-link {
        font-size: 2.1rem;
        line-height: 2.5rem;
    }
}

@media only screen and (max-width: 1024px) {
    .contacts-page {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2.4rem;
    }

    .contacts-page__col--info {
        grid-column: 1;
        grid-row: 1;
    }

    .contacts-page__col--map {
        grid-column: 2;
        grid-row: 1;
    }

    .contacts-page__col--team {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .contacts-team .talents__item-link {
        font-size: 2.4rem;
        line-height: 2.8rem;
    }

    .contacts-team .talents__item-photo {
        width: 16rem;
        height: 16rem;
    }
}

@media only screen and (max-width: 768px) {
    .contacts-page {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .contacts-page__col--info,
    .contacts-page__col--map,
    .contacts-page__col--team {
        grid-column: auto;
        grid-row: auto;
    }

    .contacts-page__col--info { order: 1; }
    .contacts-page__col--team { order: 2; }
    .contacts-page__col--map { order: 3; }

    .contacts-page .gl-value {
        font-size: 1.8rem;
        line-height: 2.4rem;
    }

    .contacts-team .talents__item-link {
        font-size: 2.2rem;
        line-height: 2.6rem;
    }

    .contacts-team .talents__item-photo {
        width: 14rem;
        height: 14rem;
    }

    .contacts-team .talents__item-wrapper:hover .talents__item-photo,
    .contacts-team .talents__item-wrapper:focus-within .talents__item-photo {
        right: 0;
    }
}

@media only screen and (max-width: 576px) {
    .contacts-team .talents__item-link {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    .contacts-team .talents__item-photo {
        width: 11rem;
        height: 11rem;
    }
}

/* Контакты — вступительный блок */
.contacts-intro {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.contacts-intro__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    margin-bottom: 4rem;
}

.contacts-intro__gallery[hidden] {
    display: none !important;
}

.contacts-intro__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.contacts-intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contacts-intro__label {
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.contacts-intro__heading {
    margin: 0 0 1.6rem;
    max-width: 56rem;
    font-size: 4.8rem;
    line-height: 5.2rem;
    font-weight: 700;
    color: #fff;
}

.contacts-intro__text {
    margin: 0 0 3.2rem;
    max-width: 52rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: rgba(255, 255, 255, 0.75);
}

.contacts-intro__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contacts-intro__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

.contacts-intro__item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contacts-intro__item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contacts-intro__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.8rem 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.contacts-intro__icon {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.contacts-intro__item.mod-open .contacts-intro__icon {
    transform: rotate(45deg);
}

.contacts-intro__panel {
    display: none;
    padding: 0 0 1.8rem;
}

.contacts-intro__item.mod-open .contacts-intro__panel {
    display: block;
}

.contacts-intro__panel p {
    margin: 0;
    max-width: 48rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
    color: rgba(255, 255, 255, 0.65);
}

.contacts-intro__panel p + p {
    margin-top: 1.2rem;
}

#contacts.contacts-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 0;
}

@media only screen and (max-width: 768px) {
    .contacts-intro__gallery {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    .contacts-intro__heading {
        font-size: 3.2rem;
        line-height: 3.6rem;
    }

    .contacts-intro__toggle {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }

    .contacts-intro__columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media only screen and (max-width: 768px) {
    .about__block--light {
        padding: 3rem 0 4rem;
    }

    .about__title {
        font-size: 2.8rem;
        line-height: 3.2rem;
    }

    .about__heading {
        font-size: 3.2rem;
        line-height: 3.6rem;
    }

    .about__subtitle {
        font-size: 2.4rem;
        line-height: 2.8rem;
    }
}

/* Gallery */
.gallery {
    padding: 2rem 0 6rem;
}

.gallery__list {
    display: block;
    columns: 3;
    column-gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery__item {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    margin: 0 0 1.6rem;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.gallery__figure {
    margin: 0;
}

.gallery__photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.04);
}

.gallery__open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}

.gallery__open:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.55);
    outline-offset: 4px;
}

.gallery__caption {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.55);
}

.gallery__empty {
    margin: 4rem 0;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.45);
}

body.mod-gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(96vw, 140rem);
    height: min(92vh, 100%);
    padding: 5.6rem 6.4rem 4rem;
    box-sizing: border-box;
}

.gallery-lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.gallery-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
}

.gallery-lightbox__caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.4rem;
    line-height: 1.4;
    text-align: center;
    max-width: 60rem;
}

.gallery-lightbox__btn {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 0;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox__btn:hover,
.gallery-lightbox__btn:focus-visible {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}

.gallery-lightbox__btn--close {
    top: 1.2rem;
    right: 1.2rem;
    font-size: 2.8rem;
}

.gallery-lightbox__btn--fs {
    top: 1.2rem;
    right: 6.4rem;
    font-size: 1.8rem;
}

.gallery-lightbox__btn--prev,
.gallery-lightbox__btn--next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.2rem;
}

.gallery-lightbox__btn--prev {
    left: 1.2rem;
}

.gallery-lightbox__btn--next {
    right: 1.2rem;
}

.gallery-lightbox.mod-fullscreen .gallery-lightbox__panel {
    width: 100vw;
    height: 100vh;
    padding: 6rem;
}

.gallery-lightbox.mod-fullscreen .gallery-lightbox__img {
    max-height: calc(100vh - 8rem);
}

@media only screen and (max-width: 768px) {
    .gallery-lightbox__panel {
        padding: 5.6rem 1.2rem 2.4rem;
        width: 100vw;
    }

    .gallery-lightbox__btn--prev,
    .gallery-lightbox__btn--next {
        top: auto;
        bottom: 1.2rem;
        transform: none;
    }

    .gallery-lightbox__btn--prev {
        left: 1.2rem;
    }

    .gallery-lightbox__btn--next {
        right: 1.2rem;
    }

    .gallery-lightbox__img {
        max-height: calc(100vh - 12rem);
    }
}

@media only screen and (max-width: 1024px) {
    .gallery__list {
        columns: 2;
        column-gap: 1.2rem;
    }

    .gallery__item {
        margin-bottom: 1.2rem;
    }
}

@media only screen and (max-width: 640px) {
    .gallery__list {
        columns: 1;
    }
}

/* Services: one page, two halves */
.page-template-services .layout-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.services-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    min-height: calc(100vh - 12rem);
    flex: 1 1 auto;
    align-items: stretch;
}

.services-split__side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.4rem, 4.5vw, 5.5rem) clamp(2rem, 4vw, 4.5rem);
    isolation: isolate;
}

.services-split__wave {
    position: relative;
    width: clamp(4.8rem, 7vw, 7.2rem);
    align-self: stretch;
    margin: clamp(1.6rem, 3vh, 3.2rem) 0;
    pointer-events: auto;
    overflow: visible;
    cursor: default;
}

.services-split__wave-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(78vh, 64rem);
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
    overflow: visible;
}

.services-split__wave-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.72;
    user-select: none;
    transition:
        opacity 0.45s cubic-bezier(0.33, 0, 0.2, 1),
        filter 0.45s cubic-bezier(0.33, 0, 0.2, 1);
}

.services-split__wave-bolt {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    overflow: hidden;
}

.services-split__wave-img--bolt {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    filter: brightness(2.8) contrast(1.08);
}

.services-split__wave-bolt--trail .services-split__wave-img--bolt {
    filter: brightness(2.35) blur(1.5px);
}

.services-split__wave-bolt--core .services-split__wave-img--bolt {
    filter: brightness(3.55) contrast(1.14) drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
}

.services-split.mod-wave-live .services-split__wave-img:not(.services-split__wave-img--bolt) {
    opacity: 0.42;
    filter: brightness(0.82);
}

.services-split.mod-wave-bolt-active .services-split__wave-bolt--trail {
    opacity: 0.9;
}

.services-split.mod-wave-bolt-active .services-split__wave-bolt--core {
    opacity: 1;
}

.services-split.mod-wave-live .services-split__wave-img:not(.services-split__wave-img--bolt) {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.12));
}

.services-split__side--brands {
    border-right: 0;
}

.services-split__inner {
    width: min(100%, 42rem);
    text-align: left;
}

.services-split__eyebrow {
    margin: 0 0 1.2rem;
    font-family: var(--font-display, 'Unbounded', sans-serif);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.services-split__title {
    margin: 0 0 1.8rem;
    max-width: 10ch;
    font-family: var(--font-display, 'Unbounded', sans-serif);
    font-weight: 300;
    font-size: clamp(3.2rem, 5.8vw, 7.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.92);
    transition:
        color 0.45s cubic-bezier(0.33, 0, 0.2, 1),
        letter-spacing 0.55s cubic-bezier(0.33, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.33, 0, 0.2, 1),
        text-shadow 0.45s ease;
}

.services-split__lead {
    margin: 0 0 2.6rem;
    max-width: 34rem;
    font-family: 'TT Norms', sans-serif;
    font-size: clamp(1.5rem, 1.5vw, 1.8rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.services-split__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.6rem;
}

.services-split__list li {
    display: grid;
    gap: 0.35rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.services-split__item-name {
    font-family: var(--font-display, 'Unbounded', sans-serif);
    font-weight: 500;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

.services-split__item-text {
    font-family: 'TT Norms', sans-serif;
    font-size: 1.35rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
}

.services-split__side:hover .services-split__title,
.services-split__side:focus-within .services-split__title {
    color: #fff;
    letter-spacing: 0.01em;
    transform: translateY(-0.2rem);
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

#site-main.mod-visible .services-split__side--brands .services-split__inner {
    animation: services-title-in 1.05s cubic-bezier(0.33, 0, 0.2, 1) both;
}

#site-main.mod-visible .services-split__side--artists .services-split__inner {
    animation: services-title-in 1.05s cubic-bezier(0.33, 0, 0.2, 1) 0.14s both;
}

@keyframes services-title-in {
    from {
        opacity: 0;
        transform: translateY(1.4rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 860px) {
    .services-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .services-split__side {
        min-height: auto;
        padding: 4.5rem 2rem;
        align-items: flex-start;
    }

    .services-split__wave {
        width: 100%;
        height: clamp(5.6rem, 18vw, 8rem);
        margin: 0.4rem 0 0.8rem;
        padding: 0 1.6rem;
        overflow: visible;
    }

    .services-split__wave-spin {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 42rem;
        margin: 0 auto;
        transform: none;
    }

    .services-split__wave-img {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .services-split__side--brands {
        border-right: 0;
        border-bottom: 0;
    }

    .services-split__title {
        font-size: clamp(3.2rem, 11vw, 5.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    #site-main.mod-visible .services-split__side--brands .services-split__inner,
    #site-main.mod-visible .services-split__side--artists .services-split__inner {
        animation: none;
    }

    .services-split__title {
        transition: color 0.2s ease;
    }

    .services-split__side:hover .services-split__title,
    .services-split__side:focus-within .services-split__title {
        letter-spacing: -0.03em;
        transform: none;
        text-shadow: none;
    }

    .services-split.mod-wave-bolt-active .services-split__wave-bolt--trail,
    .services-split.mod-wave-bolt-active .services-split__wave-bolt--core {
        opacity: 0.75 !important;
    }
}
