:root {
    --primary-blue: #3b82f6; /* Основной цвет */
    --light-blue: #f0f7ff;
    --success-green: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    margin: 0;
}

.calculator-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

/* Колонки-карточки */
.calc-column {
    background: #ffffff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.calc-column:hover {
    transform: translateY(-4px);
}

h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: block;
}

/* Поле ввода */
.input-wrapper {
    position: relative;
    margin: 15px 0;
}

input {
    width: 100%;
    padding: 16px 45px 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.currency-symbol {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-muted);
}

/* Элементы налогов */
.tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: var(--light-blue);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.tax-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.tax-info {
    display: flex;
    flex-direction: column;
}

.tax-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.tax-base {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace; /* Моноширинный шрифт для цифр */
}

.tax-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    white-space: nowrap;
}

/* Карточки результатов */
.result-card {
    margin-top: 25px;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
}

.main-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.light-blue {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px dashed #cbd5e1;
}

.result-card p {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.9;
}

.result-card h1 {
    margin: 10px 0 0;
    font-size: 2.2rem;
    font-weight: 900;
}

.result-card h2 {
    margin: 8px 0 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Разделитель */
hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}