#cookie-banner{
    right:calc(24px + var(--sp-scrollbar-width));
    left:auto;
    transform:translateY(20px);
}
html.sp-menu-open #mobile-sticky-panel{
    right:calc(10px + var(--sp-scrollbar-width));
    max-width:calc(100vw - 20px - var(--sp-scrollbar-width));
}

#cookie-banner{
    position:fixed;
    bottom:24px;
    right:24px;
    left:auto;
    transform:translateY(20px);
    max-width:420px;
    width:calc(100vw - 48px);
    background:#fff;
    border-radius:20px;
    box-shadow:0 8px 40px rgba(0,0,0,.14),0 2px 8px rgba(0,0,0,.06);
    z-index:999999;
    display:none;
    opacity:0;
    overflow:hidden;
    transition:opacity .4s ease,transform .4s ease;
    box-sizing:border-box;
    pointer-events:none;
}
#cookie-banner.show{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
}
.cookie-strip{
    height:3px;
    background:linear-gradient(90deg, var(--gold), var(--accent));
}
.cookie-inner{
    padding:20px 24px 24px;
}
.cookie-head{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}
.cookie-icon{
    flex-shrink:0;
    width:40px;
    height:40px;
    border-radius:12px;
    background:linear-gradient(135deg, rgba(184,148,95,0.15), rgba(184,148,95,0.05));
    border:1px solid rgba(184,148,95,0.2);
    display:flex;
    align-items:center;
    justify-content:center;
}
.cookie-icon svg{
    width:20px;
    height:20px;
}
.cookie-icon svg rect, .cookie-icon svg path, .cookie-icon svg circle{
    stroke:var(--accent);
}
.cookie-icon svg circle{
    fill:var(--accent);
}
.cookie-title{
    font-size:15px;
    font-weight:800;
    color:var(--accent);
    line-height:1.2;
}
.cookie-body{
    font-size:13px;
    color:var(--text2);
    line-height:1.6;
    margin-bottom:18px;
}
.cookie-body a{
    color:var(--gold);
    font-weight:600;
    text-decoration:none;
}
.cookie-btn-accept{
    width:100%;
    padding:13px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg, var(--accent), var(--accent2));
    color:#fff;
    font-weight:800;
    font-size:14px;
    cursor:pointer;
    transition:opacity .25s;
    font-family:'Inter', sans-serif;
}
.cookie-btn-accept:hover{
    opacity:.85;
}

#mobile-sticky-panel{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:999998;
    display:none;
    flex-direction:column;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 32px rgba(0,0,0,.18);
    transform:translateY(110px);
    opacity:0;
    transition:transform .5s cubic-bezier(.16,1,.3,1),opacity .5s ease;
    box-sizing:border-box;
    width:auto;
    max-width:calc(100vw - 20px);
    pointer-events:none;
}
#mobile-sticky-panel.visible{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
}
.sticky-form{
    max-height:0;
    overflow:hidden;
    background:#fff;
    transition:max-height .45s cubic-bezier(.16,1,.3,1);
}
.sticky-form.open{
    max-height:500px;
}
.sticky-form__inner{
    padding:20px 18px 16px;
    border-bottom:1px solid #f0f2f5;
}
.sticky-form__top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}
.sticky-form__title{
    font-size:14px;
    font-weight:800;
    color:var(--accent);
    line-height:1.3;
    text-align:center;
}
.sticky-form__close{
    width:28px;
    height:28px;
    border:none;
    border-radius:50%;
    background:#f3f4f6;
    cursor:pointer;
    font-size:18px;
    color:#9ca3af;
}
.sticky-form__input{
    width:100%;
    padding:13px 16px;
    border:1.5px solid #e5e7eb;
    border-radius:12px;
    font-size:16px;
    box-sizing:border-box;
    margin-bottom:12px;
    outline:none;
    transition:.2s;
}
.sticky-form__input:focus{
    border-color:var(--gold);
}
.sticky-form__input.error{
    border-color:#ef4444;
    box-shadow:0 0 0 3px rgba(239,68,68,.12);
}
.sticky-form__consent{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:14px;
    font-size:11px;
    line-height:1.45;
    color:var(--text2);
}
.sticky-form__consent input{
    margin-top:2px;
    flex-shrink:0;
    accent-color:var(--accent);
}
.sticky-form__consent a{
    color:var(--gold);
    text-decoration:none;
    font-weight:600;
}
.sticky-form__consent.error{
    color:#ef4444;
}
.sticky-form__submit{
    width:100%;
    padding:13px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg, var(--accent), var(--accent2));
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    font-family:'Inter', sans-serif;
}
.sticky-form__submit:disabled{
    opacity:.6;
    cursor:not-allowed;
}
.sticky-form__success{
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:30px 20px;
    text-align:center;
    background:#fff;
}
.sticky-form__success-title{
    font-size:15px;
    font-weight:800;
    color:var(--accent);
    margin-bottom:6px;
}
.sticky-form__success-sub{
    font-size:13px;
    color:var(--text2);
}
.sticky-wrap{
    display:flex;
    background:var(--accent);
}
.sticky-btn{
    flex:1;
    border:none;
    text-decoration:none;
    color:#fff;
    padding:14px 8px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    cursor:pointer;
    font-family:'Inter', sans-serif;
}
.sticky-btn--call{
    background:var(--accent);
    border-right:1px solid rgba(255,255,255,0.1);
}
.sticky-btn--calc{
    background:var(--gold);
}
.sticky-btn--msg{
    background:var(--accent2);
}
.sticky-btn svg{
    width:14px;
    height:14px;
    fill:currentColor;
}
.sp-hp{
    position:absolute;
    left:-9999px;
    opacity:0;
    pointer-events:none;
}
.custom-alert{
    position:fixed;
    left:50%;
    bottom:120px;
    transform:translateX(-50%);
    background:#111827;
    color:#fff;
    padding:14px 18px;
    border-radius:14px;
    font-size:13px;
    font-weight:700;
    z-index:9999999;
    opacity:0;
    pointer-events:none;
    transition:.25s;
    max-width:92vw;
    text-align:center;
    box-sizing:border-box;
}
.custom-alert.show{
    opacity:1;
}
@media(max-width:768px){
    #cookie-banner{
        left:50%;
        right:auto;
        transform:translateX(-50%) translateY(20px);
        width:92vw;
        max-width:480px;
    }
    #cookie-banner.show{
        transform:translateX(-50%) translateY(0);
    }
    html.sp-menu-open #cookie-banner{
        left:calc(50% - var(--sp-scrollbar-width) / 2);
        right:auto;
    }
    .sticky-btn--call .sticky-btn-text,
    .sticky-btn--msg .sticky-btn-text{
        display:none;
    }
    .sticky-btn svg{
        width:18px;
        height:18px;
    }
}
@media(min-width:769px){
    #mobile-sticky-panel{
        display:none!important;
    }
}


.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 25, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.modal-window {
    position: relative;
    width: 92%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 26px 24px 22px;
    box-shadow: 0 25px 50px rgba(26, 25, 23, 0.2);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(42, 63, 51, 0.06);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #5c564d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: rgba(42, 63, 51, 0.12);
    color: #2a3f33;
}
.modal-header {
    text-align: center;
    margin-bottom: 20px;
}
.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(42, 63, 51, 0.08), rgba(184, 148, 95, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #2a3f33;
}
.modal-title,
body.etrn-page #consultModal h2.modal-title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #2a3f33;
    margin: 0;
    line-height: 1.22;
}
.input-group {
    margin-bottom: 16px;
}
.modal-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.94rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #ddd5c8;
    border-radius: 14px;
    background: #f8f6f1;
    transition: all 0.2s ease;
    outline: none;
    color: #1a1917;
}
.modal-input:focus {
    border-color: #b8945f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 148, 95, 0.1);
}
.modal-input.error {
    border-color: #dc2626;
    background: #fff5f5;
}
.modal-error {
    display: none;
    color: #dc2626;
    font-size: 0.68rem;
    margin-top: 5px;
    margin-left: 4px;
    font-weight: 500;
}
.consent-error {
    text-align: center;
    margin-bottom: 12px;
}
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 16px;
    cursor: pointer;
}
.checkbox-row input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2a3f33;
    cursor: pointer;
}
.checkbox-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #5c564d;
}
.checkbox-text a {
    color: #b8945f;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(184, 148, 95, 0.3);
}
.checkbox-text a:hover {
    border-bottom-color: #b8945f;
}
.modal-submit {
    width: 100%;
    padding: 16px 20px;
    background: #cbd5e1;
    color: #6b7280;
    border: none;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
    cursor: not-allowed;
    transition: all 0.25s ease;
    margin-top: 8px;
}
.modal-submit.active {
    background: linear-gradient(135deg, #2a3f33, #3d5c4a);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(42, 63, 51, 0.25);
}
.modal-submit.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 63, 51, 0.3);
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ddd5c8;
    font-size: 0.7rem;
    color: #5c564d;
    text-align: center;
}
.modal-footer svg {
    flex-shrink: 0;
    color: #b8945f;
    stroke: currentColor;
}
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}
@media (max-width: 520px) {
    .modal-window {
        padding: 28px 20px 24px;
    }
    .modal-title {
        font-size: 1.4rem;
    }
    .modal-input {
        padding: 14px 16px;
    }
    .modal-submit {
        padding: 14px 18px;
    }
    .checkbox-text {
        font-size: 0.72rem;
    }
}


.sticky-btn--calc .sticky-btn-text {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.06em;
}
@media (max-width: 768px) {
    .sticky-btn--calc .sticky-btn-text {
        font-size: 10px;
    }
