body[data-disable-copy="1"],
body[data-disable-copy="1"] * {
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.site-debug-guard {
    position: fixed;
    inset: 0;
    display: none;
    padding: 24px;
    overflow: auto;
    z-index: 2147483647;
    color: #ffb4b4;
    font-family: Consolas, Monaco, "Courier New", monospace;
    background:
        radial-gradient(circle at top left, rgba(120, 0, 0, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(16, 18, 27, 0.98), rgba(7, 8, 13, 0.995));
}

.site-debug-guard.is-visible {
    display: block;
    animation: site-debug-guard-flicker 0.18s steps(2, end) 4;
}

.site-debug-guard__window {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(255, 92, 92, 0.28);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: rgba(15, 17, 26, 0.94);
}

.site-debug-guard.is-glitching .site-debug-guard__window {
    animation: site-debug-guard-shake 0.22s linear 3;
}

.site-debug-guard__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffd7d7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-debug-guard__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.site-debug-guard__status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 71, 71, 0.8);
    background: #ff4747;
}

.site-debug-guard__title {
    margin: 0 0 14px;
    color: #ffe1e1;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.18;
}

.site-debug-guard__desc {
    margin: 0 0 16px;
    color: #ffc6c6;
    font-size: 14px;
    line-height: 1.7;
}

.site-debug-guard__stack {
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 14px;
    color: #ff9d9d;
    font-size: 13px;
    line-height: 1.72;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.34);
}

.site-debug-guard__hint {
    margin-top: 14px;
    color: #ff8686;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.9;
}

body.is-debug-guard-active {
    overflow: hidden !important;
}

body.is-debug-guard-active > :not(.site-debug-guard):not(#ai-chat-wrapper) {
    filter: blur(6px) saturate(0.7);
    pointer-events: none !important;
}

@keyframes site-debug-guard-flicker {
    0% {
        opacity: 0.88;
    }

    100% {
        opacity: 1;
    }
}

@keyframes site-debug-guard-shake {
    0% {
        transform: translate3d(0, 0, 0);
    }

    20% {
        transform: translate3d(-4px, 1px, 0);
    }

    40% {
        transform: translate3d(5px, -2px, 0);
    }

    60% {
        transform: translate3d(-3px, 2px, 0);
    }

    80% {
        transform: translate3d(4px, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.site-contact-popup-inline {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    z-index: 2147483000;
    transition: opacity 0.22s ease;
}

.site-contact-popup-inline.is-open {
    opacity: 1;
    pointer-events: auto;
}

.site-contact-popup-inline__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 24, 0.62);
    backdrop-filter: blur(5px);
}

.site-contact-popup-inline__dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(18, 49, 59, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(7, 24, 34, 0.2);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.1), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.22s ease;
}

.site-contact-popup-inline.is-open .site-contact-popup-inline__dialog {
    transform: translateY(0) scale(1);
}

.site-contact-popup-inline__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #15333a;
    cursor: pointer;
    background: rgba(21, 51, 58, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-contact-popup-inline__close:hover {
    background: rgba(21, 51, 58, 0.14);
    transform: rotate(90deg);
}

.site-contact-popup-inline__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

.site-contact-popup-inline__dialog h2 {
    margin: 0 0 8px;
    color: #15333a;
    font-size: 26px;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.site-contact-popup-inline__desc {
    max-width: 500px;
    margin: 0 0 18px;
    color: #5c7980;
    font-size: 14px;
    line-height: 1.65;
}

.site-contact-popup-inline__alert {
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.site-contact-popup-inline__alert--success {
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.14);
    background: #f0fdf4;
}

.site-contact-popup-inline__alert--error {
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.14);
    background: #fef2f2;
}

.site-contact-popup-inline__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.site-contact-popup-inline__field {
    display: block;
    margin-bottom: 12px;
}

.site-contact-popup-inline__field span {
    display: block;
    margin-bottom: 8px;
    color: #15333a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-contact-popup-inline__field input,
.site-contact-popup-inline__field textarea {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1px solid #d6e3e6;
    border-radius: 16px;
    outline: 0;
    color: #15333a;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-contact-popup-inline__field input::placeholder,
.site-contact-popup-inline__field textarea::placeholder {
    color: #88a0a6;
}

.site-contact-popup-inline__field input:focus,
.site-contact-popup-inline__field textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    background: #fcffff;
}

.site-contact-popup-inline__field textarea {
    min-height: 120px;
    resize: vertical;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a949a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 16px;
    background-size: 18px 18px;
}

.site-contact-popup-inline__field small {
    display: none;
}

.site-contact-popup-inline__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.site-contact-popup-inline__submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.site-contact-popup-inline__submit:hover {
    filter: brightness(1.04);
}

.site-contact-popup-inline__field:nth-child(1) input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a949a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 50%;
    background-size: 18px 18px;
}

.site-contact-popup-inline__field:nth-child(2) input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a949a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.89.33 1.76.63 2.6a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6 6l1.48-1.29a2 2 0 0 1 2.11-.45c.84.3 1.71.51 2.6.63A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 50%;
    background-size: 18px 18px;
}

.site-contact-popup-inline__grid + .site-contact-popup-inline__grid .site-contact-popup-inline__field:nth-child(1) input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a949a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l8 6 8-6'/%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 50%;
    background-size: 18px 18px;
}

.site-contact-popup-inline__grid + .site-contact-popup-inline__grid .site-contact-popup-inline__field:nth-child(2) input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237a949a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 50%;
    background-size: 18px 18px;
}

body.is-contact-popup-inline-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .site-contact-popup-inline__dialog {
        padding: 18px;
        border-radius: 22px;
    }

    .site-contact-popup-inline__dialog h2 {
        font-size: 22px;
    }

    .site-contact-popup-inline__desc {
        font-size: 13px;
    }

    .site-contact-popup-inline__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
