body {
    background: linear-gradient(135deg, #f4f7f6 0%, #e9f0ec 100%);
    color: #2d3748;
}

header h1 {
    color: #111827;
}

.subtitle {
    color: #718096;
}

.back-link {
    color: #718096;
}

.back-link:hover {
    color: #10b981;
}

footer {
    color: #718096;
}

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

@media (max-width: 850px) {
    main {
        grid-template-columns: 1fr;
    }
}

.calc-form, .result-card, .error-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    margin-bottom: 18px;
    border-left: 3px solid #10b981;
    padding-left: 10px;
}

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

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}

.input-group input {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    background: #059669;
    box-shadow: 0 10px 20px -3px rgba(16, 185, 129, 0.25);
}

.submit-btn:active {
    transform: scale(0.98);
}

#downloadBtn {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #0284c7;
    border: 2px solid #0284c7;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.2s ease;
}

#downloadBtn:hover {
    background: #0284c7;
    color: white;
    box-shadow: 0 8px 16px rgba(2, 132, 199, 0.2);
}

.result-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.res-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.res-item:hover {
    background: rgba(241, 245, 249, 0.9);
}

.res-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.res-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.res-item strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.unit {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.res-item.total {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(5, 150, 105, 0.03) 100%);
    border-color: rgba(16, 185, 129, 0.25);
    padding: 18px 20px;
}

.res-item.total .res-label {
    color: #065f46;
    font-weight: 600;
    font-size: 0.95rem;
}

.res-item.total strong {
    font-size: 1.6rem;
    color: #047857;
}

.error-card {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(254, 242, 242, 0.9);
    color: #991b1b;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 15px 20px;
    margin-top: 20px;
}

/* --- INFO PAGE --- */
.info-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f4f7f6 0%, #e9f0ec 100%);
    color: #2d3748;
    display: block;
    align-items: unset;
    min-height: unset;
}

.info-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.info-container h1 {
    color: #2c3e50;
    border-bottom: 2px solid #10b981;
    padding-bottom: 10px;
    font-size: 1.8rem;
    display: block;
    text-align: left;
    letter-spacing: unset;
    margin-bottom: 15px;
}

.info-container h2 {
    color: #10b981;
    margin-top: 30px;
    font-size: 1.4rem;
}

.formula-block {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #10b981;
    margin: 20px 0;
    overflow-x: auto;
}

.info-container hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 30px 0;
}

.custom-link {
    color: #718096;
    text-decoration: none;
    border-bottom: 1px dashed #718096;
    transition: color 0.2s;
}

.custom-link:hover {
    color: #10b981;
    border-color: #10b981;
}

@media (max-width: 600px) {
    .info-body {
        padding: 10px;
    }

    .info-container {
        padding: 15px;
    }

    .info-container h1 {
        font-size: 1.5rem;
    }
}
