.ptea-front {
    --ptea-red: #e92f2b;
    --ptea-red-dark: #c8211d;
    --ptea-ink: #2d2f3a;
    --ptea-muted: #5d6070;
    --ptea-line: #dfe1ea;
    --ptea-surface: #ffffff;
    --ptea-bg: #f7f7fb;
    color: var(--ptea-ink);
    background: var(--ptea-bg);
    border: 1px solid var(--ptea-line);
    border-radius: 8px;
    padding: clamp(28px, 5vw, 64px) 20px;
    text-align: center;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.ptea-front__copy {
    max-width: 900px;
    margin: 0 auto;
}

.ptea-front__copy h2 {
    margin: 0;
    color: var(--ptea-ink);
    font-size: clamp(44px, 8vw, 86px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0;
}

.ptea-front__copy p {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--ptea-muted);
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.22;
}

.ptea-front__form {
    width: min(820px, 100%);
    margin: 48px auto 0;
}

.ptea-front__actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptea-front__select {
    min-height: 150px;
    width: min(660px, 100%);
    border: 0;
    border-radius: 8px;
    background: var(--ptea-red);
    color: #fff;
    box-shadow: 0 18px 40px rgba(42, 45, 58, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    cursor: pointer;
    font-size: clamp(27px, 5vw, 46px);
    font-weight: 850;
    letter-spacing: 0;
    transition: transform 160ms ease, background 160ms ease;
}

.ptea-front__select:hover {
    background: var(--ptea-red-dark);
    transform: translateY(-2px);
}

.ptea-front__select svg {
    width: 44px;
    height: 44px;
    fill: currentColor;
    flex: 0 0 auto;
}

.ptea-front__drop {
    margin-top: 24px;
    padding: 20px;
    border: 2px dashed transparent;
    border-radius: 8px;
    color: var(--ptea-muted);
    transition: border-color 160ms ease, background 160ms ease;
}

.ptea-front__drop p {
    margin: 0;
    font-size: 26px;
}

.ptea-front__drop.is-active {
    border-color: var(--ptea-red);
    background: #fff;
}

.ptea-front__file {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(660px, 100%);
    margin: 24px auto 0;
    padding: 14px;
    background: var(--ptea-surface);
    border: 1px solid var(--ptea-line);
    border-radius: 8px;
    text-align: left;
}

.ptea-front__file[hidden] {
    display: none;
}

.ptea-front__badge {
    width: 52px;
    height: 62px;
    border-radius: 6px;
    background: var(--ptea-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 850;
    flex: 0 0 auto;
}

.ptea-front__file strong,
.ptea-front__file small {
    display: block;
}

.ptea-front__file strong {
    overflow-wrap: anywhere;
}

.ptea-front__file small {
    color: var(--ptea-muted);
    margin-top: 4px;
}

.ptea-front__file button {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    background: #f0f1f6;
    color: var(--ptea-ink);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.ptea-front__convert {
    min-height: 58px;
    margin-top: 22px;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    background: var(--ptea-ink);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.ptea-front__convert:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.ptea-front__status {
    min-height: 28px;
    margin-top: 14px;
    color: var(--ptea-muted);
    font-weight: 650;
}

.ptea-front__status.is-error {
    color: #b42318;
}

.ptea-front__status.is-success {
    color: #16794f;
}

.ptea-front__downloads {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ptea-front__downloads[hidden] {
    display: none;
}

.ptea-front__downloads a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--ptea-red);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.ptea-front__note {
    max-width: 760px;
    margin: 28px auto 0;
    color: var(--ptea-muted);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .ptea-front {
        padding-inline: 14px;
    }

    .ptea-front__form {
        margin-top: 34px;
    }

    .ptea-front__select {
        min-height: 118px;
        font-size: 29px;
    }

    .ptea-front__select svg {
        width: 34px;
        height: 34px;
    }

    .ptea-front__drop p {
        font-size: 21px;
    }
}
