.calculators-page {
    padding-top: 100px;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    color: #3b3b3b;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-subtitle {
    text-align: center;
    color: #787878;
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px 50px;
}

.calculator-card {
        background: var(--bg-wrapper);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #58cc03, #0080ff, #cc035d);
}

.calculator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #58cc03;
}

.calculator-icon {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.calculator-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.calculator-card p {
    color: #787878;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 20px;
}

.calculator-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calculator-features span {
    background: #f0f8ff;
    color: #0080ff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #0080ff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calculators-grid {
        grid-template-columns: 1fr;
        padding: 0 10px 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .calculator-card {
        padding: 20px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-card {
    animation: fadeInUp 0.6s ease forwards;
}

.calculator-card:nth-child(1) { animation-delay: 0.1s; }
.calculator-card:nth-child(2) { animation-delay: 0.2s; }
.calculator-card:nth-child(3) { animation-delay: 0.3s; }
.calculator-card:nth-child(4) { animation-delay: 0.4s; }
.calculator-card:nth-child(5) { animation-delay: 0.5s; }
.calculator-card:nth-child(6) { animation-delay: 0.6s; }
.calculator-card:nth-child(7) { animation-delay: 0.7s; }
.calculator-card:nth-child(8) { animation-delay: 0.8s; }



/* Стили для отдельных страниц калькуляторов */
.calculator-single-page {
    padding-top: 100px;
    min-height: 100vh;
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.calculator-icon-large {
    font-size: 80px;
        background: var(--bg-wrapper);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calculator-info h1 {
    color: #3b3b3b;
    font-size: 32px;
    margin-bottom: 10px;
}

.calculator-info p {
    color: #787878;
    font-size: 18px;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 0px 40px;
}

.calculator-form {
        background: var(--bg-wrapper);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-form h3 {
    color: #3b3b3b;
    margin-bottom: 25px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3b3b3b;
    font-weight: 500;
}

.form-group input,
.form-group select {

    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #58cc03;
}

.calculate-btn {
    width: 100%;
    background: #58cc03;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    background: #4caf00;
}

.calculator-results {
        background: var(--bg-wrapper);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid #58cc03;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: #787878;
}

.results-chart {
    height: 300px;
    margin-top: 20px;
}

.calculator-explanation {
        background: var(--bg-wrapper);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 0px 40px;
}

.calculator-explanation h3 {
    color: #3b3b3b;
    margin-bottom: 20px;
    font-size: 24px;
}

.explanation-content {
    color: #555;
    line-height: 1.6;
}

.formula {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #0080ff;
}

.tips {
    margin-top: 25px;
}

.tips h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
}

.tips ul {
    list-style-type: none;
    padding-left: 0;
}

.tips li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #58cc03;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 968px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-form,
    .calculator-results,
    .calculator-explanation {
        padding: 20px;
    }
    
    .calculator-header {
        padding: 0 10px;
    }
    
    .calculator-container {
        padding: 0 10px 20px;
    }
    
    .calculator-explanation {
        margin: 0 10px 20px;
    }
}

/* Стили для калькулятора бюджета */
.budget-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px 40px;
}

.budget-input-section,
.budget-results-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.income-section,
.expenses-section,
.savings-section {
    margin-bottom: 25px;
}

.income-section h4,
.expenses-section h4,
.savings-section h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.expense-category {
    margin-bottom: 15px;
}

.expense-category label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.budget-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.save-btn,
.load-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-btn {
    background: #0080ff;
    color: white;
}

.save-btn:hover {
    background: #0066cc;
}

.load-btn {
    background: #787878;
    color: white;
}

.load-btn:hover {
    background: #666;
}

.results-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.result-label {
    color: #555;
    font-size: 14px;
}

.result-value {
    font-weight: 600;
    color: #3b3b3b;
}

.budget-chart {
    height: 250px;
    margin: 20px 0;
}

.financial-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.financial-tips h4 {
    color: #856404;
    margin-bottom: 15px;
}

.tip-item {
    padding: 8px 0;
    border-bottom: 1px solid #ffeaa7;
    color: #856404;
}

.tip-item:last-child {
    border-bottom: none;
}

.saved-budgets {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.saved-budget-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #58cc03;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.budget-date {
    font-size: 12px;
    color: #787878;
}

.budget-actions {
    display: flex;
    gap: 10px;
}

.load-budget-btn,
.delete-budget-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}

.load-budget-btn {
    background: #58cc03;
    color: white;
}

.delete-budget-btn {
    background: #cc035d;
    color: white;
}

.no-budgets {
    text-align: center;
    color: #787878;
    font-style: italic;
    padding: 20px;
}

.budget-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rule {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0080ff;
}

.rule h4 {
    color: #0080ff;
    margin-bottom: 10px;
}

.rule p {
    color: #555;
    line-height: 1.5;
}

/* Адаптивность для бюджета */
@media (max-width: 968px) {
    .budget-container {
        grid-template-columns: 1fr;
    }
    
    .budget-rules {
        grid-template-columns: 1fr;
    }
}

/* Стили для калькулятора целей накоплений */
.savings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px 40px;
}

.savings-input-section,
.savings-results-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.savings-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.clear-btn {
    padding: 12px;
    background: #787878;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #666;
}

/* Прогресс цели */
.goal-progress {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h4 {
    color: #3b3b3b;
    margin: 0;
}

.progress-percentage {
    background: #58cc03;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58cc03, #4caf00);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.progress-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Детали результатов */
.results-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
        background: var(--bg-wrapper);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 24px;
}

.result-info {
    flex: 1;
}

.result-value {
    font-size: 18px;
    font-weight: 700;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.result-label {
    font-size: 12px;
    color: #787878;
}

.savings-chart {
    height: 300px;
    margin: 20px 0;
}

.goal-tips {
    background: #e8f5e8;
    border: 1px solid #58cc03;
    border-radius: 10px;
    padding: 20px;
}

.goal-tips h4 {
    color: #2e7d32;
    margin-bottom: 15px;
}

/* Сохраненные цели */
.saved-goals {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.saved-goal-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #0080ff;
    transition: all 0.3s ease;
}

.saved-goal-item.active {
    border-left-color: #58cc03;
    background: #f0f8f0;
}

.saved-goal-item:hover {
    transform: translateX(5px);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-date {
    font-size: 11px;
    color: #787878;
}

.goal-progress-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar-small {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: #58cc03;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #3b3b3b;
    min-width: 40px;
}

.goal-amount {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.goal-actions {
    display: flex;
    gap: 8px;
}

.load-goal-btn,
.delete-goal-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
}

.load-goal-btn {
    background: #58cc03;
    color: white;
}

.delete-goal-btn {
    background: #cc035d;
    color: white;
}

.no-goals {
    text-align: center;
    color: #787878;
    font-style: italic;
    padding: 20px;
}

/* Стратегии и популярные цели */
.savings-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.strategy {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0080ff;
}

.strategy h4 {
    color: #0080ff;
    margin-bottom: 10px;
}

.common-goals h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.common-goal {
        background: var(--bg-wrapper);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.common-goal:hover {
    border-color: #58cc03;
    transform: translateY(-5px);
}

.common-goal span {
    display: block;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.common-goal small {
    color: #787878;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 968px) {
    .savings-container {
        grid-template-columns: 1fr;
    }
    
    .results-details {
        grid-template-columns: 1fr;
    }
    
    .savings-strategies {
        grid-template-columns: 1fr;
    }
    
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}


/* Стили для калькулятора рефинансирования */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.comparison-column {
        background: var(--bg-wrapper);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-column h4 {
    text-align: center;
    color: #3b3b3b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.comparison-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.savings-summary {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.savings-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.savings-item.positive {
    background: #e8f5e8;
    border-left: 4px solid #58cc03;
}

.refinance-recommendation {
    margin-top: 20px;
}

.recommendation {
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.recommendation.positive {
    background: #e8f5e8;
    border: 2px solid #58cc03;
}

.recommendation.neutral {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.recommendation.negative {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.recommendation h4 {
    margin-bottom: 10px;
}

/* Стили для инфляционного калькулятора */
.historical-rates {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.historical-rates button {
    padding: 8px 12px;
    background: #f0f8ff;
    border: 1px solid #0080ff;
    border-radius: 5px;
    color: #0080ff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.historical-rates button:hover {
    background: #0080ff;
    color: white;
}

.inflation-comparison {
        background: var(--bg-wrapper);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.comparison-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.comparison-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.item-name {
    display: block;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 10px;
}

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

.old-price {
    color: #787878;
    text-decoration: line-through;
    font-size: 14px;
}

.new-price {
    color: #cc035d;
    font-weight: 600;
    font-size: 16px;
}

.inflation-protection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.protection-method {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0080ff;
}

.protection-method h4 {
    color: #0080ff;
    margin-bottom: 10px;
}
/* Стили для нового инвестиционного калькулятора */
.investment-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    padding: 0 20px 40px;
}

.investment-strategy-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.strategy-selection {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.strategy-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.strategy-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.strategy-tab.active {
    border-color: #58cc03;
    background: #f0f8f0;
}

.strategy-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.strategy-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.strategy-info strong {
    display: block;
    color: #3b3b3b;
    margin-bottom: 2px;
}

.strategy-info small {
    color: #787878;
    font-size: 12px;
}

.strategy-details {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.strategy-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.strategy-description {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.investment-results-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.strategy-comparison {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-chart {
    height: 200px;
    margin-top: 15px;
}

.results-summary {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.result-total {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #58cc03, #4caf00);
    border-radius: 15px;
    color: white;
}

.result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
}

.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.growth-timeline {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-chart {
    height: 250px;
    margin-top: 15px;
}

.risk-analysis {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.risk-level {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.risk-level.low {
    background: #e8f5e8;
    border: 2px solid #58cc03;
}

.risk-level.medium {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.risk-level.high {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.risk-level h5 {
    margin-bottom: 10px;
    font-size: 16px;
}

.risk-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Принципы инвестирования */
.investment-principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.principle-card {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.principle-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.principle-card h4 {
    color: #3b3b3b;
    margin-bottom: 10px;
}

.principle-card p {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

.asset-allocation {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.allocation-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.allocation-bar {
    height: 20px;
    border-radius: 10px;
    min-width: 200px;
    position: relative;
}

.allocation-bar.conservative {
    background: linear-gradient(90deg, #58cc03, #4caf00);
}

.allocation-bar.balanced {
    background: linear-gradient(90deg, #0080ff, #0066cc);
}

.allocation-bar.aggressive {
    background: linear-gradient(90deg, #cc035d, #a0024a);
}

.allocation-info {
    flex: 1;
}

.allocation-info span {
    display: block;
    font-weight: 600;
    color: #3b3b3b;
}

.allocation-info small {
    color: #787878;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .investment-container {
        grid-template-columns: 1fr;
    }
    
    .result-main {
        grid-template-columns: 1fr;
    }
    
    .investment-principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .strategy-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .strategy-tab {
        flex: 1;
        min-width: 150px;
    }
    
    .investment-principles-grid {
        grid-template-columns: 1fr;
    }
    
    .allocation-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .allocation-bar {
        min-width: 100%;
    }
}

/* Стили для калькулятора целей накоплений */
.savings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px 40px;
}

.savings-input-section,
.savings-results-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.savings-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.clear-btn {
    padding: 12px;
    background: #787878;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #666;
}

/* Прогресс цели */
.goal-progress {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h4 {
    color: #3b3b3b;
    margin: 0;
}

.progress-percentage {
    background: #58cc03;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58cc03, #4caf00);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.progress-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Детали результатов */
.results-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
        background: var(--bg-wrapper);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 24px;
}

.result-info {
    flex: 1;
}

.result-value {
    font-size: 18px;
    font-weight: 700;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.result-label {
    font-size: 12px;
    color: #787878;
}

.savings-chart {
    height: 300px;
    margin: 20px 0;
}

.goal-tips {
    background: #e8f5e8;
    border: 1px solid #58cc03;
    border-radius: 10px;
    padding: 20px;
}

.goal-tips h4 {
    color: #2e7d32;
    margin-bottom: 15px;
}

/* Сохраненные цели */
.saved-goals {
        background: var(--bg-wrapper);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.saved-goal-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #0080ff;
    transition: all 0.3s ease;
}

.saved-goal-item.active {
    border-left-color: #58cc03;
    background: #f0f8f0;
}

.saved-goal-item:hover {
    transform: translateX(5px);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-date {
    font-size: 11px;
    color: #787878;
}

.goal-progress-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar-small {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: #58cc03;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #3b3b3b;
    min-width: 40px;
}

.goal-amount {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.goal-actions {
    display: flex;
    gap: 8px;
}

.load-goal-btn,
.delete-goal-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
}

.load-goal-btn {
    background: #58cc03;
    color: white;
}

.delete-goal-btn {
    background: #cc035d;
    color: white;
}

.no-goals {
    text-align: center;
    color: #787878;
    font-style: italic;
    padding: 20px;
}

/* Стратегии и популярные цели */
.savings-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.strategy {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0080ff;
}

.strategy h4 {
    color: #0080ff;
    margin-bottom: 10px;
}

.common-goals h4 {
    color: #3b3b3b;
    margin-bottom: 15px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.common-goal {
    background: var(--bg-wrapper);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.common-goal:hover {
    border-color: #58cc03;
    transform: translateY(-5px);
}

.common-goal span {
    display: block;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: 5px;
}

.common-goal small {
    color: #787878;
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 968px) {
    .savings-container {
        grid-template-columns: 1fr;
    }
    
    .results-details {
        grid-template-columns: 1fr;
    }
    
    .savings-strategies {
        grid-template-columns: 1fr;
    }
    
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}