/* ============================================
   PUBLIC FUNNEL — калькулятор / quiz / sticky CTA / popup
   Светлая премиум-тема в фирменном стиле OCC/WAY
   ============================================ */

:root {
    --pf-purple: #7c3aed;
    --pf-cyan: #06b6d4;
    --pf-grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --pf-bg: #f8fafc;
    --pf-card: #ffffff;
    --pf-text: #0f172a;
    --pf-muted: #64748b;
    --pf-border: #e2e8f0;
}

.kalk-page,
.quiz-page {
    background: var(--pf-bg);
    color: var(--pf-text);
    min-height: 100vh;
}

.kalk-shell, .quiz-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============== KALK HERO ============== */
.kalk-hero {
    padding: 64px 0 32px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 50%, #ecfeff 100%);
    text-align: center;
}
.kalk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(124,58,237,0.10);
    color: #7c3aed;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.kalk-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #0f172a;
}
.kalk-hero-grad {
    background: var(--pf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kalk-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--pf-muted);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.5;
}
.kalk-hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
}
.kalk-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.kalk-hero-trust i { color: #10b981; font-size: 1.05rem; }

/* ============== KALK CALC ============== */
.kalk-calc-wrap { padding: 32px 0 48px; }
.kalk-calc {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .kalk-calc { grid-template-columns: 1fr; gap: 16px; }
}
.kalk-form { display: flex; flex-direction: column; gap: 16px; }

.kalk-step {
    display: flex;
    gap: 14px;
    background: var(--pf-card);
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(15,23,42,0.04);
}
.kalk-step-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--pf-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.kalk-step-body { flex: 1; min-width: 0; }
.kalk-step-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.kalk-step-hint {
    color: var(--pf-muted);
    font-size: 0.84rem;
    margin: 0 0 10px;
}

/* Type cards */
.kalk-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.kalk-type {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 12px 14px;
    background: #f8fafc;
    border: 2px solid var(--pf-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: inherit;
}
.kalk-type i {
    font-size: 1.4rem;
    color: var(--c, #3b82f6);
}
.kalk-type-name { font-size: 0.92rem; font-weight: 700; color: #0f172a; }
.kalk-type-price { font-size: 0.78rem; color: var(--pf-muted); }
.kalk-type:hover {
    border-color: var(--c, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.kalk-type.active {
    background: color-mix(in srgb, var(--c, #3b82f6) 10%, #fff);
    border-color: var(--c, #3b82f6);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--c, #3b82f6) 22%, transparent);
}

/* Area + city row */
.kalk-area-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
@media (max-width: 600px) { .kalk-area-row { grid-template-columns: 1fr; } }
.kalk-area-input label, .kalk-city-input label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.kalk-area-control {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 10px;
}
.kalk-area-btn {
    width: 40px;
    border: 1px solid var(--pf-border);
    background: #fff;
    border-radius: 12px;
    color: #475569;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
}
.kalk-area-btn:hover { background: #f1f5f9; }
.kalk-area-control input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}
.kalk-area-control input:focus {
    outline: 2px solid #7c3aed;
    outline-offset: -1px;
}
input[type="range"]#kalkAreaRange {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: linear-gradient(to right, #7c3aed, #06b6d4);
    border-radius: 999px;
    outline: none;
}
input[type="range"]#kalkAreaRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #7c3aed;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    cursor: pointer;
}
input[type="range"]#kalkAreaRange::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #7c3aed;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    cursor: pointer;
}

.kalk-city-input select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
}

/* Extras */
.kalk-extras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.kalk-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1.5px solid var(--pf-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: inherit;
}
.kalk-extra-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(124,58,237,0.10);
    color: #7c3aed;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.kalk-extra-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kalk-extra-name { font-size: 0.86rem; font-weight: 700; color: #0f172a; }
.kalk-extra-price { font-size: 0.74rem; color: var(--pf-muted); }
.kalk-extra-check {
    width: 22px; height: 22px;
    border-radius: 7px;
    border: 1.5px solid #cbd5e1;
    color: transparent;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.kalk-extra:hover { border-color: #a78bfa; }
.kalk-extra.active {
    background: #faf5ff;
    border-color: #7c3aed;
}
.kalk-extra.active .kalk-extra-check {
    background: var(--pf-grad);
    border-color: transparent;
    color: #fff;
}

/* Result panel */
.kalk-result { position: sticky; top: 24px; }
@media (max-width: 900px) { .kalk-result { position: static; } }
.kalk-result-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--pf-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(15,23,42,0.08);
}
.kalk-result-head {
    display: flex; gap: 12px; align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pf-border);
    margin-bottom: 16px;
}
.kalk-result-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.kalk-result-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pf-muted);
    font-weight: 700;
}
.kalk-result-type { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-top: 2px; }

.kalk-result-amount {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--pf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 4px;
}
.kalk-result-monthly {
    color: var(--pf-muted);
    font-size: 0.84rem;
    margin-bottom: 14px;
}
.kalk-result-monthly span { color: #0f172a; font-weight: 700; }

.kalk-result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.kalk-result-stat {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 12px;
}
.kalk-result-stat-lbl {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--pf-muted);
    font-weight: 600;
    letter-spacing: 0.4px;
}
.kalk-result-stat-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

.kalk-result-breakdown {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    border: 1px dashed var(--pf-border);
}
.kalk-bd-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #475569;
}
.kalk-bd-row strong { color: #0f172a; font-weight: 700; }
.kalk-bd-row--extra { color: #7c3aed; }
.kalk-bd-row--extra strong { color: #6d28d9; }

.kalk-result-cta {
    width: 100%;
    padding: 14px;
    background: var(--pf-grad);
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(124,58,237,0.32);
    transition: transform 0.15s, box-shadow 0.15s;
}
.kalk-result-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(124,58,237,0.42);
}
.kalk-result-cta {
    text-decoration: none;
}
.kalk-result-secondary {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
}
.kalk-result-secondary:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #faf5ff;
}
.kalk-result-trust {
    text-align: center;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--pf-muted);
}
.kalk-result-trust i { color: #10b981; }

/* Why */
.kalk-why { padding: 48px 0; background: #fff; }
.kalk-why-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    text-align: center;
    margin: 0 0 32px;
    color: #0f172a;
}
.kalk-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.kalk-why-card {
    padding: 22px;
    background: #f8fafc;
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    text-align: center;
}
.kalk-why-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}
.kalk-why-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
}
.kalk-why-card p {
    font-size: 0.86rem;
    color: var(--pf-muted);
    margin: 0;
    line-height: 1.5;
}

/* ============== KALK MODAL ============== */
.kalk-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.kalk-modal.is-open { display: flex; }
.kalk-modal-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    max-width: 460px;
    width: 100%;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 80px rgba(15,23,42,0.4);
    text-align: center;
    animation: pfModalIn 0.2s ease-out;
}
@keyframes pfModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.kalk-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border: 0;
    background: #f1f5f9;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.kalk-modal-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: var(--pf-grad);
    color: #fff;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 28px rgba(124,58,237,0.32);
}
.kalk-modal-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 6px;
    color: #0f172a;
}
.kalk-modal-sub {
    color: var(--pf-muted);
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.45;
}
.kalk-modal-field { margin-bottom: 10px; }
.kalk-modal-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--pf-border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.15s;
}
.kalk-modal-field input:focus {
    outline: none;
    background: #fff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.kalk-modal-summary {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 12px 0;
    text-align: left;
}
.kalk-modal-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.85rem;
    color: #475569;
}
.kalk-modal-summary-row strong { color: #7c3aed; font-weight: 800; }
.kalk-modal-submit {
    width: 100%;
    padding: 14px;
    background: var(--pf-grad);
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.15s;
}
.kalk-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,58,237,0.32); }
.kalk-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.kalk-modal-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #b91c1c;
    font-size: 0.84rem;
}
.kalk-modal-disclaimer {
    margin: 12px 0 0;
    font-size: 0.74rem;
    color: var(--pf-muted);
}
.kalk-modal-disclaimer a { color: #7c3aed; text-decoration: none; }

.kalk-modal-success { padding: 12px 0; }
.kalk-modal-success-icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: rgba(16,185,129,0.12);
    color: #10b981;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}
.kalk-modal-success h3 { margin: 0 0 8px; color: #0f172a; font-size: 1.3rem; }
.kalk-modal-success p { color: var(--pf-muted); margin: 0 0 18px; }
.kalk-modal-success-actions { display: flex; justify-content: center; }
.kalk-modal-success-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* ============== QUIZ ============== */
.quiz-hero { padding: 48px 0; }
.quiz-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}
.quiz-progress { margin-bottom: 24px; }
.quiz-progress-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.quiz-progress-fill {
    height: 100%;
    background: var(--pf-grad);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.quiz-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--pf-muted);
}
.quiz-progress-step { color: #7c3aed; font-weight: 700; }

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: pfFadeIn 0.3s; }
@keyframes pfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.quiz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(124,58,237,0.12);
    color: #7c3aed;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.quiz-question {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    margin: 0 0 20px;
    color: #0f172a;
    line-height: 1.25;
}
.quiz-final-sub {
    color: var(--pf-muted);
    margin: 0 0 20px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid var(--pf-border);
    border-radius: 14px;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    font-family: inherit;
}
.quiz-option i { color: #7c3aed; font-size: 1.1rem; }
.quiz-option:hover {
    border-color: #a78bfa;
    background: #faf5ff;
    transform: translateY(-1px);
}
.quiz-option.is-picked {
    background: linear-gradient(135deg, #ede9fe 0%, #ecfeff 100%);
    border-color: #7c3aed;
    box-shadow: 0 6px 18px rgba(124,58,237,0.18);
}

.quiz-final {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-final input {
    padding: 14px 16px;
    border: 1.5px solid var(--pf-border);
    border-radius: 14px;
    font-size: 0.95rem;
    background: #f8fafc;
}
.quiz-final input:focus { outline: none; background: #fff; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.quiz-submit {
    padding: 16px;
    background: var(--pf-grad);
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(124,58,237,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.quiz-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(124,58,237,0.42);
    color: #fff;
}

/* Quiz step 5: registration prompt */
.quiz-final-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 22px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #faf5ff, #ecfeff);
    border-radius: 12px;
    font-size: 0.88rem;
    color: #475569;
}
.quiz-final-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.quiz-final-trust i {
    color: #10b981;
    font-size: 1rem;
}
.quiz-final-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-link-secondary {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
}
.quiz-link-secondary:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #faf5ff;
}

.quiz-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pf-border);
}
.quiz-btn-back {
    padding: 8px 14px;
    background: transparent;
    border: 0;
    color: var(--pf-muted);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.quiz-btn-back:disabled { opacity: 0.4; cursor: default; }
.quiz-btn-back:hover:not(:disabled) { color: #7c3aed; }
.quiz-trust { font-size: 0.78rem; color: var(--pf-muted); }
.quiz-trust i { color: #10b981; }

.quiz-done { text-align: center; padding: 24px 0; }
.quiz-done-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(16,185,129,0.12);
    color: #10b981;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
}
.quiz-done h3 { margin: 0 0 8px; color: #0f172a; font-size: 1.4rem; }
.quiz-done p { color: var(--pf-muted); margin: 0 0 18px; }

/* ============== STICKY CTA BAR ============== */
.sticky-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 998;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
    pointer-events: none;
}
.sticky-cta[data-state="visible"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.sticky-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 12px 16px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 48px rgba(15,23,42,0.32);
    backdrop-filter: blur(12px);
}
.sticky-cta-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.sticky-cta-text {
    flex: 1;
    min-width: 0;
    color: #fff;
}
.sticky-cta-text strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}
.sticky-cta-text span {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.sticky-cta-actions { align-items: center; gap: 6px; flex-shrink: 0; }
.sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.sticky-cta-btn--primary {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 6px 18px rgba(245,158,11,0.4);
}
.sticky-cta-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,158,11,0.5); color: #fff; }
.sticky-cta-btn--dream {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124,58,237,0.4);
}
.sticky-cta-btn--dream:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124,58,237,0.5); color: #fff; }
.sticky-cta-btn--wa {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.sticky-cta-close {
    background: rgba(255,255,255,0.08);
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    flex-shrink: 0;
}
.sticky-cta-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* На мобиле компактим: текст-блок убираем, кнопки в одну строку */
@media (max-width: 720px) {
    .sticky-cta-inner {
        padding: 10px 12px;
        gap: 8px;
    }
    .sticky-cta-text { display: none; }
    .sticky-cta-actions {
        flex: 1;
        justify-content: space-between;
        gap: 6px;
    }
    .sticky-cta-btn {
        padding: 9px 10px;
        font-size: 0.78rem;
        flex: 1;
        justify-content: center;
        gap: 4px;
    }
    .sticky-cta-btn i { font-size: 0.95rem; }
    .sticky-cta-btn--wa {
        flex: 0 0 38px;
    }
}
@media (max-width: 380px) {
    .sticky-cta-btn { font-size: 0.72rem; padding: 8px 6px; }
    .sticky-cta-btn span:not(.sticky-cta-btn-pulse) { display: inline; }
}

/* ============== FLOAT CHAT ============== */
.float-chat {
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 997;
}
.float-chat-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: transform 0.15s;
}
.float-chat-btn:hover { transform: scale(1.08); color: #fff; }
.float-chat-btn-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37,211,102,0.4);
    animation: pfPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes pfPulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    80%, 100% { transform: scale(1.4); opacity: 0; }
}
@media (max-width: 600px) { .float-chat { bottom: 80px; right: 12px; } }

/* ============== EXIT POPUP ============== */
.exit-popup {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.exit-popup.is-open { display: flex; animation: pfFadeBg 0.2s; }
@keyframes pfFadeBg { from { opacity: 0; } to { opacity: 1; } }
.exit-popup-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    max-width: 440px;
    width: 100%;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(15,23,42,0.4);
    animation: pfModalIn 0.25s ease-out;
}
.exit-popup-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border: 0;
    background: #f1f5f9;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.exit-popup-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 28px rgba(245,158,11,0.32);
}
.exit-popup-title { font-size: 1.5rem; font-weight: 900; margin: 0 0 6px; color: #0f172a; }
.exit-popup-sub { color: var(--pf-muted); margin: 0 0 20px; font-size: 0.95rem; line-height: 1.5; }
.exit-popup-sub strong { color: #ef4444; }
.exit-popup-card form { display: flex; flex-direction: column; gap: 10px; }
.exit-popup-card form input {
    padding: 13px 14px;
    border: 1.5px solid var(--pf-border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f8fafc;
}
.exit-popup-card form input:focus { outline: none; border-color: #f59e0b; background: #fff; }
.exit-popup-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 4px 0 0;
    text-align: left;
}
.exit-popup-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    flex-shrink: 0;
}
.exit-popup-consent a {
    color: #4338ca;
    text-decoration: underline;
}
.exit-popup-consent a:hover {
    color: #4f46e5;
}
.exit-popup-submit {
    padding: 14px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(245,158,11,0.36);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.exit-popup-disclaimer { margin: 10px 0 0; font-size: 0.74rem; color: var(--pf-muted); }


/* ============================================
   WORKS PAGES — витрина портфолио по городам
   ============================================ */
.works-page { background: var(--pf-bg); }
.works-hero {
    padding: 56px 0 32px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 50%, #ecfeff 100%);
    text-align: center;
}
.works-hero .kalk-hero-title { margin: 12px 0 16px; }
.works-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.84rem;
    color: var(--pf-muted);
    flex-wrap: wrap;
}
.works-breadcrumb a { color: #7c3aed; text-decoration: none; }
.works-breadcrumb a:hover { text-decoration: underline; }
.works-breadcrumb i { font-size: 0.7rem; color: #94a3b8; }
.works-breadcrumb span { color: #0f172a; font-weight: 600; }

.works-hero-cta { margin-top: 24px; }

.works-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    text-align: center;
    margin: 0 0 26px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.works-section-title i { color: #7c3aed; }

/* CITIES GRID */
.works-cities { padding: 36px 0 16px; background: #fff; }
.works-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.works-city-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--pf-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.works-city-card:hover {
    transform: translateY(-3px);
    border-color: #a78bfa;
    box-shadow: 0 16px 36px rgba(124,58,237,0.18);
}
.works-city-cover {
    height: 160px;
    background: linear-gradient(135deg, #ede9fe, #ecfeff);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.works-city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,0.7) 100%);
}
.works-city-count {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    color: #7c3aed;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.works-city-info {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.works-city-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.works-city-cta {
    color: #7c3aed;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.15s;
}
.works-city-card:hover .works-city-cta { transform: translateX(4px); }

/* WORKS FEED */
.works-feed { padding: 40px 0; background: var(--pf-bg); }
.works-feed-head { text-align: center; margin-bottom: 28px; }
.works-feed-sub { color: var(--pf-muted); margin: 0; font-size: 0.95rem; }
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.works-card {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.works-card:hover {
    transform: translateY(-3px);
    border-color: #c4b5fd;
    box-shadow: 0 14px 32px rgba(15,23,42,0.10);
}
.works-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}
.works-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.works-card:hover .works-card-media img { transform: scale(1.05); }
.works-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #cbd5e1;
}
.works-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: #7c3aed;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.works-card-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15,23,42,0.78);
    color: #fff;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.works-card-body { padding: 16px 18px; }
.works-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
}
.works-card-desc {
    font-size: 0.84rem;
    color: var(--pf-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}
.works-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 10px;
}
.works-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.works-card-meta i { color: #7c3aed; font-size: 0.78rem; }
.works-card-company {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--pf-border);
    font-size: 0.82rem;
    color: #475569;
    font-weight: 600;
}
.works-card-company i { color: #94a3b8; }
.works-card-rating {
    margin-left: auto;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

/* EMPTY */
.works-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed var(--pf-border);
    border-radius: 22px;
}
.works-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 14px;
    display: inline-block;
}
.works-empty h3 { margin: 0 0 8px; color: #0f172a; font-size: 1.3rem; }
.works-empty p {
    color: var(--pf-muted);
    max-width: 480px;
    margin: 0 auto 22px;
    line-height: 1.55;
}

/* CTA SECTION */
.works-cta-section { padding: 56px 0 80px; }
.works-cta-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #0f172a 100%);
    color: #fff;
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(76,29,149,0.32);
    position: relative;
    overflow: hidden;
}
.works-cta-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.4), transparent 60%);
    pointer-events: none;
}
.works-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    margin: 0 0 8px;
    position: relative;
}
.works-cta-sub {
    color: rgba(255,255,255,0.78);
    margin: 0 0 24px;
    font-size: 1rem;
    position: relative;
}
.works-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   LIVE FEED — социальное доказательство
   ============================================ */
.live-feed-toast {
    position: fixed;
    left: 16px;
    bottom: 100px;
    z-index: 996;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.16);
    backdrop-filter: blur(12px);
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s;
}
.live-feed-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.live-feed-toast-icon {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.live-feed-toast-text {
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.3;
    color: #0f172a;
}
.live-feed-toast-text strong { color: #7c3aed; }
.live-feed-toast-text small {
    display: block;
    color: var(--pf-muted);
    font-size: 0.74rem;
    margin-top: 2px;
}
.live-feed-toast-close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .live-feed-toast { left: 12px; right: 12px; max-width: none; bottom: 90px; }
}
