/* =========================================
   КАЛЬКУЛЯТОР СТИЛІ (Глобальні для сторінки)
   ========================================= */
.hero-section {
    padding-bottom: 40px;
}

.range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    background: rgba(253, 251, 237, 0.1);
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--z-yellow);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.4);
    transition: transform 0.2s ease;
}

.range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--z-yellow);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.4);
    transition: transform 0.2s ease;
}

.range::-moz-range-thumb:hover { transform: scale(1.15); }

.receipt-row span { font-size: 0.9rem; }
.x-small { font-size: 0.75rem; }

.switch {
    width: 3.5rem !important;
    height: 1.75rem !important;
    background-color: rgba(253, 251, 237, 0.1) !important;
    border-color: rgba(253, 251, 237, 0.2) !important;
    cursor: pointer;
}

.switch:checked {
    background-color: var(--z-yellow) !important;
    border-color: var(--z-yellow) !important;
}

.input {
    background: rgba(253, 251, 237, 0.05);
    border: 1px solid rgba(253, 251, 237, 0.1);
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Codec Pro', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.input:focus { border-color: var(--z-yellow); }
.bg-dark-green { background-color: #0d1a10; }

/* =========================================
   КАЛЬКУЛЯТОР: WIZARD & COMPONENTS
   ========================================= */
.calc-wizard {
    padding: clamp(24px, 4vw, 48px);
}

.calc-wizard:hover, .calc-receipt:hover {
    transform: none;
}

/* Прогрес бар */
.calc-progress-wrapper .progress {
    height: 8px;
    background-color: rgba(253, 251, 237, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--z-yellow);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.progress-text {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-weight: 700;
}

.progress-pct {
    font-family: 'Benzin', sans-serif;
    color: var(--z-yellow);
}

/* Кроки та пресети */
.wizard-step {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.presets-title {
    font-family: 'Benzin', sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    background: rgba(253, 251, 237, 0.03);
    border: 1px solid rgba(253, 251, 237, 0.1);
    color: rgba(253, 251, 237, 0.7);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Codec Pro', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.preset-btn:hover {
    background: rgba(253, 251, 237, 0.1);
    color: #ffffff;
}

.preset-btn.active {
    background: rgba(255, 230, 0, 0.1);
    border-color: var(--z-yellow);
    color: var(--z-yellow);
}

.border-bottom-dashed { border-bottom: 1px dashed rgba(253, 251, 237, 0.15); }
.border-top-dashed { border-top: 1px dashed rgba(253, 251, 237, 0.15); }

/* Слайдери */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label {
    font-family: 'Codec Pro', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(16px, 1.5vw, 20px);
    margin: 0;
}

.slider-val-box {
    background: rgba(20, 36, 23, 0.8);
    border: 1px solid rgba(253, 251, 237, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 120px;
    text-align: right;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-val {
    font-family: 'Benzin', sans-serif;
    color: var(--z-yellow);
    font-size: clamp(20px, 2vw, 28px);
}

.slider-unit {
    color: rgba(253, 251, 237, 0.5);
    font-family: 'Codec Pro', sans-serif;
    font-weight: 700;
    margin-left: 4px;
}

.calc-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    background: rgba(253, 251, 237, 0.1);
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--z-yellow);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.4);
    transition: transform 0.2s ease;
}

.calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.temp-indicator {
    display: flex;
    justify-content: space-between;
    font-family: 'Codec Pro', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
}
.indicator-risk { color: #ff4b4b; }
.indicator-opt { color: var(--z-yellow); }
.indicator-high { color: #00ff88; }

/* Додаткові блоки Wizzard'а */
.food-cost-box {
    background: rgba(253, 251, 237, 0.03);
    border: 1px dashed rgba(253, 251, 237, 0.1);
    padding: 16px;
    border-radius: 12px;
}

.food-cost-label {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-weight: 700;
    font-size: 16px;
}

.food-cost-val {
    font-family: 'Benzin', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 20px;
}

.food-cost-unit {
    color: rgba(253, 251, 237, 0.5);
    font-family: 'Codec Pro', sans-serif;
    font-weight: 700;
}

.tooltip-icon {
    width: 18px;
    height: 18px;
    background: rgba(253, 251, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--z-yellow);
    cursor: help;
    transition: background 0.3s;
}

.tooltip-icon:hover {
    background: var(--z-yellow);
    color: var(--z-dark);
}

.tooltip-inner {
    background-color: #142417 !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 251, 237, 0.1);
    font-family: 'Codec Pro', sans-serif;
    padding: 10px 15px;
}

.step-title {
    font-family: 'Benzin', sans-serif;
    font-size: clamp(18px, 1.5vw, 20px);
    color: #ffffff;
}

.tax-box {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tax-label {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
}

.calc-switch {
    width: 3.5rem !important;
    height: 1.75rem !important;
    background-color: rgba(253, 251, 237, 0.1) !important;
    border-color: rgba(253, 251, 237, 0.2) !important;
    cursor: pointer;
}

.calc-switch:checked {
    background-color: var(--z-yellow) !important;
    border-color: var(--z-yellow) !important;
}

/* Сценарії та ROI */
.scenario-desc {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
}

.segmented-control {
    background: rgba(253, 251, 237, 0.05);
    border: 1px solid rgba(253, 251, 237, 0.1);
    border-radius: 12px;
}

.scenario-btn {
    background: transparent;
    border: none;
    color: rgba(253, 251, 237, 0.5);
    padding: 12px 10px;
    font-family: 'Codec Pro', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.scenario-btn:hover { color: #ffffff; }
.scenario-btn.active {
    background: var(--card-background);
    color: var(--z-yellow);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.roi-benchmark {
    background: rgba(20, 36, 23, 0.8);
    border: 1px solid rgba(255, 230, 0, 0.15);
    padding: 24px;
    border-radius: 20px;
}

.roi-title {
    font-family: 'Benzin', sans-serif;
    font-size: 16px;
    color: #ffffff;
}

.roi-row {
    display: flex;
    justify-content: space-between;
}

.roi-lbl {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-weight: 700;
    font-size: 14px;
}

.roi-val {
    font-family: 'Benzin', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
}

.roi-row .highlight {
    color: #ffffff;
}
.roi-row .highlight#roi-zernova-val {
    color: var(--z-yellow);
}

.roi-progress {
    height: 10px;
    background: rgba(253, 251, 237, 0.05);
}

/* =========================================
   КАЛЬКУЛЯТОР: ЧЕК (ПРАВА КОЛОНКА)
   ========================================= */
.sticky-column {
    position: sticky;
    top: 130px;
}

.calc-receipt {
    padding: 32px;
    border: 1px solid rgba(255, 230, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.calc-receipt::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 10px;
    background-image: linear-gradient(-45deg, transparent 5px, var(--z-green-dark) 5px), linear-gradient(45deg, transparent 5px, var(--z-green-dark) 5px);
    background-size: 10px 10px;
    background-repeat: repeat-x;
    z-index: 2;
}

.receipt-header {
    text-align: center;
}

.receipt-title {
    font-family: 'Benzin', sans-serif;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
}

.receipt-scenario {
    font-family: 'Codec Pro', sans-serif;
    color: var(--z-yellow);
    font-size: 14px;
    font-weight: 700;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
}

.receipt-row-lbl {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
}

.receipt-row-val {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.receipt-total-box {
    background: rgba(255, 230, 0, 0.1);
    border: 1px solid rgba(255, 230, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
}

.receipt-net-profit {
    text-align: center;
}

.receipt-total-lbl {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
    text-transform: uppercase;
}

.receipt-total-val {
    font-family: 'Benzin', sans-serif;
    color: var(--z-yellow);
    font-size: 28px;
}

.receipt-payback {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 230, 0, 0.2);
}

.receipt-payback-val {
    font-family: 'Benzin', sans-serif;
    color: #ffffff;
    font-size: 14px;
}

.receipt-disclaimer {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 11px;
    text-align: center;
}

/* =========================================
   МОДАЛКИ ТА ІЛЮЗІЯ РОБОТИ
   ========================================= */
.full-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 36, 22, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 230, 0, 0.1);
    border-top: 4px solid var(--z-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loader-title {
    font-family: 'Benzin', sans-serif;
    color: #ffffff;
    font-size: 24px;
}

.loader-desc {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
}

.pdf-preview-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 230, 0, 0.1) 0%, transparent 70%);
}

.pdf-mockup {
    width: 140px;
    height: 180px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 20px 20px 40px rgba(0,0,0,0.3);
    position: relative;
    transform: rotate(-5deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-header {
    font-size: 10px;
    font-weight: bold;
    color: var(--z-dark);
}

.pdf-line {
    height: 4px;
    background: #eee;
    border-radius: 2px;
}

.pdf-chart-mock {
    height: 40px;
    background: rgba(255, 230, 0, 0.2);
    border-radius: 4px;
    margin: 10px 0;
}

.pdf-success-text {
    font-family: 'Codec Pro', sans-serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.modal-form-bg {
    background-color: #0d1a10;
}

.modal-form-title {
    font-family: 'Benzin', sans-serif;
    color: #ffffff;
    font-size: 24px;
}

.modal-form-desc {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 14px;
}

.calc-input {
    background: rgba(253, 251, 237, 0.05);
    border: 1px solid rgba(253, 251, 237, 0.1);
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Codec Pro', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.calc-input:focus {
    border-color: var(--z-yellow);
}

/* =========================================
   ПЛОСКИЙ АДАПТИВ ДЛЯ МОБІЛОК (< 768px)
   ========================================= */
@media (max-width: 768px) {
    .calc-main-section .calc-wizard {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .slider-val-box {
        width: 100%;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        text-align: left;
    }

    .food-cost-box {
        background: transparent !important;
        border: none !important;
        border-top: 1px solid rgba(253, 251, 237, 0.1) !important;
        border-bottom: 1px solid rgba(253, 251, 237, 0.1) !important;
        border-radius: 0 !important;
        padding: 16px 0 !important;
    }

    .segmented-control {
        flex-direction: column;
        background: transparent !important;
        border: none !important;
    }

    .scenario-btn {
        border: 1px solid rgba(253, 251, 237, 0.1);
        margin-bottom: 8px;
    }

    .roi-benchmark {
        background: transparent !important;
        border: none !important;
        border-top: 1px solid rgba(253, 251, 237, 0.1) !important;
        border-radius: 0 !important;
        padding: 24px 0 !important;
    }

    .step-actions {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .step-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Чек перетворюється на плоский список */
    .receipt-header {
        text-align: left;
        border-bottom: 1px solid rgba(253, 251, 237, 0.1);
        padding-bottom: 16px;
    }

    .receipt-total-box {
        background: transparent !important;
        border: none !important;
        border-top: 2px solid var(--z-yellow) !important;
        border-radius: 0 !important;
        padding: 16px 0 !important;
    }

    .receipt-net-profit {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .receipt-total-val {
        font-size: 20px;
    }

    .calc-receipt::after {
        display: none !important; /* Прибираємо зубчики знизу */
    }

    .calc-summary-col {
        margin-top: 32px;
    }
}