.currency {
    padding: 30px 15px;
}

.currency__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* converter */

.currency-converter {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.currency-converter__title {
    margin-bottom: 20px;
    font-size: 24px;
}

.currency-converter__form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.currency-converter__group {
    flex: 1;
    min-width: 180px;
}

.currency-converter__input,
.currency-converter__select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.currency-converter__button {
    height: 48px;
    padding: 0 25px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

/* result */

.currency-result {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.currency-result__title {
    margin-bottom: 15px;
    font-size: 22px;
}

.currency-result__box {
    font-size: 32px;
    font-weight: 700;
}

/* tables */

.currency-table,
.currency-all {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow-x: auto;
}

.currency-table__title,
.currency-all__title {
    margin-bottom: 20px;
    font-size: 22px;
}

.currency-table__table,
.currency-all__table {
    width: 100%;
    border-collapse: collapse;
}

.currency-table__table th,
.currency-table__table td,
.currency-all__table th,
.currency-all__table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.currency-error {
    background: #ffe5e5;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* responsive */
@media (max-width: 768px) {
    .currency-converter__form {
        flex-direction: column;
    }

    .currency-converter__group {
        width: 100%;
    }

    .currency-converter__button {
        width: 100%;
    }

    .currency-result__box {
        font-size: 24px;
    }
}