* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #0f1115;
    color: #fff;
    line-height: 1.6;
}

.wrapper {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f1115 0%, #1a140d 100%);
    padding-bottom: 50px;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header { padding: 40px 0; }
.logo { font-size: 24px; font-weight: 700; color: #FA9021; }

.calculator-section { margin-top: 20px; }
.calc-info { text-align: center; margin-bottom: 40px; }
.calc-info h1 { font-size: 42px; font-weight: 600; margin-bottom: 15px; }
.calc-info p { color: #a0a0a0; max-width: 700px; margin: 0 auto; }

.ad-placeholder {
    background: #1c1f26;
    border: 2px dashed #2a2e37;
    color: #555;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    font-size: 14px;
}

.calc-box {
    display: flex;
    background: #1c1f26;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.calc-form { flex: 1; padding: 40px; border-right: 1px solid #2a2e37; }

/* Пресеты */
.presets { display: flex; gap: 10px; margin-bottom: 25px; }
.preset-btn {
    flex: 1; padding: 8px; background: transparent; border: 1px solid #2a2e37;
    color: #a0a0a0; border-radius: 6px; cursor: pointer; font-size: 12px; transition: 0.3s;
}
.preset-btn:hover { border-color: #FA9021; color: #FA9021; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #a0a0a0; }
.input-group input {
    width: 100%; padding: 15px; background: #0f1115; border: 1px solid #2a2e37;
    border-radius: 8px; color: #fff; font-size: 16px; font-family: 'Poppins', sans-serif;
    outline: none; transition: border-color 0.3s;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px; 
}
.input-group input:focus { border-color: #FA9021; }

/* Переключатели */
.toggles { margin: 25px 0; display: flex; flex-direction: column; gap: 15px; }
.toggle-switch { display: flex; align-items: center; cursor: pointer; position: relative; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    width: 40px; height: 22px; background-color: #2a2e37; border-radius: 22px;
    position: relative; transition: .3s; margin-right: 15px; flex-shrink: 0;
}
.slider:before {
    position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
    background-color: white; border-radius: 50%; transition: .3s;
}
.toggle-switch input:checked + .slider { background-color: #FA9021; }
.toggle-switch input:checked + .slider:before { transform: translateX(18px); }
.toggle-label { font-size: 14px; color: #a0a0a0; }

.btn {
    width: 100%; padding: 18px; background: #FA9021; color: #fff; border: none;
    border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: background 0.3s; font-family: 'Poppins', sans-serif;
}
.btn:hover { background: #d9771a; }

/* Результаты */
.calc-result { flex: 1; padding: 40px; background: #16191f; display: flex; flex-direction: column; justify-content: center; }
.calc-result h2 { font-size: 24px; margin-bottom: 20px; font-weight: 500; }

.result-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; background: #1c1f26; border-radius: 8px; margin-bottom: 10px;
    border-left: 4px solid #2a2e37;
}
.result-card span:first-child { color: #a0a0a0; font-size: 14px; }
.result-card span:last-child { font-weight: 600; font-size: 18px; }

.tax-text { color: #e74c3c !important; }
.profit-text { color: #4CAF50 !important; }
.total-text { color: #FA9021 !important; }
.highlight-inflation { border-left-color: #e74c3c; }
.highlight-inflation span:last-child { color: #e74c3c !important; }

/* График */
.chart-container {
    margin-top: 50px; background: #1c1f26; padding: 30px;
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.chart-container h2 { text-align: center; margin-bottom: 20px; font-weight: 500; }

@media (max-width: 900px) {
    .calc-box { flex-direction: column; }
    .calc-form { border-right: none; border-bottom: 1px solid #2a2e37; }
    .calc-info h1 { font-size: 32px; }
    .chart-container { padding: 15px; }
    .presets { flex-direction: column; }
}