/* Плавающие контакты — фикс справа внизу, цвета сайта */
.barkli-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: "Isabella Sans", sans-serif;
    pointer-events: none;
}

.barkli-fab > * {
    pointer-events: auto;
}

.barkli-fab__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.barkli-fab.is-open .barkli-fab__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}




.barkli-fab__main,
.barkli-fab__action {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 1);
    background: #0e2b42;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.barkli-fab__main:hover,
.barkli-fab__action:hover {
    background: #153a58;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

.barkli-fab__main:active,
.barkli-fab__action:active {
    transform: scale(0.96);
}

.barkli-fab__main {
    width: 56px;
    height: 56px;
}

.barkli-fab__main svg {
    transition: transform 0.2s ease;
}

.barkli-fab.is-open .barkli-fab__icon-open {
    display: none;
}

.barkli-fab.is-open .barkli-fab__icon-close {
    display: block;
}

.barkli-fab:not(.is-open) .barkli-fab__icon-close {
    display: none;
}

.barkli-fab:not(.is-open) .barkli-fab__icon-open {
    display: block;
}

.barkli-fab__action svg {
    width: 22px;
    height: 22px;
}

.barkli-fab__main svg {
    width: 24px;
    height: 24px;
}

/* Попап заявки в Fancybox — тёмно-синий, как на главной */
.fancybox__container .popup-form {
    background: linear-gradient(165deg, #122b44 0%, #0e2b42 55%, #0a1f32 100%);
    border: 1px solid rgba(212, 191, 161, 0.35);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color: rgba(246, 241, 232, 0.92);
    font-family: "Isabella Sans", sans-serif;
    padding: 20px;
    border-radius: 12px;
    width: min(420px, 90vw);
    text-align: left;
}

.fancybox__container .popup-form h3 {
    font-size: 22px;
    color: #d4bfa1;
    font-family: "SangBleu Sunrise", serif;
    margin-bottom: 10px;
}

.fancybox__container .popup-form .popup-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 20px;
}

.fancybox__container .popup-form .popup-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 191, 161, 0.45);
    border-radius: 6px;
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.fancybox__container .popup-form .popup-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.fancybox__container .popup-form .popup-input:focus {
    outline: none;
    border-color: #d4bfa1;
    background: rgba(255, 255, 255, 0.1);
}

.fancybox__container .popup-form .popup-privacy {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    gap: 8px;
    margin-bottom: 20px;
}

.fancybox__container .popup-form .popup-privacy a {
    color: #d4bfa1;
    text-decoration: underline;
}

.fancybox__container .popup-form .popup-status {
    display: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.fancybox__container .popup-form .btn-send {
    background: #d4bfa1;
    color: #0e2b42;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: 0.3s ease;
    font-weight: 600;
}

.fancybox__container .popup-form .btn-send:hover {
    background: #e5d4bc;
    color: #0e2b42;
}

.fancybox__container:has(.popup-form) {
    --fancybox-bg: rgba(10, 34, 53, 0.72);
}

@media (max-width: 480px) {
    .barkli-fab__main,
    .barkli-fab__action {
        width: 48px;
        height: 48px;
    }

    .barkli-fab__main {
        width: 52px;
        height: 52px;
    }
}
