/**
 * CMSXL and Application User Interface Soft Touch Buttons.
 * Copyright (c) 2023 Anthony Albit. All rights reserved.
 *
 * For more information, please contact:
 * Email: anthony.albit@wayovermedia.com
 * Website: https://cmsxl.com
 */

:root {
    --this-color: var(--c-dollar);
}

.qraway-product-presentation {
    height: 700px;
    transition: all .3s ease;
}
.qraway-product-item {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    width: 370px;
    overflow: hidden;
    transition: all .2s ease;
}
.qraway-product-item:hover {
    transform: translateY(0);
}
.qraway-product-item:hover img.rotator {
    transform: scale(1.15);
    filter: brightness(1.1);
}
.qraway-product-item:hover .qraway-product-info-link {
    display: block;
}
.qraway-product-item:hover .qraway-product-meta {
    bottom: 30px;
    transform: scale(1);
    opacity: 1;
}
.qraway-product-info-link:hover .qraway-product-meta {
    filter: brightness(120%);
}
.qraway-product-item img.rotator {
    position: absolute;
    z-index: 1;
    top: 120px;
    left: 0;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 1.4s ease;
    opacity: 0;
}
.qraway-product-item img.qraway-product-item-active {
    z-index: 2;
    opacity: 1;
}

.qraway-product-item h3 {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 40px;
    margin-bottom: 0;
    transition: all .3s ease;
    transform: rotate(1deg) scale(1);
}
.qraway-product-item h3:hover {
    transform: rotate(1deg) scale(1.1);
    filter: brightness(110%);
}
.qraway-product-info,
.qraway-product-info-link {
    position: absolute !important;
    z-index: 2;
    top: 80px;
    right: 20px;
    width: 84px;
    height: 150px;
    text-transform: uppercase;
}
.qraway-product-info-link {
    display: none;
    z-index: 5;
    top: 36px;
    height: 84px;
}
.qraway-product-meta {
    display: block;
    bottom: -40px;
    width: 84px;
    height: 84px;
    text-transform: uppercase;
    transition: bottom .5s ease, opacity 0.5s ease, transform 0.5s ease;
    transform: scale(.5);
    opacity: 0;
}
.qraway-product-meta img {
    margin: 0;
    transform: rotate(2deg);
}

@media (max-width: 767px) {
    .qraway-product-item h3 {
        /*bottom: 20px;*/
        zoom: .8;
    }
    .qraway-product-presentation {
        height: 600px;
    }
    .qraway-product-item {
        margin-left: -30px;
        width: 300px;
    }
    .qraway-product-info,
    .qraway-product-info-link {
        right: 0;
    }
}

.outlined-link {
    display: inline-block; /* <<< ВАЖНО: чтобы бордер подстраивался по тексту */
    padding: 6px 14px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--c-ivory);
    text-decoration: none;
    background: #242424;
    border-radius: var(--acp-drop-radius);
    transition: all 0.2s ease;
}
.outlined-link span {
    color: var(--c-dollar);
}
.outlined-link:hover {
    background: var(--acp-bg-color);
}


.qraway-product-explainer {
    padding: 60px 20px;
    color: #eee;
    background: #111;
    border-top: 1px solid #333;
}

.qraway-product-explainer-inner {
    margin: 0 auto;
    max-width: 1190px;
}

.qraway-product-explainer h2 {
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #aaff88;
    text-align: center;
}

.qraway-product-explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.qraway-product-explainer-block {
    padding: 30px 20px;
    text-align: center;
    background: #1a1a1a;
    box-shadow: 0 0 0 1px #222;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.qraway-product-explainer-block:hover {
    transform: translateY(-4px);
}

.qraway-product-icon {
    margin-bottom: 16px;
    font-size: 32px;
}

.qraway-product-explainer-block h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.qraway-product-explainer-block p {
    line-height: 1.5;
    font-size: 14px;
    color: #ccc;
}

.qraway-product-note {
    margin-top: 50px;
    margin-right: auto;
    margin-left: auto;
    max-width: 700px;
    line-height: 1.6;
    font-size: 15px;
    color: #aaa;
    text-align: center;
}


/*safasfasfd*/


/*asfasfasf*/


.qraway-pop-sticker {
    position: absolute !important;
    z-index: 10;
    pointer-events: none;
}

.qraway-pop-sticker-body {
    transition: top .5s ease, left .5s ease, right .5s ease, bottom .5s ease,
    opacity .5s ease, transform .5s ease;
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Исходное скрытое состояние (до появления) */
.qraway-pop-sticker.fly-in .qraway-pop-sticker-body {
    transform: scale(0.5);
    opacity: 0;
}

/* Положение вне холдера — спрятано */
.qraway-pop-sticker.fly-in.left .qraway-pop-sticker-body {
    top: 0;
    left: -120px;
}

.qraway-pop-sticker.fly-in.right .qraway-pop-sticker-body {
    top: 0;
    right: -120px;
}

.qraway-pop-sticker.fly-in.top .qraway-pop-sticker-body {
    top: -80px;
    left: 0;
}

.qraway-pop-sticker.fly-in.bottom .qraway-pop-sticker-body {
    bottom: -80px;
    left: 0;
}

/* Активное финальное состояние */
.qraway-pop-sticker.fly-in.active.left .qraway-pop-sticker-body {
    left: 0;
    transform: scale(1);
    opacity: 1;
}

.qraway-pop-sticker.fly-in.active.right .qraway-pop-sticker-body {
    right: 0;
    transform: scale(1);
    opacity: 1;
}

.qraway-pop-sticker.fly-in.active.top .qraway-pop-sticker-body {
    top: 0;
    transform: scale(1);
    opacity: 1;
}

.qraway-pop-sticker.fly-in.active.bottom .qraway-pop-sticker-body {
    bottom: 0;
    transform: scale(1);
    opacity: 1;
}

.sticker-001 {
    top: 20px;
    left: 20px;
    transform: rotate(-2deg);
}
.sticker-002 {
    top: 20px;
    right: 20px;
    transform: rotate(2deg);
}
.sticker-003 {
    bottom: 20px;
    left: 20px;
    transform: rotate(2deg);
}
.sticker-004 {
    right: 20px;
    bottom: 20px;
    transform: rotate(-2deg);
}

/*asfasfasfdds*/


/*safasfsfasfdsf*/

.qraway-start-with-dm {
    position: absolute !important;
    z-index: 3;
    right: 0;
    bottom: 140px;
    width: 160px;
    height: 260px;
    cursor: pointer;
}
.qraway-start-with-dm.left {
    right: unset;
    left: 0;
}
.qraway-start-with-dm-builder {
    position: absolute !important;
    z-index: 3;
    right: 10px;
    bottom: -25px;
    width: 130px;
}
.qraway-start-with-dm-builder.left {
    right: unset;
    left: 10px;
}
.qraway-start-with-dm img {
    display: block;
}
.qraway-start-with-dm-builder.flip-x img {
    transform: rotateX(180deg);
}
.qraway-start-with-dm-builder.flip-y img {
    transform: rotateY(180deg);
}

.qraway-start-with-dm-cta {
    position: absolute !important;
    right: 10px;
    bottom: 245px;
    transition: transform .3s ease, bottom .3s ease-in-out;
    transform: scale(1) rotate(2deg);
    animation: qraway-start-with-dm-cta 2s infinite;
}
.qraway-start-with-dm-cta.left {
    right: unset;
    left: 10px;
    transform: scale(1) rotate(-2deg);
    animation: qraway-start-with-dm-cta-left 2s infinite;
}
@keyframes qraway-start-with-dm-cta {
    0% { transform: scale(1) rotate(2deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}
@keyframes qraway-start-with-dm-cta-left {
    0% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.1) rotate(-2deg); }
}

.qraway-start-with-dm:hover .qraway-start-with-dm-cta {
    /*transform: scale(1.1) rotate(2deg);*/
    /*animation: step-start;*/
}
.qraway-start-with-dm:hover .qraway-start-with-dm-cta {
    bottom: 255px;
}


.qraway-phone-wrapper {
    display: flex;
    position: absolute !important;
    z-index: 999;
    right: 20px;
    bottom: 120px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: auto;
    height: 100vh;
    max-height: 100vh;
    transition: all .5s ease-in-out;
    aspect-ratio: 304 / 632; /* сохраняет пропорции */

}
.qraway-phone-wrapper.fullscreen {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    max-height: calc(100%) !important;
    transform: scale(1) !important;;
    transform-origin: center;
}

.qraway-phone-simulator {
    line-height: 1.25rem;
    font-size: .938rem;
    color: var(--c-white);
}

.qraway-phone-body {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 98%;
    aspect-ratio: 304 / 632; /* сохраняет пропорции */
}

.qraway-phone-frame {
    position: absolute !important;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #2b2f36 0%, #1d2027 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    border: 12px solid #1c1f26;
    border-radius: 42px;
}
.qraway-phone-frame.video {
    border-radius: 22px;
}
.qraway-phone-frame.video {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, #2b2f36 0%, #1d2027 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    border: 12px solid #1c1f26;
    border-radius: 22px;
}

.qraway-phone-frame.video::before,
.qraway-phone-frame.video::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 22px;
}
.qraway-phone-frame.video.right::before,
.qraway-phone-frame.video.left::before {
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -15px;
    background: linear-gradient(305deg, #3a3e47, #191b20);
    filter: blur(1px);
}
.qraway-phone-frame.video.left::before {
    right: -15px;
    left: -10px;
}
.qraway-phone-frame.video.right::after,
.qraway-phone-frame.video.left::after {
    top: -10px;
    right: -12px;
    bottom: -10px;
    left: -20px;
    background: linear-gradient(0deg, #1f2128, #0e0f12);
    opacity: .75;
    filter: blur(4px);
}
.qraway-phone-frame.video.left::after {
    right: -20px;
    left: -12px;
    background: linear-gradient(0deg, #1f2128, #0e0f12);
}
.qraway-phone-notch {
    position: absolute !important;
    z-index: 1;
    top: 24px;
    right: 0;
    left: 0;
    margin: auto;
    width: 48px;
    height: 8px;
    background-color: #181e28;
    border-radius: 20px;
}

.qraway-phone-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 52px 24px 24px 24px;
    overflow: hidden;
}
.qraway-phone-container.video {
    padding: 11px 11px 12px 9px;
}

.qraway-phone-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-bottom: 12px;
}

.qraway-phone-avatar-wrapper {
    margin-right: 12px;
}

.qraway-phone-avatar-large {
    width: 28px;
    height: 28px;
    background-color: #8592a3;
    border-radius: 50%;
    overflow: hidden;
}

.qraway-phone-chat-label {
    line-height: 1rem;
    font-size: .813rem;
    color: #8592a3;
}

.qraway-phone-divider {
    margin: 0 -12px 4px -12px;
    border-bottom: 1px solid #303b4f;
}

.qraway-phone-messages {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.qraway-phone-message-wrapper {
    display: flex;
    position: relative;
    flex-direction: row;
    width: 100%;
    gap: 8px;
}

.qraway-phone-avatar-small {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #8592a3;
    border-radius: 50%;
    align-self: flex-end;
}

.qraway-phone-message {
    overflow: hidden;
}

.qraway-phone-bubble {
    display: flex;
    flex-direction: column;
    width: 80%;
    word-break: break-word;
    border-radius: 12px;
    white-space: pre-line;
    overflow: hidden;
}

.qraway-phone-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 12px;
    background: linear-gradient(145deg, #3a3f4b, #2a2e38);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    gap: 12px;
}

.qraway-phone-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qraway-phone-button {
    padding: 8px 2px;
    line-height: 1rem;
    font-size: .813rem;
    color: var(--c-white);
    text-overflow: ellipsis;
    background: linear-gradient(to bottom, #515966, #3b414c);
    background-color: #414a59;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.qraway-phone-video {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 12px;
    object-fit: cover;
}

.qraway-phone-iso-topview {
    transition: transform 0.4s ease;
    transform: perspective(1600px) rotateX(45deg) rotateZ(0deg) scale(0.95);
    transform-style: preserve-3d;
    will-change: transform;
}
.qraway-phone-perspective-left {
    transition: transform 0.4s ease;
    transform: perspective(1600px) rotateY(-25deg) rotateX(5deg) rotate3d(1, 2, 1, 5deg) scale(0.95);
    transform-style: preserve-3d;
    will-change: transform;
}
.qraway-phone-perspective-right {
    transition: transform 0.4s ease;
    transform: perspective(1600px) rotateY(25deg) rotateX(5deg) rotate3d(1, 2, 1, -5deg) scale(0.95);
    transform-style: preserve-3d;
    will-change: transform;
}

.qraway-phone-perspective-left.fullscreen,
.qraway-phone-perspective-right.fullscreen {
    transform: perspective(1600px) rotateY(0deg) rotateX(0deg) rotate3d(0, 0, 0, 0deg) scale(0.95);
}

.qraway-phone-frame::after {
    content: '';
    position: absolute;
    z-index: -1;
    background: linear-gradient(305deg, #3b434d, #1b1e26);
    border-radius: 22px; /* 42 + 12 */
    inset: -12px; /* на ширину рамки */
}


/*
.bold-nail-bubble {
    display: inline-flex;
    flex-direction: column;
    font-size: 0;
    color: var(--c-ivory);
    text-align: left;
}

.bold-nail-line1 {
    display: block;
    position: relative;
    z-index: 2;
    top: 7px;
    padding: calc(7px + .5%) 14px 0 14px;
    line-height: 1.2;
    font-size: 16px;
    font-weight: bold;
    background: var(--c-dark);
    border-radius: 10px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.bold-nail-line2 {
    display: block;
    padding: 7px 14px calc(7px - .5%) 14px;
    line-height: 1;
    font-size: 22px;
    font-weight: bold;
    color: var(--c-dollar);
    background: var(--c-dark);
    border-radius: 10px;
    border-top-left-radius: 0;
}

.bold-nail-round {
    position: absolute !important;
    bottom: 7px;
    left: 100%;
}

.bold-nail-round-outer {
    background: var(--c-dark);
}

.bold-nail-round-inner {
    width: 10px;
    height: 10px;
    background: var(--c-primary);
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.scale-2 {
    transform: scale(2);
    transform-origin: top left;
}
*/

:root {
    --base-font: 32px;

    --nail-radius: calc(var(--base-font) * 0.454);
}

.bold-nail-bubble {
    display: inline-flex;
    flex-direction: column;
    margin: 10px;
    font-family: 'Blinker', sans-serif;
    font-size: 0;
    color: var(--c-ivory);
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.bold-nail-line1 {
    display: block;
    position: relative;
    z-index: 2;
    top: calc(var(--base-font) * 0.32); /* 7px / 22px ≈ 0.32 */
    padding: calc(var(--base-font) * 0.32) calc(var(--base-font) * 0.7) 0 calc(var(--base-font) * 0.636); /* 14px / 22px ≈ 0.636 */
    line-height: 1.2;
    font-size: calc(var(--base-font) * 0.9); /* 16px / 22px */
    font-weight: bold;
    background: var(--c-dark);
    border-radius: var(--nail-radius);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.bold-nail-line2 {
    display: block;
    padding: calc(var(--base-font) * 0.4) calc(var(--base-font) * 0.636) calc(var(--base-font) * 0.32) calc(var(--base-font) * 0.636);
    line-height: 1;
    font-size: var(--base-font);
    font-weight: bold;
    color: var(--c-dollar);
    background: var(--c-dark);
    border-radius: var(--nail-radius);
    border-top-left-radius: 0;
}

.bold-nail-round {
    position: absolute !important;
    bottom: calc(var(--base-font) * 0.32);
    left: 100%;
}

.bold-nail-round-outer {
    background: var(--c-dark);
}

.bold-nail-round-inner {
    width: var(--nail-radius);
    height: var(--nail-radius);
    background: var(--c-primary);
    border-radius: var(--nail-radius);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.bold-nail-bubble.flip .bold-nail-line1 {
    line-height: 1;
    font-size: var(--base-font); /* 16px / 22px */
}
.bold-nail-bubble.flip .bold-nail-line2 {
    line-height: 1.2;
    font-size: calc(var(--base-font) * 0.9); /* 16px / 22px */
}

.bold-nail-bubble.right {
    align-items: flex-end;
    text-align: right;
}
.bold-nail-bubble.right .bold-nail-line1 {
    padding: calc(var(--base-font) * 0.32) calc(var(--base-font) * 0.636) 0 calc(var(--base-font) * 0.7); /* 14px / 22px ≈ 0.636 */
    border-bottom-right-radius: var(--nail-radius);;
    border-bottom-left-radius: 0;
}
.bold-nail-bubble.right .bold-nail-line2 {
    border-top-left-radius: var(--nail-radius);;
    border-top-right-radius: 0;
}

.bold-nail-bubble.right .bold-nail-round {
    right: 100%;
    left: auto;
}
.bold-nail-bubble.right .bold-nail-round-inner {
    border-radius: var(--nail-radius);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}


.bold-nail-bubble.longtop .bold-nail-line1 {
    padding: calc(var(--base-font) * 0.32) calc(var(--base-font) * 0.636) calc(var(--base-font) * 0.4) calc(var(--base-font) * 0.636);
    border-radius: var(--nail-radius);
    border-bottom-left-radius: 0;
}
.bold-nail-bubble.longtop .bold-nail-line2 {
    z-index: 2;
    padding: 0 calc(var(--base-font) * 0.7) calc(var(--base-font) * 0.32) calc(var(--base-font) * 0.636); /* 14px / 22px ≈ 0.636 */
    border-radius: var(--nail-radius);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.bold-nail-bubble.flip.longtop .bold-nail-line1 {
    padding: calc(var(--base-font) * 0.4) calc(var(--base-font) * 0.636) calc(var(--base-font) * 0.32) calc(var(--base-font) * 0.636);
}

.bold-nail-bubble.right.longtop .bold-nail-line1 {
    border-radius: var(--nail-radius);
    border-bottom-right-radius: 0;
}

.bold-nail-bubble.longtop .bold-nail-round {
    top: calc(var(--base-font) * 0.32); /* 7px / 22px ≈ 0.32 */
}
.bold-nail-bubble.longtop .bold-nail-round-inner {
    border-radius: var(--nail-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.bold-nail-bubble.right.longtop .bold-nail-round-inner {
    border-radius: var(--nail-radius);
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
