.zakyat-header {
    text-align: center;
    margin-bottom: 0.5rem; /* Согласовано с каруселью */
    color: #2c3e50;
    font-size: 2.8rem;
}

.zakyat-layout {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
}

.zakyat-content,
.zakyat-calculator {
    background-color: rgba(255, 255, 255, 0.2); /* Subtle transparent background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.zakyat-content {
    flex: 2; /* Takes more space */
    min-width: 300px;
    max-width: 700px;
    text-align: left;
}

.zakyat-content h2 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.zakyat-content p,
.zakyat-content li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.zakyat-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.zakyat-calculator {
    flex: 1; /* Takes less space, positions to the right */
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zakyat-calculator h2 {
    color: #34495e;
    font-size: 2rem;
    margin-bottom: 10px;
}

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

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-form label {
    color: #34495e;
    font-weight: bold;
    font-size: 1.1rem;
}

.calculator-form input[type="number"] {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Subtle transparent border */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1); /* Transparent white background */
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.calculator-form input[type="number"]::placeholder {
    color: rgba(51, 51, 51, 0.7);
}

.calculator-form input[type="number"]:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

#calculate-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background-color: rgba(0, 123, 255, 0.7); /* Transparent blue */
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#calculate-btn:hover {
    background-color: rgba(0, 123, 255, 0.9);
    transform: translateY(-2px);
}

.calculator-result {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calculator-result p {
    margin: 0;
    color: #34495e;
    font-size: 1.1rem;
}

.calculator-result p.error {
    color: #e74c3c;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .zakyat-layout {
        flex-direction: column; /* Stack vertically on smaller screens */
        align-items: center;
    }

    .zakyat-content,
    .zakyat-calculator {
        max-width: 100%;
        flex: none;
    }
}
