.vypocet-dph {
    width: 100%;
    box-sizing: border-box;
    margin: 30px auto;
    font-family: inherit;
}

.vypocet-dph *,
.vypocet-dph *::before,
.vypocet-dph *::after {
    box-sizing: border-box;
}

.vypocet-dph__card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.vypocet-dph__title {
    margin: 0 0 25px;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
}

.vypocet-dph__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.vypocet-dph__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.vypocet-dph__field label {
    font-size: 15px;
    font-weight: 600;
}

.vypocet-dph__input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vypocet-dph__input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.vypocet-dph__button {
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #000000;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.vypocet-dph__button:hover {
    opacity: 0.9;
}

.vypocet-dph__button:active {
    transform: translateY(1px);
}

.vypocet-dph__result {
    margin-top: 20px;
    padding: 18px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.6;
}

.vypocet-dph__result--success {
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
}

.vypocet-dph__result--error {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.vypocet-dph__reset {
    display: block;
    margin: 15px auto 0;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: #666;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 600px) {
    .vypocet-dph__fields {
        grid-template-columns: 1fr 1fr;
    }

    .vypocet-dph__field:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 599px) {
    .vypocet-dph__card {
        padding: 22px;
        border-radius: 12px;
    }

    .vypocet-dph__title {
        font-size: 25px;
    }
}
