.te-fast-contact,
.te-fast-contact *,
.te-modal-backdrop,
.te-modal-backdrop *{
    box-sizing:border-box;
}

.te-fast-contact{
    --te-blue:var(--ks27ph-button,var(--ks27-button,#0057b8));
    --te-link:var(--ks27ph-link,var(--ks27-link,#0ea5e9));
    --te-text:var(--ks27ph-button-text,var(--ks27-button-text,#ffffff));
    --te-glow:var(--ks27ph-button-glow,var(--ks27-button-glow,rgba(0,87,184,.34)));
    position:fixed;
    right:22px;
    bottom:104px;
    z-index:99990;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
    font-family:Arial,Helvetica,sans-serif;
}

.te-fast-btn{
    position:relative;
    width:54px;
    min-width:54px;
    max-width:54px;
    height:54px;
    padding:0;
    border:0;
    outline:0;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    color:#fff;
    text-decoration:none;
    cursor:pointer;
    font-size:14px;
    font-weight:950;
    overflow:visible;
    isolation:isolate;
    box-shadow:0 16px 36px rgba(0,0,0,.26);
    transition:width .28s ease,max-width .28s ease,transform .22s ease,box-shadow .22s ease,filter .22s ease;
    animation:teFloatSoft 3s ease-in-out infinite;
}

.te-fast-btn::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    z-index:0;
    background:inherit;
}

.te-fast-btn::after{
    content:"";
    position:absolute;
    inset:-7px;
    z-index:-2;
    border-radius:999px;
    opacity:.34;
    background:inherit;
    filter:blur(2px);
    animation:teWaveRing 2.4s ease-out infinite;
}

.te-fast-wave{
    position:absolute;
    inset:-14px;
    z-index:-3;
    border-radius:999px;
    border:1px solid rgba(14,165,233,.38);
    opacity:0;
    animation:teOuterWave 2.8s ease-out infinite;
}

.te-fast-spark{
    position:absolute;
    inset:0;
    z-index:1;
    border-radius:inherit;
    overflow:hidden;
}

.te-fast-spark::before{
    content:"";
    position:absolute;
    top:-35%;
    left:-80%;
    width:70%;
    height:170%;
    background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.46) 48%,transparent 100%);
    transform:rotate(18deg);
    animation:teShine 3.8s ease-in-out infinite;
}

.te-fast-btn:hover,
.te-fast-btn:focus-visible{
    width:168px;
    max-width:168px;
    color:#fff;
    text-decoration:none;
    transform:translateX(-4px) scale(1.02);
    box-shadow:0 20px 46px rgba(0,0,0,.34),0 0 28px var(--te-glow);
    filter:saturate(1.18);
}

.te-fast-ico{
    position:relative;
    z-index:2;
    width:54px;
    height:54px;
    min-width:54px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:rgba(255,255,255,.16);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);
}

.te-fast-ico svg{
    width:21px;
    height:21px;
    fill:currentColor;
}

.te-fast-label{
    position:relative;
    z-index:2;
    width:0;
    opacity:0;
    transform:translateX(10px);
    white-space:nowrap;
    overflow:hidden;
    color:#fff;
    text-align:left;
    transition:opacity .22s ease,transform .22s ease,width .22s ease;
}

.te-fast-btn:hover .te-fast-label,
.te-fast-btn:focus-visible .te-fast-label{
    width:88px;
    opacity:1;
    transform:translateX(0);
}

.te-fast-phone{background:linear-gradient(135deg,var(--te-link),var(--te-blue));}
.te-fast-wa{background:linear-gradient(135deg,#22c55e,#128c7e);animation-delay:.16s;}
.te-fast-ig{background:linear-gradient(135deg,#f97316,#e11d48,#7c3aed);animation-delay:.32s;}
.te-fast-form{background:linear-gradient(135deg,var(--te-blue),#7c3aed);animation-delay:.48s;}

@keyframes teFloatSoft{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes teWaveRing{0%{transform:scale(.84);opacity:.34}70%,100%{transform:scale(1.22);opacity:0}}
@keyframes teOuterWave{0%{transform:scale(.74);opacity:.34}72%,100%{transform:scale(1.28);opacity:0}}
@keyframes teShine{0%,44%{left:-90%;opacity:0}50%{opacity:.65}62%,100%{left:120%;opacity:0}}

.te-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:none;
    align-items:flex-start;
    justify-content:center;
    padding:calc(var(--ks27ph-header-h,82px) + 18px) 14px 18px;
    background:rgba(3,10,24,.82);
    backdrop-filter:blur(13px);
    -webkit-backdrop-filter:blur(13px);
    font-family:Arial,Helvetica,sans-serif;
    overflow-y:auto;
    overscroll-behavior:contain;
}

.te-modal-backdrop.is-open{
    display:flex;
}

.te-modal-card{
    position:relative;
    width:min(520px,100%);
    max-height:calc(100dvh - var(--ks27ph-header-h,82px) - 36px);
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:22px;
    padding:14px;
    background:
        radial-gradient(circle at top left,rgba(14,165,233,.18),transparent 35%),
        linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
    color:#0f172a;
    border:1px solid rgba(255,255,255,.82);
    box-shadow:0 30px 90px rgba(0,0,0,.46);
    animation:teModalPop .26s ease both;
}

@keyframes teModalPop{
    from{opacity:0;transform:translateY(14px) scale(.97)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

.te-modal-close{
    position:absolute;
    top:10px;
    right:10px;
    width:34px;
    height:34px;
    border:0;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    font-size:24px;
    font-weight:900;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 24px rgba(15,23,42,.25);
}

.te-modal-title-row{
    display:flex;
    align-items:center;
    gap:10px;
    padding-right:40px;
    margin-bottom:10px;
}

.te-modal-icon{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:linear-gradient(135deg,#0ea5e9,#22c55e);
    box-shadow:0 12px 26px rgba(14,165,233,.26);
    animation:teIconPulse 2.2s ease-in-out infinite;
}

@keyframes teIconPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.055)}}

.te-modal-icon svg{
    width:22px;
    height:22px;
    fill:currentColor;
}

.te-modal-title-row h3{
    margin:0 0 3px;
    color:#0f172a;
    font-size:20px;
    line-height:1.12;
    font-weight:950;
    letter-spacing:-.35px;
}

.te-modal-title-row p{
    margin:0;
    color:#64748b;
    font-size:12px;
    line-height:1.35;
    font-weight:750;
}

.te-offer-form{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.te-form-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}

.te-field{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.te-field label{
    color:#111827;
    font-size:12px;
    line-height:1.2;
    font-weight:950;
}

.te-field input,
.te-field textarea{
    width:100%;
    border:1px solid #d9e4f0;
    outline:0;
    border-radius:12px;
    background:#fff;
    color:#0f172a;
    padding:9px 10px;
    font-size:12.5px;
    line-height:1.3;
    font-weight:750;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.te-field input{
    height:38px;
}

.te-field textarea{
    min-height:52px;
    resize:vertical;
}

.te-field input:focus,
.te-field textarea:focus{
    border-color:#0ea5e9;
    box-shadow:0 0 0 3px rgba(14,165,233,.12);
}

.te-mini-block{
    padding:9px;
    border-radius:16px;
    background:linear-gradient(180deg,#ffffff,#f3f8ff);
    border:1px solid #dde8f5;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.te-mini-block.te-focus-pulse{
    animation:teFocusPulse .72s ease both;
    border-color:rgba(14,165,233,.55);
    box-shadow:0 0 0 4px rgba(14,165,233,.13),0 14px 34px rgba(14,165,233,.12);
}

@keyframes teFocusPulse{0%{transform:scale(.985)}45%{transform:scale(1.015)}100%{transform:scale(1)}}

.te-mini-title{
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin-bottom:8px;
}

.te-mini-title > span{
    width:27px;
    height:27px;
    min-width:27px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:linear-gradient(135deg,#0ea5e9,#2563eb);
    font-size:12.5px;
    font-weight:950;
}

.te-mini-title strong{
    display:block;
    color:#0f172a;
    font-size:13px;
    font-weight:950;
}

.te-mini-title small{
    display:block;
    margin-top:1px;
    color:#64748b;
    font-size:11px;
    line-height:1.3;
    font-weight:750;
}

.te-service-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
}

.te-service-option{
    min-height:35px;
    padding:7px 8px;
    border-radius:12px;
    border:1px solid #e0e8f2;
    background:linear-gradient(180deg,#f8fbff,#eef4fb);
    color:#1e293b;
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.te-service-option:hover{
    transform:translateY(-1px);
    border-color:rgba(14,165,233,.45);
}

.te-service-option input{
    width:15px;
    height:15px;
    min-width:15px;
    accent-color:#0ea5e9;
}

.te-service-option span{
    font-size:12px;
    font-weight:950;
}

.te-service-option.te-is-checked,
.te-service-option:has(input:checked){
    background:linear-gradient(135deg,rgba(14,165,233,.14),rgba(34,197,94,.10));
    border-color:rgba(14,165,233,.58);
    box-shadow:0 10px 22px rgba(14,165,233,.11);
}

.te-sub-service-list{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.te-sub-group{
    padding:8px;
    border-radius:13px;
    background:#fff;
    border:1px solid #e0e8f2;
}

.te-sub-group-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:#0f172a;
    font-size:12px;
    font-weight:950;
    margin-bottom:6px;
}

.te-sub-group-title span{
    color:#0ea5e9;
    white-space:nowrap;
}

.te-sub-options{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}

.te-sub-option{
    position:relative;
    display:inline-flex;
    align-items:center;
    cursor:pointer;
}

.te-sub-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.te-sub-option span{
    min-height:28px;
    padding:6px 8px;
    border-radius:999px;
    color:#334155;
    background:#f1f5f9;
    border:1px solid #dbe6f3;
    font-size:11.3px;
    font-weight:900;
    transition:.2s ease;
}

.te-sub-option input:checked + span{
    color:#fff;
    background:linear-gradient(135deg,#0ea5e9,#2563eb);
    border-color:transparent;
    box-shadow:0 8px 18px rgba(14,165,233,.16);
}

.te-location-wrap{
    display:grid;
    grid-template-columns:142px 1fr;
    align-items:center;
    gap:8px;
    padding:8px;
    border-radius:13px;
    background:linear-gradient(180deg,#f8fbff,#eef4fb);
    border:1px solid #dfe9f4;
}

.te-location-btn{
    height:38px;
    border:0;
    border-radius:12px;
    color:#fff;
    cursor:pointer;
    font-size:12px;
    font-weight:950;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    background:linear-gradient(135deg,#0f766e,#0ea5e9);
    box-shadow:0 10px 20px rgba(14,165,233,.20);
}

.te-location-btn svg{
    width:15px;
    height:15px;
    fill:currentColor;
}

.te-location-text{
    color:#475569;
    font-size:11.3px;
    line-height:1.35;
    font-weight:800;
    overflow-wrap:anywhere;
}

.te-location-text a{
    color:#0ea5e9;
    font-weight:950;
    text-decoration:underline;
}

.te-note-field{
    margin-top:7px;
}

.te-submit-btn{
    min-height:44px;
    border:0;
    border-radius:14px;
    color:#fff;
    background:linear-gradient(135deg,#22c55e,#128c7e);
    box-shadow:0 14px 28px rgba(34,197,94,.24);
    cursor:pointer;
    font-size:13.5px;
    font-weight:950;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    animation:teSubmitPulse 2.3s ease-in-out infinite;
}

.te-submit-btn svg{
    width:17px;
    height:17px;
    fill:currentColor;
}

@keyframes teSubmitPulse{
    0%,100%{transform:scale(1);box-shadow:0 14px 28px rgba(34,197,94,.22)}
    50%{transform:scale(1.012);box-shadow:0 18px 38px rgba(34,197,94,.32)}
}

@media(max-width:768px){
    .te-fast-contact{
        right:12px;
        bottom:92px;
        gap:9px;
    }

    .te-fast-btn,
    .te-fast-btn:hover,
    .te-fast-btn:focus-visible{
        width:50px;
        min-width:50px;
        max-width:50px;
        height:50px;
        padding:0;
        justify-content:center;
        transform:none;
    }

    .te-fast-ico{
        width:50px;
        height:50px;
        min-width:50px;
    }

    .te-fast-label{
        display:none;
    }

    .te-modal-backdrop{
        z-index:2147483000;
        padding:calc(var(--ks27ph-header-h,66px) + 8px) 7px 8px;
        align-items:flex-start;
    }

    .te-modal-card{
        width:100%;
        max-height:calc(100dvh - var(--ks27ph-header-h,66px) - 16px);
        border-radius:19px;
        padding:12px 9px 9px;
    }

    .te-modal-close{
        width:34px;
        height:34px;
        top:8px;
        right:8px;
    }

    .te-modal-title-row{
        gap:8px;
        padding-right:38px;
        margin-bottom:10px;
    }

    .te-modal-icon{
        width:40px;
        height:40px;
        min-width:40px;
        border-radius:13px;
    }

    .te-modal-title-row h3{
        font-size:18px;
    }

    .te-modal-title-row p{
        font-size:11.7px;
    }

    .te-form-row,
    .te-location-wrap{
        grid-template-columns:1fr;
    }

    .te-service-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:6px;
    }

    .te-mini-block{
        padding:9px;
        border-radius:15px;
    }

    .te-mini-title > span{
        width:26px;
        height:26px;
        min-width:26px;
        font-size:12px;
    }

    .te-field input{
        height:39px;
    }

    .te-field textarea{
        min-height:54px;
    }

    .te-service-option{
        min-height:36px;
        padding:7px 8px;
    }

    .te-service-option span{
        font-size:11.8px;
    }

    .te-sub-options{
        gap:5px;
    }

    .te-sub-option span{
        min-height:29px;
        font-size:11.3px;
        padding:7px 8px;
    }

    .te-location-btn,
    .te-submit-btn{
        width:100%;
    }

    .te-submit-btn{
        min-height:44px;
        font-size:13.5px;
    }
}

@media(max-width:420px){
    .te-modal-card{
        padding:11px 8px 8px;
    }

    .te-service-grid{
        grid-template-columns:1fr;
    }

    .te-modal-title-row h3{
        font-size:17px;
    }
}
