.age-calculator {
    width: 100%;
}

.age-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.age-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    background: #ffffff;
}

.age-card-title {
    margin-bottom: 18px;
    font-weight: 700;
}

.age-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.age-field .form-label {
    font-weight: 600;
}

.age-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.age-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.age-error {
    margin-top: 14px;
    font-size: 14px;
    color: #dc2626;
    min-height: 20px;
}

.age-main-result {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.age-result-list {
    border: 1px solid #edf0f3;
    border-radius: 12px;
    overflow: hidden;
}

.age-result-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f3;
}

.age-result-row:last-child {
    border-bottom: 0;
}

.age-result-row span {
    color: #4b5563;
}

.age-result-row strong {
    text-align: right;
    color: #111827;
}

.age-result-row-main {
    background: #f9fafb;
}

.age-formula {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .age-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .age-card {
        padding: 16px;
    }

    .age-actions {
        flex-direction: column;
    }

    .age-actions .btn {
        width: 100%;
    }

    .age-result-row {
        flex-direction: column;
        gap: 4px;
    }

    .age-result-row strong {
        text-align: left;
    }

    .age-main-result {
        font-size: 18px;
    }
}