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

body {
    min-height: 100vh;
    background: var(--paper, #f5f7fa);
    color: var(--ink, #202923);
}

.card {
    width: min(450px, calc(100vw - 32px));
    margin: 0 auto;
    background: var(--surface, white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.1));
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: Manrope, "Segoe UI", sans-serif;
}

input,
select,
button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
}

input,
select {
    border: 1px solid #dfe4dc;
    border-radius: 10px;
    background: var(--surface, white);
    color: var(--ink, #202923);
}

label {
    display: block;
    margin-top: 16px;
    color: var(--ink, #202923);
    font-weight: bold;
}

button {
    border: 1px solid var(--ink, #202923);
    border-radius: 11px;
    background: var(--ink, #202923);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

button:hover:not(:disabled) {
    border-color: var(--green-strong, #37785e);
    background: var(--green-strong, #37785e);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

:focus-visible {
    outline: 3px solid var(--orange, #ef775e);
    outline-offset: 3px;
}

.drop-zone {
    border: 2px dashed #b9cabc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.2s ease;
    margin-bottom: 10px;
    background: #f8faf6;
}

.drop-zone p {
    margin: 0;
}

.small {
    margin-top: 8px !important;
    color: var(--muted, #68716c);
    font-size: 14px;
}

.drag-over {
    border-color: var(--green-strong, #37785e);
    background: #e8f3eb;
}

.file-info {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8faf6;
    border: 1px solid #e5e4dc;
    color: var(--ink, #202923);
    font-size: 14px;
    line-height: 1.6;
}

.loader {
    text-align: center;
    margin-top: 15px;
    color: var(--green-strong, #37785e);
    font-weight: bold;
}

.error {
    margin-top: 15px;
    text-align: center;
    color: #a65443;
    font-size: 14px;
}

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.converter-main {
    padding-top: clamp(32px, 6vw, 64px);
}

.converter-main .site-footer {
    max-width: 450px;
}

@media (max-width: 700px) {
    .converter-main {
        width: min(100% - 28px, 450px);
    }

    .converter-main .card {
        width: 100%;
        padding: 24px 20px;
    }
}