
.ti-card > .tn-molecule >
.tn-elem[data-elem-type="shape"] {
    overflow: hidden !important;
    isolation: isolate !important;
}

/* Белая заливка над фотографией */
.ti-card > .tn-molecule >
.tn-elem[data-elem-type="shape"]::before {
    content: "" !important;
    position: absolute !important;
    z-index: 5 !important;
    inset: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    border-radius: inherit !important;
    background-color: #ffffff !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
    transition: opacity 0.35s ease !important;
}

/* Рамка над фотографией и белой заливкой */
.ti-card > .tn-molecule >
.tn-elem[data-elem-type="shape"]::after {
    content: "" !important;
    position: absolute !important;
    z-index: 10 !important;
    inset: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    border-width:
        var(--ti-border-width, 0) !important;
    border-style:
        var(--ti-border-style, solid) !important;
    border-color:
        var(--ti-border-color, transparent) !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    transform: none !important;
}

/* Фотография */
.ti-card > .tn-molecule >
.tn-elem[data-elem-type="shape"] >
.tn-atom.t-bgimg {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    transform-origin: center center !important;
    transition: transform 0.35s ease !important;
    will-change: transform;
}

/* Кнопка */
.ti-card > .tn-molecule >
.tn-elem[data-elem-type="button"] >
.tn-atom {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.ti-card .tn-atom__button-content {
    position: relative !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.ti-card .tn-atom__button-text {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.ti-card .tn-atom__button-icon {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: rotate(0deg) !important;
    transform-origin: center center !important;
    transition: transform 0.2s ease !important;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .ti-card:hover > .tn-molecule >
    .tn-elem[data-elem-type="shape"] >
    .tn-atom.t-bgimg {
        transform: scale(1.05) !important;
    }

    .ti-card:hover > .tn-molecule >
    .tn-elem[data-elem-type="shape"]::before {
        opacity: 0.1 !important;
    }

    .ti-card:hover .tn-atom__button-icon {
        transform: rotate(-45deg) !important;
    }
}

/* Эффекты при фокусе с клавиатуры */
.ti-card:focus-within > .tn-molecule >
.tn-elem[data-elem-type="shape"] >
.tn-atom.t-bgimg {
    transform: scale(1.05) !important;
}

.ti-card:focus-within > .tn-molecule >
.tn-elem[data-elem-type="shape"]::before {
    opacity: 0.1 !important;
}

.ti-card:focus-within .tn-atom__button-icon {
    transform: rotate(-45deg) !important;
}
